Skip to content

Commit c1de593

Browse files
committed
minor
1 parent 3546251 commit c1de593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/docker/Create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (h *SidecarHandler) CreateHandler(w http.ResponseWriter, r *http.Request) {
165165
envVars += " -v " + pathsOfVolumes[volumeMount.Name] + ":" + volumeMount.MountPath + ":ro"
166166
} else {
167167
// if it is Bidirectional, add :shared to the volume
168-
if *volumeMount.MountPropagation == v1.MountPropagationBidirectional {
168+
if volumeMount.MountPropagation != nil && *volumeMount.MountPropagation == v1.MountPropagationBidirectional {
169169
envVars += " -v " + pathsOfVolumes[volumeMount.Name] + ":" + volumeMount.MountPath + ":shared"
170170
} else {
171171
envVars += " -v " + pathsOfVolumes[volumeMount.Name] + ":" + volumeMount.MountPath

0 commit comments

Comments
 (0)