cluster

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceLookup = goerrors.New("could not find the requested resource")
)

Functions

This section is empty.

Types

type Client

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

Client wraps up cluster related management handling.

func NewClient

func NewClient(client client.Client, options *Options) *Client

NewClient returns a new client with required parameters.

func (*Client) Create

func (c *Client) Create(ctx context.Context, organizationName, projectName string, options *generated.KubernetesClusterSpec) error

Create creates the implicit cluster indentified by the JTW claims.

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, organizationName, projectName, name string) error

Delete deletes the implicit cluster indentified by the JTW claims.

func (*Client) GetKubeconfig

func (c *Client) GetKubeconfig(ctx context.Context, organizationName, projectName, name string) ([]byte, error)

GetKubeconfig returns the kubernetes configuation associated with a cluster.

func (*Client) List

func (c *Client) List(ctx context.Context, organizationName string) (generated.KubernetesClusters, error)

List returns all clusters owned by the implicit control plane.

func (*Client) Update

func (c *Client) Update(ctx context.Context, organizationName, projectName, name string, request *generated.KubernetesClusterSpec) error

Update implements read/modify/write for the cluster.

type Options

type Options struct {
	NodeNetwork    net.IPNet
	ServiceNetwork net.IPNet
	PodNetwork     net.IPNet
	DNSNameservers []net.IP
}

func (*Options) AddFlags

func (o *Options) AddFlags(f *pflag.FlagSet)

Jump to

Keyboard shortcuts

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