kode

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitKodeResourcesConfig

func InitKodeResourcesConfig(
	kode *kodev1alpha2.Kode,
	template *kodev1alpha2.Template) *common.KodeResourceConfig

func NewKodeCleanupResource added in v0.4.0

func NewKodeCleanupResource(kode *kodev1alpha2.Kode) cleanup.CleanupableResource

Types

type KodeCleanupResource added in v0.4.0

type KodeCleanupResource struct {
	Kode *kodev1alpha2.Kode
}

func (*KodeCleanupResource) GetResources added in v0.4.0

func (k *KodeCleanupResource) GetResources() []cleanup.Resource

func (*KodeCleanupResource) ShouldDelete added in v0.4.0

func (k *KodeCleanupResource) ShouldDelete(resource cleanup.Resource) bool

type KodeReconciler

type KodeReconciler struct {
	Client                client.Client
	Scheme                *runtime.Scheme
	Log                   logr.Logger
	Resource              resourcev1.ResourceManager
	Template              template.TemplateManager
	CleanupManager        cleanup.CleanupManager
	EventManager          event.EventManager
	IsTestEnvironment     bool
	ReconcileInterval     time.Duration
	LongReconcileInterval time.Duration
}

func (*KodeReconciler) GetCleanupManager added in v0.7.0

func (r *KodeReconciler) GetCleanupManager() cleanup.CleanupManager

func (*KodeReconciler) GetClient added in v0.7.0

func (r *KodeReconciler) GetClient() client.Client

func (*KodeReconciler) GetEventRecorder added in v0.7.0

func (r *KodeReconciler) GetEventRecorder() event.EventManager

func (*KodeReconciler) GetIsTestEnvironment added in v0.7.0

func (r *KodeReconciler) GetIsTestEnvironment() bool

func (*KodeReconciler) GetLog added in v0.7.0

func (r *KodeReconciler) GetLog() logr.Logger

func (*KodeReconciler) GetLongReconcileInterval added in v0.7.0

func (r *KodeReconciler) GetLongReconcileInterval() time.Duration

func (*KodeReconciler) GetReconcileInterval added in v0.7.0

func (r *KodeReconciler) GetReconcileInterval() time.Duration

func (*KodeReconciler) GetResourceManager added in v0.7.0

func (r *KodeReconciler) GetResourceManager() resourcev1.ResourceManager

func (*KodeReconciler) GetScheme added in v0.7.0

func (r *KodeReconciler) GetScheme() *runtime.Scheme

func (*KodeReconciler) GetTemplateManager added in v0.7.0

func (r *KodeReconciler) GetTemplateManager() template.TemplateManager

func (*KodeReconciler) HandleReconcileError added in v0.7.0

func (r *KodeReconciler) HandleReconcileError(ctx context.Context, resource statemachine.StateManagedResource, err error, message string) (kodev1alpha2.Phase, ctrl.Result, error)

func (*KodeReconciler) Reconcile

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

func (*KodeReconciler) SetupWithManager

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

type ResourceReadyCheck added in v0.7.0

ResourceReadyCheck defines a function type for resource readiness checks

func ComposeResourceChecks added in v0.7.0

func ComposeResourceChecks() []ResourceReadyCheck

ComposeResourceChecks returns a slice of all resource ready checks

Jump to

Keyboard shortcuts

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