mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-18 03:30:07 -03:30
[CI] add remove node job
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
8f118fb619
commit
9143810a4d
7
tests/files/packet_almalinux8-calico-remove-node.yml
Normal file
7
tests/files/packet_almalinux8-calico-remove-node.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# Instance settings
|
||||
cloud_image: almalinux-8
|
||||
mode: ha
|
||||
|
||||
# Kubespray settings
|
||||
auto_renew_certificates: true
|
||||
@@ -109,6 +109,11 @@ if [ "${IDEMPOT_CHECK}" = "true" ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Test node removal procedure
|
||||
if [ "${REMOVE_NODE_CHECK}" = "true" ]; then
|
||||
ansible-playbook ${ANSIBLE_LOG_LEVEL} -e @${CI_TEST_SETTING} -e @${CI_TEST_REGISTRY_MIRROR} -e @${CI_TEST_VARS} ${CI_TEST_ADDITIONAL_VARS} -e skip_confirmation=yes -e node=${REMOVE_NODE_NAME} --limit "all:!fake_hosts" remove-node.yml
|
||||
fi
|
||||
|
||||
# Clean up at the end, this is to allow stage1 tests to include cleanup test
|
||||
if [ "${RESET_CHECK}" = "true" ]; then
|
||||
ansible-playbook ${ANSIBLE_LOG_LEVEL} -e @${CI_TEST_SETTING} -e @${CI_TEST_REGISTRY_MIRROR} -e @${CI_TEST_VARS} ${CI_TEST_ADDITIONAL_VARS} -e reset_confirmation=yes --limit "all:!fake_hosts" reset.yml
|
||||
|
||||
Reference in New Issue
Block a user