azure

package
v0.0.0-...-dbdff16 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OCPClusterIDTagKeyPrefix is the cluster identifying tag key prefix that is added to
	// the Azure resources created by OCP.
	OCPClusterIDTagKeyPrefix = "kubernetes.io_cluster"

	// OCPClusterIDTagValue is the value of the cluster identifying tag that is added to
	// the Azure resources created by OCP.
	OCPClusterIDTagValue = "owned"
)

Variables

This section is empty.

Functions

func GetTagList

func GetTagList(infraStatus *configv1.InfrastructureStatus) map[string]*string

GetTagList returns a list of tags by merging the OCP default tags and the user-defined tags present in the Infrastructure.Status

func NewFakeProvider

func NewFakeProvider(config Config, client client.DNSClient) (dns.Provider, error)

func NewProvider

func NewProvider(config Config, operatorReleaseVersion string, AzureWorkloadIdentityEnabled bool) (dns.Provider, error)

NewProvider creates a new dns.Provider for Azure. It only supports DNSRecords with type A.

Types

type Config

type Config struct {
	// Environment is the azure cloud environment.
	Environment string
	// ClientID is an azure service principal appID.
	ClientID string
	// ClientSecret is an azure service principal's credential.
	ClientSecret string
	// FederatedTokenFile is an azure federated token file.
	FederatedTokenFile string
	// TenantID is the azure identity's tenant ID.
	TenantID string
	// SubscriptionID is the azure identity's subscription ID.
	SubscriptionID string
	// ARMEndpoint specifies a URL to use for resource management in non-sovereign clouds such as Azure Stack.
	// The value is not needed for public Azure, Azure Government as it can be determined by the SDK.
	ARMEndpoint string
	// InfraID is the generated ID that is used to identify cloud resources created by the installer.
	InfraID string
	// Tags is a map of user-defined tags which should be applied to new resources created by the operator.
	Tags map[string]*string
}

Config is the necessary input to configure the manager for azure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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