diff --git a/package.json b/package.json index b9c47cf..c4deb93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kube-forwarder", - "version": "1.5.1", + "version": "1.5.2", "author": "Pixel Point ", "homepage": "https://kube-forwarder.poxelpoint.io", "description": "A tool for managing port forwarding configs for kubernetes clusters", @@ -82,7 +82,7 @@ } }, "dependencies": { - "@kubernetes/client-node": "0.10.2", + "@kubernetes/client-node": "0.14.3", "@sentry/electron": "^0.17.3", "@sentry/integrations": "^5.3.1", "clone-deep": "^4.0.1", diff --git a/src/renderer/store/modules/Connections.js b/src/renderer/store/modules/Connections.js index 417f9e6..684c613 100644 --- a/src/renderer/store/modules/Connections.js +++ b/src/renderer/store/modules/Connections.js @@ -198,10 +198,10 @@ async function loadPod(kubeConfig, namespace, podName) { } async function loadDeployment(kubeConfig, namespace, deploymentName) { - const extensionsApi = kubeConfig.makeApiClient(k8s.ExtensionsV1beta1Api) + const coreApi = kubeConfig.makeApiClient(k8s.CoreV1Api) try { - return (await extensionsApi.readNamespacedDeployment(deploymentName, namespace)).body + return (await coreApi.readNamespacedDeployment(deploymentName, namespace)).body } catch (error) { throw k8nApiPrettyError(error, { _object: `Deployment "${deploymentName}"` }) }