@@ -139,8 +139,12 @@ func RunReconcileCluster(ctx context.Context, f *util.Factory, out io.Writer, op
139139 {
140140 opt := * c
141141 opt .InstanceGroupRoles = []string {
142- string (kops .InstanceGroupRoleAPIServer ),
143- string (kops .InstanceGroupRoleControlPlane ),
142+ string (kops .InstanceGroupSubRoleAPIServer .Role ()),
143+ string (kops .InstanceGroupSubRoleControlPlane .Role ()),
144+ string (kops .InstanceGroupSubRoleEtcd .Role ()),
145+ string (kops .InstanceGroupSubRoleScheduler .Role ()),
146+ string (kops .InstanceGroupSubRoleCloudControllerManager .Role ()),
147+ string (kops .InstanceGroupSubRoleKubeControllerManager .Role ()),
144148 }
145149 opt .Prune = false // Do not prune until after the last rolling update
146150 if _ , err := RunCoreUpdateCluster (ctx , f , out , & opt ); err != nil {
@@ -160,7 +164,7 @@ func RunReconcileCluster(ctx context.Context, f *util.Factory, out io.Writer, op
160164
161165 // filter the instance group to only include the control plane
162166 opt .filterInstanceGroups = func (ig * kops.InstanceGroup ) bool {
163- return ig .Spec .Role == kops . InstanceGroupRoleAPIServer || ig . Spec . Role == kops . InstanceGroupRoleControlPlane
167+ return ig .Spec .Role . IsControlPlaneType ()
164168 }
165169
166170 // Ignore all pods, we just want to check the control plane is responding
@@ -180,8 +184,12 @@ func RunReconcileCluster(ctx context.Context, f *util.Factory, out io.Writer, op
180184 opt .ClusterName = c .ClusterName
181185 opt .CreateKubecfgOptions = options .CreateKubecfgOptions
182186 opt .InstanceGroupRoles = []string {
183- string (kops .InstanceGroupRoleAPIServer ),
184- string (kops .InstanceGroupRoleControlPlane ),
187+ string (kops .InstanceGroupSubRoleAPIServer .Role ()),
188+ string (kops .InstanceGroupSubRoleControlPlane .Role ()),
189+ string (kops .InstanceGroupSubRoleEtcd .Role ()),
190+ string (kops .InstanceGroupSubRoleScheduler .Role ()),
191+ string (kops .InstanceGroupSubRoleCloudControllerManager .Role ()),
192+ string (kops .InstanceGroupSubRoleKubeControllerManager .Role ()),
185193 }
186194 opt .Yes = c .Yes
187195 if err := RunRollingUpdateCluster (ctx , f , out , opt ); err != nil {
0 commit comments