mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-01 17:48:12 -03:30
Merge pull request #11559 from VannTen/cleanup/less_inventory_boilerplate
Only require minimum structure in inventory, compute the rest
This commit is contained in:
@@ -96,10 +96,3 @@ instance-2
|
||||
instance-3
|
||||
instance-4
|
||||
{% endif %}
|
||||
|
||||
[k8s_cluster:children]
|
||||
kube_node
|
||||
kube_control_plane
|
||||
calico_rr
|
||||
|
||||
[calico_rr]
|
||||
|
||||
@@ -15,6 +15,15 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Check out latest tag if testing upgrade
|
||||
if [ "${UPGRADE_TEST}" != "false" ]; then
|
||||
git fetch --all && git checkout "$KUBESPRAY_VERSION"
|
||||
# Checkout the CI vars file so it is available
|
||||
git checkout "${CI_COMMIT_SHA}" tests/files/${CI_JOB_NAME}.yml
|
||||
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_REGISTRY_MIRROR}
|
||||
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_SETTING}
|
||||
fi
|
||||
|
||||
# needed for ara not to complain
|
||||
export TZ=UTC
|
||||
|
||||
@@ -41,15 +50,6 @@ if [[ "$CI_JOB_NAME" =~ "opensuse" ]]; then
|
||||
ansible all -m raw -a 'zypper --gpg-auto-import-keys refresh'
|
||||
fi
|
||||
|
||||
# Check out latest tag if testing upgrade
|
||||
if [ "${UPGRADE_TEST}" != "false" ]; then
|
||||
git fetch --all && git checkout "$KUBESPRAY_VERSION"
|
||||
# Checkout the CI vars file so it is available
|
||||
git checkout "${CI_COMMIT_SHA}" tests/files/${CI_JOB_NAME}.yml
|
||||
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_REGISTRY_MIRROR}
|
||||
git checkout "${CI_COMMIT_SHA}" ${CI_TEST_SETTING}
|
||||
fi
|
||||
|
||||
run_playbook () {
|
||||
playbook=$1
|
||||
shift
|
||||
|
||||
Reference in New Issue
Block a user