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

feat(kuma-cp) new status 'Partially degraded' for 'kumactl' #1378

Merged
merged 1 commit into from
Jan 8, 2021

Conversation

lobkovilya
Copy link
Contributor

Summary

Support new status for Dataplanes in kumactl. So now there are 3 of them Online/Offline/Partially degraded.
This status is calculated based on the status of kuma-dp (comes from DataplaneInsight) and based on the health of Dataplane inbounds.

  • If kuma-dp is offline, overall status is always: OFFLINE.
  • If kuma-dp is online and all the inbounds are running/ready, overall status is always: ONLINE.
  • If kuma-dp is online and one or more inbounds are offline (but not all the inbounds) overall status is: PARTIALLY DEGRADED. If all the inbounds are offline, overall status is: OFFLINE.

The same functionality was added to GUI - kumahq/kuma-gui#109

Documentation

…ctl'

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
@lobkovilya lobkovilya requested a review from a team as a code owner January 5, 2021 12:43
return "Partially degraded"
}
return "Online"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nice, I like this piece of code. Very clear what is going on 👍

@nickolaev nickolaev merged commit c7fe59c into master Jan 8, 2021
@nickolaev nickolaev deleted the feat/partially-degraded-status branch January 8, 2021 15:18
mergify bot pushed a commit that referenced this pull request Jan 8, 2021
…ctl' (#1378)

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit c7fe59c)
nickolaev pushed a commit that referenced this pull request Jan 12, 2021
…ctl' (#1378) (#1400)

Signed-off-by: Ilya Lobkov <ilya.lobkov@konghq.com>
(cherry picked from commit c7fe59c)

Co-authored-by: Ilya Lobkov <ilya.lobkov@konghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants