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

[CMD/PKG] Adopted resource not replaced when using upgrade --install --force #11672

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

VaibhavSharma-47
Copy link
Contributor

@VaibhavSharma-47 VaibhavSharma-47 commented Dec 23, 2022

Signed-off-by: Vaibhav Sharma vaibhasharma199904@gmail.com

What this PR does / why we need it:
closes #11585
Adds the support for --force flag to be passed while performing an upgrade.

Special notes for your reviewer:

I saw a comment in the issue discussion regarding putting this behind a feature flag. I am not sure where such flags are maintained in the repo can someone please point that out to me.

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 23, 2022
Signed-off-by: Vaibhav Sharma <17532va@gmail.com>
@gjenkins8
Copy link
Contributor

I saw a comment in the issue discussion regarding putting this behind a feature flag. I am not sure where such flags are maintained in the repo can someone please point that out to me.

The PR looks good to me. If --force is not specified, the default (false) is the existing value.

@VaibhavSharma-47
Copy link
Contributor Author

@gjenkins8 Any update on this ?

@mattfarina
Copy link
Collaborator

This makes sense. It enables adopted resources on install to be force restarted. This is required for force to work on upgrade with the install flag.

@mattfarina mattfarina merged commit 6487d43 into helm:main Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

adopted resource not replaced when using upgrade --install --force
5 participants