diff --git a/charts/kubex-automation-engine/docs/Configuration-Reference.md b/charts/kubex-automation-engine/docs/Configuration-Reference.md index 2a391be..8e410c8 100644 --- a/charts/kubex-automation-engine/docs/Configuration-Reference.md +++ b/charts/kubex-automation-engine/docs/Configuration-Reference.md @@ -46,6 +46,7 @@ This document maps the current Helm chart values to the resources created by the | Key | Description | | --- | --- | | `kubex.url.host` | Kubex hostname, for example `example.kubex.ai` | +| `kubex.url.scheme` | Scheme used when deriving `DENSIFY_BASE_URL` from `kubex.url.host` | | `kubex.clusterName` | Cluster identifier presented to Kubex | | `kubexCredentials.username` | Required when `createSecrets=true` | | `kubexCredentials.epassword` | Required when `createSecrets=true` | @@ -88,6 +89,8 @@ stringData: Keep `kubex.url.host` set in your values file so the release configuration still documents the target Kubex instance, even when the secret is managed outside Helm. +For non-TLS upstream endpoints, set `kubex.url.scheme` to `http`. + Note: `kubexCredentials.userSecretName` is currently not consumed by this chart. When `createSecrets=false`, set `gateway.configSecretName` instead. ## Core Operational Values diff --git a/charts/kubex-automation-engine/kubex-automation-values.yaml b/charts/kubex-automation-engine/kubex-automation-values.yaml index 1db5d53..4d37b3f 100644 --- a/charts/kubex-automation-engine/kubex-automation-values.yaml +++ b/charts/kubex-automation-engine/kubex-automation-values.yaml @@ -26,6 +26,7 @@ kubexCredentials: kubex: url: host: .kubex.ai # mandatory: .kubex.ai + scheme: https # set to http for non-TLS local endpoints # REQUIRED: Your cluster identifier in Kubex clusterName: "" # mandatory: diff --git a/charts/kubex-automation-engine/templates/_helpers.tpl b/charts/kubex-automation-engine/templates/_helpers.tpl index ec25c2c..60835bd 100644 --- a/charts/kubex-automation-engine/templates/_helpers.tpl +++ b/charts/kubex-automation-engine/templates/_helpers.tpl @@ -4,7 +4,7 @@ Validate kubexCredentials.epassword is provided if createSecrets is true {{- define "kubex-automation-engine.kubexEpassword" -}} {{- if .Values.createSecrets }} {{- .Values.kubexCredentials.epassword | required "An epassword must be provided in values.yaml under kubexCredentials.epassword" -}} -{{- end }} +{{- end -}} {{- end }} {{/* diff --git a/charts/kubex-automation-engine/templates/gateway-secret.yaml b/charts/kubex-automation-engine/templates/gateway-secret.yaml index b72a513..8dc8a7f 100644 --- a/charts/kubex-automation-engine/templates/gateway-secret.yaml +++ b/charts/kubex-automation-engine/templates/gateway-secret.yaml @@ -15,5 +15,5 @@ data: username: {{ .Values.kubexCredentials.username | b64enc | quote }} epassword: {{ .Values.kubexCredentials.epassword | b64enc | quote }} url: {{ .Values.kubex.url.host | b64enc | quote }} - DENSIFY_BASE_URL: {{ printf "https://%s" .Values.kubex.url.host | b64enc | quote }} + DENSIFY_BASE_URL: {{ printf "%s://%s" .Values.kubex.url.scheme .Values.kubex.url.host | b64enc | quote }} {{- end }} diff --git a/charts/kubex-automation-engine/values.schema.json b/charts/kubex-automation-engine/values.schema.json index c1b9086..531fd8c 100644 --- a/charts/kubex-automation-engine/values.schema.json +++ b/charts/kubex-automation-engine/values.schema.json @@ -13,6 +13,10 @@ "properties": { "host": { "type": "string" + }, + "scheme": { + "type": "string", + "enum": ["http", "https"] } } }, @@ -158,10 +162,7 @@ "type": "boolean" }, "fsGroup": { - "type": [ - "integer", - "null" - ] + "type": ["integer", "null"] }, "fsGroupChangePolicy": { "type": "string" @@ -320,20 +321,13 @@ } }, "then": { - "required": [ - "kubex", - "kubexCredentials" - ], + "required": ["kubex", "kubexCredentials"], "properties": { "kubex": { - "required": [ - "url" - ], + "required": ["url"], "properties": { "url": { - "required": [ - "host" - ], + "required": ["host"], "properties": { "host": { "minLength": 1 diff --git a/charts/kubex-automation-engine/values.yaml b/charts/kubex-automation-engine/values.yaml index 0555c3b..1045d00 100644 --- a/charts/kubex-automation-engine/values.yaml +++ b/charts/kubex-automation-engine/values.yaml @@ -13,7 +13,8 @@ kubex: url: # -- Kubex instance hostname (e.g., .kubex.ai) host: "" - + # -- URL scheme used when deriving DENSIFY_BASE_URL from host + scheme: "https" # -- Cluster name to identify this cluster in Kubex (required) clusterName: ""