Skip to content

feat: Add support for shortNames and singularName#33

Merged
trevex merged 5 commits intomainfrom
feature/32-add-support-for-resource-singular-and-short-names
Feb 20, 2026
Merged

feat: Add support for shortNames and singularName#33
trevex merged 5 commits intomainfrom
feature/32-add-support-for-resource-singular-and-short-names

Conversation

@dermorz
Copy link
Contributor

@dermorz dermorz commented Feb 19, 2026

Add ShortNamesProvider and SingularNameProvider interfaces to enable resources to define short names and singular names by implementing getter methods on the resource type, following the existing pattern used for NamespaceScoped().

/closes #32

@dermorz dermorz requested a review from trevex February 19, 2026 07:19
Add ShortNamesProvider and SingularNameProvider interfaces to enable resources
to define short names and singular names by implementing getter methods on
the resource type, following the existing pattern used for NamespaceScoped().
@dermorz dermorz force-pushed the feature/32-add-support-for-resource-singular-and-short-names branch from 421e474 to 57a0688 Compare February 19, 2026 08:47
@github-actions github-actions bot added the chore label Feb 19, 2026
When ShortNames are present, NewStore returns a wrapped store.
rest.Unwrap() returns the inner *genericregistry.Store but modifying it
in-place corrupts the main store. So we make a value copy to keep the
status subresource's UpdateStrategy isolated.
Copy link
Contributor

@trevex trevex left a comment

Choose a reason for hiding this comment

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

lgtm

@trevex trevex merged commit 753440f into main Feb 20, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Resource short names and singular name

2 participants