From 02774a47ed36d7824c56dee79b6eb417c376b5fe Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Tue, 3 Jan 2023 18:48:08 +0200 Subject: [PATCH] Ensure that k8s client's ExecConfig works properly in native mode Fixes: #30151 (cherry picked from commit 0491d6f70d006fad2eda57a85cb0123f17f94e4c) --- .../client/deployment/KubernetesClientProcessor.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java index d171af78abf74..3228c1b60afef 100644 --- a/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java +++ b/extensions/kubernetes-client/deployment/src/main/java/io/quarkus/kubernetes/client/deployment/KubernetesClientProcessor.java @@ -207,6 +207,13 @@ public void process(ApplicationIndexBuildItem applicationIndex, CombinedIndexBui reflectiveClasses .produce(new ReflectiveClassBuildItem(true, true, VersionInfo.class.getName())); + // exec credentials support - we need to use Strings as the classes are private + reflectiveClasses + .produce(new ReflectiveClassBuildItem(true, true, + "io.fabric8.kubernetes.client.Config$ExecCredential", + "io.fabric8.kubernetes.client.Config$ExecCredentialSpec", + "io.fabric8.kubernetes.client.Config$ExecCredentialStatus")); + if (log.isDebugEnabled()) { final String watchedClassNames = watchedClasses .stream().map(Object::toString)