@@ -41,7 +41,6 @@ import (
41
41
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
42
42
43
43
workloadv1beta2 "github.com/project-codeflare/appwrapper/api/v1beta2"
44
- "github.com/project-codeflare/appwrapper/internal/controller/appwrapper"
45
44
"github.com/project-codeflare/appwrapper/pkg/utils"
46
45
)
47
46
@@ -216,7 +215,7 @@ func getNodeForAppwrapper(ctx context.Context, awName types.NamespacedName) (str
216
215
return "" , err
217
216
}
218
217
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 {
220
219
return pod .Spec .NodeName , nil
221
220
}
222
221
}
@@ -249,7 +248,7 @@ func podsInPhase(awNamespace string, awName string, phase []v1.PodPhase, minimum
249
248
250
249
matchingPodCount := int32 (0 )
251
250
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 {
253
252
for _ , p := range phase {
254
253
if pod .Status .Phase == p {
255
254
matchingPodCount ++
@@ -272,7 +271,7 @@ func noPodsExist(awNamespace string, awName string) wait.ConditionWithContextFun
272
271
}
273
272
274
273
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 {
276
275
return false , nil
277
276
}
278
277
}
0 commit comments