Skip to content

Commit

Permalink
Aggregate helms
Browse files Browse the repository at this point in the history
  • Loading branch information
henrod committed Jun 13, 2017
1 parent 1f83d1a commit 96acf0c
Show file tree
Hide file tree
Showing 19 changed files with 43 additions and 90 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ ENV MAESTRO_RUN_SETUP ""
ENV MAESTRO_EXTENSIONS_PG_HOST "maestro-postgres"
ENV MAESTRO_EXTENSIONS_PG_PORT "5432"
ENV MAESTRO_EXTENSIONS_PG_USER "maestro"
ENV MAESTRO_EXTENSIONS_PG_PASS "pass"

CMD if [ "$MAESTRO_RUN_SETUP" != "true" ]; then /app/maestro start; else sleep 10 && psql -U $MAESTRO_EXTENSIONS_PG_USER -h $MAESTRO_EXTENSIONS_PG_HOST -p $MAESTRO_EXTENSIONS_PG_PORT -f /app/scripts/drop.sql && make assets && /app/maestro migrate -c /app/config/local.yaml; fi
CMD if [ "$MAESTRO_RUN_SETUP" != "true" ]; then /app/maestro start; else sleep 10 && psql -U $MAESTRO_EXTENSIONS_PG_USER -P $MAESTRO_EXTENSIONS_PG_PASS -h $MAESTRO_EXTENSIONS_PG_HOST -p $MAESTRO_EXTENSIONS_PG_PORT -f /app/scripts/drop.sql && make assets && /app/maestro migrate -c /app/config/local.yaml; fi
Empty file.
21 changes: 0 additions & 21 deletions helm/charts/maestro-db-config/.helmignore

This file was deleted.

7 changes: 0 additions & 7 deletions helm/charts/maestro-db-config/Chart.yaml

This file was deleted.

Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: maestro-api
name: maestro-main
home: https://github.com/topfreegames/maestro
description: Maestro
version: 2.4.1
description: Maestro api and worker
version: 2.5.0
maintainers:
- name: TFGCo
email: backend@tfgco.com
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ spec:
- containerPort: 80
env:
- name: MAESTRO_EXTENSIONS_PG_HOST
value: {{ .Values.maestro.postgres_host }}
value: {{ .Values.postgres_host }}
- name: MAESTRO_EXTENSIONS_PG_PORT
value: "{{ .Values.maestro.postgres_port }}"
value: "{{ .Values.postgres_port }}"
- name: MAESTRO_EXTENSIONS_PG_USER
value: {{ .Values.maestro.postgres_user }}
value: {{ .Values.postgres_user }}
- name: MAESTRO_EXTENSIONS_PG_PASS
value: {{ .Values.maestro.postgres_password }}
value: {{ .Values.postgres_password }}
- name: MAESTRO_EXTENSIONS_PG_DATABASE
value: {{ .Values.maestro.postgres_database }}
value: {{ .Values.postgres_database }}
- name: MAESTRO_GOOGLE_CLIENT_ID
value: {{ .Values.maestro.google_clientid }}
value: {{ .Values.google_clientid }}
- name: MAESTRO_GOOGLE_CLIENT_SECRET
value: {{ .Values.maestro.google_clientsecret }}
value: {{ .Values.google_clientsecret }}
- name: MAESTRO_OAUTH_ACCEPTEDDOMAINS
value: {{ .Values.maestro.oauth_domains }}
value: {{ .Values.oauth_domains }}
- name: MAESTRO_EXTENSIONS_REDIS_URL
value: {{ .Values.maestro.redis_url }}
value: {{ .Values.redis_url }}
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ spec:
image: quay.io/tfgco/maestro:v{{ .Chart.Version }}
env:
- name: MAESTRO_EXTENSIONS_PG_HOST
value: {{ .Values.maestro.postgres_host }}
value: {{ .Values.postgres_host }}
- name: MAESTRO_EXTENSIONS_PG_PORT
value: "{{ .Values.maestro.postgres_port }}"
value: "{{ .Values.postgres_port }}"
- name: MAESTRO_EXTENSIONS_PG_USER
value: {{ .Values.maestro.postgres_user }}
value: {{ .Values.postgres_user }}
- name: MAESTRO_EXTENSIONS_PG_PASS
value: {{ .Values.maestro.postgres_password }}
value: {{ .Values.postgres_password }}
- name: MAESTRO_EXTENSIONS_PG_DATABASE
value: {{ .Values.maestro.postgres_database }}
value: {{ .Values.postgres_database }}
- name: MAESTRO_RUN_SETUP
value: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ spec:
imagePullPolicy: Always
env:
- name: MAESTRO_EXTENSIONS_PG_HOST
value: {{ .Values.maestro.postgres_host }}
value: {{ .Values.postgres_host }}
- name: MAESTRO_EXTENSIONS_PG_PORT
value: "{{ .Values.maestro.postgres_port }}"
value: "{{ .Values.postgres_port }}"
- name: MAESTRO_EXTENSIONS_PG_USER
value: {{ .Values.maestro.postgres_user }}
value: {{ .Values.postgres_user }}
- name: MAESTRO_EXTENSIONS_PG_PASS
value: {{ .Values.maestro.postgres_password }}
value: {{ .Values.postgres_password }}
- name: MAESTRO_EXTENSIONS_PG_DATABASE
value: {{ .Values.maestro.postgres_database }}
value: {{ .Values.postgres_database }}
- name: MAESTRO_EXTENSIONS_REDIS_URL
value: {{ .Values.maestro.redis_url }}
value: {{ .Values.redis_url }}
9 changes: 9 additions & 0 deletions helm/charts/maestro-main/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
postgres_host: maestro-postgres
postgres_port: "5432"
postgres_user: maestro
postgres_database: maestro
postgres_password: ""
redis_url: redis://:@maestro-redis:6379
google_clientid: ""
google_clientsecret: ""
oauth_domains: "example.com other.com"
4 changes: 4 additions & 0 deletions helm/charts/maestro-postgres/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
postgres_host: maestro-postgres
postgres_port: "5432"
postgres_user: maestro
postgres_database: maestro
1 change: 1 addition & 0 deletions helm/charts/maestro-redis/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
redis_url: redis://:@maestro-redis:6379
21 changes: 0 additions & 21 deletions helm/charts/maestro-worker/.helmignore

This file was deleted.

7 changes: 0 additions & 7 deletions helm/charts/maestro-worker/Chart.yaml

This file was deleted.

Empty file.
2 changes: 1 addition & 1 deletion helm/charts/maestro/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: maestro
home: https://github.com/topfreegames/maestro
description: Maestro
version: 0.1.8
version: 0.1.9
maintainers:
- name: TFGCo
email: backend@tfgco.com
10 changes: 2 additions & 8 deletions helm/charts/maestro/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ dependencies:
- name: maestro-postgres
version: 0.1.0
repository: http://helm.tfgco.com
- name: maestro-api
version: 2.4.1
repository: http://helm.tfgco.com
- name: maestro-worker
version: 2.4.1
repository: http://helm.tfgco.com
- name: maestro-db-config
version: 2.4.1
- name: maestro-main
version: 2.5.0
repository: http://helm.tfgco.com
2 changes: 1 addition & 1 deletion helm/charts/maestro/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
global:
database_location: "on-cluster"
maestro:
maestro-main:
postgres_host: maestro-postgres
postgres_port: "5432"
postgres_user: maestro
Expand Down

0 comments on commit 96acf0c

Please sign in to comment.