Investigation on production env -- DEMO env var should be "false"
Saif-Uz-Zaman opened this issue · 2 comments
Saif-Uz-Zaman commented
Saif-Uz-Zaman commented
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 onever-gauzy-api
chart, So we need to fixever-gauzy-chart
chart first, and integrate the updated version inever-gauzy
chart and fix it also.
Saif-Uz-Zaman commented