Skip to content

Commit a606e0b

Browse files
Merge branch 'kubernetes-sigs:master' into feature/hubble-export-vars
2 parents 73df2da + 1da9f0d commit a606e0b

File tree

161 files changed

+512
-33177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+512
-33177
lines changed

.ansible-lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ exclude_paths:
3939
- .github
4040
- .ansible
4141
- .cache
42+
- .gitlab-ci.yml
43+
- .gitlab-ci
4244
mock_modules:
4345
- gluster.gluster.gluster_volume

.github/workflows/auto-label-os.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
issues: write
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1717

1818
- name: Parse issue form
19-
uses: stefanbuck/github-issue-parser@v3
19+
uses: stefanbuck/github-issue-parser@2ea9b35a8c584529ed00891a8f7e41dc46d0441e
2020
id: issue-parser
2121
with:
2222
template-path: .github/ISSUE_TEMPLATE/bug-report.yaml
2323

2424
- name: Set labels based on OS field
25-
uses: redhat-plumbers-in-action/advanced-issue-labeler@v3
25+
uses: redhat-plumbers-in-action/advanced-issue-labeler@39087a4b30cb98d57f25f34d617a6af8163c17d9
2626
with:
2727
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
2828
section: os

.github/workflows/upgrade-patch-versions-schedule.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
outputs:
1313
branches: ${{ steps.get-branches.outputs.data }}
1414
steps:
15-
- uses: octokit/graphql-action@v2.3.2
15+
- uses: octokit/graphql-action@8ad880e4d437783ea2ab17010324de1075228110
1616
id: get-branches
1717
with:
1818
query: |

.github/workflows/upgrade-patch-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
update-patch-versions:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1515
with:
1616
ref: ${{ inputs.branch }}
1717
- uses: actions/setup-python@v5
@@ -29,7 +29,7 @@ jobs:
2929
~/.cache/pre-commit
3030
- run: pre-commit run --all-files propagate-ansible-variables
3131
continue-on-error: true
32-
- uses: peter-evans/create-pull-request@v7
32+
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
3333
with:
3434
commit-message: Patch versions updates
3535
title: Patch versions updates - ${{ inputs.branch }}

.gitlab-ci.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ variables:
3131
ANSIBLE_VERBOSITY: 2
3232
RECOVER_CONTROL_PLANE_TEST: "false"
3333
RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:]:kube_control_plane[1:]"
34-
TERRAFORM_VERSION: 1.3.7
34+
TF_VERSION: 1.3.7
3535
PIPELINE_IMAGE: "$CI_REGISTRY_IMAGE/pipeline:${CI_PIPELINE_ID}-${CI_COMMIT_SHORT_SHA}"
3636

3737
before_script:
3838
- ./tests/scripts/rebase.sh
39-
- mkdir -p /.ssh
39+
- mkdir -p cluster-dump $ANSIBLE_INVENTORY
4040

4141
.job: &job
4242
tags:
@@ -59,18 +59,6 @@ before_script:
5959
- pre-commit # lint
6060
- vagrant-validate # lint
6161

62-
.testcases: &testcases
63-
extends: .job-moderated
64-
interruptible: true
65-
before_script:
66-
- update-alternatives --install /usr/bin/python python /usr/bin/python3 1
67-
- ./tests/scripts/rebase.sh
68-
- ./tests/scripts/testcases_prepare.sh
69-
script:
70-
- ./tests/scripts/testcases_run.sh
71-
after_script:
72-
- ./tests/scripts/testcases_cleanup.sh
73-
7462
# For failfast, at least 1 job must be defined in .gitlab-ci.yml
7563
# Premoderated with manual actions
7664
ci-not-authorized:
@@ -102,6 +90,6 @@ include:
10290
- .gitlab-ci/build.yml
10391
- .gitlab-ci/lint.yml
10492
- .gitlab-ci/terraform.yml
105-
- .gitlab-ci/packet.yml
93+
- .gitlab-ci/kubevirt.yml
10694
- .gitlab-ci/vagrant.yml
10795
- .gitlab-ci/molecule.yml

.gitlab-ci/build.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
.build-container:
2+
pipeline-image:
33
cache:
44
key: $CI_COMMIT_REF_SLUG
55
paths:
@@ -11,23 +11,19 @@
1111
name: gcr.io/kaniko-project/executor:debug
1212
entrypoint: ['']
1313
variables:
14-
TAG: $CI_COMMIT_SHORT_SHA
15-
PROJECT_DIR: $CI_PROJECT_DIR
16-
DOCKERFILE: Dockerfile
1714
GODEBUG: "http2client=0"
18-
before_script:
19-
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
15+
# TODO: remove the override
16+
# currently rebase.sh depends on bash (not available in the kaniko image)
17+
# once we have a simpler rebase (which should be easy if the target branch ref is available as variable
18+
# we'll be able to rebase here as well hopefully
19+
before_script: []
2020
script:
21+
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
2122
- /kaniko/executor --cache=true
2223
--cache-dir=image-cache
23-
--context $PROJECT_DIR
24-
--dockerfile $PROJECT_DIR/$DOCKERFILE
24+
--context $CI_PROJECT_DIR
25+
--dockerfile $CI_PROJECT_DIR/pipeline.Dockerfile
2526
--label 'git-branch'=$CI_COMMIT_REF_SLUG
2627
--label 'git-tag=$CI_COMMIT_TAG'
2728
--destination $PIPELINE_IMAGE
2829
--log-timestamp=true
29-
30-
pipeline-image:
31-
extends: .build-container
32-
variables:
33-
DOCKERFILE: pipeline.Dockerfile

.gitlab-ci/kubevirt.yml

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
---
2+
.kubevirt:
3+
extends: .job-moderated
4+
interruptible: true
5+
script:
6+
- ansible-playbook tests/cloud_playbooks/create-kubevirt.yml
7+
-c local -e @"tests/files/${TESTCASE}.yml"
8+
- ./tests/scripts/testcases_run.sh
9+
variables:
10+
ANSIBLE_TIMEOUT: "120"
11+
tags:
12+
- ffci
13+
needs:
14+
- pipeline-image
15+
- ci-not-authorized
16+
17+
# TODO: generate testcases matrixes from the files in tests/files/
18+
# this is needed to avoid the need for PR rebasing when a job was added or removed in the target branch
19+
# (currently, a removed job in the target branch breaks the tests, because the
20+
# pipeline definition is parsed by gitlab before the rebase.sh script)
21+
# CI template for PRs
22+
pr:
23+
stage: deploy-part1
24+
rules:
25+
- if: $PR_LABELS =~ /.*ci-short.*/
26+
when: manual
27+
allow_failure: true
28+
- if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
29+
when: on_success
30+
- when: manual
31+
allow_failure: true
32+
extends: .kubevirt
33+
parallel:
34+
matrix:
35+
- TESTCASE:
36+
- almalinux8-calico
37+
- almalinux9-crio
38+
- almalinux9-kube-ovn
39+
- debian11-calico-collection
40+
- debian11-macvlan
41+
- debian12-cilium
42+
- fedora39-kube-router
43+
# FIXME: this test if broken (perma-failing)
44+
- openeuler24-calico
45+
- opensuse15-6-calico
46+
- rockylinux8-calico
47+
- rockylinux9-cilium
48+
- ubuntu20-calico-all-in-one-hardening
49+
- ubuntu20-cilium-sep
50+
- ubuntu20-flannel-collection
51+
- ubuntu20-kube-router-sep
52+
- ubuntu20-kube-router-svc-proxy
53+
- ubuntu22-calico-all-in-one
54+
- ubuntu22-calico-all-in-one-upgrade
55+
- ubuntu24-calico-etcd-datastore
56+
57+
# The ubuntu20-calico-all-in-one jobs are meant as early stages to prevent running the full CI if something is horribly broken
58+
ubuntu20-calico-all-in-one:
59+
stage: deploy-part1
60+
extends: .kubevirt
61+
variables:
62+
TESTCASE: ubuntu20-calico-all-in-one
63+
rules:
64+
- if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
65+
when: on_success
66+
- when: manual
67+
allow_failure: true
68+
69+
pr_full:
70+
extends: .kubevirt
71+
stage: deploy-extended
72+
rules:
73+
- if: $PR_LABELS =~ /.*ci-full.*/
74+
when: on_success
75+
# Else run as manual
76+
- when: manual
77+
allow_failure: true
78+
parallel:
79+
matrix:
80+
- TESTCASE:
81+
- almalinux9-calico-ha-ebpf
82+
- almalinux9-calico-nodelocaldns-secondary
83+
- debian11-custom-cni
84+
- debian11-kubelet-csr-approver
85+
- debian12-custom-cni-helm
86+
- fedora39-calico-swap-selinux
87+
- fedora39-crio
88+
- ubuntu20-all-in-one-docker
89+
- ubuntu20-calico-ha-wireguard
90+
- ubuntu20-flannel-ha
91+
- ubuntu20-flannel-ha-once
92+
93+
# Need an update of the container image to use schema v2
94+
# update: quay.io/kubespray/vm-amazon-linux-2:latest
95+
manual:
96+
extends: pr_full
97+
parallel:
98+
matrix:
99+
- TESTCASE:
100+
- amazon-linux-2-all-in-one
101+
rules:
102+
- when: manual
103+
allow_failure: true
104+
105+
pr_extended:
106+
extends: .kubevirt
107+
stage: deploy-extended
108+
rules:
109+
- if: $PR_LABELS =~ /.*(ci-extended|ci-full).*/
110+
when: on_success
111+
- when: manual
112+
allow_failure: true
113+
parallel:
114+
matrix:
115+
- TESTCASE:
116+
- almalinux9-calico
117+
- almalinux9-calico-remove-node
118+
- almalinux9-docker
119+
- debian11-docker
120+
- debian12-calico
121+
- debian12-docker
122+
- opensuse15-6-docker-cilium
123+
- rockylinux9-calico
124+
- ubuntu20-calico-etcd-kubeadm
125+
- ubuntu20-flannel
126+
- ubuntu22-all-in-one-docker
127+
- ubuntu24-all-in-one-docker
128+
- ubuntu24-calico-all-in-one
129+
130+
# Enabled when PERIODIC_CI_ENABLED var is set
131+
periodic:
132+
only:
133+
variables:
134+
- $PERIODIC_CI_ENABLED
135+
allow_failure: true
136+
extends: .kubevirt
137+
parallel:
138+
matrix:
139+
- TESTCASE:
140+
- debian11-calico-upgrade
141+
- debian11-calico-upgrade-once
142+
- debian12-cilium-svc-proxy
143+
- fedora39-calico-selinux
144+
- fedora40-docker-calico
145+
- ubuntu20-calico-etcd-kubeadm-upgrade-ha
146+
- ubuntu20-calico-ha-recover
147+
- ubuntu20-calico-ha-recover-noquorum

.gitlab-ci/molecule.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
needs:
99
- pipeline-image
1010
# - ci-not-authorized
11-
before_script:
12-
- ./tests/scripts/rebase.sh
1311
script:
1412
- ./tests/scripts/molecule_run.sh
1513
after_script:

0 commit comments

Comments
 (0)