nfs

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package nfs manages NFS ganesha servers for Ceph

Index

Constants

This section is empty.

Variables

View Source
var CephNFSResource = opkit.CustomResource{
	Name:    "cephnfs",
	Plural:  "cephnfses",
	Group:   cephv1.CustomResourceGroup,
	Version: cephv1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(cephv1.CephNFS{}).Name(),
}

CephNFSResource represents the file system custom resource

Functions

This section is empty.

Types

type CephNFSController

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

CephNFSController represents a controller for NFS custom resources

func NewCephNFSController

func NewCephNFSController(clusterInfo *cephconfig.ClusterInfo, context *clusterd.Context, dataDirHostPath, namespace, rookImage string, clusterSpec *cephv1.ClusterSpec, ownerRef metav1.OwnerReference) *CephNFSController

NewCephNFSController create controller for watching NFS custom resources created

func (*CephNFSController) ParentClusterChanged

func (c *CephNFSController) ParentClusterChanged(cluster cephv1.ClusterSpec, clusterInfo *cephconfig.ClusterInfo, isUpgrade bool)

ParentClusterChanged performs the steps needed to update the NFS cluster when the parent Ceph cluster has changed.

func (*CephNFSController) StartWatch

func (c *CephNFSController) StartWatch(namespace string, stopCh chan struct{}) error

StartWatch watches for instances of CephNFS custom resources and acts on them

Jump to

Keyboard shortcuts

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