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.
Click to show internal directories.
Click to hide internal directories.