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

PESDLC-1095 Fix and check len limits when creating shell #17700

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

savex
Copy link
Contributor

@savex savex commented Apr 8, 2024

When creating pod in GKE long suffixes braking the limit of 63 chars enforced by K8s.
This shortens the name and adds a check for the future

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.3.x
  • v23.2.x

Release Notes

  • none

@savex savex self-assigned this Apr 8, 2024
@savex savex marked this pull request as ready for review April 8, 2024 15:07
@savex savex force-pushed the PESDLC-1095-priv-shell-name-len branch from 3d4cda9 to 99273b1 Compare April 8, 2024 15:09
if len(self.pod_name) > 63:
# Assume that our added chars broke the limit
# Cut them to fit
self.pod_name = self.pod_name[:63]
Copy link
Member

Choose a reason for hiding this comment

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

This is just a pod name we make up right? So truncating it isn't really an issue.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes,it is just a pod name to find it if someone really wants to.

@piyushredpanda piyushredpanda merged commit a2d31b1 into dev Apr 8, 2024
11 of 16 checks passed
@piyushredpanda piyushredpanda deleted the PESDLC-1095-priv-shell-name-len branch April 8, 2024 19:00
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.

None yet

3 participants