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

fix: procmount should allow empty values #621

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Agalin
Copy link

@Agalin Agalin commented Jan 10, 2025

What this PR does / why we need it:

There is a mismatch between existing Rego and CEL implementation. Rego allows not providing proc mount value at all while CEL needs a value. Both fail if procMount is set to null despite it being a valid value equivalent to not defining the key at all.

This mismatch actually causes admission errors after updating to the version with CEL logic for all pods with not defined procMount (i.e. vast majority).

Which issue(s) does this PR fix (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #

Special notes for your reviewer:

There is a mismatch between existing Rego and CEL implementation. Rego allows not providing proc mount value at all while CEL needs a value. Both fail if procMount is set to `null` despite it being a valid value equivalent to not defining the key at all.
@Agalin Agalin requested a review from a team as a code owner January 10, 2025 16:23
Copy link
Contributor

@JaydipGabani JaydipGabani left a comment

Choose a reason for hiding this comment

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

Good catch! thanks for the PR!

@JaydipGabani
Copy link
Contributor

@Agalin Please sign the commit to fix DCO CI failure.

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.

2 participants