2 Commits

Author SHA1 Message Date
964f7e9c5d fix: remove duplicated pullSecret
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-03 22:59:07 +03:00
4f80520c7e fix(deployment): envFrom 2023-03-03 22:57:28 +03:00
2 changed files with 11 additions and 7 deletions

View File

@ -24,10 +24,6 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
@ -37,15 +33,24 @@ spec:
image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
envFrom:
{{- if .Values.existingConfigmap }}
- configMapRef:
name: {{ .Values.existingConfigmap }}
{{- else }}
- configMapRef:
name: {{ include "common.fullname" . }}
{{- if .Values.extraEnvVarsSecret }}
{{- end }}
{{- if .Values.existingSecret }}
- secretRef:
name: {{ .Values.extraEnvVarsSecret }}
name: {{ .Values.existingSecret }}
{{- else }}
- secretRef:
name: {{ include "common.fullname" . }}
{{- end }}
{{- if .Values.extraEnvVarsSecret }}
- secretRef:
name: {{ .Values.extraEnvVarsSecret }}
{{- end }}
ports:
- name: http
containerPort: 5678

View File

@ -15,7 +15,6 @@ image:
registry: docker.io
repository: nginx
pullPolicy: IfNotPresent
pullSecrets: []
# Overrides the image tag whose default is the chart appVersion.
tag: ""