use of io.fabric8.kubernetes.api.model.KubernetesListBuilder in project fabric8-maven-plugin by fabric8io.
the class ImageEnricherTest method checkEnrichDeployment.
@Test
public void checkEnrichDeployment() throws Exception {
KubernetesListBuilder builder = new KubernetesListBuilder().addNewDeploymentItem().endDeploymentItem();
imageEnricher.addMissingResources(builder);
assertCorrectlyGeneratedResources(builder.build(), "Deployment");
}
use of io.fabric8.kubernetes.api.model.KubernetesListBuilder in project fabric8-maven-plugin by fabric8io.
the class ImageEnricherTest method checkEnrichDaemonSet.
@Test
public void checkEnrichDaemonSet() throws Exception {
KubernetesListBuilder builder = new KubernetesListBuilder().addNewDaemonSetItem().endDaemonSetItem();
imageEnricher.addMissingResources(builder);
assertCorrectlyGeneratedResources(builder.build(), "DaemonSet");
}
use of io.fabric8.kubernetes.api.model.KubernetesListBuilder in project fabric8-maven-plugin by fabric8io.
the class ImageEnricherTest method checkEnrichReplicaSet.
@Test
public void checkEnrichReplicaSet() throws Exception {
KubernetesListBuilder builder = new KubernetesListBuilder().addNewReplicaSetItem().endReplicaSetItem();
imageEnricher.addMissingResources(builder);
assertCorrectlyGeneratedResources(builder.build(), "ReplicaSet");
}
use of io.fabric8.kubernetes.api.model.KubernetesListBuilder in project fabric8-maven-plugin by fabric8io.
the class ImageEnricherTest method checkEnrichReplicationController.
@Test
public void checkEnrichReplicationController() throws Exception {
KubernetesListBuilder builder = new KubernetesListBuilder().addNewReplicationControllerItem().endReplicationControllerItem();
imageEnricher.addMissingResources(builder);
assertCorrectlyGeneratedResources(builder.build(), "ReplicationController");
}
use of io.fabric8.kubernetes.api.model.KubernetesListBuilder in project fabric8-maven-plugin by fabric8io.
the class ImageEnricherTest method checkEnrichStatefulSet.
@Test
public void checkEnrichStatefulSet() throws Exception {
KubernetesListBuilder builder = new KubernetesListBuilder().addNewStatefulSetItem().endStatefulSetItem();
imageEnricher.addMissingResources(builder);
assertCorrectlyGeneratedResources(builder.build(), "StatefulSet");
}
Aggregations