Documentation ¶
Index ¶
Constants ¶
View Source
const ( // #nosec NamespacedSecretName = "aso-credential" // #nosec FederatedTokenFilePath = "/var/run/secrets/tokens/azure-identity" )
Variables ¶
This section is empty.
Functions ¶
func NewClientCertificateCredential ¶
func NewClientCertificateCredential(tenantID, clientID string, clientCertificate, password []byte) (*azidentity.ClientCertificateCredential, error)
Types ¶
type Credential ¶
type Credential struct {
// contains filtered or unexported fields
}
Credential describes a credential used to connect to Azure
func NewDefaultCredential ¶
func NewDefaultCredential(tokenCred azcore.TokenCredential, namespace string, subscriptionID string) *Credential
func (*Credential) CredentialFrom ¶
func (c *Credential) CredentialFrom() types.NamespacedName
func (*Credential) SecretsEqual ¶
func (c *Credential) SecretsEqual(other *Credential) bool
func (*Credential) SubscriptionID ¶
func (c *Credential) SubscriptionID() string
func (*Credential) TokenCredential ¶
func (c *Credential) TokenCredential() azcore.TokenCredential
type CredentialProvider ¶
type CredentialProvider interface {
GetCredential(ctx context.Context, obj genruntime.MetaObject) (*Credential, error)
}
func NewCredentialProvider ¶
func NewCredentialProvider( globalCredential *Credential, kubeClient kubeclient.Client, ) CredentialProvider
Click to show internal directories.
Click to hide internal directories.