Skip to content

Commit

Permalink
Add ImagePullSecrets to Helm chart
Browse files Browse the repository at this point in the history
Title is self-explanatory

pr-link: #14289
change-id: cid-26cd26257e3d4565586ab8d1b80ef69faf91fe43
  • Loading branch information
ZhuTopher committed Oct 22, 2021
1 parent bda055b commit c775c70
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 1 deletion.
4 changes: 4 additions & 0 deletions integration/kubernetes/helm-chart/alluxio/CHANGELOG.md
Expand Up @@ -211,3 +211,7 @@
0.6.29

- Add startupProbe and checking for web port when using HA without embedded journal

0.6.30

- Add ImagePullSecrets Pod spec option
2 changes: 1 addition & 1 deletion integration/kubernetes/helm-chart/alluxio/Chart.yaml
Expand Up @@ -12,7 +12,7 @@
name: alluxio
apiVersion: v1
description: Open source data orchestration for analytics and machine learning in any cloud.
version: 0.6.29
version: 0.6.30
home: https://www.alluxio.io/
maintainers:
- name: Adit Madan
Expand Down
Expand Up @@ -329,3 +329,9 @@ hostAliases:
{{- end }}
{{- end -}}

{{- define "alluxio.imagePullSecrets" -}}
imagePullSecrets:
{{- range $name := .Values.imagePullSecrets }}
- name: {{ $name }}
{{- end -}}
{{- end -}}
Expand Up @@ -46,6 +46,9 @@ spec:
hostNetwork: {{ .Values.csi.controllerPlugin.hostNetwork }}
dnsPolicy: {{ .Values.csi.controllerPlugin.dnsPolicy }}
serviceAccountName: csi-controller-sa
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
containers:
- name: csi-provisioner
image: {{ .Values.csi.controllerPlugin.provisioner.image }}
Expand Down
Expand Up @@ -15,6 +15,9 @@ kind: Pod
metadata:
name: nginx
spec:
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 2 }}
{{- end}}
containers:
- image: nginx
imagePullPolicy: Always
Expand Down
Expand Up @@ -43,6 +43,9 @@ spec:
spec:
hostNetwork: {{ .Values.csi.nodePlugin.hostNetwork }}
dnsPolicy: {{ .Values.csi.nodePlugin.dnsPolicy }}
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
containers:
- name: node-driver-registrar
image: {{ .Values.csi.nodePlugin.driverRegistrar.image }}
Expand Down
Expand Up @@ -46,6 +46,9 @@ spec:
{{- end }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
containers:
- name: alluxio-fuse-client
image: alpine:latest
Expand Down
Expand Up @@ -79,6 +79,9 @@ spec:
values:
- alluxio-worker
topologyKey: kubernetes.io/hostname
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
containers:
- name: alluxio-fuse
image: {{ .Values.image }}:{{ .Values.imageTag }}
Expand Down
Expand Up @@ -52,6 +52,9 @@ spec:
{{- if .Values.tolerations }}
{{ toYaml .Values.tolerations | trim | indent 8 }}
{{- end }}
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
containers:
- name: alluxio-logserver
image: {{ .Values.image }}:{{ .Values.imageTag }}
Expand Down
Expand Up @@ -87,6 +87,9 @@ spec:
{{- else if .Values.serviceAccount }}
serviceAccountName: {{ .Values.serviceAccount }}
{{- end }}
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
initContainers:
{{- if .Values.journal.format.runFormat}}
- name: journal-format
Expand Down
Expand Up @@ -82,6 +82,9 @@ spec:
{{- else if .Values.serviceAccount }}
serviceAccountName: {{ .Values.serviceAccount }}
{{- end }}
{{- if .Values.imagePullSecrets }}
{{ include "alluxio.imagePullSecrets" . | indent 6 }}
{{- end}}
containers:
- name: alluxio-worker
image: {{ .Values.image }}:{{ .Values.imageTag }}
Expand Down
10 changes: 10 additions & 0 deletions integration/kubernetes/helm-chart/alluxio/values.yaml
Expand Up @@ -30,6 +30,16 @@ fsGroup: 1000
# ServiceAccount used for the namespace
serviceAccount:

# Image Pull Secret
# The secrets will need to be created externally from
# this Helm chart, but you can configure the Alluxio
# Pods to use the following list of secrets
# eg:
# imagePullSecrets:
# - ecr
# - dev
imagePullSecrets:

# Site properties for all the components
properties:
# alluxio.user.metrics.collection.enabled: 'true'
Expand Down

0 comments on commit c775c70

Please sign in to comment.