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

[kn-plugin-workflow] Improve error message when deploying without running cluster on local #2516

Open
domhanak opened this issue Aug 7, 2024 · 0 comments
Assignees

Comments

@domhanak
Copy link
Contributor

domhanak commented Aug 7, 2024

Goal
Improve the error message when running kn workflow deploy –namespace apache-10 --custom-generated-manifests-dir ./ on a project that has YAML workflow.

Reason
No cluster up and running on local, should be solved by our docs and prerequisites

Details

- ✅ Manifest 01-sonataflow_hello.yaml successfully deployed in namespace apache-10
error: unable to decode "workflow.sw.yaml": Object 'Kind' is missing in
 '{"description":"Description","id":"hello","name":"Hello World","specVersion":"0.8.0","start":"HelloWorld",
"states":[{"data":{"message":"Hello World"},"end":true,"name":"HelloWorld","type":"inject"}],"version":"1.0"}'
 has a errorError:
 ❌ ERROR: applying deploy: ❌ ERROR: failed to deploy manifest workflow.sw.yaml,  
❌ ERROR: failed to execute kubectl apply command for workflow.sw.yaml: exit status 1

Expected result
A message stating there is no cluster running to where to deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant