From 002b36e1d37ac271a445432c149bf80a99b2d8a0 Mon Sep 17 00:00:00 2001 From: Pankaj Tolani Date: Tue, 6 Feb 2024 14:39:08 +1100 Subject: [PATCH] fix typo in output of vault write kubernetes/creds/auto-managed-sa-and-role --- path_creds.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/path_creds.go b/path_creds.go index d15c968..ea6a326 100644 --- a/path_creds.go +++ b/path_creds.go @@ -336,9 +336,9 @@ func (b *backend) createCreds(ctx context.Context, req *logical.Request, role *r case err != nil: return nil, fmt.Errorf("failed to read TTL of created Kubernetes token for %s/%s: %s", reqPayload.Namespace, genName, err) case createdTokenTTL > theTTL: - respWarning = append(respWarning, fmt.Sprintf("the created Kubernetes service accout token TTL %v is greater than the Vault lease TTL %v", createdTokenTTL, theTTL)) + respWarning = append(respWarning, fmt.Sprintf("the created Kubernetes service account token TTL %v is greater than the Vault lease TTL %v", createdTokenTTL, theTTL)) case createdTokenTTL < theTTL: - respWarning = append(respWarning, fmt.Sprintf("the created Kubernetes service accout token TTL %v is less than the Vault lease TTL %v; capping the lease TTL accordingly", createdTokenTTL, theTTL)) + respWarning = append(respWarning, fmt.Sprintf("the created Kubernetes service account token TTL %v is less than the Vault lease TTL %v; capping the lease TTL accordingly", createdTokenTTL, theTTL)) resp.Secret.TTL = createdTokenTTL }