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..e48d5daf --- /dev/null +++ b/charts/library/common/schemas/rawResource.json @@ -0,0 +1,33 @@ +{ + "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" + }, + "rootKey": { + "type": "string", + "default": "spec" + }, + "spec": {} + }, + "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" + } } } }