Browse Source

Upgrade outdated cilium_min_version_required

Signed-off-by: ChengHao Yang <17496418+tico88612@users.noreply.github.com>
pull/12101/head
ChengHao Yang 6 months ago
parent
commit
1e471d5eeb
Failed to extract signature
2 changed files with 3 additions and 9 deletions
  1. 10
      roles/network_plugin/cilium/defaults/main.yml
  2. 2
      roles/network_plugin/cilium/tasks/check.yml

10
roles/network_plugin/cilium/defaults/main.yml

@ -1,5 +1,5 @@
---
cilium_min_version_required: "1.10"
cilium_min_version_required: "1.15"
# Log-level
cilium_debug: false
@ -11,7 +11,7 @@ cilium_enable_ipv6: "{{ ipv6_stack }}"
cilium_l2announcements: false
# Cilium agent health port
cilium_agent_health_port: "{%- if cilium_version is version('1.11.6', '>=') -%}9879{%- else -%}9876{%- endif -%}"
cilium_agent_health_port: "9879"
# Identity allocation mode selects how identities are shared between cilium
# nodes by setting how they are stored. The options are "crd" or "kvstore".
@ -63,12 +63,6 @@ cilium_kube_proxy_replacement: partial
# http://docs.cilium.io/en/stable/install/upgrade/#changes-that-may-require-action
cilium_preallocate_bpf_maps: false
# `cilium_tofqdns_enable_poller` is deprecated in 1.8, removed in 1.9
cilium_tofqdns_enable_poller: false
# `cilium_enable_legacy_services` is deprecated in 1.6, removed in 1.9
cilium_enable_legacy_services: false
# Auto direct nodes routes can be used to advertise pods routes in your cluster
# without any tunelling (with `cilium_tunnel_mode` sets to `disabled`).
# This works only if you have a L2 connectivity between all your nodes.

2
roles/network_plugin/cilium/tasks/check.yml

@ -48,7 +48,7 @@
msg: "cilium_encryption_type must be either 'ipsec' or 'wireguard'"
when: cilium_encryption_enabled
- name: Stop if cilium_version is < 1.10.0
- name: Stop if cilium_version is < {{ cilium_min_version_required }}
assert:
that: cilium_version is version(cilium_min_version_required, '>=')
msg: "cilium_version is too low. Minimum version {{ cilium_min_version_required }}"

Loading…
Cancel
Save