From 13b14ceaed11e07a90060c535754c60002321ea2 Mon Sep 17 00:00:00 2001 From: PoAn Yang Date: Wed, 15 Jan 2025 12:19:20 +0800 Subject: [PATCH] feat: add timeoutSeconds to ManagedChart Signed-off-by: PoAn Yang --- pkg/config/templates/rancherd-10-harvester.yaml | 2 ++ pkg/config/templates/rancherd-11-monitoring-crd.yaml | 1 + pkg/config/templates/rancherd-14-logging-crd.yaml | 1 + 3 files changed, 4 insertions(+) diff --git a/pkg/config/templates/rancherd-10-harvester.yaml b/pkg/config/templates/rancherd-10-harvester.yaml index 3d99eda3c..300b0bc13 100644 --- a/pkg/config/templates/rancherd-10-harvester.yaml +++ b/pkg/config/templates/rancherd-10-harvester.yaml @@ -76,6 +76,7 @@ resources: releaseName: harvester version: {{ .HarvesterChartVersion }} defaultNamespace: harvester-system + timeoutSeconds: 600 diff: comparePatches: - apiVersion: storage.k8s.io/v1 @@ -217,6 +218,7 @@ resources: version: {{ .HarvesterChartVersion }} defaultNamespace: harvester-system repoName: harvester-charts + timeoutSeconds: 60 # takeOwnership will force apply this chart without checking ownership in labels and annotations. # https://github.com/rancher/fleet/blob/ce9c0d6c0a455d61e87c0f19df79d0ee11a89eeb/pkg/helmdeployer/deployer.go#L323 # https://github.com/rancher/helm/blob/ee91a121e0aa301fcef2bfbc7184f96edd4b50f5/pkg/action/validate.go#L71-L76 diff --git a/pkg/config/templates/rancherd-11-monitoring-crd.yaml b/pkg/config/templates/rancherd-11-monitoring-crd.yaml index 1b18847ee..59ba9b78a 100644 --- a/pkg/config/templates/rancherd-11-monitoring-crd.yaml +++ b/pkg/config/templates/rancherd-11-monitoring-crd.yaml @@ -10,6 +10,7 @@ resources: version: {{ .MonitoringChartVersion }} defaultNamespace: cattle-monitoring-system repoName: harvester-charts + timeoutSeconds: 60 targets: - clusterName: local clusterSelector: diff --git a/pkg/config/templates/rancherd-14-logging-crd.yaml b/pkg/config/templates/rancherd-14-logging-crd.yaml index 525dacb3b..fb1eafad0 100644 --- a/pkg/config/templates/rancherd-14-logging-crd.yaml +++ b/pkg/config/templates/rancherd-14-logging-crd.yaml @@ -10,6 +10,7 @@ resources: version: {{ .LoggingChartVersion }} defaultNamespace: cattle-logging-system repoName: harvester-charts + timeoutSeconds: 60 targets: - clusterName: local clusterSelector: