From 87ee02832f1177047a4935a752f4bdde91c12829 Mon Sep 17 00:00:00 2001 From: Bernd Schorgers Date: Thu, 27 Jun 2024 09:02:38 +0200 Subject: [PATCH] feat(common): Initial commit for v3.3.0 --- charts/library/common/Chart.yaml | 16 ++------- .../library/common/schemas/rawResource.json | 34 +++++++++++++++++++ charts/library/common/values.schema.json | 7 +++- 3 files changed, 42 insertions(+), 15 deletions(-) create mode 100644 charts/library/common/schemas/rawResource.json diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 5be93be9..4ff60a16 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 name: common description: Function library for Helm charts type: library -version: 3.2.1 +version: 3.3.0 kubeVersion: ">=1.22.0-0" keywords: - common @@ -16,16 +16,4 @@ annotations: artifacthub.io/changes: |- - kind: added description: |- - Support templating in annotation and label values for all objects (fixed in v3.2.1) - - kind: added - description: |- - Support activeDeadlineSeconds field on CronJobs and Jobs - - kind: added - description: |- - Support excluding secrets and configMaps from pod checksum annotation - - kind: fixed - description: |- - Fixed failing ServiceMonitor test - - kind: fixed - description: |- - Fixed networkPolicies not rendering correctly + # TODO: Update diff --git a/charts/library/common/schemas/rawResource.json b/charts/library/common/schemas/rawResource.json new file mode 100644 index 00000000..aef570ac --- /dev/null +++ b/charts/library/common/schemas/rawResource.json @@ -0,0 +1,34 @@ +{ + "instance": { + "type": "object", + "additionalProperties": false, + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "annotations": { + "$ref": "definitions.json#/annotations" + }, + "labels": { + "$ref": "definitions.json#/labels" + }, + "nameOverride": { + "type": "string" + }, + "data": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + }, + "required": ["apiversion", "kind", "spec"] + } +} diff --git a/charts/library/common/values.schema.json b/charts/library/common/values.schema.json index 2acdadde..17f0cd1e 100644 --- a/charts/library/common/values.schema.json +++ b/charts/library/common/values.schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema", - "$id": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.2.1/charts/library/common/values.schema.json", + "$id": "https://raw.githubusercontent.com/bjw-s/helm-charts/common-3.3.0/charts/library/common/values.schema.json", "type": "object", "properties": { @@ -71,6 +71,11 @@ "additionalProperties": { "$ref": "schemas/persistence.json#/item" } + }, + "rawResources": { + "additionalProperties": { + "$ref": "schemas/rawResource.json#/instance" + } } } }