mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
kubeadm: mark --experimental-kustomize as deprecated
This commit is contained in:
parent
7766e65a1b
commit
7ddd966ed2
@ -145,4 +145,7 @@ const (
|
|||||||
|
|
||||||
// Kustomize flag sets the folder where kustomize patches for static pod manifest are stored
|
// Kustomize flag sets the folder where kustomize patches for static pod manifest are stored
|
||||||
Kustomize = "experimental-kustomize"
|
Kustomize = "experimental-kustomize"
|
||||||
|
|
||||||
|
// Patches flag sets the folder where kubeadm component patches are stored
|
||||||
|
Patches = "experimental-patches"
|
||||||
)
|
)
|
||||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||||||
package options
|
package options
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
@ -92,4 +93,5 @@ func AddKubeadmOtherFlags(flagSet *pflag.FlagSet, rootfsPath *string) {
|
|||||||
// AddKustomizePodsFlag adds the --kustomize flag to the given flagset
|
// AddKustomizePodsFlag adds the --kustomize flag to the given flagset
|
||||||
func AddKustomizePodsFlag(fs *pflag.FlagSet, kustomizeDir *string) {
|
func AddKustomizePodsFlag(fs *pflag.FlagSet, kustomizeDir *string) {
|
||||||
fs.StringVarP(kustomizeDir, Kustomize, "k", *kustomizeDir, "The path where kustomize patches for static pod manifests are stored.")
|
fs.StringVarP(kustomizeDir, Kustomize, "k", *kustomizeDir, "The path where kustomize patches for static pod manifests are stored.")
|
||||||
|
fs.MarkDeprecated(Kustomize, fmt.Sprintf("This flag is deprecated and will be removed in a future version. Please use %s instead.", Patches))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user