Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions api/v1/appbinding.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ type GrafanaConfig struct {
Dashboard DashboardSpec `json:"dashboard"`
}

type PersesConfig struct {
URL string `json:"url"`
Service ServiceSpec `json:"service"`
BasicAuth BasicAuth `json:"basicAuth"`
BearerToken string `json:"bearerToken"`
TLS TLSConfig `json:"tls"`
Dashboard PersesDashboardSpec `json:"dashboard"`
}

type PrometheusConfig struct {
URL string `json:"url"`
Service ServiceSpec `json:"service"`
Expand All @@ -51,6 +60,12 @@ type DashboardSpec struct {
FolderID int `json:"folderID"`
}

type PersesDashboardSpec struct {
ProjectName string `json:"projectName"`
FolderName string `json:"folderName"`
Datasource string `json:"datasource"`
}

type BasicAuth struct {
Username string `json:"username"`
Password string `json:"password"`
Expand Down Expand Up @@ -78,6 +93,12 @@ type GrafanaContext struct {
Datasource string `json:"datasource,omitempty"`
}

type PersesContext struct {
ProjectName string `json:"projectName,omitempty"`
FolderName string `json:"folderName,omitempty"`
Datasource string `json:"datasource,omitempty"`
}

type Prometheus struct {
AppBindingRef *kmapi.ObjectReference `json:"appBindingRef,omitempty"`
*ConnectionSpec `json:",inline,omitempty"`
Expand Down
120 changes: 120 additions & 0 deletions api/v1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const (
DefaultPrometheusKey = GroupName + "/is-default-prometheus"
DefaultAlertmanagerKey = GroupName + "/is-default-alertmanager"
DefaultGrafanaKey = GroupName + "/is-default-grafana"
DefaultPersesKey = GroupName + "/is-default-perses"
PrometheusKey = GroupName + "/prometheus"
PrometheusValueAuto = "auto"
PrometheusValueFederated = "federated"
Expand Down
52 changes: 52 additions & 0 deletions api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading