Open aDisplayName opened 1 month ago
keep it alive
also meet this issue, any updates?
keep it alive
I found if the helm charts contain crd, then all the resources will be added the helm/resource-policy, when I delete the crds from the helm charts, it will be okay.
Is there an existing issue for this?
Current Behavior
helm/resource-policy: keep
, but we could not figure out why. By searching the source code of their helm charts, we can only see the crds are annotated with such setting.Using
argo-workflows:0.41.14
as an example, the only resources annotated withhelm.sh/resource-policy: keep
are those under/templates/crds
: https://github.com/search?q=repo%3Aargoproj%2Fargo-helm+path%3A%2Fcharts%2Fargo-workflows%2F**+%22resource-policy%22&type=codeBut when installing via fleet config:
The resulted deployments are annotated with
helm.sh/resource-policy
set tokeep
Expected Behavior
The workloads are not annotated with
helm.sh/resource-policy: keep
unless it is defined in helm charts.Steps To Reproduce
The sample fleet yaml config can be located at https://github.com/aDisplayName/bugsamplecode/tree/main/20240808
Environment
Logs
No response
Anything else?
No response