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

status: detect when DaemonSets and Deployments are rolling out #1383

Merged
merged 1 commit into from Feb 21, 2023

Conversation

squeed
Copy link
Contributor

@squeed squeed commented Feb 13, 2023

There are a few additional states that indicate a Deployment or DaemonSet is progressing and not yet fully deployed:

  • ObservedGeneration < Generation means the relevant controller has not yet observed the changes

  • UpdatedReplicas / UpdatedNumberScheduled too small means that the update has not fully rolled out.

    Fixes: k8s: Check observedGeneration in status #413 which was somehow reverted in a refactor

Signed-off-by: Casey Callendrello cdc@isovalent.com

@squeed squeed requested a review from a team as a code owner February 13, 2023 14:30
@squeed squeed requested a review from ldelossa February 13, 2023 14:30
@squeed squeed temporarily deployed to ci February 13, 2023 14:30 — with GitHub Actions Inactive
status/k8s.go Outdated Show resolved Hide resolved
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thanks!

There are a few additional states that indicate a Deployment or
DaemonSet is progressing and not yet fully deployed:

- ObservedGeneration < Generation means the relevant controller has not
  yet observed the changes
- UpdatedReplicas / UpdatedNumberScheduled too small means that the
  update has not fully rolled out.

  Fixes: cilium#413 which was somehow reverted in a refactor

Signed-off-by: Casey Callendrello <cdc@isovalent.com>
@squeed
Copy link
Contributor Author

squeed commented Feb 14, 2023

Test failure is a flake connecting to google.com. Definitely not related to this PR.

re-pushed anyways to address goimport issue.

@squeed squeed temporarily deployed to ci February 14, 2023 09:58 — with GitHub Actions Inactive
Copy link
Contributor

@ldelossa ldelossa left a comment

Choose a reason for hiding this comment

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

very handy!

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Feb 21, 2023
@tklauser tklauser merged commit 2ceef44 into cilium:master Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR has passed all tests and received consensus from code owners to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants