Cleaning template

Signed-off-by: Naseem Ullah <naseemkullah@gmail.com>
pull/5110/head
Naseem Ullah 7 years ago
parent d196d9550d
commit 9d3f2c65a8

@ -243,39 +243,35 @@ spec:
{{- end }} {{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}" {{- with .Values.deployment }}
imagePullPolicy: {{ .Values.deployment.image.pullPolicy }} image: "{{ .image.repository }}:{{ .image.tag }}"
imagePullPolicy: {{ .image.pullPolicy }}
ports: ports:
- name: http - name: http
containerPort: 80 containerPort: 80
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: httpGet:
path: {{ .Values.deployment.livenessProbe.httpGet.path }} path: {{ .livenessProbe.httpGet.path }}
port: {{ .Values.deployment.livenessProbe.httpGet.port }} port: {{ .livenessProbe.httpGet.port }}
readinessProbe: readinessProbe:
httpGet: httpGet:
path: {{ .Values.deployment.readinessProbe.httpGet.path }} path: {{ .readinessProbe.httpGet.path }}
port: {{ .Values.deployment.readinessProbe.httpGet.port }} port: {{ .readinessProbe.httpGet.port }}
resources: resources:
{{- toYaml .Values.deployment.resources | nindent 12 }} {{- toYaml .resources | nindent 12 }}
env: env:
{{- toYaml .Values.deployment.env | nindent 12 }} {{- toYaml .env | nindent 12 }}
volumeMounts: volumeMounts:
{{- toYaml .Values.deployment.volumeMounts | nindent 12 }} {{- toYaml .volumeMounts | nindent 12 }}
securityContext: securityContext:
{{- toYaml .Values.deployment.securityContext | nindent 12 }} {{- toYaml .securityContext | nindent 12 }}
{{- with .Values.deployment.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml .nodeSelector | nindent 8 }}
{{- end }}
{{- with .Values.deployment.affinity }}
affinity: affinity:
{{- toYaml . | nindent 8 }} {{- toYaml .affinity | nindent 8 }}
{{- end }}
{{- with .Values.deployment.tolerations }}
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml .tolerations | nindent 8 }}
{{- end }} {{- end }}
` `
const defaultHorizontalPodAutoscaler = `{{- if .Values.deployment.hpa.enabled }} const defaultHorizontalPodAutoscaler = `{{- if .Values.deployment.hpa.enabled }}

Loading…
Cancel
Save