Skip to content

Commit

Permalink
Allow using image pull secrets (#245)
Browse files Browse the repository at this point in the history
* Allow using image pull secrets

* Update values.yaml

* Bump chart version

Signed-off-by: Timo Sand <[email protected]>

* Update incubator/bastion/Chart.yaml

Co-authored-by: Erik Osterman <[email protected]>
  • Loading branch information
deiga and osterman authored Jul 15, 2020
1 parent 79583ef commit 527aca3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion incubator/bastion/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
description: A Helm chart that implements a secure bastion
name: bastion
version: 0.1.3
version: 0.2.0
3 changes: 3 additions & 0 deletions incubator/bastion/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
- name: init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy | quote }}
imagePullSecrets: {{ .Values.image.pullSecrets }}
command: ["/bin/sh", "-c", "(cp -a /etc/ /mnt/etc/) && (mkdir -p /mnt/home /mnt/root /mnt/var/log)"]
volumeMounts:
- mountPath: "/mnt"
Expand All @@ -29,6 +30,7 @@ spec:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
imagePullSecrets: {{ .Values.image.pullSecrets }}
volumeMounts:
- mountPath: /etc
subPath: etc/
Expand Down Expand Up @@ -68,6 +70,7 @@ spec:
- name: "github-authorized-keys"
image: "{{ .Values.githubAuthorizedKeys.image.repository }}:{{ .Values.githubAuthorizedKeys.image.tag }}"
imagePullPolicy: {{ default "" .Values.githubAuthorizedKeys.image.pullPolicy | quote }}
imagePullSecrets: {{ .Values.githubAuthorizedKeys.image.pullSecrets }}
volumeMounts:
- mountPath: /etc
subPath: etc/
Expand Down
3 changes: 3 additions & 0 deletions incubator/bastion/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image:
repository: cloudposse/bastion
tag: latest
pullPolicy: Always
pullSecrets: []

env:
#HOSTNAME: "bastion"
Expand Down Expand Up @@ -72,6 +73,8 @@ githubAuthorizedKeys:
# Specify a imagePullPolicy
pullPolicy: Always

pullSecrets: []

# Specify Github API Token
# ref: https://github.com/blog/1509-personal-api-tokens
githubAPIToken: ""
Expand Down

0 comments on commit 527aca3

Please sign in to comment.