From 52fa48ab3117038a2514e1d99f15539c6d0fa339 Mon Sep 17 00:00:00 2001
From: Dev Catalin <20538711+devcatalin@users.noreply.github.com>
Date: Mon, 24 Jul 2023 13:59:53 +0300
Subject: [PATCH] fix: helm details drawer in cluster mode
---
src/components/organisms/HelmRepoPane/HelmChartsView.tsx | 2 +-
src/utils/cluster.ts | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/components/organisms/HelmRepoPane/HelmChartsView.tsx b/src/components/organisms/HelmRepoPane/HelmChartsView.tsx
index 2213b7ad41..4ef50bda08 100644
--- a/src/components/organisms/HelmRepoPane/HelmChartsView.tsx
+++ b/src/components/organisms/HelmRepoPane/HelmChartsView.tsx
@@ -199,7 +199,7 @@ const HelmChartsTable = () => {
})}
/>
- {leftMenuSelection === 'helm' && selectedChart && }
+ {['helm', 'helm-in-cluster'].includes(leftMenuSelection) && selectedChart && }
>
);
};
diff --git a/src/utils/cluster.ts b/src/utils/cluster.ts
index d985641977..66183794ec 100644
--- a/src/utils/cluster.ts
+++ b/src/utils/cluster.ts
@@ -7,7 +7,7 @@ export function getHelmClusterArgs(): string[] {
if (!kubeconfigPath || !context || !proxyPort) return [];
- return [
+ const args = [
'--kubeconfig',
kubeconfigPath,
'--kube-context',
@@ -15,4 +15,5 @@ export function getHelmClusterArgs(): string[] {
'--kube-apiserver',
`http://127.0.0.1:${proxyPort}`,
];
+ return args;
}