Skip to content
Permalink
Browse files

fix(worker): fix broken unit test

A recent PR merge broke one of the unit tests, and the root of the
problem was that a value wasn't being tested for existence.
  • Loading branch information
technosophos committed Feb 12, 2018
1 parent 6ef7bd0 commit a7dab7aba644149b977c9e2df7b30a53a8c0c8d2
Showing with 1 addition and 1 deletion.
  1. +1 −1 brigade-worker/src/k8s.ts
@@ -515,7 +515,7 @@ export class JobRunner implements jobs.JobRunner {

s.spec = new kubernetes.V1PersistentVolumeClaimSpec();
s.spec.accessModes = ["ReadWriteMany"];
if (this.project.kubernetes.cacheStorageClass.length > 0){
if (this.project.kubernetes.cacheStorageClass && this.project.kubernetes.cacheStorageClass.length > 0){
s.spec.storageClassName = this.project.kubernetes.cacheStorageClass
}
let res = new kubernetes.V1ResourceRequirements();

0 comments on commit a7dab7a

Please sign in to comment.
You can’t perform that action at this time.