Fix AWS eks kubeconfig generation

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau 2021-04-22 17:30:40 +02:00
parent d77c6f46ff
commit 2d72303bc4

View File

@ -1,7 +1,7 @@
package eks package eks
import ( import (
"dagger.io/dagger" // "dagger.io/dagger"
"dagger.io/dagger/op" "dagger.io/dagger/op"
"dagger.io/aws" "dagger.io/aws"
) )
@ -19,16 +19,18 @@ import (
// kubeconfig is the generated kube configuration file // kubeconfig is the generated kube configuration file
kubeconfig: { kubeconfig: {
dagger.#Secret string// FIXME There is a problem with dagger.#Artifact type
#up: [ #up: [
op.#Load & { op.#Load & {
from: aws.#CLI from: aws.#CLI
}, },
op.#WriteFile & { op.#WriteFile & {
dest: "/entrypoint.sh" dest: "/entrypoint.sh"
content: #Code content: #Code
}, },
op.#Exec & { op.#Exec & {
always: true always: true
args: [ args: [