Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianco95 committed Jun 11, 2024
1 parent 3546251 commit c1de593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/docker/Create.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (h *SidecarHandler) CreateHandler(w http.ResponseWriter, r *http.Request) {
envVars += " -v " + pathsOfVolumes[volumeMount.Name] + ":" + volumeMount.MountPath + ":ro"
} else {
// if it is Bidirectional, add :shared to the volume
if *volumeMount.MountPropagation == v1.MountPropagationBidirectional {
if volumeMount.MountPropagation != nil && *volumeMount.MountPropagation == v1.MountPropagationBidirectional {
envVars += " -v " + pathsOfVolumes[volumeMount.Name] + ":" + volumeMount.MountPath + ":shared"
} else {
envVars += " -v " + pathsOfVolumes[volumeMount.Name] + ":" + volumeMount.MountPath
Expand Down

0 comments on commit c1de593

Please sign in to comment.