Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: list of Deployments not shown in UI #88

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kube-forwarder",
"version": "1.5.1",
"version": "1.5.2",
"author": "Pixel Point <[email protected]>",
"homepage": "https://kube-forwarder.poxelpoint.io",
"description": "A tool for managing port forwarding configs for kubernetes clusters",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/store/modules/Connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}"` })
}
Expand Down