manila

package
v0.0.0-...-256a660 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManilaController

func NewManilaController(
	operatorClient v1helpers.OperatorClient,
	kubeClient kubernetes.Interface,
	informers v1helpers.KubeInformersForNamespaces,
	csiControllers []Runnable,
	eventRecorder events.Recorder) factory.Controller

func NewOpenStackClient

func NewOpenStackClient(cloudConfigFilename string) (*openStackClient, error)

Types

type ManilaController

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

This ManilaController watches OpenStack and:

  1. Installs Manila CSI drivers (Manila itself, NFS) once it detects that there is Manila present (by running provided manilaOperatorSet).
  2. Creates StorageClass for each share type provided by Manila.
  3. If there is no Manila in the OpenStack where the cluster runs, it marks the operator with condition Disabled=true.

Note that the CSI driver(s) are not un-installed when Manila becomes missing or it stops providing shares of given type - Manila bight be under (short?) maintenance / reconfiguration. Similarly, StorageClasses are not deleted when a share type disappears from Manila.

type Runnable

type Runnable interface {
	Run(ctx context.Context, workers int)
}

Jump to

Keyboard shortcuts

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