Skip to content

Commit 0a2fc71

Browse files
authored
Merge pull request #765 from ianb-mp/helm
Allow feature gates to be set from Helm chart
2 parents 34dcef5 + 4507c14 commit 0a2fc71

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

deployment/sriov-network-operator-chart/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,11 @@ This section contains general parameters that apply to both the operator and dae
128128
| Name | Type | Default | description |
129129
| ---- | ---- | ------- | ----------- |
130130
| `sriovOperatorConfig.deploy` | bool | `false` | deploy SriovOperatorConfig custom resource |
131-
| `sriovOperatorConfig.configDaemonNodeSelector` | map[string]string | `{}` | node slectors for sriov-network-config-daemon |
131+
| `sriovOperatorConfig.configDaemonNodeSelector` | map[string]string | `{}` | node selectors for sriov-network-config-daemon |
132132
| `sriovOperatorConfig.logLevel` | int | `2` | log level for both operator and sriov-network-config-daemon |
133133
| `sriovOperatorConfig.disableDrain` | bool | `false` | disable node draining when configuring SR-IOV, set to true in case of a single node cluster or any other justifiable reason |
134134
| `sriovOperatorConfig.configurationMode` | string | `daemon` | sriov-network-config-daemon configuration mode. either `daemon` or `systemd` |
135+
| `sriovOperatorConfig.featureGates` | map[string]bool | `{}` | feature gates to enable/disable |
135136

136137
### Images parameters
137138

deployment/sriov-network-operator-chart/templates/sriovoperatorconfig.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,8 @@ spec:
1414
logLevel: {{ .Values.sriovOperatorConfig.logLevel }}
1515
disableDrain: {{ .Values.sriovOperatorConfig.disableDrain }}
1616
configurationMode: {{ .Values.sriovOperatorConfig.configurationMode }}
17+
{{- with .Values.sriovOperatorConfig.featureGates }}
18+
featureGates:
19+
{{- range $k, $v := .}}{{printf "%s: %t" $k $v | nindent 4 }}{{ end }}
20+
{{- end }}
1721
{{ end }}

deployment/sriov-network-operator-chart/values.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ operator:
8787
sriovOperatorConfig:
8888
# deploy sriovOperatorConfig CR with the below values
8989
deploy: false
90-
# node slectors for sriov-network-config-daemon
90+
# node selectors for sriov-network-config-daemon
9191
configDaemonNodeSelector: {}
9292
# log level for both operator and sriov-network-config-daemon
9393
logLevel: 2
@@ -96,6 +96,8 @@ sriovOperatorConfig:
9696
disableDrain: false
9797
# sriov-network-config-daemon configuration mode. either "daemon" or "systemd"
9898
configurationMode: daemon
99+
# feature gates to enable/disable
100+
featureGates: {}
99101

100102
# Example for supportedExtraNICs values ['MyNIC: "8086 1521 1520"']
101103
supportedExtraNICs: []

0 commit comments

Comments
 (0)