Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use hostname
  • Loading branch information
dongjoon-hyun committed Jan 20, 2024
commit 215f327e12cf7a1b3d180eedae0c13bd2d73a5a4
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ private[spark] trait PVTestsSuite { k8sSuite: KubernetesSuite =>

private def setupLocalStorage(): Unit = {
val storageClassName = if (testBackend == MinikubeTestBackend) "standard" else "hostpath"
val hostname = if (testBackend == MinikubeTestBackend) "minikube" else "docker-desktop"
val pvBuilder = new PersistentVolumeBuilder()
.withKind("PersistentVolume")
.withApiVersion("v1")
Expand All @@ -48,7 +49,7 @@ private[spark] trait PVTestsSuite { k8sSuite: KubernetesSuite =>
.withMatchExpressions(new NodeSelectorRequirementBuilder()
.withKey("kubernetes.io/hostname")
.withOperator("In")
.withValues("minikube", "m01", "docker-desktop")
.withValues(hostname)
.build()).build())
.endRequired()
.endNodeAffinity()
Expand Down