controllers

package
v0.0.0-...-c9e8fde 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: 61 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SRgvk        = "SpecialResource"
	SROwnedLabel = "specialresource.openshift.io/owned"
)
View Source
const (
	SRMgvk        = "SpecialResourceModule"
	SRMOwnedLabel = "specialresourcemodule.openshift.io/owned"
)

Variables

This section is empty.

Functions

func FindSR

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

func FindSRM

func FindSRM(a []srov1beta1.SpecialResourceModule, x string) (int, bool)

func TemplateFragment

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

Types

type PreflightValidationReconciler

type PreflightValidationReconciler struct {
	ClusterAPI    cluster.Cluster
	Helmer        helmer.Helmer
	PreflightAPI  preflight.PreflightAPI
	RuntimeAPI    runtime.RuntimeAPI
	StatusUpdater state.StatusUpdater
	KubeClient    clients.ClientsInterface
}

ClusterPreflightReconciler reconciles a PreflightValidation object

func (*PreflightValidationReconciler) Reconcile

Reconcile Reconiliation entry point

func (*PreflightValidationReconciler) SetupWithManager

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

type SpecialResourceModuleReconciler

type SpecialResourceModuleReconciler struct {
	Scheme *k8sruntime.Scheme

	Metrics     metrics.Metrics
	ResourceAPI resource.ResourceAPI
	Filter      filter.Filter
	Helmer      helmer.Helmer
	Assets      assets.Assets
	KubeClient  clients.ClientsInterface
	Registry    registry.Registry
	Watcher     watcher.Watcher
}

SpecialResourceModuleReconciler reconciles a SpecialResourceModule object

func (*SpecialResourceModuleReconciler) Reconcile

Reconcile Reconiliation entry point

func (*SpecialResourceModuleReconciler) SetupWithManager

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

SetupWithManager main initalization for manager

type SpecialResourceReconciler

type SpecialResourceReconciler struct {
	Scheme *k8sruntime.Scheme

	Metrics       metrics.Metrics
	Cluster       cluster.Cluster
	ClusterInfo   upgrade.ClusterInfo
	ResourceAPI   resource.ResourceAPI
	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)

SpecialResourcesReconcile Takes care of all specialresources in the cluster

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