Files
flagger/test/workloads/init.sh
Sanskar Jaiswal 90054b3b27 kuma: bump e2e version to 2.7.5
Signed-off-by: Sanskar Jaiswal <jaiswalsanskar078@gmail.com>
2024-07-26 15:27:46 +05:30

26 lines
848 B
Bash
Executable File

#!/usr/bin/env bash
# This script creates the test app and load tester
set -o errexit
REPO_ROOT=$(git rev-parse --show-toplevel)
echo '>>> Delete test namespace'
kubectl delete namespace test --ignore-not-found=true --wait=true
echo '>>> Creating test namespace'
kubectl create namespace test
kubectl label namespace test istio-injection=enabled
kubectl annotate namespace test linkerd.io/inject=enabled
kubectl label namespace test kuma.io/sidecar-injection=enabled
echo '>>> Installing the load tester'
kubectl apply -k ${REPO_ROOT}/kustomize/tester
kubectl -n test rollout status deployment/flagger-loadtester
echo '>>> Deploy podinfo'
kubectl apply -f ${REPO_ROOT}/test/workloads/secret.yaml -n test
kubectl apply -f ${REPO_ROOT}/test/workloads/deployment.yaml -n test
kubectl apply -f ${REPO_ROOT}/test/workloads/daemonset.yaml -n test