Skip to content

Commit

Permalink
fixing unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jaydip Gabani <[email protected]>
  • Loading branch information
JaydipGabani committed Oct 22, 2024
1 parent 94d6c8b commit 6a4fdcf
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import (
"flag"
"fmt"
"reflect"

// "strconv".
"time"

Expand Down Expand Up @@ -770,7 +769,9 @@ func (r *ReconcileConstraintTemplate) generateCRD(ctx context.Context, ct *v1bet
err := r.reportErrorOnCTStatus(ctx, ErrUpdateCode, "Could not update CRD", status, err)
return err
}
ct.Annotations[constraint.BlockVAPBGenerationUntilAnnotation] = ""
if ct.Annotations != nil {
ct.Annotations[constraint.BlockVAPBGenerationUntilAnnotation] = ""
}
}
if !generateVAP {
return nil
Expand Down

0 comments on commit 6a4fdcf

Please sign in to comment.