Skip to content

Commit

Permalink
Profile Support for Azure in Kansiter (#5749)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupriyaKasten authored and Alex Vorbau committed Jun 6, 2019
1 parent 851f93c commit bd17a14
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helm/profile/templates/profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ data:
{{- else if .Values.gcp.projectID }}
project_id: {{ .Values.gcp.projectID | b64enc | quote }}
service_key: {{ .Values.gcp.serviceKey | b64enc | quote }}
{{- else if .Values.azure.storageAccount }}
storage_account: {{ .Values.azure.storageAccount | b64enc | quote }}
storage_key: {{ .Values.azure.storageKey | b64enc | quote }}
{{- end }}

---
Expand All @@ -38,6 +41,9 @@ credential:
{{- else if .Values.gcp.projectID }}
idField: project_id
secretField: service_key
{{- else if .Values.azure.storageAccount }}
idField: storage_account
secretField: storage_key
{{- end }}
secret:
apiVersion: v1
Expand Down
4 changes: 4 additions & 0 deletions helm/profile/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ gcp:
projectID:
serviceKey:

azure:
storageAccount:
storageKey:

verifySSL: true
1 change: 1 addition & 0 deletions pkg/apis/cr/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ type LocationType string
const (
LocationTypeGCS LocationType = "gcs"
LocationTypeS3Compliant LocationType = "s3Compliant"
LocationTypeAzure LocationType = "azure"
)

// Location
Expand Down

0 comments on commit bd17a14

Please sign in to comment.