k8sclient

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const LabelBastionKey = "cluster.x-k8s.io/deployment-name"

Variables

This section is empty.

Functions

func BastionLabel added in v0.5.0

func BastionLabel(clusterName string) string

Types

type Bastions added in v0.5.0

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

func NewBastions added in v0.5.0

func NewBastions(client client.Client, finalizer string) *Bastions

func (*Bastions) GetBastionIPList added in v0.5.0

func (b *Bastions) GetBastionIPList(ctx context.Context, cluster *capg.GCPCluster) ([]string, error)

type GCPCluster

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

func NewGCPCluster

func NewGCPCluster(client client.Client) *GCPCluster

func (*GCPCluster) AddFinalizer

func (g *GCPCluster) AddFinalizer(ctx context.Context, capgCluster *capg.GCPCluster, finalizer string) error

func (*GCPCluster) Get

func (g *GCPCluster) Get(ctx context.Context, namespacedName types.NamespacedName) (*capg.GCPCluster, error)

func (*GCPCluster) GetOwner

func (g *GCPCluster) GetOwner(ctx context.Context, capgCluster *capg.GCPCluster) (*capi.Cluster, error)

func (*GCPCluster) RemoveFinalizer

func (g *GCPCluster) RemoveFinalizer(ctx context.Context, capgCluster *capg.GCPCluster, finalizer string) error

Jump to

Keyboard shortcuts

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