Skip to content

Commit 5777e87

Browse files
committed
kubeadm: deprecate "kubeadm alpha kubelet config enable-dynamic"
Deprecate the command and recommend users to follow the official guide at the k8s.io website instead.
1 parent 5afc42d commit 5777e87

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmd/kubeadm/app/cmd/alpha/kubelet.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var (
3434
Enable or update dynamic kubelet configuration for a Node, against the kubelet-config-1.X ConfigMap in the cluster,
3535
where X is the minor version of the desired kubelet version.
3636
37-
WARNING: This feature is still experimental, and disabled by default. Enable only if you know what you are doing, as it
37+
WARNING: This kubeadm feature is deprecated. Enable only if you know what you are doing, as it
3838
may have surprising side-effects at this stage.
3939
4040
` + cmdutil.AlphaDisclaimer)
@@ -43,7 +43,7 @@ var (
4343
# Enable dynamic kubelet configuration for a Node.
4444
kubeadm alpha phase kubelet enable-dynamic-config --node-name node-1 --kubelet-version %s
4545
46-
WARNING: This feature is still experimental, and disabled by default. Enable only if you know what you are doing, as it
46+
WARNING: This kubeadm feature is deprecated. Enable only if you know what you are doing, as it
4747
may have surprising side-effects at this stage.
4848
`, constants.CurrentKubernetesVersion))
4949
)
@@ -80,9 +80,11 @@ func newCmdKubeletConfigEnableDynamic() *cobra.Command {
8080

8181
cmd := &cobra.Command{
8282
Use: "enable-dynamic",
83-
Short: "EXPERIMENTAL: Enable or update dynamic kubelet configuration for a Node",
83+
Short: "DEPRECATED: Enable or update dynamic kubelet configuration for a Node",
8484
Long: kubeletConfigEnableDynamicLongDesc,
8585
Example: kubeletConfigEnableDynamicExample,
86+
Deprecated: "This command is deprecated and will be removed in a future release. Please defer to the official \"Dynamic Kubelet Configuration\" " +
87+
"guide at k8s.io if you wish to use this feature",
8688
RunE: func(cmd *cobra.Command, args []string) error {
8789
if len(nodeName) == 0 {
8890
return errors.New("the --node-name argument is required")

0 commit comments

Comments
 (0)