Skip to content

Commit

Permalink
fix-test
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiobrz committed Jan 7, 2025
1 parent a585f57 commit 960c082
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
import io.fabric8.kubernetes.api.model.DeletionPropagation;
import io.opendatahub.datasciencecluster.v1.DataScienceCluster;
import io.opendatahub.datasciencecluster.v1.DataScienceClusterBuilder;
import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.kserve.Nim;
import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.kserve.Serving;
import io.opendatahub.datasciencecluster.v1.datascienceclusterspec.components.kserve.serving.ingressgateway.Certificate;
import io.opendatahub.dscinitialization.v1.DSCInitialization;
import io.opendatahub.dscinitialization.v1.DSCInitializationBuilder;
import lombok.extern.slf4j.Slf4j;
Expand All @@ -44,6 +47,26 @@ public DataScienceCluster getDataScienceCluster() {
.withNewMetadata()
.withName(APP_NAME)
.endMetadata()
.withNewSpec()
.withNewComponents()
.withNewKserve()
.withNewNim()
.withManagementState(Nim.ManagementState.Managed)
.endNim()
.withNewServing()
.withNewIngressGateway()
.withNewCertificate()
.withType(Certificate.Type.OpenshiftDefaultIngress)
.endCertificate()
.endIngressGateway()
.withManagementState(Serving.ManagementState.Managed)
.endServing()
.endKserve()
.withNewModelregistry()
.withRegistriesNamespace("odh-model-registries")
.endModelregistry()
.endComponents()
.endSpec()
.build();
}

Expand Down Expand Up @@ -117,10 +140,10 @@ private void verifyMinimalDataScienceCluster(final DataScienceCluster dataScienc
final DSCInitialization dscInitialization) {
// create and verify that objects exist
operatorProvisioner.dataScienceClusterClient().resource(dataScienceCluster).create();
operatorProvisioner.dscInitializationClient().resource(dscInitialization).create();
new SimpleWaiter(() -> operatorProvisioner.dataScienceClusterClient().list().getItems().size() == 1)
.level(Level.DEBUG)
.waitFor();
operatorProvisioner.dscInitializationClient().resource(dscInitialization).create();
new SimpleWaiter(() -> operatorProvisioner.dscInitializationClient().list().getItems().size() == 1)
.level(Level.DEBUG)
.waitFor();
Expand Down

0 comments on commit 960c082

Please sign in to comment.