@@ -41,7 +41,6 @@ import (
4141 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
4242
4343 workloadv1beta2 "github.com/project-codeflare/appwrapper/api/v1beta2"
44- "github.com/project-codeflare/appwrapper/internal/controller/appwrapper"
4544 "github.com/project-codeflare/appwrapper/pkg/utils"
4645)
4746
@@ -216,7 +215,7 @@ func getNodeForAppwrapper(ctx context.Context, awName types.NamespacedName) (str
216215 return "" , err
217216 }
218217 for _ , pod := range podList .Items {
219- if awn , found := pod .Labels [appwrapper .AppWrapperLabel ]; found && awn == awName .Name {
218+ if awn , found := pod .Labels [workloadv1beta2 .AppWrapperLabel ]; found && awn == awName .Name {
220219 return pod .Spec .NodeName , nil
221220 }
222221 }
@@ -249,7 +248,7 @@ func podsInPhase(awNamespace string, awName string, phase []v1.PodPhase, minimum
249248
250249 matchingPodCount := int32 (0 )
251250 for _ , pod := range podList .Items {
252- if awn , found := pod .Labels [appwrapper .AppWrapperLabel ]; found && awn == awName {
251+ if awn , found := pod .Labels [workloadv1beta2 .AppWrapperLabel ]; found && awn == awName {
253252 for _ , p := range phase {
254253 if pod .Status .Phase == p {
255254 matchingPodCount ++
@@ -272,7 +271,7 @@ func noPodsExist(awNamespace string, awName string) wait.ConditionWithContextFun
272271 }
273272
274273 for _ , podFromPodList := range podList .Items {
275- if awn , found := podFromPodList .Labels [appwrapper .AppWrapperLabel ]; found && awn == awName {
274+ if awn , found := podFromPodList .Labels [workloadv1beta2 .AppWrapperLabel ]; found && awn == awName {
276275 return false , nil
277276 }
278277 }
0 commit comments