Documentation
¶
Index ¶
Constants ¶
const YggdrasilDeviceReferenceFinalizer = "yggdrasil-device-reference-finalizer"
Variables ¶
This section is empty.
Functions ¶
func ExecuteConcurrent ¶
func ExecuteConcurrent(concurrency uint, f ConcurrentFunc, edgeDevices []managementv1alpha1.EdgeDevice) []error
func UpdateSelectorLabels ¶
func UpdateSelectorLabels(edgeDeployments ...*managementv1alpha1.EdgeDeployment)
Types ¶
type ConcurrentFunc ¶
type ConcurrentFunc func([]managementv1alpha1.EdgeDevice) []error
type EdgeDeploymentReconciler ¶
type EdgeDeploymentReconciler struct {
client.Client
Scheme *runtime.Scheme
EdgeDeploymentRepository edgedeployment.Repository
EdgeDeviceRepository edgedevice.Repository
Concurrency uint
ExecuteConcurrent func(uint, ConcurrentFunc, []managementv1alpha1.EdgeDevice) []error
Metrics metrics.Metrics
MaxConcurrentReconciles int
}
EdgeDeploymentReconciler reconciles a EdgeDeployment object
func (*EdgeDeploymentReconciler) Reconcile ¶
func (r *EdgeDeploymentReconciler) 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 EdgeDeployment 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.8.3/pkg/reconcile
func (*EdgeDeploymentReconciler) SetupWithManager ¶
func (r *EdgeDeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type EdgeDeviceLabelsReconciler ¶
type EdgeDeviceLabelsReconciler struct {
EdgeDeviceRepository edgedevice.Repository
EdgeDeploymentRepository edgedeployment.Repository
MaxConcurrentReconciles int
}
EdgeDeviceReconciler reconciles a EdgeDevice object
func (*EdgeDeviceLabelsReconciler) SetupWithManager ¶
func (r *EdgeDeviceLabelsReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type EdgeDeviceReconciler ¶
type EdgeDeviceReconciler struct {
client.Client
Scheme *runtime.Scheme
EdgeDeviceRepository edgedevice.Repository
ObcAutoCreate bool
Claimer *storage.Claimer
Metrics metrics.Metrics
MaxConcurrentReconciles int
}
EdgeDeviceReconciler reconciles a EdgeDevice object
func (*EdgeDeviceReconciler) Reconcile ¶
func (r *EdgeDeviceReconciler) 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 EdgeDevice 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.8.3/pkg/reconcile
func (*EdgeDeviceReconciler) SetupWithManager ¶
func (r *EdgeDeviceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.