From 6e863dd7e2108ef63d2e36b07601e147c8429a6f Mon Sep 17 00:00:00 2001 From: Jaydip Gabani Date: Wed, 6 Nov 2024 15:54:10 +0000 Subject: [PATCH] not updating annotation on crd updates Signed-off-by: Jaydip Gabani --- .../constrainttemplate/constrainttemplate_controller.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/controller/constrainttemplate/constrainttemplate_controller.go b/pkg/controller/constrainttemplate/constrainttemplate_controller.go index ac978e40833..6e5d0de3a4e 100644 --- a/pkg/controller/constrainttemplate/constrainttemplate_controller.go +++ b/pkg/controller/constrainttemplate/constrainttemplate_controller.go @@ -766,9 +766,6 @@ func (r *ReconcileConstraintTemplate) generateCRD(ctx context.Context, ct *v1bet err := r.reportErrorOnCTStatus(ctx, ErrUpdateCode, "Could not update CRD", status, err) return err } - if ct.Annotations != nil { - ct.Annotations[constraint.BlockVAPBGenerationUntilAnnotation] = "" - } } if !generateVAP { return nil