Commit d462f36
committed
[update] Skip
Starting with openstack-operator FR4
(openstack-k8s-operators/openstack-operator#1569, merged Oct 2025),
the `OpenStackVersion` admission webhook rejects `targetVersion`
changes when `spec.customContainerImages` are identical to those
tracked for the previously deployed version.
In CI, the greenfield deployment and the simulated version bump
share the same delorean hash, so `customContainerImages` are
legitimately identical across versions -- there are no new
container builds to reference. Retagging is a no-op.
Add the operator-provided `skip-custom-images-validation` annotation
before patching `targetVersion` in both update scripts. This
annotation is the intended escape hatch for automation where the
images are intentionally unchanged (see `ValidateUpdate` in
`openstackversion_webhook.go`).
The intermediate `openstackversionpatch.yaml` file is no longer
generated; the patch is passed inline instead.
Assisted-by: Cursor (claude-4.6-opus-high)
Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>customContainerImages webhook validation in CI1 parent bc37770 commit d462f36
2 files changed
Lines changed: 18 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 65 | | |
72 | 66 | | |
73 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 77 | | |
84 | 78 | | |
85 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
0 commit comments