controllers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConditionTrue  bool = true
	ConditionFalse bool = false
)

Define condition values

View Source
const (

	// NnfAccessAnnotation is an annotation applied to the NnfStorage object used to
	// prevent multiple accesses to a non-clustered file system
	NnfAccessAnnotation = "nnf.cray.hpe.com/access"
)
View Source
const (
	// NnfNlcResourceName is the name of the NNF Node Local Controller resource.
	NnfNlcResourceName = "nnf-nlc"
)
View Source
const (
	NnfNodeECDataResourceName = "ec-data"
)

Variables

This section is empty.

Functions

func Requeue

func Requeue(reason string) *result

When workflow stages cannot advance they return a Requeue result with a particular reason.

Types

type DWSServersReconciler

type DWSServersReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *kruntime.Scheme
}

DWSServersReconciler reconciles a DWS Servers object

func (*DWSServersReconciler) Reconcile

func (r *DWSServersReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Workflow object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*DWSServersReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type DWSStorageReconciler added in v0.0.2

type DWSStorageReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

func (*DWSStorageReconciler) Reconcile added in v0.0.2

func (r *DWSStorageReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main Kubernetes reconciliation loop which aims to move the current state of the Storage resource to the desired state.

func (*DWSStorageReconciler) SetupWithManager added in v0.0.2

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

type DirectiveBreakdownReconciler

type DirectiveBreakdownReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *kruntime.Scheme
	ChildObjects []dwsv1alpha1.ObjectList
}

DirectiveBreakdownReconciler reconciles a DirectiveBreakdown object

func (*DirectiveBreakdownReconciler) Reconcile

func (r *DirectiveBreakdownReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the directiveBreakdown closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*DirectiveBreakdownReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NnfAccessReconciler

type NnfAccessReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *kruntime.Scheme
	ChildObjects []dwsv1alpha1.ObjectList
}

NnfAccessReconciler reconciles a NnfAccess object

func (*NnfAccessReconciler) Reconcile

func (r *NnfAccessReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NnfAccessReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NnfClientMountReconciler

type NnfClientMountReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *kruntime.Scheme
}

NnfClientMountReconciler contains the pieces used by the reconciler

func (*NnfClientMountReconciler) Reconcile

func (r *NnfClientMountReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NnfClientMountReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NnfNodeECDataReconciler

type NnfNodeECDataReconciler struct {
	client.Client
	Scheme  *runtime.Scheme
	Options *nnfec.Options
	types.NamespacedName
}

NnfNodeECDataReconciler reconciles a NnfNodeECData object

func (*NnfNodeECDataReconciler) NewPersistentStorageInterface

func (r *NnfNodeECDataReconciler) NewPersistentStorageInterface(name string, readOnly bool) (persistent.PersistentStorageApi, error)

func (*NnfNodeECDataReconciler) Reconcile

func (r *NnfNodeECDataReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NnfNodeECData object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.10.0/pkg/reconcile

func (*NnfNodeECDataReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*NnfNodeECDataReconciler) Start

Start implements manager.Runnable

type NnfNodeReconciler

type NnfNodeReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *kruntime.Scheme

	Options *nnfec.Options

	types.NamespacedName
}

NnfNodeReconciler reconciles a NnfNode object

func (*NnfNodeReconciler) EventHandler

func (r *NnfNodeReconciler) EventHandler(e event.Event) error

EventHandler implements event.Subscription. Every Upstream or Downstream event runs the reconciler so all the NNF Node server/drive status stays current.

func (*NnfNodeReconciler) Reconcile

func (r *NnfNodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*NnfNodeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*NnfNodeReconciler) Start

func (r *NnfNodeReconciler) Start(ctx context.Context) error

Start is called upon starting the component manager and will create the Namespace for controlling the NNF Node CRD that is representiative of this particular NNF Node.

type NnfNodeStorageReconciler

type NnfNodeStorageReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *kruntime.Scheme

	types.NamespacedName
}

NnfNodeStorageReconciler contains the elements needed during reconciliation for NnfNodeStorage

func (*NnfNodeStorageReconciler) Reconcile

func (r *NnfNodeStorageReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*NnfNodeStorageReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NnfStorageReconciler

type NnfStorageReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *kruntime.Scheme
	ChildObjects []dwsv1alpha1.ObjectList
}

NnfStorageReconciler reconciles a Storage object

func (*NnfStorageReconciler) Reconcile

func (r *NnfStorageReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NnfStorageReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NnfSystemConfigurationReconciler

type NnfSystemConfigurationReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *kruntime.Scheme
}

NnfSystemConfigurationReconciler contains the pieces used by the reconciler

func (*NnfSystemConfigurationReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*NnfSystemConfigurationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NnfWorkflowReconciler

type NnfWorkflowReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *kruntime.Scheme
	ChildObjects []dwsv1alpha1.ObjectList
}

NnfWorkflowReconciler contains the pieces used by the reconciler

func (*NnfWorkflowReconciler) Reconcile

func (r *NnfWorkflowReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*NnfWorkflowReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PersistentStorageReconciler

type PersistentStorageReconciler struct {
	client.Client
	Log          logr.Logger
	Scheme       *kruntime.Scheme
	ChildObjects []dwsv1alpha1.ObjectList
}

DirectiveBreakdownReconciler reconciles a DirectiveBreakdown object

func (*PersistentStorageReconciler) Reconcile

func (r *PersistentStorageReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the directiveBreakdown closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.9.2/pkg/reconcile

func (*PersistentStorageReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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