Documentation
¶
Index ¶
- Constants
- func BindDeveloperOptions(opts *RawCreateOptions, flags *pflag.FlagSet)
- func BindOptions(opts *RawCreateOptions, flags *pflag.FlagSet)
- func BindProductCoreFlags(opts *core.RawCreateOptions, flags *pflag.FlagSet)
- func BindProductFlags(opts *RawCreateOptions, flags *pflag.FlagSet)
- func CreateInfraOptions(azureOpts *ValidatedCreateOptions, opts *core.CreateOptions) (azureinfra.CreateInfraOptions, error)
- func DestroyCluster(ctx context.Context, o *core.DestroyOptions, client crclient.Client) error
- func NewCreateCommand(opts *core.RawCreateOptions, clientProviders ...*core.ClientProvider) *cobra.Command
- func NewDestroyCommand(opts *core.DestroyOptions, clientProviders ...*core.ClientProvider) *cobra.Command
- type AzureEncryptionKey
- type CreateOptions
- type RawCreateOptions
- type ValidatedCreateOptions
Constants ¶
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 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
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
func (o *RawCreateOptions) Validate(ctx context.Context, coreOpts *core.CreateOptions) (core.PlatformCompleter, error)
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
func (o *ValidatedCreateOptions) Complete(ctx context.Context, opts *core.CreateOptions) (core.Platform, error)
Complete completes the Azure create cluster command options