-
Notifications
You must be signed in to change notification settings - Fork 788
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
feature: add --scoped-append-registry flag #1531
feature: add --scoped-append-registry flag #1531
Conversation
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, but as discussed in #854 (comment) , I don’t think it makes sense to continue adding individual options for every mirror organization options a user might choose to design.
For YAML, contrary to the existing Maybe something vaguely like (based on the man page example): registry.example.com:
repos:
busybox:
destination: mirror.local/busybox
assume-mutable-tags: latest
redis:
destination: mirror.local/redis
mirror-tags: ["1.0", "2.0"]
mirror-digests: ["sha256:0000000000000000000000000000000011111111111111111111111111111111"]
nginx:
destination: mirror.local/completely/different/policy/nginx
mirror-by-tag-regex: ^1\.13\.[12]-alpine-perl$
credentials:
username: john
password: this is a secret
tls-verify: true
cert-dir: /home/John/certs with a per-repo This would also allow adding per-repo |
I would agree that supplying complete destination in the YAML itself looks better.
I would also raise the question of deprecating/refactoring the So, the resulting YAML might look something like ---
global-settings:
destination-path-style: "full-no-registry"
mirror-tags: ["latest"]
assume-mutable-tags: ["latest"]
tls-verify: true
docker.io:
repo-settings:
destination-path-style: "full"
mirror-tags: ["newest"]
credentials:
username: "john"
password: "this is a secret"
cert-dir: "/home/John/certs"
images:
busybox:
custom-destination: "mirror.local/busybox"
assume-mutable-tags: ["best-tag"]
destination-path-style: "flat"
mirror-tags: ["1.0", "2.0"]
mirror-digests: ["sha256:0000000000000000000000000000000011111111111111111111111111111111"]
nginx:
mirror-by-tag-regex: ^1\.13\.[12]-alpine-perl$
quay.io:
repo-settings:
destination-path-style: "flat"
images:
prometheus/prometheus:
mirror-tags: ["3.1", "whatever"] However, I would leave @mtrmac What do you think? upd:
upd2:
|
I agree with @art-shutter. |
A friendly reminder that this PR had no activity for 30 days. |
any chance we can have something while the ideal solution is worked on? this kinda ruins the tidyness of using the YAML source option. |
A friendly reminder that this PR had no activity for 30 days. |
I'm also needing this feature and it'd be great if this PR can be merged. |
Signed-off-by: Artem Kamenev <artem@kamenev.pw>
462e9b2
to
09e735b
Compare
since there hasn't been much happening in terms of updating the yaml to the new format, I have updated changes here with the default branch and have also proposed another per-repo solution in #1769 |
I would be interested in working on the updated yaml format mentioned above if nobody else already is. @mtrmac would you accept the PR if I were to put one together? |
I do think it is valuable to finally solve the @vrothberg do you have the time to help make this happen? |
@mhowell24 I would definitely like to help, be it reviewing/testing or anything else. |
If you are talking about the YAML format read by |
Brilliant, thanks @art-shutter and @mtrmac I will try and put something together this week |
Hi @art-shutter and @mtrmac I have opened #1792 as a draft to implement the yaml config from above, let me know what you think |
A friendly reminder that this PR had no activity for 30 days. |
Introduces a new flag to simplify work with YAML source as referenced in #1072
Signed-off-by: Artem Kamenev artem@kamenev.pw