Documentation
¶
Index ¶
- func BindOptions(opts *RawCreateOptions, flags *pflag.FlagSet)
- func DestroyCluster(ctx context.Context, destroyOptions *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 ¶
func BindOptions(opts *RawCreateOptions, flags *pflag.FlagSet)
BindOptions binds the GCP-specific flags to the provided flag set
func DestroyCluster ¶
func DestroyCluster(ctx context.Context, destroyOptions *core.DestroyOptions) error
DestroyCluster destroys a GCP HostedCluster and its associated infrastructure
func NewCreateCommand ¶
func NewCreateCommand(opts *core.RawCreateOptions) *cobra.Command
NewCreateCommand creates a new cobra command for creating GCP clusters
func NewDestroyCommand ¶
func NewDestroyCommand(opts *core.DestroyOptions) *cobra.Command
NewDestroyCommand creates a new cobra command for destroying GCP clusters
Types ¶
type CreateOptions ¶
type CreateOptions struct {
// contains filtered or unexported fields
}
CreateOptions represents the completed and validated options for creating a GCP cluster
func (*CreateOptions) ApplyPlatformSpecifics ¶
func (o *CreateOptions) ApplyPlatformSpecifics(hostedCluster *hyperv1.HostedCluster) error
ApplyPlatformSpecifics applies GCP-specific configurations to the HostedCluster
func (*CreateOptions) GenerateNodePools ¶
func (o *CreateOptions) GenerateNodePools(constructor core.DefaultNodePoolConstructor) []*hyperv1.NodePool
GenerateNodePools generates the NodePool resources for GCP
func (*CreateOptions) GenerateResources ¶
func (o *CreateOptions) GenerateResources() ([]client.Object, error)
GenerateResources generates additional resources for GCP
type RawCreateOptions ¶
type RawCreateOptions struct {
// Project is the GCP project ID where the HostedCluster will be created
Project string
// Region is the GCP region where the HostedCluster will be created
Region string
// Network is the VPC network name for the cluster
Network string
// PrivateServiceConnectSubnet is the subnet for Private Service Connect endpoints
PrivateServiceConnectSubnet string
// WorkloadIdentityProjectNumber is the numeric GCP project identifier for WIF configuration
WorkloadIdentityProjectNumber string
// WorkloadIdentityPoolID is the workload identity pool identifier
WorkloadIdentityPoolID string
// WorkloadIdentityProviderID is the workload identity provider identifier
WorkloadIdentityProviderID string
// NodePoolServiceAccount is the Google Service Account email for CAPG controllers
NodePoolServiceAccount string
// ControlPlaneServiceAccount is the Google Service Account email for the Control Plane Operator
ControlPlaneServiceAccount string
}
RawCreateOptions contains the raw command-line options for creating a GCP cluster
func DefaultOptions ¶
func DefaultOptions() *RawCreateOptions
DefaultOptions returns default options for GCP cluster creation
func (*RawCreateOptions) Validate ¶
func (o *RawCreateOptions) Validate(_ context.Context, _ *core.CreateOptions) (core.PlatformCompleter, error)
Validate validates the GCP create cluster command options
type ValidatedCreateOptions ¶
type ValidatedCreateOptions struct {
// contains filtered or unexported fields
}
ValidatedCreateOptions represents validated options for creating a GCP cluster
func (*ValidatedCreateOptions) Complete ¶
func (o *ValidatedCreateOptions) Complete(ctx context.Context, opts *core.CreateOptions) (core.Platform, error)
Complete completes the GCP create cluster command options