rookceph

package
v0.0.0-...-40cc410 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AppLabel = "rookceph"
)

Variables

This section is empty.

Functions

func BlockPool

func BlockPool(namespace string, opts BlockPoolOptions) *unstructured.Unstructured

func Client

func Client(namespace string, opts ClientOptions) *unstructured.Unstructured

func ClientSecret

func ClientSecret(name, namespace, clientName string, keyring []byte, monHosts []string) *corev1.Secret

func ClientVolumeMounts

func ClientVolumeMounts(name, path string) []corev1.VolumeMount

func GetCephClientSecret

func GetCephClientSecret(ctx context.Context, c client.Client, name, namespace string) ([]byte, error)

func GetCephMonitorAddrs

func GetCephMonitorAddrs(ctx context.Context, c client.Client, namespace string) ([]string, error)

Types

type BlockPoolOptions

type BlockPoolOptions struct {
	Name           string
	FailureDomain  string
	ReplicatedSize string
}

type ClientOptions

type ClientOptions struct {
	Name string
	Caps map[string]string
}

type ClientSecretAppender

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

func NewClientSecretAppender

func NewClientSecretAppender(volumes *[]corev1.Volume, volumeMounts *[]corev1.VolumeMount) *ClientSecretAppender

func (*ClientSecretAppender) Append

func (c *ClientSecretAppender) Append(name string)

Jump to

Keyboard shortcuts

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