This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/stdlib/gcp/gke/gke.cue
Andrea Luzzardi 5bd3349a27 stdlib: add GKE support
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-19 16:44:52 -07:00

33 lines
496 B
CUE

package gke
import (
"dagger.io/gcp"
"dagger.io/gcp/gke"
"dagger.io/kubernetes"
"dagger.io/dagger/op"
)
TestConfig: gcpConfig: gcp.#Config
TestCluster: gke.#KubeConfig & {
config: TestConfig.gcpConfig
clusterName: "test-cluster"
}
TestGKE: #up: [
op.#Load & {
from: kubernetes.#Kubectl
},
op.#WriteFile & {
dest: "/kubeconfig"
content: TestCluster.kubeconfig
},
op.#Exec & {
always: true
args: ["kubectl", "get", "nodes"]
env: KUBECONFIG: "/kubeconfig"
},
]