ContainerImage.Pinniped/cmd/pinniped/cmd
Matt Moyer 4e25bcd4b2
Generate more helpful context/cluster/user names in pinniped get kubeconfig
Before this change, the "context", "cluster", and "user" fields in generated kubeconfig YAML were always hardcoded to "pinniped". This could be confusing if you generated many kubeconfigs for different clusters.

After this change, the fields will be copied from their names in the original kubeconfig, suffixed with "-pinniped". This suffix can be overridden by setting the new `--generated-name-suffix` CLI flag.

The goal of this change is that you can distinguish between kubeconfigs generated for different clusters, as well as being able to distinguish between the Pinniped and original (admin) kubeconfigs for a cluster.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2021-04-05 12:36:02 -05:00
..
testdata Generate more helpful context/cluster/user names in pinniped get kubeconfig 2021-04-05 12:36:02 -05:00
alpha.go Add initial "pinniped alpha login oidc" partial implementation. 2020-10-06 12:42:29 -05:00
cobra_util_test.go Add initial "pinniped alpha login oidc" partial implementation. 2020-10-06 12:42:29 -05:00
cobra_util.go Declare war on namespaces 2021-02-10 21:52:07 -05:00
flag_types_test.go certauthority.go: Refactor issuing client versus server certs 2021-03-12 16:09:37 -08:00
flag_types.go Rename this flag types for consistency. 2021-03-08 14:33:38 -06:00
generate_markdown_help.go cmd/pinniped: add generate-markdown-help for generating CLI doc 2021-03-23 09:35:58 -04:00
get.go Update test assertions related to spf13/cobra. 2020-12-17 16:31:08 -06:00
kube_util.go cmd/pinniped: add whoami command 2021-03-18 08:56:34 -04:00
kubeconfig_test.go Generate more helpful context/cluster/user names in pinniped get kubeconfig 2021-04-05 12:36:02 -05:00
kubeconfig.go Generate more helpful context/cluster/user names in pinniped get kubeconfig 2021-04-05 12:36:02 -05:00
login_oidc_test.go certauthority.go: Refactor issuing client versus server certs 2021-03-12 16:09:37 -08:00
login_oidc.go Capitalize "Concierge" in these error messages as well, for consistency. 2021-03-11 16:24:20 -06:00
login_static_test.go certauthority.go: Refactor issuing client versus server certs 2021-03-12 16:09:37 -08:00
login_static.go Capitalize "Concierge" in these error messages as well, for consistency. 2021-03-11 16:24:20 -06:00
login.go Overhaul pinniped CLI subcommands. 2020-12-15 12:28:03 -06:00
root.go cmd/pinniped: delete get-kubeconfig + exchange-token 2021-02-09 17:01:57 -05:00
version_test.go Update test assertions related to spf13/cobra. 2020-12-17 16:31:08 -06:00
version.go cmd/pinniped: add version command 2020-09-28 10:44:33 -04:00
whoami_test.go Generate more helpful context/cluster/user names in pinniped get kubeconfig 2021-04-05 12:36:02 -05:00
whoami.go Merge branch 'main' into impersonation-proxy 2021-03-22 09:27:18 -07:00