fix(helm): remove duplicate metrics service causing install failures#82
fix(helm): remove duplicate metrics service causing install failures#82ian-flores wants to merge 3 commits intomainfrom
Conversation
The auth_proxy_service.yaml in rbac/ creates the same team-operator-controller-manager-metrics-service as the one in metrics/metrics-service.yaml. When both rbac.enable and metrics.enable are true, Helm fails with "already exists". Add rm -f to helm-generate post-processing to prevent kubebuilder from re-introducing the duplicate.
|
Claude finished @ian-flores's task —— View job PR Review: fix(helm): remove duplicate metrics service causing install failures
Scope observationThis PR bundles two distinct changes: (1) the Helm duplicate-service fix from the title, and (2) a new audited jobs configuration feature. Consider whether splitting these into separate PRs would make review and changelog tracking clearer, since semantic-release will derive the version bump from the Helm chart fix —
|
|
Closing in favor of a clean branch from main. |
Summary
dist/chart/templates/rbac/auth_proxy_service.yamlwhich duplicates the metrics service already defined indist/chart/templates/metrics/metrics-service.yamlrm -fpost-processing step tomake helm-generateto prevent kubebuilder from re-introducing the fileContext
The duplicate was originally fixed in PR #44 (Jan 20) and comprehensively addressed in PR #60 (Feb 2), but was re-introduced in commit
ec76694("fix tests", Feb 3). Every release from v1.6.0 onward has both files, causingservices "team-operator-controller-manager-metrics-service" already existserrors when bothrbac.enableandmetrics.enableare true.Test plan
helm templaterenders only one metrics servicemake helm-generatedoes not re-createauth_proxy_service.yaml