Merge pull request #878 from enj/enj/i/cli_link

Change default install hint to use get.pinniped.dev/cli
This commit is contained in:
Mo Khan 2021-10-26 17:42:53 -04:00 committed by GitHub
commit 3f698d24e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 22 deletions

View File

@ -148,7 +148,7 @@ func kubeconfigCommand(deps kubeconfigDeps) *cobra.Command {
f.StringVarP(&flags.outputPath, "output", "o", "", "Output file path (default: stdout)") f.StringVarP(&flags.outputPath, "output", "o", "", "Output file path (default: stdout)")
f.StringVar(&flags.generatedNameSuffix, "generated-name-suffix", "-pinniped", "Suffix to append to generated cluster, context, user kubeconfig entries") f.StringVar(&flags.generatedNameSuffix, "generated-name-suffix", "-pinniped", "Suffix to append to generated cluster, context, user kubeconfig entries")
f.StringVar(&flags.credentialCachePath, "credential-cache", "", "Path to cluster-specific credentials cache") f.StringVar(&flags.credentialCachePath, "credential-cache", "", "Path to cluster-specific credentials cache")
f.StringVar(&flags.installHint, "install-hint", "The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli for more details", "This text is shown to the user when the pinniped CLI is not installed.") f.StringVar(&flags.installHint, "install-hint", "The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli for more details", "This text is shown to the user when the pinniped CLI is not installed.")
mustMarkHidden(cmd, "oidc-debug-session-cache") mustMarkHidden(cmd, "oidc-debug-session-cache")
// --oidc-skip-listen is mainly needed for testing. We'll leave it hidden until we have a non-testing use case. // --oidc-skip-listen is mainly needed for testing. We'll leave it hidden until we have a non-testing use case.

View File

@ -133,7 +133,7 @@ func TestGetKubeconfig(t *testing.T) {
--credential-cache string Path to cluster-specific credentials cache --credential-cache string Path to cluster-specific credentials cache
--generated-name-suffix string Suffix to append to generated cluster, context, user kubeconfig entries (default "-pinniped") --generated-name-suffix string Suffix to append to generated cluster, context, user kubeconfig entries (default "-pinniped")
-h, --help help for kubeconfig -h, --help help for kubeconfig
--install-hint string This text is shown to the user when the pinniped CLI is not installed. (default "The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli for more details") --install-hint string This text is shown to the user when the pinniped CLI is not installed. (default "The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli for more details")
--kubeconfig string Path to kubeconfig file --kubeconfig string Path to kubeconfig file
--kubeconfig-context string Kubeconfig context name (default: current active context) --kubeconfig-context string Kubeconfig context name (default: current active context)
--no-concierge Generate a configuration which does not use the Concierge, but sends the credential to the cluster directly --no-concierge Generate a configuration which does not use the Concierge, but sends the credential to the cluster directly
@ -1327,7 +1327,7 @@ func TestGetKubeconfig(t *testing.T) {
- --token=test-token - --token=test-token
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`) `)
@ -1392,7 +1392,7 @@ func TestGetKubeconfig(t *testing.T) {
- --token-env=TEST_TOKEN - --token-env=TEST_TOKEN
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`) `)
@ -1462,7 +1462,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -1548,7 +1548,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -1661,7 +1661,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -1770,7 +1770,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -1849,7 +1849,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-type=ldap - --upstream-identity-provider-type=ldap
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -1928,7 +1928,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-type=oidc - --upstream-identity-provider-type=oidc
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2003,7 +2003,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2076,7 +2076,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2156,7 +2156,7 @@ func TestGetKubeconfig(t *testing.T) {
- --request-audience=test-audience - --request-audience=test-audience
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2234,7 +2234,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-flow=foobar - --upstream-identity-provider-flow=foobar
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2317,7 +2317,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-flow=foobar - --upstream-identity-provider-flow=foobar
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2375,7 +2375,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-type=ldap - --upstream-identity-provider-type=ldap
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2436,7 +2436,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-type=ldap - --upstream-identity-provider-type=ldap
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2497,7 +2497,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-type=ldap - --upstream-identity-provider-type=ldap
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2559,7 +2559,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-type=ldap - --upstream-identity-provider-type=ldap
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2622,7 +2622,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-flow=foobar - --upstream-identity-provider-flow=foobar
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2683,7 +2683,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-flow=cli_password - --upstream-identity-provider-flow=cli_password
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,
@ -2743,7 +2743,7 @@ func TestGetKubeconfig(t *testing.T) {
- --upstream-identity-provider-flow=cli_password - --upstream-identity-provider-flow=cli_password
command: '.../path/to/pinniped' command: '.../path/to/pinniped'
env: [] env: []
installHint: The pinniped CLI does not appear to be installed. See https://pinniped.dev/docs/howto/install-cli installHint: The pinniped CLI does not appear to be installed. See https://get.pinniped.dev/cli
for more details for more details
provideClusterInfo: true provideClusterInfo: true
`, `,

View File

@ -4,6 +4,12 @@
status = 302 status = 302
force = true force = true
[[redirects]]
from = "/cli"
to = "https://pinniped.dev/docs/howto/install-cli"
status = 302
force = true
[[redirects]] [[redirects]]
from = "/latest/*" from = "/latest/*"
to = "https://github.com/vmware-tanzu/pinniped/releases/latest/download/:splat" to = "https://github.com/vmware-tanzu/pinniped/releases/latest/download/:splat"