vscode-gitops-tools icon indicating copy to clipboard operation
vscode-gitops-tools copied to clipboard

Explore adding Kubernetes Templates to GitOps sidebar

Open RandomFractals opened this issue 2 years ago • 2 comments

k8s tools already have some built-in: https://github.com/Azure/vscode-kubernetes-tools/tree/master/snippets

We can present them in a custom k8s snippets view similar to this generic snippets extension: https://github.com/RandomFractals/vscode-snippets-viewer

and add GitOps/Flux specific snippets in /snippets as needed.

RandomFractals avatar Aug 19 '21 18:08 RandomFractals

This k8s templates vscode extension actually has k8s code snippets configured in standard vscode .json snippets file format:

https://marketplace.visualstudio.com/items?itemName=lunuan.kubernetes-templates

snippets code: https://github.com/lunuan/vscode-kubernetes-templates/tree/master/snippets

you can preview them in snippets viewer:

k8s-templates

we can add your k8s templates similarly to this GitOps extension for quick k8s code templates preview and use in .yml configs.

RandomFractals avatar Aug 22 '21 12:08 RandomFractals

Since you have grafana repo for provisioning those dashboards: https://github.com/weaveworks/grafanalib

It might be interesting to explore these Grafana config templates: https://marketplace.visualstudio.com/items?itemName=yesoreyeram.grafana

and use them for scaffolding grafana dashboard nodes in kubernetes clusters:

grafana-snippets

More info on those grafana configs here: https://grafana.com/docs/grafana/latest/administration/provisioning/#datasources

RandomFractals avatar Sep 17 '21 11:09 RandomFractals