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: include cel flags on audit deployment #3414

Merged

Conversation

nreisch
Copy link
Contributor

@nreisch nreisch commented Jun 5, 2024

What this PR does / why we need it:
Noticed when testing the oss chart with Helm, the cel enablement flags were not available on Audit

Which issue(s) this PR fixes (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:

@nreisch nreisch requested a review from a team as a code owner June 5, 2024 21:31
Signed-off-by: Noah Reisch <noahreisch4@gmail.com>
@nreisch nreisch force-pushed the nreisch/fixAuditChart branch from 0ef3012 to 3f69298 Compare June 5, 2024 21:32
Copy link
Member

@ritazh ritazh 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 for the PR!

@ritazh ritazh requested a review from a team June 24, 2024 05:06
Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM with one small discussion question

@@ -184,6 +184,8 @@ spec:
- HELMSUBST_DEPLOYMENT_AUDIT_LOGFILE
- --disable-cert-rotation={{ or .Values.audit.disableCertRotation .Values.externalCertInjection.enabled }}
- --external-data-provider-response-cache-ttl={{ .Values.externaldataProviderResponseCacheTTL }}
- --experimental-enable-k8s-native-validation={{ .Values.enableK8sNativeValidation }}
- --vap-enforcement={{ .Values.vapEnforcement }}
Copy link
Contributor

Choose a reason for hiding this comment

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

@ritazh will the change contemplated by

open-policy-agent/frameworks#427

affect this flag?

I don't think it will b/c we are assuming undefined on the template will default to the behavior provided by the flag?

Copy link
Member

Choose a reason for hiding this comment

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

Right. undefined on the template will default to this flag. scopedEnforcementAction at the constraint level can however omit the constraint from audit is a new experience that may be surprising to users.

@codecov-commenter
Copy link

codecov-commenter commented Jun 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.78%. Comparing base (3350319) to head (957b295).
Report is 85 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (3350319) and HEAD (957b295). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3350319) HEAD (957b295)
unittests 2 1
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3414      +/-   ##
==========================================
- Coverage   54.49%   46.78%   -7.72%     
==========================================
  Files         134      218      +84     
  Lines       12329    14784    +2455     
==========================================
+ Hits         6719     6916     +197     
- Misses       5116     7067    +1951     
- Partials      494      801     +307     
Flag Coverage Δ
unittests 46.78% <ø> (-7.72%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

LGTM

@JaydipGabani JaydipGabani merged commit d730132 into open-policy-agent:master Jul 2, 2024
20 checks passed
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.

5 participants