deploy

package
v0.0.0-alpha.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlatformConfigReconciler

type PlatformConfigReconciler struct {
	client.Client
	Name         string
	Log          logr.Logger
	Controller   controller.Controller
	Events       record.EventRecorder
	FieldManager string
	Watches      []client.Object
	Phases       *phases.Registry
	Manager      manager.Manager
}

PlatformConfigReconciler reconciles a PlatformConfig object.

func NewPlatformConfigReconciler

func NewPlatformConfigReconciler(mgr ctrl.Manager) *PlatformConfigReconciler

func (*PlatformConfigReconciler) CheckReady

func (r *PlatformConfigReconciler) CheckReady(req *workload.Request) (bool, error)

CheckReady will return whether a component is ready.

func (*PlatformConfigReconciler) GetController

func (r *PlatformConfigReconciler) GetController() controller.Controller

GetController returns the controller object associated with the reconciler.

func (*PlatformConfigReconciler) GetEventRecorder

func (r *PlatformConfigReconciler) GetEventRecorder() record.EventRecorder

GetEventRecorder returns the event recorder for writing kubernetes events.

func (*PlatformConfigReconciler) GetFieldManager

func (r *PlatformConfigReconciler) GetFieldManager() string

GetFieldManager returns the name of the field manager for the controller.

func (*PlatformConfigReconciler) GetLogger

func (r *PlatformConfigReconciler) GetLogger() logr.Logger

GetLogger returns the logger from the reconciler.

func (*PlatformConfigReconciler) GetManager

func (r *PlatformConfigReconciler) GetManager() manager.Manager

GetManager returns the manager object assocated with the reconciler.

func (*PlatformConfigReconciler) GetName

func (r *PlatformConfigReconciler) GetName() string

GetName returns the name of the reconciler.

func (*PlatformConfigReconciler) GetResources

func (r *PlatformConfigReconciler) GetResources(req *workload.Request) ([]client.Object, error)

GetResources resources runs the methods to properly construct the resources in memory.

func (*PlatformConfigReconciler) GetWatches

func (r *PlatformConfigReconciler) GetWatches() []client.Object

GetWatches returns the objects which are current being watched by the reconciler.

func (*PlatformConfigReconciler) InitializePhases

func (r *PlatformConfigReconciler) InitializePhases()

InitializePhases defines what phases should be run for each event loop. phases are executed in the order they are listed.

func (*PlatformConfigReconciler) Mutate

func (r *PlatformConfigReconciler) Mutate(
	req *workload.Request,
	object client.Object,
) ([]client.Object, bool, error)

Mutate will run the mutate function for the workload. WARN: this will be deprecated in the future. See apis/group/version/kind/mutate*

func (*PlatformConfigReconciler) NewRequest

func (r *PlatformConfigReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error)

func (*PlatformConfigReconciler) Reconcile

func (r *PlatformConfigReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*PlatformConfigReconciler) SetWatch

func (r *PlatformConfigReconciler) SetWatch(watch client.Object)

SetWatch appends a watch to the list of currently watched objects.

func (*PlatformConfigReconciler) SetupWithManager

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

type PlatformOperatorsReconciler

type PlatformOperatorsReconciler struct {
	client.Client
	Name         string
	Log          logr.Logger
	Controller   controller.Controller
	Events       record.EventRecorder
	FieldManager string
	Watches      []client.Object
	Phases       *phases.Registry
	Manager      manager.Manager
}

PlatformOperatorsReconciler reconciles a PlatformOperators object.

func NewPlatformOperatorsReconciler

func NewPlatformOperatorsReconciler(mgr ctrl.Manager) *PlatformOperatorsReconciler

func (*PlatformOperatorsReconciler) CheckReady

func (r *PlatformOperatorsReconciler) CheckReady(req *workload.Request) (bool, error)

CheckReady will return whether a component is ready.

func (*PlatformOperatorsReconciler) GetController

GetController returns the controller object associated with the reconciler.

func (*PlatformOperatorsReconciler) GetEventRecorder

func (r *PlatformOperatorsReconciler) GetEventRecorder() record.EventRecorder

GetEventRecorder returns the event recorder for writing kubernetes events.

func (*PlatformOperatorsReconciler) GetFieldManager

func (r *PlatformOperatorsReconciler) GetFieldManager() string

GetFieldManager returns the name of the field manager for the controller.

func (*PlatformOperatorsReconciler) GetLogger

func (r *PlatformOperatorsReconciler) GetLogger() logr.Logger

GetLogger returns the logger from the reconciler.

func (*PlatformOperatorsReconciler) GetManager

GetManager returns the manager object assocated with the reconciler.

func (*PlatformOperatorsReconciler) GetName

func (r *PlatformOperatorsReconciler) GetName() string

GetName returns the name of the reconciler.

func (*PlatformOperatorsReconciler) GetResources

func (r *PlatformOperatorsReconciler) GetResources(req *workload.Request) ([]client.Object, error)

GetResources resources runs the methods to properly construct the resources in memory.

func (*PlatformOperatorsReconciler) GetWatches

func (r *PlatformOperatorsReconciler) GetWatches() []client.Object

GetWatches returns the objects which are current being watched by the reconciler.

func (*PlatformOperatorsReconciler) InitializePhases

func (r *PlatformOperatorsReconciler) InitializePhases()

InitializePhases defines what phases should be run for each event loop. phases are executed in the order they are listed.

func (*PlatformOperatorsReconciler) Mutate

func (r *PlatformOperatorsReconciler) Mutate(
	req *workload.Request,
	object client.Object,
) ([]client.Object, bool, error)

Mutate will run the mutate function for the workload. WARN: this will be deprecated in the future. See apis/group/version/kind/mutate*

func (*PlatformOperatorsReconciler) NewRequest

func (r *PlatformOperatorsReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error)

func (*PlatformOperatorsReconciler) Reconcile

func (r *PlatformOperatorsReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*PlatformOperatorsReconciler) SetWatch

func (r *PlatformOperatorsReconciler) SetWatch(watch client.Object)

SetWatch appends a watch to the list of currently watched objects.

func (*PlatformOperatorsReconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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