core

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: UPL-1.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OSOKFinalizerName = "finalizers.oci.oracle.com/oci-resources"
)

Variables

This section is empty.

Functions

func HasFinalizer

func HasFinalizer(obj client.Object, finalizer string) bool

Types

type BaseReconciler

type BaseReconciler struct {
	client.Client
	OSOKServiceManager   servicemanager.OSOKServiceManager
	Finalizer            Finalizer
	Log                  loggerutil.OSOKLogger
	Metrics              *metrics.Metrics
	Recorder             record.EventRecorder
	Scheme               *runtime.Scheme
	AdditionalFinalizers []string
}

func (*BaseReconciler) DeleteResource

func (r *BaseReconciler) DeleteResource(ctx context.Context, obj client.Object, req ctrl.Request) (bool, error)

func (*BaseReconciler) GetStatus

func (r *BaseReconciler) GetStatus(obj client.Object) (*v1beta1.OSOKStatus, error)

func (*BaseReconciler) Reconcile

func (r *BaseReconciler) Reconcile(ctx context.Context, req ctrl.Request, obj client.Object) (result ctrl.Result, err error)

func (*BaseReconciler) ReconcileResource

func (r *BaseReconciler) ReconcileResource(ctx context.Context, obj client.Object, req ctrl.Request) (ctrl.Result, error)

type Finalizer

type Finalizer interface {
	AddFinalizers(obj client.Object, finalizers ...string)
	RemoveFinalizer(obj client.Object, finalizers ...string)
}

func NewBaseFinalizer

func NewBaseFinalizer(client client.Client, log logr.Logger) Finalizer

Jump to

Keyboard shortcuts

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