jkube
jkube copied to clipboard
Registry (pull/push) authentication
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
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)?
tks @rohanKanojia I will retry.