components

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertConfigStateToReconcileStatus

func ConvertConfigStateToReconcileStatus(state v1alpha1.ConfigState) types.ReconcileStatus

func ConvertReconcileStatusToConfigState

func ConvertReconcileStatusToConfigState(status types.ReconcileStatus) v1alpha1.ConfigState

func UpdateStatus

func UpdateStatus(ctx context.Context, c client.Client, object runtime.Object, status types.ReconcileStatus, message string) error

Types

type Base

type Base struct {
	HelmReconciler *HelmReconciler
	Component      MinimalComponent
}

func (*Base) Enabled

func (rec *Base) Enabled(object runtime.Object) bool

func (*Base) GetHelmReconciler

func (rec *Base) GetHelmReconciler() *HelmReconciler

func (*Base) GetManifest

func (rec *Base) GetManifest(object runtime.Object) ([]byte, error)

func (*Base) IsOptional

func (rec *Base) IsOptional() bool

func (*Base) Name

func (rec *Base) Name() string

func (*Base) PreChecks

func (rec *Base) PreChecks(object runtime.Object) error

func (*Base) Reconcile

func (rec *Base) Reconcile(object runtime.Object) (reconcile.Result, error)

func (*Base) ReleaseData

func (rec *Base) ReleaseData(object runtime.Object) (*templatereconciler.ReleaseData, error)

func (*Base) Skipped

func (rec *Base) Skipped(object runtime.Object) bool

func (*Base) UpdateStatus

func (rec *Base) UpdateStatus(object runtime.Object, status types.ReconcileStatus, message string) error

type ComponentReconciler

type ComponentReconciler interface {
	templatereconciler.Component
	Reconcile(object runtime.Object) (reconcile.Result, error)
	GetManifest(object runtime.Object) ([]byte, error)
	GetHelmReconciler() *HelmReconciler
}

type HelmReconciler

type HelmReconciler = templatereconciler.HelmReconciler

type MinimalComponent

type MinimalComponent interface {
	Name() string
	Enabled(runtime.Object) bool
	ReleaseData(runtime.Object) (*templatereconciler.ReleaseData, error)
}

type NewComponentReconcilerFunc

type NewComponentReconcilerFunc = func(helmReconciler *HelmReconciler) ComponentReconciler

type ObjectWithStatus

type ObjectWithStatus interface {
	client.Object
	SetStatus(status v1alpha1.ConfigState, errorMessage string)
}

type Reconciler

type Reconciler interface {
	GetClient() client.Client
	GetScheme() *runtime.Scheme
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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