diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index f8738760d0ea752258c497c0ed69146d4c6df8b1..2f04be15da8cc085f7e1e2a9924b536af005ba0e 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -48,9 +48,9 @@ spec: hostAliases: {{ toYaml .Values.nexus.hostAliases | indent 8 }} {{- end }} - {{- if .Values.nexus.imagePullSecret }} + {{- with .Values.nexus.imagePullSecrets }} imagePullSecrets: - {{- toYaml . | nindent 8 }} + {{- toYaml . | nindent 8}} {{- end }} {{- if .Values.deployment.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }} diff --git a/chart/templates/image-pull-secret.yaml b/chart/templates/image-pull-secret.yaml deleted file mode 100644 index d70c3dbcb208e524a47fea511da3ca68ad78264a..0000000000000000000000000000000000000000 --- a/chart/templates/image-pull-secret.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{- if .Values.nexus.imagePullSecret -}} -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "nexus.name" . }} -data: - .dockerconfigjson: {{ .Values.nexus.imagePullSecret }} - -type: kubernetes.io/dockerconfigjson -{{- end }} \ No newline at end of file diff --git a/chart/values.yaml b/chart/values.yaml index b9926bd4382d5d2ef02eee42a8623451fdb0efb9..54aac655c312bf438b7b375d5badc2743730e343 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -121,9 +121,8 @@ nexus: # hostnames: # - "example.com" # - "www.example.com" + imagePullSecrets: [] - -imagePullSecrets: [] nameOverride: "" fullnameOverride: ""