HYPERFLEET-1121 - feat: add safe-to-evict annotation to maestro agent/db/mqtt pods#50
Conversation
|
Skipping CI for Draft Pull Request. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe umbrella Helm chart Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@helm/maestro/Chart.yaml`:
- Around line 10-15: The Chart.yaml file uses `ref=main` for both the
maestro-server and maestro-agent chart repository references, which are mutable
branch references creating supply chain risk. Replace `ref=main` with the
immutable commit SHA or tag that corresponds to chart version 0.1.1 for both the
maestro-server repository (currently at line 11) and the maestro-agent
repository (currently at line 15). Additionally, create or update a Chart.lock
file to record the resolved immutable digests and dependencies, ensuring
reproducible and deterministic Helm chart deployments.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Central YAML (base), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 87a86a77-b079-4c76-9508-3ec31180fc57
📒 Files selected for processing (2)
helm/maestro/Chart.yamlhelm/maestro/values.yaml
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
openshift-hyperfleet/architecture(manual)openshift-hyperfleet/hyperfleet-api(manual)openshift-hyperfleet/hyperfleet-sentinel(manual)openshift-hyperfleet/hyperfleet-adapter(manual)openshift-hyperfleet/hyperfleet-broker(manual)
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rafabene 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 |
a96f995
into
openshift-hyperfleet:main
Summary
podAnnotationswithcluster-autoscaler.kubernetes.io/safe-to-evict: "false"to maestro-agent, maestro-db (postgresql), and maestro-mqtt (mosquitto) pod templatespodAnnotationshooks from HYPERFLEET-1120 - feat(charts): expose podAnnotations and priorityClassName on agent/postgresql/mosquitto templates openshift-online/maestro#542Verification
Tested locally on kind cluster with upstream PR branch — all three deployments render the annotation:
Test plan
helm dependency update helm/maestrosucceedsmake install-maestro DRY_RUN=truepasseskubectl get deploy maestro-agent maestro-db maestro-mqtt -n maestro -o jsonpath='{range .items[*]}{.metadata.name}: {.spec.template.metadata.annotations}{"\n"}{end}'shows annotation on all threeScaleDownevents targeting these pods over 7-day observation window