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