Documentation ¶
Overview ¶
Package rbd contains functions to obtain standard and recommended deployment artifacts for the RBD CSI-driver on Kubernetes. These artifacts can be used by automation tools that want to deploy Ceph-CSI.
Index ¶
- Variables
- func NewCSIConfigMap(values CSIConfigMapValues) (*v1.ConfigMap, error)
- func NewCSIConfigMapYAML(values CSIConfigMapValues) (string, error)
- func NewCSIDriver(values CSIDriverValues) (*storagev1.CSIDriver, error)
- func NewCSIDriverYAML(values CSIDriverValues) (string, error)
- type CSIConfigMapValues
- type CSIDriverValues
Constants ¶
This section is empty.
Variables ¶
var CSIConfigMapDefaults = CSIConfigMapValues{ Name: "ceph-csi-config", ClusterInfo: []kubernetes.ClusterInfo{}, }
var CSIDriverDefaults = CSIDriverValues{
Name: "rbd.csi.ceph.com",
}
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 relaces 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 relaces the value in the template. A CSIDriver object in YAML is returned which can be created in the Kubernetes cluster.
Types ¶
type CSIConfigMapValues ¶
type CSIConfigMapValues struct { Name string ClusterInfo []kubernetes.ClusterInfo }
type CSIDriverValues ¶
type CSIDriverValues struct {
Name string
}