Skip to content

Commit 10326b4

Browse files
authored
chore(dogfood): add validation on OOM OOD parameters (#16636)
1 parent 304007b commit 10326b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dogfood/contents/main.tf

+8
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ data "coder_parameter" "res_mon_memory_threshold" {
9191
default = 80
9292
description = "The memory usage threshold used in resources monitoring to trigger notifications."
9393
mutable = true
94+
validation {
95+
min = 0
96+
max = 100
97+
}
9498
}
9599

96100
data "coder_parameter" "res_mon_volume_threshold" {
@@ -99,6 +103,10 @@ data "coder_parameter" "res_mon_volume_threshold" {
99103
default = 80
100104
description = "The volume usage threshold used in resources monitoring to trigger notifications."
101105
mutable = true
106+
validation {
107+
min = 0
108+
max = 100
109+
}
102110
}
103111

104112
data "coder_parameter" "res_mon_volume_path" {

0 commit comments

Comments
 (0)