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

[question] Is that possible to assert two paths? #171

Open
Sam-Tymoshchuk opened this issue Aug 12, 2022 · 1 comment
Open

[question] Is that possible to assert two paths? #171

Sam-Tymoshchuk opened this issue Aug 12, 2022 · 1 comment

Comments

@Sam-Tymoshchuk
Copy link

I would like to compare that sa created in a dependency chart is what set to serviceAccountName in my deployment?

@d3adb5
Copy link

d3adb5 commented Aug 21, 2022

Might be a good idea to enable the Discussion tab for this kind of issue, @quintush.

@Sam-Tymoshchuk As far as I can tell, no it isn't possible. It would mean referencing something within another rendered object, which isn't part of this library. Might be an interesting feature to add, however, as often we don't care too much about testing the templating logic as much as we do testing an object is the one referenced.

That said, if there is any logic in the service account name template, and you can test that, you could add an equality test for both the ServiceAccount's metadata.name and the Deployment's spec.serviceAccountName.

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

No branches or pull requests

2 participants