Renamed ControlAgent to NodeControl
This commit is contained in:
@@ -24,9 +24,9 @@ type TemplateValues struct {
|
||||
ContainerRuntimeEndpoint string
|
||||
CNIPlugin string
|
||||
|
||||
ClusterRole string // worker, control-plane
|
||||
InitControlPlane bool
|
||||
EnableControlAgent bool
|
||||
ClusterRole string // worker, control-plane
|
||||
InitControlPlane bool
|
||||
EnableNodeControl bool
|
||||
|
||||
AllowSchedulingOnControlPlane bool
|
||||
SkipImageCheck bool
|
||||
@@ -58,9 +58,9 @@ func defaultTemplateValues() TemplateValues {
|
||||
ContainerRuntimeEndpoint: "unix:///var/run/crio/crio.sock",
|
||||
CNIPlugin: "default",
|
||||
|
||||
ClusterRole: "control-plane",
|
||||
InitControlPlane: true,
|
||||
EnableControlAgent: true,
|
||||
ClusterRole: "control-plane",
|
||||
InitControlPlane: true,
|
||||
EnableNodeControl: true,
|
||||
|
||||
AllowSchedulingOnControlPlane: true,
|
||||
SkipImageCheck: false,
|
||||
@@ -104,7 +104,7 @@ func LoadTemplateValuesFromEnv() TemplateValues {
|
||||
|
||||
v.ClusterRole = getenvDefault("MKS_CLUSTER_ROLE", v.ClusterRole)
|
||||
v.InitControlPlane = getenvBoolDefault("MKS_INIT_CONTROL_PLANE", v.InitControlPlane)
|
||||
v.EnableControlAgent = getenvBoolDefault("MKS_ENABLE_CONTROL_AGENT", v.EnableControlAgent)
|
||||
v.EnableNodeControl = getenvBoolDefault("MKS_ENABLE_NODE_CONTROL", v.EnableNodeControl)
|
||||
|
||||
v.AllowSchedulingOnControlPlane = getenvBoolDefault("MKS_ALLOW_SCHEDULING_ON_CONTROL_PLANE", v.AllowSchedulingOnControlPlane)
|
||||
v.SkipImageCheck = getenvBoolDefault("MKS_SKIP_IMAGE_CHECK", v.SkipImageCheck)
|
||||
|
||||
Reference in New Issue
Block a user