-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates the api version for grafana dashboard and adds more fields
[skip ci] update changelog fix the api version add instance selector update README add check for capabilities Update version with major bump [skip-ci] Update artifacts Updates to GrafanaDashboard [skip ci] Changes apiversion to v1beta1 "Update grafanadashboard (#302)" This reverts commit 1762f00, reversing changes made to 9d55ce1. Revert "[skip-ci] Update artifacts" This reverts commit 826a784. update grafana dashboard #major [skip-ci] Update artifacts Revert "Update grafana dashboard #major (#305)" This reverts commit a3bec38, reversing changes made to 31225c1. Revert "[skip-ci] Update artifacts" This reverts commit e824950. granfana updates [skip-ci] Update artifacts
- Loading branch information
stakater-nordmart-bot
authored and
AsfaMumtaz
committed
Mar 18, 2024
1 parent
9d55ce1
commit f499589
Showing
6 changed files
with
55 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ type: application | |
|
||
# Helm chart Version | ||
|
||
version: 2.3.3 | ||
version: 3.0.0 | ||
|
||
|
||
keywords: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,47 @@ | ||
{{- if and (.Values.grafanaDashboard).enabled (.Capabilities.APIVersions.Has "integreatly.org/v1alpha1") -}} | ||
{{- if and (.Values.grafanaDashboard).enabled (.Capabilities.APIVersions.Has "grafana.integreatly.org/v1beta1") -}} | ||
{{- range $name, $content := .Values.grafanaDashboard.contents }} | ||
--- | ||
apiVersion: integreatly.org/v1alpha1 | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: {{ $name }} | ||
namespace: {{ template "application.namespace" $ }} | ||
labels: | ||
# this label is used as dashboard selector by grafana operator | ||
# this label is used as dashboard selector by grafana operator | ||
grafanaDashboard: grafana-operator | ||
{{- include "application.labels" $ | nindent 4 }} | ||
{{- if $.Values.grafanaDashboard.additionalLabels }} | ||
{{ toYaml $.Values.grafanaDashboard.additionalLabels | indent 4 }} | ||
{{- end }} | ||
{{- if $.Values.grafanaDashboard.annotations }} | ||
annotations: | ||
annotations: | ||
{{ toYaml $.Values.grafanaDashboard.annotations | indent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if $content.json }} | ||
json: | ||
json: | ||
{{ $content.json | toJson }} | ||
{{- end }} | ||
{{- if $content.url }} | ||
url: {{ $content.url }} | ||
{{- end }} | ||
{{- if $content.allowCrossNamespaceImport }} | ||
allowCrossNamespaceImport: {{ $content.allowCrossNamespaceImport }} | ||
{{- end }} | ||
{{- if $content.folder }} | ||
folder: {{ $content.folder }} | ||
{{- end }} | ||
{{- if $content.instanceSelector }} | ||
instanceSelector: | ||
{{ toYaml $content.instanceSelector | indent 4 }} | ||
{{- end }} | ||
{{- if $content.configMapRef }} | ||
configMapRef: | ||
{{ toYaml $content.configMapRef | indent 4 }} | ||
{{- end }} | ||
{{- if $content.datasources }} | ||
datasources: | ||
{{ toYaml $content.datasources | indent 4 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters