Skip to content

Commit eefd6c9

Browse files
committed
Handle the azureblob endpoint with sane defaults
1 parent 9df8902 commit eefd6c9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

charts/s3proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.0.6
18+
version: 0.0.7
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/s3proxy/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ data:
124124
# Azure Blob backend configuration
125125
jclouds.provider={{ .Values.config.backends.azureblob.provider }}
126126
{{- if .Values.config.backends.azureblob.endpoint }}
127-
jclouds.azureblob.endpoint={{ .Values.config.backends.azureblob.endpoint }}
127+
jclouds.azureblob.endpoint={{ .Values.config.backends.azureblob.endpoint | default (printf "https://%s.blob.core.windows.net" .Values.config.backends.azureblob.account) }}
128128
{{- end }}
129129
{{- if .Values.config.backends.azureblob.account }}
130130
jclouds.identity={{ .Values.config.backends.azureblob.account }}

charts/s3proxy/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,9 @@ config:
207207
existingSecret: ""
208208
# -- Key in the existing secret containing the storage account key
209209
secretKey: "accountKey"
210-
# -- Azure endpoint
211-
endpoint: ""
210+
# -- (string) Azure endpoint
211+
# @default -- `https://{{ .Values.config.backends.azureblob.account }}.blob.core.windows.net`
212+
endpoint:
212213
# -- SAS token configuration
213214
sasToken:
214215
# -- SAS token value

0 commit comments

Comments
 (0)