Skip to content

Convert access lists to new in memory cache collection#54389

Merged
rosstimothy merged 1 commit intomasterfrom
tross/cache_access_list
May 5, 2025
Merged

Convert access lists to new in memory cache collection#54389
rosstimothy merged 1 commit intomasterfrom
tross/cache_access_list

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Moves access lists, access list members and access list reviews to the new cache collection scheme that was introduced in #52210. No additional functionality changes have been made here. This should be a purely mechanical translation to the new internal caching machinery.

@rosstimothy rosstimothy added the no-changelog Indicates that a PR does not require a changelog entry label Apr 29, 2025
@rosstimothy rosstimothy force-pushed the tross/cache_access_list branch from dd744e2 to 2c2e3cf Compare April 29, 2025 17:51
@rosstimothy rosstimothy marked this pull request as ready for review April 29, 2025 18:36
@github-actions github-actions Bot requested a review from capnspacehook April 29, 2025 18:37
Comment thread lib/cache/access_list.go Outdated
Comment on lines +164 to +174
accessListMemberStoreNameIndex: func(r *accesslist.AccessListMember) string {
return r.Spec.AccessList + "/" + r.GetName()
},
accessListMemberStoreKindIndex: func(r *accesslist.AccessListMember) string {
return r.Spec.AccessList + "/" + r.Spec.MembershipKind + "/" + r.GetName()
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

Comment thread lib/cache/access_list.go
}

// CountAccessListMembers will count all access list members.
func (c *Cache) CountAccessListMembers(ctx context.Context, accessListName string) (uint32, uint32, error) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: used named return types or document the meaning of the positional uint32s.

@rosstimothy rosstimothy force-pushed the tross/cache_access_list branch from 5a91a7c to 1ad2f90 Compare April 29, 2025 18:49
Comment thread lib/cache/access_list.go
Comment thread lib/cache/access_list.go Outdated
@rosstimothy rosstimothy force-pushed the tross/cache_access_list branch from 1ad2f90 to 38a62d0 Compare April 30, 2025 21:22
Moves access lists, access list members and access list reviews
to the new cache collection scheme that was introduced in #52210.
No additional functionality changes have been made here. This should
be a purely mechanical translation to the new internal caching machinery.
@rosstimothy rosstimothy force-pushed the tross/cache_access_list branch from 765c38e to 9da6eb6 Compare May 5, 2025 18:48
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from capnspacehook May 5, 2025 18:48
@rosstimothy rosstimothy enabled auto-merge May 5, 2025 18:49
@rosstimothy rosstimothy added this pull request to the merge queue May 5, 2025
Merged via the queue into master with commit c0eb834 May 5, 2025
41 checks passed
@rosstimothy rosstimothy deleted the tross/cache_access_list branch May 5, 2025 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants