From 29a7ffc505292ab9490d5621b70dcabffc7330b0 Mon Sep 17 00:00:00 2001 From: Vaibhav Pathak Date: Wed, 18 Feb 2026 11:38:48 +0530 Subject: [PATCH] values-override file not found issue fixed --- .../workflow-template.yaml | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/environment-provisioner/workflow-template.yaml b/environment-provisioner/workflow-template.yaml index 9257c8c..5c9b8c5 100644 --- a/environment-provisioner/workflow-template.yaml +++ b/environment-provisioner/workflow-template.yaml @@ -342,10 +342,8 @@ spec: done fi - # Check for edited values content and create separate values files - # Using separate files avoids YAML indentation issues with inline values blocks + # Check for edited values content (will be embedded as inline values) EDITED_CONTENT=$(echo "$VALUES_CONTENT_EDITS" | jq -r ".\"$service\" // empty") - EXTRA_VALUES_FILES="" # Extract ingress hostname from GITEA_URL domain INGRESS_DOMAIN=$(echo "$GITEA_URL" | sed 's|https://gitea\.||' | sed 's|http://gitea\.||') @@ -354,18 +352,15 @@ spec: HTTPROUTE_HOST="${SANITIZED_SERVICE}-${NAMESPACE}.${INGRESS_DOMAIN}" echo " HTTPRoute hostname: $HTTPROUTE_HOST" + # Build inline values block if user provided edited content + INLINE_VALUES="" if [ -n "$EDITED_CONTENT" ] && [ "$EDITED_CONTENT" != "null" ]; then - echo " Writing edited values content to override file..." - VALUES_OVERRIDE_FILE="values-override-${SANITIZED_SERVICE}.yaml" - - # Write user edits to override file (no ingress annotations needed with Gateway API) - cat > "manifests/$VALUES_OVERRIDE_FILE" <