Remove k8s hooks for versions prior to 1.20 (#7998)

This commit is contained in:
Florian Ruynat
2021-09-22 19:32:01 +02:00
committed by GitHub
parent 598f178054
commit c8d7f000c9
14 changed files with 3 additions and 67 deletions

View File

@@ -36,11 +36,7 @@ spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
nodeSelector:
{% if kube_version is version('v1.20.0', '<') %}
node-role.kubernetes.io/master: ""
{% else %}
node-role.kubernetes.io/control-plane: ""
{% endif %}
tolerations:
- key: node.cloudprovider.kubernetes.io/uninitialized
value: "true"