// setting some defaults here because for these fields there's no way of differentiating between user provided null value vs golang setting it to null during unmarshal
// not breaking out of the loop so we can log all of the inactive hosts
}
iflen(inactiveControlPlaneHosts)>=1{
returnfmt.Errorf("cannot proceed with upgrade of controlplane if one or more controlplane hosts are inactive; found inactive hosts: %v",strings.Join(inactiveControlPlaneHosts,","))
returnfmt.Errorf("cannot proceed with upgrade of worker components since %v (>=maxUnavailable) hosts are inactive; found inactive hosts: %v",len(inactiveWorkerOnlyHosts),strings.Join(inactiveWorkerOnlyHosts,","))