From 93638baba79f42f6d8a9d1b1a853d54111affac1 Mon Sep 17 00:00:00 2001 From: Daniel Hougaard <62331820+DanielHougaard@users.noreply.github.com> Date: Sat, 15 Jun 2024 02:34:21 +0200 Subject: [PATCH] Update agent.go --- cli/packages/cmd/agent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/packages/cmd/agent.go b/cli/packages/cmd/agent.go index 7f64f5cee..77fcab0be 100644 --- a/cli/packages/cmd/agent.go +++ b/cli/packages/cmd/agent.go @@ -61,8 +61,8 @@ type UniversalAuth struct { } type KubernetesAuth struct { - IdentityID string `yaml:"identity-id"` - ServiceAccountTokenPath string `yaml:"service-account-token-path"` + IdentityID string `yaml:"identity-id"` + ServiceAccountToken string `yaml:"service-account-token"` } type AzureAuth struct { @@ -557,7 +557,7 @@ func (tm *AgentManager) FetchKubernetesAuthAccessToken() (credential infisicalSd serviceAccountTokenPath := os.Getenv(util.INFISICAL_KUBERNETES_SERVICE_ACCOUNT_TOKEN_NAME) if serviceAccountTokenPath == "" { - serviceAccountTokenPath = kubernetesAuthConfig.ServiceAccountTokenPath + serviceAccountTokenPath = kubernetesAuthConfig.ServiceAccountToken if serviceAccountTokenPath == "" { serviceAccountTokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token" }