@@ -72,7 +72,7 @@ var _ = Describe("CRP with non-trackable resources, all available (before upgrad
7272 BeforeAll (func () {
7373 // Create the resources.
7474 ns := appNamespace (workNamespaceName , crpName )
75- Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Namespace )
75+ Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Name )
7676
7777 // Job is currently untrackable in Fleet.
7878 job := batchv1.Job {
@@ -159,7 +159,7 @@ var _ = Describe("CRP with availability failure (before upgrade)", Ordered, func
159159 BeforeAll (func () {
160160 // Create the resources.
161161 ns := appNamespace (workNamespaceName , crpName )
162- Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Namespace )
162+ Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Name )
163163
164164 // Use a Service of the LoadBalancer type as by default KinD environment does not support
165165 // this service type and such services will always be unavailable.
@@ -266,7 +266,7 @@ var _ = Describe("CRP with apply op failure (before upgrade)", Ordered, func() {
266266
267267 // Create the resources on the member cluster with a custom manager
268268 ns := appNamespace (workNamespaceName , crpName )
269- Expect (memberCluster1EastProdClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Namespace )
269+ Expect (memberCluster1EastProdClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Name )
270270
271271 configMap := appConfigMap (workNamespaceName , appConfigMapName )
272272 configMap .Data = map [string ]string {
@@ -368,7 +368,7 @@ var _ = Describe("CRP stuck in the rollout process (blocked by availability fail
368368 BeforeAll (func () {
369369 // Create the resources.
370370 ns := appNamespace (workNamespaceName , crpName )
371- Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Namespace )
371+ Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Name )
372372
373373 // Use a Service of the ClusterIP type. KinD supports it and it will become available
374374 // once an IP has been assigned.
@@ -697,7 +697,7 @@ var _ = Describe("CRP stuck in the rollout process (long wait time)", Ordered, f
697697 BeforeAll (func () {
698698 // Create the resources.
699699 ns := appNamespace (workNamespaceName , crpName )
700- Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Namespace )
700+ Expect (hubClient .Create (ctx , & ns )).To (Succeed (), "Failed to create namespace %s" , ns .Name )
701701
702702 // Job is currently untrackable in Fleet.
703703 originalJob = & batchv1.Job {
0 commit comments