move SetResourceMapper to common

This commit is contained in:
Matthew Rich 2025-08-25 01:44:51 +00:00
parent 24a18c3094
commit 59f66af792

View File

@ -42,7 +42,6 @@ type ContainerVolume struct {
volume.Volume `json:",inline" yaml:",inline"`
apiClient ContainerVolumeClient
Resources data.ResourceMapper `json:"-" yaml:"-"`
}
func init() {
@ -85,10 +84,6 @@ func (v *ContainerVolume) NormalizePath() error {
return nil
}
func (v *ContainerVolume) SetResourceMapper(resources data.ResourceMapper) {
v.Resources = resources
}
func (v *ContainerVolume) Clone() data.Resource {
return &ContainerVolume {
Common: v.Common.Clone(),