@@ -129,7 +129,6 @@ type joinOptions struct {
129
129
ignorePreflightErrors []string
130
130
externalcfg * kubeadmapiv1beta2.JoinConfiguration
131
131
joinControlPlane * kubeadmapiv1beta2.JoinControlPlane
132
- kustomizeDir string
133
132
patchesDir string
134
133
}
135
134
@@ -145,7 +144,6 @@ type joinData struct {
145
144
clientSet * clientset.Clientset
146
145
ignorePreflightErrors sets.String
147
146
outputWriter io.Writer
148
- kustomizeDir string
149
147
patchesDir string
150
148
}
151
149
@@ -287,7 +285,6 @@ func addJoinOtherFlags(flagSet *flag.FlagSet, joinOptions *joinOptions) {
287
285
& joinOptions .controlPlane , options .ControlPlane , joinOptions .controlPlane ,
288
286
"Create a new control plane instance on this node" ,
289
287
)
290
- options .AddKustomizePodsFlag (flagSet , & joinOptions .kustomizeDir )
291
288
options .AddPatchesFlag (flagSet , & joinOptions .patchesDir )
292
289
}
293
290
@@ -443,7 +440,6 @@ func newJoinData(cmd *cobra.Command, args []string, opt *joinOptions, out io.Wri
443
440
tlsBootstrapCfg : tlsBootstrapCfg ,
444
441
ignorePreflightErrors : ignorePreflightErrorsSet ,
445
442
outputWriter : out ,
446
- kustomizeDir : opt .kustomizeDir ,
447
443
patchesDir : opt .patchesDir ,
448
444
}, nil
449
445
}
@@ -510,11 +506,6 @@ func (j *joinData) OutputWriter() io.Writer {
510
506
return j .outputWriter
511
507
}
512
508
513
- // KustomizeDir returns the folder where kustomize patches for static pod manifest are stored
514
- func (j * joinData ) KustomizeDir () string {
515
- return j .kustomizeDir
516
- }
517
-
518
509
// PatchesDir returns the folder where patches for components are stored
519
510
func (j * joinData ) PatchesDir () string {
520
511
return j .patchesDir
0 commit comments