Skip to content

Commit a43038e

Browse files
authored
Merge pull request #780 from gmarcy/kubeinit-refactor
chore: remove more unused artifacts
2 parents b3dd750 + e9a6e67 commit a43038e

File tree

130 files changed

+633
-4920
lines changed

Some content is hidden

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

130 files changed

+633
-4920
lines changed

.github/workflows/docs_build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ jobs:
153153
154154
tasktag=task_prepare_cluster
155155
taskname=$(echo ${tasktag} | tr '_' '-')
156-
for distro in k8s kid; do
156+
for distro in k8s; do
157157
ansible-playbook-grapher -t ${tasktag} --skip-tags omit_from_grapher -e kubeinit_cluster_distro=${distro} -e kubeinit_cluster_distro_role=kubeinit_${distro} kubeinit/playbook.yml --include-role-tasks -o docs/src/static/playbook_${distro}_${tasktag} --save-dot-file
158158
sed -e ':again;$!N;$!b again; s/subgraph "Play #[12]:[^"]*"{[^}]*}//g' -e 's/"Play #3: [^"]*"/"'${taskname}'"/g' -e 's/shape=box/shape=octagon/g' -e 's/#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]/#000000/g' -e 's/ style=filled / /' docs/src/static/playbook_${distro}_${tasktag}.dot | dot -Tsvg > docs/src/static/playbook_${distro}_${tasktag}.svg
159159
cat << EOF >> docs/src/playbook_diagrams.rst
@@ -198,7 +198,7 @@ jobs:
198198
199199
tasktag=task_deploy_cluster
200200
taskname=$(echo ${tasktag} | tr '_' '-')
201-
for distro in k8s kid; do
201+
for distro in k8s; do
202202
ansible-playbook-grapher -t ${tasktag} --skip-tags omit_from_grapher -e kubeinit_cluster_distro=${distro} -e kubeinit_cluster_distro_role=kubeinit_${distro} kubeinit/playbook.yml --include-role-tasks -o docs/src/static/playbook_${distro}_${tasktag} --save-dot-file
203203
sed -e ':again;$!N;$!b again; s/subgraph "Play #[12]:[^"]*"{[^}]*}//g' -e 's/"Play #3: [^"]*"/"'${taskname}'"/g' -e 's/shape=box/shape=octagon/g' -e 's/#[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f]/#000000/g' -e 's/ style=filled / /' docs/src/static/playbook_${distro}_${tasktag}.dot | dot -Tsvg > docs/src/static/playbook_${distro}_${tasktag}.svg
204204
cat << EOF >> docs/src/playbook_diagrams.rst
@@ -241,8 +241,7 @@ jobs:
241241
242242
EOF
243243
244-
sed -e '/^juju-controller/d' \
245-
-e '/^hypervisor-04/d' \
244+
sed -e '/^hypervisor-04/d' \
246245
-e '/^\[controller_nodes\]$/ acontroller-01 target=hypervisor-01\ncontroller-02 target=hypervisor-02\ncontroller-03 target=hypervisor-03' \
247246
-e '/^\[compute_nodes\]$/ acompute-01 target=hypervisor-01\ncompute-02 target=hypervisor-02' \
248247
-e '/^service /s/ / target=hypervisor-01 /' \

ci/container_sync.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,11 @@ declare -a container_images=(
5050
"library registry 2"
5151
"library httpd 2.4"
5252
"library debian 11"
53-
"library ubuntu focal"
53+
"library debian 12"
5454
"library ubuntu jammy"
55+
"library ubuntu noble"
5556
"internetsystemsconsortium bind9 9.18"
56-
"sonatype nexus3 3.30.0"
5757
"nginxinc nginx-unprivileged latest"
58-
"flannel flannel-cni-plugin v1.1.2"
59-
"flannel flannel v0.21.4"
60-
"flannel flannel v0.21.5"
61-
"flannel flannel v0.22.0"
6258
)
6359

6460
retry() {

ci/kubeinit_ci_utils.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -339,15 +339,10 @@ def get_periodic_jobs_labels(cluster_type='all', distro='all'):
339339
"k8s-libvirt-1-1-1-h",
340340
"k8s-libvirt-1-0-1-h"]
341341

342-
kid_configs = ["kid-libvirt-3-1-1-h",
343-
"kid-libvirt-3-0-2-h",
344-
"kid-libvirt-1-1-1-h",
345-
"kid-libvirt-1-0-1-h"]
346-
347342
if re.match(r"([a-z|0-9|\.]+-[a-z]+-[1-9]-[0-9]-[1-9]-[c|h],?)+", distro):
348343
print("'kubeinit_ci_utils.py' ==> We are requesting specific job labels")
349344
req_labels = set(distro.split(","))
350-
all_labels = set(okd_configs + kid_configs + k8s_configs)
345+
all_labels = set(okd_configs + k8s_configs)
351346
if (req_labels.issubset(all_labels)):
352347
print("'kubeinit_ci_utils.py' ==> The requested labels are defined correctly")
353348
# We return the labels filtered by cluster_type, multinode or singlenode
@@ -360,15 +355,15 @@ def get_periodic_jobs_labels(cluster_type='all', distro='all'):
360355
elif distro == 'random':
361356
print("'kubeinit_ci_utils.py' ==> Returning 4 random scenarios to test")
362357
# If the distro parameter is random we return 4 random distros to test
363-
all_scenarios = okd_configs + kid_configs + k8s_configs
358+
all_scenarios = okd_configs + k8s_configs
364359
return_labels = random.sample(all_scenarios, 4)
365360
# We return the labels filtered by cluster_type, multinode or singlenode
366361
filtered_return = [lab for lab in return_labels if cluster_pattern.match(lab)]
367362
print("'kubeinit_ci_utils.py' ==> " + str(filtered_return))
368363
return filtered_return
369364
elif distro == "all":
370365
print("'kubeinit_ci_utils.py' ==> Appending all configs")
371-
return_labels = okd_configs + kid_configs + k8s_configs
366+
return_labels = okd_configs + k8s_configs
372367
# We return the labels filtered by cluster_type, multinode or singlenode
373368
filtered_return = [lab for lab in return_labels if cluster_pattern.match(lab)]
374369
print("'kubeinit_ci_utils.py' ==> " + str(filtered_return))
@@ -378,9 +373,6 @@ def get_periodic_jobs_labels(cluster_type='all', distro='all'):
378373
if 'okd' in distro and '.' not in distro:
379374
print("'kubeinit_ci_utils.py' ==> Appending OKD configs")
380375
configs = configs + okd_configs
381-
if 'kid' in distro and '.' not in distro:
382-
print("'kubeinit_ci_utils.py' ==> Appending KID configs")
383-
configs = configs + kid_configs
384376
if 'k8s' in distro and '.' not in distro:
385377
print("'kubeinit_ci_utils.py' ==> Appending K8S configs")
386378
configs = configs + k8s_configs

ci/launch_e2e.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ def valid_labels_regex(arg_value, pat=re.compile(r"^all|random|([a-z|0-9|,|\.]+)
423423
#
424424
# launch_e2e.py --job_type=pr
425425
# launch_e2e.py --job_type=pr --pr_id=154
426-
# launch_e2e.py --job_type=periodic --job_label=eks-libvirt-3-0-1-h
427-
# launch_e2e.py --job_type=periodic --job_label=eks-libvirt-3-0-1-h,cdk-libvirt-1-0-1-h
426+
# launch_e2e.py --job_type=periodic --job_label=k8s-libvirt-3-0-1-h
427+
# launch_e2e.py --job_type=periodic --job_label=k8s-libvirt-3-0-1-h,okd-libvirt-1-0-1-h
428428
# launch_e2e.py --job_type=periodic --cluster_type=singlenode --job_label=random
429429
# launch_e2e.py --job_type=periodic --cluster_type=singlenode --job_label=all
430430
# launch_e2e.py --job_type=periodic --cluster_type=singlenode --job_label=okd
@@ -469,7 +469,7 @@ def valid_labels_regex(arg_value, pat=re.compile(r"^all|random|([a-z|0-9|,|\.]+)
469469

470470
if (args.job_label is not None and not re.match(r"([a-z|0-9|\.]+-[a-z]+-[1-9]-[0-9]-[1-9]-[c|h],?)+", args.job_label) and not re.match(r"([a-z|0-9|,|\.]+)?", args.job_label) and args.job_type != 'pr'):
471471
print("'launch_e2e.py' ==> The third argument must be [periodic|pr]")
472-
print("'launch_e2e.py' ==> periodic, can be periodic|periodic=okd,eks ...")
472+
print("'launch_e2e.py' ==> periodic, can be periodic|periodic=okd,k8s ...")
473473
print("'launch_e2e.py' ==> also the periodic job can trigger a specfic label like:")
474474
print("'launch_e2e.py' ==> periodic=okd-libvirt-3-1-1-h")
475475
sys.exit()

ci/launch_e2e.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,6 @@ echo "(launch_e2e.sh) ==> Deploying the cluster ..."
232232
FAILED="0"
233233
KUBEINIT_SPEC=${KUBEINIT_SPEC//,/$'\n'}
234234

235-
# We enable having Windows compute nodes by default in the CI
236-
# for the k8s-1-1-1 spec scenario
237-
if [[ "$DISTRO" == "k8s" && "$MASTERS" == "1" && "$WORKERS" == "1" && "$HYPERVISORS" == "1" ]]; then
238-
# For enabling Windows deployments use the cluster_nodes_spec like
239-
# -e cluster_nodes_spec='[{"when_group":"compute_nodes","os":"windows"}]'
240-
CLUSTER_NODES='[{"when_group":"compute_nodes","os":"windows"}]'
241-
fi
242-
243235
# This conditional will never be true, this is kept as an example about
244236
# How to wire in extra roles and variables in a deployment
245237
if [[ "$DISTRO" == "okd" && "$MASTERS" == "1" && "$WORKERS" == "1" && "$HYPERVISORS" == "1" && "$HYPERVISORS" == "falsecondition" ]]; then

ci/render_periodic_jobs_page.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ def main():
4848

4949
if distro == 'okd':
5050
distro = "Origin Distribution of K8s"
51-
elif distro == 'kid':
52-
distro = "KubeInit distro"
5351
elif distro == 'k8s':
5452
distro = "Vanilla K8s"
5553
elif '.' in distro:

docs/src/roles/role-kubeinit_apps.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/src/roles/role-kubeinit_dnsmasq.rst

100755100644
File mode changed.

docs/src/roles/role-kubeinit_kid.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/src/roles/role-kubeinit_kubevirt.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)