Skip to content

Commit

Permalink
Update tctl collections cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardjkim committed Oct 28, 2024
1 parent 2169e0d commit 98adad4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tool/tctl/common/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -1616,6 +1616,7 @@ func (p *pluginResourceWrapper) UnmarshalJSON(data []byte) error {
settingsGitlab = "gitlab"
settingsEntraID = "entra_id"
settingsDatadogIncidentManagement = "datadog_incident_management"
settingsEmailAccessPlugin = "email_access_plugin"
)
type unknownPluginType struct {
Spec struct {
Expand Down Expand Up @@ -1685,6 +1686,8 @@ func (p *pluginResourceWrapper) UnmarshalJSON(data []byte) error {
p.PluginV1.Spec.Settings = &types.PluginSpecV1_EntraId{}
case settingsDatadogIncidentManagement:
p.PluginV1.Spec.Settings = &types.PluginSpecV1_Datadog{}
case settingsEmailAccessPlugin:
p.PluginV1.Spec.Settings = &types.PluginSpecV1_Email{}
default:
return trace.BadParameter("unsupported plugin type: %v", k)
}
Expand Down

0 comments on commit 98adad4

Please sign in to comment.