powervs

package
v0.1.50 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindOptions added in v0.1.38

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

func CreateInfraOptions added in v0.1.37

func CreateInfraOptions(powerVSOpts *ValidatedCreateOptions, opts *core.CreateOptions) (*powervsinfra.CreateInfraOptions, *powervsinfra.Infra)

func DestroyCluster

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

func NewCreateCommand

func NewCreateCommand(opts *core.RawCreateOptions) *cobra.Command

func NewDestroyCommand

func NewDestroyCommand(opts *core.DestroyOptions) *cobra.Command

Types

type CreateOptions added in v0.1.38

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

func (*CreateOptions) ApplyPlatformSpecifics added in v0.1.38

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

func (*CreateOptions) GenerateNodePools added in v0.1.38

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

func (*CreateOptions) GenerateResources added in v0.1.38

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

type RawCreateOptions added in v0.1.38

type RawCreateOptions struct {
	// ResourceGroup to use in IBM Cloud
	ResourceGroup string
	// Region to use in PowerVS service in IBM Cloud
	Region string
	// Zone to use in PowerVS service in IBM Cloud
	Zone string
	// CloudInstanceID of the existing PowerVS service instance
	// Set this field when reusing existing resources from IBM Cloud
	CloudInstanceID string
	// CloudConnection is name of the existing cloud connection
	// Set this field when reusing existing resources from IBM Cloud
	CloudConnection string
	// VPCRegion to use in IBM Cloud
	// Set this field when reusing existing resources from IBM Cloud
	VPCRegion string
	// VPC is name of the existing VPC instance
	VPC string
	// Debug flag is to enable debug logs in powervs client
	Debug bool
	// RecreateSecrets flag is to delete the existing secrets created in IBM Cloud and recreate new secrets
	// This is required since cannot recover the secret once its created
	// Can be used during rerun
	RecreateSecrets bool
	// PER flag is to choose Power Edge Router via Transit Gateway instead of using cloud connections to connect VPC
	PER bool
	// TransitGatewayLocation to use in Transit gateway service in IBM Cloud
	TransitGatewayLocation string
	// TransitGateway is name of the existing Transit gateway instance
	// Set this field when reusing existing resources from IBM Cloud
	TransitGateway string

	// TransitGatewayGlobalRouting flag is to choose global routing while creating transit gateway
	// If set to false, local routing will be chosen.
	// Default Value: false
	TransitGatewayGlobalRouting bool
	// nodepool related options
	// SysType of the worker node in PowerVS service
	SysType string
	// ProcType of the worker node in PowerVS service
	ProcType hyperv1.PowerVSNodePoolProcType
	// Processors count of the worker node in PowerVS service
	Processors string
	// Memory of the worker node in PowerVS service
	Memory int32
}

func DefaultOptions added in v0.1.38

func DefaultOptions() *RawCreateOptions

func (*RawCreateOptions) Validate added in v0.1.38

type ValidatedCreateOptions added in v0.1.38

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

func (*ValidatedCreateOptions) Complete added in v0.1.38

Jump to

Keyboard shortcuts

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