Skip to content

Commit

Permalink
fix: adapt projected volume in any version1
Browse files Browse the repository at this point in the history
Signed-off-by: renxiangyu <[email protected]>
  • Loading branch information
renxiangyu committed Dec 29, 2023
1 parent 33e8a4f commit ef508ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 3 additions & 2 deletions pkg/utils/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Check failure on line 45 in pkg/utils/constants.go

View workflow job for this annotation

GitHub Actions / lint

G101: Potential hardcoded credentials (gosec)
)

const (
Expand Down

0 comments on commit ef508ef

Please sign in to comment.