From 7c9881bfb6a86cf6880b7e8a02b3f6a1535cb530 Mon Sep 17 00:00:00 2001 From: Jaydip Gabani Date: Wed, 6 Nov 2024 19:12:50 +0000 Subject: [PATCH] adding todo to follow up with enforcement point status Signed-off-by: Jaydip Gabani --- pkg/controller/constraint/constraint_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/constraint/constraint_controller.go b/pkg/controller/constraint/constraint_controller.go index e59a2fbb50e..c40ea7dfe46 100644 --- a/pkg/controller/constraint/constraint_controller.go +++ b/pkg/controller/constraint/constraint_controller.go @@ -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())