diff --git a/api/v1beta2/provider_types.go b/api/v1beta2/provider_types.go index fe5622e..62ef054 100644 --- a/api/v1beta2/provider_types.go +++ b/api/v1beta2/provider_types.go @@ -74,8 +74,10 @@ type ProviderSpec struct { // +optional Username string `json:"username,omitempty"` - // Address specifies the HTTP/S incoming webhook address of this Provider. - // +kubebuilder:validation:Pattern="^(http|https)://.*$" + // Address specifies the endpoint, in a generic sense, to where alerts are sent. + // What kind of endpoint depends on the specific Provider type being used. + // For the generic Provider, for example, this is an HTTP/S address. + // For other Provider types this could be a project ID or a namespace. // +kubebuilder:validation:MaxLength:=2048 // +kubebuilder:validation:Optional // +optional diff --git a/config/crd/bases/notification.toolkit.fluxcd.io_providers.yaml b/config/crd/bases/notification.toolkit.fluxcd.io_providers.yaml index 6086e15..d2f26b3 100644 --- a/config/crd/bases/notification.toolkit.fluxcd.io_providers.yaml +++ b/config/crd/bases/notification.toolkit.fluxcd.io_providers.yaml @@ -228,10 +228,12 @@ spec: description: ProviderSpec defines the desired state of the Provider. properties: address: - description: Address specifies the HTTP/S incoming webhook address - of this Provider. + description: Address specifies the endpoint, in a generic sense, to + where alerts are sent. What kind of endpoint depends on the specific + Provider type being used. For the generic Provider, for example, + this is an HTTP/S address. For other Provider types this could be + a project ID or a namespace. maxLength: 2048 - pattern: ^(http|https)://.*$ type: string certSecretRef: description: CertSecretRef specifies the Secret containing a PEM-encoded diff --git a/docs/api/v1beta2/notification.md b/docs/api/v1beta2/notification.md index 66e1359..a47b9e7 100644 --- a/docs/api/v1beta2/notification.md +++ b/docs/api/v1beta2/notification.md @@ -313,7 +313,10 @@ string
Address specifies the HTTP/S incoming webhook address of this Provider.
+Address specifies the endpoint, in a generic sense, to where alerts are sent. +What kind of endpoint depends on the specific Provider type being used. +For the generic Provider, for example, this is an HTTP/S address. +For other Provider types this could be a project ID or a namespace.
Address specifies the HTTP/S incoming webhook address of this Provider.
+Address specifies the endpoint, in a generic sense, to where alerts are sent. +What kind of endpoint depends on the specific Provider type being used. +For the generic Provider, for example, this is an HTTP/S address. +For other Provider types this could be a project ID or a namespace.