@@ -25,7 +25,6 @@ import (
25
25
"k8s.io/kubernetes/cmd/kubeadm/app/cmd/options"
26
26
"k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow"
27
27
cmdutil "k8s.io/kubernetes/cmd/kubeadm/app/cmd/util"
28
- kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
29
28
etcdphase "k8s.io/kubernetes/cmd/kubeadm/app/phases/etcd"
30
29
markcontrolplanephase "k8s.io/kubernetes/cmd/kubeadm/app/phases/markcontrolplane"
31
30
etcdutil "k8s.io/kubernetes/cmd/kubeadm/app/util/etcd"
@@ -69,7 +68,6 @@ func NewControlPlaneJoinPhase() workflow.Phase {
69
68
ArgsValidator : cobra .NoArgs ,
70
69
},
71
70
newEtcdLocalSubphase (),
72
- newUpdateStatusSubphase (),
73
71
newMarkControlPlaneSubphase (),
74
72
},
75
73
}
@@ -85,19 +83,6 @@ func newEtcdLocalSubphase() workflow.Phase {
85
83
}
86
84
}
87
85
88
- func newUpdateStatusSubphase () workflow.Phase {
89
- return workflow.Phase {
90
- Name : "update-status" ,
91
- Short : fmt .Sprintf (
92
- "Register the new control-plane node into the ClusterStatus maintained in the %s ConfigMap (DEPRECATED)" ,
93
- kubeadmconstants .KubeadmConfigConfigMap ,
94
- ),
95
- Run : runUpdateStatusPhase ,
96
- InheritFlags : getControlPlaneJoinPhaseFlags ("update-status" ),
97
- ArgsValidator : cobra .NoArgs ,
98
- }
99
- }
100
-
101
86
func newMarkControlPlaneSubphase () workflow.Phase {
102
87
return workflow.Phase {
103
88
Name : "mark-control-plane" ,
@@ -159,19 +144,6 @@ func runEtcdPhase(c workflow.RunData) error {
159
144
return nil
160
145
}
161
146
162
- func runUpdateStatusPhase (c workflow.RunData ) error {
163
- data , ok := c .(JoinData )
164
- if ! ok {
165
- return errors .New ("control-plane-join phase invoked with an invalid data struct" )
166
- }
167
-
168
- if data .Cfg ().ControlPlane != nil {
169
- fmt .Println ("The 'update-status' phase is deprecated and will be removed in a future release. " +
170
- "Currently it performs no operation" )
171
- }
172
- return nil
173
- }
174
-
175
147
func runMarkControlPlanePhase (c workflow.RunData ) error {
176
148
data , ok := c .(JoinData )
177
149
if ! ok {
0 commit comments