Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(charts):Create the objectstorage secret
Browse files Browse the repository at this point in the history
  • Loading branch information
kmala committed Oct 26, 2016
1 parent faa3a91 commit 1caa736
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions charts/workflow/templates/objectstorage-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: v1
kind: Secret
metadata:
name: objectstorage-keyfile
labels:
heritage: deis
annotations:
deis.io/objectstorage: "{{ .Values.global.storage }}"
type: Opaque
data: {{ if eq .Values.global.storage "gcs"}}
key.json: {{.Values.gcs.key_json | b64enc}}
builder-bucket: {{.Values.gcs.builder_bucket | b64enc }}
registry-bucket: {{.Values.gcs.registry_bucket | b64enc }}
database-bucket: {{.Values.gcs.database_bucket | b64enc }}{{ else if eq .Values.global.storage "azure"}}
accountname: {{.Values.azure.accountname | b64enc }}
accountkey: {{ .Values.azure.accountkey | b64enc }}
builder-container: {{ .Values.azure.builder_container | b64enc }}
database-container: {{ .Values.azure.database_container | b64enc }}
registry-container: {{ .Values.azure.registry_container | b64enc }}{{ else if eq .Values.global.storage "s3"}}
accesskey: {{ .Values.s3.accesskey | b64enc }}
secretkey: {{ .Values.s3.secretkey | b64enc }}
region: {{ .Values.s3.region | b64enc }}
builder-bucket: {{ .Values.s3.builder_bucket | b64enc }}
registry-bucket: {{.Values.s3.registry_bucket | b64enc }}
database-bucket: {{.Values.s3.database_bucket | b64enc }}{{ else if eq .Values.global.storage "swift"}}
username: {{ .Values.swift.username | b64enc }}
password: {{ .Values.swift.password | b64enc }}
authurl: {{ .Values.swift.authurl | b64enc }}
tenant: {{ .Values.swift.tenant | b64enc }}
authversion: {{ .Values.swift.authversion | b64enc }}
builder-container: {{ .Values.swift.builder_container | b64enc }}
database-container: {{ .Values.swift.database_container | b64enc }}
registry-container: {{ .Values.swift.registry_container | b64enc }}{{else if eq .Values.global.storage "minio"}}
accesskey: OFRaUlkySlJXTVBUNlVNWFI2STU=
secretkey: Z2JzdHJPdm90TU1jZzJzTWZHVWhBNWE2RXQvRUk1QUx0SUhzb2JZaw=={{ end }}

0 comments on commit 1caa736

Please sign in to comment.