-
Notifications
You must be signed in to change notification settings - Fork 233
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
Incorrect behaviour when working with helm templates #407
Comments
@JPinkney, yeah, I have several extensions but when I disable only this one, no red lines appeared |
Are you able to post more of your yaml file? Do you have another apiVersion at the root of the document? |
Found workaround to this issue. |
If you are using helm you should definitely install vscode-kubernetes! It interfaces with this extension in order to provide its support. The reason why your helm yaml doesn't validate correctly is because something like: {{- if .Values.hooks.enabled -}}
apiVersion: batch/v1
kind: Job
metadata:
name: {{ template "sentry.fullname" . }}-db-init
{{- end -}} isn't valid in yaml 1.2. It's only valid in helms custom yaml |
+1 same issues with the kubernets vscode extension installed, Is there any solutions we could refer to? |
I've installed VS Code's Kubernetes extension and I'm having this issue, the workaround @sagor999 mentioned works. However, this prevents autocompletion, snippets, etc. from working. Would be nice for both extensions to work together. |
Works for me now. |
Describe the bug
When work with helm templates, there are a lot of wrong errors.
Expected Behavior
Should work correctly as it was before
Current Behavior
Mark a lot of lines as containing error
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: