templatereconciler

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPreConditionsFatalErr

func NewPreConditionsFatalErr(err error) error

Types

type Component

type Component interface {
	Name() string
	Skipped(runtime.Object) bool
	Enabled(runtime.Object) bool
	PreChecks(runtime.Object) error
	ReleaseData(runtime.Object) (*ReleaseData, error)
	UpdateStatus(object runtime.Object, status types.ReconcileStatus, message string) error
}

type HelmReconciler

type HelmReconciler struct {
	// contains filtered or unexported fields
}

func NewHelmReconciler

func NewHelmReconciler(
	client client.Client,
	scheme *runtime.Scheme,
	logger logr.Logger,
	discovery discovery.DiscoveryInterface,
	nativeReconcilerOpts []reconciler.NativeReconcilerOpt,
) *HelmReconciler

func NewHelmReconcilerWith

func NewHelmReconcilerWith(
	client client.Client,
	scheme *runtime.Scheme,
	logger logr.Logger,
	discovery discovery.DiscoveryInterface,
	opts ...HelmReconcilerOpt,
) *HelmReconciler

func (*HelmReconciler) GetClient

func (rec *HelmReconciler) GetClient() client.Client

func (*HelmReconciler) GetResourceBuilders

func (rec *HelmReconciler) GetResourceBuilders(parent reconciler.ResourceOwner, component Component, releaseData *ReleaseData, doInventory bool) ([]reconciler.ResourceBuilder, error)

func (*HelmReconciler) Reconcile

func (rec *HelmReconciler) Reconcile(object runtime.Object, component Component) (*reconcile.Result, error)

func (HelmReconciler) RegisterWatches

func (rec HelmReconciler) RegisterWatches(_ *controllerruntime.Builder)

type HelmReconcilerOpt

type HelmReconcilerOpt func(*HelmReconciler)

func ManageNamespace

func ManageNamespace(manageNamespace bool) HelmReconcilerOpt

func WithGenericReconcilerOptions

func WithGenericReconcilerOptions(opts ...reconciler.ResourceReconcilerOption) HelmReconcilerOpt

func WithNativeReconcilerOptions

func WithNativeReconcilerOptions(opts ...reconciler.NativeReconcilerOpt) HelmReconcilerOpt

type ReleaseData

type ReleaseData struct {
	Chart       http.FileSystem
	Values      map[string]interface{}
	Namespace   string
	ChartName   string
	ReleaseName string
	// Layers can be embedded into CRDs directly to provide flexible override mechanisms
	Layers []resources.K8SResourceOverlay
	// Modifiers can be used from client code to modify resources before being applied
	Modifiers []resources.ObjectModifierFunc
	// DesiredStateOverrides can be used to override desired states of certain objects
	DesiredStateOverrides map[reconciler.ObjectKeyWithGVK]reconciler.DesiredState
}

Jump to

Keyboard shortcuts

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