Просмотр исходного кода

Align cluster push secret tests with store ref defaults

Moritz Johner 2 месяцев назад
Родитель
Сommit
be8005f207

+ 9 - 6
pkg/controllers/clusterpushsecret/clusterpushsecret_controller_test.go

@@ -402,8 +402,9 @@ var _ = Describe("ClusterPushSecret controller", func() {
 				}
 				updatedSpec.PushSecretSpec.SecretStoreRefs = []v1alpha1.PushSecretStoreRef{
 					{
-						Name: updateStoreName,
-						Kind: "SecretStore",
+						Name:       updateStoreName,
+						Kind:       "SecretStore",
+						APIVersion: "external-secrets.io/v1",
 					},
 				}
 
@@ -428,8 +429,9 @@ var _ = Describe("ClusterPushSecret controller", func() {
 				updatedSpec := created.Spec.PushSecretSpec.DeepCopy()
 				updatedSpec.SecretStoreRefs = []v1alpha1.PushSecretStoreRef{
 					{
-						Name: updateStoreName,
-						Kind: "SecretStore",
+						Name:       updateStoreName,
+						Kind:       "SecretStore",
+						APIVersion: "external-secrets.io/v1",
 					},
 				}
 
@@ -517,8 +519,9 @@ var _ = Describe("ClusterPushSecret controller", func() {
 							RefreshInterval: &metav1.Duration{Duration: time.Hour},
 							SecretStoreRefs: []v1alpha1.PushSecretStoreRef{
 								{
-									Name: updateStoreName,
-									Kind: "SecretStore",
+									Name:       updateStoreName,
+									Kind:       "SecretStore",
+									APIVersion: "external-secrets.io/v1",
 								},
 							},
 							UpdatePolicy: "Replace",