mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-16 20:30:50 -03:30
* Add helm support for custom_cni deployment * Linting correction * Ansible linting correction * Add test packet with values Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> * Add custom_cni configuration file with comments Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> * Default values cleanup Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> * Add details to custom_cni configuration file Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> * Set correct yaml type of helm values Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> * Set CNI filesystem ownership to root Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> * Update cilium example parameter name Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com> --------- Signed-off-by: Lukáš Kubín <lukas.kubin@gmail.com>
30 lines
943 B
YAML
30 lines
943 B
YAML
---
|
|
- name: Custom CNI | Manifest deployment
|
|
when: not custom_cni_chart_release_name | length > 0
|
|
block:
|
|
- name: Custom CNI | Check Custom CNI Manifests
|
|
assert:
|
|
that:
|
|
- "custom_cni_manifests | length > 0"
|
|
msg: "custom_cni_manifests should not be empty"
|
|
|
|
- name: Custom CNI | Copy Custom manifests
|
|
template:
|
|
src: "{{ item }}"
|
|
dest: "{{ kube_config_dir }}/{{ item | basename | replace('.j2', '') }}"
|
|
mode: 0644
|
|
loop: "{{ custom_cni_manifests }}"
|
|
delegate_to: "{{ groups['kube_control_plane'] | first }}"
|
|
run_once: true
|
|
|
|
- name: Custom CNI | Start Resources
|
|
kube:
|
|
namespace: "kube-system"
|
|
kubectl: "{{ bin_dir }}/kubectl"
|
|
filename: "{{ kube_config_dir }}/{{ item | basename | replace('.j2', '') }}"
|
|
state: "latest"
|
|
wait: true
|
|
loop: "{{ custom_cni_manifests }}"
|
|
delegate_to: "{{ groups['kube_control_plane'] | first }}"
|
|
run_once: true
|