diff --git a/test/e2e/vsphere_test.go b/test/e2e/vsphere_test.go index 8424df683d1d7..3b53ceedd0191 100644 --- a/test/e2e/vsphere_test.go +++ b/test/e2e/vsphere_test.go @@ -2475,6 +2475,11 @@ func TestVSphereKubernetes129UbuntuAuthenticatedRegistryMirrorCuratedPackagesSim framework.WithPackageConfig(t, packageBundleURI(v1alpha1.Kube129), EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI, EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil), + framework.WithRegistryMirrorOciNamespaces(constants.VSphereProviderName, + v1alpha1.OCINamespace{ + Registry: "857151390494.dkr.ecr.us-west-2.amazonaws.com", + Namespace: "", + }), ) runCuratedPackageInstallSimpleFlowRegistryMirror(test) } @@ -2492,6 +2497,11 @@ func TestVSphereKubernetes130UbuntuAuthenticatedRegistryMirrorCuratedPackagesSim framework.WithPackageConfig(t, packageBundleURI(v1alpha1.Kube130), EksaPackageControllerHelmChartName, EksaPackageControllerHelmURI, EksaPackageControllerHelmVersion, EksaPackageControllerHelmValues, nil), + framework.WithRegistryMirrorOciNamespaces(constants.VSphereProviderName, + v1alpha1.OCINamespace{ + Registry: "857151390494.dkr.ecr.us-west-2.amazonaws.com", + Namespace: "", + }), ) runCuratedPackageInstallSimpleFlowRegistryMirror(test) } diff --git a/test/framework/registry_mirror.go b/test/framework/registry_mirror.go index c39fcec9efb35..6f3c8c3c307d5 100644 --- a/test/framework/registry_mirror.go +++ b/test/framework/registry_mirror.go @@ -65,7 +65,7 @@ func WithRegistryMirrorEndpointAndCert(providerName string) ClusterE2ETestOpt { } // WithRegistryMirrorOciNamespaces sets up e2e for registry mirrors with ocinamespaces. -func WithRegistryMirrorOciNamespaces(providerName string) ClusterE2ETestOpt { +func WithRegistryMirrorOciNamespaces(providerName string, optNamespaces ...v1alpha1.OCINamespace) ClusterE2ETestOpt { return func(e *ClusterE2ETest) { var ociNamespaces []v1alpha1.OCINamespace @@ -84,6 +84,8 @@ func WithRegistryMirrorOciNamespaces(providerName string) ClusterE2ETestOpt { }) } + ociNamespaces = append(ociNamespaces, optNamespaces...) + setupRegistryMirrorEndpointAndCert(e, providerName, false, ociNamespaces...) } }