Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fallback_ips: Gather facts from reachable hosts only #11006

Closed
wants to merge 169 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
f41f1b5
fallback_ips: Gather facts from reachable hosts only
Rickkwa Mar 12, 2024
95e9ba6
Upgrade ansible-core to 2.16.4 (#10984)
VannTen Mar 14, 2024
2048dd3
Fix ansible python version range (#11009)
VannTen Mar 14, 2024
34c03a5
Show log on vagrant (#10958)
VannTen Mar 14, 2024
8a394a0
Cleanup unused CI tooling (#11014)
VannTen Mar 15, 2024
cde9212
spelling: scrapper -> scraper (#11015)
garymm Mar 15, 2024
7306b87
fix: config hostname as string type in kubeadmConf rendering (#10997)
ErikJiang Mar 22, 2024
90f8884
Add kubelet_cpu_manager_policy_options (#11023)
derselbst Mar 22, 2024
0e58515
Make proxy protocol in upcloud LB configurable (#10971)
davidumea Mar 22, 2024
ae6c3af
make kube-vip LeaderElection variables configurable (#11021)
KubeKyrie Mar 25, 2024
1676281
Refactor bootstrap-os (#10983)
VannTen Mar 27, 2024
1130a5a
kubespray-defaults: regenerate checksums and bump various versions (#…
MrFreezeex Mar 27, 2024
656c955
[kubernetes] Add hashes for kubernetes 1.29.3, 1.28.8, 1.27.12 (#11035)
mzaian Mar 27, 2024
cb88a80
Change hard-coded URLs to use variables (#11031)
itayporezky Mar 28, 2024
4eb6fa5
Cleanup of kubernetes/preinstall (#11010)
VannTen Mar 28, 2024
86e07c1
configure crio to use kube reserved cgroups (#11028)
pedro-peter Apr 1, 2024
3963b6d
[etcd] make etcd 3.5.12 default
mzaian Mar 27, 2024
b2f317f
revert crictl version (#11042)
ErikJiang Apr 2, 2024
64fe508
Remove access to cluster from anonymous users (#11016)
nicolas-goudry Apr 3, 2024
02f2636
Fix calico host local ipam (#11022)
robertvolkmann Apr 3, 2024
855d1dd
force update helm repo if exists on host (#11043)
LuckySB Apr 9, 2024
21f369d
Document "Remove access to cluster from anonymous users" (#11068)
sathieu Apr 9, 2024
aa04509
change debian8 network manage service from networking to systemd-netw…
KubeKyrie Apr 9, 2024
08f3a79
Promote nodelocaldns daemonset to system-node-critical (#11056)
sathieu Apr 10, 2024
f486cff
Update kubelet-csr-approver to v1.1.0 (#11070)
bmelbourne Apr 11, 2024
a739c1e
Update Snapshot controller to v7.0.2 (#11041)
jess-sol Apr 11, 2024
3dd6aa7
Update kubelet systemd service default allowed IP addresses for clust…
bmelbourne Apr 11, 2024
c0e1694
fix kubespray-defaults: Check for boostrap-os FQCN (#11073)
KubeKyrie Apr 15, 2024
134bce8
fix reset/main.yml lsattr command error when kubelet has symbolic lin…
KubeKyrie Apr 15, 2024
6340c86
fix python regex matching problem when finding docker packages (#11075)
KubeKyrie Apr 15, 2024
5cb3d8c
Remove the archived debian apt repository (#11088)
yankay Apr 16, 2024
7d60f30
bump skopeo version and checksum (#11044)
Jainbrt Apr 16, 2024
8871917
set default containerd_version to v1.7.15 and add checksums (#11083)
Payback159 Apr 17, 2024
4417584
Fixed joined_control_planes when ansible_hostvars references a variab…
NahisWayard Apr 19, 2024
57cd086
feat(calico): add support filters on bgppeers per node definition (#1…
MatthieuFin Apr 22, 2024
3a73a8a
fix: 🐛 calico-cni-plugin missing RBAC (#11077)
MatthieuFin Apr 22, 2024
d11ff3f
[containerd/tracing]: add distributed tracing config flags (#11103)
ugur99 Apr 23, 2024
d655baa
feat: Add support for cilium 1.15 and updated cilium to v1.15.4 (#11106)
deveshk0 Apr 24, 2024
8e6c7f1
Enclose the cpu type with quotation marks in kubelet-config.v1beta1 (…
0ekk Apr 25, 2024
04e62cc
Feat: dependabot initial config (#11084)
tico88612 Apr 25, 2024
cb4d370
ntp: add config to filter and set ntp interfaces (#11066)
Pavan-Gunda Apr 25, 2024
15256e7
Revert "Only download kubeadm images where needed (#10899)" (#11105)
VannTen Apr 29, 2024
123c4cf
containerd: allow to configure fallback server (#10988)
sathieu Apr 29, 2024
dae1ff7
fix: updating the calico-crds (#11089)
RaSerge Apr 30, 2024
a50294b
preinstall: Move ipvs packages into defaults
VannTen Mar 4, 2024
b763dd9
Don't special case openssl for tumbleweed
VannTen Apr 8, 2024
6f6f752
Add a JSON schema describing the packages install structure
VannTen Apr 25, 2024
4e48f7a
Filter packages installation by OS and by group
VannTen Apr 5, 2024
6a862f7
Convert OS specific packages to new format
VannTen Apr 8, 2024
7a89631
Convert common packages to use the new tooling
VannTen Apr 8, 2024
71857f7
Add `enabled` to pkgs to handle ipvs
VannTen Apr 29, 2024
77cc749
Bump tox from 4.11.3 to 4.15.0 (#11133)
dependabot[bot] Apr 30, 2024
0be1e08
Add Calico v3.27.3 and make it default (#11141)
pomland-94 Apr 30, 2024
7d0e887
Bump jinja2 from 3.1.2 to 3.1.3 (#11119)
dependabot[bot] Apr 30, 2024
ad95947
Bump molecule-plugins[vagrant] from 23.5.0 to 23.5.3 (#11120)
dependabot[bot] Apr 30, 2024
688a0c7
Bump tzdata from 2023.3 to 2024.1 (#11121)
dependabot[bot] Apr 30, 2024
41756f1
ingress-nginx: added ability to enable opentelemetry nginx module (#1…
dkhachyan Apr 30, 2024
6ca9714
Add additional checking for calico rr cluster_id (#11112)
0ekk Apr 30, 2024
5fe0054
[containerd] add hashes for versions '1.6.30-31', 'v1.7.16' and make …
mzaian Apr 30, 2024
74405ce
Bump netaddr from 0.9.0 to 1.2.1 (#11148)
dependabot[bot] May 2, 2024
4ad10df
Update k8s-net-calico.yml (#11113)
ehsan310 May 3, 2024
8238b47
Fixes additional disks with Virtualbox for Vagrant (#11091)
kri5 May 3, 2024
38d5f47
[kubernetes] Add hashes for kubernetes 1.29.4, 1.28.9, 1.27.13 (#11108)
mzaian May 3, 2024
e4de158
Add calico v3.27.3 (#11059)
danielfrg May 3, 2024
0ec3a05
Merge stops and removes systemd services tasks in reset playbook (#10…
kimsehwan96 May 3, 2024
6f4ab13
Add jsonschema to python requirement packages (#11154)
Ladicle May 3, 2024
dbc0ede
Fix CentOS typo (#11161)
VannTen May 6, 2024
26382db
Use official rockylinux vagrant boxes + add version 9 (#11160)
VannTen May 6, 2024
7bb4092
fix: 🐛 patch calico node to avoid vxlan tunnel drop (#11097)
MatthieuFin May 6, 2024
b299f61
[metallb] Add variable for the metallb namespace (#11136)
oik741 May 6, 2024
cc245e6
Bump ansible from 9.3.0 to 9.5.1 (#11157)
dependabot[bot] May 6, 2024
87657a9
Update external huawei cloud controller to 0.26.8 (#11172)
dibi-codes May 8, 2024
1d0a09f
Bump ruamel-yaml from 0.18.5 to 0.18.6 (#11147)
dependabot[bot] May 8, 2024
89ff14f
Bump jinja2 from 3.1.3 to 3.1.4 (#11166)
dependabot[bot] May 8, 2024
9547301
Fixed some urls in offline.yml file that wasn't yml formatted (#11127)
GmrezaH May 8, 2024
8bc3642
Fix amazon linux bootstrap (#11139)
VannTen May 8, 2024
c59e9ca
Bump ansible-lint from 6.22.2 to 24.2.3 (#11151)
dependabot[bot] May 8, 2024
5a81649
Bump openstack-cloud-controller-manager from 1.25.3 to 1.28.2 (#11174)
tico88612 May 8, 2024
4cf3ed9
feat: Adding a check which determines if cgroups are enabled on a nod…
franznemeth May 9, 2024
c516d03
add-ubuntu-2404-image (#11167)
yankay May 9, 2024
bfc152e
Enable opensuse in CI (#11159)
VannTen May 10, 2024
1e300d7
Avoid potential loop_var shadowing (#11162)
VannTen May 13, 2024
5899136
[etcd/tracing]: fix etcd sampling rate flag (#11175)
ugur99 May 13, 2024
5d48966
CI: Factorize ansible-playbook flags (#11173)
VannTen May 13, 2024
e3145c0
Bump pytest-testinfra from 9.0.0 to 10.1.0 (#11149)
dependabot[bot] May 13, 2024
b5e8b78
Bump molecule from 6.0.2 to 24.2.1 (#11150)
dependabot[bot] May 13, 2024
55d2bbb
Update recover-control-plane.md (#11155)
user81230 May 13, 2024
1f9bf31
Revert OCCM standard dnsPolicy to ClusterFirst and make dnsPolicy con…
Payback159 May 13, 2024
5a3c1d3
fix-container-selinux-amzn-linux (#11182)
yankay May 13, 2024
9fabe18
Fix: sample inventory local path provisioner image repo (#11180)
tico88612 May 13, 2024
997d1b7
Bump markupsafe from 2.1.3 to 2.1.5 (#11176)
dependabot[bot] May 13, 2024
4e02645
Bump yamllint from 1.32.0 to 1.35.1 (#11177)
dependabot[bot] May 13, 2024
0a55767
Revert "support CoreDNS use host network and config dns port (#10617)…
VannTen May 13, 2024
fb2ee25
[ingress-nginx] upgrade to 1.10.1 (#11184)
mzaian May 14, 2024
69d1575
Add the official vagrant boxes for debian 11/12 (#11135)
VannTen May 14, 2024
8e93c01
Don't force python interpreter on ubuntu (#11183)
VannTen May 14, 2024
25dc013
Change a task name in preinstall/0080-system-configurations.yml (#11171)
kimsehwan96 May 14, 2024
891eb74
change dependbot to interval weekly (#11189)
yankay May 14, 2024
b09b49b
rockylinux vagrant boxes only boot in UEFI mode (#11192)
VannTen May 14, 2024
477a5fe
[argocd] update argocd to v2.11.0 (#11193)
mzaian May 15, 2024
bc1085c
Bump cryptography from 41.0.4 to 42.0.7 (#11187)
dependabot[bot] May 15, 2024
d8d1850
Bump ara[server] from 1.7.0 to 1.7.1 (#11178)
dependabot[bot] May 15, 2024
232f444
[kubernetes] Add hashes for kubernetes 1.29.5, 1.28.10, 1.27.14
mzaian May 15, 2024
7f0b927
Bump pbr from 5.11.1 to 6.0.0 (#11188)
dependabot[bot] May 16, 2024
923e912
fix: Change the position of the containerd_extra_args parameter to ma…
qcu266 May 16, 2024
5fc7953
Bump docker version 26.1 (#11198)
tico88612 May 16, 2024
06d72f3
bump docker version of kylin and uos (#11203)
ErikJiang May 17, 2024
7568b3a
Bump scheduler plugins version (#11205)
0ekk May 17, 2024
c302595
bump docker version for openeuler linux (#11206)
ErikJiang May 17, 2024
cf78376
crio container runtime crio_registries path fix (#11030)
pedro-peter May 17, 2024
f2f43f6
modify doc structure and update existing doc-links as preparation for…
Payback159 May 15, 2024
aa29f18
add auto generate documentation sidebar script, introduce script as p…
Payback159 May 16, 2024
f85c9c1
add gen_docs_sidebar.sh result, mark docs/_sidebar.md as a generated …
Payback159 May 16, 2024
86ee338
CI: add ubuntu 24.04 support (#11132)
tico88612 May 18, 2024
2cef1c3
Docs: fix README.md flannel link (#11208)
tico88612 May 19, 2024
ea4a86c
gen_docs_sidebar: redirect output to sidebar.md as part of the script
VannTen May 19, 2024
0382877
Check that PRs have correctly ran the sidebar gen
VannTen May 19, 2024
f464d3c
sidebar_gen: force C locale
VannTen May 19, 2024
8eb94fe
Bump ansible-lint from 24.2.3 to 24.5.0
dependabot[bot] May 20, 2024
90722f3
Update kube-vip to v0.8.0
jisnardo May 2, 2024
6f853fe
Update kube-vip manifests to v0.8.0
jisnardo May 2, 2024
3f094a4
Update kube-vip manifests to v0.8.0
jisnardo May 2, 2024
9bc51bb
Update kube-vip manifests to v0.8.0
jisnardo May 7, 2024
3640e98
Update 'KUBESPRAY_VERSION and kube_version_min_required', cleanup old…
mzaian May 21, 2024
b7515fc
Docs: update ubuntu support version & docker version (#11231)
tico88612 May 27, 2024
f806aaa
Bump ansible from 9.5.1 to 9.6.0
dependabot[bot] May 27, 2024
2db34cd
Use alternate self-sufficient shellcheck precommit
VannTen May 21, 2024
190bacb
Switch to upstream ansible-lint pre-commit hook
VannTen May 21, 2024
858fb3d
pre-commit: fix hooks dependencies
VannTen May 21, 2024
ea1df1a
Fix ci-matrix pre-commit hook
VannTen May 21, 2024
614056b
pre-commit: apply autofixes hooks and fix the rest manually
VannTen May 21, 2024
b9cdeed
Convert check_typo to pre-commit + use maintained version
VannTen May 22, 2024
1bb6dc5
collection-build-install convert to pre-commit
VannTen May 22, 2024
c54abd7
Run pre-commit hooks in dynamic pipeline
VannTen May 22, 2024
ee9842d
Remove gitlab-ci job done in pre-commit
VannTen May 22, 2024
a4fadcd
pre-commit: adjust mardownlint default, md fixes
VannTen May 28, 2024
3f704d5
Update pre-commit hooks
VannTen May 28, 2024
d28121e
owners: move ant31 from emeritus to approvers (#11247)
ant31 May 30, 2024
fa19dd9
Allow empty kube_node group (#11248)
VannTen May 30, 2024
4dd2215
collection support: use manifest instead of excludes
VannTen May 28, 2024
f2d3afe
Add 'system-packages' tag to control installing packages from OS repo…
hedayat May 30, 2024
1e876af
fix(bootstrap-os): do not install pkgs requirements on flatcar (#11224)
spnngl May 30, 2024
7e49423
Bump pytest-testinfra from 10.1.0 to 10.1.1
dependabot[bot] May 30, 2024
388d577
fix Hetzner group names (#11232)
jmaccabee13 May 31, 2024
40358da
CI require a 'lgtm' or 'ok-to-test' labels to pass (#11251)
ant31 May 31, 2024
f03963a
fix auto bump PR is blocked by label (#11256)
yankay May 31, 2024
3f780b4
Removed unnecessary python modules (#11199)
itayporezky May 31, 2024
a09746f
make sure peers is defined. (#11259)
ehsan310 Jun 4, 2024
71b9170
Pipeline image: add qemu-utils (#11281)
ant31 Jun 10, 2024
f77aa4c
CI: switch to unprivileged Kaniko to build pipeline images (#11292)
ant31 Jun 11, 2024
f1fcd99
Feat: upgrade cert-manager from 1.13.2 to 1.13.6 (#11279)
tico88612 Jun 18, 2024
586dc7f
Add options to control images pulling of kubelet (#11094)
0ekk Jun 21, 2024
cb816d4
fix openstack cleanup (#11299)
yankay Jun 21, 2024
986db11
add cilium_hubble_event_buffer_capacity & cilium_hubble_event_queue_s…
pedro-peter Jun 24, 2024
f0e505d
add step for k8s upgrade on release process (#11321)
yankay Jun 24, 2024
73f363e
update docker cli version for ubuntu (#11291)
ErikJiang Jun 24, 2024
196fad5
Fix broken links in the cilium doc (#11318)
qlijin Jun 25, 2024
43e9b3e
Update Vagrantfile: fix path for vagrant.md (#11306)
ch1seL Jun 25, 2024
6c50b61
fix-ci-packet_centos7-calico-ha-once-localhost (#11315)
yankay Jun 25, 2024
b4052c4
fix task Set label to node (#11307)
DANic-git Jun 25, 2024
be9e5b4
upcloud: v5.6.0 and better server groups (#11311)
robinAwallace Jun 26, 2024
4d85413
Upgrade upcloud csi driver to v1.1.0 and add snapshot features (#11303)
Elias-elastisys Jun 26, 2024
71a9a45
Bump docker_containerd to 1.6.32 (#11293)
0ekk Jun 26, 2024
e8cfbc9
Support disable unattended-upgrades for Linux kernel and all packages…
0ekk Jun 26, 2024
4348801
dependencies for kubelet.service (#11297)
ledroide Jun 26, 2024
b6538b5
add ingress controller admission svc (#11309)
mochizuki875 Jun 26, 2024
8d7572c
add the ability to configure extra args to the different cinder-csi-p…
Payback159 Jun 26, 2024
0c045bb
Bump CNI weave 2.8.1 to 2.8.7 (community version) (#11228)
tico88612 Jun 26, 2024
499b395
Switch back pre-commit hook misspell to upstream (#11280)
VannTen Jun 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ exclude_paths:
# Generated files
- tests/files/custom_cni/cilium.yaml
- venv
- .github
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/_sidebar.md linguist-generated=true
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"
labels:
- dependencies
- release-note-none
33 changes: 24 additions & 9 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
stages:
- build
- unit-tests
- deploy-part1
- moderator
- deploy-part1
- deploy-part2
- deploy-part3
- deploy-special

variables:
KUBESPRAY_VERSION: v2.24.1
KUBESPRAY_VERSION: v2.25.0
FAILFASTCI_NAMESPACE: 'kargo-ci'
GITLAB_REPOSITORY: 'kargo-ci/kubernetes-sigs-kubespray'
ANSIBLE_FORCE_COLOR: "true"
Expand Down Expand Up @@ -65,19 +65,34 @@ before_script:

# For failfast, at least 1 job must be defined in .gitlab-ci.yml
# Premoderated with manual actions
ci-authorized:
extends: .job
ci-not-authorized:
stage: moderator
before_script: []
after_script: []
rules:
# LGTM or ok-to-test labels
- if: $PR_LABELS =~ /.*,(lgtm|approved|ok-to-test).*|^(lgtm|approved|ok-to-test).*/i
variables:
CI_OK_TO_TEST: '0'
when: always
- if: $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "trigger"
variables:
CI_OK_TO_TEST: '0'
- if: $CI_COMMIT_BRANCH == "master"
variables:
CI_OK_TO_TEST: '0'
- when: always
variables:
CI_OK_TO_TEST: '1'
script:
- /bin/sh scripts/premoderator.sh
except: ['triggers', 'master']
# Disable ci moderator
only: []
- exit $CI_OK_TO_TEST
tags:
- light


include:
- .gitlab-ci/build.yml
- .gitlab-ci/lint.yml
- .gitlab-ci/shellcheck.yml
- .gitlab-ci/terraform.yml
- .gitlab-ci/packet.yml
- .gitlab-ci/vagrant.yml
Expand Down
58 changes: 25 additions & 33 deletions .gitlab-ci/build.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
---
.build:
.build-container:
cache:
key: $CI_COMMIT_REF_SLUG
paths:
- image-cache
tags:
- packet
stage: build
image:
name: moby/buildkit:rootless
entrypoint: [""]
name: gcr.io/kaniko-project/executor:debug
entrypoint: ['']
variables:
BUILDKITD_FLAGS: --oci-worker-no-process-sandbox
TAG: $CI_COMMIT_SHORT_SHA
PROJECT_DIR: $CI_PROJECT_DIR
DOCKERFILE: Dockerfile
GODEBUG: "http2client=0"
before_script:
- mkdir ~/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > ~/.docker/config.json

pipeline image:
extends: .build
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
script:
- |
buildctl-daemonless.sh build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--opt filename=./pipeline.Dockerfile \
--output type=image,name=$PIPELINE_IMAGE,push=true \
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/pipeline:cache
rules:
- if: '$CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH'
- /kaniko/executor --cache=true
--cache-dir=image-cache
--context $PROJECT_DIR
--dockerfile $PROJECT_DIR/$DOCKERFILE
--label 'git-branch'=$CI_COMMIT_REF_SLUG
--label 'git-tag=$CI_COMMIT_TAG'
--destination $PIPELINE_IMAGE

pipeline image and build cache:
extends: .build
script:
- |
buildctl-daemonless.sh build \
--frontend=dockerfile.v0 \
--local context=. \
--local dockerfile=. \
--opt filename=./pipeline.Dockerfile \
--output type=image,name=$PIPELINE_IMAGE,push=true \
--import-cache type=registry,ref=$CI_REGISTRY_IMAGE/pipeline:cache \
--export-cache type=registry,ref=$CI_REGISTRY_IMAGE/pipeline:cache,mode=max
rules:
- if: '$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH'
pipeline-image:
extends: .build-container
variables:
DOCKERFILE: pipeline.Dockerfile
120 changes: 21 additions & 99 deletions .gitlab-ci/lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
---
yamllint:
extends: .job
stage: unit-tests
tags: [light]
variables:
LANG: C.UTF-8
script:
- yamllint --strict .
except: ['triggers', 'master']
generate-pre-commit:
image: 'mikefarah/yq@sha256:bcb889a1f9bdb0613c8a054542d02360c2b1b35521041be3e1bd8fbd0534d411'
stage: build
before_script: []
script:
- >
yq -r < .pre-commit-config.yaml '.repos[].hooks[].id' |
sed 's/^/ - /' |
cat .gitlab-ci/pre-commit-dynamic-stub.yml - > pre-commit-generated.yml
artifacts:
paths:
- pre-commit-generated.yml

run-pre-commit:
stage: unit-tests
trigger:
include:
- artifact: pre-commit-generated.yml
job: generate-pre-commit
strategy: depend

vagrant-validate:
extends: .job
Expand All @@ -19,100 +30,11 @@ vagrant-validate:
- ./tests/scripts/vagrant-validate.sh
except: ['triggers', 'master']

ansible-lint:
extends: .job
stage: unit-tests
tags: [light]
script:
- ansible-lint -v
except: ['triggers', 'master']

jinja-syntax-check:
extends: .job
stage: unit-tests
tags: [light]
script:
- "find -name '*.j2' -exec tests/scripts/check-templates.py {} +"
except: ['triggers', 'master']

syntax-check:
extends: .job
stage: unit-tests
tags: [light]
variables:
ANSIBLE_INVENTORY: inventory/local-tests.cfg
ANSIBLE_REMOTE_USER: root
ANSIBLE_BECOME: "true"
ANSIBLE_BECOME_USER: root
ANSIBLE_VERBOSITY: "3"
script:
- ansible-playbook --syntax-check cluster.yml
- ansible-playbook --syntax-check playbooks/cluster.yml
- ansible-playbook --syntax-check upgrade-cluster.yml
- ansible-playbook --syntax-check playbooks/upgrade_cluster.yml
- ansible-playbook --syntax-check reset.yml
- ansible-playbook --syntax-check playbooks/reset.yml
- ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml
except: ['triggers', 'master']

collection-build-install-sanity-check:
extends: .job
stage: unit-tests
tags: [light]
variables:
ANSIBLE_COLLECTIONS_PATH: "./ansible_collections"
script:
- ansible-galaxy collection build
- ansible-galaxy collection install kubernetes_sigs-kubespray-$(grep "^version:" galaxy.yml | awk '{print $2}').tar.gz
- ansible-galaxy collection list $(egrep -i '(name:\s+|namespace:\s+)' galaxy.yml | awk '{print $2}' | tr '\n' '.' | sed 's|\.$||g') | grep "^kubernetes_sigs.kubespray"
- test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/cluster.yml
- test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/reset.yml
except: ['triggers', 'master']

tox-inventory-builder:
stage: unit-tests
tags: [light]
extends: .job
before_script:
- ./tests/scripts/rebase.sh
script:
- pip3 install tox
- cd contrib/inventory_builder && tox
except: ['triggers', 'master']

markdownlint:
stage: unit-tests
tags: [light]
image: node
before_script:
- npm install -g [email protected]
script:
- markdownlint $(find . -name '*.md' | grep -vF './.git') --ignore docs/_sidebar.md --ignore contrib/dind/README.md

check-readme-versions:
stage: unit-tests
tags: [light]
image: python:3
script:
- tests/scripts/check_readme_versions.sh

# TODO: convert to pre-commit hook
check-galaxy-version:
stage: unit-tests
tags: [light]
image: python:3
script:
- tests/scripts/check_galaxy_version.sh

check-typo:
stage: unit-tests
tags: [light]
image: python:3
script:
- tests/scripts/check_typo.sh

ci-matrix:
stage: unit-tests
tags: [light]
image: python:3
script:
- tests/scripts/md-table/test.sh
27 changes: 19 additions & 8 deletions .gitlab-ci/packet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,17 @@ packet_ubuntu22-calico-all-in-one:
extends: .packet_pr
when: on_success

packet_ubuntu22-calico-etcd-datastore:
packet_ubuntu24-all-in-one-docker:
stage: deploy-part2
extends: .packet_pr
when: on_success

packet_ubuntu24-calico-all-in-one:
stage: deploy-part2
extends: .packet_pr
when: on_success

packet_ubuntu24-calico-etcd-datastore:
stage: deploy-part2
extends: .packet_pr
when: on_success
Expand Down Expand Up @@ -139,8 +149,9 @@ packet_centos7-calico-ha-once-localhost:
variables:
# This will instruct Docker not to start over TLS.
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: "tcp://docker:2375"
services:
- docker:19.03.9-dind
- docker:26.1.4-dind

packet_almalinux8-kube-ovn:
stage: deploy-part2
Expand Down Expand Up @@ -174,6 +185,11 @@ packet_almalinux8-docker:
extends: .packet_pr
when: on_success

packet_amazon-linux-2-all-in-one:
stage: deploy-part2
extends: .packet_pr
when: on_success

packet_fedora38-docker-weave:
stage: deploy-part2
extends: .packet_pr
Expand All @@ -183,7 +199,7 @@ packet_fedora38-docker-weave:
packet_opensuse-docker-cilium:
stage: deploy-part2
extends: .packet_pr
when: manual
when: on_success

# ### MANUAL JOBS

Expand Down Expand Up @@ -240,11 +256,6 @@ packet_fedora37-calico-swap-selinux:
extends: .packet_pr
when: manual

packet_amazon-linux-2-all-in-one:
stage: deploy-part2
extends: .packet_pr
when: manual

packet_almalinux8-calico-nodelocaldns-secondary:
stage: deploy-part2
extends: .packet_pr
Expand Down
17 changes: 17 additions & 0 deletions .gitlab-ci/pre-commit-dynamic-stub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# stub pipeline for dynamic generation
pre-commit:
tags:
- light
image: 'ghcr.io/pre-commit-ci/runner-image@sha256:aaf2c7b38b22286f2d381c11673bec571c28f61dd086d11b43a1c9444a813cef'
variables:
PRE_COMMIT_HOME: /pre-commit-cache
script:
- pre-commit run -a $HOOK_ID
cache:
key: pre-commit-$HOOK_ID
paths:
- /pre-commit-cache
parallel:
matrix:
- HOOK_ID:
16 changes: 0 additions & 16 deletions .gitlab-ci/shellcheck.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .markdownlint.yaml

This file was deleted.

4 changes: 4 additions & 0 deletions .md_style.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
all
exclude_rule 'MD013'
exclude_rule 'MD029'
rule 'MD007', :indent => 2
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
style "#{File.dirname(__FILE__)}/.md_style.rb"
Loading