mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-19 14:34:27 +00:00
Add a context parameter so we can enforce a timeout for the token exchange.
Signed-off-by: Matt Moyer <moyerm@vmware.com>
This commit is contained in:
@@ -5,11 +5,13 @@ SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package client
|
||||
|
||||
import "k8s.io/client-go/pkg/apis/clientauthentication"
|
||||
import (
|
||||
"context"
|
||||
|
||||
func ExchangeToken(token, caBundle, apiEndpoint string) (*clientauthentication.ExecCredential, error) {
|
||||
_ = token
|
||||
_ = caBundle
|
||||
_ = apiEndpoint
|
||||
"k8s.io/client-go/pkg/apis/clientauthentication"
|
||||
)
|
||||
|
||||
func ExchangeToken(ctx context.Context, token, caBundle, apiEndpoint string) (*clientauthentication.ExecCredential, error) {
|
||||
_, _, _, _ = ctx, token, caBundle, apiEndpoint
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user