Procházet zdrojové kódy

Align cluster push secret tests with store ref defaults

Signed-off-by: Moritz Johner <beller.moritz@googlemail.com>
Moritz Johner před 2 měsíci
rodič
revize
f50d125a97

+ 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",