Skip to content

Commit

Permalink
Added config to ingresssecretproviderclassreconciler in buildSPC test
Browse files Browse the repository at this point in the history
  • Loading branch information
aamgayle committed Oct 18, 2023
1 parent ca5a351 commit bab7944
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down

0 comments on commit bab7944

Please sign in to comment.