From 60a9ffeaf660378ffa7e9af314dc77d36a5d0ef716a6e4d6d8951df8b5996aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=9F=E9=85=8C=20=E9=B5=AC=E5=85=84?= Date: Mon, 30 Mar 2026 18:47:19 +0800 Subject: [PATCH] Removed AutoRemoveTaint --- clitools/pkg/bootstrap/registry.go | 1 - clitools/pkg/bootstrap/runner.go | 5 ----- clitools/pkg/node/metadata.go | 5 ----- 3 files changed, 11 deletions(-) diff --git a/clitools/pkg/bootstrap/registry.go b/clitools/pkg/bootstrap/registry.go index 922f619..6f948d0 100644 --- a/clitools/pkg/bootstrap/registry.go +++ b/clitools/pkg/bootstrap/registry.go @@ -22,7 +22,6 @@ func NewRegistry(ctx *node.NodeContext) *Registry { return &Registry{ steps: map[string]node.Step{ - "AllowSingleNodeScheduling": node.AllowSingleNodeScheduling, "ApplyLocalNodeMetadataIfPossible": node.ApplyLocalNodeMetadataIfPossible, "CheckForVersionSkew": node.CheckForVersionSkew, "ClassifyBootstrapAction": node.ClassifyBootstrapAction, diff --git a/clitools/pkg/bootstrap/runner.go b/clitools/pkg/bootstrap/runner.go index f4b30a0..0fde459 100644 --- a/clitools/pkg/bootstrap/runner.go +++ b/clitools/pkg/bootstrap/runner.go @@ -131,11 +131,6 @@ func NewRunner(cfg *monov1alpha1.MonoKSConfig) *Runner { Name: "Apply node metadata", Desc: "Apply labels/annotations to the local node if API server is reachable", }, - { - RegKey: "AllowSingleNodeScheduling", - Name: "Allow single-node scheduling", - Desc: "Remove control-plane taints to allow workloads on single-node clusters", - }, }, } } diff --git a/clitools/pkg/node/metadata.go b/clitools/pkg/node/metadata.go index 125d470..988f9b8 100644 --- a/clitools/pkg/node/metadata.go +++ b/clitools/pkg/node/metadata.go @@ -73,8 +73,3 @@ func ApplyLocalNodeMetadataIfPossible(ctx context.Context, nctx *NodeContext) er klog.Infof("applied labels/annotations to node %q", nodeName) return nil } - -func AllowSingleNodeScheduling(context.Context, *NodeContext) error { - klog.Info("allow_single_node_scheduling: TODO implement control-plane taint removal") - return nil -}