Describe the bug
<sever> authentication in settings.xml doesn't work for pullregistry.
Also using docker login is not respected with pullregistry (settings.xml without server section).
I have two separate docker registries. One for pull (dockerhub proxy) and one for push.
Case 1. jkube doesn't respect settings.xml configuration
settings.xml
<settings>
<servers>
<server>
<id>my.proxy</id>
<username>user</username>
<password>pass</password>
</server>
</servers>
</settings>
Dockerfile
FROM my.proxy/openjdk:17
# rest of the file
I noticed that everything works as expected when I set server id to docker.io
Case 2. After logging via docker login to my.proxy I'm getting unauthorized exception.
Eclipse JKube version
1.10.0
Component
Kubernetes Maven Plugin
Apache Maven version
3.8.1
Gradle version
No response
Steps to reproduce
- Set settings.xml
<settings>
<servers>
<server>
<id>my.proxy</id>
<username>user</username>
<password>pass</password>
</server>
</servers>
</settings>
- Set docker file
Dockerfile
- Set pull registry in pom:
<plugin>
<groupId>org.eclipse.jkube</groupId>
<artifactId>kubernetes-maven-plugin</artifactId>
<version>1.10.1</version>
<configuration>
<pullregistry>my.proxy</pullregistry>
</configuration>
Expected behavior
Image is being downloaded from registry.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
other (please specify in additional context)
Environment
macOS
Eclipse JKube Logs
Error while trying to build the image: Unable to pull 'my.proxy/openjdk:17' : {"message":"Head \"https://my.proxy/v2/openjdk/manifests/17\": unknown: Authentication is required"} (Internal Server Error: 500) -> [Help 1]
Sample Reproducer Project
No response
Additional context
No response
Describe the bug
<sever>authentication insettings.xmldoesn't work for pullregistry.Also using docker login is not respected with pullregistry (settings.xml without server section).
I have two separate docker registries. One for pull (dockerhub proxy) and one for push.
Case 1. jkube doesn't respect
settings.xmlconfigurationsettings.xml
Dockerfile
I noticed that everything works as expected when I set server id to docker.io
Case 2. After logging via docker login to my.proxy I'm getting unauthorized exception.
Eclipse JKube version
1.10.0
Component
Kubernetes Maven Plugin
Apache Maven version
3.8.1
Gradle version
No response
Steps to reproduce
Dockerfile
Expected behavior
Image is being downloaded from registry.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
other (please specify in additional context)
Environment
macOS
Eclipse JKube Logs
Sample Reproducer Project
No response
Additional context
No response