Skip to content

Commit

Permalink
fix(k8s): provider init errors weren't handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
edvald authored and eysi09 committed Feb 4, 2020
1 parent 8d9023e commit 423f8e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions garden-service/src/plugins/kubernetes/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import { join } from "path"
import { values } from "lodash"
import { V1Namespace } from "@kubernetes/client-node"
import semver from "semver"

Expand Down Expand Up @@ -159,7 +158,7 @@ export async function getSystemServiceStatus({ sysGarden, log, serviceNames }: G
log: log.placeholder(LogLevel.verbose, true),
serviceNames,
})
const state = combineStates(values(serviceStatuses).map((s) => (s && s.state) || "unknown"))
const state = combineStates(Object.values(serviceStatuses).map((s) => (s && s.state) || "unknown"))

return {
state,
Expand Down Expand Up @@ -202,7 +201,7 @@ export async function prepareSystemServices({
forceBuild: force,
})

const failed = values(results.taskResults)
const failed = Object.values(results)
.filter((r) => r && r.error)
.map((r) => r!)
const errors = failed.map((r) => r.error)
Expand Down

0 comments on commit 423f8e0

Please sign in to comment.