From a73b34d096daa41961a418008648dbd17f4e03f8 Mon Sep 17 00:00:00 2001 From: Tom Chauveau Date: Thu, 9 Sep 2021 13:02:34 +0200 Subject: [PATCH] Add argocd-infra deployment to deploy it to a cluster Signed-off-by: Tom Chauveau --- stdlib/.dagger/env/argocd-infra/.gitignore | 2 ++ stdlib/.dagger/env/argocd-infra/values.yaml | 23 +++++++++++++++++++++ stdlib/argocd/tests/infra/infra.cue | 14 +++++++++++++ 3 files changed, 39 insertions(+) create mode 100644 stdlib/.dagger/env/argocd-infra/.gitignore create mode 100644 stdlib/.dagger/env/argocd-infra/values.yaml create mode 100644 stdlib/argocd/tests/infra/infra.cue diff --git a/stdlib/.dagger/env/argocd-infra/.gitignore b/stdlib/.dagger/env/argocd-infra/.gitignore new file mode 100644 index 00000000..01ec19b0 --- /dev/null +++ b/stdlib/.dagger/env/argocd-infra/.gitignore @@ -0,0 +1,2 @@ +# dagger state +state/** diff --git a/stdlib/.dagger/env/argocd-infra/values.yaml b/stdlib/.dagger/env/argocd-infra/values.yaml new file mode 100644 index 00000000..c9d4ef55 --- /dev/null +++ b/stdlib/.dagger/env/argocd-infra/values.yaml @@ -0,0 +1,23 @@ +plan: + package: ./argocd/tests/infra +name: argocd-infra +sops: + kms: [] + gcp_kms: [] + azure_kv: [] + hc_vault: [] + age: + - recipient: age1gxwmtwahzwdmrskhf90ppwlnze30lgpm056kuesrxzeuyclrwvpsupwtpk + enc: | + -----BEGIN AGE ENCRYPTED FILE----- + YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBmVmEzZ3RDdjlBRXBleURr + cmx6YW40ZHFLMHpqa2RYWUlIdTFIZlYyZ3pnCmVieTB2MXdid1l5ZitUMkprVGFz + RHl4elJzdWRTYS9MaXZkU29UMG1SSmcKLS0tIHFjNHhBVVVwcGwrVWZHOXoxdGps + RWlubERCTjFkSStyQXdpbSttbXB1RmcKQeRMIc8QGKI8HkoBXCQzR/gaBoiYTYxy + vLjf1kMlX4BvmwTpmDO9Wer8a/NXEwA3zpK/kHaoXGBZln8Lf4J87A== + -----END AGE ENCRYPTED FILE----- + lastmodified: "2021-09-09T10:52:18Z" + mac: ENC[AES256_GCM,data:B5CZFBYviKy/l8YYzg3luUdeFpRTGx5q+Q5b56SvIVvdp33TQwvU6bftiNOwUHjI3a3B2p70QNKxam+Yk7Pf9jC1nN6dR1jWh0RcicTjQOI6URN6NgS667/iCG7e94fKiVKlbgRq/P7eudnJrkhPsiqqHopmWg41g+izH+YOX2I=,iv:X6nxvaEdtnyUSEPODJLrPfuju906b9EYsye4MstBGRc=,tag:olbgC+EtQ8U8FJejQv5u/Q==,type:str] + pgp: [] + encrypted_suffix: secret + version: 3.7.1 diff --git a/stdlib/argocd/tests/infra/infra.cue b/stdlib/argocd/tests/infra/infra.cue new file mode 100644 index 00000000..30ca30b5 --- /dev/null +++ b/stdlib/argocd/tests/infra/infra.cue @@ -0,0 +1,14 @@ +package infra + +import ( + "alpha.dagger.io/dagger" + "alpha.dagger.io/kubernetes" +) + +TestKubeconfig: dagger.#Input & {string} + +TestArgoInfra: kubernetes.#Resources & { + kubeconfig: TestKubeconfig + namespace: "argocd" + url: "https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml" +}