UNCLASSIFIED

Commit 0a2e0615 authored by Sam's avatar Sam
Browse files

fix: made imagePullSecrets funtional

parent 9092336a
...@@ -48,9 +48,9 @@ spec: ...@@ -48,9 +48,9 @@ spec:
hostAliases: hostAliases:
{{ toYaml .Values.nexus.hostAliases | indent 8 }} {{ toYaml .Values.nexus.hostAliases | indent 8 }}
{{- end }} {{- end }}
{{- if .Values.nexus.imagePullSecret }} {{- with .Values.nexus.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8}}
{{- end }} {{- end }}
{{- if .Values.deployment.terminationGracePeriodSeconds }} {{- if .Values.deployment.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }}
......
{{- 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
...@@ -121,9 +121,8 @@ nexus: ...@@ -121,9 +121,8 @@ nexus:
# hostnames: # hostnames:
# - "example.com" # - "example.com"
# - "www.example.com" # - "www.example.com"
imagePullSecrets: []
imagePullSecrets: []
nameOverride: "" nameOverride: ""
fullnameOverride: "" fullnameOverride: ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment