Adding the possibility to pull the image from a private repository (#5811)

* Adding the possibitlity to pull the image from a private repository

* Bumping version, fixing missing space, fixing variable name

* Fixing comment and adding comment

* Bumping version to match the chart, adding imagePullSecrets to cron

* Adding missing imagePullSecrets to post hooks

* Fixing format of all deployments to follow @unguiculus example

* Update values.yaml

* Bump minor version for new feature
This commit is contained in:
Marcelo Grebois
2018-06-24 07:08:04 -07:00
committed by k8s-ci-robot
parent 911cdb3172
commit 2bfbbec489
7 changed files with 26 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
apiVersion: v1
description: Sentry is a cross-platform crash reporting and aggregation platform.
name: sentry
version: 0.1.14
appVersion: 8.17
version: 0.2.0
appVersion: 8.22
keywords:
- debugging
- logging
@@ -27,6 +27,10 @@ spec:
{{- if .Values.cron.tolerations }}
tolerations:
{{ toYaml .Values.cron.tolerations | indent 8 }}
{{- end }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-cron
@@ -22,6 +22,10 @@ spec:
release: "{{ .Release.Name }}"
spec:
restartPolicy: Never
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: db-init-job
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@@ -21,6 +21,10 @@ spec:
release: "{{ .Release.Name }}"
spec:
restartPolicy: Never
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: user-create-job
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
@@ -27,6 +27,10 @@ spec:
{{- if .Values.web.tolerations }}
tolerations:
{{ toYaml .Values.web.tolerations | indent 8 }}
{{- end }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-web
@@ -27,6 +27,10 @@ spec:
{{- if .Values.worker.tolerations }}
tolerations:
{{ toYaml .Values.worker.tolerations | indent 8 }}
{{- end }}
{{- if .Values.image.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.image.imagePullSecrets | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}-workers
+4 -1
View File
@@ -3,8 +3,11 @@
# Declare variables to be passed into your templates.
image:
repository: sentry
tag: "8.20"
tag: "8.22"
pullPolicy: IfNotPresent
# Add the secret name to pull from a private registry.
imagePullSecrets: []
# - name:
# How many web UI instances to run
web: