mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 06:47:30 +08:00
[bitnami/harbor] Removal of hardcoded Google Key in ChartMuseum template for GCS Storage Backend (#13374)
* [bitnami/harbor] Added support for Workload Identity in GCS storage backend Signed-off-by: Sameer Dev <sameer.devv@gmail.com> * [bitnami/harbor] Hardcode GCS Key removed for chartmuseum using encodedkey Signed-off-by: Sameer Dev <sameer.devv@gmail.com> Signed-off-by: Sameer Dev <sameer.devv@gmail.com> * [bitnami/harbor] Changed the default value of encodedkey to "" Signed-off-by: Sameer Dev <sameer.devv@gmail.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Sameer Dev <sameer.devv@gmail.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com> Co-authored-by: Sameer Dev <sameerdev@gofynd.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
This commit is contained in:
@@ -73,7 +73,9 @@ data:
|
||||
{{- else if eq .Values.persistence.imageChartStorage.type "gcs" }}
|
||||
STORAGE: "google"
|
||||
STORAGE_GOOGLE_BUCKET: {{ .Values.persistence.imageChartStorage.gcs.bucket }}
|
||||
{{- if .Values.persistence.imageChartStorage.gcs.encodedkey }}
|
||||
GOOGLE_APPLICATION_CREDENTIALS: /etc/chartmuseum/gcs-key.json
|
||||
{{- end }}
|
||||
{{- if .Values.persistence.imageChartStorage.gcs.rootdirectory }}
|
||||
STORAGE_GOOGLE_PREFIX: {{ .Values.persistence.imageChartStorage.gcs.rootdirectory | quote }}
|
||||
{{- end }}
|
||||
|
||||
@@ -175,7 +175,7 @@ spec:
|
||||
- name: chartmuseum-data
|
||||
mountPath: /bitnami/data
|
||||
subPath: {{ .Values.persistence.persistentVolumeClaim.chartmuseum.subPath }}
|
||||
{{- if and .Values.persistence.enabled (eq .Values.persistence.imageChartStorage.type "gcs") }}
|
||||
{{- if and (and .Values.persistence.enabled (eq .Values.persistence.imageChartStorage.type "gcs")) .Values.persistence.imageChartStorage.gcs.encodedkey }}
|
||||
- name: gcs-key
|
||||
mountPath: /etc/chartmuseum/gcs-key.json
|
||||
subPath: gcs-key.json
|
||||
@@ -206,7 +206,7 @@ spec:
|
||||
{{- else }}
|
||||
emptyDir: {}
|
||||
{{- end }}
|
||||
{{- if and .Values.persistence.enabled (eq .Values.persistence.imageChartStorage.type "gcs") }}
|
||||
{{- if and (and .Values.persistence.enabled (eq .Values.persistence.imageChartStorage.type "gcs")) .Values.persistence.imageChartStorage.gcs.encodedkey }}
|
||||
- name: gcs-key
|
||||
secret:
|
||||
secretName: {{ include "harbor.chartmuseum" . }}-secret
|
||||
|
||||
@@ -19,7 +19,7 @@ data:
|
||||
{{- end }}
|
||||
{{- if eq .Values.persistence.imageChartStorage.type "azure" }}
|
||||
AZURE_STORAGE_ACCESS_KEY: {{ .Values.persistence.imageChartStorage.azure.accountkey | b64enc | quote }}
|
||||
{{- else if eq .Values.persistence.imageChartStorage.type "gcs" }}
|
||||
{{- else if and (eq .Values.persistence.imageChartStorage.type "gcs") .Values.persistence.imageChartStorage.gcs.encodedkey }}
|
||||
GCS_KEY_DATA: {{ .Values.persistence.imageChartStorage.gcs.encodedkey | quote }}
|
||||
{{- else if eq .Values.persistence.imageChartStorage.type "s3" }}
|
||||
{{- if .Values.persistence.imageChartStorage.s3.secretkey }}
|
||||
|
||||
Reference in New Issue
Block a user