-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus k8s image push does not work with kubectl external authentication #10191
Comments
It sure seems a problem in Kubernetes Client. It seems the
https://groups.google.com/g/quarkus-dev/c/TchHYnLC-3I/m/VvpdaWe_AQAJ:
Does this mean that if we fix the env, your use-case would work (i.e. instead of running See also: client-go-credential-plugins |
My kubectl cli works perfectly with just "aws" in kube config. Just a note that I am running all this on windows. |
👍 So it's definitely a problem with |
Hi @manusa, would this get fixed? |
Hi @vishalgoel1988 we've added fabric8io/kubernetes-client#2308 to our current Sprint, and we'll try to take care of it soon. It would also be good if we could count on you to verify our fix works (once we have it), since our team doesn't have access to an environment with the same conditions as yours. |
Thanks @manusa. |
Your issue was tackled in scope of fabric8io/kubernetes-client#2308 and fix implementation was included in our latest release: https://github.com/fabric8io/kubernetes-client/releases/tag/v4.11.0 Please, check if everything works as expected now. |
Thanks. I will give it a try. |
I'll close this as it seems to have been fixed. If that is not the case, feel free to comment or reopen |
Describe the bug
Hi,
I am trying to deploy a quarkus application in kubernetes cluster (EKS) using quarkus kubernetes extension.
During mvnw package, I see below error in mvn output (though build is shown as success). I have "aws" in my path and even on same console, I am able to run aws command.
[INFO] --- quarkus-maven-plugin:1.4.2.Final:build (default) @ security-keycloak-authorization-quickstart ---
[WARNING] [io.quarkus.deployment.QuarkusAugmentor] Using Java versions older than 11 to build Quarkus applications is deprecated and will be disallowed in a future release!
[ERROR] Failed to parse the kubeconfig.
java.io.IOException: Cannot run program "aws": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)
at io.fabric8.kubernetes.client.Config.loadFromKubeconfig (Config.java:570)
at io.fabric8.kubernetes.client.Config.tryKubeConfig (Config.java:491)
at io.fabric8.kubernetes.client.Config.autoConfigure (Config.java:230)
In users section of .kube/config, I have below:
users:
user:
exec:
apiVersion: client.authentication.k8s.io/v1alpha1
args:
- --region
- us-west-2
- eks
- get-token
- --cluster-name
- <cluster_name>
command: aws
env: null
Expected behavior
There should not be any build errors.
Actual behavior
There are exceptions in build.
To Reproduce
Steps to reproduce the behavior:
Configuration
Screenshots
(If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
uname -a
orver
:java -version
:mvnw --version
orgradlew --version
):Additional context
(Add any other context about the problem here.)
Discussion going on here:
https://groups.google.com/g/quarkus-dev/c/TchHYnLC-3I
The text was updated successfully, but these errors were encountered: