Purge legacy cleanup tasks from older than 1 year (#4450)

We don't need to support upgrades from 2 year old installs,
just from the last major version.

Also changed most retried tasks to 1s delay instead of longer.
This commit is contained in:
Matthew Mosesohn
2019-04-24 10:08:05 +03:00
committed by Kubernetes Prow Robot
parent d25ecfe1c1
commit fc072300ea
11 changed files with 23 additions and 170 deletions

View File

@@ -1,6 +1,4 @@
---
- import_tasks: pre-upgrade.yml
- name: Flannel | Create Flannel manifests
template:
src: "{{item.file}}.j2"

View File

@@ -1,19 +0,0 @@
---
- name: Flannel pre-upgrade | Purge legacy flannel systemd unit file
file:
path: "/etc/systemd/system/docker.service.d/flannel-options.conf"
state: absent
notify:
- Flannel | delete default docker bridge
- name: Flannel pre-upgrade | Purge legacy Flannel static pod manifest
file:
path: "{{ kube_manifest_dir }}/flannel-pod.manifest"
state: absent
notify:
- Flannel | delete flannel interface
- name: Flannel pre-upgrade | Remove Flannel's certificate directory not required by CNI
file:
dest: "{{ flannel_cert_dir }}"
state: absent