Skip to content

Commit 8572c7c

Browse files
committed
iteration #1
1 parent 5ada3d9 commit 8572c7c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

codeql-db.zip

-2.12 KB
Binary file not shown.

controllers/sample_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ func (r *SampleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
3131
return ctrl.Result{}, err
3232
}
3333

34-
sink(sample.Spec.Foo)
34+
sink(sample.Spec.Foo) // positive test for spec or catch-all
35+
sink(sample.Annotations["test"]) // positive test for annotations
36+
sink(sample.Namespace) // negative test for spec/annotations
3537

3638
return ctrl.Result{}, nil
3739
}

0 commit comments

Comments
 (0)