Documentation ¶
Overview ¶
Package identity contains tools for managing secrets used to access the VCenter API.
Index ¶
Constants ¶
View Source
const ( // UsernameKey is the key used for the username. UsernameKey = "username" // PasswordKey is the key used for the password. PasswordKey = "password" )
Variables ¶
This section is empty.
Functions ¶
func IsOwnedByIdentityOrCluster ¶ added in v1.2.0
func IsOwnedByIdentityOrCluster(ownerReferences []metav1.OwnerReference) bool
IsOwnedByIdentityOrCluster discovers if a secret is owned by a VSphereCluster or VSphereClusterIdentity.
func IsSecretIdentity ¶
func IsSecretIdentity(cluster *infrav1.VSphereCluster) bool
IsSecretIdentity returns true if the VSphereCluster identity is a Secret.
Types ¶
type Credentials ¶
Credentials are the user credentials used with the VSphere API.
func GetCredentials ¶
func GetCredentials(ctx context.Context, c client.Client, cluster *infrav1.VSphereCluster, controllerNamespace string) (*Credentials, error)
GetCredentials returns the VCenter credentials for the VSphereCluster.
Click to show internal directories.
Click to hide internal directories.