Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ba287a

Browse files
committedMay 10, 2023
fix: plugin installation due to read-only file system error
Fixes grafana#1034
1 parent 59de076 commit 3ba287a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎controllers/reconcilers/grafana/deployment_reconciler.go

+6
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ func getContainers(cr *v1beta1.Grafana, scheme *runtime.Scheme, vars *v1beta1.Op
168168
Value: vars.Plugins,
169169
})
170170

171+
// env var to set location where temporary files can be written (i.e. plugin downloads)
172+
envVars = append(envVars, v1.EnvVar{
173+
Name: "TMPDIR",
174+
Value: config2.GrafanaDataPath,
175+
})
176+
171177
containers = append(containers, v1.Container{
172178
Name: "grafana",
173179
Image: image,

0 commit comments

Comments
 (0)