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: Ability to use Image SHA for gatekeeper and gatekeeper-crd images #1759

Merged
merged 3 commits into from Dec 17, 2021

Conversation

priyamshet
Copy link
Contributor

… Gatekeeper helm charts #1659

This commit checks if image.release is defined in the values.yaml
if not defined it will ignore the image.release field and only use the values of
image.repository and image.crdRepository to set the "image" in gatekeeper audit /controller
deployment yamls.

With the current implementation there is only one field defined "image.release" which restrics the use of
image-tag:release and not allowing SHA along with "image"(e.g image@SHA) for GK and GK-CRD repository

Signed-off-by: Priya Shet priya.shet@gmail.com

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #1659 (, fixes #1659) format, will close the issue(s) when the PR gets merged):
Fixes #1659

Special notes for your reviewer:

…open-policy-agent#1674

This commit checks if image.release is defined in the values.yaml
if not defined it will ignore the image.release field and only use the values of
image.repository and image.crdRepository to set the "image" in gatekeeper audit /controller
deployment yamls.

With the current implementation there is only one field defined "image.release" which restrics the use of
image-tag:release and not allowing SHA along with "image"(e.g image@SHA) for GK and GK-CRD repository

Signed-off-by: Priya Shet priya.shet@gmail.com
Signed-off-by: Priya Shetpriya.shet@gmail.com <priya.shet@gmail.com>
@priyamshet priyamshet changed the title Ability to use Image SHA for gatekeeper and gatekeeper-crd images…1674 fix: Ability to use Image SHA for gatekeeper and gatekeeper-crd images…1674 Dec 14, 2021
@priyamshet priyamshet marked this pull request as ready for review December 14, 2021 20:15
@priyamshet
Copy link
Contributor Author

@sozercan , i had to resubmit the PR due to github branch merge issue, Please let me know your feedback on this PR. thank you for your time.

@sozercan sozercan changed the title fix: Ability to use Image SHA for gatekeeper and gatekeeper-crd images…1674 feat: Ability to use Image SHA for gatekeeper and gatekeeper-crd images Dec 16, 2021
@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2021

Codecov Report

Merging #1759 (e9310d4) into master (3e621dd) will increase coverage by 0.18%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1759      +/-   ##
==========================================
+ Coverage   51.96%   52.14%   +0.18%     
==========================================
  Files          98       98              
  Lines        8781     8781              
==========================================
+ Hits         4563     4579      +16     
+ Misses       3852     3837      -15     
+ Partials      366      365       -1     
Flag Coverage Δ
unittests 52.14% <ø> (+0.18%) ⬆️

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

Impacted Files Coverage Δ
pkg/controller/config/config_controller.go 65.04% <0.00%> (-1.33%) ⬇️
...onstrainttemplate/constrainttemplate_controller.go 59.13% <0.00%> (+4.56%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e621dd...e9310d4. Read the comment docs.

@sozercan
Copy link
Member

helm upgrade is failing due to k8s version bump, opened a fix in #1766

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.

Sorry about the delay. LGTM

@priyamshet
Copy link
Contributor Author

Thank you so much @sozercan for the review

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

@maxsmythe maxsmythe merged commit 5903196 into open-policy-agent:master Dec 17, 2021
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.

Flexibility to use Image SHA for gatekeeper and gatekeeper-crd images Gatekeeper helm charts
4 participants