nfs

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

scale-out, multi-cloud NFS

Package nfs for the Edgefs manager.

Index

Constants

This section is empty.

Variables

View Source
var NFSResource = k8sutil.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   edgefsv1.CustomResourceGroup,
	Version: edgefsv1.Version,
	Kind:    reflect.TypeOf(edgefsv1.NFS{}).Name(),
}

NFSResource represents the nfs custom resource

Functions

This section is empty.

Types

type NFSController

type NFSController struct {
	NetworkSpec rookv1.NetworkSpec
	// contains filtered or unexported fields
}

NFSController represents a controller object for nfs custom resources

func NewNFSController

func NewNFSController(
	context *clusterd.Context,
	namespace string,
	rookImage string,
	NetworkSpec rookv1.NetworkSpec,
	dataDirHostPath string,
	dataVolumeSize resource.Quantity,
	placement rookv1.Placement,
	resources v1.ResourceRequirements,
	resourceProfile string,
	ownerRef metav1.OwnerReference,
	useHostLocalTime bool,
) *NFSController

NewNFSController create controller for watching nfs custom resources created

func (*NFSController) CreateOrUpdate

func (c *NFSController) CreateOrUpdate(s edgefsv1.NFS, update bool, ownerRefs []metav1.OwnerReference) error

Start the nfs instance

func (*NFSController) CreateService

func (c *NFSController) CreateService(s edgefsv1.NFS, ownerRefs []metav1.OwnerReference) error

Start the rgw manager

func (*NFSController) DeleteService

func (c *NFSController) DeleteService(s edgefsv1.NFS) error

Delete NFS service and possibly some artifacts.

func (*NFSController) ParentClusterChanged added in v1.3.9

func (c *NFSController) ParentClusterChanged(cluster edgefsv1.ClusterSpec)

func (*NFSController) StartWatch

func (c *NFSController) StartWatch(stopCh chan struct{})

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

func (*NFSController) UpdateService

func (c *NFSController) UpdateService(s edgefsv1.NFS, ownerRefs []metav1.OwnerReference) error

Jump to

Keyboard shortcuts

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