Skip to content

Commit

Permalink
fixed spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-bisonai committed May 2, 2024
1 parent b77dbe9 commit c4bedf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/secrets/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

type SecretEnv struct {
VaultRole string
JwtPtah string
JwtPath string
VaultSecretPath string
VaultKeyName string
}
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion api/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit c4bedf3

Please sign in to comment.