From 10326b458cf19d04c1fb155e805950bfaaaa9be9 Mon Sep 17 00:00:00 2001 From: Stephen Kirby <58410745+stirby@users.noreply.github.com> Date: Mon, 24 Feb 2025 11:03:05 -0600 Subject: [PATCH] chore(dogfood): add validation on OOM OOD parameters (#16636) --- dogfood/contents/main.tf | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dogfood/contents/main.tf b/dogfood/contents/main.tf index 6e60c58cf1..d5e70b9e32 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" {