mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 16:27:40 +00:00
Update agent.go
This commit is contained in:
@@ -61,8 +61,8 @@ type UniversalAuth struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type KubernetesAuth struct {
|
type KubernetesAuth struct {
|
||||||
IdentityID string `yaml:"identity-id"`
|
IdentityID string `yaml:"identity-id"`
|
||||||
ServiceAccountTokenPath string `yaml:"service-account-token-path"`
|
ServiceAccountToken string `yaml:"service-account-token"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type AzureAuth struct {
|
type AzureAuth struct {
|
||||||
@@ -557,7 +557,7 @@ func (tm *AgentManager) FetchKubernetesAuthAccessToken() (credential infisicalSd
|
|||||||
|
|
||||||
serviceAccountTokenPath := os.Getenv(util.INFISICAL_KUBERNETES_SERVICE_ACCOUNT_TOKEN_NAME)
|
serviceAccountTokenPath := os.Getenv(util.INFISICAL_KUBERNETES_SERVICE_ACCOUNT_TOKEN_NAME)
|
||||||
if serviceAccountTokenPath == "" {
|
if serviceAccountTokenPath == "" {
|
||||||
serviceAccountTokenPath = kubernetesAuthConfig.ServiceAccountTokenPath
|
serviceAccountTokenPath = kubernetesAuthConfig.ServiceAccountToken
|
||||||
if serviceAccountTokenPath == "" {
|
if serviceAccountTokenPath == "" {
|
||||||
serviceAccountTokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token"
|
serviceAccountTokenPath = "/var/run/secrets/kubernetes.io/serviceaccount/token"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user