-
Notifications
You must be signed in to change notification settings - Fork 354
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
feat(helm): add option to disable helm upgrade force flag #4866
feat(helm): add option to disable helm upgrade force flag #4866
Conversation
In general I'm in favor for adding option to use/not use force. The only thing I'm thinking is in which way the option should be defined. I wonder if we could define the flag as |
@jnummelin thank you for the feedback! i've changed the field to a bool pointer |
bb38b59
to
2a9ebb8
Compare
I've forgot to signoff on my commit. Re-pushed. |
@jnummelin ping here. anything I can do to get this over the finish line? |
This pull request has merge conflicts that need to be resolved. |
@emosbaugh unfortunately there's now some conflicts. Give me a ping once you've been able to resolve and I'll review |
2a9ebb8
to
fe0cacf
Compare
@jnummelin ive rebased |
pkg/apis/helm/v1beta1/chart_types.go
Outdated
Version string `json:"version,omitempty"` | ||
Namespace string `json:"namespace,omitempty"` | ||
Timeout string `json:"timeout,omitempty"` | ||
ForceUpgrade *bool `json:"forceUpgrade,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have the defaulting with kubebuilder here too, something like:
// +kubebuilder:default=true
// +optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jnummelin. Updated
This pull request has merge conflicts that need to be resolved. |
Signed-off-by: Ethan Mosbaugh <ethan@replicated.com>
Signed-off-by: Ethan Mosbaugh <ethan@replicated.com>
306f89a
to
fab233f
Compare
fab233f
to
4a1f18a
Compare
…type Signed-off-by: Ethan Mosbaugh <ethan@replicated.com>
Signed-off-by: Ethan Mosbaugh <ethan@replicated.com>
Signed-off-by: Ethan Mosbaugh <ethan@replicated.com>
4a1f18a
to
ffce675
Compare
@jnummelin i think we discussed backporting this to previous versions. is that something that will happen with the next release or something i can help with? |
Description
Adds the option
disableForceUpgrade
to the helm extensions chart spec.When set to true, the "helm upgrade --force" flag is not longer used when upgrading the the chart.
Fixes #4864
Type of change
How Has This Been Tested?
Checklist: