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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove fixed registry configurations #192

Merged
merged 7 commits into from
Nov 3, 2022
Merged

Conversation

jorgeaguileraseqera
Copy link
Contributor

remove fixed registry configurations from code and move them to configuration to allow include more registries without change code

the new configuration uses the full name of the registry as key and allows to specify which of them use as default

  registries:
    default: docker.io
    docker.io:
      username: theuser
      password: thepwd
    195996028523.dkr.ecr.eu-west-1.amazonaws.com:
      username : theAwsUser
      password : theAwsPd

@jorgeaguileraseqera jorgeaguileraseqera self-assigned this Nov 2, 2022
jorgeaguileraseqera and others added 2 commits November 3, 2022 10:18
Signed-off-by: Paolo Di Tommaso <[email protected]>
@ConfigurationProperties('wave')
@Context
@CompileStatic
class RegistryConfig {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Simplified to RegistryConfig to not overlap with RegistryCredentialsFactory

Signed-off-by: Paolo Di Tommaso <[email protected]>
/**
* Registry static key pair as defined in the Wave config file
*/
static class RegistryKeys {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The registry name must be the same as the one specified in the method invocation. I've removed from this class.

@pditommaso
Copy link
Collaborator

pditommaso commented Nov 3, 2022

Nice job! this is much more flexible and removes a lot of code!

@pditommaso
Copy link
Collaborator

Always him #178 😠

@pditommaso pditommaso merged commit 697aa5f into master Nov 3, 2022
@pditommaso pditommaso deleted the config-registries branch November 3, 2022 10:32
@jorgeaguileraseqera
Copy link
Contributor Author

Always him #178 angry

yesterday I was working on it and I've created a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants