Merge pull request #568 from aluzzardi/kubernetes-apply-resources

stdlib: kubernetes: rename #Apply to #Resources
This commit is contained in:
Andrea Luzzardi 2021-06-07 13:31:55 -07:00 committed by GitHub
commit 9cdde1318f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ cluster: eks.#KubeConfig & {
} }
// Example of a simple `kubectl apply` using a simple config // Example of a simple `kubectl apply` using a simple config
kubeApply: kubernetes.#Apply & { kubeApply: kubernetes.#Resources & {
manifest: yaml.Marshal(kubeSrc) manifest: yaml.Marshal(kubeSrc)
namespace: "test" namespace: "test"
kubeconfig: cluster.kubeconfig kubeconfig: cluster.kubeconfig

View File

@ -43,8 +43,8 @@ import (
] ]
} }
// Apply a Kubernetes configuration // Apply Kubernetes resources
#Apply: { #Resources: {
// Kubernetes config to deploy // Kubernetes config to deploy
source?: dagger.#Artifact @dagger(input) source?: dagger.#Artifact @dagger(input)

View File

@ -26,7 +26,7 @@ TestKubeApply: {
} }
// Apply deployment // Apply deployment
apply: kubernetes.#Apply & { apply: kubernetes.#Resources & {
"kubeconfig": kubeconfig "kubeconfig": kubeconfig
namespace: "dagger-test" namespace: "dagger-test"
manifest: yaml.Marshal(kubeSrc) manifest: yaml.Marshal(kubeSrc)