Browse Source
Calico upgrade path validation and old version cleanup (#6733)
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.pull/6738/head
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 21 additions and 253 deletions
Split View
Diff Options
-
24docs/calico.md
-
6roles/download/defaults/main.yml
-
4roles/kubernetes-apps/policy_controller/calico/templates/calico-kube-controllers.yml.j2
-
2roles/kubernetes-apps/policy_controller/calico/templates/calico-kube-cr.yml.j2
-
11roles/kubernetes/kubeadm/tasks/main.yml
-
12roles/kubernetes/preinstall/tasks/0020-verify-settings.yml
-
5roles/kubespray-defaults/vars/main.yml
-
33roles/network_plugin/calico/tasks/check.yml
-
24roles/network_plugin/calico/tasks/install.yml
-
7roles/network_plugin/calico/tasks/main.yml
-
26roles/network_plugin/calico/tasks/upgrade.yml
-
8roles/network_plugin/calico/templates/calico-cr.yml.j2
-
49roles/network_plugin/calico/templates/calico-node.yml.j2
-
16roles/network_plugin/calico/templates/calico-typha.yml.j2
-
2roles/network_plugin/calico/templates/cni-calico.conflist.j2
-
6roles/network_plugin/calico/templates/kdd-crds.yml.j2
-
2roles/network_plugin/canal/tasks/main.yml
-
35roles/network_plugin/canal/templates/canal-node.yaml.j2
-
2roles/network_plugin/canal/templates/cni-canal.conflist.j2
@ -1,2 +1,7 @@ |
|||
--- |
|||
# Kubespray constants |
|||
|
|||
kube_proxy_deployed: "{{ 'addon/kube-proxy' not in kubeadm_init_phases_skip }}" |
|||
|
|||
# The lowest version allowed to upgrade from (same as calico_version in the previous branch) |
|||
calico_min_version_required: "v3.15.2" |
@ -1,26 +0,0 @@ |
|||
--- |
|||
- name: "Download calico-upgrade tool (force version)" |
|||
get_url: |
|||
url: "{{ calico_upgrade_url }}" |
|||
dest: "{{ bin_dir }}/calico-upgrade" |
|||
mode: 0755 |
|||
owner: root |
|||
group: root |
|||
force: yes |
|||
environment: "{{ proxy_env }}" |
|||
- name: "Create etcdv2 and etcdv3 calicoApiConfig" |
|||
template: |
|||
src: "{{ item }}-store.yml.j2" |
|||
dest: "/etc/calico/{{ item }}.yml" |
|||
with_items: |
|||
- "etcdv2" |
|||
- "etcdv3" |
|||
|
|||
- name: "Tests data migration (dry-run)" # noqa 301 305 |
|||
shell: "{{ bin_dir }}/calico-upgrade dry-run --output-dir=/tmp --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml" |
|||
register: calico_upgrade_test_data |
|||
failed_when: '"Successfully" not in calico_upgrade_test_data.stdout' |
|||
|
|||
- name: "If test migration is success continue with calico data real migration" # noqa 301 305 |
|||
shell: "{{ bin_dir }}/calico-upgrade start --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml --output-dir=/tmp/calico_upgrade" |
|||
register: calico_upgrade_migration_data |
Write
Preview
Loading…
Cancel
Save