The Tanzu Core CLI project provides the core functionality of the Tanzu CLI. The CLI is based on a plugin architecture where CLI command functionality can be delivered through independently developed plugin binaries
Apache License 2.0
33
stars
21
forks
source link
Experimental: Get the Tanzu Hub Endpoint based on the Central Config Metadata #764
If useCentralConfig is false, Tanzu CLI will use CSP to get the hub endpoint
While using CSP it will get the cspProductIdentifier and cspDisplayName from central config keys cli.core.tanzu_platform_csp_product_identifier and cli.core.tanzu_platform_csp_display_name respectively.
If useCentralConfig is true, Tanzu CLI uses the central config key endpointProduction to get the endpoint for production and endpointStaging for staging. If the values are empty it will use default values specified within the CLI.
Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
To be added
Release note
Experimental: Get the Tanzu Hub Endpoint based on the Central Config Metadata
What this PR does / why we need it
Get the Tanzu Hub Endpoint based on the Central Config Metadata
Adds following new configuration to the central config
If
useCentralConfig
isfalse
, Tanzu CLI will use CSP to get the hub endpointcspProductIdentifier
andcspDisplayName
from central config keyscli.core.tanzu_platform_csp_product_identifier
andcli.core.tanzu_platform_csp_display_name
respectively.If
useCentralConfig
istrue
, Tanzu CLI uses the central config keyendpointProduction
to get the endpoint for production andendpointStaging
for staging. If the values are empty it will use default values specified within the CLI.Which issue(s) this PR fixes
Fixes #
Describe testing done for PR
Release note
Additional information
Special notes for your reviewer