|
| 1 | +commit 9905f210161dae52cce4b26db560fbf120902945 |
| 2 | +Author: Ethan Mosbaugh < [email protected]> |
| 3 | +Date: Tue Oct 1 21:20:00 2024 -0700 |
| 4 | + |
| 5 | + fix: chart crd forceUpgrade field should be nil by default |
| 6 | + |
| 7 | + Signed-off-by: Ethan Mosbaugh < [email protected]> |
| 8 | + (cherry picked from commit a82ada54919f6d96d83ba1d1cb6e8d369a420563) |
| 9 | + (cherry picked from commit c92cd3bd3096e6ed96e44ed8592d021145677461) |
| 10 | + |
| 11 | +diff --git a/pkg/apis/helm/v1beta1/chart_types.go b/pkg/apis/helm/v1beta1/chart_types.go |
| 12 | +index f6832fc19..93a03c750 100644 |
| 13 | +--- a/pkg/apis/helm/v1beta1/chart_types.go |
| 14 | ++++ b/pkg/apis/helm/v1beta1/chart_types.go |
| 15 | +@@ -34,7 +34,6 @@ type ChartSpec struct { |
| 16 | + Namespace string `json:"namespace,omitempty"` |
| 17 | + Timeout string `json:"timeout,omitempty"` |
| 18 | + // ForceUpgrade when set to false, disables the use of the "--force" flag when upgrading the the chart (default: true). |
| 19 | +- // +kubebuilder:default=true |
| 20 | + // +optional |
| 21 | + ForceUpgrade *bool `json:"forceUpgrade,omitempty"` |
| 22 | + Order int `json:"order,omitempty"` |
| 23 | +diff --git a/pkg/apis/k0s/v1beta1/extensions.go b/pkg/apis/k0s/v1beta1/extensions.go |
| 24 | +index 6c44ec41a..4aaaadb24 100644 |
| 25 | +--- a/pkg/apis/k0s/v1beta1/extensions.go |
| 26 | ++++ b/pkg/apis/k0s/v1beta1/extensions.go |
| 27 | +@@ -102,7 +102,6 @@ type Chart struct { |
| 28 | + // +kubebuilder:validation:XIntOrString |
| 29 | + Timeout BackwardCompatibleDuration `json:"timeout,omitempty"` |
| 30 | + // ForceUpgrade when set to false, disables the use of the "--force" flag when upgrading the the chart (default: true). |
| 31 | +- // +kubebuilder:default=true |
| 32 | + // +optional |
| 33 | + ForceUpgrade *bool `json:"forceUpgrade,omitempty"` |
| 34 | + Order int `json:"order"` |
| 35 | +diff --git a/static/_crds/helm/helm.k0sproject.io_charts.yaml b/static/_crds/helm/helm.k0sproject.io_charts.yaml |
| 36 | +index 86edc7c5c..df06c5067 100644 |
| 37 | +--- a/static/_crds/helm/helm.k0sproject.io_charts.yaml |
| 38 | ++++ b/static/_crds/helm/helm.k0sproject.io_charts.yaml |
| 39 | +@@ -42,7 +42,6 @@ spec: |
| 40 | + chartName: |
| 41 | + type: string |
| 42 | + forceUpgrade: |
| 43 | +- default: true |
| 44 | + description: 'ForceUpgrade when set to false, disables the use of |
| 45 | + the "--force" flag when upgrading the the chart (default: true).' |
| 46 | + type: boolean |
| 47 | +diff --git a/static/_crds/v1beta1/k0s.k0sproject.io_clusterconfigs.yaml b/static/_crds/v1beta1/k0s.k0sproject.io_clusterconfigs.yaml |
| 48 | +index 66798aa3b..c81765a2f 100644 |
| 49 | +--- a/static/_crds/v1beta1/k0s.k0sproject.io_clusterconfigs.yaml |
| 50 | ++++ b/static/_crds/v1beta1/k0s.k0sproject.io_clusterconfigs.yaml |
| 51 | +@@ -101,7 +101,6 @@ spec: |
| 52 | + chartname: |
| 53 | + type: string |
| 54 | + forceUpgrade: |
| 55 | +- default: true |
| 56 | + description: 'ForceUpgrade when set to false, disables |
| 57 | + the use of the "--force" flag when upgrading the the |
| 58 | + chart (default: true).' |
0 commit comments