You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the client from Windows, the following stacktrace is thrown:
org.yaml.snakeyaml.parser.ParserException: expected '<document start>', but found '<scalar>'
in 'reader', line 1, column 14:
'C:\Program' is not recognized as an internal ...
^
at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce (ParserImpl.java:274)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent (ParserImpl.java:185)
at org.yaml.snakeyaml.parser.ParserImpl.checkEvent (ParserImpl.java:175)
at org.yaml.snakeyaml.composer.Composer.getSingleNode (Composer.java:163)
at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData (BaseConstructor.java:184)
at org.yaml.snakeyaml.Yaml.loadFromReader (Yaml.java:477)
at org.yaml.snakeyaml.Yaml.load (Yaml.java:418)
at io.fabric8.kubernetes.client.utils.Serialization.unmarshal (Serialization.java:237)
at io.fabric8.kubernetes.client.utils.Serialization.unmarshal (Serialization.java:351)
at io.fabric8.kubernetes.client.utils.Serialization.unmarshal (Serialization.java:287)
at io.fabric8.kubernetes.client.utils.Serialization.unmarshal (Serialization.java:272)
at io.fabric8.kubernetes.client.Config.getExecCredentialFromExecConfig (Config.java:746)
at io.fabric8.kubernetes.client.Config.loadFromKubeconfig (Config.java:702)
at io.fabric8.kubernetes.client.Config.tryKubeConfig (Config.java:616)
at io.fabric8.kubernetes.client.Config.autoConfigure (Config.java:286)
at io.fabric8.kubernetes.client.Config.autoConfigure (Config.java:282)
at io.quarkus.kubernetes.client.runtime.KubernetesClientUtils.createConfig (KubernetesClientUtils.java:18)
at io.quarkus.kubernetes.client.runtime.KubernetesClientUtils.createClient (KubernetesClientUtils.java:52)
at io.quarkus.kubernetes.client.deployment.KubernetesClientBuildStep.process (KubernetesClientBuildStep.java:16)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:104)
at java.lang.reflect.Method.invoke (Method.java:578)
at io.quarkus.deployment.ExtensionLoader$3.execute (ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run (BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith (ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run (EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run (EnhancedQueueExecutor.java:1478)
at java.lang.Thread.run (Thread.java:1589)
at org.jboss.threads.JBossThread.run (JBossThread.java:501)
The culprit is a .kube/config file that contains a field with backslashes and apparently causes trouble. The following code snippet contains a redacted version of this configuration file:
Describe the bug
from quarkusio/quarkus#30525
When running the client from Windows, the following stacktrace is thrown:
The culprit is a
.kube/config
file that contains a field with backslashes and apparently causes trouble. The following code snippet contains a redacted version of this configuration file:Un order to fix, we should add a reproducer to one of the Serialization test suites and then fix whatever is causing the bug.
Fabric8 Kubernetes Client version
SNAPSHOT
Steps to reproduce
.kube/config
fileExpected behavior
The client should instantiate correctly and you should be able to perform operations with it.
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
1.25.3@latest
Environment
Windows
Fabric8 Kubernetes Client Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: