Skip to content

Commit

Permalink
Merge pull request #510 from village-way/bugfix_509
Browse files Browse the repository at this point in the history
fix: skip spec.nodeName env populated for downwardAPI
  • Loading branch information
kosmos-robot authored May 10, 2024
2 parents 77784ac + 8b5effd commit 107b823
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/utils/lifted/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,9 @@ func podFieldSelectorRuntimeValue(fs *corev1.ObjectFieldSelector, pod *corev1.Po
return "", err
}
switch internalFieldPath {
case "spec.nodeName":
return pod.Spec.NodeName, nil
// skip spec.nodeName populated by vk
//case "spec.nodeName":
// return pod.Spec.NodeName, nil
case "spec.serviceAccountName":
return pod.Spec.ServiceAccountName, nil
}
Expand Down

0 comments on commit 107b823

Please sign in to comment.