From 127a90cc1499c1d64d242d15a48034436cab6c51 Mon Sep 17 00:00:00 2001 From: Kevin Franklin Kim Date: Thu, 28 Nov 2024 08:32:39 +0100 Subject: [PATCH] feat(gateway-crds): update schema --- Makefile | 2 +- charts/gateway-crds/Chart.yaml | 6 ++-- charts/gateway-crds/README.md | 4 +-- charts/gateway-crds/values.schema.json | 46 ++++++++++++++++++-------- charts/gateway-crds/values.yaml | 16 +++++++-- 5 files changed, 52 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 8406e5c..79e7f3f 100644 --- a/Makefile +++ b/Makefile @@ -36,12 +36,12 @@ schema: helm-schema -n -c charts/beam helm-schema -n -c charts/namespace helm-schema -n -c charts/sesamy-gtm + helm-schema -n -c charts/gateway-crds helm-schema -n -c charts/contentserver helm-schema -n -c charts/squadron-keel-server helm-schema -n -c charts/squadron-keel-cronjob helm-schema -n -c charts/squadron-nextjs-server helm schema-gen charts/csp-reporter/values.yaml > charts/csp-reporter/values.schema.json - helm schema-gen charts/gateway-crds/values.yaml > charts/gateway-crds/values.schema.json helm schema-gen charts/sesamy-umami/values.yaml > charts/sesamy-umami/values.schema.json #@set -e; for dir in ./charts/* ; do \ # helm-schema -n -c $${dir} ;\ diff --git a/charts/gateway-crds/Chart.yaml b/charts/gateway-crds/Chart.yaml index 54c6e01..0f6509f 100644 --- a/charts/gateway-crds/Chart.yaml +++ b/charts/gateway-crds/Chart.yaml @@ -12,7 +12,7 @@ sources: annotations: "artifacthub.io/links": | - name: Chart Source - url: https://github.com/foomo/helm-charts + url: https://github.com/foomo/helm-charts/tree/main/charts/gateway-crds -version: 0.1.0 -appVersion: 0.1.0 +version: 0.1.1 +appVersion: 0.1.1 diff --git a/charts/gateway-crds/README.md b/charts/gateway-crds/README.md index 409db5e..c319a2b 100644 --- a/charts/gateway-crds/README.md +++ b/charts/gateway-crds/README.md @@ -1,6 +1,6 @@ # gateway-crds -![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=flat-square) +![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.1](https://img.shields.io/badge/AppVersion-0.1.1-informational?style=flat-square) Foomo Gateway Custom Resource Definition Chart @@ -18,4 +18,4 @@ Foomo Gateway Custom Resource Definition Chart |-----|------|---------|-------------| | fullnameOverride | string | `""` | Overrides the chart's computed fullname | | nameOverride | string | `""` | Overrides the chart's name | -| namespaceOverride | string | `""` | The name of the Namespace to deploy If not set, `.Release.Namespace` is used | +| namespaceOverride | string | `""` | The name of the Namespace to deploy | diff --git a/charts/gateway-crds/values.schema.json b/charts/gateway-crds/values.schema.json index 05cab9f..1491a74 100644 --- a/charts/gateway-crds/values.schema.json +++ b/charts/gateway-crds/values.schema.json @@ -1,15 +1,35 @@ { - "$schema": "http://json-schema.org/schema#", - "type": "object", - "properties": { - "fullnameOverride": { - "type": "string" - }, - "nameOverride": { - "type": "string" - }, - "namespaceOverride": { - "type": "string" - } + "$schema": "http://json-schema.org/draft-07/schema#", + "additionalProperties": false, + "properties": { + "fullnameOverride": { + "default": "", + "description": "Overrides the chart's computed fullname", + "required": [], + "title": "fullnameOverride", + "type": "string" + }, + "global": { + "description": "Global values are values that can be accessed from any chart or subchart by exactly the same name.", + "required": [], + "title": "global", + "type": "object" + }, + "nameOverride": { + "default": "", + "description": "Overrides the chart's name", + "required": [], + "title": "nameOverride", + "type": "string" + }, + "namespaceOverride": { + "default": "", + "description": "The name of the Namespace to deploy", + "required": [], + "title": "namespaceOverride", + "type": "string" } -} + }, + "required": [], + "type": "object" +} \ No newline at end of file diff --git a/charts/gateway-crds/values.yaml b/charts/gateway-crds/values.yaml index 29140f8..3763091 100644 --- a/charts/gateway-crds/values.yaml +++ b/charts/gateway-crds/values.yaml @@ -1,10 +1,20 @@ +# yaml-language-server: $schema=values.schema.json + +# @schema +# type: string +# @schema # -- Overrides the chart's name # @section -- Overrides -nameOverride: "" +nameOverride: '' +# @schema +# type: string +# @schema # -- Overrides the chart's computed fullname # @section -- Overrides -fullnameOverride: "" +fullnameOverride: '' +# @schema +# type: string +# @schema # -- The name of the Namespace to deploy -# If not set, `.Release.Namespace` is used # @section -- Overrides namespaceOverride: ''