GoogleContainerTools / minikube-build-tools-for-java

Minikube lifecycle management tools for Gradle and Maven.
Apache License 2.0
57 stars 27 forks source link

Add registry authenticator for other registries. #94

Closed coollog closed 6 years ago

coollog commented 6 years ago

In RegistryAuthenticators, there is currently RegistryAuthenticator#forDockerHub.

Add RegistryAuthenticator#forOther that:

1) Fetches GET /v2/ 2) Extracts the WWW-Authenticate header (eg. WWW-Authenticate: Bearer realm="https://gcr.io/v2/token",service="gcr.io") 3) Parses the header and authenticates accordingly.