fix(arc): disable prune on arc-tf to break controller-vs-argocd loop#35
Merged
fix(arc): disable prune on arc-tf to break controller-vs-argocd loop#35
Conversation
The gha-runner-scale-set controller dynamically creates an AutoscalingListener plus a Role/RoleBinding pair named arc-tf-<hash>-listener, labeled with app.kubernetes.io/instance. ArgoCD's label-based tracking claims them as managed, but the chart does not render them, so each reconcile prunes them and the controller recreates them — keeping the Application stuck in a Progressing/OutOfSync loop. Disable prune on this Application; selfHeal still keeps the chart-rendered resources reconciled. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The arc-tf Application is stuck in a Progressing/OutOfSync loop. Live state shows ArgoCD repeatedly trying to prune four resources:
The listener triplet is created dynamically by the gha-runner-scale-set controller for each AutoscalingRunnerSet generation. The controller labels them with `app.kubernetes.io/instance: arc-tf`, so ArgoCD's default label-based tracking method claims them as managed. The chart does not render them, so with `prune: true` ArgoCD prunes them and the controller immediately recreates them.
Disable prune on this Application. selfHeal still reconciles chart-rendered resources; only the controller-owned dynamics stop being pruned.
Test plan
🤖 Generated with Claude Code