refactor: удалить лишние задачи Kind из create.yml и destroy.yml
Some checks failed
Ansible Testing / lint (push) Has been cancelled
Ansible Testing / test (default) (push) Has been cancelled
Ansible Testing / test (minimal) (push) Has been cancelled
Ansible Testing / test (performance) (push) Has been cancelled
Ansible Testing / deploy-check (push) Has been cancelled

- Удалены все задачи по созданию Kind кластеров из create.yml
- Удалены все задачи по удалению Kind кластеров из destroy.yml
- Добавлены комментарии о том, что все операции с Kind выполняются через make k8s
- Теперь Kind кластеры полностью управляются через Python скрипт create_k8s_cluster.py
This commit is contained in:
Сергей Антропов
2025-10-26 08:15:44 +03:00
parent 1b6c83d941
commit 60c2623fbc
2 changed files with 4 additions and 145 deletions

View File

@@ -76,21 +76,8 @@
# Используем переменную hosts из загруженного пресета
hosts: "{{ hosts }}"
- name: Remove kind clusters
community.docker.docker_container_exec:
container: ansible-controller
command: >
bash -lc '
set -e;
for n in {{ (kind_clusters | default([]) | map(attribute="name") | list) | map('quote') | join(' ') }}; do
if kind get clusters | grep -qx "$$n"; then
echo "[kind] deleting $$n";
kind delete cluster --name "$$n" || true;
fi
done
'
when: (kind_clusters | default([])) | length > 0
ignore_errors: true
# ---------- Kind clusters удаляются через make k8s destroy ----------
# Все задачи по удалению кластеров выполняются через команду make k8s destroy
- name: Display cleanup summary
debug: