[reset] fix task inclusion logic for network plugin

pull/8784/head
Calin Cristian Andrei 2022-04-19 10:34:48 +03:00 committed by Kubernetes Prow Robot
parent 1113460b68
commit 8f118fb619
1 changed files with 3 additions and 1 deletions

View File

@ -364,7 +364,9 @@
- dns
- name: reset | include file with reset tasks specific to the network_plugin if exists
include_tasks: "{{ (role_path,'../network_plugin',kube_network_plugin,'tasks/reset.yml') | community.general.path_join | realpath }}"
include_role:
name: "network_plugin/{{ kube_network_plugin }}"
tasks_from: reset
when:
- kube_network_plugin in ['flannel', 'cilium', 'kube-router', 'calico']
tags: