Skip to content

Commit dc37711

Browse files
committed
make gen
1 parent 46d279d commit dc37711

File tree

3 files changed

+18
-26
lines changed

3 files changed

+18
-26
lines changed

docs/resources/app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ resource "coder_app" "intellij" {
7676
<a id="nestedblock--healthcheck"></a>
7777
### Nested Schema for `healthcheck`
7878

79-
Optional:
79+
Required:
8080

8181
- `interval` (Number) Duration in seconds to wait between healthcheck requests.
8282
- `threshold` (Number) Number of consecutive heathcheck failures before returning an unhealthy status.

internal/provider/provider.go

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -374,35 +374,30 @@ func New() *schema.Provider {
374374
ConflictsWith: []string{"command"},
375375
},
376376
"healthcheck": {
377-
Type: schema.TypeSet,
378-
Description: "HTTP health checking to determine the application readiness.",
379-
ForceNew: true,
380-
Optional: true,
377+
Type: schema.TypeSet,
378+
Description: "HTTP health checking to determine the application readiness.",
379+
ForceNew: true,
380+
Optional: true,
381+
ConflictsWith: []string{"command"},
381382
Elem: &schema.Resource{
382383
Schema: map[string]*schema.Schema{
383384
"url": {
384-
Type: schema.TypeString,
385-
Description: "HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before healthcheck.interval seconds.",
386-
ForceNew: true,
387-
Optional: true,
388-
ConflictsWith: []string{"command"},
389-
RequiredWith: []string{"healthcheck.interval", "healthcheck.threshold"},
385+
Type: schema.TypeString,
386+
Description: "HTTP address used determine the application readiness. A successful health check is a HTTP response code less than 500 returned before healthcheck.interval seconds.",
387+
ForceNew: true,
388+
Required: true,
390389
},
391390
"interval": {
392-
Type: schema.TypeInt,
393-
Description: "Duration in seconds to wait between healthcheck requests.",
394-
ForceNew: true,
395-
Optional: true,
396-
ConflictsWith: []string{"command"},
397-
RequiredWith: []string{"healthcheck.url", "healthcheck.threshold"},
391+
Type: schema.TypeInt,
392+
Description: "Duration in seconds to wait between healthcheck requests.",
393+
ForceNew: true,
394+
Required: true,
398395
},
399396
"threshold": {
400-
Type: schema.TypeInt,
401-
Description: "Number of consecutive heathcheck failures before returning an unhealthy status.",
402-
ForceNew: true,
403-
Optional: true,
404-
ConflictsWith: []string{"command"},
405-
RequiredWith: []string{"healthcheck.interval", "healthcheck.url"},
397+
Type: schema.TypeInt,
398+
Description: "Number of consecutive heathcheck failures before returning an unhealthy status.",
399+
ForceNew: true,
400+
Required: true,
406401
},
407402
},
408403
},

internal/provider/provider_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,6 @@ func TestApp(t *testing.T) {
239239
"icon",
240240
"relative_path",
241241
"url",
242-
"healthcheck.url",
243-
"healthcheck.interval",
244-
"healthcheck.threshold",
245242
} {
246243
value := resource.Primary.Attributes[key]
247244
t.Logf("%q = %q", key, value)

0 commit comments

Comments
 (0)