From 28619ce3dbdd4cd94a903d44263c4c62b1973ec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Tue, 22 Nov 2022 09:36:40 +0100 Subject: [PATCH] refactor: split argocd lab into multiple steps (#5410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: argocd lab Signed-off-by: Charles-Edouard Brétéché * refactor: split argocd lab into multiple steps Signed-off-by: Charles-Edouard Brétéché * fix tempo Signed-off-by: Charles-Edouard Brétéché Signed-off-by: Charles-Edouard Brétéché --- scripts/labs/argocd/0-cluster.sh | 48 +++ scripts/labs/argocd/1-ingress-nginx.sh | 14 + scripts/labs/argocd/2-argocd.sh | 46 +++ .../labs/argocd/3-kube-prometheus-stack.sh | 78 ++++ scripts/labs/argocd/4-loki.sh | 30 ++ scripts/labs/argocd/5-tempo.sh | 52 +++ scripts/labs/argocd/6-metrics-server.sh | 32 ++ scripts/labs/argocd/7-kyverno.sh | 38 ++ scripts/labs/argocd/8-kyverno-policies.sh | 28 ++ scripts/labs/argocd/9-policy-reporter.sh | 45 +++ scripts/labs/argocd/common-steps.sh | 12 + scripts/labs/argocd/kind-argo.sh | 368 +----------------- scripts/labs/argocd/minimal.sh | 18 + 13 files changed, 447 insertions(+), 362 deletions(-) create mode 100755 scripts/labs/argocd/0-cluster.sh create mode 100755 scripts/labs/argocd/1-ingress-nginx.sh create mode 100755 scripts/labs/argocd/2-argocd.sh create mode 100755 scripts/labs/argocd/3-kube-prometheus-stack.sh create mode 100755 scripts/labs/argocd/4-loki.sh create mode 100755 scripts/labs/argocd/5-tempo.sh create mode 100755 scripts/labs/argocd/6-metrics-server.sh create mode 100755 scripts/labs/argocd/7-kyverno.sh create mode 100755 scripts/labs/argocd/8-kyverno-policies.sh create mode 100755 scripts/labs/argocd/9-policy-reporter.sh create mode 100755 scripts/labs/argocd/common-steps.sh create mode 100755 scripts/labs/argocd/minimal.sh diff --git a/scripts/labs/argocd/0-cluster.sh b/scripts/labs/argocd/0-cluster.sh new file mode 100755 index 0000000000..690a045d40 --- /dev/null +++ b/scripts/labs/argocd/0-cluster.sh @@ -0,0 +1,48 @@ +#!/usr/bin/env bash + +set -e + +# DELETE CLUSTER + +kind delete cluster --name ${KIND_NAME:-argo} || true + +# CREATE CLUSTER + +kind create cluster --name ${KIND_NAME:-argo} --image ${KIND_IMAGE:-kindest/node:v1.24.4} --config - <