From 81b017ff9c9645956d8b61d9dc56b1be53c49625 Mon Sep 17 00:00:00 2001 From: mayor Date: Sat, 11 Apr 2026 21:43:16 -0400 Subject: [PATCH 1/2] fix: remove KOTS template functions from helmchart.yaml values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EC v3 parses helmchart.yaml with a strict YAML parser before KOTS template functions are resolved, causing 'did not find expected key' on upgrade. Remove ConfigOption and ImagePullSecretName template calls — EC only needs name/chartVersion to locate the chart archive. Co-Authored-By: Claude Sonnet 4.6 --- helmchart.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/helmchart.yaml b/helmchart.yaml index 1b5a507..e2564c8 100644 --- a/helmchart.yaml +++ b/helmchart.yaml @@ -9,8 +9,3 @@ spec: values: image: tag: 'repl{{ .VersionLabel }}' - global: - imagePullSecrets: - - name: '{{repl ImagePullSecretName }}' - adminSecret: '{{repl ConfigOption "admin_secret"}}' - siteName: '{{repl ConfigOption "site_name"}}' From 7fbb866c5e4176339fb154da0d3b895983803c45 Mon Sep 17 00:00:00 2001 From: mayor Date: Sat, 11 Apr 2026 22:10:25 -0400 Subject: [PATCH 2/2] fix: use correct template syntax and add builder to helmchart.yaml - Switch from {{repl FunctionName "arg"}} to repl{{ FunctionName `arg`}} syntax per Replicated docs - Remove global.imagePullSecrets (not needed for ghcr.io images) - Add builder section required for air gap support Co-Authored-By: Claude Sonnet 4.6 --- helmchart.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helmchart.yaml b/helmchart.yaml index e2564c8..6220fd0 100644 --- a/helmchart.yaml +++ b/helmchart.yaml @@ -8,4 +8,9 @@ spec: chartVersion: "0.0.0" values: image: - tag: 'repl{{ .VersionLabel }}' + tag: repl{{ .VersionLabel }} + adminSecret: repl{{ ConfigOption `admin_secret`}} + siteName: repl{{ ConfigOption `site_name`}} + builder: + image: + tag: latest