posh-providers/gravitational/teleport/config.schema.json
Kevin Franklin Kim 4588a19b45
feat: add schema
2025-04-04 16:44:08 +02:00

75 lines
1.5 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/foomo/posh-providers/gravitational/teleport/config",
"$ref": "#/$defs/Config",
"$defs": {
"Config": {
"properties": {
"path": {
"type": "string"
},
"labels": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"hostname": {
"type": "string"
},
"kubernetes": {
"$ref": "#/$defs/Kubernetes"
},
"apps": {
"additionalProperties": {
"items": {
"type": "string"
},
"type": "array"
},
"type": "object"
},
"database": {
"$ref": "#/$defs/Database"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"path",
"labels",
"hostname",
"kubernetes",
"apps",
"database"
]
},
"Database": {
"properties": {
"user": {
"type": "string"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"user"
]
},
"Kubernetes": {
"properties": {
"aliases": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"additionalProperties": false,
"type": "object",
"required": [
"aliases"
]
}
}
}