bugfix trusted policy

This commit is contained in:
kkb0318
2024-05-26 16:17:34 +09:00
parent f85bef7995
commit ddd3cff935
3 changed files with 14 additions and 12 deletions
+2 -2
View File
@@ -183,9 +183,9 @@ var _ = Describe("IRSA Controller", func() {
}
By("creating the mock ISASetup")
if tt.irsaSetupObj != nil {
err := k8sClient.Get(ctx, client.ObjectKeyFromObject(tt.irsaSetupObj), tt.irsaSetupObj)
err := k8sClient.Get(ctx, client.ObjectKeyFromObject(tt.irsaSetupObj), &irsav1alpha1.IRSASetup{})
if err != nil && errors.IsNotFound(err) {
Expect(k8sClient.Create(ctx, tt.obj)).To(Succeed())
Expect(k8sClient.Create(ctx, tt.irsaSetupObj)).To(Succeed())
}
}