Skip to content

Commit

Permalink
Elasticsearch: clean Jest config in deployment subgenerators
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed May 1, 2020
1 parent f7fbeaf commit 8b101a0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
13 changes: 6 additions & 7 deletions generators/heroku/templates/application-heroku.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ spring:
hikari:
maximumPoolSize: 8
<%_ } _%>
<%_ if (prodDatabaseType === 'mongodb' || searchEngine === 'elasticsearch') { _%>
<%_ if (prodDatabaseType === 'mongodb') { _%>
data:
<%_ if (prodDatabaseType === 'mongodb') { _%>
mongodb:
uri: ${MONGODB_URI}?authMode=scram-sha1
<%_ } _%>
<%_ if (searchEngine === 'elasticsearch') { _%>
jest:
uri: ${BONSAI_URL}
<%_ } _%>
<%_ } _%>
<%_ if (searchEngine === 'elasticsearch') { _%>
elasticsearch:
rest:
uris: ${BONSAI_URL}
<%_ } _%>
2 changes: 0 additions & 2 deletions generators/kubernetes-knative/templates/service.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ spec:
value: <%= app.baseName.toLowerCase() %>
<%_ } _%>
<%_ if (app.searchEngine === 'elasticsearch') { _%>
- name: SPRING_DATA_JEST_URI
value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200
- name: SPRING_ELASTICSEARCH_REST_URIS
value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200
<%_ } _%>
Expand Down
2 changes: 0 additions & 2 deletions generators/kubernetes/templates/deployment.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ spec:
value: <%= app.baseName.toLowerCase() %>
<%_ } _%>
<%_ if (app.searchEngine === 'elasticsearch') { _%>
- name: SPRING_DATA_JEST_URI
value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200
- name: SPRING_ELASTICSEARCH_REST_URIS
value: http://<%= app.baseName.toLowerCase() %>-elasticsearch.<%= kubernetesNamespace %>.svc.cluster.local:9200
<%_ } _%>
Expand Down
2 changes: 0 additions & 2 deletions generators/openshift/templates/deployment.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ objects:
value: ${APPLICATION_NAME}
<%_ } _%>
<%_ if (app.searchEngine === 'elasticsearch') { _%>
- name: SPRING_DATA_JEST_URI
value: http://${APPLICATION_NAME}-elasticsearch:9200
- name: SPRING_ELASTICSEARCH_REST_URIS
value: http://${APPLICATION_NAME}-elasticsearch:9200
<%_ } _%>
Expand Down
1 change: 0 additions & 1 deletion generators/server/templates/src/main/docker/app.yml.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ services:
- JHIPSTER_SLEEP=30 # gives time for other services to boot before the application
<%_ } _%>
<%_ if (searchEngine === 'elasticsearch') { _%>
- SPRING_DATA_JEST_URI=http://<%= baseName.toLowerCase() %>-elasticsearch:9200
- SPRING_ELASTICSEARCH_REST_URIS=http://<%= baseName.toLowerCase() %>-elasticsearch:9200
<%_ } _%>
<%_ if (messageBroker === 'kafka') { _%>
Expand Down
1 change: 0 additions & 1 deletion test/templates/compose/03-psql/src/main/docker/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ services:
- SPRING_PROFILES_ACTIVE=prod
- SPRING_CLOUD_CONFIG_URI=http://admin:admin@jhipster-registry:8761/config
- SPRING_DATASOURCE_URL=jdbc:postgresql://mspsql-postgresql:5432/mspsql
- SPRING_DATA_JEST_URI=http://mspsql-elasticsearch:9200
- SPRING_ELASTICSEARCH_REST_URIS=http://mspsql-elasticsearch:9200
mspsql-postgresql:
extends:
Expand Down

0 comments on commit 8b101a0

Please sign in to comment.