-
Notifications
You must be signed in to change notification settings - Fork 99
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
helm lint fails due to extra hyphen in if statement #271
Comments
Hi @cmontemuino , Thanks for creating the issue. Please go ahead and raise the PR. |
cmontemuino
added a commit
to cmontemuino/lvm-localpv
that referenced
this issue
Nov 22, 2023
The hyphen at the end of the closing brackes is responsible for chomping all the whitespaces after the brackets. Thus, a previous YAML separator gets into the same line as the `apiVersion` element from the resource enable by the `if` statement. fixes openebs#271 Signed-off-by: cmontemuino <[email protected]>
7 tasks
cmontemuino
added a commit
to cmontemuino/lvm-localpv
that referenced
this issue
Nov 22, 2023
The hyphen at the end of the closing brackets is responsible for chomping all the whitespaces after the brackets. Thus, a previous YAML separator gets into the same line as the `apiVersion` element from the resource enable by the `if` statement. fixes openebs#271 Signed-off-by: cmontemuino <[email protected]>
Here it is: #272 |
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What steps did you take and what happened:
Output:
What did you expect to happen:
I would expect this output instead:
Anything else you would like to add:
Offending code:
lvm-localpv/deploy/helm/charts/templates/rbac.yaml
Line 126 in 400159d
{{- if .Values.serviceAccount.lvmNode.create -}}
The hyphen before the closing brackets is chomping all the whitespace after the brackets.
I'd like to open a PR with the fix.
Environment:
kubectl version
):/etc/os-release
):The text was updated successfully, but these errors were encountered: