Skip to content

Commit

Permalink
ProviderConfigSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
ramin-mobilab authored Oct 18, 2023
1 parent 93551d7 commit 8e3c120
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions apis/v1beta1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,29 @@ import (
type ProviderConfigSpec struct {
// Credentials required to authenticate to this provider.
Credentials ProviderCredentials `json:"credentials"`

// ClientID is the user-assigned managed identity's ID
// when Credentials.Source is `InjectedIdentity`. If unset and
// Credentials.Source is `InjectedIdentity`, then a system-assigned
// managed identity is used.
// +optional
ClientID *string `json:"clientID,omitempty"`

// TenantID is the Azure AD tenant ID to be used.
// If unset, tenant ID from Credentials will be used.
// Required if Credentials.Source is InjectedIdentity.
// +kubebuilder:validation:Optional
TenantID *string `json:"tenantID,omitempty"`

// MSIEndpoint is the optional path to a custom endpoint for
// Managed Service Identity.
// +kubebuilder:validation:Optional
MSIEndpoint *string `json:"msiEndpoint,omitempty"`

// The Cloud Environment which should be used. Possible values are "public",
// "usgovernment", "german", and "china". Defaults to "public".
// +kubebuilder:validation:Optional
Environment *string `json:"environment,omitempty"`
}

// ProviderCredentials required to authenticate.
Expand Down

0 comments on commit 8e3c120

Please sign in to comment.