-
Notifications
You must be signed in to change notification settings - Fork 729
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sanskar Jaiswal <[email protected]>
- Loading branch information
Showing
6 changed files
with
394 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
- gloo | ||
- skipper | ||
- kubernetes | ||
- gatewayapi | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
|
||
CONTOUR_VER="release-1.20" | ||
GATEWAY_API_VER="v1alpha2" | ||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
KUSTOMIZE_VERSION=4.5.2 | ||
OS=$(uname -s) | ||
ARCH=$(arch) | ||
|
||
mkdir -p ${REPO_ROOT}/bin | ||
|
||
echo ">>> Installing Contour ${CONTOUR_VER}, Gateway API components ${GATEWAY_API_VER}" | ||
cd ${REPO_ROOT}/bin && \ | ||
kubectl apply -f https://raw.githubusercontent.com/projectcontour/contour/${CONTOUR_VER}/examples/render/contour-gateway.yaml | ||
|
||
kubectl -n projectcontour rollout status deployment/contour | ||
kubectl -n projectcontour get all | ||
|
||
echo '>>> Installing Kustomize' | ||
cd ${REPO_ROOT}/bin && kustomize_url=https:/kubernetes-sigs/kustomize/releases/download && \ | ||
curl -sL ${kustomize_url}/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_${OS}_${ARCH}.tar.gz | \ | ||
tar xz | ||
|
||
echo '>>> Installing Flagger' | ||
${REPO_ROOT}/bin/kustomize build ${REPO_ROOT}/test/gatewayapi | kubectl apply -f - | ||
|
||
kubectl -n projectcontour set image deployment/flagger flagger=test/flagger:latest | ||
kubectl -n projectcontour rollout status deployment/flagger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace: projectcontour | ||
bases: | ||
- ../../kustomize/base/flagger/ | ||
- ../../kustomize/base/prometheus/ | ||
patchesStrategicMerge: | ||
- patch.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: flagger | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: flagger | ||
image: aryan9600/flagger | ||
args: | ||
- -log-level=debug | ||
- -include-label-prefix=app.kubernetes.io | ||
- -mesh-provider=gatewayapi | ||
- -metrics-server=http://flagger-prometheus:9090 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -o errexit | ||
|
||
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
DIR="$(cd "$(dirname "$0")" && pwd)" | ||
|
||
"$DIR"/install.sh | ||
|
||
"$REPO_ROOT"/test/workloads/init.sh | ||
"$DIR"/run-canary.sh |
Oops, something went wrong.