mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Update Gloo e2e to v0.14.0
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
|
||||
set -o errexit
|
||||
|
||||
GLOO_VER="0.14.0"
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||||
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
|
||||
|
||||
@@ -12,8 +13,8 @@ echo '>>> Creating test namespace'
|
||||
kubectl create namespace test
|
||||
|
||||
echo ">>> Downloading Gloo CLI"
|
||||
curl -SsL https://github.com/solo-io/gloo/releases/download/v0.13.29/glooctl-linux-amd64 > glooctl
|
||||
chmod +x glooctl
|
||||
curl -SsL https://github.com/solo-io/gloo/releases/download/v${GLOO_VER}/glooctl-linux-amd64 > ${REPO_ROOT}/bin/glooctl
|
||||
chmod +x ${REPO_ROOT}/bin/glooctl
|
||||
|
||||
echo '>>> Installing load tester'
|
||||
kubectl -n test apply -f ${REPO_ROOT}/artifacts/loadtester/
|
||||
@@ -21,7 +22,7 @@ kubectl -n test rollout status deployment/flagger-loadtester
|
||||
|
||||
echo '>>> Initialising canary'
|
||||
kubectl apply -f ${REPO_ROOT}/test/e2e-workload.yaml
|
||||
./glooctl add route --path-prefix / --upstream-group-name podinfo --upstream-group-namespace test
|
||||
${REPO_ROOT}/bin/glooctl add route --path-prefix / --upstream-group-name podinfo --upstream-group-namespace test
|
||||
|
||||
cat <<EOF | kubectl apply -f -
|
||||
apiVersion: flagger.app/v1alpha3
|
||||
|
||||
+2
-1
@@ -2,12 +2,13 @@
|
||||
|
||||
set -o errexit
|
||||
|
||||
GLOO_VER="0.14.0"
|
||||
REPO_ROOT=$(git rev-parse --show-toplevel)
|
||||
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
|
||||
|
||||
echo '>>> Installing Gloo'
|
||||
helm repo add gloo https://storage.googleapis.com/solo-public-helm
|
||||
helm upgrade -i gloo gloo/gloo --version 0.13.29 \
|
||||
helm upgrade -i gloo gloo/gloo --version ${GLOO_VER} \
|
||||
--wait \
|
||||
--namespace gloo-system \
|
||||
--set gatewayProxies.gateway-proxy.service.type=NodePort
|
||||
|
||||
@@ -8,14 +8,17 @@ REPO_ROOT=$(git rev-parse --show-toplevel)
|
||||
export KUBECONFIG="$(kind get kubeconfig-path --name="kind")"
|
||||
|
||||
echo ">>> Downloading Supergloo CLI"
|
||||
curl -SsL https://github.com/solo-io/supergloo/releases/download/${SUPERGLOO_VER}/supergloo-cli-linux-amd64 > supergloo-cli
|
||||
chmod +x supergloo-cli
|
||||
curl -SsL https://github.com/solo-io/supergloo/releases/download/${SUPERGLOO_VER}/supergloo-cli-linux-amd64 > ${REPO_ROOT}/bin/supergloo-cli
|
||||
chmod +x ${REPO_ROOT}/bin/supergloo-cli
|
||||
|
||||
echo ">>> Installing Supergloo"
|
||||
./supergloo-cli init
|
||||
${REPO_ROOT}/bin/supergloo-cli init
|
||||
|
||||
echo ">>> Installing Istio ${ISTIO_VER}"
|
||||
kubectl create ns istio-system
|
||||
./supergloo-cli install istio --name test --namespace supergloo-system --auto-inject=true --installation-namespace istio-system --mtls=false --prometheus=true --version ${ISTIO_VER}
|
||||
${REPO_ROOT}/bin/supergloo-cli install istio --name test --version ${ISTIO_VER} \
|
||||
--namespace supergloo-system --installation-namespace istio-system \
|
||||
--auto-inject=true --mtls=false --prometheus=true
|
||||
|
||||
echo '>>> Waiting for Istio to be ready'
|
||||
retries=50
|
||||
|
||||
Reference in New Issue
Block a user