Skip to content

Commit

Permalink
docs: Addressed PR review from Tony
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Goodell <[email protected]>
  • Loading branch information
Leonard Goodell committed Sep 24, 2021
1 parent 59902fa commit 366f197
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bootstrap/secret/secure.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ func (p *SecureProvider) DefaultTokenExpiredCallback(expiredToken string) (repla
return reReadToken, true
}

// LoadServiceSecrets loads the service secrets from the specified file and stores them in the service's SecretStore
func (p *SecureProvider) LoadServiceSecrets(filePath string) error {
contents, err := os.ReadFile(filePath)
if err != nil {
Expand Down Expand Up @@ -261,4 +262,4 @@ func prepareSecret(secret ServiceSecret) (string, map[string]string) {
path := strings.TrimSpace(secret.Path)

return path, secretsKV
}
}

0 comments on commit 366f197

Please sign in to comment.