Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow for node-role.kubernetes.io/master and node-role.kubernetes.io/control-plane
  • Loading branch information
jpdavis-prof committed Sep 3, 2024
1 parent 49a44a0 commit fbbc7fb
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/control-plane" {
if key == "node-role.kubernetes.io/master" || key == "node-role.kubernetes.io/control-plane" {
return true
}
}
Expand Down

0 comments on commit fbbc7fb

Please sign in to comment.