Skip to content

Commit

Permalink
fixup! Add an ability to disable waiting for PVCs to become bound
Browse files Browse the repository at this point in the history
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
  • Loading branch information
sleshchenko committed May 27, 2019
1 parent a449523 commit 3996241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void prepare(KubernetesEnvironment k8sEnv, String workspaceId, long timeo
log.debug("Creating PVC for workspace '{}'", workspaceId);
pvcs.create(commonPVC);
if (waitBound) {
log.debug("Waiting PVC for workspace '{}' to be bound", workspaceId);
log.debug("Waiting for PVC for workspace '{}' to be bound", workspaceId);
pvcs.waitBound(commonPVC.getMetadata().getName(), timeoutMillis);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void prepare(KubernetesEnvironment k8sEnv, String workspaceId, long timeo
k8sClaims.createIfNotExist(k8sEnv.getPersistentVolumeClaims().values());

if (waitBound) {
LOG.debug("Waiting PVCs for workspace '{}' to be bound", workspaceId);
LOG.debug("Waiting for PVC(s) of workspace '{}' to be bound", workspaceId);
for (PersistentVolumeClaim pvc : k8sEnv.getPersistentVolumeClaims().values()) {
k8sClaims.waitBound(pvc.getMetadata().getName(), timeoutMillis);
}
Expand Down

0 comments on commit 3996241

Please sign in to comment.