rookceph

package
v0.0.0-...-3e7746c Latest Latest
Warning

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

Go to latest
Published: Aug 7, 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