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

Simplified CEL Expressions for Pod Security (CEL) Baseline policies #1129

Merged
merged 12 commits into from
Aug 26, 2024

Conversation

epasham
Copy link
Contributor

@epasham epasham commented Aug 21, 2024

Related Issue(s)

Closes #1090
Closes #1096
Closes #1097
Closes #1091
Closes #1092
Closes #1094
Closes #1099
Closes #1100

Description

There are redundant expressions in CEL expression to validate the containers, init containers and ephemeral containers in a pod definition. Also the CEL expressions are simplified using variables and optionals

Checklist

  • [] I have read the policy contribution guidelines.
  • [] I have added test manifests and resources covering both positive and negative tests that prove this policy works as intended.
  • [] I have added the artifacthub-pkg.yml file and have verified it is complete and correct.

Copy link
Member

@JimBugwadia JimBugwadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@JimBugwadia JimBugwadia enabled auto-merge (squash) August 26, 2024 21:42
@JimBugwadia JimBugwadia merged commit e66a61a into kyverno:main Aug 26, 2024
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment