@@ -91,12 +91,12 @@ func newControlPlanePrepareManifestsSubphases() workflow.Phase {
91
91
return workflow.Phase {
92
92
Name : "manifests" ,
93
93
Short : "Generates the manifests for the new control plane components" ,
94
- Run : runControlPlaneSubphase ,
94
+ Run : runControlPlanePrepareManifestsSubphase ,
95
95
InheritFlags : getControlPlanePreparePhaseFlags (), //NB. eventually in future we would like to break down this in sub phases for each component
96
96
}
97
97
}
98
98
99
- func runControlPlaneSubphase (c workflow.RunData ) error {
99
+ func runControlPlanePrepareManifestsSubphase (c workflow.RunData ) error {
100
100
data , ok := c .(controlPlanePrepareData )
101
101
if ! ok {
102
102
return errors .New ("control-plane-prepare phase invoked with an invalid data struct" )
@@ -163,27 +163,3 @@ func runControlPlanePrepareKubeconfigPhaseLocal(c workflow.RunData) error {
163
163
164
164
return nil
165
165
}
166
-
167
- func runControlPlanePrepareJoinSubphase (component string ) func (c workflow.RunData ) error {
168
- return func (c workflow.RunData ) error {
169
- data , ok := c .(controlPlanePrepareData )
170
- if ! ok {
171
- return errors .New ("control-plane-prepare phase invoked with an invalid data struct" )
172
- }
173
-
174
- // Skip if this is not a control plane
175
- if data .Cfg ().ControlPlane == nil {
176
- return nil
177
- }
178
-
179
- cfg , err := data .InitCfg ()
180
- if err != nil {
181
- return err
182
- }
183
-
184
- // Creates static pod manifests file for the control plane components to be deployed on this node
185
- // Static pods will be created and managed by the kubelet as soon as it starts
186
- fmt .Printf ("[control-plane-prepare] Creating static Pod manifest for %q\n " , component )
187
- return controlplane .CreateStaticPodFiles (kubeadmconstants .GetStaticPodDirectory (), & cfg .ClusterConfiguration , & cfg .LocalAPIEndpoint , component )
188
- }
189
- }
0 commit comments