From 7574f95f7d78aa43a9041207ff41040a2df9df12 Mon Sep 17 00:00:00 2001 From: Hongwei Yu <40435395+yuhongwex@users.noreply.github.com> Date: Thu, 17 Oct 2019 13:25:30 +0800 Subject: [PATCH] optimize comments on exported constants (#83875) * optimize comments on exported constants * remove package in hack/.golint_failures are passing golint --- hack/.golint_failures | 1 - pkg/security/podsecuritypolicy/seccomp/strategy.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hack/.golint_failures b/hack/.golint_failures index df190380e5a..d7078aa9399 100644 --- a/hack/.golint_failures +++ b/hack/.golint_failures @@ -218,7 +218,6 @@ pkg/scheduler/apis/config/v1alpha1 pkg/security/apparmor pkg/security/podsecuritypolicy pkg/security/podsecuritypolicy/group -pkg/security/podsecuritypolicy/seccomp pkg/security/podsecuritypolicy/selinux pkg/security/podsecuritypolicy/user pkg/security/podsecuritypolicy/util diff --git a/pkg/security/podsecuritypolicy/seccomp/strategy.go b/pkg/security/podsecuritypolicy/seccomp/strategy.go index 715156e8a01..0c8d3faf9e5 100644 --- a/pkg/security/podsecuritypolicy/seccomp/strategy.go +++ b/pkg/security/podsecuritypolicy/seccomp/strategy.go @@ -27,9 +27,9 @@ import ( const ( // AllowAny is the wildcard used to allow any profile. AllowAny = "*" - // The annotation key specifying the default seccomp profile. + // DefaultProfileAnnotationKey specifies the default seccomp profile. DefaultProfileAnnotationKey = "seccomp.security.alpha.kubernetes.io/defaultProfileName" - // The annotation key specifying the allowed seccomp profiles. + // AllowedProfilesAnnotationKey specifies the allowed seccomp profiles. AllowedProfilesAnnotationKey = "seccomp.security.alpha.kubernetes.io/allowedProfileNames" )