-
Notifications
You must be signed in to change notification settings - Fork 732
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
Upgrade constrainttemplate_controller to apiextensionsv1 #1320
Upgrade constrainttemplate_controller to apiextensionsv1 #1320
Conversation
39be7e3
to
874ebcb
Compare
Codecov Report
@@ Coverage Diff @@
## master #1320 +/- ##
===========================================
+ Coverage 48.60% 59.60% +10.99%
===========================================
Files 68 2 -66
Lines 4890 354 -4536
===========================================
- Hits 2377 211 -2166
+ Misses 2162 101 -2061
+ Partials 351 42 -309
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
874ebcb
to
1e446a6
Compare
The e2e tests that are failing here are failing for other PRs as well. |
#1321 fixes the e2e. pls rebase |
cb32f87
to
fde524c
Compare
Done! Thanks for fixing that |
pkg/controller/constrainttemplate/constrainttemplate_controller_suite_test.go
Outdated
Show resolved
Hide resolved
72ba0d7
to
52d3d91
Compare
This PR changes constrainttemplate_controller to use apiextensionsv1 to create Constraint kind v1 CRDs. That change revealed some additional problems. In particular, that byPod status was being pruned by the API server. This required a fix in Constraint Framework. open-policy-agent/frameworks#120 adds a status field to the Constraint kind CRD. This allows Gatekeeper to add byPodStatus to the object. This PR imports this new code and updates some tests. Contributes to open-policy-agent#550 Signed-off-by: juliankatz <juliankatz@google.com>
52d3d91
to
0489c31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR changes constrainttemplate_controller to use apiextensionsv1 to
create Constraint kind v1 CRDs. That change revealed some additional
problems. In particular, that byPod status was being pruned by the API
server. This required a fix in Constraint Framework.
open-policy-agent/frameworks#120 adds a status field to the Constraint
kind CRD. This allows Gatekeeper to add byPodStatus to the object.
This PR imports this new code and updates some tests.
Contributes to #550
Signed-off-by: juliankatz juliankatz@google.com