{{/*
AUTOGENERATED FILE - DO NOT EDIT.
Generated by scripts/generate_env_tpls.py from charts/agentarea/config.yaml
*/}}

{{- define "agentarea.frontend.configVars" -}}
PORT: "3000"
NODE_ENV: "production"
API_URL: "{{ include "agentarea.backend.url" . }}"
ORY_ADMIN_URL: "{{ include "agentarea.kratosAdminUrl" . }}"
ORY_SDK_URL: "{{ include "agentarea.kratosPublicUrl" . }}"
ORY_BROWSER_URL: "{{ include "agentarea.kratosPublicBrowserUrl" . }}"
METRICS_ENABLED: "{{ .Values.global.monitoring.prometheus.enabled }}"
HEALTH_CHECK_ENABLED: "{{ .Values.global.monitoring.health.enabled }}"
{{- end }}

{{- define "agentarea.frontend.envs" }}
- name: PORT
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: PORT
- name: NODE_ENV
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: NODE_ENV
- name: API_URL
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: API_URL
- name: ORY_ADMIN_URL
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: ORY_ADMIN_URL
- name: ORY_SDK_URL
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: ORY_SDK_URL
- name: ORY_BROWSER_URL
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: ORY_BROWSER_URL
- name: METRICS_ENABLED
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: METRICS_ENABLED
- name: HEALTH_CHECK_ENABLED
  valueFrom:
    configMapKeyRef:
      name: {{ include "agentarea.fullname" . }}-env-frontend
      key: HEALTH_CHECK_ENABLED
{{- end }}
