mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-10 04:08:02 +03:00
Calico upgrade path validation and old version cleanup (#6733)
* calico: add constant calico_min_version_required and verify current deployed version against it. * calico: remove upgrade support with data migration The tool was used pre v3.0.0 and is no longer needed. * calico: remove old version support from tasks * calico: remove old ver support from policy ctrl * calico: remove old ver support from node * canal: remove old ver support * remove unused calicoctl download checksums calico_min_version_required is the oldest version that can be installed Older versions can be removed.
This commit is contained in:
@@ -72,20 +72,14 @@ rules:
|
||||
- globalbgpconfigs
|
||||
- bgpconfigurations
|
||||
- ippools
|
||||
{% if calico_version is version('v3.6.0', '>=') %}
|
||||
- ipamblocks
|
||||
{% endif %}
|
||||
- globalnetworkpolicies
|
||||
- globalnetworksets
|
||||
- networkpolicies
|
||||
{% if calico_version is version('v3.7.0', '>=') %}
|
||||
- networksets
|
||||
{% endif %}
|
||||
- clusterinformations
|
||||
- hostendpoints
|
||||
{% if calico_version is version('v3.9.0', '>=') %}
|
||||
- blockaffinities
|
||||
{% endif %}
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
@@ -116,7 +110,6 @@ rules:
|
||||
verbs:
|
||||
- create
|
||||
- update
|
||||
{% if calico_version is version('v3.6.0', '>=') %}
|
||||
# These permissions are required for Calico CNI to perform IPAM allocations.
|
||||
- apiGroups: ["crd.projectcalico.org"]
|
||||
resources:
|
||||
@@ -148,4 +141,3 @@ rules:
|
||||
verbs:
|
||||
- get
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user