Discover modules > cue.dev/x/crd/fluxcd.io > notification > v1beta3
v0.9.0
#Alert: ¶

Alert is the Schema for the alerts API

apiVersion:
click to see definition
string
& "notification.toolkit.fluxcd.io/v1beta3"
¶

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kind:
click to see definition
string
& "Alert"
¶

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata!: ¶
name!: string ¶
namespace!: string ¶
labels?: ¶
[string]: string ¶
annotations?: ¶
[string]: string ¶
spec?: ¶

AlertSpec defines an alerting rule for events involving a list of objects.

eventMetadata?: ¶

EventMetadata is an optional field for adding metadata to events dispatched by the controller. This can be used for enhancing the context of the event. If a field would override one already present on the original event as generated by the emitter, then the override doesn't happen, i.e. the original value is preserved, and an info log is printed.

[string]: string ¶
eventSeverity?: "info" | "error" ¶

EventSeverity specifies how to filter events based on severity. If set to 'info' no events will be filtered.

eventSources!:
click to see definition
[...{
	// API version of the referent
	apiVersion?: string

	// Kind of the referent
	kind!: "Bucket" |
		"GitRepository" |
		"Kustomization" |
		"HelmRelease" |
		"HelmChart" |
		"HelmRepository" |
		"ImageRepository" |
		"ImagePolicy" |
		"ImageUpdateAutomation" |
		"OCIRepository" |
		"ArtifactGenerator" |
		"ExternalArtifact"

	// MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
	// map is equivalent to an element of matchExpressions, whose key field is "key", the
	// operator is "In", and the values array contains only "value". The requirements are ANDed.
	// MatchLabels requires the name to be set to `*`.
	matchLabels?: [string]: string

	// Name of the referent
	// If multiple resources are targeted `*` may be set.
	name!: strings.MaxRunes(
		253,
	) & strings.MinRunes(
		1,
	)

	// Namespace of the referent
	namespace?: strings.MaxRunes(
		253,
	) & strings.MinRunes(
		1,
	)
}]
¶

EventSources specifies how to filter events based on the involved object kind, name and namespace.

[...]:
apiVersion?: string

API version of the referent

kind!:
click to see definition
"Bucket" |
	"GitRepository" |
	"Kustomization" |
	"HelmRelease" |
	"HelmChart" |
	"HelmRepository" |
	"ImageRepository" |
	"ImagePolicy" |
	"ImageUpdateAutomation" |
	"OCIRepository" |
	"ArtifactGenerator" |
	"ExternalArtifact"

Kind of the referent

matchLabels?:

MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. MatchLabels requires the name to be set to `*`.

[string]: string
name!: strings.MaxRunes(253) & strings.MinRunes(1)

Name of the referent If multiple resources are targeted `*` may be set.

namespace?: strings.MaxRunes(253) & strings.MinRunes(1)

Namespace of the referent

exclusionList?: [...string] ¶

ExclusionList specifies a list of Golang regular expressions to be used for excluding messages.

[...]: string
inclusionList?: [...string] ¶

InclusionList specifies a list of Golang regular expressions to be used for including messages.

[...]: string
providerRef!: ¶

ProviderRef specifies which Provider this Alert should use.

name!: string ¶

Name of the referent.

summary?: strings.MaxRunes(255) ¶

Summary holds a short description of the impact and affected cluster. Deprecated: Use EventMetadata instead.

suspend?: bool ¶

Suspend tells the controller to suspend subsequent events handling for this Alert.

#Provider: ¶

Provider is the Schema for the providers API

apiVersion:
click to see definition
string
& "notification.toolkit.fluxcd.io/v1beta3"
¶

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

kind:
click to see definition
string
& "Provider"
¶

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

metadata!: ¶
name!: string ¶
namespace!: string ¶
labels?: ¶
[string]: string ¶
annotations?: ¶
[string]: string ¶
spec?: ¶

ProviderSpec defines the desired state of the Provider.

address?: strings.MaxRunes(2048) ¶

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.

certSecretRef?: ¶

CertSecretRef specifies the Secret containing TLS certificates for secure communication.

Supported configurations: - CA-only: Server authentication (provide ca.crt only) - mTLS: Mutual authentication (provide ca.crt + tls.crt + tls.key) - Client-only: Client authentication with system CA (provide tls.crt + tls.key only)

Legacy keys "caFile", "certFile", "keyFile" are supported but deprecated. Use "ca.crt", "tls.crt", "tls.key" instead.

name!: string ¶

Name of the referent.

channel?: strings.MaxRunes(2048) ¶

Channel specifies the destination channel where events should be posted.

commitStatusExpr?: string ¶

CommitStatusExpr is a CEL expression that evaluates to a string value that can be used to generate a custom commit status message for use with eligible Provider types (github, gitlab, gitea, bitbucketserver, bitbucket, azuredevops). Supported variables are: event, provider, and alert.

interval?: =~"^([0-9]+(\\.[0-9]+)?(ms|s|m|h))+$" ¶

Interval at which to reconcile the Provider with its Secret references. Deprecated and not used in v1beta3.

proxy?: strings.MaxRunes(2048) & =~"^(http|https)://.*$" ¶

Proxy the HTTP/S address of the proxy server. Deprecated: Use ProxySecretRef instead. Will be removed in v1.

proxySecretRef?: ¶

ProxySecretRef specifies the Secret containing the proxy configuration for this Provider. The Secret should contain an 'address' key with the HTTP/S address of the proxy server. Optional 'username' and 'password' keys can be provided for proxy authentication.

name!: string ¶

Name of the referent.

secretRef?: ¶

SecretRef specifies the Secret containing the authentication credentials for this Provider.

name!: string ¶

Name of the referent.

serviceAccountName?: string ¶

ServiceAccountName is the name of the Kubernetes ServiceAccount used to authenticate with cloud provider services through workload identity. This enables multi-tenant authentication without storing static credentials.

Supported provider types: azureeventhub, azuredevops, googlepubsub

When specified, the controller will: 1. Create an OIDC token for the specified ServiceAccount 2. Exchange it for cloud provider credentials via STS 3. Use the obtained credentials for API authentication

When unspecified, controller-level authentication is used (single-tenant).

An error is thrown if static credentials are also defined in SecretRef. This field requires the ObjectLevelWorkloadIdentity feature gate to be enabled.

suspend?: bool ¶

Suspend tells the controller to suspend subsequent events handling for this Provider.

timeout?: =~"^([0-9]+(\\.[0-9]+)?(ms|s|m))+$" ¶

Timeout for sending alerts to the Provider.

type!:
click to see definition
"slack" |
	"discord" |
	"msteams" |
	"rocket" |
	"generic" |
	"generic-hmac" |
	"github" |
	"gitlab" |
	"gitea" |
	"giteapullrequestcomment" |
	"bitbucketserver" |
	"bitbucket" |
	"azuredevops" |
	"googlechat" |
	"googlepubsub" |
	"webex" |
	"sentry" |
	"azureeventhub" |
	"telegram" |
	"lark" |
	"matrix" |
	"opsgenie" |
	"alertmanager" |
	"grafana" |
	"githubdispatch" |
	"githubpullrequestcomment" |
	"gitlabmergerequestcomment" |
	"pagerduty" |
	"datadog" |
	"nats" |
	"zulip" |
	"otel"
¶

Type specifies which Provider implementation to use.

username?: strings.MaxRunes(2048) ¶

Username specifies the name under which events are posted.

Source files

  • Alert.cue
  • Provider.cue