mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
Add e2e-skipper* files for test setup It does the following things: * install Skipper ingress with Kustomize * load Flagger image onto the local cluster * install Flagger and Prometheus in the flagger-system namespace
23 lines
787 B
Bash
Executable File
23 lines
787 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
echo '>>> Loading Flagger image'
|
|
kind load docker-image test/flagger:latest
|
|
|
|
echo '>>> Installing Skipper Ingress, Flagger and Prometheus'
|
|
# use kustomize to avoid compatibility issues:
|
|
# https://github.com/kubernetes-sigs/kustomize/issues/2390
|
|
# Skipper will throw an Prometheus warning which can be ignored:
|
|
# https://github.com/weaveworks/flagger/issues/664
|
|
kustomize build ${REPO_ROOT}/test/skipper | kubectl apply -f -
|
|
|
|
kubectl rollout status deployment/skipper-ingress -n kube-system
|
|
kubectl rollout status deployment/flagger-prometheus -n flagger-system
|
|
|
|
kubectl -n flagger-system set image deployment/flagger flagger=test/flagger:latest
|
|
|
|
kubectl -n flagger-system rollout status deployment/flagger
|