Skip to content

Conversation

ValentinGerlach
Copy link
Member

What this PR does / why we need it:

  • Adds a function ShortenToXCharacters that can be used to shorten strings
    • Example: my-namespace.my-managed-control-plane-name, 32 => my-namespace.my-manage--px6ejzpe
  • Deprecates old hash functions
    • K8sNameUUID
    • K8sNameUUIDUnsafe
    • K8sObjectUUID
    • K8sObjectUUIDUnsafe
    • K8sNameHash
  • Change visibility of version8UUID so that we don't accidentally use it outside of K8sNameUUID

Release note:

feat: add func to shorten strings
chore: deprecate old hash funcs

Copy link
Member

@n3rdc4ptn n3rdc4ptn left a comment

Choose a reason for hiding this comment

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

lgtm, really nice :)

@ValentinGerlach ValentinGerlach merged commit aa397b5 into main Sep 11, 2025
8 checks passed
@ValentinGerlach ValentinGerlach deleted the deprecate-old-hash-funcs branch September 11, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants