-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Kubernetes Extension Can't Build on Windows #30525
Comments
Update: This issue seems only to occur in the Windows Terminal. Running it in the normal windows CMD prompt does not have the same issue. |
@manusa this looks like a client bug. Do you know if it's an issue? |
I think it might be partially related to:
From the stacktrace I understand that the problem is caused when instantiating the client, and that the autoconfiguration part is failing. i.e. the process fails even before generating resources or anything else. I'm not sure if the issue is caused by the contents of your Could you please check the file contents and if there's such an entry enclose it with |
Ah...looks like this might be the answer, though wrapping it in quotes didn't fully fix the problem. I use Digital Ocean as my k8s provider and their config tool added an entry like this (originally without the quotes). command: "C:\Program Files\doctl\doctl.exe" After adding the quotes, I got a different error about an invalid escape code so I changed
|
@manusa ^ |
Hi @aelfric |
This is the one with the escaped apiVersion: v1
clusters:
- cluster:
certificate-authority-data: REDACTED
server: REDACTED
name: REDACTED
contexts:
- context:
cluster: REDACTED
user: REDACTED
name: REDACTED
current-context: REDACTED
kind: Config
preferences: {}
users:
- name: REDACTED
user:
exec:
apiVersion: client.authentication.k8s.io/v1beta1
args:
- kubernetes
- cluster
- kubeconfig
- exec-credential
- --version=v1beta1
- --context=k8s
- 95523dba-0a36-46c3-bcab-87de681e0097
command: "C:\Program Files\\doctl\\doctl.exe"
env: null
provideClusterInfo: false |
Thx! I've created fabric8io/kubernetes-client#4803 |
Closing this an upstream issue |
Describe the bug
Trying to run
mvn package
on Windows with a project configured with thequarkus-kubernetes
extension, and it fails seemingly due to a space in the "Program Files" directory name.Expected behavior
No response
Actual behavior
No response
How to Reproduce?
Reproducer: https://github.com/aelfric/github-classroom-lti
On windows, run
./mvnw package
Output of
uname -a
orver
Windows 11
Output of
java -version
openjdk version "19.0.1" 2022-10-18 OpenJDK Runtime Environment Temurin-19.0.1+10 (build 19.0.1+10) OpenJDK 64-Bit Server VM Temurin-19.0.1+10 (build 19.0.1+10, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Additional information
Happy to help debug / fix this if someone could point me in the right direction.
The text was updated successfully, but these errors were encountered: