nfs

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package nfs to manage an NFS export.

Package nfs operator to manage NFS Server.

Portion of this file is comming from https://github.com/kubernetes-incubator/external-storage/blob/master/nfs/pkg/server/server.go

Index

Constants

View Source
const (
	NFSConfigMapPath = "/nfs-ganesha/config"
)

Variables

View Source
var NFSResource = opkit.CustomResource{
	Name:    customResourceName,
	Plural:  customResourceNamePlural,
	Group:   nfsv1alpha1.CustomResourceGroup,
	Version: nfsv1alpha1.Version,
	Scope:   apiextensionsv1beta1.NamespaceScoped,
	Kind:    reflect.TypeOf(nfsv1alpha1.NFSServer{}).Name(),
}

NFSResource represents the nfs export custom resource

Functions

func NewNFSProvisioner added in v1.0.0

func NewNFSProvisioner(clientset kubernetes.Interface, rookClientset rookclient.Interface) *nfsProvisioner

NewNFSProvisioner returns an instance of nfsProvisioner

func Run added in v1.0.0

func Run(ganeshaConfig string) error

Run : run the NFS server in the foreground until it exits Ideally, it should never exit when run in foreground mode We force foreground to allow the provisioner process to restart the server if it crashes - daemonization prevents us from using Wait() for this purpose

func Setup added in v1.0.0

func Setup(ganeshaConfig string) error

Setup sets up various prerequisites and settings for the server. If an error is encountered at any point it returns it instantly

func Stop added in v1.0.0

func Stop()

Stop stops the NFS server.

Types

type Controller

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

Controller represents a controller object for nfs server custom resources

func NewController

func NewController(context *clusterd.Context, containerImage string) *Controller

NewController create controller for watching nfsserver custom resources created

func (*Controller) StartWatch

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

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

type Operator

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

Operator type for managing NFS Server.

func New

func New(context *clusterd.Context, containerImage string) *Operator

New creates an operator instance.

func (*Operator) Run

func (o *Operator) Run() error

Run the operator instance.

Jump to

Keyboard shortcuts

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