From beeca78fb69e0445be927b4f20b74ceeeb4d5816 Mon Sep 17 00:00:00 2001 From: Riley Snyder Date: Tue, 25 Mar 2025 16:44:18 -0500 Subject: [PATCH] feat: add ability to render local charts --- bin/helm-diagrams | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/helm-diagrams b/bin/helm-diagrams index 87c620e..e83ad16 100755 --- a/bin/helm-diagrams +++ b/bin/helm-diagrams @@ -19,7 +19,8 @@ if [[ ${repository} == oci* ]] then # Deal with OCI registries. helm template ${chart} $1 2> /dev/null | kube-diagrams $KD_OPTS --without-namespace -o $chart - -else +elif [[ ${repository} == http* ]] +then # Deal with HTTP registries. # Add a Helm repository. @@ -31,4 +32,7 @@ else # Remove the Helm repository. helm repo remove $rid >/dev/null +else + # Deal with local charts + helm template ${repository}/${chart} 2> /dev/null | kube-diagrams $KD_OPTS --without-namespace -o local-$chart - fi