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

983: Adding timeout in waitRules #994

Merged
merged 4 commits into from
Aug 6, 2024

Conversation

rohitagg2020
Copy link
Contributor

@rohitagg2020 rohitagg2020 commented Aug 1, 2024

Sample Output

$ kapp deploy -a simpleapp -f ~/config/pod-config.yml
Target cluster 'https://127.0.0.1:58277' (nodes: kind-control-plane)

Changes

Namespace  Name   Kind  Age  Op      Op st.  Wait to    Rs  Ri
default    nginx  Pod   -    create  -       reconcile  -   -

Op:      1 create, 0 delete, 0 update, 0 noop, 0 exists
Wait to: 1 reconcile, 0 delete, 0 noop

Continue? [yN]: y

11:08:45AM: ---- applying 1 changes [0/1 done] ----
11:08:46AM: create pod/nginx (v1) namespace: default
11:08:46AM: ---- waiting on 1 changes [0/1 done] ----
11:08:46AM: ongoing: reconcile pod/nginx (v1) namespace: default
11:08:46AM:  ^ ContainersReady: ContainersNotReady (message: containers with unready status: [nginx])
11:09:16AM: fail: reconcile pod/nginx (v1) namespace: default
11:09:16AM:  ^ Encountered failure condition ContainersReady == False: ContainersNotReady (message: containers with unready status: [nginx]) continuously for 30s duration

kapp: Error: waiting on reconcile pod/nginx (v1) namespace: default:
  Finished unsuccessfully (Encountered failure condition ContainersReady == False: ContainersNotReady (message: containers with unready status: [nginx]) continuously for 30s duration)

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?


Fixes #983

Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


@rohitagg2020 rohitagg2020 changed the title 983: Adding timeout in waitRules [Do not merge] 983: Adding timeout in waitRules Aug 2, 2024
@rohitagg2020 rohitagg2020 changed the title [Do not merge] 983: Adding timeout in waitRules 983: Adding timeout in waitRules Aug 5, 2024
@rohitagg2020 rohitagg2020 force-pushed the develop branch 3 times, most recently from 1d0cab0 to e592621 Compare August 6, 2024 08:02
Signed-off-by: Rohit Aggarwal <[email protected]>
Copy link
Member

@praveenrewar praveenrewar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rohitagg2020 rohitagg2020 merged commit 12ddf94 into carvel-dev:develop Aug 6, 2024
5 checks passed
@100mik
Copy link
Contributor

100mik commented Aug 6, 2024

We do need to document this behaviour

@github-actions github-actions bot added the carvel triage This issue has not yet been reviewed for validity label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
carvel triage This issue has not yet been reviewed for validity
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Enhance custom waiting behavior.
3 participants