AtomicBoolean hasError = new AtomicBoolean(false); for (ReplicationController controller : controllers.items) { ReplicationControllerState controllerState = new ReplicationControllerState(); controllerState.replicationController = controller; controllerState.name = controller.metadata.name;
new ReplicaSetService.ReplicaSetState())); entities.add(new Pair<>(ReplicationControllerService.FACTORY_LINK, new ReplicationControllerService.ReplicationControllerState())); entities.add(new Pair<>(ServiceEntityFactoryHandler.SELF_LINK, new ServiceEntityHandler.ServiceState()));
case REPLICATION_CONTROLLER_TYPE: ReplicationController controller = response.getBody(ReplicationController.class); ReplicationControllerState controllerState = new ReplicationControllerState(); controllerState.replicationController = controller; controllerState.name = controller.metadata.name;
public static BaseKubernetesState createKubernetesEntityState(String kind) { switch (kind) { case KubernetesUtil.POD_TYPE: return new PodState(); case KubernetesUtil.SERVICE_TYPE: return new ServiceState(); case KubernetesUtil.DEPLOYMENT_TYPE: return new DeploymentState(); case KubernetesUtil.REPLICATION_CONTROLLER_TYPE: return new ReplicationControllerState(); case KubernetesUtil.REPLICA_SET_TYPE: return new ReplicaSetState(); default: return new GenericKubernetesEntityState(); } }