Skip to content

Commit

Permalink
Merge pull request #417 from Cray-HPE/MTL-2458
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdavis-prof authored Sep 3, 2024
2 parents 0366ba4 + fbbc7fb commit 2452e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubernetes/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (utilsClient *UtilsClient) GetNodes() (nodeMap NodeMap, err error) {
// IsMaster - Returns true if the given node is a master.
func IsMaster(node corev1.Node) bool {
for key := range node.Labels {
if key == "node-role.kubernetes.io/master" {
if key == "node-role.kubernetes.io/master" || key == "node-role.kubernetes.io/control-plane" {
return true
}
}
Expand Down

0 comments on commit 2452e08

Please sign in to comment.