From 714e60e8905d6055a71a2111b4c5b19202dfafbe Mon Sep 17 00:00:00 2001 From: NickrenREN Date: Fri, 14 Apr 2017 16:49:30 +0800 Subject: [PATCH] Define const annotation variable once Move annotation to package imported by both pkg/volume and pkg/volume/validation Kubernetes-commit: e443277d58e3ff1f0701ab97a1f4932389c27847 --- pkg/api/types.go | 3 +++ pkg/api/v1/types.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkg/api/types.go b/pkg/api/types.go index 8f4cf5e3..45a66361 100644 --- a/pkg/api/types.go +++ b/pkg/api/types.go @@ -385,6 +385,9 @@ const ( // BetaStorageClassAnnotation represents the beta/previous StorageClass annotation. // It's currently still used and will be held for backwards compatibility BetaStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class" + + // MountOptionAnnotation defines mount option annotation used in PVs + MountOptionAnnotation = "volume.beta.kubernetes.io/mount-options" ) // +genclient=true diff --git a/pkg/api/v1/types.go b/pkg/api/v1/types.go index 461e27dc..0ce815b3 100644 --- a/pkg/api/v1/types.go +++ b/pkg/api/v1/types.go @@ -434,6 +434,9 @@ const ( // BetaStorageClassAnnotation represents the beta/previous StorageClass annotation. // It's currently still used and will be held for backwards compatibility BetaStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class" + + // MountOptionAnnotation defines mount option annotation used in PVs + MountOptionAnnotation = "volume.beta.kubernetes.io/mount-options" ) // +genclient=true