jkube icon indicating copy to clipboard operation
jkube copied to clipboard

Registry (pull/push) authentication

Open bameur opened this issue 2 years ago • 2 comments

Component

Kubernetes Maven Plugin

Is your enhancement related to a problem? Please describe

When pulling (via the autoPull mode of k8s:build) or pushing image, it might be necessary to authenticate against a Docker registry.

If the repository used for the pull and the push is not the same, the xml element of the pom.xml for authentication <authConfig> is not sufficient. is it possible to have an autentification in the pom for each registy?

Describe the solution you'd like

Example, <pullRegistyAuthConfig> and <pushRegistyAuthConfig>

Describe alternatives you've considered

No response

Additional context

No response

bameur avatar Jun 27 '22 07:06 bameur

I think we already support registry authentication while pushing/pulling images. Did you get a chance to check out Registry Handling section of our documentation? It says it's possible to provide pull registry via jkube.docker.pull.registry. AuthConfig also seems to have <push> and <pull> options, Could you please check if it works for you (Push vs Pull Authentication)?

rohanKanojia avatar Jun 27 '22 08:06 rohanKanojia

tks @rohanKanojia I will retry.

bameur avatar Jun 27 '22 09:06 bameur