Skip to content

Commit

Permalink
adding todo to follow up with enforcement point status
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Nov 6, 2024
1 parent 45db3f4 commit 7c9881b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/constraint/constraint_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ func (r *ReconcileConstraint) manageVAPB(ctx context.Context, enforcementAction
hasVAP, err := ShouldGenerateVAP(unversionedCT)
switch {
case errors.Is(err, celSchema.ErrCodeNotDefined):
// TODO jgabani: follow up with enforcementPointStatus field under bypod to not swallow this error.
generateVAPB = false
case err != nil:
log.Error(err, "could not determine if ConstraintTemplate is configured to generate ValidatingAdmissionPolicy", "constraint", instance.GetName(), "constraint_template", unversionedCT.GetName())
Expand Down

0 comments on commit 7c9881b

Please sign in to comment.