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

Feature: isType assertition #325

Open
rquinio1A opened this issue Apr 29, 2024 · 1 comment · May be fixed by #327
Open

Feature: isType assertition #325

rquinio1A opened this issue Apr 29, 2024 · 1 comment · May be fixed by #327
Labels
Milestone

Comments

@rquinio1A
Copy link
Contributor

rquinio1A commented Apr 29, 2024

I didn't find a way to assert the type of a specific value (string, number, boolean, ...)
My use case would be to check that all K8s container env values have type string, otherwise it causes error like "cannot convert int64 to string".

Something like:

- isType:
    path: spec.template.spec.containers[0].env[value]
    type: string
@quintush quintush modified the milestones: 0.2.0, v0.6.0 Apr 29, 2024
@d3adb5 d3adb5 linked a pull request Apr 30, 2024 that will close this issue
@quintush
Copy link
Contributor

Hello @rquinio1A, @d3adb5,

Thanks for the feedback and the initial PR.
The isType assertion is a valid addition to the asserts.

Will try to provide feedback on PR as soon a possible.

Greetings,
@quintush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants