8b151d12b9
* Adding yaml linter to ci check * Minor linting fixes from yamllint * Changing CI to install python pkgs from requirements.txt - adding in a secondary requirements.txt for tests - moving yamllint to tests requirements
32 lines
974 B
YAML
32 lines
974 B
YAML
---
|
|
- name: Create canal ConfigMap
|
|
run_once: true
|
|
kube:
|
|
name: "canal-config"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "{{kube_config_dir}}/canal-config.yaml"
|
|
resource: "configmap"
|
|
namespace: "{{system_namespace}}"
|
|
|
|
# FIXME: remove if kubernetes/features#124 is implemented
|
|
- name: Purge old flannel and canal-node
|
|
run_once: true
|
|
kube:
|
|
name: "canal-node"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
filename: "{{ kube_config_dir }}/canal-node.yaml"
|
|
resource: "ds"
|
|
namespace: "{{system_namespace}}"
|
|
state: absent
|
|
when: inventory_hostname == groups['kube-master'][0] and canal_node_manifest.changed
|
|
|
|
- name: Start flannel and calico-node
|
|
run_once: true
|
|
kube:
|
|
name: "canal-node"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "{{kube_config_dir}}/canal-node.yaml"
|
|
resource: "ds"
|
|
namespace: "{{system_namespace}}"
|
|
state: "{{ item | ternary('latest','present') }}"
|
|
with_items: "{{ canal_node_manifest.changed }}"
|