Skip to content

Commit 98a0c83

Browse files
jparrillclaude
andcommitted
chore(CNTRLPLANE-2678): regenerate CRDs for restoreSnapshotURL immutability
Generated CRD manifests reflecting the new CEL validation rule on the restoreSnapshotURL field. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>
1 parent a47f418 commit 98a0c83

36 files changed

Lines changed: 302 additions & 2 deletions

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/AAA_ungated.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2527,6 +2527,11 @@ spec:
25272527
- message: RestoreSnapshotURL shouldn't contain more than
25282528
1 entry
25292529
rule: self.size() <= 1
2530+
- message: restoreSnapshotURL is immutable
2531+
rule: self == oldSelf
2532+
- message: restoreSnapshotURL must be a valid URL with
2533+
scheme https or s3
2534+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
25302535
type:
25312536
description: |-
25322537
type is the kind of persistent storage implementation to use for etcd.
@@ -2537,6 +2542,10 @@ spec:
25372542
required:
25382543
- type
25392544
type: object
2545+
x-kubernetes-validations:
2546+
- message: restoreSnapshotURL is immutable
2547+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2548+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
25402549
required:
25412550
- storage
25422551
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/AutoNodeKarpenter.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2654,6 +2654,11 @@ spec:
26542654
- message: RestoreSnapshotURL shouldn't contain more than
26552655
1 entry
26562656
rule: self.size() <= 1
2657+
- message: restoreSnapshotURL is immutable
2658+
rule: self == oldSelf
2659+
- message: restoreSnapshotURL must be a valid URL with
2660+
scheme https or s3
2661+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
26572662
type:
26582663
description: |-
26592664
type is the kind of persistent storage implementation to use for etcd.
@@ -2664,6 +2669,10 @@ spec:
26642669
required:
26652670
- type
26662671
type: object
2672+
x-kubernetes-validations:
2673+
- message: restoreSnapshotURL is immutable
2674+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2675+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
26672676
required:
26682677
- storage
26692678
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterUpdateAcceptRisks.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,6 +2518,11 @@ spec:
25182518
- message: RestoreSnapshotURL shouldn't contain more than
25192519
1 entry
25202520
rule: self.size() <= 1
2521+
- message: restoreSnapshotURL is immutable
2522+
rule: self == oldSelf
2523+
- message: restoreSnapshotURL must be a valid URL with
2524+
scheme https or s3
2525+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
25212526
type:
25222527
description: |-
25232528
type is the kind of persistent storage implementation to use for etcd.
@@ -2528,6 +2533,10 @@ spec:
25282533
required:
25292534
- type
25302535
type: object
2536+
x-kubernetes-validations:
2537+
- message: restoreSnapshotURL is immutable
2538+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2539+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
25312540
required:
25322541
- storage
25332542
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ClusterVersionOperatorConfiguration.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,6 +2518,11 @@ spec:
25182518
- message: RestoreSnapshotURL shouldn't contain more than
25192519
1 entry
25202520
rule: self.size() <= 1
2521+
- message: restoreSnapshotURL is immutable
2522+
rule: self == oldSelf
2523+
- message: restoreSnapshotURL must be a valid URL with
2524+
scheme https or s3
2525+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
25212526
type:
25222527
description: |-
25232528
type is the kind of persistent storage implementation to use for etcd.
@@ -2528,6 +2533,10 @@ spec:
25282533
required:
25292534
- type
25302535
type: object
2536+
x-kubernetes-validations:
2537+
- message: restoreSnapshotURL is immutable
2538+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2539+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
25312540
required:
25322541
- storage
25332542
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDC.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,11 @@ spec:
28512851
- message: RestoreSnapshotURL shouldn't contain more than
28522852
1 entry
28532853
rule: self.size() <= 1
2854+
- message: restoreSnapshotURL is immutable
2855+
rule: self == oldSelf
2856+
- message: restoreSnapshotURL must be a valid URL with
2857+
scheme https or s3
2858+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
28542859
type:
28552860
description: |-
28562861
type is the kind of persistent storage implementation to use for etcd.
@@ -2861,6 +2866,10 @@ spec:
28612866
required:
28622867
- type
28632868
type: object
2869+
x-kubernetes-validations:
2870+
- message: restoreSnapshotURL is immutable
2871+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2872+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
28642873
required:
28652874
- storage
28662875
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUIDAndExtraClaimMappings.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,11 @@ spec:
29912991
- message: RestoreSnapshotURL shouldn't contain more than
29922992
1 entry
29932993
rule: self.size() <= 1
2994+
- message: restoreSnapshotURL is immutable
2995+
rule: self == oldSelf
2996+
- message: restoreSnapshotURL must be a valid URL with
2997+
scheme https or s3
2998+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
29942999
type:
29953000
description: |-
29963001
type is the kind of persistent storage implementation to use for etcd.
@@ -3001,6 +3006,10 @@ spec:
30013006
required:
30023007
- type
30033008
type: object
3009+
x-kubernetes-validations:
3010+
- message: restoreSnapshotURL is immutable
3011+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
3012+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
30043013
required:
30053014
- storage
30063015
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/ExternalOIDCWithUpstreamParity.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2972,6 +2972,11 @@ spec:
29722972
- message: RestoreSnapshotURL shouldn't contain more than
29732973
1 entry
29742974
rule: self.size() <= 1
2975+
- message: restoreSnapshotURL is immutable
2976+
rule: self == oldSelf
2977+
- message: restoreSnapshotURL must be a valid URL with
2978+
scheme https or s3
2979+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
29752980
type:
29762981
description: |-
29772982
type is the kind of persistent storage implementation to use for etcd.
@@ -2982,6 +2987,10 @@ spec:
29822987
required:
29832988
- type
29842989
type: object
2990+
x-kubernetes-validations:
2991+
- message: restoreSnapshotURL is immutable
2992+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2993+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
29852994
required:
29862995
- storage
29872996
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/GCPPlatform.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2518,6 +2518,11 @@ spec:
25182518
- message: RestoreSnapshotURL shouldn't contain more than
25192519
1 entry
25202520
rule: self.size() <= 1
2521+
- message: restoreSnapshotURL is immutable
2522+
rule: self == oldSelf
2523+
- message: restoreSnapshotURL must be a valid URL with
2524+
scheme https or s3
2525+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
25212526
type:
25222527
description: |-
25232528
type is the kind of persistent storage implementation to use for etcd.
@@ -2528,6 +2533,10 @@ spec:
25282533
required:
25292534
- type
25302535
type: object
2536+
x-kubernetes-validations:
2537+
- message: restoreSnapshotURL is immutable
2538+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2539+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
25312540
required:
25322541
- storage
25332542
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HCPEtcdBackup.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,6 +2583,11 @@ spec:
25832583
- message: RestoreSnapshotURL shouldn't contain more than
25842584
1 entry
25852585
rule: self.size() <= 1
2586+
- message: restoreSnapshotURL is immutable
2587+
rule: self == oldSelf
2588+
- message: restoreSnapshotURL must be a valid URL with
2589+
scheme https or s3
2590+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
25862591
type:
25872592
description: |-
25882593
type is the kind of persistent storage implementation to use for etcd.
@@ -2593,6 +2598,10 @@ spec:
25932598
required:
25942599
- type
25952600
type: object
2601+
x-kubernetes-validations:
2602+
- message: restoreSnapshotURL is immutable
2603+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2604+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
25962605
required:
25972606
- storage
25982607
type: object

api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests/hostedclusters.hypershift.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,6 +2540,11 @@ spec:
25402540
- message: RestoreSnapshotURL shouldn't contain more than
25412541
1 entry
25422542
rule: self.size() <= 1
2543+
- message: restoreSnapshotURL is immutable
2544+
rule: self == oldSelf
2545+
- message: restoreSnapshotURL must be a valid URL with
2546+
scheme https or s3
2547+
rule: self.size() == 0 || self[0].matches('^(https|s3)://.*')
25432548
type:
25442549
description: |-
25452550
type is the kind of persistent storage implementation to use for etcd.
@@ -2550,6 +2555,10 @@ spec:
25502555
required:
25512556
- type
25522557
type: object
2558+
x-kubernetes-validations:
2559+
- message: restoreSnapshotURL is immutable
2560+
rule: '!has(oldSelf.restoreSnapshotURL) || (has(self.restoreSnapshotURL)
2561+
&& self.restoreSnapshotURL == oldSelf.restoreSnapshotURL)'
25532562
required:
25542563
- storage
25552564
type: object

0 commit comments

Comments
 (0)