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

Use containerized kustomize #1395

Merged
merged 2 commits into from Jul 14, 2021

Conversation

willbeason
Copy link
Member

The flag is --load-restrictor, not --load_restrictor

Without change, make deploy-mutation shows:

kustomize build --load_restrictor LoadRestrictionsNone config/overlays/mutation | kubectl apply -f -
Error: unknown flag: --load_restrictor

With the change, make deploy-mutation succeeds.

I'm using kustomize v4.1.3:

gatekeeper$ kustomize version
{Version:kustomize/v4.1.3 GitCommit:0f614e92f72f1b938a9171b964d90b197ca8fb68 BuildDate:2021-05-20T20:52:40Z GoOs:linux GoArch:amd64}

Signed-off-by: Will Beason willbeason@google.com

@willbeason willbeason self-assigned this Jun 24, 2021
@maxsmythe
Copy link
Contributor

Per our conversation, we should Dockerize all invocations so the build file is using a consistent version of Kustomize across the board

@codecov-commenter
Copy link

codecov-commenter commented Jul 12, 2021

Codecov Report

Merging #1395 (bd3c80b) into master (b791188) will decrease coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1395      +/-   ##
==========================================
- Coverage   50.06%   50.04%   -0.03%     
==========================================
  Files          73       75       +2     
  Lines        5019     5061      +42     
==========================================
+ Hits         2513     2533      +20     
- Misses       2155     2178      +23     
+ Partials      351      350       -1     
Flag Coverage Δ
unittests 50.04% <ø> (-0.03%) ⬇️

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.56% <0.00%> (ø)
pkg/util/prefix_wildcard.go 100.00% <0.00%> (ø)
pkg/controller/config/process/excluder.go 10.00% <0.00%> (ø)
pkg/target/target.go 68.14% <0.00%> (+0.72%) ⬆️
...onstrainttemplate/constrainttemplate_controller.go 57.28% <0.00%> (+0.97%) ⬆️
pkg/mutation/match/match.go 88.75% <0.00%> (+3.03%) ⬆️

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 b791188...bd3c80b. Read the comment docs.

@willbeason willbeason changed the title Fix kustomize flag for make deploy-mutation Use containerized kustomize Jul 12, 2021
@willbeason willbeason force-pushed the fix-kustomize branch 4 times, most recently from 590349d to 4829dcc Compare July 12, 2021 19:13
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
Copy link
Contributor

@shomron @sozercan LGTY?

Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
Rather than relying on the developer's installed kustomize, use
dockerized kustomize so behavior isn't dependnet on setup.

Also update kustomize version to v4.1.3

This commit does not change other tools to be dockerized, for example
kubectl.

Signed-off-by: Will Beason <willbeason@google.com>
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

@sozercan sozercan merged commit 9e76b3d into open-policy-agent:master Jul 14, 2021
@willbeason willbeason deleted the fix-kustomize branch July 14, 2021 14:43
julianKatz pushed a commit to julianKatz/gatekeeper that referenced this pull request Jul 27, 2021
Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
Signed-off-by: juliankatz <juliankatz@google.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