Documentation ¶
Index ¶
- func GetCassandraClusterTypeMeta() metav1.TypeMeta
- func GetCronJobTypeMeta() metav1.TypeMeta
- func GetPodDisruptionBudgetTypeMeta() metav1.TypeMeta
- func GetPodTypeMeta() metav1.TypeMeta
- func GetServiceAccountTypeMeta() metav1.TypeMeta
- func GetServiceTypeMeta() metav1.TypeMeta
- func GetStatefulSetTypeMeta() metav1.TypeMeta
- type BuilderOption
- type ClusterServiceType
- type PodDisruptionBudget
- type Reconciler
- type RepairCronJob
- type Service
- type ServiceAccount
- type StatefulSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCassandraClusterTypeMeta ¶
GetCassandraClusterTypeMeta returns meta/v1 TypeMeta for v1alpha1 CassandraCluster
func GetCronJobTypeMeta ¶
GetCronJobTypeMeta returns meta/v1 TypeMeta for batch/v1beta1 CronJob
func GetPodDisruptionBudgetTypeMeta ¶
GetPodDisruptionBudgetTypeMeta returns meta/v1 TypeMeta for policy/v1beta1 PodDisruptionBudget
func GetPodTypeMeta ¶
GetPodTypeMeta returns meta/v1 TypeMeta for core/v1 Pod
func GetServiceAccountTypeMeta ¶
GetServiceAccountTypeMeta returns meta/v1 TypeMeta for core/v1 ServiceAccount
func GetServiceTypeMeta ¶
GetServiceTypeMeta returns meta/v1 TypeMeta for core/v1 Service
func GetStatefulSetTypeMeta ¶
GetStatefulSetTypeMeta returns meta/v1 TypeMeta for apps/v1 StatefulSet
Types ¶
type BuilderOption ¶
type BuilderOption func(*builderOp)
BuilderOption is a function that sets the configuration on the builderOp
func WithPodNumber ¶
func WithPodNumber(podNumber int) BuilderOption
WithPodNumber sets the pod number
func WithServiceAccountName ¶
func WithServiceAccountName(serviceAccountName string) BuilderOption
WithServiceAccountName sets the service account name
func WithServiceName ¶
func WithServiceName(serviceName string) BuilderOption
WithServiceName sets the service name
func WithServiceType ¶
func WithServiceType(serviceType ClusterServiceType) BuilderOption
WithServiceType sets the service type
type ClusterServiceType ¶
type ClusterServiceType int
ClusterServiceType represents the different services that this builder group can create
const ( // ServiceTypeNone represents the default value and does not correlate to a service type ServiceTypeNone ClusterServiceType = iota // ServiceTypePublicLB represents the public load ballanced service ServiceTypePublicLB // ServiceTypePublicPod represents the public service that points at a single pod ServiceTypePublicPod // ServiceTypeHeadless represents the headless services for the nodes ServiceTypeHeadless // ServiceTypeInternal represents the load ballanced service that is only accessable in the cluster ServiceTypeInternal )
type PodDisruptionBudget ¶
type PodDisruptionBudget struct {
// contains filtered or unexported fields
}
PodDisruptionBudget class that builds a PodDisruptionBudiget and reconciles the actual state to desired state
func NewPodDisruptionBudget ¶
func NewPodDisruptionBudget(cc *v1alpha1.CassandraCluster) *PodDisruptionBudget
NewPodDisruptionBudget creates a new PodDIsruptionBudget
type Reconciler ¶
Reconciler reconciles the actual state and the desired state of an sdk.Object
type RepairCronJob ¶
type RepairCronJob struct {
// contains filtered or unexported fields
}
RepairCronJob class that builds a Repair Cron Job for the cassandra cluster
func NewRepairCronJob ¶
func NewRepairCronJob(cc *v1alpha1.CassandraCluster) *RepairCronJob
NewRepairCronJob constructor for RepairCronJob
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a reconciller for a k8s core/v1 service resource
func NewService ¶
func NewService(cc *v1alpha1.CassandraCluster, opts ...BuilderOption) *Service
NewService is the constructor for ServiceBuilder class
type ServiceAccount ¶
type ServiceAccount struct {
// contains filtered or unexported fields
}
ServiceAccount is a reconciller for configured vs actual for service account
func NewServiceAccount ¶
func NewServiceAccount(cc *v1alpha1.CassandraCluster) *ServiceAccount
NewServiceAccount creates a new ServiceAccount
type StatefulSet ¶
type StatefulSet struct {
// contains filtered or unexported fields
}
StatefulSet is a reconciller for apps/v1 StatefulSet
func NewStatefulSet ¶
func NewStatefulSet(cc *v1alpha1.CassandraCluster, opts ...BuilderOption) *StatefulSet
NewStatefulSet constructs a new StatefulSet Reconciler