Skip to content

Commit 934c6d1

Browse files
authored
Ensure the harvester related managedchart has max history 10 instead of default value 2 (#1289)
Signed-off-by: Jian Wang <jian.wang@suse.com>
1 parent 198f752 commit 934c6d1

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

pkg/config/templates/rancherd-10-harvester.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ resources:
7777
version: {{ .HarvesterChartVersion }}
7878
defaultNamespace: harvester-system
7979
timeoutSeconds: 600
80+
maxHistory: 10
8081
diff:
8182
comparePatches:
8283
- apiVersion: storage.k8s.io/v1
@@ -222,6 +223,7 @@ resources:
222223
defaultNamespace: harvester-system
223224
repoName: harvester-charts
224225
timeoutSeconds: 600
226+
maxHistory: 10
225227
# takeOwnership will force apply this chart without checking ownership in labels and annotations.
226228
# https://github.com/rancher/fleet/blob/ce9c0d6c0a455d61e87c0f19df79d0ee11a89eeb/pkg/helmdeployer/deployer.go#L323
227229
# https://github.com/rancher/helm/blob/ee91a121e0aa301fcef2bfbc7184f96edd4b50f5/pkg/action/validate.go#L71-L76

pkg/config/templates/rancherd-11-monitoring-crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resources:
1111
defaultNamespace: cattle-monitoring-system
1212
repoName: harvester-charts
1313
timeoutSeconds: 600
14+
maxHistory: 10
1415
targets:
1516
- clusterName: local
1617
clusterSelector:

pkg/config/templates/rancherd-14-logging-crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resources:
1111
defaultNamespace: cattle-logging-system
1212
repoName: harvester-charts
1313
timeoutSeconds: 600
14+
maxHistory: 10
1415
targets:
1516
- clusterName: local
1617
clusterSelector:

pkg/config/templates/rancherd-15-kubeovn-operator-crd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ resources:
1111
defaultNamespace: kube-system
1212
repoName: harvester-charts
1313
timeoutSeconds: 600
14+
maxHistory: 10
1415
targets:
1516
- clusterName: local
1617
clusterSelector:

0 commit comments

Comments
 (0)