4e25bcd4b2
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> |
||
---|---|---|
.. | ||
testdata | ||
alpha.go | ||
cobra_util_test.go | ||
cobra_util.go | ||
flag_types_test.go | ||
flag_types.go | ||
generate_markdown_help.go | ||
get.go | ||
kube_util.go | ||
kubeconfig_test.go | ||
kubeconfig.go | ||
login_oidc_test.go | ||
login_oidc.go | ||
login_static_test.go | ||
login_static.go | ||
login.go | ||
root.go | ||
version_test.go | ||
version.go | ||
whoami_test.go | ||
whoami.go |