From ef508ef188a6c7a6693918c82eb53f4bd34b9499 Mon Sep 17 00:00:00 2001 From: renxiangyu Date: Fri, 29 Dec 2023 18:04:43 +0800 Subject: [PATCH] fix: adapt projected volume in any version1 Signed-off-by: renxiangyu --- .../cluster-manager/controllers/pod/storage_handler.go | 1 + pkg/utils/constants.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/clustertree/cluster-manager/controllers/pod/storage_handler.go b/pkg/clustertree/cluster-manager/controllers/pod/storage_handler.go index bb3ff9380..79d48afff 100644 --- a/pkg/clustertree/cluster-manager/controllers/pod/storage_handler.go +++ b/pkg/clustertree/cluster-manager/controllers/pod/storage_handler.go @@ -3,6 +3,7 @@ package pod import ( "context" "fmt" + corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/runtime" diff --git a/pkg/utils/constants.go b/pkg/utils/constants.go index 9b082185e..4b371effe 100644 --- a/pkg/utils/constants.go +++ b/pkg/utils/constants.go @@ -40,8 +40,9 @@ const ( DefaultContainerdSockAddress = "/run/containerd/containerd.sock" DefaultVersion = "latest" DefaultTarName = "kosmos-io.tar.gz" - DefaultServiceAccountName = "default" - DefaultServiceAccountToken = "kosmos.io/service-account.name" + // nolint + DefaultServiceAccountName = "default" + DefaultServiceAccountToken = "kosmos.io/service-account.name" ) const (