Mutatingwebhook seems to add quotes for resources.*.cpu that leads to constant diffs in ArgoCD #2874
Open
7 tasks done
Labels
bug
Something isn't working
community
Community contribution
needs triage
Requires review from the maintainers
Checks
Controller Version
v0.27.5
Helm Chart Version
No response
CertManager Version
No response
Deployment Method
ArgoCD
cert-manager installation
cert-manager is not involved in this problem.
Checks
Resource Definitions
To Reproduce
If you do the same for a RunnerSet, the controller-webhook won't add the quotes to the cpus field.
Describe the bug
We are managing our RunnerDeployments and RunnerSets with a basic helm chart.
This helm chart contains:
Since toYaml always removes quotes (see helm/helm#4262) the manifest always renders without quotes. Using toYaml for resources is best practice and also comes when creating a new helm template via
helm create templatename
and using any other mechanism or code in this place would be very very workaround-ish.When using this helm chart in ArgoCD, ArgoCD always tries to enforce this rendered manifest without the quotes. For all RunnerDeployment applications this shows a constant diff. It works fine for RunnerSets.
Describe the expected behavior
I would expect the mutating webhook to not add quotes to the cpu field for RunnerDeployments (just like it doesn't for RunnerSets).
Whole Controller Logs
The text was updated successfully, but these errors were encountered: