for (ReplicationControllerSchema item : items) {
if (filter.matches(item)) {
String id = item.getId();
String labels = KubernetesHelper.toLabelsString(item.getLabels());
Integer replicas = null;
ControllerDesiredState desiredState = item.getDesiredState();
ControllerCurrentState currentState = item.getCurrentState();
String selector = null;
if (desiredState != null) {
selector = KubernetesHelper.toLabelsString(desiredState.getReplicaSelector());
}
if (currentState != null) {
replicas = currentState.getReplicas();
}
table.row(id, labels, toPositiveNonZeroText(replicas), selector);