Documentation ¶
Overview ¶
Package kubernetes interacts with the Kubernetes API to update an fetch objects related to joining nodes.
Index ¶
- type Client
- func (c *Client) AddNodeToJoiningNodes(ctx context.Context, nodeName string, componentsReference string, ...) error
- func (c *Client) CreateConfigMap(ctx context.Context, name string, data map[string]string) error
- func (c *Client) GetComponents(ctx context.Context, configMapName string) (components.Components, error)
- func (c *Client) GetConfigMapData(ctx context.Context, name, key string) (string, error)
- func (c *Client) GetK8sComponentsRefFromNodeVersionCRD(ctx context.Context, nodeName string) (string, error)
- func (c *Client) UpdateConfigMap(ctx context.Context, name, key, value string) error
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 (*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) CreateConfigMap ¶
CreateConfigMap creates a configmap in the kube-system namespace with the provided name and data.
func (*Client) GetComponents ¶
func (c *Client) GetComponents(ctx context.Context, configMapName string) (components.Components, error)
GetComponents returns the components of the cluster.
func (*Client) GetConfigMapData ¶ added in v2.12.0
GetConfigMapData returns the data for the given key in the configmap with the given name.
Click to show internal directories.
Click to hide internal directories.