mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Renamed variable containing master to control plane
This commit is contained in:
parent
017b359770
commit
80171465b3
@ -31,7 +31,7 @@ import (
|
||||
// since single node checks are in TestReadyForTests.
|
||||
func TestCheckReadyForTests(t *testing.T) {
|
||||
// This is a duplicate definition of the constant in pkg/controller/service/controller.go
|
||||
labelNodeRoleMaster := "node-role.kubernetes.io/master"
|
||||
labelNodeRoleControlPlane := "node-role.kubernetes.io/controlPlane"
|
||||
|
||||
fromVanillaNode := func(f func(*v1.Node)) v1.Node {
|
||||
vanillaNode := &v1.Node{
|
||||
@ -62,11 +62,11 @@ func TestCheckReadyForTests(t *testing.T) {
|
||||
},
|
||||
expected: true,
|
||||
}, {
|
||||
desc: "Default value for nonblocking taints tolerates master taint",
|
||||
nonblockingTaints: `node-role.kubernetes.io/master`,
|
||||
desc: "Default value for nonblocking taints tolerates control plane taint",
|
||||
nonblockingTaints: `node-role.kubernetes.io/controlPlane`,
|
||||
nodes: []v1.Node{
|
||||
fromVanillaNode(func(n *v1.Node) {
|
||||
n.Spec.Taints = []v1.Taint{{Key: labelNodeRoleMaster, Effect: v1.TaintEffectNoSchedule}}
|
||||
n.Spec.Taints = []v1.Taint{{Key: labelNodeRoleControlPlane, Effect: v1.TaintEffectNoSchedule}}
|
||||
}),
|
||||
},
|
||||
expected: true,
|
||||
|
Loading…
Reference in New Issue
Block a user