nfs

package
v0.0.0-...-60e2527 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package nfs contains functions to obtain standard and recommended deployment artifacts for the NFS CSI-driver on Kubernetes. These artifacts can be used by automation tools that want to deploy Ceph-CSI.

Index

Constants

This section is empty.

Variables

View Source
var CSIConfigMapDefaults = CSIConfigMapValues{
	Name:        "ceph-csi-config",
	ClusterInfo: []kubernetes.ClusterInfo{},
}
View Source
var CSIDriverDefaults = CSIDriverValues{
	Name: "nfs.csi.ceph.com",
}
View Source
var CSIProvisionerRBACDefaults = kubernetes.CSIProvisionerRBACValues{
	Namespace:      "default",
	ServiceAccount: "nfs-csi-provisioner",
}

Functions

func NewCSIConfigMap

func NewCSIConfigMap(values CSIConfigMapValues) (*v1.ConfigMap, error)

NewCSIConfigMap takes a name from the CSIConfigMapValues struct and relaces the value in the template. A ConfigMap object is returned which can be created in the Kubernetes cluster.

func NewCSIConfigMapYAML

func NewCSIConfigMapYAML(values CSIConfigMapValues) (string, error)

NewCSIConfigMapYAML takes a name from the CSIConfigMapValues struct and relaces the value in the template. A ConfigMap object in YAML is returned which can be created in the Kubernetes cluster.

func NewCSIDriver

func NewCSIDriver(values CSIDriverValues) (*storagev1.CSIDriver, error)

NewCSIDriver takes a driver name from the CSIDriverValues struct and replaces the value in the template. A CSIDriver object is returned which can be created in the Kubernetes cluster.

func NewCSIDriverYAML

func NewCSIDriverYAML(values CSIDriverValues) (string, error)

NewCSIDriverYAML takes a driver name from the CSIDriverValues struct and replaces the value in the template. A CSIDriver object in YAML is returned which can be created in the Kubernetes cluster.

func NewCSIProvisionerRBAC

NewCSIProvisionerRBAC takes a driver name from the CSIProvisionerRBACValues struct and replaces the value in the template. A CSIProvisionerRBAC object is returned which can be used to create permissions for the provisioner in the Kubernetes cluster.

func NewCSIProvisionerRBACYAML

func NewCSIProvisionerRBACYAML(values kubernetes.CSIProvisionerRBACValues) (string, error)

Types

type CSIConfigMapValues

type CSIConfigMapValues struct {
	Name        string
	ClusterInfo []kubernetes.ClusterInfo
}

type CSIDriverValues

type CSIDriverValues struct {
	Name string
}

Jump to

Keyboard shortcuts

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