-
Notifications
You must be signed in to change notification settings - Fork 535
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
k8s:push goal fails on insecure registries when using jib build strategy #782
Comments
It's quite strange since we have allowInSecureRegistries flag set to true in code: |
In this case the insecure registry also needs username/password auth for write access, could it be the cause? |
I'm not sure. I think we need to debug whether correct credentials are getting passed there in RegistryImage object. Would it be possible for you to set a breakpoint there and check? |
I'll try... In the meantime I've noticed that when I don't specify credentials (i.e. through -Djkube.docker.push.username/password on the CLI) there's an additional line in the log
while the remaining part doesn't change
|
Correct credentials are passed down to jib-core.
|
@davidecavestro : From your investigation, does it look like it might be a bug in jib core? |
Well, I've just tried with jib-maven-plugin and it fails the same way. It seems jib had an allowHttp config property in the past, but as of now I cannot find it. |
Description
The
k8s:push
goal fails to publish the image on insecure registries (i.e. a registry exposed only over http with username and password) when invoked passing-Djkube.build.strategy=jib
in order to avoid depending on the docker daemon.Info
mvn -v
) : 3.6.3How to reproduce
mvn -Djkube.build.strategy=jib clean package k8s:build k8s:push
in order to build (and push) using jibThe build fails complaining
as it happens when you try to access the insecure registry over https i.e. with curl (it doesn't listen on port 443, only 80)
If you omit the
-Djkube.build.strategy=jib
part it worksThe text was updated successfully, but these errors were encountered: