identity

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

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

type Credentials struct {
	Username string
	Password string
}

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.

Jump to

Keyboard shortcuts

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