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/docs/learn/tests/kube-kind/basic/todoapp.cue
Tom Chauveau 6a442fae6c Update kubernetes documentation to directly use cue files
Previously, we were embedding cue files directly in the doc, now we
display it from real cue file that we also use to test our doc.

I've add the first step of the kubernetes documentation adapted for
kind

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
2021-09-01 11:14:07 +02:00

17 lines
366 B
CUE

package main
import (
"alpha.dagger.io/dagger"
"alpha.dagger.io/kubernetes"
)
// input: kubernetes objects directory to deploy to
// set with `dagger input dir manifest ./k8s -e kube`
manifest: dagger.#Artifact & dagger.#Input
// Deploy the manifest to a kubernetes cluster
todoApp: kubernetes.#Resources & {
"kubeconfig": kubeconfig
source: manifest
}