@@ -701,25 +701,25 @@ func GetReadyNGFPodNames(
701701			"app.kubernetes.io/instance" : releaseName ,
702702		},
703703	); err  !=  nil  {
704- 		return  nil , fmt .Errorf ("error getting list of Pods: %w" , err )
704+ 		return  nil , fmt .Errorf ("error getting list of NGF  Pods: %w" , err )
705705	}
706706
707- 	if  len (podList .Items ) >  0  {
708- 		var  names  []string 
709- 		for  _ , pod  :=  range  podList .Items  {
710- 			for  _ , cond  :=  range  pod .Status .Conditions  {
711- 				if  cond .Type  ==  core .PodReady  &&  cond .Status  ==  core .ConditionTrue  {
712- 					names  =  append (names , pod .Name )
713- 				}
707+ 	if  len (podList .Items ) ==  0  {
708+ 		return  nil , errors .New ("unable to find NGF Pod(s)" )
709+ 	}
710+ 
711+ 	var  names  []string 
712+ 	for  _ , pod  :=  range  podList .Items  {
713+ 		for  _ , cond  :=  range  pod .Status .Conditions  {
714+ 			if  cond .Type  ==  core .PodReady  &&  cond .Status  ==  core .ConditionTrue  {
715+ 				names  =  append (names , pod .Name )
714716			}
715717		}
716- 		return  names , nil 
717718	}
718- 
719- 	return  nil , errors .New ("unable to find NGF Pod(s)" )
719+ 	return  names , nil 
720720}
721721
722- // GetReadyNginxPodNames returns the name(s) of the Nginx  Pod(s). 
722+ // GetReadyNginxPodNames returns the name(s) of the NGINX  Pod(s). 
723723func  GetReadyNginxPodNames (
724724	k8sClient  client.Client ,
725725	namespace  string ,
@@ -735,22 +735,23 @@ func GetReadyNginxPodNames(
735735		client .InNamespace (namespace ),
736736		client.HasLabels {"gateway.networking.k8s.io/gateway-name" },
737737	); err  !=  nil  {
738- 		return  nil , fmt .Errorf ("error getting list of Nginx  Pods: %w" , err )
738+ 		return  nil , fmt .Errorf ("error getting list of NGINX  Pods: %w" , err )
739739	}
740740
741- 	if  len (podList .Items ) >  0  {
742- 		var  names  []string 
743- 		for  _ , pod  :=  range  podList .Items  {
744- 			for  _ , cond  :=  range  pod .Status .Conditions  {
745- 				if  cond .Type  ==  core .PodReady  &&  cond .Status  ==  core .ConditionTrue  {
746- 					names  =  append (names , pod .Name )
747- 				}
741+ 	if  len (podList .Items ) ==  0  {
742+ 		return  nil , errors .New ("unable to find NGINX Pod(s)" )
743+ 	}
744+ 
745+ 	var  names  []string 
746+ 	for  _ , pod  :=  range  podList .Items  {
747+ 		for  _ , cond  :=  range  pod .Status .Conditions  {
748+ 			if  cond .Type  ==  core .PodReady  &&  cond .Status  ==  core .ConditionTrue  {
749+ 				names  =  append (names , pod .Name )
748750			}
749751		}
750- 		return  names , nil 
751752	}
752753
753- 	return  nil ,  errors . New ( "unable to find NGF Pod(s)" ) 
754+ 	return  names ,  nil 
754755}
755756
756757func  countNumberOfReadyParents (parents  []v1.RouteParentStatus ) int  {
0 commit comments