-
Notifications
You must be signed in to change notification settings - Fork 63
feat: Support set different image registry server #271
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: jinxinwang <g1561925068@163.com>
A modified version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your effort. I left some comments, please take a look at it.
helm/api-testing/Chart.yaml
Outdated
dependencies: | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
tags: | ||
- bitnami-common | ||
version: 2.x.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is reason to add this dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a large number of public libraries in bitnami-common, which can be used to form a specification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. But how about using it when this chart is completed enough. In my view, it's pretty simple. I didn't find a solid reason to use a third-party chart.
helm/api-testing/values.yaml
Outdated
@@ -5,10 +5,16 @@ | |||
replicaCount: 1 | |||
|
|||
image: | |||
registry: docker.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to use linuxsuren.docker.scarf.sh
as the default registry. It is a mirror of docker.io
. Because it could collect more information about the pulling data.
helm/api-testing/values.yaml
Outdated
repository: linuxsuren/api-testing | ||
pullPolicy: IfNotPresent | ||
tag: "v0.0.2-helm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v0.0.2-helm
is the tag of the helm image instead of the application. I perfer to use the chart appVersion as the default version instead of a fixed version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fixed version is indeed not dynamic enough, but it is not user-friendly because after I download the chart, I still need to look at the code to know which image tag I am using.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the tag v0.0.2-helm
is incorrect.
Signed-off-by: jinxinwang <g1561925068@163.com>
helm/api-testing/Chart.lock
Outdated
dependencies: | ||
- name: common | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 2.13.3 | ||
digest: sha256:9a971689db0c66ea95ac2e911c05014c2b96c6077c991131ff84f2982f88fb83 | ||
generated: "2023-11-14T09:58:21.488814356+08:00" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to delete?
Signed-off-by: jinxinwang <g1561925068@163.com>
Signed-off-by: jinxinwang <g1561925068@163.com>
Signed-off-by: jinxinwang <g1561925068@163.com>
Signed-off-by: jinxinwang <g1561925068@163.com>
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix issue [259] Support set different image registry server