NO-ISSUE: add kustomize to osac-installer container image - #80431
Conversation
The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@omer-vishlitzky: This pull request explicitly references no jira issue. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughThe PR adds an explicit shell line-continuation in the Dockerfile RUN that installs Helm so the subsequent kustomize curl|tar extract remains part of the same chained command. ChangesContainer Image Build Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Suggested labels: Suggested reviewers:
🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…ac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com>
|
/pj-rehearse ack |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/retest |
|
/unhold |
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/retest |
|
/pj-rehearse ack |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eliorerz, jhernand, larsks, omer-vishlitzky, trewest The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@omer-vishlitzky: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
@larsks: changing LGTM is restricted to collaborators DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
…80431) * NO-ISSUE: add kustomize to osac-installer container image The refresh script needs `kustomize edit set replicas` to deploy fulfillment pods at zero replicas during the kustomize apply, preventing a race condition where database migrations are interrupted by a StatefulSet pod recreation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Update ci-operator/config/osac-project/osac-installer/osac-project-osac-installer-main.yaml Co-authored-by: Trey West <treywest45th@gmail.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Co-authored-by: Trey West <treywest45th@gmail.com>
Summary
Add the
kustomizebinary to the osac-installer container image, alongside the existinghelminstall.Why
The refresh script (
scripts/refresh-after-snapshot.sh) needskustomize edit set replicasto deploy fulfillment pods at zero replicas during the kustomize apply. This prevents a race condition where database migrations are interrupted by a StatefulSet pod recreation, leaving the database in a dirty state (osac-installer#260).Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
This PR updates the OpenShift CI configuration for the osac-installer image to add kustomize to the installer container alongside the existing Helm installation. The change is in the ci-operator Dockerfile snippet used for the osac-installer build: after installing Helm and moving the helm binary, the Dockerfile now preserves shell line-continuation so the subsequent kustomize download/extract (curl | tar) runs as part of the same multi-command RUN step.
Practically, this ensures kustomize is available inside the osac-installer image so the repository's refresh script (scripts/refresh-after-snapshot.sh) can use kustomize edit set replicas to bring fulfillment pods to zero during kustomize apply. That behavior prevents a race where StatefulSet pod recreation could interrupt database migrations and leave the database in a dirty/inconsistent state. The test plan is to verify the osac-installer image builds successfully with kustomize included.