From 52d47e1f52e3f33d1be7f034291fce4af43b2473 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 16:36:23 +0330 Subject: [PATCH] fix(helm): remove inline comments causing YAML parse error Comments between env list items were breaking YAML parser in ArgoCD: 'error converting YAML to JSON: yaml: line 79: did not find expected key' Removed inline comments before env var definitions. The YAML structure is now clean and validates correctly with helm template. --- helm/peikarband/templates/deployment.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/helm/peikarband/templates/deployment.yaml b/helm/peikarband/templates/deployment.yaml index 6b2497e..c5e1dd3 100644 --- a/helm/peikarband/templates/deployment.yaml +++ b/helm/peikarband/templates/deployment.yaml @@ -49,7 +49,6 @@ spec: {{- toYaml .Values.resources | nindent 12 }} env: {{- toYaml .Values.env | nindent 12 }} - # Reflex configuration - name: API_URL value: {{ .Values.reflex.apiUrl | quote }} - name: FRONTEND_PORT @@ -73,7 +72,6 @@ spec: secretKeyRef: name: {{ .Values.postgresql.external.passwordSecret.name }} key: {{ .Values.postgresql.external.passwordSecret.key }} - # Construct DATABASE_URL for Reflex - name: DATABASE_URL value: "postgresql://$(DATABASE_USER):$(DATABASE_PASSWORD)@$(DATABASE_HOST):$(DATABASE_PORT)/$(DATABASE_NAME)" {{- end }} @@ -88,11 +86,9 @@ spec: secretKeyRef: name: {{ .Values.redis.external.passwordSecret.name }} key: {{ .Values.redis.external.passwordSecret.key }} - # Construct REDIS_URL with password - name: REDIS_URL value: "redis://:$(REDIS_PASSWORD)@$(REDIS_HOST):$(REDIS_PORT)/0" {{- else }} - # Construct REDIS_URL without password - name: REDIS_URL value: "redis://$(REDIS_HOST):$(REDIS_PORT)/0" {{- end }}