Skip to content

Commit

Permalink
fixup! coordinator: only create workload secret if requested
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerdev committed Jan 9, 2025
1 parent c4a4e02 commit 7158a33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/workloadsecret/workloadsecret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,13 @@ func TestWorkloadSecrets(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), ct.FactorPlatformTimeout(60*time.Second))
defer cancel()

ct.PatchManifest(t, patchWorkloadSecretID("web", ""))
ct.PatchManifest(t, func(m manifest.Manifest) manifest.Manifest {
for key, policy := range m.Policies {
policy.WorkloadSecretID = ""
m.Policies[key] = policy
}
return m
})

t.Run("set", ct.Set)
require.NoError(ct.Kubeclient.Restart(ctx, kubeclient.Deployment{}, ct.Namespace, "web"))
Expand Down

0 comments on commit 7158a33

Please sign in to comment.