-
Notifications
You must be signed in to change notification settings - Fork 2
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 Icinga states to replica set #73
Conversation
4e22941
to
6fed648
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Use the new
IcingaState
type. - In strings use
ReplicaSet
instead ofReplica Set
. - In strings also show namespace, i.e.
ReplicaSet namespace/name ...
. - In strings always show current and desired ration, i.e. '2 current / 7 desired'.
- For the warning state I would write something like "... number of available replicas is less than ..."
getIcingaState
should be a function ofReplicatSet
be renamed toApplyIcingaState
whereIcingaState
andIcingaStateReason
is set directly.
dd1c695
to
cc9d393
Compare
Also add a grace period of 5 minutes (i.e. created timestamp + 5 minutes > now) before switching to warning or critical. |
f8d53a9
to
250d545
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please rebase.
And please add newlines before |
de53667
to
5c4df9b
Compare
5c4df9b
to
51b7b34
Compare
No description provided.