Skip to content

Commit f4bc440

Browse files
committed
fix: Workaround inconsistent TF run for Cilium NP chart
1 parent fec8b50 commit f4bc440

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

k3s-bootstrap/cilium-global-policies/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ apiVersion: v2
22
name: cilium-global-policies
33
description: A dedicated chart for Cilium default policies
44
type: application
5-
version: "1.11.0"
5+
version: "1.11.1"

k3s-bootstrap/cilium.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,21 @@ resource "helm_release" "cilium" {
6969
]
7070
}
7171

72+
# Workaround
73+
# Ref: https://github.com/hashicorp/terraform-provider-helm/issues/1664#issuecomment-3438973448
74+
data "local_file" "cilium_global_policies_chart_yaml" {
75+
filename = "${path.module}/cilium-global-policies/Chart.yaml"
76+
}
77+
7278
resource "helm_release" "cilium_global_policies" {
7379
name = "cilium-global-policies"
7480
chart = "${path.module}/cilium-global-policies"
7581
namespace = "kube-system"
7682

83+
# Workaround
84+
# Ref: https://github.com/hashicorp/terraform-provider-helm/issues/1664#issuecomment-3438973448
85+
version = tostring(yamldecode(data.local_file.chart_yaml.content).version)
86+
7787
max_history = local.helm_max_history
7888

7989
depends_on = [helm_release.cilium]

0 commit comments

Comments
 (0)