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

redpanda: fix out of range slice in go mode #1627

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

chrisseto
Copy link
Contributor

This commit fixes a slice operation that could generate a panic when run as go code if a string was less than 49 character in length. It has no effect on the transpiled templates as substr appropriately handles out of bounds slices.

Ideally, this commit would modify TestTemplate to additionally run the go chart as well however doing so surfaced other issues with helmette.Tpl. See K8S-468.

This commit fixes a slice operation that could generate a panic when run as go
code if a string was less than 49 character in length. It has no effect on the
transpiled templates as `substr` appropriately handles out of bounds slices.

Ideally, this commit would modify `TestTemplate` to additionally run the go
chart as well however doing so surfaced other issues with `helmette.Tpl`. See
K8S-468.
@chrisseto chrisseto enabled auto-merge (rebase) December 18, 2024 22:11
@chrisseto chrisseto merged commit 0eab2ff into main Dec 18, 2024
43 checks passed
@chrisseto chrisseto deleted the chris/p/redpanda-bad-slice branch December 18, 2024 22:40
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