Closed cyberjpb1 closed 2 months ago
This would break every service mesh and sidecar-based injection. Drift correction in Flux helm-controller is about rolling back changes made to fields specified in source aka the chart. A sidecar is an addition, so it doesn't get removed.
Okay, thanks for the quick reply.
Describe the bug
The Drift detection/correction seems to work well and if I try to change for example the replicas in the Deployment manifest directly in the cluster, FluxCD will put back the original value contained in the Git repo.
But in case I add a new container by changing Deployment manifest directly in the cluster, FluxCD/Helm does not seem to detect it.
Steps to reproduce
Add this YAML code to de Deployment manifest directly in the cluster :
Expected behavior
Flux should detect the addition of the new container in the deployment manifest and remove it since it does not exist in the Helm Chart deployment manifest under the Git repository.
Screenshots and recordings
No response
OS / Distro
Ubuntu 20.04
Flux version
v2.3.0
Flux check
N/A
Git provider
Azure DevOps Git
Container Registry provider
Azure Container Registry
Additional context
No response
Code of Conduct