Skip to content

Commit

Permalink
fix: use the correct init command for forum and add missing annotatio…
Browse files Browse the repository at this point in the history
…ns (eduNEXT#12)
  • Loading branch information
MoisesGSalas authored Sep 22, 2022
1 parent 3be0bd2 commit 9306d54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ spec:
- -e
- -c
- 'bundle exec rake search:initialize
bundle exec rake search:rebuild_index'
bundle exec rake search:rebuild_indices'
env:
- name: SEARCH_SERVER
value: "{{ ELASTICSEARCH_SCHEME }}://{{ ELASTICSEARCH_HOST }}:{{ ELASTICSEARCH_PORT }}"
Expand All @@ -34,10 +35,4 @@ spec:
value: "{{ MONGODB_PORT }}"
- name: MONGODB_DATABASE
value: "{{ FORUM_MONGODB_DATABASE }}"
- name: MONGOHQ_URL
value: "mongodb://$(MONGODB_AUTH)$(MONGODB_HOST):$(MONGODB_PORT)/$(MONGODB_DATABASE)"
- name: SEARCH_SERVER_ES7
value: "$(SEARCH_SERVER)"
- name: MONGOID_AUTH_MECH
value: ":scram"
{%- endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ metadata:
app.kubernetes.io/component: job
annotations:
argocd.argoproj.io/sync-wave: "3"
argocd.argoproj.io/hook: Sync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
ttlSecondsAfterFinished: 100
template:
Expand Down Expand Up @@ -63,6 +65,8 @@ metadata:
app.kubernetes.io/component: job
annotations:
argocd.argoproj.io/sync-wave: "3"
argocd.argoproj.io/hook: Sync
argocd.argoproj.io/hook-delete-policy: HookSucceeded
spec:
ttlSecondsAfterFinished: 100
template:
Expand Down

0 comments on commit 9306d54

Please sign in to comment.