Skip to content

Commit

Permalink
Merge pull request #131 from SomtochiAma/add-kinds
Browse files Browse the repository at this point in the history
Add kinds to api types
  • Loading branch information
stefanprodan authored Jan 26, 2021
2 parents 6602314 + ed33ef8 commit 3c75dc2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/v1beta1/alert_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
AlertKind string = "Alert"
)

// AlertSpec defines an alerting rule for events involving a list of objects
type AlertSpec struct {
// Send events using this provider
Expand Down
4 changes: 4 additions & 0 deletions api/v1beta1/provider_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

const (
ProviderKind string = "Provider"
)

// ProviderSpec defines the desired state of Provider
type ProviderSpec struct {
// Type of provider
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/receiver_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const (
QuayReceiver string = "quay"
GCRReceiver string = "gcr"
NexusReceiver string = "nexus"
ReceiverKind string = "Receiver"
)

func ReceiverReady(receiver Receiver, reason, message, url string) Receiver {
Expand Down

0 comments on commit 3c75dc2

Please sign in to comment.