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 service delete" exited with code ZERO when it ran into failure #960

Closed
zyjiaobj opened this issue Jul 31, 2020 · 1 comment · Fixed by #971
Closed

"kn service delete" exited with code ZERO when it ran into failure #960

zyjiaobj opened this issue Jul 31, 2020 · 1 comment · Fixed by #971
Assignees
Labels
good first issue Denotes an issue ready for a new contributor. kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@zyjiaobj
Copy link

Bug report

➜  ~ kn service delete hello
Internal error occurred: failed calling webhook "validation.webhook.serving.knative.dev": Post https://webhook.knative-serving.svc:443/resource-validation?timeout=10s: context deadline exceeded.
➜  ~ echo $?
0
➜  ~ kn service delete hello --no-wait
Internal error occurred: failed calling webhook "validation.webhook.serving.knative.dev": Post https://webhook.knative-serving.svc:443/resource-validation?timeout=10s: context deadline exceeded.
➜  ~ echo $?
0
➜  ~ kn service delete abc
services.serving.knative.dev "abc" not found.
➜  ~ echo $?
0

Expected behavior

I suppose I should get a return code "1" for the delete failure.

Steps to reproduce the problem

Delete n nonexistent ksvc:

➜  ~ kn service delete abc
services.serving.knative.dev "abc" not found.
➜  ~ echo $?
0

kn version

➜  ~ kn version
Version:      v0.16.0
Build Date:   2020-07-15 07:01:17
Git Revision: 5cb78308
Supported APIs:
* Serving
  - serving.knative.dev/v1 (knative-serving v0.16.0)
* Eventing
  - sources.knative.dev/v1alpha2 (knative-eventing v0.16.0)
  - eventing.knative.dev/v1beta1 (knative-eventing v0.16.0)

Knative (serving/eventing) version

v0.16.0

@zyjiaobj zyjiaobj added the kind/bug Categorizes issue or PR as related to a bug. label Jul 31, 2020
@navidshaikh navidshaikh added this to the v0.17.0 milestone Jul 31, 2020
@navidshaikh navidshaikh added the good first issue Denotes an issue ready for a new contributor. label Jul 31, 2020
@hemanrnjn
Copy link
Contributor

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants