Skip to content
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

Bugfix: No specific cause of the error printed when the init the k8s runtime failed. #361

Closed
panshuai111 opened this issue Jun 19, 2023 · 0 comments · Fixed by #409
Closed
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@panshuai111
Copy link
Contributor

What happened?

When I execute kusion preview, the error of init runtime failure is reported, but the specific cause of the error is not revealed. The print result is as follows:

failed to execute kusion preview in workspace xxx: failed to executed kusion preview command as: Generating Spec in the Stack ...

❌: preview failed.
Kind: ERROR, Code: INTERNAL, Message: init Kubernetes runtime failed
: exit status 1

What did you expect to happen?

I want to be able to print out specific failure reasons like kubectl.

How can we reproduce it (as minimally and precisely as possible)?

Specify a wrong kubeconfig

Anything else we need to know?

No response

Kusion version

v0.8.1

OS version

No response

Install tools

No response

@panshuai111 panshuai111 added the kind/bug Something isn't working label Jun 19, 2023
@SparkYuan SparkYuan self-assigned this Jul 24, 2023
@SparkYuan SparkYuan added this to the 0.9.0 milestone Jul 24, 2023
@ffforest ffforest changed the title No specific cause of the error printed when the init the k8s runtime failed. Bugfix: No specific cause of the error printed when the init the k8s runtime failed. Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants