From fba11f200061c08c5073d794667af21f4b6f809d Mon Sep 17 00:00:00 2001 From: Ievgenii Shepeliuk Date: Sat, 24 Oct 2020 17:17:58 +0300 Subject: [PATCH] feat: schema for values --- values.schema.json | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 values.schema.json diff --git a/values.schema.json b/values.schema.json new file mode 100644 index 0000000..ad6da6b --- /dev/null +++ b/values.schema.json @@ -0,0 +1,54 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "https://github.com/eshepelyuk/cmak-operator/", + "type": "object", + "title": "CMAK operator title", + "description": "CMAK operator description", + "required": [ + "cmak" + ], + "properties": { + "cmak": { + "$id": "#/properties/cmak", + "type": "object", + "required": [ + "basicAuth" + ], + "properties": { + "basicAuth": { + "$id": "#/properties/cmak/properties/basicAuth", + "type": "object", + "required": [ + "enabled" + ], + "properties": { + "enabled": { + "type": "boolean", + "title": "enabled title", + "description": "enabled description", + "default": false, + "examples": [ + true + ] + }, + "username": { + "type": "string", + "title": "username title", + "description": "username description", + "default": "", + "examples": [ + "" + ] + }, + "password": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": true + } + }, + "additionalProperties": true +}