Skip to content

Commit

Permalink
fix(k8s): don't abort deployment on FailedMount warning
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald committed Feb 27, 2019
1 parent f14cde8 commit 90ac36c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions garden-service/src/plugins/kubernetes/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ export async function checkDeploymentStatus(
}

if (event.type === "Warning" || event.type === "Error") {
if (event.type === "Warning" && event.reason === "FailedScheduling") {
if (event.type === "Warning" && (event.reason === "FailedScheduling" || event.reason === "FailedMount")) {
// this can happen on first attempt to schedule a pod
// TODO: we may want to more specifically look at the message
// (e.g. 'pod has unbound immediate PersistentVolumeClaims')
// (e.g. 'pod has unbound immediate PersistentVolumeClaims' or 'couldn't propagate object cache')
continue
}
if (event.reason === "Unhealthy") {
Expand Down

0 comments on commit 90ac36c

Please sign in to comment.