Skip to content

Commit 7ddd966

Browse files
committed
kubeadm: mark --experimental-kustomize as deprecated
1 parent 7766e65 commit 7ddd966

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cmd/kubeadm/app/cmd/options/constant.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,7 @@ const (
145145

146146
// Kustomize flag sets the folder where kustomize patches for static pod manifest are stored
147147
Kustomize = "experimental-kustomize"
148+
149+
// Patches flag sets the folder where kubeadm component patches are stored
150+
Patches = "experimental-patches"
148151
)

cmd/kubeadm/app/cmd/options/generic.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ limitations under the License.
1717
package options
1818

1919
import (
20+
"fmt"
2021
"strings"
2122

2223
"github.com/spf13/pflag"
@@ -92,4 +93,5 @@ func AddKubeadmOtherFlags(flagSet *pflag.FlagSet, rootfsPath *string) {
9293
// AddKustomizePodsFlag adds the --kustomize flag to the given flagset
9394
func AddKustomizePodsFlag(fs *pflag.FlagSet, kustomizeDir *string) {
9495
fs.StringVarP(kustomizeDir, Kustomize, "k", *kustomizeDir, "The path where kustomize patches for static pod manifests are stored.")
96+
fs.MarkDeprecated(Kustomize, fmt.Sprintf("This flag is deprecated and will be removed in a future version. Please use %s instead.", Patches))
9597
}

0 commit comments

Comments
 (0)