Skip to content

Commit

Permalink
Add constants for auth-related fields of additionalMetaData
Browse files Browse the repository at this point in the history
Signed-off-by: Vui Lam <[email protected]>
  • Loading branch information
vuil committed Aug 27, 2024
1 parent de610f9 commit 221feaa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/tanzu_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const (

TanzuMissionControlEndpointKey = "tanzuMissionControlEndpoint"
TanzuHubEndpointKey = "tanzuHubEndpoint"
TanzuAuthEndpointKey = "tanzuAuthEndpoint"
TanzuIdpTypeKey = "tanzuIdpType"
)

const (
Expand All @@ -55,6 +57,16 @@ type ResourceInfo struct {
ClusterGroupName string
}

type IdpType string

const (
// UAAIdpType indicates that IDP is UAA (User Account and Authentication)
UAAIdpType IdpType = "uaa"

// CSPIdpType indicsates the IDP is CSP (Cloud Service Provider)
CSPIdpType IdpType = "csp"
)

// cmdOptions specifies the command options
type cmdOptions struct {
outWriter io.Writer
Expand Down

0 comments on commit 221feaa

Please sign in to comment.