Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 馃悰 chartmuseum and registry aliyun oss endpoint format #556

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

wind2008hxy
Copy link

https://docs.docker.com/registry/storage-drivers/oss/

  1. region and bucket is required, you must set the value in values.yaml.
    endpoint default is empty
    so when the endpoint is empty, chartmuseum will get the empty endpoint.

STORAGE_ALIBABA_ENDPOINT: {{ $storage.oss.endpoint }}

  1. when you set the endpoint, the endpoint format must like this.
 [bucket].[region].aliyuncs.com or [bucket].[region]-internal.aliyuncs.com

but charmuseum endpoint format not include bucket

 [region].aliyuncs.com or [region]-internal.aliyuncs.com

Signed-off-by: wind2008hxy <wind2008hxy@gmail.com>
@@ -232,6 +232,7 @@ persistence:
accesskeysecret: accesskeysecret
region: regionname
bucket: bucketname
### endpoint format: [bucket].[region].aliyuncs.com or [bucket].[region]-internal.aliyuncs.com
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An endpoint which defaults to [bucket].[region].aliyuncs.com or [bucket].[region]-internal.aliyuncs.com (when internal=true). You can change the default endpoint by changing this value.

Per the doc , the format [bucket].[region].aliyuncs.com or [bucket].[region]-internal.aliyuncs.com is the default value of endpoint. So this isn't the required format for the customized endpoint?

@@ -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 "." }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the endpoint is specified, shouldn't we just use it as the STORAGE_ALIBABA_ENDPOINT directly?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the endpoint is specified, shouldn't we just use it as the STORAGE_ALIBABA_ENDPOINT directly?

yes,but charmuseum endpoint format not include bucket name

@better0332
Copy link

yes锛宑harmuseum endpoint format not include bucket name

NexZhu added a commit to daotl/harbor-helm that referenced this pull request Mar 10, 2021
NexZhu added a commit to daotl/harbor-helm that referenced this pull request Apr 21, 2021
NexZhu added a commit to daotl/harbor-helm that referenced this pull request Apr 21, 2021
Copy link

github-actions bot commented Feb 8, 2024

This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.

@github-actions github-actions bot added the Stale label Feb 8, 2024
@NexZhu
Copy link

NexZhu commented Feb 16, 2024

Still relevant

@github-actions github-actions bot removed the Stale label Feb 17, 2024
Copy link

This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.

@github-actions github-actions bot added the Stale label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants