Fix: PVC already created in shared resource step

pull/273/head
Frostebite 2021-06-20 00:17:31 +01:00
parent d3a99ff1b3
commit 606fdc048f
3 changed files with 1 additions and 8 deletions

1
dist/index.js vendored
View File

@ -1318,7 +1318,6 @@ class Kubernetes {
this.secretName = `build-credentials-${buildId}`;
this.jobName = `unity-builder-job-${buildId}`;
yield kubernetes_secret_1.default.createSecret(secrets, this.secretName, this.namespace, this.kubeClient);
yield kubernetes_storage_1.default.createPersistentVolumeClaim(this.buildParameters, this.pvcName, this.kubeClient, this.namespace);
const jobSpec = this.getJobSpec(commands, image, mountdir, workingdir, environment);
//run
core.info('Creating build job');

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -64,12 +64,6 @@ class Kubernetes implements RemoteBuilderProviderInterface {
this.secretName = `build-credentials-${buildId}`;
this.jobName = `unity-builder-job-${buildId}`;
await KubernetesSecret.createSecret(secrets, this.secretName, this.namespace, this.kubeClient);
await KubernetesStorage.createPersistentVolumeClaim(
this.buildParameters,
this.pvcName,
this.kubeClient,
this.namespace,
);
const jobSpec = this.getJobSpec(commands, image, mountdir, workingdir, environment);
//run