Skip to content
Snippets Groups Projects
Commit 864aee20 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3276 OZG-3318 cleanup; enable grpc ssl for prod profile

parent 40542273
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ pipeline { ...@@ -138,7 +138,7 @@ pipeline {
dir('src/main/helm') { dir('src/main/helm') {
sh "helm lint -f ../../test/unit-values.yaml" sh "helm lint -f ../../test/unit-values.yaml"
//sh "helm unittest -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' ." sh "helm unittest -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' ."
sh "helm package --version=${HELM_CHART_VERSION} ." sh "helm package --version=${HELM_CHART_VERSION} ."
......
quarkus:
grpc:
server:
ssl:
certificate: /user-manager-tls-certificate/tls.crt
key: /user-manager-tls-certificate/tls.key
\ No newline at end of file
...@@ -115,11 +115,3 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} ...@@ -115,11 +115,3 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- define "app.goofyAddress" -}} {{- define "app.goofyAddress" -}}
{{ printf "https://%s.%s" (include "app.kopBezeichner" .) .Values.baseUrl }} {{ printf "https://%s.%s" (include "app.kopBezeichner" .) .Values.baseUrl }}
{{- end -}} {{- end -}}
{{- define "app.envProfiles" -}}
{{- if eq (include "app.kopEnvironment" . ) "dev" -}}
{{ printf "develop" }}
{{- else -}}
{{ printf "prod" }}
{{- end -}}
{{- end -}}
...@@ -85,8 +85,6 @@ spec: ...@@ -85,8 +85,6 @@ spec:
value: {{ include "app.baseUrl" . }} value: {{ include "app.baseUrl" . }}
- name: KOP_KEYCLOAK_SYNC_CRON - name: KOP_KEYCLOAK_SYNC_CRON
value: {{ .Values.kop.keycloak.sync.cron }} value: {{ .Values.kop.keycloak.sync.cron }}
- name: QUARKUS_PROFILE
value: {{ include "app.envProfiles" . }}
{{- with (.Values.env).customList }} {{- with (.Values.env).customList }}
{{ toYaml . | indent 8 }} {{ toYaml . | indent 8 }}
{{- end }} {{- end }}
......
...@@ -46,26 +46,3 @@ tests: ...@@ -46,26 +46,3 @@ tests:
content: content:
name: my_test_environment_name name: my_test_environment_name
value: "A test value" value: "A test value"
- it: should set profile to "develop" if environment is dev
template: deployment.yaml
set:
kop:
environment: dev
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: QUARKUS_PROFILE
value: develop
- it: should set profile to "prod" as default
template: deployment.yaml
set:
kop:
environment: prod
asserts:
- contains:
path: spec.template.spec.containers[0].env
content:
name: QUARKUS_PROFILE
value: prod
\ No newline at end of file
quarkus:
grpc:
server:
ssl:
certificate: /user-manager-tls-certificate/tls.crt
key: /user-manager-tls-certificate/tls.key
\ No newline at end of file
quarkus:
grpc:
server:
ssl:
certificate: /user-manager-tls-certificate/tls.crt
key: /user-manager-tls-certificate/tls.key
mongodb:
database: usermanager
oidc:
auth-server-url: https://sso.dev.by.kop-cloud.de/realms/sh-kiel-dev
http:
auth:
permission:
bearer:
paths: /api/userProfiles/*,/api/user/*
policy: permit
deny-api:
paths: /api/*
policy: deny
permit-migration:
enabled: false
paths: /api/migration/user/*
policy: permit
methods: GET
kop:
keycloak:
sync:
cron: "0 */10 * * * ?"
api:
user: goofyApiUser
password: S9UEMuLG9y9ev99
realm: dev
organisations-einheit-id-key: organisationsEinheitId
ldap-id-key: LDAP_ID
keycloak:
url: https://sso.dev.by.kop-cloud.de
\ No newline at end of file
"%prod":
quarkus:
grpc:
server:
ssl:
certificate: /user-manager-tls-certificate/tls.crt
key: /user-manager-tls-certificate/tls.key
quarkus: quarkus:
application: application:
name: kopusermanager name: kopusermanager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment