Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question/support] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? #13001

Open
mananmongia opened this issue May 3, 2024 · 1 comment

Comments

@mananmongia
Copy link

mananmongia commented May 3, 2024

This is about the issue we are facing in Kyverno when we use the --force flag.
I further need to understand the flow when we are using --force and when not using this flag so that I can further debug the issue.

For more details on the mentioned issue, refer to kyverno/kyverno#10144

When Kyverno's verify image policy is running on the controller, deployment is 

  1. fails when --force is leveraged: deployment fails with error autogen-verify-image: kyverno.io/verify-images annotation cannot be changed
  2. Passes without --forece and pods are deployed.
@mananmongia mananmongia changed the title What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? [question] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? May 3, 2024
@mananmongia mananmongia changed the title [question] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? [question/support ] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? May 3, 2024
@mananmongia mananmongia changed the title [question/support ] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? [question/support] What is the request/data/template flow when we leverage the --force flag and when we don't leverage it in the helm upgrade command? May 3, 2024
@gjenkins8
Copy link
Contributor

By default Helm does a "three-way strategic merge patch" which merges updates to the objects from the Helm chart, with changes that have been made external to Helm: https://helm.sh/docs/faq/changes_since_helm2/#improved-upgrade-strategy-3-way-strategic-merge-patches

--force tells helm to "replace" objects upon upgrade without this merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants