Commit a47f418
feat(CNTRLPLANE-2678): enforce restoreSnapshotURL immutability via CEL
Add CEL validation rule to prevent day-2 modifications of the
restoreSnapshotURL field. This ensures the field can only be set at
creation time, which aligns with the existing API contract and makes
the OADP restoration workflow safe without changing the field semantics.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Juan Manuel Parrilla Madrid <jparrill@redhat.com>1 parent 02c222e commit a47f418
2 files changed
Lines changed: 395 additions & 0 deletions
File tree
- api/hypershift/v1beta1
- cmd/install/assets/crds/hypershift-operator/tests/hostedclusters.hypershift.openshift.io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1924 | 1924 | | |
1925 | 1925 | | |
1926 | 1926 | | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
1927 | 1932 | | |
1928 | 1933 | | |
1929 | 1934 | | |
| |||
1952 | 1957 | | |
1953 | 1958 | | |
1954 | 1959 | | |
| 1960 | + | |
| 1961 | + | |
1955 | 1962 | | |
1956 | 1963 | | |
1957 | 1964 | | |
| |||
0 commit comments