[bitnami/harbor] Add existingSecret to exporter (#16881)

* Add existingSecret option to exporter deployment to allow for postgres password as env variable

Signed-off-by: Harrison Roberts <harrison.roberts1@defence.gov.au>

* bump chart version

Signed-off-by: Harrison Roberts <harrison.roberts1@defence.gov.au>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>

* Update Chart.yaml

Change to a minor chart bump as recommended.

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update bitnami/harbor/Chart.yaml

Co-authored-by: Fran Mulero <fmulero@vmware.com>
Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update exporter-dpl.yaml

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update exporter-dpl.yaml

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update values.yaml

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update README.md

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update README.md

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update exporter-dpl.yaml

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update README.md

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

* Update exporter-dpl.yaml

Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>

---------

Signed-off-by: Harrison Roberts <harrison.roberts1@defence.gov.au>
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
Signed-off-by: Harrys-git <100171677+Harrys-git@users.noreply.github.com>
Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
Co-authored-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Harrys-git
2023-06-26 22:36:18 +10:00
committed by GitHub
parent d7a0d1b9dd
commit ebe096de5a
2 changed files with 12 additions and 3 deletions

View File

@@ -34,4 +34,5 @@ maintainers:
name: harbor
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/harbor
version: 16.6.8
version: 16.7.0

View File

@@ -105,12 +105,20 @@ spec:
- name: HARBOR_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "harbor.core" . }}-envvars
{{- if .Values.exporter.existingEnvVarsSecret }}
name: {{ .Values.exporter.existingEnvVarsSecret }}
{{- else }}
name: {{ printf "%s-envvars" (include "harbor.core" .) }}
{{- end }}
key: POSTGRESQL_PASSWORD
- name: HARBOR_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: {{ include "harbor.core" . }}-envvars
{{- if .Values.exporter.existingEnvVarsSecret }}
name: {{ .Values.exporter.existingEnvVarsSecret }}
{{- else }}
name: {{ printf "%s-envvars" (include "harbor.core" .) }}
{{- end }}
key: HARBOR_ADMIN_PASSWORD
{{- if .Values.exporter.extraEnvVars }}
{{- include "common.tplvalues.render" (dict "value" .Values.exporter.extraEnvVars "context" $) | nindent 12 }}