Documentation
¶
Index ¶
- func BindOptions(opts *RawCreateOptions, flags *pflag.FlagSet)
- func CreateInfraOptions(powerVSOpts *ValidatedCreateOptions, opts *core.CreateOptions) (*powervsinfra.CreateInfraOptions, *powervsinfra.Infra)
- func DestroyCluster(ctx context.Context, o *core.DestroyOptions) error
- func NewCreateCommand(opts *core.RawCreateOptions) *cobra.Command
- func NewDestroyCommand(opts *core.DestroyOptions) *cobra.Command
- type CreateOptions
- type RawCreateOptions
- type ValidatedCreateOptions
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
// 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
// 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
func (o *RawCreateOptions) Validate(ctx context.Context, opts *core.CreateOptions) (core.PlatformCompleter, error)
type ValidatedCreateOptions ¶ added in v0.1.38
type ValidatedCreateOptions struct {
// contains filtered or unexported fields
}
func (*ValidatedCreateOptions) Complete ¶ added in v0.1.38
func (o *ValidatedCreateOptions) Complete(ctx context.Context, opts *core.CreateOptions) (core.Platform, error)
Click to show internal directories.
Click to hide internal directories.