Add protobuf schema generation for agentcfg
- Add protobuf schema generation for agentcfg
This allows editors to setup yaml-language-server
with the yaml.schemas
settings.
For example, this is from my neovim config (rewritten for simplicity):
require("lspconfig").yamlls.setup({
yaml = {
schemas = {
["https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent/-/raw/agentcfg-proto-schema/pkg/agentcfg/agentcfg_schemas/ConfigurationFile.json"] = "/.gitlab/agents/*/config.yaml",
},
})
I think it would be nice to integrate that into GitLab VS Code...
Actually, we should submit it to the JSON Schema Store that is used in various plugins including the YAML Language Server - with that it will be available out of the box in many editors ... We can even let it point to the ConfigurationFile.json
from this repository, see this guide.
Refs #520 (closed)
Edited by Timo Furrer