Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 7db19bc

Browse files
committed
fix: make sure to use correct agent version
1 parent 6831868 commit 7db19bc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

custom-resources.yaml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ metadata:
5959
labels:
6060
app: grafana-agent
6161
spec:
62-
image: grafana/agent:v0.28.0
62+
image: grafana/agent:v${agent_version}
6363
containers:
6464
- name: grafana-agent
6565
resources:

locals.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
locals {
2-
version = "0.34.1"
2+
version = "0.34.1"
3+
agent_version = "0.34.1"
34
yaml = templatefile("${path.module}/custom-resources.yaml.tmpl", {
45
cluster_name = var.cluster_name
56
external_labels = merge({ cluster = var.cluster_name }, var.external_labels)
@@ -12,5 +13,6 @@ locals {
1213
metrics_username_key = var.metrics_username_key
1314
metrics_password_key = var.metrics_password_key
1415
tolerations = var.tolerations
16+
agent_version = local.agent_version
1517
})
1618
}

0 commit comments

Comments
 (0)