Skip to content

Commit 8fc41de

Browse files
authored
fix: eliminating 'MAINTENANCE_OPERATOR_<xxx>' envs if 'useRequestor' is false (#1808)
Users should not see the following env variables, under network-operator pod, in case `useRequestor=false` ``` - name: MAINTENANCE_OPERATOR_ENABLED value: "false" - name: MAINTENANCE_OPERATOR_REQUESTOR_ID value: nvidia.network-operator-driver-upgrade-controller - name: MAINTENANCE_OPERATOR_NODE_MAINTENANCE_PREFIX value: network-operator - name: MAINTENANCE_OPERATOR_REQUESTOR_NAMESPACE value: default ```
2 parents 7d898bc + 035bfb7 commit 8fc41de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployment/network-operator/templates/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spec:
9494
value: "{{ .repository }}/{{ .image }}:{{ .version }}"
9595
{{- end }}
9696
{{- end }}
97-
{{- if .Values.maintenanceOperator.enabled }}
97+
{{- if .Values.operator.maintenanceOperator.useRequestor }}
9898
- name: MAINTENANCE_OPERATOR_ENABLED
9999
value: "{{ .Values.operator.maintenanceOperator.useRequestor }}"
100100
- name: MAINTENANCE_OPERATOR_REQUESTOR_ID

0 commit comments

Comments
 (0)