Skip to content

Commit a70de6d

Browse files
authored
Merge branch '2.0-rc1' into domain-home-in-image-fixes
2 parents d857b14 + 774df34 commit a70de6d

File tree

14 files changed

+288
-589
lines changed

14 files changed

+288
-589
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ The fastest way to experience the operator is to follow the [Quick start guide](
3434
| --- | --- |
3535
| [#721](https://github.com/oracle/weblogic-kubernetes-operator/issues/721) | Incorrect default `domainHome` when `domainHomeInImage` is true. |
3636
| [#722](https://github.com/oracle/weblogic-kubernetes-operator/issues/722) | Server services not recreated when labels/annotations changed. |
37+
| [#726](https://github.com/oracle/weblogic-kubernetes-operator/issues/726) | Clusters only support default channel. |
38+
| [#727](https://github.com/oracle/weblogic-kubernetes-operator/issues/727) | The `listen-address` and log directories may be incorrect (pods may not start). |
3739

3840
## Operator version 1.1
3941

THIRDPARTY

Lines changed: 214 additions & 202 deletions
Large diffs are not rendered by default.

operator/src/main/java/oracle/kubernetes/operator/helpers/JobStepContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected boolean isDomainHomeInImage() {
9999
}
100100

101101
String getEffectiveLogHome() {
102-
if (!getDomain().getLogHomeEnabled()) return "";
102+
if (!getDomain().getLogHomeEnabled()) return null;
103103
String logHome = getLogHome();
104104
if (logHome == null || "".equals(logHome.trim())) {
105105
// logHome not specified, use default value

operator/src/main/java/oracle/kubernetes/operator/helpers/PodStepContext.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,12 @@ private String getLogHome() {
138138
return getDomain().getLogHome();
139139
}
140140

141-
private String getEffectiveLogHome() {
142-
if (!getDomain().getLogHomeEnabled()) return "";
141+
protected boolean isDomainHomeInImage() {
142+
return getDomain().isDomainHomeInImage();
143+
}
144+
145+
String getEffectiveLogHome() {
146+
if (!getDomain().getLogHomeEnabled()) return null;
143147
String logHome = getLogHome();
144148
if (logHome == null || "".equals(logHome.trim())) {
145149
// logHome not specified, use default value
@@ -430,6 +434,7 @@ public NextAction apply(Packet packet) {
430434
logPodExists();
431435
return doNext(packet);
432436
} else {
437+
LOGGER.info(MessageKeys.CYCLING_POD, currentPod, getPodModel());
433438
return doNext(replaceCurrentPod(getNext()), packet);
434439
}
435440
}

operator/src/main/java/oracle/kubernetes/operator/logging/MessageKeys.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,5 @@ private MessageKeys() {}
145145
public static final String CANNOT_PARSE_INTROSPECTOR_RESULT = "WLSKO-0142";
146146
public static final String CANNOT_PARSE_INTROSPECTOR_FILE = "WLSKO-0143";
147147
public static final String CANNOT_START_DOMAIN_AFTER_MAX_RETRIES = "WLSKO-0144";
148+
public static final String CYCLING_POD = "WLSKO-0145";
148149
}

operator/src/main/resources/Operator.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,5 @@ WLSKO-0140=Job {0} is completed with status: {1}
142142
WLSKO-0141=Failed to parse WebLogic Domain topology due to exception: {0}
143143
WLSKO-0142=Failed to parse results from domain introspector for domain {0} due to exception: {1}
144144
WLSKO-0143=Failed to parse file {0} from domain introspector for domain {1} due to exception: {2}
145-
WLSKO-0144=Unable to start domain with domainUID {0} in namespace {1} after {2} attempts due to exception: {3}
145+
WLSKO-0144=Unable to start domain with domainUID {0} in namespace {1} after {2} attempts due to exception: {3}
146+
WLSKO-0145=Replacing pod {0} with {1}

operator/src/test/java/oracle/kubernetes/operator/helpers/PodHelperTestBase.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ public void whenPodCreated_hasPredefinedEnvVariables() {
325325
hasEnvVar("ADMIN_PASSWORD", null),
326326
hasEnvVar("DOMAIN_UID", UID),
327327
hasEnvVar("NODEMGR_HOME", NODEMGR_HOME),
328-
hasEnvVar("SERVER_OUT_IN_POD_LOG", INCLUDE_SERVER_OUT_IN_POD_LOG_STRING),
329-
hasEnvVar("LOG_HOME", ""),
328+
hasEnvVar("SERVER_OUT_IN_POD_LOG", Boolean.toString(INCLUDE_SERVER_OUT_IN_POD_LOG)),
329+
hasEnvVar("LOG_HOME", null),
330330
hasEnvVar("SERVICE_NAME", LegalNames.toServerServiceName(UID, getServerName())),
331331
hasEnvVar("AS_SERVICE_NAME", LegalNames.toServerServiceName(UID, ADMIN_SERVER))));
332332
}
@@ -620,8 +620,9 @@ V1Container createPodSpecContainer() {
620620
.addEnvItem(envItem("ADMIN_PASSWORD", null))
621621
.addEnvItem(envItem("DOMAIN_UID", UID))
622622
.addEnvItem(envItem("NODEMGR_HOME", NODEMGR_HOME))
623-
.addEnvItem(envItem("SERVER_OUT_IN_POD_LOG", INCLUDE_SERVER_OUT_IN_POD_LOG_STRING))
624-
.addEnvItem(envItem("LOG_HOME", ""))
623+
.addEnvItem(
624+
envItem("SERVER_OUT_IN_POD_LOG", Boolean.toString(INCLUDE_SERVER_OUT_IN_POD_LOG)))
625+
.addEnvItem(envItem("LOG_HOME", null))
625626
.addEnvItem(envItem("SERVICE_NAME", LegalNames.toServerServiceName(UID, getServerName())))
626627
.addEnvItem(envItem("AS_SERVICE_NAME", LegalNames.toServerServiceName(UID, ADMIN_SERVER)))
627628
.livenessProbe(createLivenessProbe())

site/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Oracle WebLogic Server Kubernetes Operator Documentation
1+
# Oracle WebLogic Server Kubernetes Operator documentation
22

3-
This directory contains the documentation for the current version of the operator, version 2.0.
3+
This directory contains the documentation for the current version of the operator, version 2.0.
44

5-
If you wish to view documentation for an older version please see:
5+
If you wish to view documentation for an older version, please see:
66

77
* [Version 1.0](v1.0)
8-
* [Version 1.1](v1.1)
8+
* [Version 1.1](v1.1)
9+
10+
For a guide to the operator project, refer to this [README](../README.md).

0 commit comments

Comments
 (0)