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: new kubernetes resource check #1756

Merged
merged 15 commits into from
Apr 8, 2024
Merged

Conversation

adityathebe
Copy link
Member

resolves: #436

@adityathebe adityathebe force-pushed the feat/new-kubernetes-check branch 4 times, most recently from 609fca2 to 1fafac7 Compare April 1, 2024 05:31
@adityathebe adityathebe force-pushed the feat/new-kubernetes-check branch 2 times, most recently from 3783e3b to 747c52c Compare April 1, 2024 13:33
@adityathebe adityathebe marked this pull request as ready for review April 1, 2024 14:26
@adityathebe adityathebe force-pushed the feat/new-kubernetes-check branch 12 times, most recently from 4c5a4f4 to e290443 Compare April 3, 2024 15:03
@adityathebe adityathebe force-pushed the feat/new-kubernetes-check branch 4 times, most recently from 56fb315 to f3fed88 Compare April 5, 2024 05:48
@adityathebe adityathebe force-pushed the feat/new-kubernetes-check branch 2 times, most recently from b249a2c to 065e961 Compare April 8, 2024 04:47
- name: hello-world
image: hello-world
waitFor:
expr: 'dyn(resources).all(r, k8s.getHealth(r).status == "Healthy")'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be replaced by k8s.isReady once we add it

test:
expr: >
size(results) == 1 &&
results[0].Object.status.containerStatuses[0].state.terminated.exitCode == 0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could probably add a helper function in cel to get containerStatus

checks/runchecks.go Outdated Show resolved Hide resolved
checks/runchecks.go Outdated Show resolved Hide resolved
@moshloop moshloop merged commit 37116ad into master Apr 8, 2024
15 checks passed
@moshloop moshloop deleted the feat/new-kubernetes-check branch April 8, 2024 13:27
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 Generic Check
2 participants