Skip to content
Merged
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
4 changes: 2 additions & 2 deletions operator/pkg/controllers/grafana/grafana_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,9 @@ func GrafanaDataSource(databaseURI string, cert []byte, serviceAccountToken stri
IsDefault: true,
URL: objURI.Host,
User: objURI.User.Username(),
Database: database,
Editable: false,
JSONData: &JsonData{
Database: database,
QueryTimeout: "300s",
TimeInterval: "30s",
},
Expand Down Expand Up @@ -796,14 +796,14 @@ type GrafanaDatasource struct {
OrgID int `yaml:"orgId,omitempty"`
Type string `yaml:"type,omitempty"`
URL string `yaml:"url,omitempty"`
Database string `yaml:"database,omitempty"`
User string `yaml:"user,omitempty"`
Version int `yaml:"version,omitempty"`
JSONData *JsonData `yaml:"jsonData,omitempty"`
SecureJSONData *SecureJsonData `yaml:"secureJsonData,omitempty"`
}

type JsonData struct {
Database string `yaml:"database,omitempty"`
SSLMode string `yaml:"sslmode,omitempty"`
TLSAuth bool `yaml:"tlsAuth,omitempty"`
TLSAuthWithCACert bool `yaml:"tlsAuthWithCACert,omitempty"`
Expand Down