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

display healthy cond on get #330

Merged
merged 1 commit into from
Jan 14, 2025
Merged

display healthy cond on get #330

merged 1 commit into from
Jan 14, 2025

Conversation

maksymvavilov
Copy link
Contributor

display healthy cond on get
image

@mikenairn
Copy link
Member

@maksymvavilov What does this display if you have no health check? Nothing?

@maksymvavilov
Copy link
Contributor Author

@mikenairn yes.
Changed priority so it is not always there
image

@maksymvavilov maksymvavilov force-pushed the extend-status branch 2 times, most recently from 17d492d to b8a6f2b Compare December 11, 2024 10:17
@maksymvavilov
Copy link
Contributor Author

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
Copy link
Collaborator

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?

Copy link
Contributor Author

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
@maksymvavilov maksymvavilov added this pull request to the merge queue Jan 14, 2025
Merged via the queue into main with commit db82796 Jan 14, 2025
15 checks passed
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.

3 participants