Commit 3397826
committed
[update] Retag
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.
During the update flow, `set_openstack_containers` updates the
operator CSV env vars with the new delorean tag, but nothing
updates the `OpenStackVersion` CR's `customContainerImages` -- they
still carry the tag from the initial greenfield deployment. When
`update_services` later patches `targetVersion`, the webhook
rejects the request because the custom images haven't changed.
Add a step after `set_openstack_containers` that reads the current
`customContainerImages` from the `OpenStackVersion` CR, replaces
every image tag with the new delorean md5 hash, and patches the
CR. This ensures the custom images reflect the new version before
`targetVersion` is changed, satisfying the webhook and guaranteeing
the update uses the correct container images.
Assisted-by: Cursor (claude-4.6-opus-high)
Signed-off-by: Roberto Alfieri <ralfieri@redhat.com>customContainerImages in OpenStackVersion CR during minor update1 parent bdf2911 commit 3397826
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 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 | + | |
56 | 98 | | |
57 | 99 | | |
58 | 100 | | |
| |||
0 commit comments