Documentation ¶
Index ¶
- Constants
- func Requeue(reason string) *result
- type DWSServersReconciler
- type DWSStorageReconciler
- type DirectiveBreakdownReconciler
- type NnfAccessReconciler
- type NnfClientMountReconciler
- type NnfNodeECDataReconciler
- func (r *NnfNodeECDataReconciler) NewPersistentStorageInterface(name string, readOnly bool) (persistent.PersistentStorageApi, error)
- func (r *NnfNodeECDataReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *NnfNodeECDataReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *NnfNodeECDataReconciler) Start(ctx context.Context) error
- type NnfNodeReconciler
- type NnfNodeStorageReconciler
- type NnfStorageReconciler
- type NnfSystemConfigurationReconciler
- type NnfWorkflowReconciler
- type PersistentStorageReconciler
Constants ¶
const ( ConditionTrue bool = true ConditionFalse bool = false )
Define condition values
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" )
const (
// NnfNlcResourceName is the name of the NNF Node Local Controller resource.
NnfNlcResourceName = "nnf-nlc"
)
const (
NnfNodeECDataResourceName = "ec-data"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DWSServersReconciler ¶
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
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 ¶
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.
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.
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 ¶
func (r *NnfSystemConfigurationReconciler) 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.
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.
Source Files ¶
- directivebreakdown_controller.go
- dws_servers_controller.go
- dws_storage_controller.go
- nnf_access_controller.go
- nnf_clientmount_controller.go
- nnf_node_controller.go
- nnf_node_ec_data_controller.go
- nnf_node_storage_controller.go
- nnf_persistentstorageinstance_controller.go
- nnf_storage_controller.go
- nnf_systemconfiguration_controller.go
- nnf_workflow_controller.go
- nnf_workflow_controller_helpers.go
- nnfstorageprofile_helpers.go