Skip to content

Commit

Permalink
Merge pull request #14 from wind0r/replace_ioutil
Browse files Browse the repository at this point in the history
replace ioutil function with function from os package
  • Loading branch information
tobikris authored Oct 19, 2022
2 parents 2549d6f + 761d27a commit 7c40364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/client/vault/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package vault

import (
"fmt"
"io/ioutil"
"os"

vault "github.com/hashicorp/vault/api"
"github.com/spf13/viper"
Expand All @@ -26,7 +26,7 @@ func NewVaultClient() (*vault.Client, error) {
if token := viper.GetString("vault_token"); token != "" {
client.SetToken(token)
} else if role := viper.GetString("vault_kube_auth_role"); role != "" {
jwt, err := ioutil.ReadFile(k8sServiceAccountFile)
jwt, err := os.ReadFile(k8sServiceAccountFile)
if err != nil {
return nil, fmt.Errorf("failed to read k8s service account: %w", err)
}
Expand Down

0 comments on commit 7c40364

Please sign in to comment.