From 5c3f2e66fd6ffb6da7b2c4c019347ddf95ae9187 Mon Sep 17 00:00:00 2001 From: Alvaro Reina Date: Mon, 29 Apr 2024 14:03:04 +0200 Subject: [PATCH 1/3] added imagePullSecrets support --- .../infisical-standalone-postgres/templates/infisical.yaml | 4 ++++ .../templates/schema-migration-job.yaml | 4 ++++ helm-charts/infisical-standalone-postgres/values.yaml | 1 + 3 files changed, 9 insertions(+) diff --git a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml index 6c022c0058..fcfe4acee7 100644 --- a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml +++ b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml @@ -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" diff --git a/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml b/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml index d504d51aa2..06c00368f7 100644 --- a/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml +++ b/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml @@ -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 diff --git a/helm-charts/infisical-standalone-postgres/values.yaml b/helm-charts/infisical-standalone-postgres/values.yaml index d4297ebdaf..2f1703fb90 100644 --- a/helm-charts/infisical-standalone-postgres/values.yaml +++ b/helm-charts/infisical-standalone-postgres/values.yaml @@ -14,6 +14,7 @@ infisical: repository: infisical/infisical tag: "v0.46.3-postgres" pullPolicy: IfNotPresent + imagePullSecrets: [] affinity: {} kubeSecretRef: "infisical-secrets" From d2ba4363388e1b494ac9608ff4c2d26bdb6ddd7d Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 Apr 2024 19:07:26 -0400 Subject: [PATCH 2/3] move imagePullSecrets under image --- .../infisical-standalone-postgres/templates/infisical.yaml | 4 ++-- .../templates/schema-migration-job.yaml | 4 ++-- helm-charts/infisical-standalone-postgres/values.yaml | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml index fcfe4acee7..4727e20fd6 100644 --- a/helm-charts/infisical-standalone-postgres/templates/infisical.yaml +++ b/helm-charts/infisical-standalone-postgres/templates/infisical.yaml @@ -29,9 +29,9 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} - {{- if $infisicalValues.imagePullSecrets }} + {{- if $infisicalValues.image.imagePullSecrets }} imagePullSecrets: - {{- toYaml $infisicalValues.imagePullSecrets | nindent 6 }} + {{- toYaml $infisicalValues.image.imagePullSecrets | nindent 6 }} {{- end }} {{- if $infisicalValues.autoDatabaseSchemaMigration }} initContainers: diff --git a/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml b/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml index 06c00368f7..40cd0bc9b9 100644 --- a/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml +++ b/helm-charts/infisical-standalone-postgres/templates/schema-migration-job.yaml @@ -16,9 +16,9 @@ spec: app.kubernetes.io/instance: {{ .Release.Name | quote }} helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" spec: - {{- if $infisicalValues.imagePullSecrets }} + {{- if $infisicalValues.image.imagePullSecrets }} imagePullSecrets: - {{- toYaml $infisicalValues.imagePullSecrets | nindent 6 }} + {{- toYaml $infisicalValues.image.imagePullSecrets | nindent 6 }} {{- end }} restartPolicy: OnFailure containers: diff --git a/helm-charts/infisical-standalone-postgres/values.yaml b/helm-charts/infisical-standalone-postgres/values.yaml index 2f1703fb90..3f43e4a61c 100644 --- a/helm-charts/infisical-standalone-postgres/values.yaml +++ b/helm-charts/infisical-standalone-postgres/values.yaml @@ -14,7 +14,7 @@ infisical: repository: infisical/infisical tag: "v0.46.3-postgres" pullPolicy: IfNotPresent - imagePullSecrets: [] + imagePullSecrets: [] affinity: {} kubeSecretRef: "infisical-secrets" @@ -30,11 +30,11 @@ infisical: cpu: 350m ingress: - enabled: true + enabled: false hostName: "" ingressClassName: nginx nginx: - enabled: true + enabled: false annotations: {} tls: [] From 447141ab1f562ff0b1eacf88bf02fb420234280d Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Mon, 29 Apr 2024 19:11:24 -0400 Subject: [PATCH 3/3] update chart version --- helm-charts/infisical-standalone-postgres/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-charts/infisical-standalone-postgres/Chart.yaml b/helm-charts/infisical-standalone-postgres/Chart.yaml index 31326d809c..812856a1e7 100644 --- a/helm-charts/infisical-standalone-postgres/Chart.yaml +++ b/helm-charts/infisical-standalone-postgres/Chart.yaml @@ -7,7 +7,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.7 +version: 1.0.8 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to