added imagePullSecrets support

This commit is contained in:
Alvaro Reina
2024-04-29 14:03:04 +02:00
parent d64eb4b901
commit 5c3f2e66fd
3 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if $infisicalValues.imagePullSecrets }}
imagePullSecrets:
{{- toYaml $infisicalValues.imagePullSecrets | nindent 6 }}
{{- end }}
{{- if $infisicalValues.autoDatabaseSchemaMigration }}
initContainers:
- name: "migration-init"

View File

@@ -16,6 +16,10 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
{{- if $infisicalValues.imagePullSecrets }}
imagePullSecrets:
{{- toYaml $infisicalValues.imagePullSecrets | nindent 6 }}
{{- end }}
restartPolicy: OnFailure
containers:
- name: infisical-schema-migration

View File

@@ -14,6 +14,7 @@ infisical:
repository: infisical/infisical
tag: "v0.46.3-postgres"
pullPolicy: IfNotPresent
imagePullSecrets: []
affinity: {}
kubeSecretRef: "infisical-secrets"