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: add display for kubernetes resource check #2093

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Aug 28, 2024

resolves: #2086


On the display template of a kubernetes resource check, a new display: map[string]string variable is made available. The display variable contains the display output of all of the checks defined within the kubernetes resource check.

A default display expression is also added for kubernetes resource check (which I think should probably be added to all the checks).

display.keys().map(k, k + ': ' + display[k]).join(' | ')

This expression simply concats <check name>: <display> | <check name>: <display> ...
Example: here's the display of 3 checks

image

@adityathebe adityathebe force-pushed the feat/display-for-kubernetes-resource-check branch from 031ca24 to c2de846 Compare August 28, 2024 14:32
api/v1/checks.go Outdated Show resolved Hide resolved
@adityathebe adityathebe force-pushed the feat/display-for-kubernetes-resource-check branch from c2de846 to a69d937 Compare August 29, 2024 04:50
@adityathebe adityathebe force-pushed the feat/display-for-kubernetes-resource-check branch from a69d937 to be95d34 Compare August 29, 2024 04:50
@moshloop moshloop merged commit 7ce839a into master Aug 29, 2024
16 checks passed
@moshloop moshloop deleted the feat/display-for-kubernetes-resource-check branch August 29, 2024 10:42
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.

Kubernetes Resource - Display Messages Not Working
2 participants