@@ -184,6 +184,15 @@ var _ = Describe("Workload cluster creation", func() {
184184 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
185185 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
186186 },
187+ PostMachinesProvisioned : func () {
188+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
189+ return DaemonsetsSpecInput {
190+ BootstrapClusterProxy : bootstrapClusterProxy ,
191+ Namespace : namespace ,
192+ ClusterName : clusterName ,
193+ }
194+ })
195+ },
187196 }, result )
188197
189198 By ("Creating a private cluster from the management cluster" , func () {
@@ -236,6 +245,15 @@ var _ = Describe("Workload cluster creation", func() {
236245 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
237246 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
238247 },
248+ PostMachinesProvisioned : func () {
249+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
250+ return DaemonsetsSpecInput {
251+ BootstrapClusterProxy : bootstrapClusterProxy ,
252+ Namespace : namespace ,
253+ ClusterName : clusterName ,
254+ }
255+ })
256+ },
239257 }, result )
240258
241259 By ("Verifying expected VM extensions are present on the node" , func () {
@@ -320,6 +338,15 @@ var _ = Describe("Workload cluster creation", func() {
320338 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
321339 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
322340 },
341+ PostMachinesProvisioned : func () {
342+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
343+ return DaemonsetsSpecInput {
344+ BootstrapClusterProxy : bootstrapClusterProxy ,
345+ Namespace : namespace ,
346+ ClusterName : clusterName ,
347+ }
348+ })
349+ },
323350 }, result )
324351
325352 By ("Verifying expected VM extensions are present on the node" , func () {
@@ -379,6 +406,15 @@ var _ = Describe("Workload cluster creation", func() {
379406 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
380407 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
381408 },
409+ PostMachinesProvisioned : func () {
410+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
411+ return DaemonsetsSpecInput {
412+ BootstrapClusterProxy : bootstrapClusterProxy ,
413+ Namespace : namespace ,
414+ ClusterName : clusterName ,
415+ }
416+ })
417+ },
382418 }, result )
383419
384420 By ("Verifying expected VM extensions are present on the node" , func () {
@@ -464,6 +500,15 @@ var _ = Describe("Workload cluster creation", func() {
464500 // The workaround is to use server side apply by passing `--server-side` flag to kubectl apply.
465501 // More on server side apply here: https://kubernetes.io/docs/reference/using-api/server-side-apply/
466502 Args : []string {"--server-side" },
503+ PostMachinesProvisioned : func () {
504+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
505+ return DaemonsetsSpecInput {
506+ BootstrapClusterProxy : bootstrapClusterProxy ,
507+ Namespace : namespace ,
508+ ClusterName : clusterName ,
509+ }
510+ })
511+ },
467512 }, result )
468513
469514 By ("Verifying expected VM extensions are present on the node" , func () {
@@ -582,6 +627,15 @@ var _ = Describe("Workload cluster creation", func() {
582627 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
583628 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
584629 },
630+ PostMachinesProvisioned : func () {
631+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
632+ return DaemonsetsSpecInput {
633+ BootstrapClusterProxy : bootstrapClusterProxy ,
634+ Namespace : namespace ,
635+ ClusterName : clusterName ,
636+ }
637+ })
638+ },
585639 }, result )
586640
587641 By ("Verifying expected VM extensions are present on the node" , func () {
@@ -745,6 +799,15 @@ var _ = Describe("Workload cluster creation", func() {
745799 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
746800 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
747801 },
802+ PostMachinesProvisioned : func () {
803+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
804+ return DaemonsetsSpecInput {
805+ BootstrapClusterProxy : bootstrapClusterProxy ,
806+ Namespace : namespace ,
807+ ClusterName : clusterName ,
808+ }
809+ })
810+ },
748811 }, result )
749812
750813 By ("Verifying expected VM extensions are present on the node" , func () {
@@ -818,6 +881,15 @@ var _ = Describe("Workload cluster creation", func() {
818881 ControlPlaneWaiters : clusterctl.ControlPlaneWaiters {
819882 WaitForControlPlaneInitialized : EnsureControlPlaneInitialized ,
820883 },
884+ PostMachinesProvisioned : func () {
885+ EnsureDaemonsets (ctx , func () DaemonsetsSpecInput {
886+ return DaemonsetsSpecInput {
887+ BootstrapClusterProxy : bootstrapClusterProxy ,
888+ Namespace : namespace ,
889+ ClusterName : clusterName ,
890+ }
891+ })
892+ },
821893 }, result )
822894
823895 By ("Verifying expected VM extensions are present on the node" , func () {
0 commit comments