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 ¶
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 ¶
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 ¶
func (r *ReconcileEmberStorageBackend) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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"` }
Click to show internal directories.
Click to hide internal directories.