@@ -8,7 +8,7 @@ _regex_match = regex.match
8
8
9
9
10
10
schema Kustomization:
11
- """
11
+ r """
12
12
Kustomization is the Schema for the kustomizations API.
13
13
14
14
Attributes
@@ -38,7 +38,7 @@ schema Kustomization:
38
38
39
39
40
40
schema KustomizeToolkitFluxcdIoV1KustomizationSpec:
41
- """
41
+ r """
42
42
KustomizationSpec defines the configuration to calculate the desired state
43
43
from a Source using Kustomize.
44
44
@@ -50,13 +50,22 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpec:
50
50
Components specifies relative paths to specifications of other Components.
51
51
decryption : KustomizeToolkitFluxcdIoV1KustomizationSpecDecryption, default is Undefined, optional
52
52
decryption
53
+ deletionPolicy : str, default is Undefined, optional
54
+ DeletionPolicy can be used to control garbage collection when this
55
+ Kustomization is deleted. Valid values are ('MirrorPrune', 'Delete',
56
+ 'Orphan'). 'MirrorPrune' mirrors the Prune field (orphan if false,
57
+ delete if true). Defaults to 'MirrorPrune'.
53
58
dependsOn : [KustomizeToolkitFluxcdIoV1KustomizationSpecDependsOnItems0], default is Undefined, optional
54
59
DependsOn may contain a meta.NamespacedObjectReference slice
55
60
with references to Kustomization resources that must be ready before this
56
61
Kustomization can be reconciled.
57
62
force : bool, default is Undefined, optional
58
63
Force instructs the controller to recreate resources
59
64
when patching fails due to an immutable field change.
65
+ healthCheckExprs : [KustomizeToolkitFluxcdIoV1KustomizationSpecHealthCheckExprsItems0], default is Undefined, optional
66
+ HealthCheckExprs is a list of healthcheck expressions for evaluating the
67
+ health of custom resources using Common Expression Language (CEL).
68
+ The expressions are evaluated only when Wait or HealthChecks are specified.
60
69
healthChecks : [KustomizeToolkitFluxcdIoV1KustomizationSpecHealthChecksItems0], default is Undefined, optional
61
70
A list of resources to be included in the health assessment.
62
71
images : [KustomizeToolkitFluxcdIoV1KustomizationSpecImagesItems0], default is Undefined, optional
@@ -114,10 +123,14 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpec:
114
123
115
124
decryption?: KustomizeToolkitFluxcdIoV1KustomizationSpecDecryption
116
125
126
+ deletionPolicy?: "MirrorPrune" | "Delete" | "Orphan"
127
+
117
128
dependsOn?: [KustomizeToolkitFluxcdIoV1KustomizationSpecDependsOnItems0]
118
129
119
130
force?: bool = False
120
131
132
+ healthCheckExprs?: [KustomizeToolkitFluxcdIoV1KustomizationSpecHealthCheckExprsItems0]
133
+
121
134
healthChecks?: [KustomizeToolkitFluxcdIoV1KustomizationSpecHealthChecksItems0]
122
135
123
136
images?: [KustomizeToolkitFluxcdIoV1KustomizationSpecImagesItems0]
@@ -166,7 +179,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpec:
166
179
167
180
168
181
schema KustomizeToolkitFluxcdIoV1KustomizationSpecCommonMetadata:
169
- """
182
+ r """
170
183
CommonMetadata specifies the common labels and annotations that are
171
184
applied to all resources. Any existing label or annotation will be
172
185
overridden if its key matches a common one.
@@ -186,7 +199,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecCommonMetadata:
186
199
187
200
188
201
schema KustomizeToolkitFluxcdIoV1KustomizationSpecDecryption:
189
- """
202
+ r """
190
203
Decrypt Kubernetes secrets before applying them on the cluster.
191
204
192
205
Attributes
@@ -204,7 +217,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecDecryption:
204
217
205
218
206
219
schema KustomizeToolkitFluxcdIoV1KustomizationSpecDecryptionSecretRef:
207
- """
220
+ r """
208
221
The secret name containing the private OpenPGP keys used for decryption.
209
222
210
223
Attributes
@@ -218,7 +231,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecDecryptionSecretRef:
218
231
219
232
220
233
schema KustomizeToolkitFluxcdIoV1KustomizationSpecDependsOnItems0:
221
- """
234
+ r """
222
235
NamespacedObjectReference contains enough information to locate the referenced Kubernetes resource object in any
223
236
namespace.
224
237
@@ -236,8 +249,41 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecDependsOnItems0:
236
249
namespace?: str
237
250
238
251
239
- schema KustomizeToolkitFluxcdIoV1KustomizationSpecHealthChecksItems0:
252
+ schema KustomizeToolkitFluxcdIoV1KustomizationSpecHealthCheckExprsItems0:
253
+ r"""
254
+ CustomHealthCheck defines the health check for custom resources.
255
+
256
+ Attributes
257
+ ----------
258
+ apiVersion : str, default is Undefined, required
259
+ APIVersion of the custom resource under evaluation.
260
+ current : str, default is Undefined, required
261
+ Current is the CEL expression that determines if the status
262
+ of the custom resource has reached the desired state.
263
+ failed : str, default is Undefined, optional
264
+ Failed is the CEL expression that determines if the status
265
+ of the custom resource has failed to reach the desired state.
266
+ inProgress : str, default is Undefined, optional
267
+ InProgress is the CEL expression that determines if the status
268
+ of the custom resource has not yet reached the desired state.
269
+ kind : str, default is Undefined, required
270
+ Kind of the custom resource under evaluation.
240
271
"""
272
+
273
+
274
+ apiVersion: str
275
+
276
+ current: str
277
+
278
+ failed?: str
279
+
280
+ inProgress?: str
281
+
282
+ kind: str
283
+
284
+
285
+ schema KustomizeToolkitFluxcdIoV1KustomizationSpecHealthChecksItems0:
286
+ r"""
241
287
NamespacedObjectKindReference contains enough information to locate the typed referenced Kubernetes resource object
242
288
in any namespace.
243
289
@@ -264,7 +310,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecHealthChecksItems0:
264
310
265
311
266
312
schema KustomizeToolkitFluxcdIoV1KustomizationSpecImagesItems0:
267
- """
313
+ r """
268
314
Image contains an image name, a new name, a new tag or digest, which will replace the original name and tag.
269
315
270
316
Attributes
@@ -291,7 +337,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecImagesItems0:
291
337
292
338
293
339
schema KustomizeToolkitFluxcdIoV1KustomizationSpecKubeConfig:
294
- """
340
+ r """
295
341
The KubeConfig for reconciling the Kustomization on a remote cluster.
296
342
When used in combination with KustomizationSpec.ServiceAccountName,
297
343
forces the controller to act on behalf of that Service Account at the
@@ -311,7 +357,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecKubeConfig:
311
357
312
358
313
359
schema KustomizeToolkitFluxcdIoV1KustomizationSpecKubeConfigSecretRef:
314
- """
360
+ r """
315
361
SecretRef holds the name of a secret that contains a key with
316
362
the kubeconfig file as the value. If no key is set, the key will default
317
363
to 'value'.
@@ -336,7 +382,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecKubeConfigSecretRef:
336
382
337
383
338
384
schema KustomizeToolkitFluxcdIoV1KustomizationSpecPatchesItems0:
339
- """
385
+ r """
340
386
Patch contains an inline StrategicMerge or JSON6902 patch, and the target the patch should
341
387
be applied to.
342
388
@@ -356,7 +402,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecPatchesItems0:
356
402
357
403
358
404
schema KustomizeToolkitFluxcdIoV1KustomizationSpecPatchesItems0Target:
359
- """
405
+ r """
360
406
Target points to the resources that the patch document should be applied to.
361
407
362
408
Attributes
@@ -405,7 +451,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecPatchesItems0Target:
405
451
406
452
407
453
schema KustomizeToolkitFluxcdIoV1KustomizationSpecPostBuild:
408
- """
454
+ r """
409
455
PostBuild describes which actions to perform on the YAML manifest
410
456
generated by building the kustomize overlay.
411
457
@@ -416,7 +462,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecPostBuild:
416
462
The variables defined in your YAML manifests that match any of the keys
417
463
defined in the map will be substituted with the set value.
418
464
Includes support for bash string replacement functions
419
- e.g. $\ {var:=default\ }, $\ {var:position\ } and $\ {var/substring/replacement\ }.
465
+ e.g. ${var:=default}, ${var:position} and ${var/substring/replacement}.
420
466
substituteFrom : [KustomizeToolkitFluxcdIoV1KustomizationSpecPostBuildSubstituteFromItems0], default is Undefined, optional
421
467
SubstituteFrom holds references to ConfigMaps and Secrets containing
422
468
the variables and their values to be substituted in the YAML manifests.
@@ -432,7 +478,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecPostBuild:
432
478
433
479
434
480
schema KustomizeToolkitFluxcdIoV1KustomizationSpecPostBuildSubstituteFromItems0:
435
- """
481
+ r """
436
482
SubstituteReference contains a reference to a resource containing
437
483
the variables name and value.
438
484
@@ -463,7 +509,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecPostBuildSubstituteFromItems0:
463
509
464
510
465
511
schema KustomizeToolkitFluxcdIoV1KustomizationSpecSourceRef:
466
- """
512
+ r """
467
513
Reference of the source where the kustomization file is.
468
514
469
515
Attributes
@@ -490,7 +536,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationSpecSourceRef:
490
536
491
537
492
538
schema KustomizeToolkitFluxcdIoV1KustomizationStatus:
493
- """
539
+ r """
494
540
KustomizationStatus defines the observed state of a kustomization.
495
541
496
542
Attributes
@@ -499,6 +545,12 @@ schema KustomizeToolkitFluxcdIoV1KustomizationStatus:
499
545
conditions
500
546
inventory : KustomizeToolkitFluxcdIoV1KustomizationStatusInventory, default is Undefined, optional
501
547
inventory
548
+ lastAppliedOriginRevision : str, default is Undefined, optional
549
+ The last successfully applied origin revision.
550
+ Equals the origin revision of the applied Artifact from the referenced Source.
551
+ Usually present on the Metadata of the applied Artifact and depends on the
552
+ Source type, e.g. for OCI it's the value associated with the key
553
+ "org.opencontainers.image.revision".
502
554
lastAppliedRevision : str, default is Undefined, optional
503
555
The last successfully applied revision.
504
556
Equals the Revision of the applied Artifact from the referenced Source.
@@ -517,6 +569,8 @@ schema KustomizeToolkitFluxcdIoV1KustomizationStatus:
517
569
518
570
inventory?: KustomizeToolkitFluxcdIoV1KustomizationStatusInventory
519
571
572
+ lastAppliedOriginRevision?: str
573
+
520
574
lastAppliedRevision?: str
521
575
522
576
lastAttemptedRevision?: str
@@ -527,24 +581,8 @@ schema KustomizeToolkitFluxcdIoV1KustomizationStatus:
527
581
528
582
529
583
schema KustomizeToolkitFluxcdIoV1KustomizationStatusConditionsItems0:
530
- """
584
+ r """
531
585
Condition contains details for one aspect of the current state of this API Resource.
532
- ---
533
- This struct is intended for direct use as an array at the field path .status.conditions. For example,
534
-
535
-
536
- type FooStatus struct{
537
- // Represents the observations of a foo's current state.
538
- // Known .status.conditions.type are: "Available", "Progressing", and "Degraded"
539
- // +patchMergeKey=type
540
- // +patchStrategy=merge
541
- // +listType=map
542
- // +listMapKey=type
543
- Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
544
-
545
-
546
- // other fields
547
- }
548
586
549
587
Attributes
550
588
----------
@@ -568,10 +606,6 @@ schema KustomizeToolkitFluxcdIoV1KustomizationStatusConditionsItems0:
568
606
status of the condition, one of True, False, Unknown.
569
607
$type : str, default is Undefined, required
570
608
type of condition in CamelCase or in foo.example.com/CamelCase.
571
- ---
572
- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
573
- useful (see .node.status.conditions), the ability to deconflict is important.
574
- The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
575
609
"""
576
610
577
611
@@ -599,7 +633,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationStatusConditionsItems0:
599
633
600
634
601
635
schema KustomizeToolkitFluxcdIoV1KustomizationStatusInventory:
602
- """
636
+ r """
603
637
Inventory contains the list of Kubernetes resource object references that
604
638
have been successfully applied.
605
639
@@ -614,7 +648,7 @@ schema KustomizeToolkitFluxcdIoV1KustomizationStatusInventory:
614
648
615
649
616
650
schema KustomizeToolkitFluxcdIoV1KustomizationStatusInventoryEntriesItems0:
617
- """
651
+ r """
618
652
ResourceRef contains the information necessary to locate a resource within a cluster.
619
653
620
654
Attributes
0 commit comments