kubernetes

package
v0.0.0-...-4ba4034 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 5 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package kubernetes contains functions to obtain standard and recommended deployment artifacts for Kubernetes. These artifacts can be used by automation tools that want to deploy Ceph-CSI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSIProvisionerRBAC

type CSIProvisionerRBAC interface {
	GetServiceAccount() *corev1.ServiceAccount
	GetClusterRole() *rbacv1.ClusterRole
	GetClusterRoleBinding() *rbacv1.ClusterRoleBinding
	GetRole() *rbacv1.Role
	GetRoleBinding() *rbacv1.RoleBinding
}

CSIProvisionerRBAC describes the interface that is provided by different provisioner backends to get details about the required RBAC.

type CSIProvisionerRBACValues

type CSIProvisionerRBACValues struct {
	Namespace      string
	ServiceAccount string
}

CSIProvisionerRBACValues contains values that can be passed to NewCSIProvisionerRBAC() functions for different provisioner backends.

type CephFS

type CephFS struct {
	// symlink filepath for the network namespace where we need to execute commands.
	NetNamespaceFilePath string `json:"netNamespaceFilePath"`
	// SubvolumeGroup contains the name of the SubvolumeGroup for CSI volumes
	SubvolumeGroup string `json:"subvolumeGroup"`
	// RadosNamespace is a rados namespace in the filesystem metadata pool
	RadosNamespace string `json:"radosNamespace"`
	// KernelMountOptions contains the kernel mount options for CephFS volumes
	KernelMountOptions string `json:"kernelMountOptions"`
	// FuseMountOptions contains the fuse mount options for CephFS volumes
	FuseMountOptions string `json:"fuseMountOptions"`
	// ControllerPublishSecretRef contains the secret reference for controller
	// publish operations.
	ControllerPublishSecretRef corev1.SecretReference `json:"controllerPublishSecretRef"`
}

type ClusterInfo

type ClusterInfo struct {
	// ClusterID is used for unique identification
	ClusterID string `json:"clusterID"`
	// Monitors is monitor list for corresponding cluster ID
	Monitors []string `json:"monitors"`
	// CephFS contains CephFS specific options
	CephFS CephFS `json:"cephFS"`
	// RBD Contains RBD specific options
	RBD RBD `json:"rbd"`
	// NFS contains NFS specific options
	NFS NFS `json:"nfs"`
	// Read affinity map options
	ReadAffinity ReadAffinity `json:"readAffinity"`
	// ReplicationDestination defines the destination cluster for replication.
	// Populated by ceph-csi-operator from ReplicationDestinationConfig CR.
	// +optional
	ReplicationDestination *ReplicationDestinationInfo `json:"replicationDestination,omitempty"`
}

type NFS

type NFS struct {
	// symlink filepath for the network namespace where we need to execute commands.
	NetNamespaceFilePath string `json:"netNamespaceFilePath"`
}

type RBD

type RBD struct {
	// symlink filepath for the network namespace where we need to execute commands.
	NetNamespaceFilePath string `json:"netNamespaceFilePath"`
	// RadosNamespace is a rados namespace in the pool
	RadosNamespace string `json:"radosNamespace"`
	// RBD mirror daemons running in the ceph cluster.
	MirrorDaemonCount int `json:"mirrorDaemonCount"`
	// ControllerPublishSecretRef contains the secret reference for controller
	// publish operations.
	ControllerPublishSecretRef corev1.SecretReference `json:"controllerPublishSecretRef"`
	// NodePublishSecretRef contains the secret reference for node publish
	// operations. Used for retrieving QoS metadata during NodePublishVolume.
	NodePublishSecretRef corev1.SecretReference `json:"nodePublishSecretRef"`
}

type ReadAffinity

type ReadAffinity struct {
	Enabled             bool     `json:"enabled"`
	CrushLocationLabels []string `json:"crushLocationLabels"`
}

type RemotePoolDetails

type RemotePoolDetails struct {
	// PoolID is the remote pool ID as a decimal string (e.g., "5")
	PoolID string `json:"poolID"`
}

RemotePoolDetails contains details of a pool on the remote cluster.

type RemoteRBDDetails

type RemoteRBDDetails struct {
	// RemotePoolMapping maps pool names to remote pool details.
	// Key: pool name (e.g., "rbd", "replicapool")
	// If empty, pool IDs are assumed identical on both clusters.
	// +optional
	RemotePoolMapping map[string]RemotePoolDetails `json:"remotePoolMapping,omitempty"`
}

RemoteRBDDetails contains RBD-specific remote cluster details for replication.

type ReplicationDestinationInfo

type ReplicationDestinationInfo struct {
	// RemoteClusterID is the clusterID of the destination cluster
	RemoteClusterID string `json:"remoteClusterID"`
	// RBD contains RBD-specific replication destination configuration
	// +optional
	RBD *RemoteRBDDetails `json:"rbd,omitempty"`
}

ReplicationDestinationInfo contains destination cluster information for replication. It enables the CSI driver to map source volume/group IDs to destination volume/group IDs when pool IDs differ across clusters.

Directories

Path Synopsis
Package cephfs contains functions to obtain standard and recommended deployment artifacts for the CephFS CSI-driver on Kubernetes.
Package cephfs contains functions to obtain standard and recommended deployment artifacts for the CephFS CSI-driver on Kubernetes.
Package nfs contains functions to obtain standard and recommended deployment artifacts for the NFS CSI-driver on Kubernetes.
Package nfs contains functions to obtain standard and recommended deployment artifacts for the NFS CSI-driver on Kubernetes.
Package rbd contains functions to obtain standard and recommended deployment artifacts for the RBD CSI-driver on Kubernetes.
Package rbd contains functions to obtain standard and recommended deployment artifacts for the RBD CSI-driver on Kubernetes.

Jump to

Keyboard shortcuts

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