Templatize imagePullSecrets for NATS (#6842)

* Templatize imagePullSecrets for  NATS.

* Only set pullSecrets conditionally.

* NATS chart version bump.
This commit is contained in:
alexplischke
2018-08-07 04:44:05 -07:00
committed by k8s-ci-robot
parent c4816296fc
commit 90aa1939e4
4 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: nats
version: 0.0.4
version: 0.0.5
appVersion: 1.1.0
description: An open-source, cloud-native messaging system
keywords:
+4
View File
@@ -34,6 +34,10 @@ spec:
{{ toYaml .Values.podAnnotations | indent 8 }}
{{- end }}
spec:
{{- if .Values.image.pullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.pullSecrets | indent 8 }}
{{- end }}
{{- if .Values.securityContext.enabled }}
securityContext:
fsGroup: {{ .Values.securityContext.fsGroup }}
+1 -1
View File
@@ -11,7 +11,7 @@ image:
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistrKeySecretName
# - name: myRegistrKeySecretName
## NATS replicas
replicaCount: 3
+1 -1
View File
@@ -15,7 +15,7 @@ image:
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
##
# pullSecrets:
# - myRegistrKeySecretName
# - name: myRegistrKeySecretName
## NATS replicas
replicaCount: 1