Skip to content

Commit 212894f

Browse files
synaretephlogistonjohn
authored andcommitted
resources: add missing stateVol in buildUserPodSpec
Add missing state-dir ('/var/lib/samba') as shared volume to both samba-server and sambe-metrics exporter. Without it samba-metrics can not read relevant information via 'smbstatus' from its co-located samba-server container. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 402bb16 commit 212894f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/resources/pods.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ func buildUserPodSpec(
130130
shareVol := shareVolumeAndMount(planner, pvcName)
131131
vols = append(vols, shareVol)
132132

133+
stateVol := sambaStateVolumeAndMount(planner)
134+
vols = append(vols, stateVol)
135+
133136
configVol := configVolumeAndMount(planner)
134137
vols = append(vols, configVol)
135138

0 commit comments

Comments
 (0)