Define const annotation variable once

Move annotation to package imported by both pkg/volume and pkg/volume/validation
This commit is contained in:
NickrenREN
2017-04-14 16:49:30 +08:00
parent 5dd914382f
commit e443277d58
9 changed files with 17 additions and 10 deletions

View File

@@ -362,7 +362,7 @@ func TestMountOptionFromSpec(t *testing.T) {
func createVolumeSpecWithMountOption(name string, mountOptions string, spec v1.PersistentVolumeSpec) *Spec {
annotations := map[string]string{
MountOptionAnnotation: mountOptions,
v1.MountOptionAnnotation: mountOptions,
}
objMeta := metav1.ObjectMeta{
Name: name,