Skip to content

Conversation

Diaphteiros
Copy link
Contributor

What this PR does / why we need it:
#114 added new hash functions for generating k8s resource names, but opposed to the old ones, they return not only a string, but also an error. To make using the new functions easier in cases where the input is known to be valid, this PR adds 'unsafe' variants for the functions which panic instead of returning an error.

Which issue(s) this PR fixes:
None

Special notes for your reviewer:

Release note:

Added `K8sNameUUIDUnsafe` and `K8sObjectUUIDUnsafe` alternatives for the `K8sNameUUID` and `K8sObjectUUID` functions that panic instead of returning an error.

@Diaphteiros Diaphteiros merged commit 15c510e into main Aug 15, 2025
8 checks passed
@Diaphteiros Diaphteiros deleted the name-uuid-unsafe branch August 15, 2025 09:21
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