Skip to content

Commit

Permalink
Skip agent node.
Browse files Browse the repository at this point in the history
Signed-off-by: huaiyou <huaiyou.cyz@alibaba-inc.com>
  • Loading branch information
VinceCui committed Oct 23, 2023
1 parent 8b00228 commit d770020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sealer/cmd/utils/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func GetCurrentCluster(client *k8s.Client) (*v2.Cluster, error) {
var nodeIPList []net.IP

for _, node := range nodes.Items {
if _, ok := node.Labels["node-role.kubernetes.io/agent"]; ok {
if _, ok := node.Labels["node-role.kubernetes.io/agent"]; ok || node.Labels["kubernetes.io/role"] == "agent" {
continue
}
addr := getNodeAddress(node)
Expand Down

0 comments on commit d770020

Please sign in to comment.