Skip to content

Commit

Permalink
Merge pull request #111 from gianlucam76/webex
Browse files Browse the repository at this point in the history
Add Webex as notification option
  • Loading branch information
gianlucam76 authored Feb 22, 2023
2 parents 6ad18dc + 35ba315 commit 4db40d9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
13 changes: 12 additions & 1 deletion api/v1alpha1/clusterhealthcheck_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 (
Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ spec:
enum:
- KubernetesEvent
- Slack
- Webex
type: string
required:
- name
Expand Down
1 change: 1 addition & 0 deletions lib/crd/clusterhealthchecks.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ spec:
enum:
- KubernetesEvent
- Slack
- Webex
type: string
required:
- name
Expand Down

0 comments on commit 4db40d9

Please sign in to comment.