Skip to content

Conversation

@tonistiigi
Copy link
Member

This enables client to provide their own functionality for AuthConfig lookup, rather than just passing in dockercli.ConfigFile.

These are the buildkit client-side changes extracted from docker/buildx#3562 .

This enables client to provide their own functionality for
AuthConfig lookup, rather than just passing in dockercli.ConfigFile.

Signed-off-by: Tonis Tiigi <[email protected]>
Comment on lines 25 to 27
p := NewDockerAuthProvider(DockerAuthProviderConfig{
ConfigFile: cfg,
AuthConfigProvider: LoadAuthConfig(cfg),
}).(*authProvider)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe not for this PR but maybe we could move the docker auth provider to another package like session/auth/authprovider/dockerconfig?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I can do that in a follow-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants