11{{ if .Values.npDiscovery.enabled }}
2- {{- $rearControllerConfig := (merge (dict "name" "rear-controller " "module" "rear-controller ") .) -}}
2+ {{- $npDiscoveryConfig := (merge (dict "name" "np-discovery " "module" "np-discovery ") .) -}}
33apiVersion : apps/v1
44kind : Deployment
55metadata :
66 labels :
7- {{- include "fluidos.labels" $rearControllerConfig | nindent 4 }}
7+ {{- include "fluidos.labels" $npDiscoveryConfig | nindent 4 }}
88 name : np-fluidos-discovery
99 namespace : {{ .Release.Namespace }}
1010spec :
1111 replicas : 1
1212 selector :
1313 matchLabels :
14- {{- include "fluidos.labels" $rearControllerConfig | nindent 6 }}
14+ {{- include "fluidos.labels" $npDiscoveryConfig | nindent 6 }}
1515 template :
1616 metadata :
1717 {{ if .Values.rearController.pod.annotations }}
1818 annotations :
1919 {{- toYaml .Values.rearController.pod.annotations | nindent 8 }}
2020 {{ end }}
2121 labels :
22- {{- include "fluidos.labels" $rearControllerConfig | nindent 8 }}
22+ {{- include "fluidos.labels" $npDiscoveryConfig | nindent 8 }}
2323 {{ if .Values.rearController.pod.labels }}
2424 {{ toYaml .Values.rearController.pod.labels | nindent 8 }}
2525 {{ end }}
@@ -32,17 +32,16 @@ spec:
3232 podAffinityTerm :
3333 labelSelector :
3434 matchLabels :
35- {{- include "fluidos.labels" $rearControllerConfig | nindent 18 }}
35+ {{- include "fluidos.labels" $npDiscoveryConfig | nindent 18 }}
3636 topologyKey : kubernetes.io/hostname
3737 {{- end }}
3838 securityContext :
39- {{- include "fluidos.podSecurityContext" $rearControllerConfig | nindent 8 }}
40- serviceAccountName : {{ include "fluidos.prefixedName" $rearControllerConfig }}
39+ {{- include "fluidos.podSecurityContext" $npDiscoveryConfig | nindent 8 }}
40+ serviceAccountName : {{ include "fluidos.prefixedName" $npDiscoveryConfig }}
4141 containers :
4242 - image : {{ .Values.npDiscovery.imageName }}
43- imagePullPolicy : {{ .Values.pullPolicy }}
4443 securityContext :
45- {{- include "fluidos.containerSecurityContext" $rearControllerConfig | nindent 10 }}
44+ {{- include "fluidos.containerSecurityContext" $npDiscoveryConfig | nindent 10 }}
4645 name : {{ .Values.npDiscovery.name }}
4746 resources : {{- toYaml .Values.rearController.pod.resources | nindent 10 }}
4847 env :
0 commit comments