Skip to content

Commit 76a86d9

Browse files
authored
Merge branch 'develop' into owls-70853-remove-configured-cluster
2 parents 22998de + 1b9e40b commit 76a86d9

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ Before you begin, read this guide, [Domain Resource](../../../../../site/domain-
88

99
The following prerequisites must be handled prior to running the create domain script:
1010
* The WDT sample requires that `JAVA_HOME` is set to a Java JDK version 1.8 or later.
11-
* Make sure that the WebLogic operator is running.
12-
* The operator requires WebLogic Server 12.2.1.3.0 with patch 28076014 applied. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one. If a different `domainHomeImageBase` (see Configuration table below) is specified, the specified image needs to be built locally or pulled from a repository.
11+
* The operator requires WebLogic Server 12.2.1.3.0 with patch 28076014 applied. Refer to [WebLogic Docker images](../../../../../site/weblogic-docker-images.md) for details on how to create one.
1312
* Create a Kubernetes namespace for the domain unless the intention is to use the default namespace.
1413
* If logHomeOnPV is enabled, create the Kubernetes persistent volume where the log home will be hosted, and the Kubernetes persistent volume claim for the domain in the same Kubernates namespace. For samples to create a PV and PVC, see [Create sample PV and PVC](../../create-weblogic-domain-pv-pvc/README.md).
1514
* Create a Kubernetes secret for the WebLogic administrator credentials that contains the fields `username` and `password`, and make sure that the secret name matches the value specified for `weblogicCredentialsSecretName` (see Configuration table below). For example:

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,11 @@ String getImageName() {
266266
}
267267

268268
String getImagePullPolicy() {
269-
return KubernetesConstants.IFNOTPRESENT_IMAGEPULLPOLICY;
269+
String imagePullPolicy = getDomain().getSpec().getImagePullPolicy();
270+
if (imagePullPolicy == null) {
271+
imagePullPolicy = KubernetesConstants.IFNOTPRESENT_IMAGEPULLPOLICY;
272+
}
273+
return imagePullPolicy;
270274
}
271275

272276
protected List<String> getContainerCommand() {

site/domains.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ running in Kubernetes.
6767
configuration overrides. This occurs if the domain resource `logHomeEnabled` field is explicitly set to `true`, or if `logHomeEnabled` isn't set
6868
and `domainHomeInImage` is explicitly set to `false`. When overriding, the log location will be the location specified by the `logHome` setting.
6969
* _Listen Address Configuration:_ Channel listen addresses in a configuration either must be left completely unset (for example, not set to anything), or must be set to the exact required value, which will be in the form of the `domainUID`
70-
followed by a hyphen and then the server name (with all lower case, underscores converted to dashes). For example `domain1-admin-server`. This includes default, SSL, admin, and custom channels.
70+
followed by a hyphen and then the server name (with all lower case, underscores converted to hyphens). For example `domain1-admin-server`. This includes default, SSL, admin, and custom channels.
7171
* _Listen Address Overrides:_ The operator will automatically override all WebLogic domain default,
7272
SSL, admin, or custom channel listen addresses (using situational configuration overrides). These will become `domainUID` followed by a
73-
hyphen and then the server name, all lower case, and underscores converted to dashes. For example, if `domainUID=domain1` and
73+
hyphen and then the server name, all lower case, and underscores converted to hyphens. For example, if `domainUID=domain1` and
7474
the WebLogic server name is `Admin_Server`, then its listen address becomes `domain1-admin-server`.
7575
* _Domain, Cluster, Server, and Network-Access-Point Names:_ WebLogic domain, cluster, server, and network-access-point (channel)
7676
names must contain only the characters `A-Z`, `a-z`, `0-9`, `-`, or `_`. This ensures that they can be converted to
7777
meet Kubernetes resource and DNS1123 naming requirements. (When generating pod and service names, the operator will convert
78-
configured names to lower case and substitute a dash (`-`) for each underscore (`_`).)
78+
configured names to lower case and substitute a hyphen (`-`) for each underscore (`_`).)
7979
* _Node Ports:_ If you choose to expose any WebLogic channels outside the Kubernetes cluster via a `NodePort`, for example, the
8080
administration port or a T3 channel to allow WLST access, you need to ensure that you allocate each channel a
8181
unique port number across the entire Kubernetes cluster. If you expose the administration port in each WebLogic domain in

0 commit comments

Comments
 (0)