group

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyGroupMembersPatches

func ApplyGroupMembersPatches(groupmembers *groupv1alpha1.GroupMembers, patches []groupv1alpha1.GroupMembersPatch)

ApplyGroupMembersPatches apply GroupMemberPatches to GroupMembers.

func IsEmptyPatch

func IsEmptyPatch(patch groupv1alpha1.GroupMembersPatch) bool

IsEmptyPatch return true if and only if the patch is empty.

func ToGroupMembersPatch

ToGroupMembersPatch calculate the patch between two groupmembers.

Types

type GroupReconciler

type GroupReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

GroupReconciler watch endpoints and endpointgroups resources, create, update or delete groupmembers and groupmemberspatches according to group members changes.

func (*GroupReconciler) Reconcile

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

Reconcile receive endpointgroup from work queue, first it create groupmemberspatch, then it update groupmembers, latest it clean old groupmemberspatches.

func (*GroupReconciler) SetupWithManager

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

SetupWithManager create and add Group Controller to the manager.

Jump to

Keyboard shortcuts

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