From 7308b83a9937464ada1c7b78c394ec7d3dce2d74 Mon Sep 17 00:00:00 2001 From: SataQiu Date: Fri, 30 Sep 2022 14:53:46 +0800 Subject: [PATCH] remove the unused constant AnnotationInvalidReason since sysctl annotations are deprecated and migrated to fields --- pkg/kubelet/sysctl/allowlist.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kubelet/sysctl/allowlist.go b/pkg/kubelet/sysctl/allowlist.go index beb1de3ba4e..16bc95fff08 100644 --- a/pkg/kubelet/sysctl/allowlist.go +++ b/pkg/kubelet/sysctl/allowlist.go @@ -26,8 +26,7 @@ import ( ) const ( - AnnotationInvalidReason = "InvalidSysctlAnnotation" - ForbiddenReason = "SysctlForbidden" + ForbiddenReason = "SysctlForbidden" ) // patternAllowlist takes a list of sysctls or sysctl patterns (ending in *) and