-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Describe the bug
We deploy image-mapper via ArgoCD. Typically, when lookup is used inside of HELM charts, we set an ignoreDifferences and the application is shown as healthy. Here, a lookup is used as well. The variable filled by this lookup, however, is used in the secret and the mutatingwebhookconfiguration.
If we were to enter either usage into ArgoCD's ignoreDifferences configuration, then the application would still show as healthy. But this can lead to just one of the two resources being synced. This leads to admission failures and creates image pull errors within the cluster.
We'd like to see an improvement to the CA & TLS generation to avoid this edge case, as it can have severe consequences on production clusters.
Tested with Version
HELM v0.4.54
To Reproduce
Steps to reproduce the behavior:
- Deploy HELM chart via ArgoCD
- Introduce ignoreDifferences to ignore the caBundle changes in the secret and mutatingwebhookconfiguration
- Rollout a change that only affects the mutatingwebhookconfiguration
- Observe that image pulls no longer work due to TLS failures
Expected behavior
The mutatingwebhook should somehow source the caBundle from the secret to avoid this edge case.
Screenshots
ArgoCD continuously shows the application to be out of sync due to the HELM lookup usage.
Additional context
N/A