File tree Expand file tree Collapse file tree 5 files changed +35
-4
lines changed Expand file tree Collapse file tree 5 files changed +35
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ helm repo add grafana https://grafana.github.io/helm-charts
21
21
To install the chart with the release name `my-release`:
22
22
23
23
```console
24
- helm install my-release grafana/grafana-mcp
24
+ helm install --set grafana.apiKey=<Grafana_ApiKey> my-release grafana/grafana-mcp
25
25
```
26
26
27
27
Original file line number Diff line number Diff line change 1
- # Leave this file empty to ensure that CI runs builds against the default configuration in values.yaml.
1
+ grafana :
2
+ apiKey : " test"
Original file line number Diff line number Diff line change 92
92
- name : GRAFANA_API_KEY
93
93
valueFrom :
94
94
secretKeyRef :
95
+ {{- if .Values.grafana.apiKey }}
96
+ name : {{ include "grafana-mcp.fullname" . }}
97
+ key : api-key
98
+ {{- else }}
95
99
name : {{ .Values.grafana.apiKeySecret.name }}
96
100
key : {{ .Values.grafana.apiKeySecret.key }}
101
+ {{- end }}
97
102
{{- range $key, $value := .Values.env }}
98
103
- name : {{ $key | quote }}
99
104
value : {{ $value | quote }}
@@ -107,6 +112,7 @@ spec:
107
112
envFrom :
108
113
{{- toYaml . | nindent 12 }}
109
114
{{- end }}
115
+ {{- if or (.Values.debug) (.Values.disabledCategories) (.Values.extraArgs) }}
110
116
args :
111
117
{{- if .Values.debug }}
112
118
- -debug
@@ -117,6 +123,12 @@ spec:
117
123
{{- with .Values.extraArgs }}
118
124
{{- toYaml . | nindent 12 }}
119
125
{{- end }}
126
+ {{- else -}}
127
+ {{- with .Values.extraArgs }}
128
+ args :
129
+ {{- toYaml . | nindent 12 }}
130
+ {{- end }}
131
+ {{- end }}
120
132
{{- with .Values.lifecycle }}
121
133
lifecycle :
122
134
{{- toYaml . | nindent 12 }}
Original file line number Diff line number Diff line change
1
+ {{- if .Values.grafana.apiKey }}
2
+ apiVersion : v1
3
+ kind : Secret
4
+ metadata :
5
+ name : {{ include "grafana-mcp.fullname" . }}
6
+ namespace : {{ include "grafana-mcp.namespace" . }}
7
+ labels :
8
+ {{- include "grafana-mcp.labels" . | nindent 4 }}
9
+ {{- with .Values.annotations }}
10
+ annotations :
11
+ {{- toYaml . | nindent 4 }}
12
+ {{- end }}
13
+ type : Opaque
14
+ stringData :
15
+ api-key : {{ .Values.grafana.apiKey }}
16
+ {{- end }}
Original file line number Diff line number Diff line change @@ -26,12 +26,14 @@ imagePullSecrets: []
26
26
grafana :
27
27
# -- Grafana URL (should point to the main Grafana service)
28
28
url : " http://grafana:3000"
29
+ # -- Grafana ApiKey (if not using a secret)
30
+ apiKey : " "
29
31
# -- Secret containing the Grafana API key
30
32
apiKeySecret :
31
33
# -- Name of the secret containing the API key
32
- name : " grafana-mcp-api-key "
34
+ name : " "
33
35
# -- Key within the secret that contains the API key
34
- key : " api-key "
36
+ key : " "
35
37
36
38
# -- Enable debug mode
37
39
debug : false
You can’t perform that action at this time.
0 commit comments