Removed old conf var

This commit is contained in:
2026-03-30 19:40:47 +08:00
parent d9ffd1b446
commit fcf7371e9e
2 changed files with 9 additions and 27 deletions

View File

@@ -23,8 +23,8 @@ type TemplateValues struct {
ContainerRuntimeEndpoint string
CNIPlugin string
BootstrapMode string // init, join
JoinKind string // worker, control-plane
ClusterRole string // worker, control-plane
InitControlPlane bool
AllowSchedulingOnControlPlane bool
SkipImageCheck bool
@@ -57,8 +57,8 @@ func defaultTemplateValues() TemplateValues {
ContainerRuntimeEndpoint: "unix:///var/run/crio/crio.sock",
CNIPlugin: "default",
BootstrapMode: "init",
JoinKind: "worker",
InitControlPlane: true,
ClusterRole: "control-plane",
AllowSchedulingOnControlPlane: true,
SkipImageCheck: false,
@@ -103,8 +103,8 @@ func LoadTemplateValuesFromEnv() TemplateValues {
v.ContainerRuntimeEndpoint = getenvDefault("MKS_CONTAINER_RUNTIME_ENDPOINT", v.ContainerRuntimeEndpoint)
v.CNIPlugin = getenvDefault("MKS_CNI_PLUGIN", v.CNIPlugin)
v.BootstrapMode = getenvDefault("MKS_BOOTSTRAP_MODE", v.BootstrapMode)
v.JoinKind = getenvDefault("MKS_JOIN_KIND", v.JoinKind)
v.InitControlPlane = getenvBoolDefault("MKS_INIT_CONTROL_PLANE", v.InitControlPlane)
v.ClusterRole = getenvDefault("MKS_CLUSTER_ROLE", v.ClusterRole)
v.AllowSchedulingOnControlPlane = getenvBoolDefault("MKS_ALLOW_SCHEDULING_ON_CONTROL_PLANE", v.AllowSchedulingOnControlPlane)
v.SkipImageCheck = getenvBoolDefault("MKS_SKIP_IMAGE_CHECK", v.SkipImageCheck)