mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Deprecation of the kubeamd config upload command
This also deprecated all the sub commands.
This commit is contained in:
parent
4d3d153210
commit
c55eaa9b5a
@ -263,9 +263,11 @@ func NewCmdConfigMigrate(out io.Writer) *cobra.Command {
|
||||
return cmd
|
||||
}
|
||||
|
||||
// NewCmdConfigUpload returns cobra.Command for "kubeadm config upload" command
|
||||
// NewCmdConfigUpload (Deprecated) returns cobra.Command for "kubeadm config upload" command
|
||||
// Deprecated: please see kubeadm init phase upload-config
|
||||
func NewCmdConfigUpload(out io.Writer, kubeConfigFile *string) *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Deprecated: "please see kubeadm init phase upload-config",
|
||||
Use: "upload",
|
||||
Short: "Upload configuration about the current state, so that 'kubeadm upgrade' can later know how to configure the upgraded cluster",
|
||||
RunE: cmdutil.SubCmdRunE("upload"),
|
||||
@ -299,9 +301,11 @@ func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command {
|
||||
|
||||
// NewCmdConfigUploadFromFile verifies given Kubernetes config file and returns cobra.Command for
|
||||
// "kubeadm config upload from-file" command
|
||||
// Deprecated: please see kubeadm init phase upload-config
|
||||
func NewCmdConfigUploadFromFile(out io.Writer, kubeConfigFile *string) *cobra.Command {
|
||||
var cfgPath string
|
||||
cmd := &cobra.Command{
|
||||
Deprecated: "please see kubeadm init phase upload-config",
|
||||
Use: "from-file",
|
||||
Short: "Upload a configuration file to the in-cluster ConfigMap for kubeadm configuration",
|
||||
Long: fmt.Sprintf(dedent.Dedent(`
|
||||
@ -335,6 +339,7 @@ func NewCmdConfigUploadFromFile(out io.Writer, kubeConfigFile *string) *cobra.Co
|
||||
}
|
||||
|
||||
// NewCmdConfigUploadFromFlags returns cobra.Command for "kubeadm config upload from-flags" command
|
||||
// Deprecated: please see kubeadm init phase upload-config
|
||||
func NewCmdConfigUploadFromFlags(out io.Writer, kubeConfigFile *string) *cobra.Command {
|
||||
cfg := &kubeadmapiv1beta2.InitConfiguration{}
|
||||
kubeadmscheme.Scheme.Default(cfg)
|
||||
@ -342,6 +347,7 @@ func NewCmdConfigUploadFromFlags(out io.Writer, kubeConfigFile *string) *cobra.C
|
||||
var featureGatesString string
|
||||
|
||||
cmd := &cobra.Command{
|
||||
Deprecated: "please see kubeadm init phase upload-config",
|
||||
Use: "from-flags",
|
||||
Short: "Create the in-cluster configuration file for the first time from using flags",
|
||||
Long: fmt.Sprintf(dedent.Dedent(`
|
||||
|
Loading…
Reference in New Issue
Block a user