ever-co/ever-charts

Investigation on production env -- DEMO env var should be "false"

Saif-Uz-Zaman opened this issue · 2 comments

For production DEMO env var should be "false", it seems true as we see that blue line about Demo etc.

Image

  1. Investigate the issues.
  2. Write follow up tickets if needed.

Investigation:

In values file the manifests is,

# Global configurations
global:
  env:
    production: false  # Set the environment to production (true) or development (false)

But in _helpers.tpl we found

{{/*
Create a variable based on demo env
*/}}
{{- define "ever-gauzy-api.demoenv" -}}
{{- if not .Values.global.env.demo -}}
true
{{- else -}}
false
{{- end -}}
{{- end -}}
{{- define "ever-gauzy-api.nodeenv" -}}
{{- if not .Values.global.env.demo -}}
development
{{- else -}}
production
{{- end -}}
{{- end -}}

so, in the template we need to fix .Values.global.env.demo this to .Values.global.env.production

Resolutions:

  • As ever-gauzy charts depends on ever-gauzy-api chart, So we need to fix ever-gauzy-chart chart first, and integrate the updated version in ever-gauzy chart and fix it also.

Created follow-up tickets for this issue,
#25 #26