csiaddonsnode

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// Client contains the gRPC connection to the CSI-driver that supports
	// the CSI-Addons operations. This is used to get the identity of the
	// CSI-driver that is included in the CSIAddonsNode object.
	Client client.Client

	// Config is a ReST Config for the Kubernets API.
	Config *rest.Config

	// Node is the hostname of the system where the sidecar is running.
	Node string

	// Endpoint is the location where the sidecar receives connections on
	// from the CSI-Addons Controller.
	Endpoint string

	// PodName is the (unique) name of the Pod that contains this sidecar.
	PodName string

	// PodNamespace is the Kubernetes Namespace where the Pod with this
	// sidecar is running.
	PodNamespace string

	// PodUID is the UID of the Pod that contains this sidecar.
	PodUID string
}

Manager is a helper that creates the CSIAddonsNode for the running sidecar.

func (*Manager) Deploy

func (mgr *Manager) Deploy() error

Deploy creates CSIAddonsNode custom resource with all required information. When information to create the CSIAddonsNode is missing, an error will be returned immediately. If creating the CSIAddonsNode in the Kubernetes cluster fails (missing CRD, RBAC limitations, ...), an error will be logged, and creation will be retried.

Jump to

Keyboard shortcuts

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