ci: add optional Kubernetes 1.21 job

To test a PR with Kubernetes 1.21, leave a comment in the PR like:

    /test ci/centos/mini-e2e-helm/k8s-1.21

The status of the job will be recorded in the PR, but running this job
is not required (yet).

Updates: #1963
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2021-04-19 16:05:30 +02:00 committed by mergify[bot]
parent c04a319aa9
commit b5aa0b11d7

View File

@ -2,8 +2,12 @@
- project: - project:
name: mini-e2e name: mini-e2e
k8s_version: k8s_version:
- '1.19' - '1.19':
- '1.20' only_run_on_request: false
- '1.20':
only_run_on_request: false
- '1.21':
only_run_on_request: true
jobs: jobs:
- 'mini-e2e_k8s-{k8s_version}' - 'mini-e2e_k8s-{k8s_version}'
- 'mini-e2e-helm_k8s-{k8s_version}' - 'mini-e2e-helm_k8s-{k8s_version}'
@ -41,6 +45,7 @@
status-context: 'ci/centos/mini-e2e/k8s-{k8s_version}' status-context: 'ci/centos/mini-e2e/k8s-{k8s_version}'
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
trigger-phrase: '/(re)?test ((all)|(ci/centos/mini-e2e(/k8s-{k8s_version})?))' trigger-phrase: '/(re)?test ((all)|(ci/centos/mini-e2e(/k8s-{k8s_version})?))'
only-trigger-phrase: '{only_run_on_request}'
permit-all: true permit-all: true
github-hooks: true github-hooks: true
black-list-target-branches: black-list-target-branches:
@ -81,6 +86,7 @@
status-context: 'ci/centos/mini-e2e-helm/k8s-{k8s_version}' status-context: 'ci/centos/mini-e2e-helm/k8s-{k8s_version}'
# yamllint disable-line rule:line-length # yamllint disable-line rule:line-length
trigger-phrase: '/(re)?test ((all)|(ci/centos/mini-e2e-helm(/k8s-{k8s_version})?))' trigger-phrase: '/(re)?test ((all)|(ci/centos/mini-e2e-helm(/k8s-{k8s_version})?))'
only-trigger-phrase: '{only_run_on_request}'
permit-all: true permit-all: true
github-hooks: true github-hooks: true
black-list-target-branches: black-list-target-branches: