rbd

package
v0.0.0-...-5357999 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

Constants

This section is empty.

Variables

View Source
var CSIConfigMapDefaults = CSIConfigMapValues{
	Name:        "ceph-csi-config",
	ClusterInfo: []kubernetes.ClusterInfo{},
}
View Source
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
}

Jump to

Keyboard shortcuts

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