spec

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package spec provides Kubernetes controller/pod/container spec items used for many Ceph daemons

Package spec provides Kubernetes controller/pod/container spec items used for many Ceph daemons

Index

Constants

View Source
const (
	// ConfigInitContainerName is the name which is given to the config initialization container
	// in all Ceph pods.
	ConfigInitContainerName = "config-init"
)
View Source
const (
	KeyringSecretKeyName = "keyring"
)

Variables

This section is empty.

Functions

func AppLabels

func AppLabels(appName, namespace string) map[string]string

AppLabels returns labels common for all Rook-Ceph applications which may be useful for admins. App name is the name of the application: e.g., 'rook-ceph-mon', 'rook-ceph-mgr', etc.

func CephVolumeMounts

func CephVolumeMounts() []v1.VolumeMount

CephVolumeMounts returns the common list of Kubernetes volume mounts for Ceph containers.

func CreateKeyring

func CreateKeyring(context *clusterd.Context, config KeyringConfig) error

func PodLabels

func PodLabels(appName, namespace, daemonType, daemonID string) map[string]string

PodLabels returns pod labels common to all Rook-Ceph pods which may be useful for admins. App name is the name of the application: e.g., 'rook-ceph-mon', 'rook-ceph-mgr', etc. Daemon type is the Ceph daemon type: "mon", "mgr", "osd", "mds", "rgw" Daemon ID is the ID portion of the Ceph daemon name: "a" for "mon.a"; "c" for "mds.c"

func PodVolumes

func PodVolumes(dataDirHostPath string) []v1.Volume

PodVolumes fills in the volumes parameter with the common list of Kubernetes volumes for use in Ceph pods.

func RookVolumeMounts

func RookVolumeMounts() []v1.VolumeMount

RookVolumeMounts returns the common list of Kubernetes volume mounts for Rook containers.

Types

type KeyringConfig

type KeyringConfig struct {
	Namespace    string
	ResourceName string
	DaemonName   string
	OwnerRef     metav1.OwnerReference
	Username     string
	Access       []string
}

Jump to

Keyboard shortcuts

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