Skip to content

Commit 6363874

Browse files
committed
Correct ByServers constant in NM script and remove default for logHomeLayout
1 parent c25d277 commit 6363874

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

documentation/domains/Domain.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@
313313
"minimum": 1
314314
},
315315
"logHomeLayout": {
316-
"default": "ByServers",
317316
"description": "Control how log files under `logHome` are organized when logHome is set and `logHomeEnabled` is true. `Flat` specifies that all files are kept directly in the `logHome` root directory. `ByServers` specifies that domain log files and `introspector.out` are at the `logHome` root level, all other files are organized under the respective server name logs directory `logHome/servers/\u003cserver name\u003e/logs`. Defaults to `ByServers`.",
318317
"type": "string",
319318
"enum": [

kubernetes/crd/domain-crd.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: apiextensions.k8s.io/v1
55
kind: CustomResourceDefinition
66
metadata:
77
annotations:
8-
weblogic.sha256: f65b4f29f490db1bbe4238ea6be340a514a236d4654b858a1136270132239c62
8+
weblogic.sha256: 40333b90cd079349282d5038a27c045388ea7df3cb112116c79a74974b142cc9
99
name: domains.weblogic.oracle
1010
spec:
1111
group: weblogic.oracle
@@ -519,7 +519,6 @@ spec:
519519
minimum: 1
520520
type: integer
521521
logHomeLayout:
522-
default: ByServers
523522
description: Control how log files under `logHome` are organized when
524523
logHome is set and `logHomeEnabled` is true. `Flat` specifies that
525524
all files are kept directly in the `logHome` root directory. `ByServers`

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainSpec.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ public class DomainSpec extends BaseConfiguration {
127127
+ "`ByServers` specifies that domain log files and `introspector.out` are at the `logHome` root level, "
128128
+ "all other files are organized under the respective server name logs directory "
129129
+ "`logHome/servers/<server name>/logs`. Defaults to `ByServers`.")
130-
@Default(strDefault = "ByServers")
131130
private LogHomeLayoutType logHomeLayout = LogHomeLayoutType.BY_SERVERS;
132131

133132

operator/src/main/resources/scripts/startNodeManager.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ if [ "${SERVER_NAME}" = "introspector" ]; then
133133
else
134134
# setup ".out" location for a WL server
135135
serverLogHome="${LOG_HOME:-${DOMAIN_HOME}}"
136-
if [ -z ${LOG_HOME_LAYOUT} ] || [ "BY_SERVERS" = ${LOG_HOME_LAYOUT} ] ; then
136+
if [ -z ${LOG_HOME} ] || [ "ByServers" = ${LOG_HOME_LAYOUT} ] ; then
137137
serverLogHome="${serverLogHome}/servers/${SERVER_NAME}/logs"
138138
fi
139139
export SERVER_OUT_FILE="${serverLogHome}/${SERVER_NAME}.out"

0 commit comments

Comments
 (0)