mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-24 22:46:06 -03:30
Remove tag 'master' (#12228)
* Remove tag master
Following it's deprecation in 4b324cb0f (Rename master to control plane
- non-breaking changes only (#11394), 2024-09-06)
* Add fail fast path when using removed tags
- Used for the master tag, but this could be used for other things in
the future
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
- kube_network_plugin != "calico" or calico_datastore == "etcd"
|
||||
- ('k8s_cluster' in group_names)
|
||||
tags:
|
||||
- master # master tag is deprecated and replaced by control-plane
|
||||
- control-plane
|
||||
- network
|
||||
|
||||
@@ -51,7 +50,6 @@
|
||||
- kube_network_plugin != "calico" or calico_datastore == "etcd"
|
||||
- ('k8s_cluster' in group_names)
|
||||
tags:
|
||||
- master # master tag is deprecated and replaced by control-plane
|
||||
- control-plane
|
||||
- network
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
- bootstrap_os
|
||||
- apps
|
||||
- network
|
||||
- master # master tag is deprecated and replaced by control-plane
|
||||
- control-plane
|
||||
- node
|
||||
with_items:
|
||||
@@ -38,7 +37,6 @@
|
||||
- bootstrap_os
|
||||
- apps
|
||||
- network
|
||||
- master # master tag is deprecated and replaced by control-plane
|
||||
- control-plane
|
||||
- node
|
||||
with_items:
|
||||
|
||||
@@ -1,7 +1,19 @@
|
||||
---
|
||||
# This should only contains check of the inventory itself, nothing depending on facts
|
||||
# This should only contains check of:
|
||||
# - the inventory
|
||||
# - extra variables
|
||||
# - ansible commandline
|
||||
# -> nothing depending on facts or similar cluster state
|
||||
# Checks depending on current state (of the nodes or the cluster)
|
||||
# should be in roles/kubernetes/preinstall/tasks/0040-verify-settings.yml
|
||||
- name: Stop if removed tags are used
|
||||
assert:
|
||||
msg: The tag 'master' is removed. Use 'control-plane' instead
|
||||
that:
|
||||
- ('master' not in ansible_run_tags)
|
||||
- ('master' not in ansible_skip_tags)
|
||||
# TODO: Remove checks after next release
|
||||
|
||||
- name: Stop if kube_control_plane group is empty
|
||||
assert:
|
||||
that: groups.get( 'kube_control_plane' )
|
||||
|
||||
Reference in New Issue
Block a user