chore: updating VAP default failure policy to fail#3702
Conversation
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
|
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 <gabanijaydip@gmail.com>
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 <gabanijaydip@gmail.com>
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
Signed-off-by: Jaydip Gabani <gabanijaydip@gmail.com>
| if err != nil { | ||
| return reconcile.Result{}, err | ||
| } | ||
| vapBindingName := fmt.Sprintf("gatekeeper-%s", instance.GetName()) |
There was a problem hiding this comment.
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 <gabanijaydip@gmail.com>
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: