-
Notifications
You must be signed in to change notification settings - Fork 44
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: Support errors on NCP status #895
Conversation
Need to add unit tests, and check how the different states are behaving |
Need to be a bit careful with this as any error which is different on each reconcile - e.g. which contains the generated name of an object - will cause infinite super-fast reconciles |
AFAIK, the generated yamls are the same on each reconcile. Otherwise, we would have tons of k8s objects created. |
/retest-nic_operator_helm |
/retest-nic_operator_kind |
@@ -291,6 +291,8 @@ type AppliedState struct { | |||
Name string `json:"name"` | |||
// +kubebuilder:validation:Enum={"ready", "notReady", "ignore", "error"} | |||
State State `json:"state"` | |||
// Error string in case the state is error | |||
Error string `json:"error,omitempty"` |
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.
can we call this "message" ?
// message is a human readable message indicating details about why the state is in this condition.
similar to what we have in pod status
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.
Done
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.
small comment about naming otherwise LGTM
Pull Request Test Coverage Report for Build 9250532710Details
💛 - Coveralls |
/retest-copy-right |
/retest-image_scan |
/retest-blackduck_scan |
/retest-nic_operator_helm |
/retest-nic_operator_kind |
6 similar comments
/retest-nic_operator_kind |
/retest-nic_operator_kind |
/retest-nic_operator_kind |
/retest-nic_operator_kind |
/retest-nic_operator_kind |
/retest-nic_operator_kind |
Fixes Mellanox#533 Signed-off-by: Fred Rolland <frolland@nvidia.com>
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.
LGTM
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.
LGTM!
Fixes #533
Example status: