Skip to content

Commit

Permalink
Merge pull request #5099 from k0sproject/backport-5077-to-release-1.28
Browse files Browse the repository at this point in the history
[Backport release-1.28] fix: chart crd forceUpgrade field should be nil by default
  • Loading branch information
jnummelin authored Oct 28, 2024
2 parents 8e2359b + 05e48b6 commit bb26edb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/apis/helm/v1beta1/chart_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ type ChartSpec struct {
Namespace string `json:"namespace,omitempty"`
Timeout string `json:"timeout,omitempty"`
// ForceUpgrade when set to false, disables the use of the "--force" flag when upgrading the the chart (default: true).
// +kubebuilder:default=true
// +optional
ForceUpgrade *bool `json:"forceUpgrade,omitempty"`
Order int `json:"order,omitempty"`
Expand Down
1 change: 0 additions & 1 deletion pkg/apis/k0s/v1beta1/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ type Chart struct {
TargetNS string `json:"namespace"`
Timeout time.Duration `json:"timeout"`
// ForceUpgrade when set to false, disables the use of the "--force" flag when upgrading the the chart (default: true).
// +kubebuilder:default=true
// +optional
ForceUpgrade *bool `json:"forceUpgrade,omitempty"`
Order int `json:"order"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ spec:
chartName:
type: string
forceUpgrade:
default: true
description: 'ForceUpgrade when set to false, disables the use of
the "--force" flag when upgrading the the chart (default: true).'
type: boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ spec:
chartname:
type: string
forceUpgrade:
default: true
description: 'ForceUpgrade when set to false, disables
the use of the "--force" flag when upgrading the the
chart (default: true).'
Expand Down

0 comments on commit bb26edb

Please # to comment.