Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the ceph v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ceph.k8s.pgc.umn.edu
Package v1alpha1 contains API Schema definitions for the ceph v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=ceph.k8s.pgc.umn.edu
Index ¶
- Constants
- Variables
- type CephCluster
- func (in *CephCluster) DeepCopy() *CephCluster
- func (in *CephCluster) DeepCopyInto(out *CephCluster)
- func (in *CephCluster) DeepCopyObject() runtime.Object
- func (c *CephCluster) GetAPIVersion() string
- func (c *CephCluster) GetCephConfigMap() (*corev1.ConfigMap, error)
- func (c *CephCluster) GetCephConfigMapName() string
- func (c *CephCluster) GetDaemonEnabled(d CephDaemonType) bool
- func (c *CephCluster) GetKind() string
- func (c *CephCluster) GetMdsImage() string
- func (c *CephCluster) GetMgrImage() string
- func (c *CephCluster) GetMonImage() string
- func (c *CephCluster) GetMonitorDiscoveryService() *corev1.Service
- func (c *CephCluster) GetMonitorService() *corev1.Service
- func (c *CephCluster) GetOsdImage() string
- func (d *CephCluster) GetState() CephClusterState
- func (c *CephCluster) SetAPIVersion(version string)
- func (c *CephCluster) SetKind(kind string)
- func (d *CephCluster) SetState(s CephClusterState)
- type CephClusterList
- type CephClusterSpec
- type CephClusterState
- type CephClusterStatus
- type CephDaemon
- func (d *CephDaemon) CheckReady() bool
- func (in *CephDaemon) DeepCopy() *CephDaemon
- func (in *CephDaemon) DeepCopyInto(out *CephDaemon)
- func (in *CephDaemon) DeepCopyObject() runtime.Object
- func (d *CephDaemon) GetBasePod() *corev1.Pod
- func (d *CephDaemon) GetPodName() string
- func (d *CephDaemon) GetState() CephDaemonState
- func (d *CephDaemon) SetState(s CephDaemonState)
- type CephDaemonCluster
- func (in *CephDaemonCluster) DeepCopy() *CephDaemonCluster
- func (in *CephDaemonCluster) DeepCopyInto(out *CephDaemonCluster)
- func (in *CephDaemonCluster) DeepCopyObject() runtime.Object
- func (c *CephDaemonCluster) GetCephClusterName() string
- func (c *CephDaemonCluster) GetCephConfConfigMapName() string
- func (c *CephDaemonCluster) GetDaemonType() CephDaemonType
- func (c *CephDaemonCluster) GetImage() ImageSpec
- func (d *CephDaemonCluster) GetState() CephDaemonClusterState
- func (c *CephDaemonCluster) SetCephClusterName(name string)
- func (c *CephDaemonCluster) SetCephConfConfigMapName(name string)
- func (c *CephDaemonCluster) SetImage(image ImageSpec)
- func (d *CephDaemonCluster) SetState(s CephDaemonClusterState)
- type CephDaemonClusterList
- type CephDaemonClusterSpec
- type CephDaemonClusterState
- type CephDaemonClusterStatus
- type CephDaemonList
- type CephDaemonSpec
- type CephDaemonState
- type CephDaemonStatus
- type CephDaemonType
- type CephMon
- func (c *CephMon) CheckMonState(state ...MonState) bool
- func (in *CephMon) DeepCopy() *CephMon
- func (in *CephMon) DeepCopyInto(out *CephMon)
- func (in *CephMon) DeepCopyObject() runtime.Object
- func (m *CephMon) GetAPIVersion() string
- func (m *CephMon) GetDisabled() bool
- func (m *CephMon) GetKind() string
- func (c *CephMon) GetMonMapEntry() MonMapEntry
- func (c *CephMon) GetMonState() MonState
- func (m *CephMon) GetPod(monCluster *CephMonCluster, clientAdminKeyringName string) *corev1.Pod
- func (m *CephMon) GetPodName() string
- func (c *CephMon) GetPort() int
- func (m *CephMon) GetPvLabelSelector() (*metav1.LabelSelector, error)
- func (m *CephMon) GetVolumeClaimTemplate() (*corev1.PersistentVolumeClaim, error)
- func (m *CephMon) SetAPIVersion(version string)
- func (m *CephMon) SetKind(kind string)
- func (c *CephMon) SetMonState(state MonState)
- type CephMonCluster
- func (c *CephMonCluster) CheckMonClusterState(state ...MonClusterState) bool
- func (in *CephMonCluster) DeepCopy() *CephMonCluster
- func (in *CephMonCluster) DeepCopyInto(out *CephMonCluster)
- func (in *CephMonCluster) DeepCopyObject() runtime.Object
- func (c *CephMonCluster) GetCephClusterName() string
- func (c *CephMonCluster) GetCephConfConfigMapName() string
- func (c *CephMonCluster) GetConfigMapName() string
- func (c *CephMonCluster) GetDaemonType() CephDaemonType
- func (c *CephMonCluster) GetImage() ImageSpec
- func (c *CephMonCluster) GetMonClusterState() MonClusterState
- func (c *CephMonCluster) GetMonMapConfigMap(monMap MonMap) (*corev1.ConfigMap, error)
- func (c *CephMonCluster) SetCephClusterName(name string)
- func (c *CephMonCluster) SetCephConfConfigMapName(name string)
- func (c *CephMonCluster) SetImage(image ImageSpec)
- func (c *CephMonCluster) SetMonClusterState(state MonClusterState)
- type CephMonClusterList
- type CephMonClusterSpec
- type CephMonClusterStatus
- type CephMonList
- type CephMonSpec
- type CephMonStatus
- type CephOsd
- func (in *CephOsd) DeepCopy() *CephOsd
- func (in *CephOsd) DeepCopyInto(out *CephOsd)
- func (in *CephOsd) DeepCopyObject() runtime.Object
- func (o *CephOsd) GetAPIVersion() string
- func (o *CephOsd) GetDisabled() bool
- func (o *CephOsd) GetKind() string
- func (o *CephOsd) GetPod(osdImage, cephConfConfigMap, serviceAccountName string) *corev1.Pod
- func (o *CephOsd) GetPodName() string
- func (o *CephOsd) GetPvLabelSelector() (*metav1.LabelSelector, error)
- func (o *CephOsd) GetVolumeClaimTemplate() (*corev1.PersistentVolumeClaim, error)
- func (o *CephOsd) SetAPIVersion(version string)
- func (o *CephOsd) SetKind(kind string)
- type CephOsdList
- type CephOsdSpec
- type CephOsdStatus
- type DaemonEnabledStateMap
- type ImageSpec
- type JsonMonMap
- type MonClusterState
- type MonMap
- func (m MonMap) AllInState(state MonState) bool
- func (m MonMap) Contains(mon *CephMon) bool
- func (m MonMap) CountInState(state MonState) int
- func (m MonMap) CountInitalMembers() int
- func (in MonMap) DeepCopy() MonMap
- func (in MonMap) DeepCopyInto(out *MonMap)
- func (m MonMap) Empty() bool
- func (m MonMap) GetInitalMonMap() MonMap
- func (m MonMap) GetRandomEntry() MonMapEntry
- func (m MonMap) QuorumAtEpoch(epoch int) bool
- func (m MonMap) QuorumCount() int
- type MonMapEntry
- type MonState
Constants ¶
const ( ClusterNameLabel = "ceph.k8s.pgc.umn.edu/cluster" DaemonTypeLabel = "ceph.k8s.pgc.umn.edu/daemonType" MonitorServiceLabel = "ceph.k8s.pgc.umn.edu/monitorService" KeyringEntityLabel = "ceph.k8s.pgc.umn.edu/keyringEntity" )
const ( CephDaemonStateIdle CephDaemonState = "Idle" CephDaemonStateLaunching = "Launching" CephDaemonStateWaitForRun = "Wait for Run" CephDaemonStateWaitForReady = "Wait for Ready" CephDaemonStateReady = "Ready" CephDaemonStateError = "Error" CephDaemonStateCleanup = "Cleanup" )
const ( CephDaemonClusterStateIdle CephDaemonClusterState = "Idle" CephDaemonClusterStateRunning = "Running" CephDaemonClusterStateScaling = "Scaling" CephDaemonClusterStateError = "Error" )
const MonQuorumPodCondition corev1.PodConditionType = corev1.PodReady
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "ceph.k8s.pgc.umn.edu", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type CephCluster ¶
type CephCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CephClusterSpec `json:"spec,omitempty"` Status CephClusterStatus `json:"status,omitempty"` }
CephCluster is the Schema for the cephclusters API +k8s:openapi-gen=true
func (*CephCluster) DeepCopy ¶
func (in *CephCluster) DeepCopy() *CephCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephCluster.
func (*CephCluster) DeepCopyInto ¶
func (in *CephCluster) DeepCopyInto(out *CephCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephCluster) DeepCopyObject ¶
func (in *CephCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CephCluster) GetAPIVersion ¶
func (c *CephCluster) GetAPIVersion() string
func (*CephCluster) GetCephConfigMap ¶
func (c *CephCluster) GetCephConfigMap() (*corev1.ConfigMap, error)
GetCephConfigMap returns a configmap containing a vaild ceph.conf file.
func (*CephCluster) GetCephConfigMapName ¶
func (c *CephCluster) GetCephConfigMapName() string
func (*CephCluster) GetDaemonEnabled ¶
func (c *CephCluster) GetDaemonEnabled(d CephDaemonType) bool
func (*CephCluster) GetKind ¶
func (c *CephCluster) GetKind() string
func (*CephCluster) GetMdsImage ¶
func (c *CephCluster) GetMdsImage() string
func (*CephCluster) GetMgrImage ¶
func (c *CephCluster) GetMgrImage() string
func (*CephCluster) GetMonImage ¶
func (c *CephCluster) GetMonImage() string
func (*CephCluster) GetMonitorDiscoveryService ¶
func (c *CephCluster) GetMonitorDiscoveryService() *corev1.Service
func (*CephCluster) GetMonitorService ¶
func (c *CephCluster) GetMonitorService() *corev1.Service
func (*CephCluster) GetOsdImage ¶
func (c *CephCluster) GetOsdImage() string
func (*CephCluster) GetState ¶
func (d *CephCluster) GetState() CephClusterState
func (*CephCluster) SetAPIVersion ¶
func (c *CephCluster) SetAPIVersion(version string)
func (*CephCluster) SetKind ¶
func (c *CephCluster) SetKind(kind string)
func (*CephCluster) SetState ¶
func (d *CephCluster) SetState(s CephClusterState)
type CephClusterList ¶
type CephClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CephCluster `json:"items"` }
CephClusterList contains a list of CephCluster
func (*CephClusterList) DeepCopy ¶
func (in *CephClusterList) DeepCopy() *CephClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephClusterList.
func (*CephClusterList) DeepCopyInto ¶
func (in *CephClusterList) DeepCopyInto(out *CephClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephClusterList) DeepCopyObject ¶
func (in *CephClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CephClusterSpec ¶
type CephClusterSpec struct { Disabled bool `json:"disabled"` Config map[string]map[string]string `json:"config"` Fsid string `json:"fsid"` MonServiceName string `json:"monServiceName"` ClusterDomain string `json:"clusterDomain"` MonImage ImageSpec `json:"monImage"` OsdImage ImageSpec `json:"osdImage"` MgrImage ImageSpec `json:"mgrImage"` MdsImage ImageSpec `json:"mdsImage"` }
CephClusterSpec defines the desired state of CephCluster
func (*CephClusterSpec) DeepCopy ¶
func (in *CephClusterSpec) DeepCopy() *CephClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephClusterSpec.
func (*CephClusterSpec) DeepCopyInto ¶
func (in *CephClusterSpec) DeepCopyInto(out *CephClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephClusterState ¶
type CephClusterState string
const ( CephClusterIdle CephClusterState = "Idle" CephClusterStartMons CephClusterState = "Start Mons" CephClusterStartDaemons CephClusterState = "Start Daemons" CephClusterStartOsds CephClusterState = "Start Osds" CephClusterRunning CephClusterState = "Running" CephClusterShutdown CephClusterState = "Starting Shutdown" CephClusterStopDaemons CephClusterState = "Stop Daemons" CephClusterStopOsds CephClusterState = "Stop Osds" CephClusterStopMons CephClusterState = "Stop Mons" )
type CephClusterStatus ¶
type CephClusterStatus struct { MonClusterName string `json:"monClusterName"` State CephClusterState `json:"state"` }
CephClusterStatus defines the observed state of CephCluster
func (*CephClusterStatus) DeepCopy ¶
func (in *CephClusterStatus) DeepCopy() *CephClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephClusterStatus.
func (*CephClusterStatus) DeepCopyInto ¶
func (in *CephClusterStatus) DeepCopyInto(out *CephClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephDaemon ¶
type CephDaemon struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CephDaemonSpec `json:"spec,omitempty"` Status CephDaemonStatus `json:"status,omitempty"` }
CephDaemon is the Schema for the cephdaemons API +k8s:openapi-gen=true
func NewCephDaemon ¶
func NewCephDaemon(t CephDaemonType, clusterName string) *CephDaemon
func (*CephDaemon) CheckReady ¶
func (d *CephDaemon) CheckReady() bool
CheckReady returns true if the daemon is ready
func (*CephDaemon) DeepCopy ¶
func (in *CephDaemon) DeepCopy() *CephDaemon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemon.
func (*CephDaemon) DeepCopyInto ¶
func (in *CephDaemon) DeepCopyInto(out *CephDaemon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephDaemon) DeepCopyObject ¶
func (in *CephDaemon) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CephDaemon) GetBasePod ¶
func (d *CephDaemon) GetBasePod() *corev1.Pod
func (*CephDaemon) GetPodName ¶
func (d *CephDaemon) GetPodName() string
func (*CephDaemon) GetState ¶
func (d *CephDaemon) GetState() CephDaemonState
func (*CephDaemon) SetState ¶
func (d *CephDaemon) SetState(s CephDaemonState)
type CephDaemonCluster ¶
type CephDaemonCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CephDaemonClusterSpec `json:"spec,omitempty"` Status CephDaemonClusterStatus `json:"status,omitempty"` }
CephDaemonCluster is the Schema for the cephdaemonclusters API +k8s:openapi-gen=true
func NewCephDaemonCluster ¶
func NewCephDaemonCluster(t CephDaemonType) *CephDaemonCluster
func (*CephDaemonCluster) DeepCopy ¶
func (in *CephDaemonCluster) DeepCopy() *CephDaemonCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonCluster.
func (*CephDaemonCluster) DeepCopyInto ¶
func (in *CephDaemonCluster) DeepCopyInto(out *CephDaemonCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephDaemonCluster) DeepCopyObject ¶
func (in *CephDaemonCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CephDaemonCluster) GetCephClusterName ¶
func (c *CephDaemonCluster) GetCephClusterName() string
func (*CephDaemonCluster) GetCephConfConfigMapName ¶
func (c *CephDaemonCluster) GetCephConfConfigMapName() string
func (*CephDaemonCluster) GetDaemonType ¶
func (c *CephDaemonCluster) GetDaemonType() CephDaemonType
func (*CephDaemonCluster) GetImage ¶
func (c *CephDaemonCluster) GetImage() ImageSpec
func (*CephDaemonCluster) GetState ¶
func (d *CephDaemonCluster) GetState() CephDaemonClusterState
func (*CephDaemonCluster) SetCephClusterName ¶
func (c *CephDaemonCluster) SetCephClusterName(name string)
func (*CephDaemonCluster) SetCephConfConfigMapName ¶
func (c *CephDaemonCluster) SetCephConfConfigMapName(name string)
func (*CephDaemonCluster) SetImage ¶
func (c *CephDaemonCluster) SetImage(image ImageSpec)
func (*CephDaemonCluster) SetState ¶
func (d *CephDaemonCluster) SetState(s CephDaemonClusterState)
type CephDaemonClusterList ¶
type CephDaemonClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CephDaemonCluster `json:"items"` }
CephDaemonClusterList contains a list of CephDaemonCluster
func (*CephDaemonClusterList) AllInState ¶
func (c *CephDaemonClusterList) AllInState(state CephDaemonClusterState) bool
func (*CephDaemonClusterList) DeepCopy ¶
func (in *CephDaemonClusterList) DeepCopy() *CephDaemonClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonClusterList.
func (*CephDaemonClusterList) DeepCopyInto ¶
func (in *CephDaemonClusterList) DeepCopyInto(out *CephDaemonClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephDaemonClusterList) DeepCopyObject ¶
func (in *CephDaemonClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CephDaemonClusterSpec ¶
type CephDaemonClusterSpec struct { ClusterName string `json:"clusterName"` Image ImageSpec `json:"image"` CephConfConfigMapName string `json:"cephConfConfigMapName"` DaemonType CephDaemonType `json:"daemonType"` Disabled bool `json:"disabled"` Replicas int `json:"replicas"` }
CephDaemonClusterSpec defines the desired state of CephDaemonCluster
func (*CephDaemonClusterSpec) DeepCopy ¶
func (in *CephDaemonClusterSpec) DeepCopy() *CephDaemonClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonClusterSpec.
func (*CephDaemonClusterSpec) DeepCopyInto ¶
func (in *CephDaemonClusterSpec) DeepCopyInto(out *CephDaemonClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephDaemonClusterState ¶
type CephDaemonClusterState string
type CephDaemonClusterStatus ¶
type CephDaemonClusterStatus struct {
State CephDaemonClusterState `json:"state"`
}
CephDaemonClusterStatus defines the observed state of CephDaemonCluster
func (*CephDaemonClusterStatus) DeepCopy ¶
func (in *CephDaemonClusterStatus) DeepCopy() *CephDaemonClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonClusterStatus.
func (*CephDaemonClusterStatus) DeepCopyInto ¶
func (in *CephDaemonClusterStatus) DeepCopyInto(out *CephDaemonClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephDaemonList ¶
type CephDaemonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CephDaemon `json:"items"` }
CephDaemonList contains a list of CephDaemon
func (*CephDaemonList) DeepCopy ¶
func (in *CephDaemonList) DeepCopy() *CephDaemonList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonList.
func (*CephDaemonList) DeepCopyInto ¶
func (in *CephDaemonList) DeepCopyInto(out *CephDaemonList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephDaemonList) DeepCopyObject ¶
func (in *CephDaemonList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CephDaemonSpec ¶
type CephDaemonSpec struct { ClusterName string `json:"clusterName"` ID string `json:"id"` Image ImageSpec `json:"image"` CephConfConfigMapName string `json:"cephConfConfigMapName"` DaemonType CephDaemonType `json:"daemonType"` Disabled bool `json:"disabled"` }
CephDaemonSpec defines the desired state of CephDaemon
func (*CephDaemonSpec) DeepCopy ¶
func (in *CephDaemonSpec) DeepCopy() *CephDaemonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonSpec.
func (*CephDaemonSpec) DeepCopyInto ¶
func (in *CephDaemonSpec) DeepCopyInto(out *CephDaemonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephDaemonState ¶
type CephDaemonState string
type CephDaemonStatus ¶
type CephDaemonStatus struct {
State CephDaemonState `json:"state"`
}
CephDaemonStatus defines the observed state of CephDaemon
func (*CephDaemonStatus) DeepCopy ¶
func (in *CephDaemonStatus) DeepCopy() *CephDaemonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephDaemonStatus.
func (*CephDaemonStatus) DeepCopyInto ¶
func (in *CephDaemonStatus) DeepCopyInto(out *CephDaemonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephDaemonType ¶
type CephDaemonType string
const ( CephDaemonTypeMgr CephDaemonType = "mgr" CephDaemonTypeMds CephDaemonType = "mds" CephDaemonTypeRgw CephDaemonType = "rgw" CephDaemonTypeOsd CephDaemonType = "osd" CephDaemonTypeMon CephDaemonType = "mon" )
func (CephDaemonType) String ¶
func (c CephDaemonType) String() string
type CephMon ¶
type CephMon struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CephMonSpec `json:"spec,omitempty"` Status CephMonStatus `json:"status,omitempty"` }
CephMon is the Schema for the cephmons API +k8s:openapi-gen=true
func (*CephMon) CheckMonState ¶
func (*CephMon) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMon.
func (*CephMon) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephMon) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CephMon) GetAPIVersion ¶
func (*CephMon) GetDisabled ¶
func (*CephMon) GetMonMapEntry ¶
func (c *CephMon) GetMonMapEntry() MonMapEntry
func (*CephMon) GetMonState ¶
func (*CephMon) GetPod ¶
func (m *CephMon) GetPod(monCluster *CephMonCluster, clientAdminKeyringName string) *corev1.Pod
func (*CephMon) GetPodName ¶
func (*CephMon) GetPvLabelSelector ¶
func (m *CephMon) GetPvLabelSelector() (*metav1.LabelSelector, error)
func (*CephMon) GetVolumeClaimTemplate ¶
func (m *CephMon) GetVolumeClaimTemplate() (*corev1.PersistentVolumeClaim, error)
func (*CephMon) SetAPIVersion ¶
func (*CephMon) SetMonState ¶
type CephMonCluster ¶
type CephMonCluster struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CephMonClusterSpec `json:"spec,omitempty"` Status CephMonClusterStatus `json:"status,omitempty"` }
CephMonCluster is the Schema for the cephmonclusters API +k8s:openapi-gen=true
func (*CephMonCluster) CheckMonClusterState ¶
func (c *CephMonCluster) CheckMonClusterState(state ...MonClusterState) bool
func (*CephMonCluster) DeepCopy ¶
func (in *CephMonCluster) DeepCopy() *CephMonCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonCluster.
func (*CephMonCluster) DeepCopyInto ¶
func (in *CephMonCluster) DeepCopyInto(out *CephMonCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephMonCluster) DeepCopyObject ¶
func (in *CephMonCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CephMonCluster) GetCephClusterName ¶
func (c *CephMonCluster) GetCephClusterName() string
func (*CephMonCluster) GetCephConfConfigMapName ¶
func (c *CephMonCluster) GetCephConfConfigMapName() string
func (*CephMonCluster) GetConfigMapName ¶
func (c *CephMonCluster) GetConfigMapName() string
func (*CephMonCluster) GetDaemonType ¶
func (c *CephMonCluster) GetDaemonType() CephDaemonType
func (*CephMonCluster) GetImage ¶
func (c *CephMonCluster) GetImage() ImageSpec
func (*CephMonCluster) GetMonClusterState ¶
func (c *CephMonCluster) GetMonClusterState() MonClusterState
func (*CephMonCluster) GetMonMapConfigMap ¶
func (c *CephMonCluster) GetMonMapConfigMap(monMap MonMap) (*corev1.ConfigMap, error)
func (*CephMonCluster) SetCephClusterName ¶
func (c *CephMonCluster) SetCephClusterName(name string)
func (*CephMonCluster) SetCephConfConfigMapName ¶
func (c *CephMonCluster) SetCephConfConfigMapName(name string)
func (*CephMonCluster) SetImage ¶
func (c *CephMonCluster) SetImage(image ImageSpec)
func (*CephMonCluster) SetMonClusterState ¶
func (c *CephMonCluster) SetMonClusterState(state MonClusterState)
type CephMonClusterList ¶
type CephMonClusterList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CephMonCluster `json:"items"` }
CephMonClusterList contains a list of CephMonCluster
func (*CephMonClusterList) AllInState ¶
func (c *CephMonClusterList) AllInState(state MonClusterState) bool
func (*CephMonClusterList) DeepCopy ¶
func (in *CephMonClusterList) DeepCopy() *CephMonClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonClusterList.
func (*CephMonClusterList) DeepCopyInto ¶
func (in *CephMonClusterList) DeepCopyInto(out *CephMonClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephMonClusterList) DeepCopyObject ¶
func (in *CephMonClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CephMonClusterSpec ¶
type CephMonClusterSpec struct { ClusterName string `json:"clusterName"` Image ImageSpec `json:"image"` CephConfConfigMapName string `json:"cephConfConfigMapName"` }
CephMonClusterSpec defines the desired state of CephMonCluster
func (*CephMonClusterSpec) DeepCopy ¶
func (in *CephMonClusterSpec) DeepCopy() *CephMonClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonClusterSpec.
func (*CephMonClusterSpec) DeepCopyInto ¶
func (in *CephMonClusterSpec) DeepCopyInto(out *CephMonClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephMonClusterStatus ¶
type CephMonClusterStatus struct { StartEpoch int `json:"monStartEpoch"` State MonClusterState `json:"monClusterState"` }
CephMonClusterStatus defines the observed state of CephMonCluster
func (*CephMonClusterStatus) DeepCopy ¶
func (in *CephMonClusterStatus) DeepCopy() *CephMonClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonClusterStatus.
func (*CephMonClusterStatus) DeepCopyInto ¶
func (in *CephMonClusterStatus) DeepCopyInto(out *CephMonClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephMonList ¶
type CephMonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CephMon `json:"items"` }
CephMonList contains a list of CephMon
func (*CephMonList) DeepCopy ¶
func (in *CephMonList) DeepCopy() *CephMonList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonList.
func (*CephMonList) DeepCopyInto ¶
func (in *CephMonList) DeepCopyInto(out *CephMonList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephMonList) DeepCopyObject ¶
func (in *CephMonList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CephMonSpec ¶
type CephMonSpec struct { ClusterName string `json:"clusterName"` ID string `json:"id"` PvSelectorString string `json:"pvSelectorString"` Disabled bool `json:"disabled"` Port int `json:"port"` }
CephMonSpec defines the desired state of CephMon
func (*CephMonSpec) DeepCopy ¶
func (in *CephMonSpec) DeepCopy() *CephMonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonSpec.
func (*CephMonSpec) DeepCopyInto ¶
func (in *CephMonSpec) DeepCopyInto(out *CephMonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephMonStatus ¶
type CephMonStatus struct { StartEpoch int `json:"startEpoch"` State MonState `json:"monState"` PodIP net.IP `json:"podIP"` InitalMember bool `json:"initalMember"` }
CephMonStatus defines the observed state of CephMon
func (*CephMonStatus) DeepCopy ¶
func (in *CephMonStatus) DeepCopy() *CephMonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephMonStatus.
func (*CephMonStatus) DeepCopyInto ¶
func (in *CephMonStatus) DeepCopyInto(out *CephMonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephOsd ¶
type CephOsd struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CephOsdSpec `json:"spec,omitempty"` Status CephOsdStatus `json:"status,omitempty"` }
CephOsd is the Schema for the cephosds API +k8s:openapi-gen=true
func (*CephOsd) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephOsd.
func (*CephOsd) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephOsd) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CephOsd) GetAPIVersion ¶
func (*CephOsd) GetDisabled ¶
func (*CephOsd) GetPodName ¶
func (*CephOsd) GetPvLabelSelector ¶
func (o *CephOsd) GetPvLabelSelector() (*metav1.LabelSelector, error)
func (*CephOsd) GetVolumeClaimTemplate ¶
func (o *CephOsd) GetVolumeClaimTemplate() (*corev1.PersistentVolumeClaim, error)
func (*CephOsd) SetAPIVersion ¶
type CephOsdList ¶
type CephOsdList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CephOsd `json:"items"` }
CephOsdList contains a list of CephOsd
func (*CephOsdList) DeepCopy ¶
func (in *CephOsdList) DeepCopy() *CephOsdList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephOsdList.
func (*CephOsdList) DeepCopyInto ¶
func (in *CephOsdList) DeepCopyInto(out *CephOsdList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CephOsdList) DeepCopyObject ¶
func (in *CephOsdList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CephOsdSpec ¶
type CephOsdSpec struct { ID int `json:"id"` ClusterName string `json:"clusterName"` PvSelectorString string `json:"pvSelectorString"` Disabled bool `json:"disabled"` }
CephOsdSpec defines the desired state of CephOsd
func (*CephOsdSpec) DeepCopy ¶
func (in *CephOsdSpec) DeepCopy() *CephOsdSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephOsdSpec.
func (*CephOsdSpec) DeepCopyInto ¶
func (in *CephOsdSpec) DeepCopyInto(out *CephOsdSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CephOsdStatus ¶
type CephOsdStatus struct { }
CephOsdStatus defines the observed state of CephOsd
func (*CephOsdStatus) DeepCopy ¶
func (in *CephOsdStatus) DeepCopy() *CephOsdStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CephOsdStatus.
func (*CephOsdStatus) DeepCopyInto ¶
func (in *CephOsdStatus) DeepCopyInto(out *CephOsdStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DaemonEnabledStateMap ¶
type DaemonEnabledStateMap map[CephDaemonType][]CephClusterState
var DaemonEnabledStates DaemonEnabledStateMap = DaemonEnabledStateMap{ CephDaemonTypeMgr: []CephClusterState{ CephClusterRunning, CephClusterStartDaemons, CephClusterStartOsds, CephClusterShutdown, }, CephDaemonTypeMds: []CephClusterState{ CephClusterRunning, CephClusterStartDaemons, CephClusterStartOsds, CephClusterShutdown, }, CephDaemonTypeRgw: []CephClusterState{ CephClusterRunning, CephClusterStartDaemons, CephClusterStartOsds, CephClusterShutdown, }, CephDaemonTypeOsd: []CephClusterState{ CephClusterRunning, CephClusterStartOsds, CephClusterStopDaemons, CephClusterShutdown, }, CephDaemonTypeMon: []CephClusterState{ CephClusterRunning, CephClusterStartMons, CephClusterStartDaemons, CephClusterStartOsds, CephClusterStopDaemons, CephClusterStopOsds, CephClusterShutdown, }, }
type ImageSpec ¶
func (*ImageSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JsonMonMap ¶
type JsonMonMap MonMap
func (JsonMonMap) DeepCopy ¶
func (in JsonMonMap) DeepCopy() JsonMonMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JsonMonMap.
func (JsonMonMap) DeepCopyInto ¶
func (in JsonMonMap) DeepCopyInto(out *JsonMonMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (JsonMonMap) MarshalJSON ¶
func (m JsonMonMap) MarshalJSON() ([]byte, error)
type MonClusterState ¶
type MonClusterState string
const ( MonClusterIdle MonClusterState = "Idle" MonClusterLaunching MonClusterState = "Launching" MonClusterEstablishingQuorum MonClusterState = "Establishing Quorum" MonClusterInQuorum MonClusterState = "In Quorum" MonClusterLostQuorum MonClusterState = "Lost Quorum" )
type MonMap ¶
type MonMap map[string]MonMapEntry
func (MonMap) AllInState ¶
func (MonMap) CountInState ¶
func (MonMap) CountInitalMembers ¶
func (MonMap) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonMap.
func (MonMap) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MonMap) GetInitalMonMap ¶
func (MonMap) GetRandomEntry ¶
func (m MonMap) GetRandomEntry() MonMapEntry
func (MonMap) QuorumAtEpoch ¶
func (MonMap) QuorumCount ¶
type MonMapEntry ¶
type MonMapEntry struct { IP net.IP Port int StartEpoch int State MonState InitalMember bool NamespacedName types.NamespacedName }
func (*MonMapEntry) DeepCopy ¶
func (in *MonMapEntry) DeepCopy() *MonMapEntry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonMapEntry.
func (*MonMapEntry) DeepCopyInto ¶
func (in *MonMapEntry) DeepCopyInto(out *MonMapEntry)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.