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: template resources in kubernetes resource check #1803

Merged
merged 7 commits into from
Apr 26, 2024

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Apr 20, 2024

we allow templating everything including the name of both static and non-static resources except

  • namespace
  • Group
  • Version
  • Kind

All polling and deleting operations, which were name based, have been moved to use the namespace + GroupVersionKind api.

If the program crashes right after it has created the kubernetes resources but before it has deleted them, then it'll just clean those resources up in the next run even if the name of the resources are randomly generated.


These labels are added to all the resources

canaries.flanksource.com/canary-id=d789b028-d3e6-43f7-9898-f9c5a3bf2f4e
canaries.flanksource.com/check-id=018f0ae6-030a-f9bd-5e78-c6e060394957

additionally, static resources also gets

canaries.flanksource.com/is-static=true

@adityathebe adityathebe force-pushed the feat/template-kubernetes-resources branch from 418d856 to 28b2077 Compare April 20, 2024 06:28
@adityathebe adityathebe force-pushed the feat/template-kubernetes-resources branch 2 times, most recently from 7679209 to 2dc8ffe Compare April 23, 2024 11:06
@adityathebe adityathebe force-pushed the feat/template-kubernetes-resources branch 4 times, most recently from 4549120 to 672c94c Compare April 25, 2024 10:50
@adityathebe adityathebe force-pushed the feat/template-kubernetes-resources branch 3 times, most recently from 118ad1d to c0180e9 Compare April 25, 2024 14:11
add log line when the wait for expression fails
@adityathebe adityathebe force-pushed the feat/template-kubernetes-resources branch from c0180e9 to 8e2c1db Compare April 25, 2024 14:47
@moshloop moshloop merged commit 234e3cf into master Apr 26, 2024
16 checks passed
@moshloop moshloop deleted the feat/template-kubernetes-resources branch April 26, 2024 09:46
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.

2 participants