credential

package
v2.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientIDKey       = "azure.azureoperator.clientid"
	ClientSecretKey   = "azure.azureoperator.clientsecret"
	SubscriptionIDKey = "azure.azureoperator.subscriptionid"
	TenantIDKey       = "azure.azureoperator.tenantid"
	PartnerIDKey      = "azure.azureoperator.partnerid"
	SecretLabel       = "app=credentiald" // nolint:gosec
	SingleTenantSP    = "giantswarm.io/single-tenant-service-principal"
)

Variables

This section is empty.

Functions

func GetAzureClientSetsByCluster

func GetAzureClientSetsByCluster(ctx context.Context, k8sclient kubernetes.Interface, g8sclient versioned.Interface, gsTenantID string) (map[string]*client.AzureClientSet, error)

func GetAzureClientSetsFromCredentialSecrets

func GetAzureClientSetsFromCredentialSecrets(ctx context.Context, k8sclient kubernetes.Interface, gsTenantID string) (map[*client.AzureClientSetConfig]*client.AzureClientSet, error)

func GetAzureClientSetsFromCredentialSecretsBySubscription

func GetAzureClientSetsFromCredentialSecretsBySubscription(ctx context.Context, k8sclient kubernetes.Interface, gsTenantID string) (map[string]*client.AzureClientSet, error)

func GetAzureConfigFromSecret

func GetAzureConfigFromSecret(credential *v1.Secret, gsTenantID string) (*client.AzureClientSetConfig, error)

func GetAzureConfigFromSecretName

func GetAzureConfigFromSecretName(ctx context.Context, k8sClient kubernetes.Interface, name, namespace, gsTenantID string) (*client.AzureClientSetConfig, error)

func GetCredentialSecrets

func GetCredentialSecrets(ctx context.Context, k8sClient kubernetes.Interface) (secrets []v1.Secret, err error)

func IsInvalidConfigFoundError

func IsInvalidConfigFoundError(err error) bool

IsInvalidConfigFoundError asserts invalidConfig.

func IsMissingValue

func IsMissingValue(err error) bool

IsMissingValue asserts missingValueError.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL