diff --git a/api/v1alpha1/clusterhealthcheck_type.go b/api/v1alpha1/clusterhealthcheck_type.go index 70abf6b..ba4782f 100644 --- a/api/v1alpha1/clusterhealthcheck_type.go +++ b/api/v1alpha1/clusterhealthcheck_type.go @@ -39,6 +39,14 @@ const ( SlackChannelID = "SLACK_CHANNEL_ID" ) +// Webex constant +// To have Sveltos sends a webex notification, create a Secret of type "addons.projectsveltos.io/cluster-profile" +// In the data section set both webex token and webex room name +const ( + WebexToken = "WEBEX_TOKEN" + WebexRoom = "WEBEX_ROOM" +) + // ConditionSeverity expresses the severity of a Condition Type failing. type ConditionSeverity string @@ -126,7 +134,7 @@ type LivenessCheck struct { } // NotificationType specifies different type of notifications -// +kubebuilder:validation:Enum:=KubernetesEvent;Slack +// +kubebuilder:validation:Enum:=KubernetesEvent;Slack;Webex type NotificationType string const ( @@ -135,6 +143,9 @@ const ( // NotificationTypeSlack refers to generating a Slack message NotificationTypeSlack = NotificationType("Slack") + + // NotificationTypeWebex refers to generating a Webex message + NotificationTypeWebex = NotificationType("Webex") ) type Notification struct { diff --git a/config/crd/bases/lib.projectsveltos.io_clusterhealthchecks.yaml b/config/crd/bases/lib.projectsveltos.io_clusterhealthchecks.yaml index f1ee3b6..4bd351d 100644 --- a/config/crd/bases/lib.projectsveltos.io_clusterhealthchecks.yaml +++ b/config/crd/bases/lib.projectsveltos.io_clusterhealthchecks.yaml @@ -148,6 +148,7 @@ spec: enum: - KubernetesEvent - Slack + - Webex type: string required: - name diff --git a/lib/crd/clusterhealthchecks.go b/lib/crd/clusterhealthchecks.go index 3a5d024..f2f0994 100644 --- a/lib/crd/clusterhealthchecks.go +++ b/lib/crd/clusterhealthchecks.go @@ -167,6 +167,7 @@ spec: enum: - KubernetesEvent - Slack + - Webex type: string required: - name