Repository navigation
ci-operator: Expose IP_POOL_AVAILABLE only when the step ip_pool has run - #5192
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
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 (5)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughClusterProfile mapping narrowed to us-east-1 for aws-ip-pools; IPPoolStep defers DEFAULT_IP_POOL_LEASE env emission until it actually runs; multi-stage environment now looks up the gated var for any non-empty profile; tests updated. ChangesIP Pool Lease Type Mapping and Deferred Env Var Emission
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 11 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test e2e |
eb02750 to
cddfbd4
Compare
|
/test e2e |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danilo-gemoli, Prucek 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 |
|
Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage. |
|
/override ci/prow/e2e |
|
@danilo-gemoli: Overrode contexts on behalf of danilo-gemoli: ci/prow/e2e 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. |
|
@danilo-gemoli: 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. |
Up until now, the
IP_POOL_AVAILABLEenv var has been exposed only for the tests that uses theawscluster profile.This logic is fragile and problematic when someone (like me) add a new cluster profile that supports the
BYOIPfeature and forget to update the code that exposes the variable.This PR changes the code such that the env variable only when the
ip_poolstep run, regardless of the cluster profile in use.ci-operator: Expose
IP_POOL_AVAILABLEonly when theip_poolstep has runThis PR changes ci-operator so the IP_POOL_AVAILABLE environment variable is published based on whether the ip_pool step actually ran, instead of being tied to specific cluster profiles.
What changed and why:
Practical impact for CI users/operators: