1
0
mirror of https://github.com/kubernetes-sigs/descheduler.git synced 2026-01-26 05:14:13 +01:00
This commit is contained in:
Lucas Severo Alves
2022-08-08 21:11:20 +02:00
parent d109ea64d0
commit e9c23fe42f
5 changed files with 40 additions and 10 deletions

1
.github/ci/ct.yaml vendored
View File

@@ -2,4 +2,5 @@ chart-dirs:
- charts
helm-extra-args: "--timeout=5m"
check-version-increment: false
helm-extra-set-args: "--set=kind=Deployment --set=podSecurityPolicy.create=false"
target-branch: master

View File

@@ -7,9 +7,11 @@ on:
- release-*
paths:
- 'charts/**'
- '.github/workflows/helm.yaml'
pull_request:
paths:
- 'charts/**'
- '.github/workflows/helm.yaml'
jobs:
lint-and-test:
@@ -23,7 +25,7 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v2.1
with:
version: v3.4.2
version: v3.9.2
- uses: actions/setup-python@v3.1.2
with:
@@ -31,6 +33,8 @@ jobs:
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.2.1
with:
version: v3.7.0
- name: Run chart-testing (list-changed)
id: list-changed
@@ -39,6 +43,22 @@ jobs:
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint --config=.github/ci/ct.yaml --validate-maintainers=false
# Need a multi node cluster so descheduler runs until evictions
- name: Create multi node Kind cluster
run: |
kind create cluster --name kind --config ./hack/kind_config.yaml --wait 2m
# helm-extra-set-args only available after ct 3.6.0
- name: Run chart-testing (install)
run: ct install --config=.github/ci/ct.yaml
- name: E2E after chart install
env:
KUBERNETES_VERSION: "v1.24.0"
KIND_E2E: true
SKIP_INSTALL: true
run: make test-e2e