Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add EnableGoCoverDir (backport #591) #602

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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