mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-21 22:00:35 +00:00
Remove GLOBALCIDR, empty yaml if disabled
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
{{- if ne .Values.submariner.globalCidr "" }}
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: DaemonSet
|
kind: DaemonSet
|
||||||
metadata:
|
metadata:
|
||||||
@@ -21,11 +22,7 @@ spec:
|
|||||||
serviceAccountName: submariner-globalnet
|
serviceAccountName: submariner-globalnet
|
||||||
serviceAccount: submariner-globalnet
|
serviceAccount: submariner-globalnet
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- if eq .Values.submariner.globalCidr "" }}
|
|
||||||
nowhere: 'noplace'
|
|
||||||
{{- else }}
|
|
||||||
submariner.io/gateway: 'true'
|
submariner.io/gateway: 'true'
|
||||||
{{- end }}
|
|
||||||
containers:
|
containers:
|
||||||
- name: {{ template "submariner.fullname" . }}-globalnet
|
- name: {{ template "submariner.fullname" . }}-globalnet
|
||||||
image: submariner-globalnet:local
|
image: submariner-globalnet:local
|
||||||
@@ -33,8 +30,6 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: SUBMARINER_CLUSTERID
|
- name: SUBMARINER_CLUSTERID
|
||||||
value: '{{ .Values.submariner.clusterId }}'
|
value: '{{ .Values.submariner.clusterId }}'
|
||||||
- name: SUBMARINER_GLOBALCIDR
|
|
||||||
value: '{{ .Values.submariner.globalCidr }}'
|
|
||||||
- name: SUBMARINER_EXCLUDENS
|
- name: SUBMARINER_EXCLUDENS
|
||||||
value: 'submariner,kube-system,operators'
|
value: 'submariner,kube-system,operators'
|
||||||
- name: SUBMARINER_NAMESPACE
|
- name: SUBMARINER_NAMESPACE
|
||||||
@@ -56,4 +51,4 @@ spec:
|
|||||||
- name: host-slash
|
- name: host-slash
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /
|
path: /
|
||||||
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user