-
Notifications
You must be signed in to change notification settings - Fork 59
/
zz_patchdeployment_types.go
executable file
·714 lines (541 loc) · 29.5 KB
/
zz_patchdeployment_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type GcsObjectObservation struct {
}
type GcsObjectParameters struct {
// Bucket of the Cloud Storage object.
// +kubebuilder:validation:Required
Bucket *string `json:"bucket" tf:"bucket,omitempty"`
// Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
// +kubebuilder:validation:Required
GenerationNumber *string `json:"generationNumber" tf:"generation_number,omitempty"`
// Name of the Cloud Storage object.
// +kubebuilder:validation:Required
Object *string `json:"object" tf:"object,omitempty"`
}
type GroupLabelsObservation struct {
}
type GroupLabelsParameters struct {
// Compute Engine instance labels that must be present for a VM instance to be targeted by this filter
// +kubebuilder:validation:Required
Labels map[string]*string `json:"labels" tf:"labels,omitempty"`
}
type LinuxExecStepConfigGcsObjectObservation struct {
}
type LinuxExecStepConfigGcsObjectParameters struct {
// Bucket of the Cloud Storage object.
// +kubebuilder:validation:Required
Bucket *string `json:"bucket" tf:"bucket,omitempty"`
// Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
// +kubebuilder:validation:Required
GenerationNumber *string `json:"generationNumber" tf:"generation_number,omitempty"`
// Name of the Cloud Storage object.
// +kubebuilder:validation:Required
Object *string `json:"object" tf:"object,omitempty"`
}
type LinuxExecStepConfigObservation struct {
}
type LinuxExecStepConfigParameters struct {
// Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
// +kubebuilder:validation:Optional
AllowedSuccessCodes []*float64 `json:"allowedSuccessCodes,omitempty" tf:"allowed_success_codes,omitempty"`
// A Cloud Storage object containing the executable.
// Structure is documented below.
// +kubebuilder:validation:Optional
GcsObject []GcsObjectParameters `json:"gcsObject,omitempty" tf:"gcs_object,omitempty"`
// The script interpreter to use to run the script. If no interpreter is specified the script will
// be executed directly, which will likely only succeed for scripts with shebang lines.
// Possible values are SHELL and POWERSHELL.
// +kubebuilder:validation:Optional
Interpreter *string `json:"interpreter,omitempty" tf:"interpreter,omitempty"`
// An absolute path to the executable on the VM.
// +kubebuilder:validation:Optional
LocalPath *string `json:"localPath,omitempty" tf:"local_path,omitempty"`
}
type MonthlyObservation struct {
}
type MonthlyParameters struct {
// One day of the month. 1-31 indicates the 1st to the 31st day. -1 indicates the last day of the month.
// Months without the target day will be skipped. For example, a schedule to run "every month on the 31st"
// will not run in February, April, June, etc.
// +kubebuilder:validation:Optional
MonthDay *float64 `json:"monthDay,omitempty" tf:"month_day,omitempty"`
// Week day in a month.
// Structure is documented below.
// +kubebuilder:validation:Optional
WeekDayOfMonth []WeekDayOfMonthParameters `json:"weekDayOfMonth,omitempty" tf:"week_day_of_month,omitempty"`
}
type OneTimeScheduleObservation struct {
}
type OneTimeScheduleParameters struct {
// The desired patch job execution time. A timestamp in RFC3339 UTC "Zulu" format,
// accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
// +kubebuilder:validation:Required
ExecuteTime *string `json:"executeTime" tf:"execute_time,omitempty"`
}
type PatchConfigAptObservation struct {
}
type PatchConfigAptParameters struct {
// List of packages to exclude from update.
// +kubebuilder:validation:Optional
Excludes []*string `json:"excludes,omitempty" tf:"excludes,omitempty"`
// An exclusive list of packages to be updated. These are the only packages that will be updated.
// If these packages are not installed, they will be ignored. This field cannot be specified with
// any other patch configuration fields.
// +kubebuilder:validation:Optional
ExclusivePackages []*string `json:"exclusivePackages,omitempty" tf:"exclusive_packages,omitempty"`
// By changing the type to DIST, the patching is performed using apt-get dist-upgrade instead.
// Possible values are DIST and UPGRADE.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type PatchConfigGooObservation struct {
}
type PatchConfigGooParameters struct {
// goo update settings. Use this setting to override the default goo patch rules.
// +kubebuilder:validation:Required
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
}
type PatchConfigObservation struct {
}
type PatchConfigParameters struct {
// Apt update settings. Use this setting to override the default apt patch rules.
// Structure is documented below.
// +kubebuilder:validation:Optional
Apt []PatchConfigAptParameters `json:"apt,omitempty" tf:"apt,omitempty"`
// goo update settings. Use this setting to override the default goo patch rules.
// Structure is documented below.
// +kubebuilder:validation:Optional
Goo []PatchConfigGooParameters `json:"goo,omitempty" tf:"goo,omitempty"`
// Allows the patch job to run on Managed instance groups (MIGs).
// +kubebuilder:validation:Optional
MigInstancesAllowed *bool `json:"migInstancesAllowed,omitempty" tf:"mig_instances_allowed,omitempty"`
// The ExecStep to run after the patch update.
// Structure is documented below.
// +kubebuilder:validation:Optional
PostStep []PostStepParameters `json:"postStep,omitempty" tf:"post_step,omitempty"`
// The ExecStep to run before the patch update.
// Structure is documented below.
// +kubebuilder:validation:Optional
PreStep []PreStepParameters `json:"preStep,omitempty" tf:"pre_step,omitempty"`
// Post-patch reboot settings.
// Possible values are DEFAULT, ALWAYS, and NEVER.
// +kubebuilder:validation:Optional
RebootConfig *string `json:"rebootConfig,omitempty" tf:"reboot_config,omitempty"`
// Windows update settings. Use this setting to override the default Windows patch rules.
// Structure is documented below.
// +kubebuilder:validation:Optional
WindowsUpdate []WindowsUpdateParameters `json:"windowsUpdate,omitempty" tf:"windows_update,omitempty"`
// Yum update settings. Use this setting to override the default yum patch rules.
// Structure is documented below.
// +kubebuilder:validation:Optional
Yum []PatchConfigYumParameters `json:"yum,omitempty" tf:"yum,omitempty"`
// zypper update settings. Use this setting to override the default zypper patch rules.
// Structure is documented below.
// +kubebuilder:validation:Optional
Zypper []PatchConfigZypperParameters `json:"zypper,omitempty" tf:"zypper,omitempty"`
}
type PatchConfigYumObservation struct {
}
type PatchConfigYumParameters struct {
// List of packages to exclude from update.
// +kubebuilder:validation:Optional
Excludes []*string `json:"excludes,omitempty" tf:"excludes,omitempty"`
// An exclusive list of packages to be updated. These are the only packages that will be updated.
// If these packages are not installed, they will be ignored. This field cannot be specified with
// any other patch configuration fields.
// +kubebuilder:validation:Optional
ExclusivePackages []*string `json:"exclusivePackages,omitempty" tf:"exclusive_packages,omitempty"`
// Will cause patch to run yum update-minimal instead.
// +kubebuilder:validation:Optional
Minimal *bool `json:"minimal,omitempty" tf:"minimal,omitempty"`
// Adds the --security flag to yum update. Not supported on all platforms.
// +kubebuilder:validation:Optional
Security *bool `json:"security,omitempty" tf:"security,omitempty"`
}
type PatchConfigZypperObservation struct {
}
type PatchConfigZypperParameters struct {
// Install only patches with these categories. Common categories include security, recommended, and feature.
// +kubebuilder:validation:Optional
Categories []*string `json:"categories,omitempty" tf:"categories,omitempty"`
// List of packages to exclude from update.
// +kubebuilder:validation:Optional
Excludes []*string `json:"excludes,omitempty" tf:"excludes,omitempty"`
// An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
// This field must not be used with any other patch configuration fields.
// +kubebuilder:validation:Optional
ExclusivePatches []*string `json:"exclusivePatches,omitempty" tf:"exclusive_patches,omitempty"`
// Install only patches with these severities. Common severities include critical, important, moderate, and low.
// +kubebuilder:validation:Optional
Severities []*string `json:"severities,omitempty" tf:"severities,omitempty"`
// Adds the --with-optional flag to zypper patch.
// +kubebuilder:validation:Optional
WithOptional *bool `json:"withOptional,omitempty" tf:"with_optional,omitempty"`
// Adds the --with-update flag, to zypper patch.
// +kubebuilder:validation:Optional
WithUpdate *bool `json:"withUpdate,omitempty" tf:"with_update,omitempty"`
}
type PatchDeploymentInstanceFilterObservation struct {
}
type PatchDeploymentInstanceFilterParameters struct {
// Target all VM instances in the project. If true, no other criteria is permitted.
// +kubebuilder:validation:Optional
All *bool `json:"all,omitempty" tf:"all,omitempty"`
// Targets VM instances matching ANY of these GroupLabels. This allows targeting of disparate groups of VM instances.
// Structure is documented below.
// +kubebuilder:validation:Optional
GroupLabels []GroupLabelsParameters `json:"groupLabels,omitempty" tf:"group_labels,omitempty"`
// Targets VMs whose name starts with one of these prefixes. Similar to labels, this is another way to group
// VMs when targeting configs, for example prefix="prod-".
// +kubebuilder:validation:Optional
InstanceNamePrefixes []*string `json:"instanceNamePrefixes,omitempty" tf:"instance_name_prefixes,omitempty"`
// Targets any of the VM instances specified. Instances are specified by their URI in the form zones/{{zone}}/instances/{{instance_name}},
// projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}, or
// https://www.googleapis.com/compute/v1/projects/{{project_id}}/zones/{{zone}}/instances/{{instance_name}}
// +kubebuilder:validation:Optional
Instances []*string `json:"instances,omitempty" tf:"instances,omitempty"`
// Targets VM instances in ANY of these zones. Leave empty to target VM instances in any zone.
// +kubebuilder:validation:Optional
Zones []*string `json:"zones,omitempty" tf:"zones,omitempty"`
}
type PatchDeploymentObservation struct {
// Time the patch deployment was created. Timestamp is in RFC3339 text format.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
CreateTime *string `json:"createTime,omitempty" tf:"create_time,omitempty"`
// an identifier for the resource with format {{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The last time a patch job was started by this deployment. Timestamp is in RFC3339 text format.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
LastExecuteTime *string `json:"lastExecuteTime,omitempty" tf:"last_execute_time,omitempty"`
// Unique name for the patch deployment resource in a project.
// The patch deployment name is in the form: projects/{project_id}/patchDeployments/{patchDeploymentId}.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Schedule recurring executions.
// Structure is documented below.
// +kubebuilder:validation:Optional
RecurringSchedule []RecurringScheduleObservation `json:"recurringSchedule,omitempty" tf:"recurring_schedule,omitempty"`
// Time the patch deployment was last updated. Timestamp is in RFC3339 text format.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
UpdateTime *string `json:"updateTime,omitempty" tf:"update_time,omitempty"`
}
type PatchDeploymentParameters struct {
// Description of the patch deployment. Length of the description is limited to 1024 characters.
// +kubebuilder:validation:Optional
Description *string `json:"description,omitempty" tf:"description,omitempty"`
// Duration of the patch. After the duration ends, the patch times out.
// A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"
// +kubebuilder:validation:Optional
Duration *string `json:"duration,omitempty" tf:"duration,omitempty"`
// VM instances to patch.
// Structure is documented below.
// +kubebuilder:validation:Required
InstanceFilter []PatchDeploymentInstanceFilterParameters `json:"instanceFilter" tf:"instance_filter,omitempty"`
// Schedule a one-time execution.
// Structure is documented below.
// +kubebuilder:validation:Optional
OneTimeSchedule []OneTimeScheduleParameters `json:"oneTimeSchedule,omitempty" tf:"one_time_schedule,omitempty"`
// Patch configuration that is applied.
// Structure is documented below.
// +kubebuilder:validation:Optional
PatchConfig []PatchConfigParameters `json:"patchConfig,omitempty" tf:"patch_config,omitempty"`
// The ID of the project in which the resource belongs.
// If it is not provided, the provider project is used.
// +kubebuilder:validation:Optional
Project *string `json:"project,omitempty" tf:"project,omitempty"`
// Schedule recurring executions.
// Structure is documented below.
// +kubebuilder:validation:Optional
RecurringSchedule []RecurringScheduleParameters `json:"recurringSchedule,omitempty" tf:"recurring_schedule,omitempty"`
// Rollout strategy of the patch job.
// Structure is documented below.
// +kubebuilder:validation:Optional
Rollout []PatchDeploymentRolloutParameters `json:"rollout,omitempty" tf:"rollout,omitempty"`
}
type PatchDeploymentRolloutObservation struct {
}
type PatchDeploymentRolloutParameters struct {
// The maximum number (or percentage) of VMs per zone to disrupt at any given moment. The number of VMs calculated from multiplying the percentage by the total number of VMs in a zone is rounded up.
// During patching, a VM is considered disrupted from the time the agent is notified to begin until patching has completed. This disruption time includes the time to complete reboot and any post-patch steps.
// A VM contributes to the disruption budget if its patching operation fails either when applying the patches, running pre or post patch steps, or if it fails to respond with a success notification before timing out. VMs that are not running or do not have an active agent do not count toward this disruption budget.
// For zone-by-zone rollouts, if the disruption budget in a zone is exceeded, the patch job stops, because continuing to the next zone requires completion of the patch process in the previous zone.
// For example, if the disruption budget has a fixed value of 10, and 8 VMs fail to patch in the current zone, the patch job continues to patch 2 VMs at a time until the zone is completed. When that zone is completed successfully, patching begins with 10 VMs at a time in the next zone. If 10 VMs in the next zone fail to patch, the patch job stops.
// Structure is documented below.
// +kubebuilder:validation:Required
DisruptionBudget []RolloutDisruptionBudgetParameters `json:"disruptionBudget" tf:"disruption_budget,omitempty"`
// Mode of the patch rollout.
// Possible values are ZONE_BY_ZONE and CONCURRENT_ZONES.
// +kubebuilder:validation:Required
Mode *string `json:"mode" tf:"mode,omitempty"`
}
type PostStepObservation struct {
}
type PostStepParameters struct {
// The ExecStepConfig for all Linux VMs targeted by the PatchJob.
// Structure is documented below.
// +kubebuilder:validation:Optional
LinuxExecStepConfig []LinuxExecStepConfigParameters `json:"linuxExecStepConfig,omitempty" tf:"linux_exec_step_config,omitempty"`
// The ExecStepConfig for all Windows VMs targeted by the PatchJob.
// Structure is documented below.
// +kubebuilder:validation:Optional
WindowsExecStepConfig []WindowsExecStepConfigParameters `json:"windowsExecStepConfig,omitempty" tf:"windows_exec_step_config,omitempty"`
}
type PreStepLinuxExecStepConfigObservation struct {
}
type PreStepLinuxExecStepConfigParameters struct {
// Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
// +kubebuilder:validation:Optional
AllowedSuccessCodes []*float64 `json:"allowedSuccessCodes,omitempty" tf:"allowed_success_codes,omitempty"`
// A Cloud Storage object containing the executable.
// Structure is documented below.
// +kubebuilder:validation:Optional
GcsObject []LinuxExecStepConfigGcsObjectParameters `json:"gcsObject,omitempty" tf:"gcs_object,omitempty"`
// The script interpreter to use to run the script. If no interpreter is specified the script will
// be executed directly, which will likely only succeed for scripts with shebang lines.
// Possible values are SHELL and POWERSHELL.
// +kubebuilder:validation:Optional
Interpreter *string `json:"interpreter,omitempty" tf:"interpreter,omitempty"`
// An absolute path to the executable on the VM.
// +kubebuilder:validation:Optional
LocalPath *string `json:"localPath,omitempty" tf:"local_path,omitempty"`
}
type PreStepObservation struct {
}
type PreStepParameters struct {
// The ExecStepConfig for all Linux VMs targeted by the PatchJob.
// Structure is documented below.
// +kubebuilder:validation:Optional
LinuxExecStepConfig []PreStepLinuxExecStepConfigParameters `json:"linuxExecStepConfig,omitempty" tf:"linux_exec_step_config,omitempty"`
// The ExecStepConfig for all Windows VMs targeted by the PatchJob.
// Structure is documented below.
// +kubebuilder:validation:Optional
WindowsExecStepConfig []PreStepWindowsExecStepConfigParameters `json:"windowsExecStepConfig,omitempty" tf:"windows_exec_step_config,omitempty"`
}
type PreStepWindowsExecStepConfigGcsObjectObservation struct {
}
type PreStepWindowsExecStepConfigGcsObjectParameters struct {
// Bucket of the Cloud Storage object.
// +kubebuilder:validation:Required
Bucket *string `json:"bucket" tf:"bucket,omitempty"`
// Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
// +kubebuilder:validation:Required
GenerationNumber *string `json:"generationNumber" tf:"generation_number,omitempty"`
// Name of the Cloud Storage object.
// +kubebuilder:validation:Required
Object *string `json:"object" tf:"object,omitempty"`
}
type PreStepWindowsExecStepConfigObservation struct {
}
type PreStepWindowsExecStepConfigParameters struct {
// Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
// +kubebuilder:validation:Optional
AllowedSuccessCodes []*float64 `json:"allowedSuccessCodes,omitempty" tf:"allowed_success_codes,omitempty"`
// A Cloud Storage object containing the executable.
// Structure is documented below.
// +kubebuilder:validation:Optional
GcsObject []PreStepWindowsExecStepConfigGcsObjectParameters `json:"gcsObject,omitempty" tf:"gcs_object,omitempty"`
// The script interpreter to use to run the script. If no interpreter is specified the script will
// be executed directly, which will likely only succeed for scripts with shebang lines.
// Possible values are SHELL and POWERSHELL.
// +kubebuilder:validation:Optional
Interpreter *string `json:"interpreter,omitempty" tf:"interpreter,omitempty"`
// An absolute path to the executable on the VM.
// +kubebuilder:validation:Optional
LocalPath *string `json:"localPath,omitempty" tf:"local_path,omitempty"`
}
type RecurringScheduleObservation struct {
// The time the last patch job ran successfully.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
LastExecuteTime *string `json:"lastExecuteTime,omitempty" tf:"last_execute_time,omitempty"`
// The time the next patch job is scheduled to run.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
NextExecuteTime *string `json:"nextExecuteTime,omitempty" tf:"next_execute_time,omitempty"`
}
type RecurringScheduleParameters struct {
// The end time at which a recurring patch deployment schedule is no longer active.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
// +kubebuilder:validation:Optional
EndTime *string `json:"endTime,omitempty" tf:"end_time,omitempty"`
// Schedule with monthly executions.
// Structure is documented below.
// +kubebuilder:validation:Optional
Monthly []MonthlyParameters `json:"monthly,omitempty" tf:"monthly,omitempty"`
// The time that the recurring schedule becomes effective. Defaults to createTime of the patch deployment.
// A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
// +kubebuilder:validation:Optional
StartTime *string `json:"startTime,omitempty" tf:"start_time,omitempty"`
// Time of the day to run a recurring deployment.
// Structure is documented below.
// +kubebuilder:validation:Required
TimeOfDay []TimeOfDayParameters `json:"timeOfDay" tf:"time_of_day,omitempty"`
// Defines the time zone that timeOfDay is relative to. The rules for daylight saving time are
// determined by the chosen time zone.
// Structure is documented below.
// +kubebuilder:validation:Required
TimeZone []TimeZoneParameters `json:"timeZone" tf:"time_zone,omitempty"`
// Schedule with weekly executions.
// Structure is documented below.
// +kubebuilder:validation:Optional
Weekly []WeeklyParameters `json:"weekly,omitempty" tf:"weekly,omitempty"`
}
type RolloutDisruptionBudgetObservation struct {
}
type RolloutDisruptionBudgetParameters struct {
// Specifies a fixed value.
// +kubebuilder:validation:Optional
Fixed *float64 `json:"fixed,omitempty" tf:"fixed,omitempty"`
// Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
// +kubebuilder:validation:Optional
Percentage *float64 `json:"percentage,omitempty" tf:"percentage,omitempty"`
}
type TimeOfDayObservation struct {
}
type TimeOfDayParameters struct {
// Hours of day in 24 hour format. Should be from 0 to 23.
// An API may choose to allow the value "24:00:00" for scenarios like business closing time.
// +kubebuilder:validation:Optional
Hours *float64 `json:"hours,omitempty" tf:"hours,omitempty"`
// Minutes of hour of day. Must be from 0 to 59.
// +kubebuilder:validation:Optional
Minutes *float64 `json:"minutes,omitempty" tf:"minutes,omitempty"`
// Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
// +kubebuilder:validation:Optional
Nanos *float64 `json:"nanos,omitempty" tf:"nanos,omitempty"`
// Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.
// +kubebuilder:validation:Optional
Seconds *float64 `json:"seconds,omitempty" tf:"seconds,omitempty"`
}
type TimeZoneObservation struct {
}
type TimeZoneParameters struct {
// IANA Time Zone Database time zone, e.g. "America/New_York".
// +kubebuilder:validation:Required
ID *string `json:"id" tf:"id,omitempty"`
// IANA Time Zone Database version number, e.g. "2019a".
// +kubebuilder:validation:Optional
Version *string `json:"version,omitempty" tf:"version,omitempty"`
}
type WeekDayOfMonthObservation struct {
}
type WeekDayOfMonthParameters struct {
// IANA Time Zone Database time zone, e.g. "America/New_York".
// Possible values are MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, and SUNDAY.
// +kubebuilder:validation:Required
DayOfWeek *string `json:"dayOfWeek" tf:"day_of_week,omitempty"`
// Week number in a month. 1-4 indicates the 1st to 4th week of the month. -1 indicates the last week of the month.
// +kubebuilder:validation:Required
WeekOrdinal *float64 `json:"weekOrdinal" tf:"week_ordinal,omitempty"`
}
type WeeklyObservation struct {
}
type WeeklyParameters struct {
// IANA Time Zone Database time zone, e.g. "America/New_York".
// Possible values are MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, and SUNDAY.
// +kubebuilder:validation:Required
DayOfWeek *string `json:"dayOfWeek" tf:"day_of_week,omitempty"`
}
type WindowsExecStepConfigGcsObjectObservation struct {
}
type WindowsExecStepConfigGcsObjectParameters struct {
// Bucket of the Cloud Storage object.
// +kubebuilder:validation:Required
Bucket *string `json:"bucket" tf:"bucket,omitempty"`
// Generation number of the Cloud Storage object. This is used to ensure that the ExecStep specified by this PatchJob does not change.
// +kubebuilder:validation:Required
GenerationNumber *string `json:"generationNumber" tf:"generation_number,omitempty"`
// Name of the Cloud Storage object.
// +kubebuilder:validation:Required
Object *string `json:"object" tf:"object,omitempty"`
}
type WindowsExecStepConfigObservation struct {
}
type WindowsExecStepConfigParameters struct {
// Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
// +kubebuilder:validation:Optional
AllowedSuccessCodes []*float64 `json:"allowedSuccessCodes,omitempty" tf:"allowed_success_codes,omitempty"`
// A Cloud Storage object containing the executable.
// Structure is documented below.
// +kubebuilder:validation:Optional
GcsObject []WindowsExecStepConfigGcsObjectParameters `json:"gcsObject,omitempty" tf:"gcs_object,omitempty"`
// The script interpreter to use to run the script. If no interpreter is specified the script will
// be executed directly, which will likely only succeed for scripts with shebang lines.
// Possible values are SHELL and POWERSHELL.
// +kubebuilder:validation:Optional
Interpreter *string `json:"interpreter,omitempty" tf:"interpreter,omitempty"`
// An absolute path to the executable on the VM.
// +kubebuilder:validation:Optional
LocalPath *string `json:"localPath,omitempty" tf:"local_path,omitempty"`
}
type WindowsUpdateObservation struct {
}
type WindowsUpdateParameters struct {
// Only apply updates of these windows update classifications. If empty, all updates are applied.
// Each value may be one of CRITICAL, SECURITY, DEFINITION, DRIVER, FEATURE_PACK, SERVICE_PACK, TOOL, UPDATE_ROLLUP, and UPDATE.
// +kubebuilder:validation:Optional
Classifications []*string `json:"classifications,omitempty" tf:"classifications,omitempty"`
// List of packages to exclude from update.
// +kubebuilder:validation:Optional
Excludes []*string `json:"excludes,omitempty" tf:"excludes,omitempty"`
// An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:' command.
// This field must not be used with any other patch configuration fields.
// +kubebuilder:validation:Optional
ExclusivePatches []*string `json:"exclusivePatches,omitempty" tf:"exclusive_patches,omitempty"`
}
// PatchDeploymentSpec defines the desired state of PatchDeployment
type PatchDeploymentSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider PatchDeploymentParameters `json:"forProvider"`
}
// PatchDeploymentStatus defines the observed state of PatchDeployment.
type PatchDeploymentStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider PatchDeploymentObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// PatchDeployment is the Schema for the PatchDeployments API. Patch deployments are configurations that individual patch jobs use to complete a patch.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}
type PatchDeployment struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PatchDeploymentSpec `json:"spec"`
Status PatchDeploymentStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// PatchDeploymentList contains a list of PatchDeployments
type PatchDeploymentList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PatchDeployment `json:"items"`
}
// Repository type metadata.
var (
PatchDeployment_Kind = "PatchDeployment"
PatchDeployment_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: PatchDeployment_Kind}.String()
PatchDeployment_KindAPIVersion = PatchDeployment_Kind + "." + CRDGroupVersion.String()
PatchDeployment_GroupVersionKind = CRDGroupVersion.WithKind(PatchDeployment_Kind)
)
func init() {
SchemeBuilder.Register(&PatchDeployment{}, &PatchDeploymentList{})
}