Skip to content

feat(tanka-utils): add isKubernetesObject test and findKubernetesObject utilities #1442

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexander-bauer
Copy link

I was working on my home cluster last week, and ran into a case where I needed to traverse a rendered Helm chart in order to generate ServiceMonitor resources for each Service. The existing patchKubernetesObjects function couldn't quite cover this case, so I wrote a similar function, and figured it would do best in this library.

I also extracted the isKubernetesObject logic common to both functions, in the hopes that it'll also be independently useful.

@alexander-bauer alexander-bauer requested a review from Duologic May 14, 2025 19:13
@Duologic
Copy link
Member

There's also this utility which has a function for finding kubernetes objects: https://github.com/jsonnet-libs/xtd/blob/master/docs%2Finspect.md

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