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

Add "kn service status wait" for deployment status check #732

Closed
cadeveloper00 opened this issue Mar 10, 2020 · 20 comments · Fixed by #1800
Closed

Add "kn service status wait" for deployment status check #732

cadeveloper00 opened this issue Mar 10, 2020 · 20 comments · Fixed by #1800
Assignees
Labels
kind/feature New feature or request triage/accepted Issues which should be fixed (post-triage)

Comments

@cadeveloper00
Copy link

Can we add a feature to kn service to check service status after deployment?
This feature should be a blocking call to wait for service status to change from Unknown to final state.

@cadeveloper00 cadeveloper00 added the kind/feature New feature or request label Mar 10, 2020
@evankanderson
Copy link
Member

This is a suggestion from a customer who is attempting to automate a GitOps workflow, but would like something like kn service wait-for-ready to be able to tell when a set of kubectl apply-ied configs have settled.

Since kn service update already supports wait-for-ready, this is simply requesting to break out that wait-for-ready.

@rhuss
Copy link
Contributor

rhuss commented Mar 12, 2020

Yes, that should shouldn't be that hard to implement (the only thing would be to also do the initial check for the status in a race-safe way)

coryrc pushed a commit to coryrc/client that referenced this issue May 14, 2020
…ve#732)

* group released repo under the same dashboard

* improve the regex
@dng00
Copy link

dng00 commented Aug 19, 2020

Any update on this?

@rhuss
Copy link
Contributor

rhuss commented Aug 20, 2020

No not yet. It's not planned for the next release (due next week), but if someone is fancy to implement this, feel free to assign it to yourself. We can then discuss the naming (which actually is the hardest problem :)

@dng00
Copy link

dng00 commented Oct 15, 2020

@evankanderson / @rhuss , appreciate if team can provide an update on this. Currently we are waiting for fixed amount of time before checking the status again. Can you suggest a more efficient work around while this is being worked on?

@navidshaikh
Copy link
Collaborator

navidshaikh commented Oct 20, 2020

@dng00 : Lets discuss this in today's client working group call? we meet every week on Tuesday, you can find more details in the charter (today's meeting starts in about 3.5 hours from now).

@rhuss
Copy link
Contributor

rhuss commented Oct 20, 2020

I think it make sense, but I propos to call it just kn service wait and then possibly specify what to wait for as an option. Maybe make it even compliant to kubectl wait (which does something similar with kubectl only), but only if this make sense.

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 19, 2021
@rhuss
Copy link
Contributor

rhuss commented Jan 19, 2021

/remove-lifecycle stale

@knative-prow-robot knative-prow-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 19, 2021
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 20, 2021
@evankanderson
Copy link
Member

Any action on this?

@rhuss
Copy link
Contributor

rhuss commented Apr 20, 2021

no, not yet. It hasn't be picked up, nor is there a near-term plan from the core contributors. Any news that might impact the priority? (Still, I believe it would be a nice-to-have feature, we just don't have the spare cycles to tackle it)

@navidshaikh
Copy link
Collaborator

I'll take it.
/assign

We can have wait sub-command with --wait-timeout flag to specify timeout in number of seconds before giving up waiting for the service to become ready (default 600 seconds).

kn service wait NAME [--wait-timeout int]

@navidshaikh
Copy link
Collaborator

kn service wait-for-ready to be able to tell when a set of kubectl apply-ied configs have settled.

Also, kn now supports kn apply with wait behaviour by default. So users can

kn service apply -f /tmp/default/ksvc/foo.yaml
Creating service 'foo' in namespace 'default':

  0.025s The Route is still working to reflect the latest desired specification.
  0.067s Configuration "foo" is waiting for a Revision to become ready.
  5.689s ...
  5.714s Ingress has not yet been reconciled.
  5.762s Waiting for load balancer to be ready
  5.939s Ready to serve.

Service 'foo' created to latest revision 'foo-00001' is available at URL:
http://foo.default.example.com

with this, kubectl apply -f + kn service wait can be replaced by kn service apply -f

@github-actions github-actions bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Apr 21, 2021
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 21, 2021
@rhuss
Copy link
Contributor

rhuss commented Jul 28, 2021

/remove-lifecycle stale

@knative-prow-robot knative-prow-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 28, 2021
@github-actions
Copy link

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Reopen the issue with /reopen. Mark the issue as
fresh by adding the comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 27, 2021
@navidshaikh
Copy link
Collaborator

/remove-lifecycle stale

@knative-prow-robot knative-prow-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 27, 2021
@rhuss rhuss added the triage/accepted Issues which should be fixed (post-triage) label Nov 4, 2021
@dsimansk
Copy link
Contributor

dsimansk commented Apr 6, 2023

/assign @manoelmarques

@knative-prow
Copy link

knative-prow bot commented Apr 6, 2023

@dsimansk: GitHub didn't allow me to assign the following users: manoelmarques.

Note that only knative members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @manoelmarques

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request triage/accepted Issues which should be fixed (post-triage)
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

7 participants