This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from neicnordic/features/svc_notls
Chart changes [ SVC ] [ part 4 of 4 ]
- Loading branch information
Showing
52 changed files
with
868 additions
and
553 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Deployment without TLS | ||
|
||
on: [push,pull_request] | ||
|
||
env: | ||
svc_list: 'auth backup finalize inbox ingest mapper verify' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
test: [sda-notls] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install kube dependencies | ||
run: bash ./dev_tools/scripts/install-kube-deps.sh | ||
- name: Initialise k3d | ||
run: bash ./dev_tools/scripts/init-k3d.sh | ||
- name: Wait for k3d to become ready | ||
run: bash ./dev_tools/scripts/wait-for-pods.sh metrics-server k8s-app kube-system | ||
- name: Install sda dependencies | ||
run: bash ./dev_tools/scripts/install-sda-deps.sh | ||
- name: Create certificates | ||
run: bash ./dev_tools/scripts/make-certs.sh | ||
- name: Create secrets | ||
run: bash ./dev_tools/scripts/create-secrets.sh | ||
- name: Deploy SDA database | ||
run: bash ./dev_tools/scripts/deploy-no-tls.sh database | ||
- name: Wait for database to become ready | ||
run: bash ./dev_tools/scripts/wait-for-pods.sh database | ||
- name: Deploy SDA message broker | ||
run: bash ./dev_tools/scripts/deploy-no-tls.sh broker | ||
- name: Wait for broker to become ready | ||
run: bash ./dev_tools/scripts/wait-for-pods.sh broker | ||
- name: Deploy mock oidc server | ||
run: bash ./dev_tools/scripts/deploy-oidc.sh | ||
- name: Deploy minio | ||
run: bash ./dev_tools/scripts/deploy-no-tls.sh minio | ||
- name: Wait for minio to become ready | ||
run: bash ./dev_tools/scripts/wait-for-pods.sh minio app | ||
- name: Create s3 buckets | ||
run: bash ./dev_tools/scripts/create-s3-buckets-no-tls.sh | ||
- name: Deploy the SDA stack | ||
run: bash ./dev_tools/scripts/deploy-no-tls.sh pipeline | ||
- name: Wait for sda to become ready | ||
run: bash ./dev_tools/scripts/wait-for-pods.sh "${{ env.svc_list }}" | ||
- name: Run helm test | ||
run: bash ./dev_tools/scripts/run-helm-test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,18 @@ | ||
{{- if or (or (eq "all" .Values.global.deploymentType) (eq "external" .Values.global.deploymentType) ) (not .Values.global.deploymentType) }} | ||
{{- if eq "s3" .Values.global.inbox.storageType }} | ||
{{- if not .Values.global.vaultSecrets }} | ||
{{- $jwtKey := .Files.Glob (printf "files/%s" .Values.global.auth.jwtKey) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "sda.fullname" . }}-auth | ||
type: Opaque | ||
data: | ||
{{- if $jwtKey }} | ||
{{ ( $jwtKey ).AsSecrets | indent 2 }} | ||
{{- end }} | ||
elixirID: {{ .Values.global.auth.elixirID | quote | trimall "\"" | b64enc }} | ||
elixirSecret: {{ .Values.global.auth.elixirSecret | quote | trimall "\"" | b64enc }} | ||
{{- if or ( eq "federated" .Values.global.schemaType) ( eq "" .Values.global.schemaType) }} | ||
cegaID: {{ .Values.global.cega.user | quote | trimall "\"" | b64enc }} | ||
cegaSecret: {{ .Values.global.cega.password | quote | trimall "\"" | b64enc }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if and .Values.global.auth.useTLS (not .Values.global.pkiService) }} | ||
--- | ||
{{- $auth := .Files.Glob "files/auth*" }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "sda.fullname" . }}-auth-certs | ||
data: | ||
{{ ( .Files.Glob "files/ca.crt" ).AsSecrets | trim | indent 2 }} | ||
{{ ( $auth ).AsSecrets | indent 2 }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.