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

fix(vector): Fix indentation for haproxy.initContainers #390

Merged

Conversation

ludwighansson
Copy link
Contributor

Hello friends!

I just encountered a small issue with the vector chart when trying to add an optional init-container for the HAProxy deployment. The line that expands .Values.haproxy.initContainers doesn't trim the initial whitespaces, causing the first line of the rendered YAML to have 16 spaces instead of the desired 8.

Added a {{- to trim the initial whitespaces (and newline), and used nindent to add the newline again. This aligns with other expansions within this template :)

This is my first PR, so please let me know if you need any additional info or if I need to change the commit message etc. Tried to keep it similar to the existing ones ;)

Cheers!

Corrects the indentation for optional HAProxy init-containers by
trimming initial whitespaces from the template.
Copy link
Member

@jszwedko jszwedko left a comment

Choose a reason for hiding this comment

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

Thanks @ludwighansson ! I think this PR may just need the chart version bumped and helm-docs rerun. I kicked off CI which should tell us.

@jszwedko jszwedko merged commit 8e4cb99 into vectordotdev:develop Jun 3, 2024
11 checks 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.

None yet

4 participants