controllers

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Environment Variable Names
	EnvPodName              = "POD_NAME"
	EnvCFInstanceIP         = "CF_INSTANCE_IP"
	EnvCFInstanceGUID       = "CF_INSTANCE_GUID"
	EnvCFInstanceInternalIP = "CF_INSTANCE_INTERNAL_IP"
	EnvCFInstanceIndex      = "CF_INSTANCE_INDEX"

	// StatefulSet Keys
	AnnotationVersion     = "korifi.cloudfoundry.org/version"
	AnnotationAppID       = "korifi.cloudfoundry.org/application-id"
	AnnotationProcessGUID = "korifi.cloudfoundry.org/process-guid"

	LabelGUID            = "korifi.cloudfoundry.org/guid"
	LabelVersion         = "korifi.cloudfoundry.org/version"
	LabelAppGUID         = "korifi.cloudfoundry.org/app-guid"
	LabelAppWorkloadGUID = "korifi.cloudfoundry.org/appworkload-guid"
	LabelProcessType     = "korifi.cloudfoundry.org/process-type"

	ApplicationContainerName  = "application"
	AppWorkloadReconcilerName = "statefulset-runner"
	ServiceAccountName        = "korifi-app"

	LivenessFailureThreshold  = 4
	ReadinessFailureThreshold = 1
)
View Source
const PdbMinAvailableInstances = "50%"

Variables

This section is empty.

Functions

func NewRunnerInfoReconciler added in v0.8.0

Types

type AppWorkloadReconciler

type AppWorkloadReconciler struct {
	// contains filtered or unexported fields
}

AppWorkloadReconciler reconciles a AppWorkload object

func (*AppWorkloadReconciler) ReconcileResource added in v0.4.0

func (r *AppWorkloadReconciler) ReconcileResource(ctx context.Context, appWorkload *korifiv1alpha1.AppWorkload) (ctrl.Result, error)

func (*AppWorkloadReconciler) SetupWithManager

func (r *AppWorkloadReconciler) SetupWithManager(mgr ctrl.Manager) *builder.Builder

type AppWorkloadToStatefulsetConverter added in v0.4.0

type AppWorkloadToStatefulsetConverter struct {
	// contains filtered or unexported fields
}

func NewAppWorkloadToStatefulsetConverter added in v0.4.0

func NewAppWorkloadToStatefulsetConverter(scheme *runtime.Scheme) *AppWorkloadToStatefulsetConverter

func (*AppWorkloadToStatefulsetConverter) Convert added in v0.4.0

type PDB

type PDB interface {
	Update(ctx context.Context, statefulSet *appsv1.StatefulSet) error
}

type PDBUpdater

type PDBUpdater struct {
	// contains filtered or unexported fields
}

func NewPDBUpdater

func NewPDBUpdater(client client.Client) *PDBUpdater

func (*PDBUpdater) Update

func (c *PDBUpdater) Update(ctx context.Context, statefulSet *appsv1.StatefulSet) error

type RunnerInfoReconciler added in v0.8.0

type RunnerInfoReconciler struct {
	// contains filtered or unexported fields
}

RunnerInfoReconciler reconciles a RunnerInfo object

func (*RunnerInfoReconciler) ReconcileResource added in v0.8.0

func (r *RunnerInfoReconciler) ReconcileResource(ctx context.Context, runnerInfo *korifiv1alpha1.RunnerInfo) (ctrl.Result, error)

func (*RunnerInfoReconciler) SetupWithManager added in v0.8.0

func (r *RunnerInfoReconciler) SetupWithManager(mgr ctrl.Manager) *builder.Builder

type WorkloadToStatefulsetConverter added in v0.4.0

type WorkloadToStatefulsetConverter interface {
	Convert(appWorkload *korifiv1alpha1.AppWorkload) (*appsv1.StatefulSet, error)
}

Jump to

Keyboard shortcuts

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