Vim Kubernetes YAML Support

  Рет қаралды 7,352

octetz

octetz

Күн бұрын

Get Kubernetes resource autocompletion and validation in Vim.
Post: octetz.com/doc...

Пікірлер: 23
@jaychang5631
@jaychang5631 4 жыл бұрын
I like the way you talking in English, very clear and elegant. Very comfortable for me as a non-native speaker
@sreekalyanbapatla9808
@sreekalyanbapatla9808 2 жыл бұрын
Thank you so much for the detailed explanation.
@Oswee
@Oswee 4 жыл бұрын
This is so coool!!! Thank you for taking your time and sharing these gems! :)
@karolszlachta5461
@karolszlachta5461 4 жыл бұрын
Thank you! I find this extremely useful.
@srgpip
@srgpip 4 жыл бұрын
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';
@akhiljohn9247
@akhiljohn9247 4 жыл бұрын
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 :)
@armandoleon9901
@armandoleon9901 3 жыл бұрын
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.
@しげお-i1l
@しげお-i1l 5 жыл бұрын
Also, really liked the loading element on the statusline when you installed with coc, is there a reference on how to do it?
@windowsrefund
@windowsrefund 4 жыл бұрын
Great content! You just earned a subscribe :)
@nodidog
@nodidog 3 жыл бұрын
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
@gouterelo
@gouterelo 5 жыл бұрын
Great video ! but link to your blog dont work !!! Cheers !
@c0nsaw
@c0nsaw 3 жыл бұрын
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_
@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!
@horseinthesky
@horseinthesky 4 жыл бұрын
Thank you for this. How is lighline able to show the installation process?
@horseinthesky
@horseinthesky 4 жыл бұрын
@@joshrosso Thanks. I've already found it's `'cocstatus': 'coc#status',` in `component_function`.
@palanisamy-dl9qe
@palanisamy-dl9qe 4 жыл бұрын
Hi BUddy, Can we do this setup while doing CKA exam ?
@palanisamy-dl9qe
@palanisamy-dl9qe 4 жыл бұрын
@@joshrosso thanks buddy for quick response.
@sarfarazshaikh
@sarfarazshaikh 4 жыл бұрын
Please update the syntax Cocconfig file for kubernetes
@elabeddhahbi3301
@elabeddhahbi3301 2 жыл бұрын
anyone konws how to add terraform autocomplete to spacevim
@fredrikt6980
@fredrikt6980 4 жыл бұрын
Simply too much work
Calico Routing Modes
47:02
octetz
Рет қаралды 12 М.
My Favorite Vim Tricks
14:39
MAKC
Рет қаралды 187 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
Kubernetes StatefulSet simply explained | Deployment vs StatefulSet
16:00
TechWorld with Nana
Рет қаралды 245 М.
VM Networking ( Libvirt / Bridge )
43:39
octetz
Рет қаралды 86 М.
Shaping Linux Traffic with tc
46:19
octetz
Рет қаралды 25 М.
Preparing Machine Images for qemu/KVM
34:19
octetz
Рет қаралды 17 М.
Vim As You Editor - Advanced Motions P1
9:44
ThePrimeagen
Рет қаралды 282 М.
Why Every Cloud Engineer Needs (Neo)vim for Kubernetes YAML Editing
16:30
Cloud-Native Corner
Рет қаралды 2,6 М.
CLIs Serving UIs
33:23
octetz
Рет қаралды 1 М.
Lecture 1: Course Overview + The Shell (2020)
48:17
Missing Semester
Рет қаралды 777 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН