Skip to content

Commit

Permalink
fix: chart crd forceUpgrade field should be nil by default
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Mosbaugh <ethan@replicated.com>
(cherry picked from commit a82ada5)
(cherry picked from commit c92cd3b)
  • Loading branch information
emosbaugh authored and github-actions[bot] committed Oct 3, 2024
1 parent 0fb1b47 commit 9905f21
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 @@ -102,7 +102,6 @@ type Chart struct {
// +kubebuilder:validation:XIntOrString
Timeout BackwardCompatibleDuration `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"`
Expand Down
1 change: 0 additions & 1 deletion static/_crds/helm/helm.k0sproject.io_charts.yaml
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
1 change: 0 additions & 1 deletion static/_crds/v1beta1/k0s.k0sproject.io_clusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,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 9905f21

Please sign in to comment.