Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #94 from neicnordic/Charts_folder
Browse files Browse the repository at this point in the history
Charts folder
  • Loading branch information
jbygdell committed Jul 27, 2021
2 parents 5e90007 + 70923a9 commit fc8b5e8
Show file tree
Hide file tree
Showing 91 changed files with 33 additions and 35 deletions.
2 changes: 2 additions & 0 deletions .github/ci_tests/lint_helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ set -e

## create empty files so the linter won't give an false error

pushd charts

if [ $1 = "sda-db" ] || [ $1 = "sda-mq" ]; then
touch $1/files/ca.crt
touch $1/files/server.crt
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Lint sda-db
run: |
bash .github/ci_tests/lint_helper.sh sda-db
helm lint sda-db
helm lint charts/sda-db
lint_sda-mq:
name: Lint sda-mq
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Lint sda-mq
run: |
bash .github/ci_tests/lint_helper.sh sda-mq
helm lint sda-mq
helm lint charts/sda-mq
lint_sda-svc:
name: Lint sda-svc
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Lint sda-svc
run: |
bash .github/ci_tests/lint_helper.sh sda-svc
helm lint sda-svc
helm lint charts/sda-svc
lint_sda-orch:
name: Lint sda-orch
Expand All @@ -57,4 +57,4 @@ jobs:
- name: Lint sda-orch
run: |
bash .github/ci_tests/lint_helper.sh sda-orch
helm lint sda-orch
helm lint charts/sda-orch
2 changes: 0 additions & 2 deletions .github/workflows/manual_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@ jobs:

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
with:
charts_dir: .
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 0 additions & 2 deletions .github/workflows/publish_charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ jobs:

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.2.1
with:
charts_dir: .
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion dev_tools/scripts/deploy-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e
DB_IN_PASS=$(grep pg_in_password sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')
DB_OUT_PASS=$(grep pg_out_password sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install postgres sda-db \
helm install postgres charts/sda-db \
--set securityPolicy.create=false,\
global.pg_in_password="$DB_IN_PASS",\
global.pg_out_password="$DB_OUT_PASS",\
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/scripts/deploy-mq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e

CEGA_MQ_PASS=$(grep cega_mq_pass sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install broker sda-mq \
helm install broker charts/sda-mq \
--set securityPolicy.create=false,\
config.verifyPeer=false,\
config.adminUser=admin,\
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/scripts/sda/deploy-orch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ set -e
DB_IN_PASS=$(grep pg_in_password sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')
DB_OUT_PASS=$(grep pg_out_password sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install orch sda-orch -f dev_tools/config/orch.yaml \
helm install orch charts/sda-orch -f dev_tools/config/orch.yaml \
--set db.passIngest="$DB_IN_PASS",\
db.passOutgest="$DB_OUT_PASS"
2 changes: 1 addition & 1 deletion dev_tools/scripts/sda/deploy-posix-federated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DB_IN_PASS=$(grep pg_in_password sda-deploy-init/config/trace.yml | awk '{print
DB_OUT_PASS=$(grep pg_out_password sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')
C4GH_PASSPHRASE=$(grep ega_c4gh_passphrase sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install sda sda-svc -f dev_tools/config/posix.yaml \
helm install sda charts/sda-svc -f dev_tools/config/posix.yaml \
--set global.broker.vhost=/sda,\
global.c4gh.passphrase="$C4GH_PASSPHRASE",\
global.cega.password="$CEGA_USERS_PASS",\
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/scripts/sda/deploy-posix-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DB_IN_PASS=$(grep pg_in_password sda-deploy-init/config/trace.yml | awk '{print
DB_OUT_PASS=$(grep pg_out_password sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')
C4GH_PASSPHRASE=$(grep ega_c4gh_passphrase sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install sda sda-svc -f dev_tools/config/posix.yaml \
helm install sda charts/sda-svc -f dev_tools/config/posix.yaml \
--set global.broker.vhost=/sda,\
global.c4gh.passphrase="$C4GH_PASSPHRASE",\
global.db.passIngest="$DB_IN_PASS",\
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/scripts/sda/deploy-s3-federated.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ S3_ACCESS_KEY=$(grep s3_archive_access_key sda-deploy-init/config/trace.yml | aw
S3_SECRET_KEY=$(grep s3_archive_secret_key sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')
C4GH_PASSPHRASE=$(grep ega_c4gh_passphrase sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install sda sda-svc -f dev_tools/config/s3.yaml \
helm install sda charts/sda-svc -f dev_tools/config/s3.yaml \
--set global.broker.vhost=sda,\
global.archive.s3AccessKey="$S3_ACCESS_KEY",\
global.archive.s3SecretKey="$S3_SECRET_KEY",\
Expand Down
2 changes: 1 addition & 1 deletion dev_tools/scripts/sda/deploy-s3-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ S3_ACCESS_KEY=$(grep s3_archive_access_key sda-deploy-init/config/trace.yml | aw
S3_SECRET_KEY=$(grep s3_archive_secret_key sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')
C4GH_PASSPHRASE=$(grep ega_c4gh_passphrase sda-deploy-init/config/trace.yml | awk '{print $2}' | sed -e 's/\"//g')

helm install sda sda-svc -f dev_tools/config/s3.yaml \
helm install sda charts/sda-svc -f dev_tools/config/s3.yaml \
--set global.archive.s3AccessKey="$S3_ACCESS_KEY",\
global.archive.s3SecretKey="$S3_SECRET_KEY",\
global.backupArchive.s3AccessKey="$S3_ACCESS_KEY",\
Expand Down
40 changes: 20 additions & 20 deletions dev_tools/scripts/svc-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@ cp sda-deploy-init/config/certs/s3.ca.crt public.crt
cp sda-deploy-init/config/certs/s3.ca.key private.key

## sda-orch certs
cp sda-deploy-init/config/certs/root.ca.crt sda-orch/files/ca.crt
cp sda-deploy-init/config/certs/orchestrate.ca.crt sda-orch/files/orch.crt
cp sda-deploy-init/config/certs/orchestrate.ca.key sda-orch/files/orch.key
cp sda-deploy-init/config/certs/root.ca.crt charts/sda-orch/files/ca.crt
cp sda-deploy-init/config/certs/orchestrate.ca.crt charts/sda-orch/files/orch.crt
cp sda-deploy-init/config/certs/orchestrate.ca.key charts/sda-orch/files/orch.key

## sda-db certs
cp sda-deploy-init/config/certs/root.ca.crt sda-db/files/ca.crt
cp sda-deploy-init/config/certs/db.ca.crt sda-db/files/pg.crt
cp sda-deploy-init/config/certs/db.ca.key sda-db/files/pg.key
cp sda-deploy-init/config/certs/root.ca.crt charts/sda-db/files/ca.crt
cp sda-deploy-init/config/certs/db.ca.crt charts/sda-db/files/pg.crt
cp sda-deploy-init/config/certs/db.ca.key charts/sda-db/files/pg.key

## sda-mq certs
cp sda-deploy-init/config/certs/root.ca.crt sda-mq/files/ca.crt
cp sda-deploy-init/config/certs/mq-server.ca.crt sda-mq/files/server.crt
cp sda-deploy-init/config/certs/mq-server.ca.key sda-mq/files/server.key
cp sda-deploy-init/config/certs/root.ca.crt charts/sda-mq/files/ca.crt
cp sda-deploy-init/config/certs/mq-server.ca.crt charts/sda-mq/files/server.crt
cp sda-deploy-init/config/certs/mq-server.ca.key charts/sda-mq/files/server.key

cp -r sda-deploy-init/config LocalEGA-helm/ega-charts/cega/config

## sda-svc certs
cp sda-deploy-init/config/token.pub sda-svc/files/
cp sda-deploy-init/config/ega_key.c4gh.sec sda-svc/files/c4gh.key
cp sda-deploy-init/config/ega_key.c4gh.pub sda-svc/files/c4gh.pub
cp sda-deploy-init/config/certs/*.p12 sda-svc/files/
cp sda-deploy-init/config/certs/cacerts sda-svc/files/
cp sda-deploy-init/config/certs/root.ca.crt sda-svc/files/ca.crt
cp sda-deploy-init/config/token.pub charts/sda-svc/files/
cp sda-deploy-init/config/ega_key.c4gh.sec charts/sda-svc/files/c4gh.key
cp sda-deploy-init/config/ega_key.c4gh.pub charts/sda-svc/files/c4gh.pub
cp sda-deploy-init/config/certs/*.p12 charts/sda-svc/files/
cp sda-deploy-init/config/certs/cacerts charts/sda-svc/files/
cp sda-deploy-init/config/certs/root.ca.crt charts/sda-svc/files/ca.crt

for n in backup doa finalize ingest intercept verify mapper inbox
do cp sda-deploy-init/config/certs/$n.ca.crt sda-svc/files/"$(echo $n.ca.crt | cut -d '.' -f1,3)"
do cp sda-deploy-init/config/certs/$n.ca.crt charts/sda-svc/files/"$(echo $n.ca.crt | cut -d '.' -f1,3)"
done

for n in backup doa finalize ingest intercept verify mapper inbox
do cp sda-deploy-init/config/certs/$n.ca.key sda-svc/files/"$(echo $n.ca.key | cut -d '.' -f1,3)"
do cp sda-deploy-init/config/certs/$n.ca.key charts/sda-svc/files/"$(echo $n.ca.key | cut -d '.' -f1,3)"
done

cp sda-deploy-init/config/certs/res.ca.crt sda-svc/files/auth.crt
cp sda-deploy-init/config/certs/res.ca.key sda-svc/files/auth.key
cp sda-deploy-init/config/certs/res.ca.crt charts/sda-svc/files/auth.crt
cp sda-deploy-init/config/certs/res.ca.key charts/sda-svc/files/auth.key

for p in sda-svc sda-db sda-mq sda-orch
do cp sda-deploy-init/config/certs/tester.ca.* "$p/files/"
do cp sda-deploy-init/config/certs/tester.ca.* "charts/$p/files/"
done

0 comments on commit fc8b5e8

Please sign in to comment.