From 15f7417ad9039c1ff290aa470e8d22044814076c Mon Sep 17 00:00:00 2001 From: Hayden Spitzley Date: Fri, 25 Oct 2024 11:05:49 -0600 Subject: [PATCH] env schema --- stack/README.md | 3 ++- stack/values.schema.json | 17 ++++++++++++++--- stack/values.yaml | 8 ++++++-- 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/stack/README.md b/stack/README.md index 482cb56..af83bbf 100644 --- a/stack/README.md +++ b/stack/README.md @@ -124,7 +124,8 @@ A Helm chart for deploying an Argus stack. | `global.tolerations` | Tolerations for the pod | `[]` | | `global.affinity` | Affinity for the pod | `{}` | | `global.topologySpreadConstraints` | Topology spread constraints for the pod | `[]` | -| `global.env` | Nonsensitive environment variables | `[]` | +| `global.env[0].name` | Environment variable name | `__ARGUS` | +| `global.env[0].value` | Environment variable value | `true` | | `global.envFrom` | Environment variables from configmaps or secrets | `[]` | | `global.persistence.enabled` | Enable persistence | `false` | | `global.persistence.pvc.accessModes` | Access modes | `["ReadWriteOnce"]` | diff --git a/stack/values.schema.json b/stack/values.schema.json index 95e30a5..22acdb6 100644 --- a/stack/values.schema.json +++ b/stack/values.schema.json @@ -466,9 +466,20 @@ }, "env": { "type": "array", - "description": "Nonsensitive environment variables", - "default": [], - "items": {} + "description": "Environment variable name", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Environment variable name" + }, + "value": { + "type": "string", + "description": "Environment variable value" + } + } + } }, "envFrom": { "type": "array", diff --git a/stack/values.yaml b/stack/values.yaml index 2283bc1..81dc6ca 100644 --- a/stack/values.yaml +++ b/stack/values.yaml @@ -270,8 +270,12 @@ global: ## @param global.topologySpreadConstraints Topology spread constraints for the pod topologySpreadConstraints: [] - ## @param global.env Nonsensitive environment variables - env: [] + env: + - + ## @param global.env[0].name Environment variable name + name: __ARGUS + ## @param global.env[0].value Environment variable value + value: "true" ## @param global.envFrom Environment variables from configmaps or secrets envFrom: []