Skip to content

Track CustomContainerImages and prevent minor updates without image c…#1582

Closed
dprince wants to merge 1 commit into
openstack-k8s-operators:mainfrom
dprince:add_replace_directive
Closed

Track CustomContainerImages and prevent minor updates without image c…#1582
dprince wants to merge 1 commit into
openstack-k8s-operators:mainfrom
dprince:add_replace_directive

Conversation

@dprince

@dprince dprince commented Aug 28, 2025

Copy link
Copy Markdown
Contributor

…hanges

Add tracking and validation to ensure CustomContainerImages are updated when changing targetVersion during minor updates:

  • Add TrackedCustomImages field to OpenStackVersionStatus to track CustomContainerImages used for each version
  • Implement validation webhook logic to prevent targetVersion updates when CustomContainerImages remain unchanged from previous version
  • Add helper functions for deep comparison of CustomContainerImages
  • Update controller to automatically track CustomContainerImages for each processed target version
  • Generate updated CRD manifests with new tracking field

This prevents inconsistent deployments where users update the target version but forget to update associated custom container images, ensuring proper version tracking and validation during minor updates.

Users can skip all validations related to this commit by setting the core.openstack.org/skip-custom-images-validation metadata annotations.

Co-Authored-By: Claude noreply@anthropic.com

Jira: OSPRH-19183

…hanges

Add tracking and validation to ensure CustomContainerImages are updated
when changing targetVersion during minor updates:

 - Add TrackedCustomImages field to OpenStackVersionStatus to track
   CustomContainerImages used for each version
 - Implement validation webhook logic to prevent targetVersion updates
   when CustomContainerImages remain unchanged from previous version
 - Add helper functions for deep comparison of CustomContainerImages
 - Update controller to automatically track CustomContainerImages
   for each processed target version
 - Generate updated CRD manifests with new tracking field

This prevents inconsistent deployments where users update the target
version but forget to update associated custom container images,
ensuring proper version tracking and validation during minor updates.

Users can skip all validations related to this commit by
setting the core.openstack.org/skip-custom-images-validation
metadata annotations.

Co-Authored-By: Claude <noreply@anthropic.com>

Jira: OSPRH-19183
@openshift-ci openshift-ci Bot requested review from olliewalsh and stuggi August 28, 2025 23:48
@openshift-ci

openshift-ci Bot commented Aug 28, 2025

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dprince

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dprince dprince closed this Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant