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 ¶
func ToGroupMembersPatch(prev *groupv1alpha1.GroupMembers, curr *groupv1alpha1.GroupMembers) groupv1alpha1.GroupMembersPatch
ToGroupMembersPatch calculate the patch between two groupmembers.
Types ¶
type GroupReconciler ¶
GroupReconciler watch endpoints and endpointgroups resources, create, update or delete groupmembers and groupmemberspatches according to group members changes.
func (*GroupReconciler) Reconcile ¶
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.
Click to show internal directories.
Click to hide internal directories.