From 405a1446002038c2e35997fdbf1dd83f881bab71 Mon Sep 17 00:00:00 2001 From: Stephen Kirby Date: Wed, 19 Feb 2025 21:17:03 +0000 Subject: [PATCH] added validation to OOM OOD alerts in dogfood template --- dogfood/contents/main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dogfood/contents/main.tf b/dogfood/contents/main.tf index 6e60c58cf1293..d5e70b9e3214b 100644 --- a/dogfood/contents/main.tf +++ b/dogfood/contents/main.tf @@ -91,6 +91,10 @@ data "coder_parameter" "res_mon_memory_threshold" { default = 80 description = "The memory usage threshold used in resources monitoring to trigger notifications." mutable = true + validation { + min = 0 + max = 100 + } } data "coder_parameter" "res_mon_volume_threshold" { @@ -99,6 +103,10 @@ data "coder_parameter" "res_mon_volume_threshold" { default = 80 description = "The volume usage threshold used in resources monitoring to trigger notifications." mutable = true + validation { + min = 0 + max = 100 + } } data "coder_parameter" "res_mon_volume_path" {