resource

package
v0.0.0-...-452dcce Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCassandraClusterTypeMeta

func GetCassandraClusterTypeMeta() metav1.TypeMeta

GetCassandraClusterTypeMeta returns meta/v1 TypeMeta for v1alpha1 CassandraCluster

func GetCronJobTypeMeta

func GetCronJobTypeMeta() metav1.TypeMeta

GetCronJobTypeMeta returns meta/v1 TypeMeta for batch/v1beta1 CronJob

func GetPodDisruptionBudgetTypeMeta

func GetPodDisruptionBudgetTypeMeta() metav1.TypeMeta

GetPodDisruptionBudgetTypeMeta returns meta/v1 TypeMeta for policy/v1beta1 PodDisruptionBudget

func GetPodTypeMeta

func GetPodTypeMeta() metav1.TypeMeta

GetPodTypeMeta returns meta/v1 TypeMeta for core/v1 Pod

func GetServiceAccountTypeMeta

func GetServiceAccountTypeMeta() metav1.TypeMeta

GetServiceAccountTypeMeta returns meta/v1 TypeMeta for core/v1 ServiceAccount

func GetServiceTypeMeta

func GetServiceTypeMeta() metav1.TypeMeta

GetServiceTypeMeta returns meta/v1 TypeMeta for core/v1 Service

func GetStatefulSetTypeMeta

func GetStatefulSetTypeMeta() metav1.TypeMeta

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

func (*PodDisruptionBudget) Reconcile

func (b *PodDisruptionBudget) Reconcile(driver opsdk.Client) (sdk.Object, error)

Reconcile the PodDisruptionBudget's actual state with desired

type Reconciler

type Reconciler interface {
	Reconcile(driver opsdk.Client) (sdk.Object, error)
}

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

func (*RepairCronJob) Reconcile

func (b *RepairCronJob) Reconcile(driver opsdk.Client) (sdk.Object, error)

Reconcile the cron job's actual state with desired

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

func (*Service) Reconcile

func (b *Service) Reconcile(driver opsdk.Client) (sdk.Object, error)

Reconcile takes the current state and creates an object that will reconcile that to the desired state

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

func (*ServiceAccount) Reconcile

func (b *ServiceAccount) Reconcile(driver opsdk.Client) (sdk.Object, error)

Reconcile merges the actual state with the desired state to reconcile the core/v1 ServiceAccount resource

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

func (*StatefulSet) Reconcile

func (b *StatefulSet) Reconcile(driver opsdk.Client) (sdk.Object, error)

Reconcile merges the desired state with the actual state

Jump to

Keyboard shortcuts

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