Skip to content

Commit

Permalink
Merge pull request #783 from weisdd/feature/query-timeout
Browse files Browse the repository at this point in the history
feat: add support for queryTimeout in datasources
  • Loading branch information
pb82 committed Jul 5, 2022
2 parents 44bfa42 + 77144b5 commit 8538935
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/integreatly/v1alpha1/grafanadatasource_types.go
Expand Up @@ -87,6 +87,7 @@ type GrafanaDataSourceFields struct {
// GrafanaDataSourceJsonData contains the most common json options
// See https://grafana.com/docs/administration/provisioning/#datasources
type GrafanaDataSourceJsonData struct {
QueryTimeout string `json:"queryTimeout,omitempty"`
OauthPassThru bool `json:"oauthPassThru,omitempty"`
TlsAuth bool `json:"tlsAuth,omitempty"`
TlsAuthWithCACert bool `json:"tlsAuthWithCACert,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions bundle/manifests/integreatly.org_grafanadatasources.yaml
Expand Up @@ -202,6 +202,8 @@ spec:
type: integer
postgresVersion:
type: integer
queryTimeout:
type: string
search:
properties:
hide:
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/integreatly.org_grafanadatasources.yaml
Expand Up @@ -204,6 +204,8 @@ spec:
type: integer
postgresVersion:
type: integer
queryTimeout:
type: string
search:
properties:
hide:
Expand Down
2 changes: 2 additions & 0 deletions deploy/manifests/latest/crds.yaml
Expand Up @@ -312,6 +312,8 @@ spec:
type: integer
postgresVersion:
type: integer
queryTimeout:
type: string
search:
properties:
hide:
Expand Down
7 changes: 7 additions & 0 deletions documentation/api.md
Expand Up @@ -919,6 +919,13 @@ GrafanaDataSourceJsonData contains the most common json options See https://graf
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>queryTimeout</b></td>
<td>string</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b><a href="#grafanadatasourcespecdatasourcesindexjsondatasearch">search</a></b></td>
<td>object</td>
Expand Down

0 comments on commit 8538935

Please sign in to comment.