fix(helm): remove inline comments causing YAML parse error
Some checks failed
CD - Build & Deploy / build-and-push (push) Has been cancelled
CD - Build & Deploy / package-helm (push) Has been cancelled
CD - Build & Deploy / deploy-staging (push) Has been cancelled
CD - Build & Deploy / deploy-production (push) Has been cancelled
CD - Build & Deploy / release (push) Has been cancelled
CI / security (push) Has been cancelled
CI / test (3.11) (push) Has been cancelled
CI / test (3.12) (push) Has been cancelled
ci/woodpecker/push/woodpecker Pipeline failed

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.
This commit is contained in:
Ehsan.Asadi
2025-12-30 16:36:23 +03:30
parent c29e039d71
commit 52d47e1f52

View File

@@ -49,7 +49,6 @@ spec:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
env: env:
{{- toYaml .Values.env | nindent 12 }} {{- toYaml .Values.env | nindent 12 }}
# Reflex configuration
- name: API_URL - name: API_URL
value: {{ .Values.reflex.apiUrl | quote }} value: {{ .Values.reflex.apiUrl | quote }}
- name: FRONTEND_PORT - name: FRONTEND_PORT
@@ -73,7 +72,6 @@ spec:
secretKeyRef: secretKeyRef:
name: {{ .Values.postgresql.external.passwordSecret.name }} name: {{ .Values.postgresql.external.passwordSecret.name }}
key: {{ .Values.postgresql.external.passwordSecret.key }} key: {{ .Values.postgresql.external.passwordSecret.key }}
# Construct DATABASE_URL for Reflex
- name: DATABASE_URL - name: DATABASE_URL
value: "postgresql://$(DATABASE_USER):$(DATABASE_PASSWORD)@$(DATABASE_HOST):$(DATABASE_PORT)/$(DATABASE_NAME)" value: "postgresql://$(DATABASE_USER):$(DATABASE_PASSWORD)@$(DATABASE_HOST):$(DATABASE_PORT)/$(DATABASE_NAME)"
{{- end }} {{- end }}
@@ -88,11 +86,9 @@ spec:
secretKeyRef: secretKeyRef:
name: {{ .Values.redis.external.passwordSecret.name }} name: {{ .Values.redis.external.passwordSecret.name }}
key: {{ .Values.redis.external.passwordSecret.key }} key: {{ .Values.redis.external.passwordSecret.key }}
# Construct REDIS_URL with password
- name: REDIS_URL - name: REDIS_URL
value: "redis://:$(REDIS_PASSWORD)@$(REDIS_HOST):$(REDIS_PORT)/0" value: "redis://:$(REDIS_PASSWORD)@$(REDIS_HOST):$(REDIS_PORT)/0"
{{- else }} {{- else }}
# Construct REDIS_URL without password
- name: REDIS_URL - name: REDIS_URL
value: "redis://$(REDIS_HOST):$(REDIS_PORT)/0" value: "redis://$(REDIS_HOST):$(REDIS_PORT)/0"
{{- end }} {{- end }}