mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Define const annotation variable once
Move annotation to package imported by both pkg/volume and pkg/volume/validation
This commit is contained in:
@@ -68,7 +68,7 @@ func TestValidatePersistentVolumes(t *testing.T) {
|
||||
|
||||
func testVolumeWithMountOption(name string, namespace string, mountOptions string, spec api.PersistentVolumeSpec) *api.PersistentVolume {
|
||||
annotations := map[string]string{
|
||||
MountOptionAnnotation: mountOptions,
|
||||
api.MountOptionAnnotation: mountOptions,
|
||||
}
|
||||
objMeta := metav1.ObjectMeta{
|
||||
Name: name,
|
||||
|
||||
Reference in New Issue
Block a user