Skip to content

Commit 8708001

Browse files
committed
feat(chart): introduce extraEnv variable for all components
Signed-off-by: oujonny <[email protected]>
1 parent 66525ea commit 8708001

File tree

11 files changed

+83
-0
lines changed

11 files changed

+83
-0
lines changed

charts/kube-ovn-v2/templates/agent/agent-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ spec:
182182
value: "{{- .Values.features.ENABLE_BIND_LOCAL_IP }}"
183183
- name: DBUS_SYSTEM_BUS_ADDRESS
184184
value: "unix:path=/host/var/run/dbus/system_bus_socket"
185+
{{- with .Values.agent.extraEnv }}
186+
{{- toYaml . | nindent 10 }}
187+
{{- end }}
185188
volumeMounts:
186189
- name: usr-local-sbin
187190
mountPath: /usr/local/sbin

charts/kube-ovn-v2/templates/central/central-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ spec:
132132
value: "{{ .Values.networking.enableCompact }}"
133133
- name: OVN_VERSION_COMPATIBILITY
134134
value: '{{ include "kubeovn.ovn.versionCompatibility" . }}'
135+
{{- with .Values.central.extraEnv }}
136+
{{- toYaml . | nindent 12 }}
137+
{{- end }}
135138
{{- with .Values.central.resources }}
136139
resources:
137140
{{- toYaml . | trim | nindent 12 }}

charts/kube-ovn-v2/templates/controller/controller-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ spec:
193193
fieldPath: status.podIPs
194194
- name: ENABLE_BIND_LOCAL_IP
195195
value: "{{- .Values.features.ENABLE_BIND_LOCAL_IP }}"
196+
{{- with .Values.controller.extraEnv }}
197+
{{- toYaml . | nindent 18 }}
198+
{{- end }}
196199
volumeMounts:
197200
- mountPath: /etc/localtime
198201
name: localtime

charts/kube-ovn-v2/templates/ic/ic-controller-deploy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ spec:
9494
fieldPath: metadata.namespace
9595
- name: OVN_DB_IPS
9696
value: "{{ include "kubeovn.masterNodes" . | default (include "kubeovn.nodeIPs" .) }}"
97+
{{- with .Values.ic.extraEnv }}
98+
{{- toYaml . | nindent 12 }}
99+
{{- end }}
97100
resources:
98101
requests:
99102
cpu: 300m

charts/kube-ovn-v2/templates/monitor/monitor-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ spec:
120120
fieldPath: status.podIPs
121121
- name: ENABLE_BIND_LOCAL_IP
122122
value: "{{- .Values.features.ENABLE_BIND_LOCAL_IP }}"
123+
{{- with .Values.monitor.extraEnv }}
124+
{{- toYaml . | nindent 12 }}
125+
{{- end }}
123126
{{- with .Values.monitor.resources }}
124127
resources:
125128
{{- toYaml . | trim | nindent 12 }}

charts/kube-ovn-v2/templates/ovs-ovn/ovs-ovn-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ spec:
140140
value: "{{ .Values.ovsOvn.ovnRemoteProbeInterval }}"
141141
- name: OVN_REMOTE_OPENFLOW_INTERVAL
142142
value: "{{ .Values.ovsOvn.ovnRemoteOpenflowInterval }}"
143+
{{- with .Values.ovsOvn.extraEnv }}
144+
{{- toYaml . | nindent 12 }}
145+
{{- end }}
143146
volumeMounts:
144147
- mountPath: /usr/local/sbin
145148
name: usr-local-sbin

charts/kube-ovn-v2/templates/ovs-ovn/ovs-ovn-dpdk-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ spec:
7979
value: "{{ .Values.ovsOvn.ovnRemoteProbeInterval }}"
8080
- name: OVN_REMOTE_OPENFLOW_INTERVAL
8181
value: "{{ .Values.ovsOvn.ovnRemoteOpenflowInterval }}"
82+
{{- with .Values.ovsOvn.extraEnv }}
83+
{{- toYaml . | nindent 12 }}
84+
{{- end }}
8285
volumeMounts:
8386
- mountPath: /opt/ovs-config
8487
name: host-config-ovs

charts/kube-ovn-v2/templates/pinger/pinger-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ spec:
125125
valueFrom:
126126
fieldRef:
127127
fieldPath: spec.nodeName
128+
{{- with .Values.pinger.extraEnv }}
129+
{{- toYaml . | nindent 12 }}
130+
{{- end }}
128131
volumeMounts:
129132
- mountPath: /var/run/openvswitch
130133
name: host-run-ovs

charts/kube-ovn-v2/templates/speaker/speaker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ spec:
8181
valueFrom:
8282
fieldRef:
8383
fieldPath: status.podIP
84+
{{- with .Values.bgpSpeaker.extraEnv }}
85+
{{- toYaml . | nindent 12 }}
86+
{{- end }}
8487
{{- with .Values.bgpSpeaker.resources }}
8588
resources:
8689
{{- toYaml . | trim | nindent 12 }}

charts/kube-ovn-v2/templates/webhook/webhook-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ spec:
6363
fieldRef:
6464
apiVersion: v1
6565
fieldPath: status.podIP
66+
{{- with .Values.validatingWebhook.extraEnv }}
67+
{{- toYaml . | nindent 12 }}
68+
{{- end }}
6669
volumeMounts:
6770
- mountPath: /tmp/k8s-webhook-server/serving-certs
6871
name: cert

0 commit comments

Comments
 (0)