diff --git a/pkg/controller/keyvault/ingress_secret_provider_class_test.go b/pkg/controller/keyvault/ingress_secret_provider_class_test.go index 66458c83..9193b317 100644 --- a/pkg/controller/keyvault/ingress_secret_provider_class_test.go +++ b/pkg/controller/keyvault/ingress_secret_provider_class_test.go @@ -356,7 +356,7 @@ func TestBuildSPCLabelChecking(t *testing.T) { t.Run("no labels", func(t *testing.T) { ing := ing.DeepCopy() - spc.DeepCopy() + spc := spc.DeepCopy() spc.Labels = map[string]string{} ok, err := i.buildSPC(ing, spc)