diff --git a/path_login.go b/path_login.go index ffcee04c..0c8c507b 100644 --- a/path_login.go +++ b/path_login.go @@ -125,7 +125,7 @@ func (b *kubeAuthBackend) pathLogin() framework.OperationFunc { "service_account_name": serviceAccount.name(), "service_account_namespace": serviceAccount.namespace(), "service_account_secret_name": serviceAccount.SecretName, - "role": roleName, + "role": roleName, }, DisplayName: fmt.Sprintf("%s-%s", serviceAccount.namespace(), serviceAccount.name()), LeaseOptions: logical.LeaseOptions{ diff --git a/path_role_test.go b/path_role_test.go index 6f5c21a0..45343f4a 100644 --- a/path_role_test.go +++ b/path_role_test.go @@ -52,10 +52,10 @@ func TestPath_Create(t *testing.T) { Period: 3 * time.Second, ServiceAccountNames: []string{"name"}, ServiceAccountNamespaces: []string{"namespace"}, - TTL: 1 * time.Second, - MaxTTL: 5 * time.Second, - NumUses: 12, - BoundCIDRs: []*sockaddr.SockAddrMarshaler{}, + TTL: 1 * time.Second, + MaxTTL: 5 * time.Second, + NumUses: 12, + BoundCIDRs: []*sockaddr.SockAddrMarshaler{}, } req := &logical.Request{