gcp

package
v0.1.70 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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
}

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

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

Complete completes the GCP create cluster command options

Jump to

Keyboard shortcuts

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