Skip to content

Commit cbb3bc9

Browse files
jelemuxcesmarvin
authored andcommitted
Merge branch 'release/v1.20.0-2'
2 parents 3cdf912 + 8cd5860 commit cbb3bc9

10 files changed

+63
-20
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [v1.20.0-2] - 2025-02-13
10+
### Added
11+
- [#193] Add missing keys to dogu descriptor
12+
13+
### Changed
14+
- If root log level is set to an invalid value, the script exits with an error message.
15+
916
## [v1.20.0-1] - 2025-01-27
1017
### Changed
1118
- Update ces-build-lib to 4.0.1 and dogu-build-lib to v3.0.0 [#189]

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ FROM registry.cloudogu.com/official/java:8u432-1
7575
ARG TOMCAT_VERSION
7676

7777
LABEL NAME="official/usermgt" \
78-
VERSION="1.20.0-1" \
78+
VERSION="1.20.0-2" \
7979
maintainer="[email protected]"
8080

8181
# mark as webapp for nginx

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Set these to the desired values
22
ARTIFACT_ID=usermgt
3-
VERSION=1.20.0-1
3+
VERSION=1.20.0-2
44
# overwrite ADDITIONAL_LDFLAGS to disable static compilation
55
# this should fix https://github.com/golang/go/issues/13470
66
ADDITIONAL_LDFLAGS=""

batsTests/logging.bats

+3-5
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,16 @@ teardown() {
110110
assert_equal "$(mock_get_call_num "${doguctl}")" "1"
111111
assert_equal "$(mock_get_call_args "${doguctl}" "1")" "validate logging/root"
112112
}
113-
@test "validateDoguLogLevel() should fail on invalid log levels, warn about it, and remove bad config key" {
113+
@test "validateDoguLogLevel() should fail on invalid log levels, print an error message and exit with code 1" {
114114
source /workspace/resources/logging.sh
115115
mock_set_status "${doguctl}" 42
116116

117117
run validateDoguLogLevel
118118

119119
assert_failure
120-
assert_equal "$(mock_get_call_num "${doguctl}")" "2"
120+
assert_equal "$(mock_get_call_num "${doguctl}")" "1"
121121
assert_equal "$(mock_get_call_args "${doguctl}" "1")" "validate logging/root"
122-
assert_equal "$(mock_get_call_args "${doguctl}" "2")" "config --rm logging/root"
123-
assert_line "WARNING: The loglevel configured in logging/root is invalid."
124-
assert_line "WARNING: Removing misconfigured value."
122+
assert_line "ERROR: The loglevel configured in logging/root is invalid."
125123
}
126124

127125
@test "renderLoggingProperties() should call doguctl to render logging.properties" {

docs/gui/release_notes_de.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Technische Details zu einem Release finden Sie im zugehörigen [Changelog](https
66

77
## [Unreleased]
88

9+
## [v1.20.0-2] - 2025-02-13
10+
Wir haben nur technische Änderungen vorgenommen. Näheres finden Sie in den Changelogs.
11+
912
## [v1.20.0-1] - 2025-01-27
1013
Wir haben nur technische Änderungen vorgenommen. Näheres finden Sie in den Changelogs.
1114

docs/gui/release_notes_en.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Technical details on a release can be found in the corresponding [Changelog](htt
66

77
## [Unreleased]
88

9+
## [v1.20.0-2] - 2025-02-13
10+
We have only made technical changes. You can find more details in the changelogs.
11+
912
## [v1.20.0-1] - 2025-01-27
1013
We have only made technical changes. You can find more details in the changelogs.
1114

dogu.json

+42-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Name": "official/usermgt",
3-
"Version": "1.20.0-1",
3+
"Version": "1.20.0-2",
44
"DisplayName": "User Management",
55
"Description": "User and Group Management.",
66
"Category": "Administration Apps",
@@ -49,6 +49,40 @@
4949
}
5050
],
5151
"Configuration": [
52+
{
53+
"Name": "container_config/cpu_core_limit",
54+
"Description": "Limits the container's CPU core usage. Use a positive floating value describing a fraction of 1 CPU core. When you define a value of '0.5', you are requesting half as much CPU time compared to if you asked for '1.0' CPU.",
55+
"Optional": true
56+
},
57+
{
58+
"Name": "container_config/cpu_core_request",
59+
"Description": "Requests the container's minimal CPU core requirement. Use a positive floating value describing a fraction of 1 CPU core. When you define a value of '0.5', you are requesting half as much CPU time compared to if you asked for '1.0' CPU.",
60+
"Optional": true
61+
},
62+
{
63+
"Name": "container_config/memory_request",
64+
"Description": "Requests the container's minimal memory requirement. Use a positive integer value followed by one of these units [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte).",
65+
"Optional": true,
66+
"Validation": {
67+
"Type": "BINARY_MEASUREMENT"
68+
}
69+
},
70+
{
71+
"Name": "container_config/storage_limit",
72+
"Description": "Limits the container's ephemeral storage usage. Use a positive integer value followed by one of these units [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte).",
73+
"Optional": true,
74+
"Validation": {
75+
"Type": "BINARY_MEASUREMENT"
76+
}
77+
},
78+
{
79+
"Name": "container_config/storage_request",
80+
"Description": "Requests the container's minimal ephemeral storage requirement. Use a positive integer value followed by one of these units [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte).",
81+
"Optional": true,
82+
"Validation": {
83+
"Type": "BINARY_MEASUREMENT"
84+
}
85+
},
5286
{
5387
"Name": "pwd_reset_selected_by_default",
5488
"Description": "Specifies whether the checkbox for the password change at the next login attribute should be preselected by default ",
@@ -65,31 +99,37 @@
6599
{
66100
"Name": "mail/sender",
67101
"Description": "Email address to use as sender of the User Management dogu",
102+
"Default": "[email protected]",
68103
"Optional": true
69104
},
70105
{
71106
"Name": "mail/import/subject",
72107
"Description": "The subject of the mail, which is send when a user is imported via the csv import feature",
108+
"Default": "Ihr neuer Cloudogu Ecosystem Account",
73109
"Optional": true
74110
},
75111
{
76-
"Name": "mail/import/content",
112+
"Name": "mail/import/message",
77113
"Description": "The content of the mail, which is send when a User is imported via the csv import feature. Within the content the placeholders ${username} and ${password} need to be included.",
114+
"Default": "Willkommen im Cloudogu Ecosystem!\n\nDies ist Ihr Benutzeraccount:\n\nBenutzername: ${username}\nPasswort: ${password}\n\nBei der ersten Anmeldung müssen Sie das Passwort ändern.",
78115
"Optional": true
79116
},
80117
{
81118
"Name": "mail/import/max_retries",
82119
"Description": "The number of maximum retries to send a mail, before an error occurs",
120+
"Default": "10",
83121
"Optional": true
84122
},
85123
{
86124
"Name": "mail/import/max_retry_delay",
87125
"Description": "The maximum delay for sending an email as part of a retry. By using a backoff strategy, the waiting time increases for each failed send until max_retry_delay is reached before the mail is sent again.",
126+
"Default": "3600",
88127
"Optional": true
89128
},
90129
{
91130
"Name": "mail/import/retry_interval",
92131
"Description": "The interval in which failed mails will be checked to be sent again.",
132+
"Default": "30",
93133
"Optional": true
94134
},
95135
{

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"cypress": "^13.13.1",
44
"yarn": "^1.22.22"
55
},
6-
"version": "1.20.0-1"
6+
"version": "1.20.0-2"
77
}

resources/logging.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ function validateDoguLogLevel() {
5959
doguctl validate "${DEFAULT_LOGGING_KEY}" || validateExitCode=$?
6060

6161
if [[ ${validateExitCode} -ne 0 ]]; then
62-
echo "WARNING: The loglevel configured in ${DEFAULT_LOGGING_KEY} is invalid."
63-
echo "WARNING: Removing misconfigured value."
64-
doguctl config --rm "${DEFAULT_LOGGING_KEY}"
62+
echo "ERROR: The loglevel configured in ${DEFAULT_LOGGING_KEY} is invalid."
63+
exit 1
6564
fi
6665

6766
return

resources/startup.sh

-7
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ copyConfigurationResources() {
4747
cp -rf "${APP_CONFIG_RESOURCE_SRC}"/* "${UNIVERSEADM_HOME}"
4848
}
4949

50-
buildMailAddress() {
51-
GLOBAL_MAIL_ADDRESS="$(doguctl config --global --default "[email protected]" mail_address)"
52-
MAIL_ADDRESS="$(doguctl config --default "${GLOBAL_MAIL_ADDRESS}" mail_address)"
53-
export MAIL_ADDRESS
54-
}
55-
5650
renderTemplates() {
5751
determinePwdMinLength
5852

@@ -107,7 +101,6 @@ runMain() {
107101

108102
encryptLdapPassword
109103
copyConfigurationResources
110-
buildMailAddress
111104
renderTemplates
112105
createGuiConfiguration
113106
createTrustStore

0 commit comments

Comments
 (0)