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

enhancement: use optionals in CEL policies to remove redundant expressions #1112

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

Chandan-DK
Copy link
Contributor

@Chandan-DK Chandan-DK commented Aug 6, 2024

Related Issue(s)

Partially addresses: #1058

Description

This PR makes use of optionals to make CEL expressions less redundant. Optionals are used wherever appropriate. No policies from pod-security-cel folder was updated in this PR.

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.

@JimBugwadia
Copy link
Member

@Chandan-DK - any idea why the tests are failing?

@chipzoller chipzoller merged commit 412727e into kyverno:main Aug 9, 2024
280 checks passed
@Chandan-DK Chandan-DK deleted the use-optionals-in-cel-policies branch August 9, 2024 12:38
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.

3 participants