2022-03-14 15:21:40 +00:00
|
|
|
--- charts-original/templates/cilium-operator/deployment.yaml
|
|
|
|
+++ charts/templates/cilium-operator/deployment.yaml
|
2022-06-16 15:12:29 +00:00
|
|
|
@@ -1,4 +1,11 @@
|
|
|
|
{{- if .Values.operator.enabled }}
|
|
|
|
+{{- if empty .Values.global.clusterCIDRv4 }}
|
|
|
|
+{{- $_ := set .Values.ipv4 "enabled" false -}}
|
|
|
|
+{{- end }}
|
|
|
|
+
|
|
|
|
+{{- if not (empty .Values.global.clusterCIDRv6) }}
|
|
|
|
+{{- $_ := set .Values.ipv6 "enabled" true -}}
|
|
|
|
+{{- end }}
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
@@ -53,7 +60,7 @@
|
2022-03-14 15:21:40 +00:00
|
|
|
{{- end }}
|
|
|
|
containers:
|
|
|
|
- name: cilium-operator
|
|
|
|
- image: {{ include "cilium.operator.image" . }}
|
|
|
|
+ image: "{{ template "system_default_registry" . }}{{ include "cilium.operator.image" . }}"
|
|
|
|
imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
|
|
|
|
command:
|
|
|
|
- cilium-operator-{{ include "cilium.operator.cloud" . }}
|