Skip to content

Commit 7fa74c2

Browse files
synaretephlogistonjohn
authored andcommitted
resources: pass smbdVols to buildEnsureShareCtr
Commit b140141 ("resources: create ensure-share-paths init container") introduced a new init container, which changes the mode of share's directory. Unfortunately, in buildADPodSpec we pass the wrong volumes slice (a slice which does _not_ have the share volume). This bug is evident only when running with smbmetrics enabled, on OpenShift. Signed-off-by: Shachar Sharon <[email protected]>
1 parent 45adc0e commit 7fa74c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/resources/pods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func buildADPodSpec(
113113
podSpec.Volumes = getVolumes(volumes)
114114
podSpec.InitContainers = []corev1.Container{
115115
buildInitCtr(planner, podEnv, smbAllVols),
116-
buildEnsureShareCtr(planner, podEnv, smbAllVols),
116+
buildEnsureShareCtr(planner, podEnv, smbdVols),
117117
buildMustJoinCtr(planner, joinEnv, joinVols),
118118
}
119119
podSpec.Containers = containers

0 commit comments

Comments
 (0)