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

@@ -8,7 +8,7 @@ import (
// We assume that a kinD cluster is running locally
// To deploy a local KinD cluster, follow this link : https://kind.sigs.k8s.io/docs/user/quick-start/
kubeconfig: dagger.#Secret @dagger(input)
kubeconfig: string @dagger(input)
// Deploy user local chart
TestHelmSimpleChart: {

View File

@@ -26,6 +26,12 @@ import (
content: #getHelmPods
},
op.#WriteFile & {
dest: "/kubeconfig"
content: kubeconfig
mode: 0o600
},
op.#Exec & {
always: true
args: [
@@ -40,7 +46,6 @@ import (
KUBECONFIG: "/kubeconfig"
KUBE_NAMESPACE: namespace
}
mount: "/kubeconfig": secret: kubeconfig
},
]
}