{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/k9s-cluster-config-yaml/latest.json",
  "title": "K9s context config schema",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/derailed/k9s/master/internal/config/json/schemas/context.json",
    "sourceSha256": "bc38f198f96d7dae2d9aa30a534cb58bd67a26dd3308eb68899d562f0b8a6a33",
    "fileMatch": [
      "**/k9s/clusters/*/*/config.yaml"
    ],
    "parsers": [
      "yaml"
    ]
  },
  "type": "object",
  "properties": {
    "k9s": {
      "properties": {
        "cluster": {
          "type": "string"
        },
        "readOnly": {
          "type": "boolean"
        },
        "skin": {
          "type": "string"
        },
        "proxy": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "address": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "namespace": {
          "type": "object",
          "properties": {
            "active": {
              "type": "string"
            },
            "lockFavorites": {
              "type": "boolean"
            },
            "favorites": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "view": {
          "type": "object",
          "properties": {
            "active": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "featureGates": {
          "type": "object",
          "properties": {
            "nodeShell": {
              "type": "boolean"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false,
      "type": "object"
    }
  },
  "additionalProperties": false,
  "required": [
    "k9s"
  ]
}
