-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (77 loc) · 2.21 KB
/
kind-e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#name: KinD e2e tests
#
#on:
# pull_request:
# branches:
# - main
# push:
# branches:
# - main
#
#defaults:
# run:
# shell: bash
#
#jobs:
# e2e-tests:
# name: e2e tests
# strategy:
# fail-fast: false
# matrix:
# k8s-version:
# - v1.27.x
# - v1.28.x
# - v1.29.x
# os:
# - ubuntu-20.04 # Ubuntu 20.04 uses cgroup v1
# - ubuntu-22.04 # Ubuntu 22.04 uses cgroup v2
# runs-on: ${{ matrix.os }}
#
# steps:
# - name: Set up Go 1.21.x
# uses: actions/setup-go@v4
# with:
# go-version: 1.21.x
#
# - uses: ko-build/setup-ko@v0.6
#
# - name: Check out code
# uses: actions/checkout@v4
#
# - name: Setup KinD
# # TODO: this is a fork to be able to use feature gates
# # TODO: change to the official chainguard-dev/actions/setup-kind@main when merged upstream
# uses: norbjd/actions/setup-kind@add-feature-gates-to-setup-kind
# with:
# k8s-version: ${{ matrix.k8s-version }}
# kind-worker-count: 1
# feature-gates: InPlacePodVerticalScaling
#
# - name: Install helm
# run: |
# curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
#
# - name: Install k8s-pod-cpu-booster
# env:
# KO_DOCKER_REPO: kind.local
# run: |
# INFORMER_IMAGE=$(ko build ./cmd/informer)
# WEBHOOK_IMAGE=$(ko build ./cmd/webhook)
#
# helm install k8s-pod-cpu-booster --namespace pod-cpu-booster --create-namespace ./charts/k8s-pod-cpu-booster \
# --set informer.image=$INFORMER_IMAGE \
# --set informer.imagePullPolicy=Never \
# --set webhook.image=$WEBHOOK_IMAGE \
# --set webhook.imagePullPolicy=Never
#
# - name: Wait for Ready
# run: |
# echo "Waiting for k8s-pod-cpu-booster items to become ready"
# kubectl wait pod --for=condition=Ready -n pod-cpu-booster -l app=pod-cpu-boost-reset
# kubectl wait pod --for=condition=Ready -n pod-cpu-booster -l app=mutating-webhook
# sleep 5 # because readiness probe is not accurate (Ready != informer is started), but sleeping is enough for now
#
# - name: Run e2e Tests
# run: |
# OS=${{ matrix.os }} ./test/e2e-kind.sh
#