File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ func handleVolumeToMount(
6767
6868 if volume .Volume != nil {
6969 result .VolumeOptions .NoCopy = volume .Volume .NoCopy
70+ result .VolumeOptions .Subpath = volume .Volume .Subpath
7071 }
7172
7273 if stackVolume .Name != "" {
Original file line number Diff line number Diff line change @@ -410,7 +410,8 @@ type ServiceVolumeBind struct {
410410
411411// ServiceVolumeVolume are options for a service volume of type volume
412412type ServiceVolumeVolume struct {
413- NoCopy bool `mapstructure:"nocopy" yaml:"nocopy,omitempty" json:"nocopy,omitempty"`
413+ NoCopy bool `mapstructure:"nocopy" yaml:"nocopy,omitempty" json:"nocopy,omitempty"`
414+ Subpath string `mapstructure:"subpath" yaml:"subpath,omitempty" json:"subpath,omitempty"`
414415}
415416
416417// ServiceVolumeImage are options for a service volume of type image
You can’t perform that action at this time.
0 commit comments