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

GreaterThan/LessThan Assertiion #294

Open
lee5i3 opened this issue Feb 6, 2024 · 0 comments
Open

GreaterThan/LessThan Assertiion #294

lee5i3 opened this issue Feb 6, 2024 · 0 comments

Comments

@lee5i3
Copy link

lee5i3 commented Feb 6, 2024

When it comes to SecurityContext in deployment.yaml

We want to ensure the runAsUser for example is at least 10000, we were hoping to set our unit tests to

- greaterThanOrEqual:
     path: spec.template.spec.securityContext.runAsUser
     value: 10000

Something like GreaterThan, LessThan, AtLeast, etc...

Rather than ensuring its equals a specific number, we want to not fail if the user changes in the future but only if its under 10000 which allows us to make sure we are following security standards via https://docs.bridgecrew.io/docs/bc_k8s_37

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

1 participant