Skip to content

Commit

Permalink
improvement(k8s): update k8s client library
Browse files Browse the repository at this point in the history
_Might_ solve #2330 (cc @graemechristie)
  • Loading branch information
edvald authored and thsig committed Mar 31, 2021
1 parent 97a82cb commit 2ab568e
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 275 deletions.
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"dependencies": {
"@hapi/joi": "git+https://github.com/garden-io/joi.git#master",
"@kubernetes/client-node": "git+https://github.com/garden-io/javascript.git#fix-websocket-basic-auth-yarn",
"@kubernetes/client-node": "^0.14.0",
"JSONStream": "^1.3.5",
"ajv": "^6.12.2",
"analytics-node": "3.3.0",
Expand Down
4 changes: 2 additions & 2 deletions core/src/plugins/kubernetes/status/workload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
V1StatefulSet,
V1StatefulSetSpec,
V1DeploymentStatus,
V1Event,
CoreV1Event,
} from "@kubernetes/client-node"
import dedent = require("dedent")
import { getCurrentWorkloadPods } from "../util"
Expand All @@ -44,7 +44,7 @@ export async function checkWorkloadStatus({ api, namespace, resource }: StatusHa
const workload = <Workload>resource

let _pods: KubernetesPod[]
let _events: V1Event[]
let _events: CoreV1Event[]

const getPods = async () => {
if (!_pods) {
Expand Down

0 comments on commit 2ab568e

Please sign in to comment.