Documentation ¶
Index ¶
- func RemoveERdmaDevices(erdmaClient client.Client, ctx context.Context, nodeName string) (ctrl.Result, error)
- type ERdmaDeviceReconciler
- type EriClient
- func (e *EriClient) ConvertPrimaryENI(primaryENI string, queuePair int) error
- func (e *EriClient) CreateEriForInstance(instanceInfo *ecs.DescribeInstancesResponseBodyInstancesInstance, ...) ([]*types.ERI, error)
- func (e *EriClient) EnsureEriForInstance(devices []networkv1.DeviceInfo) ([]networkv1.DeviceStatus, error)
- func (e *EriClient) InstanceIDFromNode(node *corev1.Node) (string, error)
- func (e *EriClient) OwnENI(...) bool
- func (e *EriClient) SelectERIs(instanceID string) ([]*types.ERI, error)
- type NodeReconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ERdmaDeviceReconciler ¶
ERdmaDeviceReconciler reconciles a ERdmaDevice object
func (*ERdmaDeviceReconciler) Reconcile ¶
func (r *ERdmaDeviceReconciler) 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 ERdmaDevice 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.19.0/pkg/reconcile
func (*ERdmaDeviceReconciler) SetupWithManager ¶
func (r *ERdmaDeviceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type EriClient ¶
type EriClient struct {
// contains filtered or unexported fields
}
func NewEriClient ¶
func (*EriClient) ConvertPrimaryENI ¶
func (*EriClient) CreateEriForInstance ¶
func (*EriClient) EnsureEriForInstance ¶
func (e *EriClient) EnsureEriForInstance(devices []networkv1.DeviceInfo) ([]networkv1.DeviceStatus, error)
func (*EriClient) InstanceIDFromNode ¶
type NodeReconciler ¶
NodeReconciler reconciles a ERdmaDevice object
func (*NodeReconciler) 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. TODO(user): Modify the Reconcile function to compare the state specified by the ERdmaDevice 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.19.0/pkg/reconcile
func (*NodeReconciler) SetupWithManager ¶
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.