Skip to content

Commit

Permalink
General: Vault authentication via cross-namespace service accounts
Browse files Browse the repository at this point in the history
Signed-off-by: Bojan Zelic <[email protected]>
  • Loading branch information
BojanZelic committed Dec 24, 2024
1 parent 097fec2 commit a141b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scaling/resolver/hashicorpvault_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (vh *HashicorpVaultHandler) token(client *vaultapi.Client) (string, error)
},
}

if err := vh.k8sClient.SubResource("token").Create(context.TODO(), sa, tokenRequest); err != nil {
if err := vh.k8sClient.SubResource("token").Create(context.Background(), sa, tokenRequest); err != nil {
return token, errors.New(fmt.Sprintf("Failed to create token for service account name: %s namespace: %s", saName.Name, saName.Namespace))
}

Expand Down

0 comments on commit a141b41

Please sign in to comment.