Get Kubernetes resource autocompletion and validation in Vim. Post: octetz.com/doc...
Пікірлер: 23
@jaychang56314 жыл бұрын
I like the way you talking in English, very clear and elegant. Very comfortable for me as a non-native speaker
@sreekalyanbapatla98082 жыл бұрын
Thank you so much for the detailed explanation.
@Oswee4 жыл бұрын
This is so coool!!! Thank you for taking your time and sharing these gems! :)
@karolszlachta54614 жыл бұрын
Thank you! I find this extremely useful.
@srgpip4 жыл бұрын
Thanks for sharing. Just a little update (~12:17): The schema uri location is now located at ~/.config/coc/extensions/node_modules/coc-yaml/node_modules/yaml-language-server/out/server/src/languageservice/utils/schemaUrls.js It currently set to: exports.KUBERNETES_SCHEMA_URL = 'raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/v1.14.0-standalone-strict/all.json';
@akhiljohn92474 жыл бұрын
Yeah and the KUBERNETES_SCHEMA_URL for v1.18.0 also works on the same tree(instrumenta). By the way a great video. Thank you so much :)
@armandoleon99013 жыл бұрын
Great video!! I think it's something useful to point out that your node version has to be >= v12.0.0. I hope I'm not being pedantic lol, but my wheels were spinning on how to get the code completion to work. I looked into it and saw that my yaml-language-server wasn't running while I had an buffer open for test.yaml. I looked at the docs and yaml-language-server says to have node version >= 12.0.0. As soon as I upgraded, uninstalled coc-yaml, and reinstalled it, everything began to work.
@しげお-i1l5 жыл бұрын
Also, really liked the loading element on the statusline when you installed with coc, is there a reference on how to do it?
@windowsrefund4 жыл бұрын
Great content! You just earned a subscribe :)
@nodidog3 жыл бұрын
I can't get k8s YAML completion working with this technique now. No errors or anything, just no completion. One thing I did notice is that the server.ts file you referenced in the video no longer has the KUBERNETES_SCHEMA_URL variable, which I guess is probably why it doesn't work. Bit of a bummer, as I work with a lot of k8s yaml
@gouterelo5 жыл бұрын
Great video ! but link to your blog dont work !!! Cheers !
@c0nsaw3 жыл бұрын
I set this up in a wsl2 Debian vm at work, I was only able to get it to work if I was off the company vpn and internet connected, so is working internet required for the yaml auto complete.
@prodhab_3 жыл бұрын
I couldn't get this to work and I don't know why. I'm using vanilla vim on a Mac and control + space wasn't triggering the autocompletion coc#refresh() on a .yaml file and when I set up another mapping to test it is says that coc#refresh() is not an editor command, any tips/ideas about how to solve this? I am sure the CocConfig JSON is exactly as in the video and the node server is running. Thanks a lot in advance and amazing video!
@horseinthesky4 жыл бұрын
Thank you for this. How is lighline able to show the installation process?
@horseinthesky4 жыл бұрын
@@joshrosso Thanks. I've already found it's `'cocstatus': 'coc#status',` in `component_function`.
@palanisamy-dl9qe4 жыл бұрын
Hi BUddy, Can we do this setup while doing CKA exam ?
@palanisamy-dl9qe4 жыл бұрын
@@joshrosso thanks buddy for quick response.
@sarfarazshaikh4 жыл бұрын
Please update the syntax Cocconfig file for kubernetes
@elabeddhahbi33012 жыл бұрын
anyone konws how to add terraform autocomplete to spacevim