From d29437e888084f2eaa4893824e552a7b1e710e2d Mon Sep 17 00:00:00 2001 From: PoAn Yang Date: Mon, 27 Nov 2023 11:34:23 +0800 Subject: [PATCH] feat: add EnableGoCoverDir (#591) Signed-off-by: PoAn Yang --- pkg/config/config.go | 5 +++-- pkg/config/templates/rancherd-10-harvester.yaml | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index bdc6c3cff..8d65839e4 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -122,8 +122,9 @@ type StorageClass struct { } type HarvesterChartValues struct { - StorageClass StorageClass `json:"storageClass,omitempty"` - Longhorn LonghornChartValues `json:"longhorn,omitempty"` + StorageClass StorageClass `json:"storageClass,omitempty"` + Longhorn LonghornChartValues `json:"longhorn,omitempty"` + EnableGoCoverDir bool `json:"enableGoCoverDir,omitempty"` } type Install struct { diff --git a/pkg/config/templates/rancherd-10-harvester.yaml b/pkg/config/templates/rancherd-10-harvester.yaml index 9afad20d8..2d85b616f 100644 --- a/pkg/config/templates/rancherd-10-harvester.yaml +++ b/pkg/config/templates/rancherd-10-harvester.yaml @@ -124,6 +124,9 @@ resources: storageClass: replicaCount: {{ .Harvester.StorageClass.ReplicaCount }} {{- end }} + {{- if .Harvester.EnableGoCoverDir }} + enableGoCoverDir: true + {{- end }} kubevirt: spec: monitorAccount: rancher-monitoring-operator