Search in sources :

Example 6 with DeploymentConfigSpec

use of io.fabric8.openshift.api.model.DeploymentConfigSpec in project fabric8 by fabric8io.

the class KubernetesHelper method summaryText.

/**
 * Returns a short summary text message for the given kubernetes resource
 */
public static String summaryText(DeploymentConfig entity) {
    StringBuilder buffer = new StringBuilder();
    DeploymentConfigSpec spec = entity.getSpec();
    if (spec != null) {
        buffer.append("replicas: " + spec.getReplicas());
        PodTemplateSpec podTemplateSpec = spec.getTemplate();
        if (podTemplateSpec != null) {
            appendSummaryText(buffer, podTemplateSpec);
        }
    }
    return buffer.toString();
}
Also used : DeploymentConfigSpec(io.fabric8.openshift.api.model.DeploymentConfigSpec)

Aggregations

DeploymentConfigSpec (io.fabric8.openshift.api.model.DeploymentConfigSpec)6 ReplicationController (io.fabric8.kubernetes.api.model.ReplicationController)4 ReplicationControllerSpec (io.fabric8.kubernetes.api.model.ReplicationControllerSpec)4 Deployment (io.fabric8.kubernetes.api.model.extensions.Deployment)4 DeploymentSpec (io.fabric8.kubernetes.api.model.extensions.DeploymentSpec)4 ReplicaSet (io.fabric8.kubernetes.api.model.extensions.ReplicaSet)4 ReplicaSetSpec (io.fabric8.kubernetes.api.model.extensions.ReplicaSetSpec)4 DeploymentConfig (io.fabric8.openshift.api.model.DeploymentConfig)4 Controller (io.fabric8.kubernetes.api.Controller)2 LabelSelector (io.fabric8.kubernetes.api.model.LabelSelector)2 OpenShiftClient (io.fabric8.openshift.client.OpenShiftClient)2 HasMetadata (io.fabric8.kubernetes.api.model.HasMetadata)1 Job (io.fabric8.kubernetes.api.model.Job)1 JobSpec (io.fabric8.kubernetes.api.model.JobSpec)1 LabelSelectorRequirement (io.fabric8.kubernetes.api.model.LabelSelectorRequirement)1 DaemonSet (io.fabric8.kubernetes.api.model.extensions.DaemonSet)1 DaemonSetSpec (io.fabric8.kubernetes.api.model.extensions.DaemonSetSpec)1 StatefulSet (io.fabric8.kubernetes.api.model.extensions.StatefulSet)1 StatefulSetSpec (io.fabric8.kubernetes.api.model.extensions.StatefulSetSpec)1 KubernetesResourceUtil.getPodLabelSelector (io.fabric8.maven.core.util.KubernetesResourceUtil.getPodLabelSelector)1