Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 4 additions & 37 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,15 @@ DOCKER_TAG ?= $(USER)
# default helm chart version must be 0.0.42 for local development (because 42 is the answer to the universe and everything)
HELM_SEMVER ?= 0.0.42
# The list of helm charts needed on internal kubernetes testing environments
CHARTS_INTEGRATION := wire-server databases-ephemeral rabbitmq fake-aws ingress-nginx-controller nginx-ingress-services wire-ingress fluent-bit kibana k8ssandra-test-cluster wire-server-enterprise
CHARTS_INTEGRATION := wire-server databases-ephemeral rabbitmq fake-aws ingress-nginx-controller nginx-ingress-services wire-ingress fluent-bit k8ssandra-test-cluster wire-server-enterprise
# The list of helm charts to publish on S3
# FUTUREWORK: after we "inline local subcharts",
# (e.g. move charts/brig to charts/wire-server/brig)
# this list could be generated from the folder names under ./charts/ like so:
# CHARTS_RELEASE := $(shell find charts/ -maxdepth 1 -type d | xargs -n 1 basename | grep -v charts)
CHARTS_RELEASE := wire-server rabbitmq rabbitmq-external databases-ephemeral \
fake-aws fake-aws-s3 fake-aws-sqs aws-ingress fluent-bit kibana backoffice \
calling-test demo-smtp elasticsearch-curator elasticsearch-external \
elasticsearch-ephemeral minio-external cassandra-external \
fake-aws fake-aws-s3 fake-aws-sqs aws-ingress fluent-bit backoffice \
calling-test demo-smtp minio-external cassandra-external \
ingress-nginx-controller nginx-ingress-services \
k8ssandra-test-cluster ldap-scim-bridge wire-server-enterprise \
wire-ingress
Expand Down Expand Up @@ -393,41 +392,10 @@ postgres-migrate: c
./dist/brig -c ./services/brig/brig.integration.yaml migrate-postgres --dbname dyn-2
./dist/brig -c ./services/brig/brig.integration.yaml migrate-postgres --dbname dyn-3

.PHONY: es-reset
es-reset: c
./dist/brig-index reset \
--elasticsearch-index-prefix directory \
--elasticsearch-server https://localhost:9200 \
--elasticsearch-ca-cert ./libs/wire-subsystems/test/resources/elasticsearch-ca.pem \
--elasticsearch-credentials ./libs/wire-subsystems/test/resources/elasticsearch-credentials.yaml > /dev/null
./dist/brig-index reset \
--elasticsearch-index-prefix directory2 \
--elasticsearch-server https://localhost:9200 \
--elasticsearch-ca-cert ./libs/wire-subsystems/test/resources/elasticsearch-ca.pem \
--elasticsearch-credentials ./libs/wire-subsystems/test/resources/elasticsearch-credentials.yaml > /dev/null
./integration/scripts/integration-dynamic-backends-brig-index.sh \
--elasticsearch-server https://localhost:9200 \
--elasticsearch-ca-cert ./libs/wire-subsystems/test/resources/elasticsearch-ca.pem \
--elasticsearch-credentials ./libs/wire-subsystems/test/resources/elasticsearch-credentials.yaml > /dev/null
@echo -e "\n'brig-index reset' only deletes the index and regenerates the mapping, but doesn't generate or populate a new index, so you need to call 'make es-reindex explicitly now!\n"

.PHONY: es-reindex
es-reindex: c
./dist/brig-index reindex \
--pg-pool-size 10 \
--pg-pool-acquisition-timeout 10s \
--pg-pool-aging-timeout 1d \
--pg-pool-idleness-timeout 1h \
--pg-settings '{"host":"127.0.0.1","port":"5432","user":"wire-server","dbname":"backendA"}' \
--pg-password-file ./libs/wire-subsystems/test/resources/postgres-credentials.yaml \
--elasticsearch-server https://localhost:9200 \
--elasticsearch-ca-cert ./libs/wire-subsystems/test/resources/elasticsearch-ca.pem \
--elasticsearch-credentials ./libs/wire-subsystems/test/resources/elasticsearch-credentials.yaml > /dev/null

.PHONY: rabbitmq-reset
rabbitmq-reset: rabbit-clean

# Migrate all keyspaces and reset the ES index
# Migrate all keyspaces
# Does not migrate postgres as brig does that on startup.
.PHONY: db-migrate
db-migrate: c postgres-migrate
Expand All @@ -440,7 +408,6 @@ db-migrate: c postgres-migrate
./dist/gundeck-schema --keyspace gundeck_test2 --replication-factor 1 > /dev/null
./dist/spar-schema --keyspace spar_test2 --replication-factor 1 > /dev/null
./integration/scripts/integration-dynamic-backends-db-schemas.sh --replication-factor 1 > /dev/null
make es-reset

#################################
## dependencies
Expand Down
1 change: 0 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ packages:
, services/spar/
, tools/db/assets/
, tools/db/auto-whitelist/
, tools/db/find-undead/
, tools/db/inconsistencies/
, tools/db/migrate-sso-feature-flag/
, tools/db/migrate-features/
Expand Down
9 changes: 1 addition & 8 deletions charts/databases-ephemeral/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies:
## dependent (demo, non-persistent, non-HA) databases
#
# Note: why are these charts not part of the wire-server chart?
# These charts, in particular cassandra/elasticsearch
# These charts, in particular cassandra
# cannot be part of the wire-server chart, because of the required ordering of
# 1. install databases, wait for them to be ready
# 2. run database cassandra-migrations (done as a pre-install/pre-upgrade hook)
Expand All @@ -13,13 +13,6 @@ dependencies:
# since cassandra-migrations did not yet run; but the cassandra-migrations hook
# requires all pods to be in a 'Ready' state before starting (condition for post-install); this is impossible.
#####################################################
- name: elasticsearch-ephemeral
version: "0.0.42"
repository: "file://../elasticsearch-ephemeral"
tags:
- elasticsearch-ephemeral
- databases-ephemeral
- demo
- name: cassandra-ephemeral
version: "0.0.42"
repository: "file://../cassandra-ephemeral"
Expand Down
3 changes: 1 addition & 2 deletions charts/databases-ephemeral/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
You now have an in-memory, non-persistent, non-highly-available set of databases:

* cassandra-ephemeral
* elasticsearch-ephemeral

!! WARNING WARNING !!
This is fine for testing and demo purposes, but NOT for a production use case.
!! WARNING WARNING !!

Note that before use of these databases for wire-server components, an index (in the case of elasticsearch) and a set of cassandra-migrations (in the case of cassandra) have to be applied. This comes bundled with the wire-server chart (see cassandra-migrations and elasticsearch-index charts for details)
Note that before use of these databases for wire-server components, a set of cassandra-migrations have to be applied. This comes bundled with the wire-server chart (see cassandra-migrations chart for details)
4 changes: 0 additions & 4 deletions charts/elasticsearch-curator/Chart.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions charts/elasticsearch-curator/requirements.yaml

This file was deleted.

31 changes: 0 additions & 31 deletions charts/elasticsearch-curator/values.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions charts/elasticsearch-ephemeral/Chart.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions charts/elasticsearch-ephemeral/templates/_helpers.tpl

This file was deleted.

30 changes: 0 additions & 30 deletions charts/elasticsearch-ephemeral/templates/cert.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions charts/elasticsearch-ephemeral/templates/es-svc.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions charts/elasticsearch-ephemeral/templates/es.yaml

This file was deleted.

23 changes: 0 additions & 23 deletions charts/elasticsearch-ephemeral/values.yaml

This file was deleted.

4 changes: 0 additions & 4 deletions charts/elasticsearch-external/Chart.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions charts/elasticsearch-external/templates/endpoint.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions charts/elasticsearch-external/templates/helpers.tpl

This file was deleted.

6 changes: 0 additions & 6 deletions charts/elasticsearch-external/values.yaml

This file was deleted.

Loading
Loading