Skip to content
Snippets Groups Projects
Unverified Commit de762400 authored by Chad Swenson's avatar Chad Swenson Committed by GitHub
Browse files

Fixes for calico_datastore: etcd (#9228)

It seems that PR #8839 broke `calico_datastore: etcd` when it removed ipamconfig support for etcd mode.

This PR fixes some failing tasks when `calico_datastore == etcd`, but it does not restore ipamconfig support for calico in etcd mode. If someone wants to restore ipamconfig support for `calico_datastore: etcd` please submit a follow up PR for that.
parent e60ece2b
Branches
Tags
No related merge requests found
...@@ -451,6 +451,7 @@ ...@@ -451,6 +451,7 @@
- {name: calico, file: calico-ipamconfig.yml, type: ipam} - {name: calico, file: calico-ipamconfig.yml, type: ipam}
when: when:
- inventory_hostname in groups['kube_control_plane'] - inventory_hostname in groups['kube_control_plane']
- calico_datastore == "kdd"
- name: Calico | Create ipamconfig resources - name: Calico | Create ipamconfig resources
kube: kube:
...@@ -459,6 +460,7 @@ ...@@ -459,6 +460,7 @@
state: "latest" state: "latest"
when: when:
- inventory_hostname == groups['kube_control_plane'][0] - inventory_hostname == groups['kube_control_plane'][0]
- calico_datastore == "kdd"
- include_tasks: peer_with_calico_rr.yml - include_tasks: peer_with_calico_rr.yml
when: when:
......
...@@ -157,6 +157,7 @@ rules: ...@@ -157,6 +157,7 @@ rules:
- daemonsets - daemonsets
verbs: verbs:
- get - get
{% endif %}
# Used for creating service account tokens to be used by the CNI plugin # Used for creating service account tokens to be used by the CNI plugin
- apiGroups: [""] - apiGroups: [""]
resources: resources:
...@@ -165,4 +166,3 @@ rules: ...@@ -165,4 +166,3 @@ rules:
- calico-node - calico-node
verbs: verbs:
- create - create
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment