Change SourceVolumeMode type to v1.PersistentVolumeMode.

This commit is contained in:
Raunak Pradip Shah
2022-04-05 10:05:57 +05:30
parent b1d54a8d26
commit 3c09ceb7f1
4 changed files with 6 additions and 26 deletions

View File

@@ -22,6 +22,7 @@ limitations under the License.
package v1
import (
corev1 "k8s.io/api/core/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
)
@@ -226,7 +227,7 @@ func (in *VolumeSnapshotContentSpec) DeepCopyInto(out *VolumeSnapshotContentSpec
in.Source.DeepCopyInto(&out.Source)
if in.SourceVolumeMode != nil {
in, out := &in.SourceVolumeMode, &out.SourceVolumeMode
*out = new(SourceVolumeMode)
*out = new(corev1.PersistentVolumeMode)
**out = **in
}
return