Commit c46b6f1
authored
fix(arc-tf): silence listener-resource drift via SSA + ignoreDifferences (#26)
## Summary
\`arc-tf\` Application has been showing OutOfSync because the
gha-runner-scale-set controller dynamically creates an
\`AutoscalingListener\` plus a paired \`Role\` / \`RoleBinding\` (named
\`<release>-<hash>-listener\`) at runtime — none of which are in the
chart's rendered output — and rotates hash annotations on them on every
reconcile.
Two parts to the fix:
1. **\`ServerSideApply=true\`** — ArgoCD respects field-manager
separation. The controller's mutations on annotations don't get
reverted, and ArgoCD doesn't try to manage fields it doesn't own.
2. **\`ignoreDifferences\`** extended to cover \`/metadata/annotations\`
on the dynamically-created \`Role\` and \`RoleBinding\` kinds (was
previously only \`AutoscalingListener\` + \`AutoscalingRunnerSet\`).
## Test plan
- [x] After merge: \`arc-tf\` Application reaches Synced + Healthy and
stays there across listener reconciles
- [x] Runner pod still spawns / picks up jobs / terminates as before
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 65666d9 commit c46b6f1
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
51 | 62 | | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
55 | 66 | | |
| 67 | + | |
56 | 68 | | |
0 commit comments