Documentation ¶
Index ¶
- Constants
- func GetAzureClientSetsByCluster(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[string]*client.AzureClientSet, error)
- func GetAzureClientSetsFromCredentialSecrets(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[*client.AzureClientSetConfig]*client.AzureClientSet, error)
- func GetAzureClientSetsFromCredentialSecretsBySubscription(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[string]*client.AzureClientSet, error)
- func GetAzureConfigFromSecret(credential *v1.Secret, gsTenantID string) (*client.AzureClientSetConfig, error)
- func GetAzureConfigFromSecretName(ctx context.Context, ctrlClient ctrlclient.Client, ...) (*client.AzureClientSetConfig, error)
- func GetCredentialSecrets(ctx context.Context, ctrlClient ctrlclient.Client) (secrets []v1.Secret, err error)
- func IsInvalidConfigFoundError(err error) bool
- func IsMissingValue(err error) bool
Constants ¶
View Source
const ( ClientIDKey = "azure.azureoperator.clientid" ClientSecretKey = "azure.azureoperator.clientsecret" SubscriptionIDKey = "azure.azureoperator.subscriptionid" TenantIDKey = "azure.azureoperator.tenantid" PartnerIDKey = "azure.azureoperator.partnerid" SingleTenantSP = "giantswarm.io/single-tenant-service-principal" )
Variables ¶
This section is empty.
Functions ¶
func GetAzureClientSetsByCluster ¶
func GetAzureClientSetsByCluster(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[string]*client.AzureClientSet, error)
func GetAzureClientSetsFromCredentialSecrets ¶
func GetAzureClientSetsFromCredentialSecrets(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[*client.AzureClientSetConfig]*client.AzureClientSet, error)
func GetAzureClientSetsFromCredentialSecretsBySubscription ¶
func GetAzureClientSetsFromCredentialSecretsBySubscription(ctx context.Context, ctrlClient ctrlclient.Client, gsTenantID string) (map[string]*client.AzureClientSet, error)
func GetAzureConfigFromSecretName ¶
func GetAzureConfigFromSecretName(ctx context.Context, ctrlClient ctrlclient.Client, name, namespace, gsTenantID string) (*client.AzureClientSetConfig, error)
func GetCredentialSecrets ¶
func IsInvalidConfigFoundError ¶
IsInvalidConfigFoundError asserts invalidConfig.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.