From 7146cb3880e88650d09724e0a58e744b578cbc55 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Thu, 4 Mar 2021 15:02:42 -0600 Subject: [PATCH] Remove old debug-make-impersonation-token command. Signed-off-by: Matt Moyer --- cmd/debug-make-impersonation-token/main.go | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 cmd/debug-make-impersonation-token/main.go diff --git a/cmd/debug-make-impersonation-token/main.go b/cmd/debug-make-impersonation-token/main.go deleted file mode 100644 index 972ab27e..00000000 --- a/cmd/debug-make-impersonation-token/main.go +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -package main - -import ( - "encoding/base64" - "encoding/json" - "fmt" - "os" - - corev1 "k8s.io/api/core/v1" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - - authenticationv1alpha1 "go.pinniped.dev/generated/latest/apis/concierge/authentication/v1alpha1" - loginv1alpha1 "go.pinniped.dev/generated/latest/apis/concierge/login/v1alpha1" -) - -func main() { - reqJSON, err := json.Marshal(&loginv1alpha1.TokenCredentialRequest{ - ObjectMeta: metav1.ObjectMeta{ - Namespace: os.Getenv("PINNIPED_TEST_CONCIERGE_NAMESPACE"), - }, - TypeMeta: metav1.TypeMeta{ - Kind: "TokenCredentialRequest", - APIVersion: loginv1alpha1.GroupName + "/v1alpha1", - }, - Spec: loginv1alpha1.TokenCredentialRequestSpec{ - Token: os.Getenv("PINNIPED_TEST_USER_TOKEN"), - Authenticator: corev1.TypedLocalObjectReference{ - APIGroup: &authenticationv1alpha1.SchemeGroupVersion.Group, - Kind: os.Getenv("PINNIPED_AUTHENTICATOR_KIND"), - Name: os.Getenv("PINNIPED_AUTHENTICATOR_NAME"), - }, - }, - }) - if err != nil { - panic(err) - } - fmt.Println(base64.StdEncoding.EncodeToString(reqJSON)) -}