nfs

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultExportName        = "NFSExport"
	DefaultExportPVCReadOnly = false
	DefaultAccessType        = "readwrite"
	DefaultSquash            = "none"
	DefaultLogLevel          = "DEBUG"
	DefaultGraceless         = true
	DefaultFsidDevice        = true
)

NFS server configuration constants.

View Source
const (

	// DefaultNFSPort is the default port for NFS server.
	DefaultNFSPort = 2049
	// DefaultHTTPPort is the default port for NFS server health and metrics.
	DefaultHTTPPort = 80
	// NFSPortName is the name of the port that exposes the NFS server.
	NFSPortName = "nfs"
	// MetricsPortName is the name of the port that exposes the NFS metrics.
	MetricsPortName = "metrics"

	// HealthEndpointPath is the path to query on the HTTP Port for health.
	// This is hardcoded in the NFS container and not settable by the user.
	HealthEndpointPath = "/healthz"
)
View Source
const (
	// DataVolName is the NFS data volume name.
	DataVolName = "nfs-data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

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

Deployment manages the NFS server deployment.

func NewDeployment

func NewDeployment(
	client client.Client,
	kConfig *rest.Config,
	stosCluster *storageosv1.StorageOSCluster,
	nfsServer *storageosv1.NFSServer,
	labels map[string]string,
	recorder record.EventRecorder,
	scheme *runtime.Scheme) *Deployment

NewDeployment returns an initialized Deployment.

func (*Deployment) Delete

func (d *Deployment) Delete() error

Delete deletes all the storageos resources. This explicit delete is implemented instead of depending on the garbage collector because sometimes the garbage collector deletes the resources with owner reference as a CRD without the parent being deleted. This happens especially when a cluster reboots. Althrough the operator re-creates the resources, we want to avoid this behavior by implementing an explcit delete.

func (*Deployment) Deploy

func (d *Deployment) Deploy() error

Deploy deploys a NFS server.

Jump to

Keyboard shortcuts

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