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: 29 Imported by: 0

Documentation

Overview

Package nfs operator to manage NFS Server.

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNFSProvisioner added in v1.3.9

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

NewNFSProvisioner returns an instance of nfsProvisioner

func Run added in v1.3.9

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.3.9

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.3.9

func Stop()

Stop stops the NFS server.

Types

type NFSServerReconciler added in v1.3.9

type NFSServerReconciler struct {
	client.Client
	Context  *clusterd.Context
	Scheme   *runtime.Scheme
	Log      *capnslog.PackageLogger
	Recorder record.EventRecorder
}

func (*NFSServerReconciler) Reconcile added in v1.3.9

func (r *NFSServerReconciler) Reconcile(req ctrl.Request) (_ ctrl.Result, reterr error)

type Operator

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

Operator type for managing NFS Server.

func New

func New(context *clusterd.Context) *Operator

New creates an operator instance.

func (*Operator) Run

func (o *Operator) Run() error

Run the operator instance.

type Webhook added in v1.3.9

type Webhook struct {
	Port    int
	CertDir string
}

func NewWebhook added in v1.3.9

func NewWebhook(port int, certDir string) *Webhook

func (*Webhook) Run added in v1.3.9

func (w *Webhook) Run() error

Jump to

Keyboard shortcuts

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