Commit fc9fd2bf authored by Emiliano Balbuena's avatar Emiliano Balbuena

(chore): Cronjob for sandbox, change key name

parent 15574dad
1 merge request!31Allow FF env vars via helm values and sync feature flags
Pipeline #119251038 passed with stage
in 1 minute and 7 seconds
......@@ -134,3 +134,11 @@ jobs:
args:
- "-c"
- "php /var/www/Minds/engine/cli.php rewards sync"
###
# Feature Flags
###
- name: FeaturesSync
schedule: "*/5 * * * *"
args:
- "-c"
- "php /var/www/Minds/engine/cli.php features sync --ttl=300 --environment=sandbox"
......@@ -897,7 +897,7 @@ data:
[program:feature-flags]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/Minds/engine/cli.php features sync --forever --ttl=900 --environment=sandbox,{{ template "minds.fullname" . }}
command=php /var/www/Minds/engine/cli.php features sync --forever --ttl=900 --environment={{ template "minds.fullname" . }}
autostart=true
autorestart=true
numprocs={{ .Values.runners.dispatchers.featureflags.replicas | default 1 }}
......
......@@ -44,7 +44,7 @@ spec:
env:
- name: MINDS_ENV
value: {{ .Values.env | default "sandbox" | quote }}
{{- range $key, $value := .Values.ff }}
{{- range $key, $value := .Values.featureflags }}
- name: MINDS_FEATURE_{{ $key }}
value: "{{ $value }}"
{{- end }}
......@@ -75,7 +75,7 @@ spec:
env:
- name: MINDS_ENV
value: {{ .Values.env | default "sandbox" | quote }}
{{- range $key, $value := .Values.ff }}
{{- range $key, $value := .Values.featureflags }}
- name: MINDS_FEATURE_{{ $key }}
value: "{{ $value }}"
{{- end }}
......
......@@ -31,7 +31,7 @@ spec:
env:
- name: MINDS_ENV
value: {{ .Values.env | default "sandbox" | quote }}
{{- range $key, $value := .Values.ff }}
{{- range $key, $value := .Values.featureflags }}
- name: MINDS_FEATURE_{{ $key }}
value: "{{ $value }}"
{{- end }}
......
......@@ -38,7 +38,7 @@ spec:
env:
- name: MINDS_ENV
value: {{ .Values.env | default "sandbox" }}
{{- range $key, $value := .Values.ff }}
{{- range $key, $value := .Values.featureflags }}
- name: MINDS_FEATURE_{{ $key }}
value: "{{ $value }}"
{{- end }}
......
......@@ -345,4 +345,4 @@ stripe:
public_key: ''
secret_key: ''
ff: {}
\ No newline at end of file
featureflags: {}
\ No newline at end of file
Please register or to comment