Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shorten service binding secret volume mount names #1562

Merged

Conversation

georgethebeatle
Copy link
Contributor

The volume name has a limit of 63 characters. Using the service-binding-secret- prefix exhaust a significant part of this limit. Given that the binding name is a user input it is not too hard to hit that limit.

While this PR solves our immediate problem, you could consider whether shortening all the volume names makes sense. One way of keeping names within the limit is to use a name of sha-1(prefix+binding-name)

The volume name has a limit of 63 characters. Using the
`service-binding-secret-` prefix exhaust a significant part of this
limit. Given that the binding name is a user input it is not too hard to
hit that limit.

Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
@georgethebeatle georgethebeatle requested a review from a team as a code owner March 21, 2024 09:46
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.34%. Comparing base (e2c57e6) to head (9c3620a).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1562   +/-   ##
=======================================
  Coverage   67.34%   67.34%           
=======================================
  Files         140      140           
  Lines        8886     8886           
=======================================
  Hits         5984     5984           
  Misses       2393     2393           
  Partials      509      509           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tomkennedy513 tomkennedy513 merged commit 7983cc8 into buildpacks-community:main Mar 22, 2024
1 check passed
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.

4 participants