Skip to content

Commit

Permalink
add the old version "master" labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostloda committed May 29, 2024
1 parent 0622e87 commit 50a0fe9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/checker/cluster_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func isControlPlaneNode(node corev1.Node) bool {
if _, ok := node.Labels["node-role.kubernetes.io/control-plane"]; ok {
return true
}
if _, ok := node.Labels["node-role.kubernetes.io/master"]; ok {
return true
}
return false
}

Expand Down

0 comments on commit 50a0fe9

Please sign in to comment.