@@ -6,19 +6,19 @@ metadata:
66 name : {{ .Release.Name }}
77 namespace : {{ .Release.Namespace }}
88 annotations :
9- {{- range $key, $value := .Values.annotations }}
9+ {{- range $key, $value := .Values.deployment. annotations }}
1010 {{ $key }}: {{ $value | quote }}
1111 {{- end }}
1212spec :
13- replicas : {{ .Values.replicas }}
13+ replicas : {{ .Values.deployment. replicas }}
1414 selector :
1515 matchLabels :
1616 {{- include "api7-ingress-controller-manager.selectorLabels" . | nindent 6 }}
1717 template :
1818 metadata :
1919 annotations :
20- {{- if .Values.podAnnotations }}
21- {{- range $key, $value := $.Values.podAnnotations }}
20+ {{- if .Values.deployment. podAnnotations }}
21+ {{- range $key, $value := $.Values.deployment. podAnnotations }}
2222 {{ $key }}: {{ $value | quote }}
2323 {{- end }}
2424 {{- end }}
3535 valueFrom :
3636 fieldRef :
3737 fieldPath : metadata.name
38- image : " {{ .Values.image.repository }}:{{ .Values.image.tag }}"
38+ image : " {{ .Values.deployment. image.repository }}:{{ .Values.deployment .image.tag }}"
3939 volumeMounts :
4040 - name : {{ .Release.Name }}-ingress-config
4141 mountPath : /app/conf/config.yaml
@@ -61,20 +61,20 @@ spec:
6161 cpu : 10m
6262 memory : 64Mi
6363 securityContext :
64- {{- toYaml .Values.podSecurityContext | nindent 10 }}
65- {{- with .Values.nodeSelector }}
64+ {{- toYaml .Values.deployment. podSecurityContext | nindent 10 }}
65+ {{- with .Values.deployment. nodeSelector }}
6666 nodeSelector :
6767 {{- toYaml . | nindent 8 }}
6868 {{- end }}
69- {{- with .Values.tolerations }}
69+ {{- with .Values.deployment. tolerations }}
7070 tolerations :
7171 {{- toYaml . | nindent 8 }}
7272 {{- end }}
73- {{- with .Values.affinity }}
73+ {{- with .Values.deployment. affinity }}
7474 affinity :
7575 {{- toYaml . | nindent 8 }}
7676 {{- end }}
77- {{- with .Values.topologySpreadConstraints }}
77+ {{- with .Values.deployment. topologySpreadConstraints }}
7878 topologySpreadConstraints :
7979 {{- tpl (. | toYaml) $ | nindent 8 }}
8080 {{- end }}
0 commit comments