feat: Support GCS artifactRepository

This commit is contained in:
jdavey 2020-08-20 00:15:43 +01:00
parent 85b1b83ad0
commit abbc8564ce
2 changed files with 20 additions and 0 deletions

View file

@ -30,6 +30,10 @@ data:
{{- if .Values.artifactRepository.archiveLogs }} {{- if .Values.artifactRepository.archiveLogs }}
archiveLogs: {{ .Values.artifactRepository.archiveLogs }} archiveLogs: {{ .Values.artifactRepository.archiveLogs }}
{{- end }} {{- end }}
{{- if .Values.artifactRepository.gcs }}
gcp:
{{ toYaml .Values.artifactRepository.gcs | indent 8}}
{{- else }}
s3: s3:
{{- if .Values.useStaticCredentials }} {{- if .Values.useStaticCredentials }}
accessKeySecret: accessKeySecret:
@ -55,6 +59,7 @@ data:
useSDKCreds: {{ .Values.artifactRepository.s3.useSDKCreds }} useSDKCreds: {{ .Values.artifactRepository.s3.useSDKCreds }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end}}
{{- if .Values.controller.metricsConfig.enabled }} {{- if .Values.controller.metricsConfig.enabled }}
metricsConfig: metricsConfig:
{{ toYaml .Values.controller.metricsConfig | indent 6}}{{- end }} {{ toYaml .Values.controller.metricsConfig | indent 6}}{{- end }}

View file

@ -240,6 +240,21 @@ artifactRepository:
# region: # region:
# roleARN: # roleARN:
# useSDKCreds: true # useSDKCreds: true
# gcs:
# bucket: <project>-argo
# keyFormat: "{{workflow.namespace}}/{{workflow.name}}/"
# serviceAccountKeySecret is a secret selector.
# It references the k8s secret named 'my-gcs-credentials'.
# This secret is expected to have have the key 'serviceAccountKey',
# containing the base64 encoded credentials
# to the bucket.
#
# If it's running on GKE and Workload Identity is used,
# serviceAccountKeySecret is not needed.
# serviceAccountKeySecret:
# name: my-gcs-credentials
# key: serviceAccountKey
# NOTE: These are setting attributes for the `minio` optional dependency # NOTE: These are setting attributes for the `minio` optional dependency
minio: minio: