controllers

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package controllers define k8s operator controllers

Index

Constants

View Source
const (
	CleanUpFinalizerName = "cleanup.subscription.finalizer"
)

Variables

This section is empty.

Functions

func AddControllerBuilderOwn added in v0.15.0

func AddControllerBuilderOwn(b *builder.Builder, gv string) *builder.Builder

func ConvertHPAV2ToV2beta2 added in v0.15.0

Types

type FunctionMeshReconciler

type FunctionMeshReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

FunctionMeshReconciler reconciles a FunctionMesh object

func (*FunctionMeshReconciler) CreateOrUpdateFunction added in v0.4.0

func (r *FunctionMeshReconciler) CreateOrUpdateFunction(ctx context.Context, function *v1alpha1.Function, functionSpec v1alpha1.FunctionSpec) error

func (*FunctionMeshReconciler) CreateOrUpdateSink added in v0.4.0

func (r *FunctionMeshReconciler) CreateOrUpdateSink(ctx context.Context, sink *v1alpha1.Sink, sinkSpec v1alpha1.SinkSpec) error

func (*FunctionMeshReconciler) CreateOrUpdateSource added in v0.4.0

func (r *FunctionMeshReconciler) CreateOrUpdateSource(ctx context.Context, source *v1alpha1.Source, sourceSpec v1alpha1.SourceSpec) error

func (*FunctionMeshReconciler) ObserveFunctionMesh

func (r *FunctionMeshReconciler) ObserveFunctionMesh(ctx context.Context, req ctrl.Request,
	mesh *v1alpha1.FunctionMesh) error

func (*FunctionMeshReconciler) Reconcile

func (r *FunctionMeshReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*FunctionMeshReconciler) SetupWithManager

func (r *FunctionMeshReconciler) SetupWithManager(mgr ctrl.Manager) error

func (*FunctionMeshReconciler) UpdateFunctionMesh

func (r *FunctionMeshReconciler) UpdateFunctionMesh(ctx context.Context, req ctrl.Request,
	mesh *v1alpha1.FunctionMesh, newGeneration bool) error

type FunctionReconciler

type FunctionReconciler struct {
	client.Client
	Config            *rest.Config
	RestClient        rest.Interface
	Log               logr.Logger
	Scheme            *runtime.Scheme
	GroupVersionFlags *utils.GroupVersionFlags
}

FunctionReconciler reconciles a Function object

func (*FunctionReconciler) ApplyFunctionCleanUpJob added in v0.14.0

func (r *FunctionReconciler) ApplyFunctionCleanUpJob(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) ApplyFunctionHPA

func (r *FunctionReconciler) ApplyFunctionHPA(ctx context.Context, function *v1alpha1.Function,
	newGeneration bool) error

func (*FunctionReconciler) ApplyFunctionHPAV2Beta2 added in v0.15.0

func (r *FunctionReconciler) ApplyFunctionHPAV2Beta2(ctx context.Context, function *v1alpha1.Function,
	newGeneration bool) error

func (*FunctionReconciler) ApplyFunctionService

func (r *FunctionReconciler) ApplyFunctionService(ctx context.Context, function *v1alpha1.Function,
	newGeneration bool) error

func (*FunctionReconciler) ApplyFunctionStatefulSet

func (r *FunctionReconciler) ApplyFunctionStatefulSet(ctx context.Context, function *v1alpha1.Function,
	newGeneration bool) error

func (*FunctionReconciler) ApplyFunctionVPA added in v0.8.0

func (r *FunctionReconciler) ApplyFunctionVPA(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) ObserveFunctionHPA

func (r *FunctionReconciler) ObserveFunctionHPA(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) ObserveFunctionHPAV2Beta2 added in v0.15.0

func (r *FunctionReconciler) ObserveFunctionHPAV2Beta2(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) ObserveFunctionService

func (r *FunctionReconciler) ObserveFunctionService(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) ObserveFunctionStatefulSet

func (r *FunctionReconciler) ObserveFunctionStatefulSet(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) ObserveFunctionVPA added in v0.8.0

func (r *FunctionReconciler) ObserveFunctionVPA(ctx context.Context, function *v1alpha1.Function) error

func (*FunctionReconciler) Reconcile

func (r *FunctionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*FunctionReconciler) SetupWithManager

func (r *FunctionReconciler) SetupWithManager(mgr ctrl.Manager) error

type SinkReconciler

type SinkReconciler struct {
	client.Client
	Config            *rest.Config
	RestClient        rest.Interface
	Log               logr.Logger
	Scheme            *runtime.Scheme
	GroupVersionFlags *utils.GroupVersionFlags
}

SinkReconciler reconciles a Topic object

func (*SinkReconciler) ApplySinkCleanUpJob added in v0.14.0

func (r *SinkReconciler) ApplySinkCleanUpJob(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) ApplySinkHPA

func (r *SinkReconciler) ApplySinkHPA(ctx context.Context, sink *v1alpha1.Sink, newGeneration bool) error

func (*SinkReconciler) ApplySinkHPAV2Beta2 added in v0.15.0

func (r *SinkReconciler) ApplySinkHPAV2Beta2(ctx context.Context, sink *v1alpha1.Sink, newGeneration bool) error

func (*SinkReconciler) ApplySinkService

func (r *SinkReconciler) ApplySinkService(ctx context.Context, sink *v1alpha1.Sink, newGeneration bool) error

func (*SinkReconciler) ApplySinkStatefulSet

func (r *SinkReconciler) ApplySinkStatefulSet(ctx context.Context, sink *v1alpha1.Sink, newGeneration bool) error

func (*SinkReconciler) ApplySinkVPA added in v0.8.0

func (r *SinkReconciler) ApplySinkVPA(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) ObserveSinkHPA

func (r *SinkReconciler) ObserveSinkHPA(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) ObserveSinkHPAV2Beta2 added in v0.15.0

func (r *SinkReconciler) ObserveSinkHPAV2Beta2(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) ObserveSinkService

func (r *SinkReconciler) ObserveSinkService(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) ObserveSinkStatefulSet

func (r *SinkReconciler) ObserveSinkStatefulSet(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) ObserveSinkVPA added in v0.8.0

func (r *SinkReconciler) ObserveSinkVPA(ctx context.Context, sink *v1alpha1.Sink) error

func (*SinkReconciler) Reconcile

func (r *SinkReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*SinkReconciler) SetupWithManager

func (r *SinkReconciler) SetupWithManager(mgr ctrl.Manager) error

type SourceReconciler

type SourceReconciler struct {
	client.Client
	Config            *rest.Config
	RestClient        rest.Interface
	Log               logr.Logger
	Scheme            *runtime.Scheme
	GroupVersionFlags *utils.GroupVersionFlags
}

SourceReconciler reconciles a Source object

func (*SourceReconciler) ApplySourceCleanUpJob added in v0.14.0

func (r *SourceReconciler) ApplySourceCleanUpJob(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) ApplySourceHPA

func (r *SourceReconciler) ApplySourceHPA(ctx context.Context, source *v1alpha1.Source, newGeneration bool) error

func (*SourceReconciler) ApplySourceHPAV2Beta2 added in v0.15.0

func (r *SourceReconciler) ApplySourceHPAV2Beta2(ctx context.Context, source *v1alpha1.Source,
	newGeneration bool) error

func (*SourceReconciler) ApplySourceService

func (r *SourceReconciler) ApplySourceService(ctx context.Context, source *v1alpha1.Source, newGeneration bool) error

func (*SourceReconciler) ApplySourceStatefulSet

func (r *SourceReconciler) ApplySourceStatefulSet(ctx context.Context, source *v1alpha1.Source,
	newGeneration bool) error

func (*SourceReconciler) ApplySourceVPA added in v0.8.0

func (r *SourceReconciler) ApplySourceVPA(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) ObserveSourceHPA

func (r *SourceReconciler) ObserveSourceHPA(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) ObserveSourceHPAV2Beta2 added in v0.15.0

func (r *SourceReconciler) ObserveSourceHPAV2Beta2(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) ObserveSourceService

func (r *SourceReconciler) ObserveSourceService(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) ObserveSourceStatefulSet

func (r *SourceReconciler) ObserveSourceStatefulSet(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) ObserveSourceVPA added in v0.8.0

func (r *SourceReconciler) ObserveSourceVPA(ctx context.Context, source *v1alpha1.Source) error

func (*SourceReconciler) Reconcile

func (r *SourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*SourceReconciler) SetupWithManager

func (r *SourceReconciler) SetupWithManager(mgr ctrl.Manager) error

Directories

Path Synopsis
Package spec define the specs
Package spec define the specs

Jump to

Keyboard shortcuts

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