Skip to content

Commit

Permalink
Fix chartmuseum and registry aliyun oss endpoint format: goharbor#556
Browse files Browse the repository at this point in the history
  • Loading branch information
NexZhu committed Apr 21, 2021
1 parent 2a17422 commit 5e2e7df
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 @@ -105,7 +105,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 @@ -312,6 +312,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 5e2e7df

Please sign in to comment.