kubernetes

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package kubernetes interacts with the Kubernetes API to update an fetch objects related to joining nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a kubernetes client.

func New

func New() (*Client, error)

New creates a new kubernetes client.

func (*Client) AddNodeToJoiningNodes

func (c *Client) AddNodeToJoiningNodes(ctx context.Context, nodeName string, componentsReference string, isControlPlane bool) error

AddNodeToJoiningNodes adds the provided node as a joining node CRD.

func (*Client) GetComponents

func (c *Client) GetComponents(ctx context.Context, configMapName string) (components.Components, error)

GetComponents returns the components of the cluster.

func (*Client) GetK8sComponentsRefFromNodeVersionCRD added in v2.4.0

func (c *Client) GetK8sComponentsRefFromNodeVersionCRD(ctx context.Context, nodeName string) (string, error)

GetK8sComponentsRefFromNodeVersionCRD returns the K8sComponentsRef from the node version CRD.

Jump to

Keyboard shortcuts

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