Skip to content

Commit 1299af3

Browse files
committed
feat: Change required fields to optional in Notification Channels
Signed-off-by: Federico Barcelona <[email protected]>
1 parent b1c223e commit 1299af3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

sysdig/resource_sysdig_monitor_notification_channel_common.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ func createMonitorNotificationChannelSchema(original map[string]*schema.Schema)
1414
},
1515
"enabled": {
1616
Type: schema.TypeBool,
17-
Required: true,
17+
Optional: true,
18+
Default: true,
1819
},
1920
"notify_when_ok": {
2021
Type: schema.TypeBool,
21-
Required: true,
22+
Optional: true,
23+
Default: false,
2224
},
2325
"notify_when_resolved": {
2426
Type: schema.TypeBool,
25-
Required: true,
27+
Optional: true,
28+
Default: false,
2629
},
2730
"version": {
2831
Type: schema.TypeInt,

0 commit comments

Comments
 (0)