embercsi

package
v0.0.0-...-ab013e0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeSA           string = "ember-csi-operator"
	ControllerSA     string = "ember-csi-operator"
	DEFAULT_CSI_SPEC        = 0.2
)

Default values

Variables

View Source
var Cluster string

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new EmberStorageBackend Controller and adds it to the Manager. The Manager will set fields on the Controller and Start it when the Manager is Started.

func GetPluginDomainName

func GetPluginDomainName(instanceName string) string

Plugin's domain name to use. Prior to CSI spec 1.0, we used reverse domain name, after 1.0 we use forward.

func ReadConfig

func ReadConfig(configFile *string)

Read Config and store values from Config File or Use DefaultConfig

Types

type Config

type Config struct {
	ConfigVersion string              `yaml:"version,omitempty"`
	Sidecars      map[string]Versions `yaml:"sidecars,omitempty"`
	Drivers       map[string]string   `yaml:"drivers"`
}
var Conf *Config

Global variables

type ReconcileEmberStorageBackend

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

ReconcileEmberStorageBackend reconciles a EmberStorageBackend object

func (*ReconcileEmberStorageBackend) Reconcile

Reconcile reads that state of the cluster for a EmberStorageBackend object and makes changes based on the state read and what is in the EmberStorageBackend.Spec

type Versions

type Versions struct {
	CSISpecVersion   string `yaml:"X_CSI_SPEC_VERSION,omitempty"`
	Attacher         string `yaml:"external-attacher,omitempty"`
	Provisioner      string `yaml:"external-provisioner,omitempty"`
	Registrar        string `yaml:"driver-registrar,omitempty"` // For use in older CSI specs
	NodeRegistrar    string `yaml:"node-driver-registrar,omitempty"`
	ClusterRegistrar string `yaml:"cluster-driver-registrar,omitempty"`
	Resizer          string `yaml:"external-resizer,omitempty"`
	Snapshotter      string `yaml:"external-snapshotter,omitempty"`
	LivenessProbe    string `yaml:"livenessprobe,omitempty"`
}

Jump to

Keyboard shortcuts

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