@@ -27,6 +27,7 @@ import (
2727 . "github.com/onsi/ginkgo"
2828 . "github.com/onsi/gomega"
2929 "github.com/pkg/errors"
30+ appsv1 "k8s.io/api/apps/v1"
3031 corev1 "k8s.io/api/core/v1"
3132 apierrors "k8s.io/apimachinery/pkg/api/errors"
3233 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
@@ -148,6 +149,20 @@ func clusterUpgradeWithRuntimeSDKSpec(ctx context.Context, inputGetter func() cl
148149 err = input .BootstrapClusterProxy .GetClient ().Create (ctx , responses )
149150 Expect (err ).ToNot (HaveOccurred (), "Failed to create the responses configmap" )
150151
152+ By ("Wait for test extension deployment to be availabel" )
153+ framework .WaitForDeploymentsAvailable (ctx , framework.WaitForDeploymentsAvailableInput {
154+ Getter : input .BootstrapClusterProxy .GetClient (),
155+ Deployment : & appsv1.Deployment {ObjectMeta : metav1.ObjectMeta {Name : "test-extension" , Namespace : namespace .Name }},
156+ })
157+
158+ By ("Watch Deployment logs of test extension" )
159+ framework .WatchDeploymentLogs (ctx , framework.WatchDeploymentLogsInput {
160+ GetLister : input .BootstrapClusterProxy .GetClient (),
161+ ClientSet : input .BootstrapClusterProxy .GetClientSet (),
162+ Deployment : & appsv1.Deployment {ObjectMeta : metav1.ObjectMeta {Name : "test-extension" , Namespace : namespace .Name }},
163+ LogPath : filepath .Join (input .ArtifactFolder , "clusters" , input .BootstrapClusterProxy .GetName (), "logs" , namespace .Name ),
164+ })
165+
151166 By ("Creating a workload cluster" )
152167
153168 clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
0 commit comments