NO-JIRA: chore: default 24h cluster expiration in integration and stage - #806
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (9)
Included review availability: Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe change adds an optional ChangesCluster expiration configuration
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant EnvironmentConfig
participant HelmConfiguration
participant PlatformAPI
EnvironmentConfig->>HelmConfiguration: set cluster_lifecycle.default_expiration
HelmConfiguration->>PlatformAPI: pass --default-cluster-expiration when non-empty
PlatformAPI->>PlatformAPI: apply the configured default expiration
Suggested reviewers: Merge Risk: ⚪ Minimal · up to The expiration configuration is consistent across environments and preserves the intended optional behavior. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Enable platform-api's --default-cluster-expiration so clusters created without an explicit spec.expirationTimestamp are auto-expired 24h after creation in the integration and stage environments. Other environments are unaffected (empty value = flag omitted = disabled). - platform-api chart: render --default-cluster-expiration only when platformApi.app.args.defaultClusterExpiration is set (default empty) - config: new cluster_lifecycle.default_expiration key (global default empty), overridden to 24h in integration and stage; wired into the chart via applications.regional-cluster.platformApi - regenerate deploy/ overlays via render.py Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7fd0d3e to
e8cb5f2
Compare
|
/test on-demand-e2e |
|
@typeid: 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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdoan1 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 |
|
/hold |
|
/unhold |
What
Enable platform-api's
--default-cluster-expirationin the integration and stage environments so clusters created without an explicitspec.expirationTimestampare automatically expired 24h after creation.Why
Keeps non-production environments from accumulating orphaned test clusters. Callers can still override by supplying their own
expirationTimestampin the create request.Changes
argocd/config/regional-cluster/platform-api/): render--default-cluster-expirationonly whenplatformApi.app.args.defaultClusterExpirationis set; default is empty (flag omitted = disabled), so environments without a value are unaffected.cluster_lifecycle.default_expirationkey inconfig/defaults.yaml(global default empty), overridden to24hinconfig/integration/defaults.yamlandconfig/stage/defaults.yaml. Wired into the chart viaapplications.regional-cluster.platformApi, following the existing per-env application-values pattern.deploy/overlays viarender.py.Notes
24h, not1d— the flag is a Gotime.Duration(max unit is hours).Verification
render.py:argocd-values-regional-cluster.yamlrendersdefaultClusterExpiration: 24hfor integration and stage; empty ('') elsewhere.helm templaterenders the flag when the value is set and omits it when empty.🤖 Generated with Claude Code