azure

package
v0.1.87 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 30 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SATokenIssuerSecret = "sa-token-issuer-key"
	ObjectEncoding      = "utf-8"
)

Variables

This section is empty.

Functions

func BindDeveloperOptions added in v0.1.38

func BindDeveloperOptions(opts *RawCreateOptions, flags *pflag.FlagSet)

BindDeveloperOptions binds developer/development only options for the Azure create cluster command

func BindOptions added in v0.1.38

func BindOptions(opts *RawCreateOptions, flags *pflag.FlagSet)

func BindProductCoreFlags added in v0.1.74

func BindProductCoreFlags(opts *core.RawCreateOptions, flags *pflag.FlagSet)

BindProductCoreFlags binds core options that are needed for the Azure product CLI This allows the product CLI to use --infra-json to consume output from 'hcp create infra azure'

func BindProductFlags added in v0.1.73

func BindProductFlags(opts *RawCreateOptions, flags *pflag.FlagSet)

BindProductFlags binds customer-facing flags for self-managed Azure in the product CLI

func CreateInfraOptions added in v0.1.37

func CreateInfraOptions(azureOpts *ValidatedCreateOptions, opts *core.CreateOptions) (azureinfra.CreateInfraOptions, error)

CreateInfraOptions creates the Azure infrastructure options for the HostedCluster create cluster command

func DestroyCluster

func DestroyCluster(ctx context.Context, o *core.DestroyOptions, client crclient.Client) error

func NewCreateCommand

func NewCreateCommand(opts *core.RawCreateOptions, clientProviders ...*core.ClientProvider) *cobra.Command

func NewDestroyCommand

func NewDestroyCommand(opts *core.DestroyOptions, clientProviders ...*core.ClientProvider) *cobra.Command

Types

type AzureEncryptionKey added in v0.1.38

type AzureEncryptionKey struct {
	KeyVaultName string
	KeyName      string
	KeyVersion   string
}

AzureEncryptionKey contains the information about the encryption key for the HostedCluster to be used for etcd encryption with KMSv2

type CreateOptions added in v0.1.38

type CreateOptions struct {
	// contains filtered or unexported fields
}

CreateOptions is the options for the Azure create cluster command

func (*CreateOptions) ApplyPlatformSpecifics added in v0.1.38

func (o *CreateOptions) ApplyPlatformSpecifics(cluster *hyperv1.HostedCluster) error

ApplyPlatformSpecifics applies the Azure platform specific settings to the HostedCluster

func (*CreateOptions) GenerateNodePools added in v0.1.38

func (o *CreateOptions) GenerateNodePools(constructor core.DefaultNodePoolConstructor) []*hyperv1.NodePool

GenerateNodePools generates the initial nodepool(s) for the Azure HostedCluster create cluster command

func (*CreateOptions) GenerateResources added in v0.1.38

func (o *CreateOptions) GenerateResources() ([]crclient.Object, error)

GenerateResources generates the Kubernetes resources for the Azure HostedCluster create cluster command

type RawCreateOptions added in v0.1.38

type RawCreateOptions struct {
	CredentialsFile                                     string
	Location                                            string
	EncryptionKeyID                                     string
	AvailabilityZones                                   []string
	ResourceGroupName                                   string
	VnetID                                              string
	NetworkSecurityGroupID                              string
	ResourceGroupTags                                   map[string]string
	SubnetID                                            string
	KMSUserAssignedCredsSecretName                      string
	TechPreviewEnabled                                  bool
	DNSZoneRGName                                       string
	ManagedIdentitiesFile                               string
	DataPlaneIdentitiesFile                             string
	WorkloadIdentitiesFile                              string
	KarpenterClientID                                   string
	AssignServicePrincipalRoles                         bool
	AssignCustomHCPRoles                                bool
	IssuerURL                                           string
	ServiceAccountTokenIssuerKeyPath                    string
	MultiArch                                           bool
	EndpointAccess                                      string
	EndpointAccessPrivateNATSubnetID                    string
	EndpointAccessPrivateAdditionalAllowedSubscriptions []string
	OAuthPublishingStrategy                             string
	AutoNode                                            bool

	NodePoolOpts *azurenodepool.RawAzurePlatformCreateOptions
}

RawCreateOptions is the raw options for the Azure create cluster command

func DefaultOptions added in v0.1.38

func DefaultOptions() *RawCreateOptions

func (*RawCreateOptions) Validate added in v0.1.38

Validate validates the Azure create cluster command options

type ValidatedCreateOptions added in v0.1.38

type ValidatedCreateOptions struct {
	// contains filtered or unexported fields
}

ValidatedCreateOptions is the validated options for the Azure create cluster command

func (*ValidatedCreateOptions) Complete added in v0.1.38

Complete completes the Azure create cluster command options

Jump to

Keyboard shortcuts

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