-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add driver.AddTemplate and driver.RemoveTemplate #179
Add driver.AddTemplate and driver.RemoveTemplate #179
Conversation
6fe36fd
to
9199320
Compare
a5ce605
to
4b35bc5
Compare
Codecov Report
@@ Coverage Diff @@
## master #179 +/- ##
==========================================
+ Coverage 45.20% 45.70% +0.50%
==========================================
Files 59 59
Lines 2796 2866 +70
==========================================
+ Hits 1264 1310 +46
- Misses 1290 1309 +19
- Partials 242 247 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
9659fea
to
715fe96
Compare
Signed-off-by: Becky Huang <beckyhd@google.com>
…ng with client.CreateCRD Signed-off-by: Becky Huang <beckyhd@google.com>
export local.Driver set Externs for local.Driver within client.init move local.Driver PutModules and DeleteModules to private, deleted from drivers interface remove rego validation in client.CreateCRD Signed-off-by: Becky Huang <beckyhd@google.com>
Signed-off-by: Becky Huang <beckyhd@google.com>
09c80a4
to
dd62459
Compare
… logic from client.CeateCRD (open-policy-agent#171) Signed-off-by: Becky Huang <beckyhd@google.com>
dd62459
to
75008b5
Compare
@becky-hd looks like Gatekeeper tests are failing, is this expected? |
Yes, this PR removed validation in CreateCRD results some gatekeeper unit test failures. I opened open-policy-agent/gatekeeper#1788 as an immediate followup |
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
#171
Allow client.AddTemplate calling
driver.AddTemplate(*templates.ConstraintTemplate)
instead of parsing rego modules and callingdriver.PutModules
in client.client.CreateCRD uses the same parsing logic as part of template validation.