Skip to content

Commit

Permalink
feat: add EnableGoCoverDir (#591)
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <poan.yang@suse.com>
(cherry picked from commit d29437e)
  • Loading branch information
FrankYang0529 authored and Vicente-Cheng committed Nov 29, 2023
1 parent 018b7f4 commit 280eac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ type Webhook struct {
BasicAuth HTTPBasicAuth `json:"basicAuth,omitempty"`
}

type HarvesterChartValues struct {
EnableGoCoverDir bool `json:"enableGoCoverDir,omitempty"`
}

type Install struct {
Automatic bool `json:"automatic,omitempty"`
Mode string `json:"mode,omitempty"`
Expand All @@ -119,7 +123,8 @@ type Install struct {
ForceMBR bool `json:"forceMbr,omitempty"`
DataDisk string `json:"dataDisk,omitempty"`

Webhooks []Webhook `json:"webhooks,omitempty"`
Webhooks []Webhook `json:"webhooks,omitempty"`
Harvester HarvesterChartValues `json:"harvester,omitempty"`
}

type Wifi struct {
Expand Down
3 changes: 3 additions & 0 deletions pkg/config/templates/rancherd-10-harvester.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ resources:
ip: "{{ .Vip }}"
hwAddress: "{{ .VipHwAddr }}"
{{- end }}
{{- if .Harvester.EnableGoCoverDir }}
enableGoCoverDir: true
{{- end }}
kubevirt:
spec:
monitorAccount: rancher-monitoring-operator
Expand Down

0 comments on commit 280eac1

Please sign in to comment.