Skip to content

Commit

Permalink
tailscale: add missing webhook event categories (#435)
Browse files Browse the repository at this point in the history
Add missing `categoryDeviceMisconfigurations` and
`categoryTailnetManagement` event subscriptions to the validation logic
for the `subscriptions` property for the webhook resource.

Updates #433

Signed-off-by: Mario Minardi <mario@tailscale.com>
  • Loading branch information
mpminardi authored Sep 20, 2024
1 parent 7b5e205 commit 527b66c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tailscale/resource_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func resourceWebhook() *schema.Resource {
Type: schema.TypeString,
ValidateFunc: validation.StringInSlice(
[]string{
string(tsclient.WebhookCategoryTailnetManagement),
string(tsclient.WebhookNodeCreated),
string(tsclient.WebhookNodeNeedsApproval),
string(tsclient.WebhookNodeApproved),
Expand All @@ -68,6 +69,7 @@ func resourceWebhook() *schema.Resource {
string(tsclient.WebhookUserDeleted),
string(tsclient.WebhookUserApproved),
string(tsclient.WebhookUserRoleUpdated),
string(tsclient.WebhookCategoryDeviceMisconfigurations),
string(tsclient.WebhookSubnetIPForwardingNotEnabled),
string(tsclient.WebhookExitNodeIPForwardingNotEnabled),
},
Expand Down

0 comments on commit 527b66c

Please sign in to comment.