Documentation ¶
Index ¶
- Constants
- func FindSR(a []srov1beta1.SpecialResource, x string, by string) (int, bool)
- func FindSRM(a []srov1beta1.SpecialResourceModule, x string) (int, bool)
- func TemplateFragment(sr interface{}, runInfo *runtime.RuntimeInformation) error
- type PreflightValidationReconciler
- type SpecialResourceModuleReconciler
- type SpecialResourceReconciler
- func (r *SpecialResourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *SpecialResourceReconciler) ReconcileChart(ctx context.Context, wi *WorkItem) error
- func (r *SpecialResourceReconciler) ReconcileChartStates(ctx context.Context, wi *WorkItem) error
- func (r *SpecialResourceReconciler) ReconcileSpecialResourceChart(ctx context.Context, wi *WorkItem) error
- func (r *SpecialResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *SpecialResourceReconciler) SpecialResourcesReconcile(ctx context.Context, wi *WorkItem) (ctrl.Result, error)
- type WorkItem
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 ¶
func (r *PreflightValidationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *SpecialResourceModuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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 ¶
func (r *SpecialResourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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
Click to show internal directories.
Click to hide internal directories.