controllers

package
v0.0.0-...-5e97683 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindSR

func FindSR(a []srov1beta1.SpecialResource, x string, by string) (int, bool)

func TemplateFragment

func TemplateFragment(sr interface{}, runInfo *runtime.RuntimeInformation) error

Types

type SpecialResourceReconciler

type SpecialResourceReconciler struct {
	Scheme *k8sruntime.Scheme

	Metrics       metrics.Metrics
	Cluster       cluster.Cluster
	ClusterInfo   upgrade.ClusterInfo
	Creator       resource.Creator
	Filter        filter.Filter
	Finalizer     finalizers.SpecialResourceFinalizer
	Helmer        helmer.Helmer
	Assets        assets.Assets
	PollActions   poll.PollActions
	StatusUpdater state.StatusUpdater
	Storage       storage.Storage
	KernelData    kernel.KernelData
	ProxyAPI      proxy.ProxyAPI
	RuntimeAPI    runtime.RuntimeAPI
	KubeClient    clients.ClientsInterface
}

SpecialResourceReconciler reconciles a SpecialResource object

func (*SpecialResourceReconciler) Reconcile

Reconcile Reconiliation entry point

func (*SpecialResourceReconciler) ReconcileChart

func (r *SpecialResourceReconciler) ReconcileChart(ctx context.Context, wi *WorkItem) error

ReconcileChart Reconcile Hardware Configurations

func (*SpecialResourceReconciler) ReconcileChartStates

func (r *SpecialResourceReconciler) ReconcileChartStates(ctx context.Context, wi *WorkItem) error

ReconcileChartStates Reconcile Hardware States

func (*SpecialResourceReconciler) ReconcileSpecialResourceChart

func (r *SpecialResourceReconciler) ReconcileSpecialResourceChart(ctx context.Context, wi *WorkItem) error

func (*SpecialResourceReconciler) SetupWithManager

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

SetupWithManager main initalization for manager

func (*SpecialResourceReconciler) SpecialResourcesReconcile

func (r *SpecialResourceReconciler) SpecialResourcesReconcile(ctx context.Context, wi *WorkItem) (ctrl.Result, error)

type WorkItem

type WorkItem struct {
	// SpecialResource is currently reconciled object
	SpecialResource *srov1beta1.SpecialResource

	// AllSRs stores all of currently existing SpecialResources in the cluster.
	// It is used for resolving SpecialResource dependencies.
	AllSRs *srov1beta1.SpecialResourceList

	// Chart stores SpecialResource's chart
	Chart *chart.Chart

	// RunInfo contains information about the cluster.
	RunInfo *runtime.RuntimeInformation
}

WorkItem stores values required for current reconciliation

func (*WorkItem) CreateForChild

func (wi *WorkItem) CreateForChild(child *srov1beta1.SpecialResource, c *chart.Chart) *WorkItem

Jump to

Keyboard shortcuts

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