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

Lines changed: 8 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy