Skip to content

Commit

Permalink
bug: fix named volume detection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-jpq committed Oct 27, 2024
1 parent eab2c01 commit c151f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transformer/kubernetes/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ func (k *Kubernetes) ConfigVolumes(name string, service kobject.ServiceConfig) (
// check if ro/rw mode is defined, default rw
readonly := len(volume.Mode) > 0 && (volume.Mode == "ro" || volume.Mode == "rox")
mountHost := volume.Host
if mountHost == "" {
if volume.VolumeName == "" && mountHost == "" {
mountHost = volume.MountPath
}
// return useconfigmap and readonly,
Expand Down

0 comments on commit c151f1c

Please sign in to comment.