Skip to content

Commit

Permalink
fix: helm details drawer in cluster mode
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Jul 24, 2023
1 parent fbbcfeb commit 52fa48a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/organisms/HelmRepoPane/HelmChartsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const HelmChartsTable = () => {
})}
/>
</div>
{leftMenuSelection === 'helm' && selectedChart && <HelmChartDetails />}
{['helm', 'helm-in-cluster'].includes(leftMenuSelection) && selectedChart && <HelmChartDetails />}
</>
);
};
Expand Down
3 changes: 2 additions & 1 deletion src/utils/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ export function getHelmClusterArgs(): string[] {

if (!kubeconfigPath || !context || !proxyPort) return [];

return [
const args = [
'--kubeconfig',
kubeconfigPath,
'--kube-context',
context,
'--kube-apiserver',
`http://127.0.0.1:${proxyPort}`,
];
return args;
}

0 comments on commit 52fa48a

Please sign in to comment.