-
Notifications
You must be signed in to change notification settings - Fork 9
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
display healthy cond on get #330
Conversation
@maksymvavilov What does this display if you have no health check? Nothing? |
@mikenairn yes. |
17d492d
to
b8a6f2b
Compare
there is also a sister PR on the kuadrant side if you are up to it |
@@ -162,6 +162,7 @@ type DNSRecordStatus struct { | |||
//+kubebuilder:object:root=true | |||
//+kubebuilder:subresource:status | |||
//+kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="DNSRecord ready." | |||
//+kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[?(@.type==\"Healthy\")].status",description="DNSRecord healthy.",priority=2 |
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.
is there a way to make this display something like "unknown" rather than nothing at all, when the field is missing?
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.
from the kubebuilder side no, but we can always have this condition set to something in the code.
For example if you don't have healthchecks enabled we will have .status.conditions["Healthy"]
present and set to "Undefined" or something like it 🤔 I'd prefer not to, however
Signed-off-by: Maskym Vavilov <[email protected]> # Conflicts: # bundle/manifests/dns-operator.clusterserviceversion.yaml
b8a6f2b
to
0b86180
Compare
display healthy cond on get