Skip to content

Commit 315952d

Browse files
authored
azurerm_container_app: Update failure_count_threshold validation for container app probes (#31989)
[BUG] * `azurerm_container_app` - fix `failure_count_threshold` validation values for container app probes
1 parent 0d7411f commit 315952d

3 files changed

Lines changed: 12 additions & 12 deletions

File tree

internal/services/containerapps/helpers/container_apps.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,8 +2066,8 @@ func ContainerAppReadinessProbeSchema() *pluginsdk.Schema {
20662066
Type: pluginsdk.TypeInt,
20672067
Optional: true,
20682068
Default: 3,
2069-
ValidateFunc: validation.IntBetween(1, 30),
2070-
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.",
2069+
ValidateFunc: validation.IntBetween(1, 48),
2070+
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `48`. Defaults to `3`.",
20712071
},
20722072

20732073
"success_count_threshold": {
@@ -2153,7 +2153,7 @@ func ContainerAppReadinessProbeSchemaComputed() *pluginsdk.Schema {
21532153
"failure_count_threshold": {
21542154
Type: pluginsdk.TypeInt,
21552155
Computed: true,
2156-
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.",
2156+
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `48`. Defaults to `3`.",
21572157
},
21582158

21592159
"success_count_threshold": {
@@ -2636,8 +2636,8 @@ func ContainerAppStartupProbeSchema() *pluginsdk.Schema {
26362636
Type: pluginsdk.TypeInt,
26372637
Optional: true,
26382638
Default: 3,
2639-
ValidateFunc: validation.IntBetween(1, 30),
2640-
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.",
2639+
ValidateFunc: validation.IntBetween(1, 240),
2640+
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `240`. Defaults to `3`.",
26412641
},
26422642
},
26432643
},
@@ -2721,7 +2721,7 @@ func ContainerAppStartupProbeSchemaComputed() *pluginsdk.Schema {
27212721
"failure_count_threshold": {
27222722
Type: pluginsdk.TypeInt,
27232723
Computed: true,
2724-
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.",
2724+
Description: "The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `240`. Defaults to `3`.",
27252725
},
27262726
},
27272727
},

website/docs/r/container_app.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ A `container` block supports the following:
262262

263263
A `liveness_probe` block supports the following:
264264

265-
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
265+
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.
266266

267267
* `header` - (Optional) A `header` block as detailed below.
268268

@@ -304,7 +304,7 @@ An `env` block supports the following:
304304

305305
A `readiness_probe` block supports the following:
306306

307-
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.
307+
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `48`. Defaults to `3`.
308308

309309
* `header` - (Optional) A `header` block as detailed below.
310310

@@ -336,7 +336,7 @@ A `header` block supports the following:
336336

337337
A `startup_probe` block supports the following:
338338

339-
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.
339+
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `240`. Defaults to `3`.
340340

341341
* `header` - (Optional) A `header` block as detailed below.
342342

website/docs/r/container_app_job.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ A `liveness_probe` block supports the following:
208208

209209
* `transport` - (Required) Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.
210210

211-
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
211+
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `30`. Defaults to `3`.
212212

213213
* `header` - (Optional) A `header` block as detailed below.
214214

@@ -238,7 +238,7 @@ A `readiness_probe` block supports the following:
238238

239239
* `transport` - (Required) Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.
240240

241-
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
241+
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `48`. Defaults to `3`.
242242

243243
* `header` - (Optional) A `header` block as detailed below.
244244

@@ -270,7 +270,7 @@ A `startup_probe` block supports the following:
270270

271271
* `transport` - (Required) Type of probe. Possible values are `TCP`, `HTTP`, and `HTTPS`.
272272

273-
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `10`. Defaults to `3`.
273+
* `failure_count_threshold` - (Optional) The number of consecutive failures required to consider this probe as failed. Possible values are between `1` and `240`. Defaults to `3`.
274274

275275
* `header` - (Optional) A `header` block as detailed below.
276276

0 commit comments

Comments
 (0)