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

Merge pull request 'OZG-3184 - fix cors header with minor helm cleanup' (#30)...

Merge pull request 'OZG-3184 - fix cors header with minor helm cleanup' (#30) from OZG-3184-fix-cors-nginx-header-with-minor-cleanup into master

Reviewed-on: https://git.ozg-sh.de/mgm/user-manager/pulls/30
parents 518cc587 e25fddd4
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,7 @@ pipeline {
HELM_CHART_VERSION = generateHelmChartVersion()
dir('src/main/helm') {
sh "helm lint -f test-values.yaml"
sh "helm lint -f ../../test/unit-values.yaml"
sh "helm unittest -f '../../test/helm/*.yaml' -v '../../test/unit-values.yaml' ."
......
......@@ -52,14 +52,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- printf "%d %d * * *" (div (randNumeric 2) 2) (div (randNumeric 1) 2) -}}
{{- end -}}
#{{- define "app.envSpringProfiles" }}
#{{- if (.Values.env).overrideSpringProfiles -}}
#{{ printf "%s" (.Values.env).overrideSpringProfiles }}
#{{- else -}}
#{{ printf "oc, %s" (include "app.kopEnvironment" . ) }}
#{{- end -}}
#{{- end -}}
{{- define "app.kopEnvironment" -}}
{{- required "Environment muss angegeben sein" (.Values.kop).environment -}}
{{- end -}}
......@@ -86,24 +78,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
{{- end }}
{{- end -}}
{{- define "app.mongodb.resources" }}
{{- if eq (include "app.kopEnvironment" . ) "prod" }}
limits:
cpu: 250m
memory: "2000Mi"
requests:
cpu: "50m"
memory: "800Mi"
{{- else }}
limits:
cpu: 250m
memory: "2000Mi"
requests:
cpu: "50m"
memory: "500Mi"
{{- end }}
{{- end -}}
{{- define "app.ssoServerUrl" -}}
{{- if contains "https://" .Values.sso.serverUrl -}}
{{- .Values.sso.serverUrl -}}
......
#
# Copyright (C) 2022 Das Land Schleswig-Holstein vertreten durch den
# Ministerpräsidenten des Landes Schleswig-Holstein
# Staatskanzlei
# Abteilung Digitalisierung und zentrales IT-Management der Landesregierung
#
# Lizenziert unter der EUPL, Version 1.2 oder - sobald
# diese von der Europäischen Kommission genehmigt wurden -
# Folgeversionen der EUPL ("Lizenz");
# Sie dürfen dieses Werk ausschließlich gemäß
# dieser Lizenz nutzen.
# Eine Kopie der Lizenz finden Sie hier:
#
# https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
#
# Sofern nicht durch anwendbare Rechtsvorschriften
# gefordert oder in schriftlicher Form vereinbart, wird
# die unter der Lizenz verbreitete Software "so wie sie
# ist", OHNE JEGLICHE GEWÄHRLEISTUNG ODER BEDINGUNGEN -
# ausdrücklich oder stillschweigend - verbreitet.
# Die sprachspezifischen Genehmigungen und Beschränkungen
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
database:
password: changeme
kop:
bundesland: sh
bezeichner: helm
environment: test
\ No newline at end of file
......@@ -24,26 +24,13 @@
cluster_env: ""
baseUrl: test.sh.kop-cloud.de
sso:
serverUrl: sso.test.by.kop-cloud.de
replicaCount: 2
replicaCountDatabase: 3
image:
repo: docker.ozg-sh.de
name: user-manager
tag: latest # [default: latest]
resources:
limits:
cpu: 1
memory: 1200Mi
requests:
cpu: 50m
memory: 16Mi
database: # username is always <release-name>-database-user
backup:
disabled: false
......
......@@ -5,9 +5,12 @@ release:
templates:
- templates/api-password-secret.yaml
tests:
- it: test api password
- it: test api secret kind
asserts:
- isKind:
of: Secret
- isNotEmpty:
- it: test api password
asserts:
- equal:
path: stringData.password
value: geheim
\ No newline at end of file
......@@ -38,3 +38,6 @@ tests:
- equal:
path: spec.template.spec.containers[0].image
value: docker.ozg-sh.de/user-manager:latest
- equal:
path: spec.replicas
value: 2
......@@ -22,8 +22,6 @@
# unter der Lizenz sind dem Lizenztext zu entnehmen.
#
cluster_env: ""
baseUrl: test.sh.kop-cloud.de
kop:
......@@ -37,33 +35,3 @@ kop:
sso:
serverUrl: sso.test.sh.kop-cloud.de
image:
repo: docker.ozg-sh.de
name: user-manager
tag: latest # [default: latest]
replicaCount: 2
replicaCountDatabase: 3
resources:
limits:
cpu: 1
memory: 1200Mi
requests:
cpu: 50m
memory: 16Mi
database: # username is always <release-name>-database-user
password: hase
backup:
disabled: false
nfs:
server: "10.61.132.81"
mount_path: "/mnt/backups/mongodb/"
imageCredentials:
registry: docker.ozg-sh.de
username: kop
password: Ymtbek3BWR8v
email: webmaster@ozg-sh.de
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment