diff --git a/config/crds/policyreporter.kyverno.io_targetconfigs.yaml b/config/crds/policyreporter.kyverno.io_targetconfigs.yaml index 7dd75bb9..deaed2af 100644 --- a/config/crds/policyreporter.kyverno.io_targetconfigs.yaml +++ b/config/crds/policyreporter.kyverno.io_targetconfigs.yaml @@ -314,10 +314,7 @@ spec: webhook: type: string required: - - certificate - channel - - headers - - skipTLS - webhook type: object sources: @@ -337,9 +334,6 @@ spec: webhook: type: string required: - - certificate - - headers - - skipTLS - webhook type: object telegram: @@ -359,10 +353,7 @@ spec: webhook: type: string required: - - certificate - chatId - - headers - - skipTLS - token - webhook type: object @@ -379,9 +370,6 @@ spec: webhook: type: string required: - - certificate - - headers - - skipTLS - webhook type: object type: object diff --git a/pkg/crd/api/targetconfig/v1alpha1/configs.go b/pkg/crd/api/targetconfig/v1alpha1/configs.go index e36424c5..6ab3d64f 100644 --- a/pkg/crd/api/targetconfig/v1alpha1/configs.go +++ b/pkg/crd/api/targetconfig/v1alpha1/configs.go @@ -12,10 +12,13 @@ type AWSConfig struct { } type WebhookOptions struct { - Webhook string `mapstructure:"webhook" json:"webhook"` - SkipTLS bool `mapstructure:"skipTLS" json:"skipTLS"` - Certificate string `mapstructure:"certificate" json:"certificate"` - Headers map[string]string `mapstructure:"headers" json:"headers"` + Webhook string `mapstructure:"webhook" json:"webhook"` + // +optional + SkipTLS bool `mapstructure:"skipTLS" json:"skipTLS"` + // +optional + Certificate string `mapstructure:"certificate" json:"certificate"` + // +optional + Headers map[string]string `mapstructure:"headers" json:"headers"` } type HostOptions struct {