-
Notifications
You must be signed in to change notification settings - Fork 59
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
control-service: set registry name correctly. #1331
Conversation
Signed-off-by: murphp15 <[email protected]>
@mivanov1988 Can you please look at this PR. I explain the details on the difference in this comment: https://github.com/vmware/versatile-data-kit/pull/694/files#r1023916365 |
Have you tested it against AWS ECR? |
Please prefix commit and PR title with "control-service" (as it's named in the projects directory) and not "vdk-control-service" . When I generate release notes - there are both vdk-control-service and control-service so I have to go and rename them to be the same. |
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
I think this is fixing a bug - the macro was not working because erroneously it was picking non existing key (repository) from values.yaml (probably we've renamed it in values.yaml and forgot to update the macro). @murphp15 Please describe slightly more detailed the problem you are solving in each change/PR. It's not good to make reviewers guess . See https://github.com/vmware/versatile-data-kit/wiki/How-to-prepare-a-new-PR#write-a-good-commit-message |
@tozka @mivanov1988 how do I test against aws ECR? @tozka I have added details to the description. |
If I understand correctly difference between two is
and both work . For example using
one can login. If this works likely the other logins would work as well. To test it you need AWS account and ECR registry created. I have those - and I executed above command and it works. |
LGTM |
@mivanov1988 @tozka |
I don't think we need special tests for AWS really. The way you login and pull or push images from any registry is the same. There are some differences in how repository is created across different registries but this PR doesn't really do anything related to repository creation. But I did tested it just in case using ECR (I've been wrong before). And that's enough. Let's merge it. |
Why
The format of the dockerconfigjson is wrong.
Previously the auth key would look like
registry/repo
e.gregistry.gitlab.com/project.taurus/data-jobs-stg
.With all the repositories I tried to authenticate against it should only be the registry name e.g
registry.gitlab.com/project.taurus
.I reached out the @mivanov1988 privately in slack to check with him that this new way would also work with AWS ECR.
What
This fixes it
How has this been tested
Printed out the template and looks good.
Signed-off-by: murphp15 [email protected]