Skip to content

Commit

Permalink
fix: 🐛 chartmuseum and registry aliyun oss endpoint format
Browse files Browse the repository at this point in the history
Signed-off-by: wind2008hxy <wind2008hxy@gmail.com>
  • Loading branch information
wind2008hxy committed Apr 2, 2020
1 parent 55598b1 commit 6fa4261
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/chartmuseum/chartmuseum-cm.yaml
Expand Up @@ -99,7 +99,11 @@ data:
STORAGE_ALIBABA_PREFIX: {{ $storage.oss.rootdirectory }}
{{- end }}
{{- if $storage.oss.endpoint }}
STORAGE_ALIBABA_ENDPOINT: {{ $storage.oss.endpoint }}
STORAGE_ALIBABA_ENDPOINT: {{ $storage.oss.endpoint | trimPrefix $storage.oss.bucket | trimPrefix "." }}
{{- else if $storage.oss.internal}}
STORAGE_ALIBABA_ENDPOINT: {{ $storage.oss.region }}-internal.aliyuncs.com
{{- else }}
STORAGE_ALIBABA_ENDPOINT: {{ $storage.oss.region }}.aliyuncs.com
{{- end }}
ALIBABA_CLOUD_ACCESS_KEY_ID: {{ $storage.oss.accesskeyid }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions values.yaml
Expand Up @@ -232,6 +232,7 @@ persistence:
accesskeysecret: accesskeysecret
region: regionname
bucket: bucketname
### endpoint format: [bucket].[region].aliyuncs.com or [bucket].[region]-internal.aliyuncs.com
#endpoint: endpoint
#internal: false
#encrypt: false
Expand Down

0 comments on commit 6fa4261

Please sign in to comment.