From c4bedf31549e1f4c8d834873e7dc49e90269dabc Mon Sep 17 00:00:00 2001 From: jo Date: Thu, 2 May 2024 12:57:19 +0900 Subject: [PATCH] fixed spelling --- api/secrets/secrets.go | 4 ++-- api/utils/utils.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/secrets/secrets.go b/api/secrets/secrets.go index 7db6316ba..14731cf0c 100644 --- a/api/secrets/secrets.go +++ b/api/secrets/secrets.go @@ -10,7 +10,7 @@ import ( type SecretEnv struct { VaultRole string - JwtPtah string + JwtPath string VaultSecretPath string VaultKeyName string } @@ -29,7 +29,7 @@ func (s *SecretEnv) GetSecretFromVaultWithKubernetesAuth() (*Secrets, error) { k8sAuth, err := auth.NewKubernetesAuth( s.VaultRole, - auth.WithServiceAccountTokenPath(s.JwtPtah), + auth.WithServiceAccountTokenPath(s.JwtPath), ) if err != nil { return nil, fmt.Errorf("unable to initialize Kubernetes auth method: %w", err) diff --git a/api/utils/utils.go b/api/utils/utils.go index c2deac5e9..d991e57d8 100644 --- a/api/utils/utils.go +++ b/api/utils/utils.go @@ -277,7 +277,7 @@ func LoadEnvVars() (map[string]interface{}, error) { log.Println("Using Vault to get secrets") secretsEnv := secrets.SecretEnv{ VaultRole: vaultRole, - JwtPtah: jwtPath, + JwtPath: jwtPath, VaultSecretPath: vaultSecretPath, VaultKeyName: vaultKeyName, }