Add GCS to helm chart (#1428)

* Add GCS to helm chart

* base64 encode serviceAccount in the chart

* Standardize GCP Service Account references

* pipe storage.gcp.serviceAccount to quote
This commit is contained in:
Aditya Sharma
2019-12-03 20:28:07 -06:00
committed by Aaron Schlesinger
parent 82472fe945
commit e0ec46b221
8 changed files with 84 additions and 53 deletions
@@ -95,6 +95,15 @@ spec:
- name: AWS_SESSION_TOKEN
value: {{ .Values.storage.s3.session_token | quote }}
{{- end }}
{{- else if eq .Values.storage.type "gcp"}}
- name: GOOGLE_CLOUD_PROJECT
value: {{ .Values.storage.gcp.projectID | quote }}
- name: ATHENS_STORAGE_GCP_BUCKET
value: {{ .Values.storage.gcp.bucket | quote }}
{{- if .Values.storage.gcp.serviceAccount }}
- name: ATHENS_STORAGE_GCP_SERVICE_ACCOUNT
value: {{ .Values.storage.gcp.serviceAccount | b64enc | quote }}
{{- end }}
{{- else if eq .Values.storage.type "minio" }}
{{- if .Values.storage.minio.endpoint }}
- name: ATHENS_MINIO_ENDPOINT
+10
View File
@@ -64,6 +64,16 @@ storage:
accessKey: ""
secretKey: ""
bucket: ""
gcp:
# For more information, see:
# https://docs.gomods.io/install/install-on-kubernetes/#google-cloud-storage
# you must set gcp projectID and bucket when running 'helm install'
projectID: ""
bucket: ""
# set serviceAccount to a key which has read/write access to the GCS bucket.
# If you are running Athens inside GCP, you will most likely not need this
# as GCP figures out internal authentication between products for you.
serviceAccount: ""
# Extra environment variables to be passed
# You can add any new ones at the bottom