stream logs through standard input and new remote client cli command

This commit is contained in:
Frostebite 2023-06-05 22:03:26 +01:00
parent 1867dcefbb
commit d92ce4dc13
4 changed files with 21 additions and 0 deletions

View File

@ -31,6 +31,7 @@ env:
USE_GKE_GCLOUD_AUTH_PLUGIN: true USE_GKE_GCLOUD_AUTH_PLUGIN: true
GIT_PRIVATE_TOKEN: ${{ secrets.GIT_PRIVATE_TOKEN }} GIT_PRIVATE_TOKEN: ${{ secrets.GIT_PRIVATE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CLOUD_RUNNER_MINIKUBE: true
jobs: jobs:
smokeTests: smokeTests:

BIN
dist/index.js generated vendored

Binary file not shown.

BIN
dist/index.js.map generated vendored

Binary file not shown.

View File

@ -94,7 +94,27 @@ class KubernetesStorage {
}, },
}, },
}; };
if (process.env['CLOUD_RUNNER_MINIKUBE']) {
pvc.spec.storageClassName = `manual`;
}
const result = await kubeClient.createNamespacedPersistentVolumeClaim(namespace, pvc); 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; return result;
} }