-
Notifications
You must be signed in to change notification settings - Fork 764
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
chore: updating VAP default failure policy to fail #3702
chore: updating VAP default failure policy to fail #3702
Conversation
Signed-off-by: Jaydip Gabani <[email protected]>
unit test shouldnt be failing now vapb generation has a wait. pls check. |
Very strange thing is happening in unit test, with ignore policy its passing, with fail policy it is getting stuck in constraint not being marked as enforced with scoped enforcement action. I am still debugging. |
Signed-off-by: Jaydip Gabani <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3702 +/- ##
==========================================
- Coverage 54.49% 47.56% -6.94%
==========================================
Files 134 236 +102
Lines 12329 19907 +7578
==========================================
+ Hits 6719 9469 +2750
- Misses 5116 9547 +4431
- Partials 494 891 +397
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
Signed-off-by: Jaydip Gabani <[email protected]>
Signed-off-by: Jaydip Gabani <[email protected]>
Signed-off-by: Jaydip Gabani <[email protected]>
Signed-off-by: Jaydip Gabani <[email protected]>
Signed-off-by: Jaydip Gabani <[email protected]>
Signed-off-by: Jaydip Gabani <[email protected]>
Signed-off-by: Jaydip Gabani <[email protected]>
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 after nit
if err != nil { | ||
return reconcile.Result{}, err | ||
} | ||
vapBindingName := fmt.Sprintf("gatekeeper-%s", instance.GetName()) |
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.
nit: can we move generating the binding name from the constraint into its own function?
I think we do this string format more than once (to handle create/update), so should help with uniformity.
Signed-off-by: Jaydip Gabani <[email protected]>
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when the PR gets merged):Fixes #3501
Special notes for your reviewer: