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

feat: add disableAudit helm option #3270

Merged
merged 3 commits into from Feb 22, 2024
Merged

Conversation

DorB-P
Copy link
Contributor

@DorB-P DorB-P commented Feb 18, 2024

What this PR does / why we need it:
Adds a flag to the Helm templates to allow users to deploy the chart without the gatekeeper-audit deployment resource using GK in a webhook mode, validating and mutating.

Special notes for your reviewer:
This is functionality I want as someone deploying GK with Helm. Currently, I use Helm and then delete the audit deployment. My use case only requires the validating webhook without other overheads.
The idea for the PR derived from #643

Signed-off-by: zapdor2000@gmail.com <zapdor2000@gmail.com>
@DorB-P DorB-P requested a review from a team as a code owner February 18, 2024 23:27
@DorB-P DorB-P changed the title Add helm flag to disable Audit feat: add disableAudit helm option Feb 18, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b758571) 54.48% compared to head (fc0ad5e) 54.51%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3270      +/-   ##
==========================================
+ Coverage   54.48%   54.51%   +0.02%     
==========================================
  Files         134      134              
  Lines       12318    12318              
==========================================
+ Hits         6712     6715       +3     
+ Misses       5111     5108       -3     
  Partials      495      495              
Flag Coverage Δ
unittests 54.51% <ø> (+0.02%) ⬆️

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
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

LGTM

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

@sozercan sozercan merged commit e63a583 into open-policy-agent:master Feb 22, 2024
10 checks passed
leewoobin789 pushed a commit to softlee-io/gatekeeper that referenced this pull request Apr 1, 2024
Signed-off-by: zapdor2000@gmail.com <zapdor2000@gmail.com>
Co-authored-by: Max Smythe <smythe@google.com>
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
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.

None yet

4 participants