Skip to content

Commit

Permalink
Label change and upsert after reconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
aamgayle committed Oct 23, 2023
1 parent 5d69343 commit 7fcb330
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/controller/keyvault/ingress_secret_provider_class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,10 @@ func TestIngressSecretProviderClassReconcilerIntegrationWithoutSPCLabels(t *test
require.Equal(t, testutils.GetErrMetricCount(t, ingressSecretProviderControllerName), beforeErrCount)
require.Greater(t, testutils.GetReconcileMetricCount(t, ingressSecretProviderControllerName, metrics.LabelSuccess), beforeRequestCount)

assert.Equal(t, 0, len(spc.Labels))
require.NoError(t, c.Get(ctx, client.ObjectKeyFromObject(spc), spc))

spc.Labels = map[string]string{}
require.NoError(t, util.Upsert(ctx, i.client, spc))
assert.Equal(t, 0, len(spc.Labels))

Expand Down

0 comments on commit 7fcb330

Please sign in to comment.