stdlib: helm: fix chart repository
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
@@ -2,8 +2,10 @@ package helm
|
||||
|
||||
#code: #"""
|
||||
# Add the repository
|
||||
helm repo add repository "${HELM_REPO}"
|
||||
helm repo update
|
||||
if [ -n "$HELM_REPO" ]; then
|
||||
helm repo add repository "${HELM_REPO}"
|
||||
helm repo update
|
||||
fi
|
||||
|
||||
# If the chart is a file, then it's the chart name
|
||||
# If it's a directly, then it's the contents of the cart
|
||||
|
@@ -19,8 +19,8 @@ import (
|
||||
// Helm chart to install from repository
|
||||
chart?: string @dagger(input)
|
||||
|
||||
// Helm chart repository (defaults to stable)
|
||||
repository: *"https://charts.helm.sh/stable" | string @dagger(input)
|
||||
// Helm chart repository
|
||||
repository?: string @dagger(input)
|
||||
|
||||
// Helm values (either a YAML string or a Cue structure)
|
||||
values?: string @dagger(input)
|
||||
@@ -110,7 +110,9 @@ import (
|
||||
KUBECONFIG: "/kubeconfig"
|
||||
KUBE_NAMESPACE: namespace
|
||||
|
||||
HELM_REPO: repository
|
||||
if repository != _|_ {
|
||||
HELM_REPO: repository
|
||||
}
|
||||
HELM_NAME: name
|
||||
HELM_ACTION: action
|
||||
HELM_TIMEOUT: timeout
|
||||
|
Reference in New Issue
Block a user