Revert kubernetes/helm packages and tests from secret to str type, needed for docs

Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
This commit is contained in:
Guillaume de Rouville
2021-06-17 03:06:39 +02:00
parent f8d8a68a5e
commit ce41d25c52
9 changed files with 30 additions and 15 deletions

View File

@@ -47,7 +47,7 @@ import (
atomic: *true | bool @dagger(input)
// Kube config file
kubeconfig: dagger.#Secret @dagger(input)
kubeconfig: string @dagger(input)
// Helm version
version: *"3.5.2" | string @dagger(input)
@@ -86,6 +86,11 @@ import (
dest: "/entrypoint.sh"
content: #code
},
op.#WriteFile & {
dest: "/kubeconfig"
content: kubeconfig
mode: 0o600
},
if chart != _|_ {
op.#WriteFile & {
dest: "/helm/chart"
@@ -125,7 +130,6 @@ import (
if chartSource != _|_ && chart == _|_ {
"/helm/chart": from: chartSource
}
"/kubeconfig": secret: kubeconfig
}
},
]

View File

@@ -62,7 +62,7 @@ import (
version: *"v1.19.9" | string @dagger(input)
// Kube config file
kubeconfig: dagger.#Secret @dagger(input)
kubeconfig: string @dagger(input)
#code: #"""
kubectl create namespace "$KUBE_NAMESPACE" > /dev/null 2>&1 || true
@@ -77,7 +77,11 @@ import (
dest: "/entrypoint.sh"
content: #code
},
op.#WriteFile & {
dest: "/kubeconfig"
content: kubeconfig
mode: 0o600
},
if manifest != _|_ {
op.#WriteFile & {
dest: "/source"
@@ -101,7 +105,6 @@ import (
if manifest == _|_ {
mount: "/source": from: source
}
mount: "/kubeconfig": secret: kubeconfig
},
]
}