[2.20] Fix: install calico-kube-controller on kdd (#9358) (#9470)

* Fix: install policy controller on kdd too

* Remove the calico_policy_version condition altogether

* Install policy controller both on canal and calico under same condition

Co-authored-by: Piotr Kowalczyk <7711184+wayfrro@users.noreply.github.com>
This commit is contained in:
Zhong Jianxin 2022-11-08 07:12:17 +08:00 committed by GitHub
parent 425e2027a7
commit c553912f93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,15 +2,7 @@
dependencies:
- role: policy_controller/calico
when:
- kube_network_plugin == 'calico'
- kube_network_plugin in ['calico', 'canal']
- enable_network_policy
- calico_datastore != "kdd"
tags:
- policy-controller
- role: policy_controller/calico
when:
- kube_network_plugin == 'canal'
- calico_datastore != "kdd"
tags:
- policy-controller