Skip to content

Conversation

@DmitriyMV
Copy link

This is something that I wanted to try for a while - attach the resource type directly to the resource.Type constant. The (partial) result is this PR. While it may look interesting, I don't think that we should merge it ATM.

Because:

  1. There are a LOT of Naked() calls around the code.
  2. This will require a lot of refactoring. Even here it required a lot of places to be changed.
  3. I'm not sure that this level of generic abuse is worth it (will it increase the resulting binary size because of the bloat?).

Still, this is the good starting point if anyone is interested in how it could be done.

This is something that I wanted to try for a while - attach the resource type directly to the resource.Type constant.
The (partial) result is this PR. While it may look interesting, I don't think that we should merge it ATM.

Because:
1. There are a LOT of `Naked()` calls around the code.
2. This will require a lot of refactoring. Even here it required a lot of places to be changed.
3. I'm not sure that this level of generic abuse is worth it (will it increase the resulting binary size because of the bloat?).

Still, this is the good starting point if anyone is interested in how it could be done.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
@github-actions
Copy link

github-actions bot commented Nov 1, 2025

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant