We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44daa5f commit 4a28143Copy full SHA for 4a28143
1 file changed
ray-operator/controllers/ray/utils/util.go
@@ -465,7 +465,7 @@ func CalculateReadyReplicas(pods corev1.PodList) int32 {
465
func CalculateAvailableReplicas(pods corev1.PodList) int32 {
466
count := int32(0)
467
for _, pod := range pods.Items {
468
- if val, ok := pod.Labels["ray.io/node-type"]; !ok || val != string(rayv1.WorkerNode) {
+ if val, ok := pod.Labels[RayNodeTypeLabelKey]; !ok || val != string(rayv1.WorkerNode) {
469
continue
470
}
471
if pod.Status.Phase == corev1.PodRunning {
0 commit comments