[reset] fix task inclusion logic for network plugin

This commit is contained in:
Calin Cristian Andrei 2022-04-19 10:34:48 +03:00 committed by Kubernetes Prow Robot
parent 1113460b68
commit 8f118fb619

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: