fix(weave): share release-derived trace service account - #672
fix(weave): share release-derived trace service account#672nikumar1206 wants to merge 3 commits into
Conversation
|
Confirmed how the four Weave-trace subcharts currently get their ServiceAccount: they're all aliases of The bigger issue: the three worker aliases hardcode Suggested designMirror the existing 1. In 2. In 3. In serviceAccount:
useWeaveTraceIdentity: false4. In serviceAccount:
useWeaveTraceIdentity: trueNo hardcoded Follow-up (not required for this PR)Once all workers are on the shared SA, the three per-worker entries in |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
charts/operator-wandb/tests/weave_trace_service_account_test.yaml (1)
37-93: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winTest Azure identity priority with Weave Trace identity enabled.
The worker tests enable only
useWeaveTraceIdentity. They do not cover the branch where Azure workload identity is also enabled. The helper selectswandb-bucket-accessbefore the release-derived Trace ServiceAccount in that case.Add a render test for one worker with valid Azure workload-identity values. Assert that the Pod uses the Azure shared ServiceAccount.
As per coding guidelines, “Exercise every meaningful branch in Helm templates with render or snapshot tests.”
🤖 Prompt for 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. In `@charts/operator-wandb/tests/weave_trace_service_account_test.yaml` around lines 37 - 93, Extend the worker render tests around the deployment assertions to cover the branch where Weave Trace identity and Azure workload identity are both enabled. Configure one worker with valid Azure workload-identity values, then assert its Pod uses the shared wandb-bucket-access ServiceAccount, preserving the existing release-derived identity tests for the non-Azure path.Source: Coding guidelines
🤖 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.
Nitpick comments:
In `@charts/operator-wandb/tests/weave_trace_service_account_test.yaml`:
- Around line 37-93: Extend the worker render tests around the deployment
assertions to cover the branch where Weave Trace identity and Azure workload
identity are both enabled. Configure one worker with valid Azure
workload-identity values, then assert its Pod uses the shared
wandb-bucket-access ServiceAccount, preserving the existing release-derived
identity tests for the non-Azure path.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 0de00d99-3060-438f-80fe-8693c562d1ad
⛔ Files ignored due to path filters (4)
charts/lumen/Chart.lockis excluded by!**/*.lockcharts/operator-wandb/Chart.lockis excluded by!**/*.lockcharts/orchestrator/Chart.lockis excluded by!**/*.locktest-configs/operator-wandb/__snapshots__/weave-trace-with-worker.snapis excluded by!**/*.snap
📒 Files selected for processing (10)
charts/lumen/Chart.yamlcharts/operator-wandb/Chart.yamlcharts/operator-wandb/tests/azure_storage_auth_test.yamlcharts/operator-wandb/tests/weave_trace_service_account_test.yamlcharts/operator-wandb/values.yamlcharts/orchestrator/Chart.yamlcharts/wandb-base/Chart.yamlcharts/wandb-base/templates/_helpers.tplcharts/wandb-base/templates/serviceaccount.yamlcharts/wandb-base/values.yaml
Summary
weaveservice unchanged.Summary by CodeRabbit
New Features
Bug Fixes
Chores