From 399a524e0038063921baa2f2fa8d6730d85fb6f2 Mon Sep 17 00:00:00 2001 From: gshaibi Date: Wed, 6 Nov 2024 15:45:40 +0200 Subject: [PATCH] fix: update directory permissions for GPU metrics export --- internal/status-exporter/export/fs/exporter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/status-exporter/export/fs/exporter.go b/internal/status-exporter/export/fs/exporter.go index de7f9ca..ae280de 100644 --- a/internal/status-exporter/export/fs/exporter.go +++ b/internal/status-exporter/export/fs/exporter.go @@ -54,7 +54,7 @@ func (e *FsExporter) export(nodeTopology *topology.NodeTopology) { log.Printf("Exporting pod %s gpu stats to filesystem", podUuid) path := fmt.Sprintf("/runai/proc/pod/%s/metrics/gpu/%d", podUuid, gpuIdx) - if err := os.MkdirAll(path, 0644); err != nil { + if err := os.MkdirAll(path, 0755); err != nil { log.Printf("Failed creating directory for pod %s: %s", podUuid, err.Error()) }