Update helm and kubernetes tests to use new dagger.#Secret definition
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
@@ -27,17 +27,12 @@ import (
|
||||
from: kubernetes.#Kubectl
|
||||
},
|
||||
|
||||
op.#WriteFile & {
|
||||
dest: "/kubeconfig"
|
||||
content: config.contents
|
||||
mode: 0o600
|
||||
},
|
||||
|
||||
op.#WriteFile & {
|
||||
dest: "/getPods.sh"
|
||||
content: #GetPods
|
||||
},
|
||||
|
||||
// Check pods
|
||||
op.#Exec & {
|
||||
always: true
|
||||
args: [
|
||||
@@ -52,6 +47,7 @@ import (
|
||||
KUBECONFIG: "/kubeconfig"
|
||||
KUBE_NAMESPACE: namespace
|
||||
}
|
||||
mount: "/kubeconfig": secret: kubeconfig
|
||||
},
|
||||
|
||||
op.#WriteFile & {
|
||||
@@ -73,6 +69,7 @@ import (
|
||||
KUBECONFIG: "/kubeconfig"
|
||||
KUBE_NAMESPACE: namespace
|
||||
}
|
||||
mount: "/kubeconfig": secret: kubeconfig
|
||||
},
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user