Skip to content

Commit 6646db4

Browse files
committed
Use previous Calico version v3.27.4
1 parent dd57e77 commit 6646db4

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

changelog/2.27.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ Released 2025-03-24
4141
- [#419](https://github.com/elastisys/compliantkubernetes-kubespray/pull/419) - bug: fix readme @Eliastisys
4242
- [#420](https://github.com/elastisys/compliantkubernetes-kubespray/pull/420) - documentation: Update Ubuntu 24.04 migration guide to include instructions for UpCloud @Ajarmar
4343
- [#424](https://github.com/elastisys/compliantkubernetes-kubespray/pull/424) - documentation: Fix LICENSE @cristiklein
44+
- [#427](https://github.com/elastisys/compliantkubernetes-kubespray/pull/427) - Kept previous Calico version `v3.27` due to newer versions being incompatible with Calico-Accountant

config/common/group_vars/k8s_cluster/ck8s-k8s-cluster.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ calico_ipip_mode: "Always"
5656
calico_vxlan_mode: "Never"
5757
calico_network_backend: "bird"
5858

59+
calico_version: v3.27.4
60+
5961
dns_extra_tolerations: [{effect: NoSchedule, operator: Exists}]
6062
coredns_additional_error_config: |
6163
consolidate 5m ".* i/o timeout$" warning
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
3+
HERE="$(dirname "$(readlink -f "${0}")")"
4+
ROOT="$(readlink -f "${HERE}/../../../")"
5+
6+
# shellcheck source=scripts/migration/lib.sh
7+
source "${ROOT}/scripts/migration/lib.sh"
8+
9+
if [[ "${CK8S_CLUSTER}" =~ ^(sc|both)$ ]]; then
10+
log_info "Setting calico version for service cluster"
11+
yq4 -i '.calico_version = "v3.27.4"' "${CK8S_CONFIG_PATH}/sc-config/group_vars/k8s_cluster/ck8s-k8s-cluster.yaml"
12+
fi
13+
if [[ "${CK8S_CLUSTER}" =~ ^(wc|both)$ ]]; then
14+
log_info "Setting calico version for workload cluster"
15+
yq4 -i '.calico_version = "v3.27.4"' "${CK8S_CONFIG_PATH}/wc-config/group_vars/k8s_cluster/ck8s-k8s-cluster.yaml"
16+
fi

0 commit comments

Comments
 (0)