Skip to content

Commit

Permalink
fix: update directory permissions for GPU metrics export
Browse files Browse the repository at this point in the history
  • Loading branch information
gshaibi committed Nov 6, 2024
1 parent d72a73a commit 399a524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/status-exporter/export/fs/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 399a524

Please sign in to comment.