diff --git a/.github/workflows/cloud-runner-ci-pipeline.yml b/.github/workflows/cloud-runner-ci-pipeline.yml index ffa63186..e30e21f2 100644 --- a/.github/workflows/cloud-runner-ci-pipeline.yml +++ b/.github/workflows/cloud-runner-ci-pipeline.yml @@ -31,6 +31,7 @@ env: USE_GKE_GCLOUD_AUTH_PLUGIN: true GIT_PRIVATE_TOKEN: ${{ secrets.GIT_PRIVATE_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CLOUD_RUNNER_MINIKUBE: true jobs: smokeTests: diff --git a/dist/index.js b/dist/index.js index 0dbca4b2..9d0c7430 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index a221581b..e4a85b27 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/model/cloud-runner/providers/k8s/kubernetes-storage.ts b/src/model/cloud-runner/providers/k8s/kubernetes-storage.ts index 7f6f642d..9554b9c4 100644 --- a/src/model/cloud-runner/providers/k8s/kubernetes-storage.ts +++ b/src/model/cloud-runner/providers/k8s/kubernetes-storage.ts @@ -94,7 +94,27 @@ class KubernetesStorage { }, }, }; + if (process.env['CLOUD_RUNNER_MINIKUBE']) { + pvc.spec.storageClassName = `manual`; + } const result = await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc); + if (process.env['CLOUD_RUNNER_MINIKUBE']) { + const hostPathVolume = { + metadata: { + name: ``, + labels: { + type: `local`, + }, + }, + spec: { + storageClassName: `manual`, + capacity: { storage: `10Gi` }, + accessModes: ['ReadWriteOnce'], + hostPath: { path: `/data` }, + }, + }; + await kubeClient.createPersistentVolume(hostPathVolume); + } return result; }