knative / client

Knative developer experience, docs, reference Knative CLI implementation
Apache License 2.0
354 stars 261 forks source link

Cmd `kn service wait` doesn't end on ready ksvc as expected #1922

Closed dsimansk closed 7 months ago

dsimansk commented 8 months ago

Bug report

Let's have a pre-created KSvc hello, in all good ready state. Then executing wait command doesn't immediately return success ready message.

However, it appears to be waiting in a loop and fails with error at the end of wait timeout. That's definitely not expected behavior.

➜  client git:(pr/debug-domain-wait) kn service wait hello
Waiting for Service 'hello' in namespace 'default':

Error: timeout: service 'hello' not ready after 600 seconds
Run 'kn --help' for usage

Expected behavior

kn service wait hello

# Return zero return code and success ready message immediately on `ready` state detection

Steps to reproduce the problem

  1. kn service create hello --image docker.io/dsimansk/helloword
  2. kn service wait hello

kn version

Current main

Knative (serving/eventing) version

Nightly