{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "http://judkins.house/apis/k2/v1/helmChart.json",
    "$$target": "helmChart.json",
    "title": "Helm Chart",
    "description": "Configuration for a helm chart for use in K2.",
    "properties": {
        "name": {
            "description": "Friendly name for the chart.",
            "type": "string"
        },
        "namespace": {
            "description": "Namespace of the chart.",
            "type": "string"
        },
        "repo": {
            "description": "Repository to pull this chart from - referenced by helm application.",
            "type": "string"
        },
        "registry": {
            "description": "Registry to pull this chart from - referenced by helm application.",
            "type": "string"
        },
        "chart": {
            "description": "Actual name of chart in the repository - referenced by helm application.",
            "type": "string"
        },
        "version": {
            "description": "Version of the chart to deploy - referenced by helm application.",
            "type": "string"
        },
        "channel": {
            "description": "Channel of the chart to deploy - referenced by helm application.",
            "enum": [
                "stable",
                "beta",
                "alpha"
            ],
            "type": "string"
        }
    },
    "required": [
        "name",
        "chart"
    ],
    "oneOf": [
        {
            "required": [
                "version"
            ]
        },
        {
            "required": [
                "channel"
            ]
        }
    ],
    "additionalProperties": false,
    "type": "object"
}