-
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-kubernetes-client fails to use ExecCredential when running in native mode #30151
Comments
Any chance you can provide the entire stacktrace? |
Sure, here you go:
|
Great, thanks! |
#30153 should fix the issue |
gsmet
added a commit
that referenced
this issue
Jan 3, 2023
Ensure that k8s client's ExecConfig works properly in native mode
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 3, 2023
Fixes: quarkusio#30151 (cherry picked from commit 0491d6f)
gsmet
pushed a commit
to gsmet/quarkus
that referenced
this issue
Jan 4, 2023
Fixes: quarkusio#30151 (cherry picked from commit 0491d6f)
ebullient
pushed a commit
to maxandersen/quarkus
that referenced
this issue
Jan 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I'm developing a Quarkus application which creates resources on a Kubernetes cluster. The cluster is an EKS cluster and hence the kubeconfig on my development machine contains an
exec
section which callsaws eks get-token ...
.When building the application in native mode and running it on my development machine, the Kubernetes client fails because it cannot deserialize the
ExecConfig
.Expected behavior
The Kubernetes client provided by the
quarkus-kubernetes-client
extension should be able to authenticate with clusters usingExecCredential
in native mode just as it is able to do so inquarkus dev
mode.Actual behavior
The Kubernetes client fails with the following error when running in native mode:
Cannot construct instance of
io.fabric8.kubernetes.client.Config$ExecCredential: cannot deserialize from Object value (no delegate- or property-based Creator): this appears to be a native image, in which case you may need to configure reflection for the class that is to be deserialized
How to Reproduce?
aws eks update-kubeconfig --name <cluster-name>
so that you have a kubeconfig containing theexec
section on your machine.Output of
uname -a
orver
No response
Output of
java -version
openjdk 17.0.5 2022-10-18
GraalVM version (if different from Java)
22.3.0
Quarkus version or git rev
2.15.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.6
Additional information
No response
The text was updated successfully, but these errors were encountered: