From bab79440f90271859e2ff1fc421aba94306e4737 Mon Sep 17 00:00:00 2001 From: asgayle Date: Wed, 18 Oct 2023 18:32:40 -0400 Subject: [PATCH] Added config to ingresssecretproviderclassreconciler in buildSPC test --- .../keyvault/ingress_secret_provider_class_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/controller/keyvault/ingress_secret_provider_class_test.go b/pkg/controller/keyvault/ingress_secret_provider_class_test.go index b8bb2a59..192e0243 100644 --- a/pkg/controller/keyvault/ingress_secret_provider_class_test.go +++ b/pkg/controller/keyvault/ingress_secret_provider_class_test.go @@ -341,9 +341,13 @@ func TestIngressSecretProviderClassReconcilerBuildSPCLabelChecking(t *testing.T) ingressClass := "webapprouting.kubernetes.azure.com" i := &IngressSecretProviderClassReconciler{ + config: &config.Config{ + TenantID: "test-tenant-id", + MSIClientID: "test-msi-client-id", + }, ingressManager: NewIngressManager(map[string]struct{}{ingressClass: {}}), } - + ing := &netv1.Ingress{} ing.Spec.IngressClassName = &ingressClass ing.Annotations = map[string]string{"kubernetes.azure.com/tls-cert-keyvault-uri": "https://testvault.vault.azure.net/certificates/testcert"}