You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
containers:
- name: coredns{{- if regexMatch "^1\\.2[34]$" .k8sversion }}image: coredns:v1.8.7{{- end }}imagePullPolicy: IfNotPresentresources:
limits:
memory: 170Mirequests:
cpu: 100mmemory: 70Mi
I have yet to find a great mode configuration for working with these and am wondering what people who use go-mode are using, if they have this same scenario.
What I've investigated:
First was of course yaml-mode of course, which is the best I can get so far, but occasionally breaks on some template syntax. This is what I'm currently using by default.
Next I found #184 which was talking about go template syntax in web files, but web-mode specifically does not support yaml syntax and it seems it will not be added: fxbois/web-mode#934
Third I was directed to poly-ansible that uses polymode, which seems pretty promising but: 1) pulls in ansible-mode as a dependency and 2) is for jinja2 templates, which while similar are not quite the same as go templates.
Does anyone else using go-mode have this same problem?
No offense if you choose to just close but thanks for any info that might help
The text was updated successfully, but these errors were encountered:
Hey there,
Sorry for making an issue if this seems unrelated or has been answered, I searched around and have asked other places to no avail so far.
I deal quite a bit with yaml template files that have inline template syntax, based on text/template and sprig, you can blame kubernetes.
Example snippet:
or another example:
I have yet to find a great mode configuration for working with these and am wondering what people who use go-mode are using, if they have this same scenario.
What I've investigated:
First was of course yaml-mode of course, which is the best I can get so far, but occasionally breaks on some template syntax. This is what I'm currently using by default.
Next I found #184 which was talking about go template syntax in web files, but web-mode specifically does not support yaml syntax and it seems it will not be added: fxbois/web-mode#934
Third I was directed to poly-ansible that uses polymode, which seems pretty promising but: 1) pulls in ansible-mode as a dependency and 2) is for jinja2 templates, which while similar are not quite the same as go templates.
Does anyone else using go-mode have this same problem?
No offense if you choose to just close but thanks for any info that might help
The text was updated successfully, but these errors were encountered: