Skip to content

Commit d6197d2

Browse files
committed
Merge remote-tracking branch 'origin/develop' into template-fix
2 parents a178049 + 7c91179 commit d6197d2

File tree

34 files changed

+598
-49
lines changed

34 files changed

+598
-49
lines changed
53 Bytes
Binary file not shown.

docs/domains/Domain.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@
249249
"description": "Domain unique identifier. Must be unique across the Kubernetes cluster. Not required. Defaults to the value of metadata.name.",
250250
"type": "string"
251251
},
252+
"experimental": {
253+
"description": "Experimental feature configurations.",
254+
"$ref": "#/definitions/Experimental"
255+
},
252256
"serverStartPolicy": {
253257
"description": "The strategy for deciding whether to start a server. Legal values are ADMIN_ONLY, NEVER, or IF_NEEDED.",
254258
"type": "string",
@@ -358,6 +362,28 @@
358362
}
359363
}
360364
},
365+
"Experimental": {
366+
"type": "object",
367+
"properties": {
368+
"istio": {
369+
"description": "Istio service mesh integration configuration.",
370+
"$ref": "#/definitions/Istio"
371+
}
372+
}
373+
},
374+
"Istio": {
375+
"type": "object",
376+
"properties": {
377+
"readinessPort": {
378+
"description": "The WebLogic readiness port for Istio. Defaults to 8888. Not required.",
379+
"type": "number"
380+
},
381+
"enabled": {
382+
"description": "True, if this domain is deployed under an Istio service mesh. Defaults to false. Not required.",
383+
"type": "boolean"
384+
}
385+
}
386+
},
361387
"KubernetesResource": {
362388
"type": "object",
363389
"properties": {

docs/domains/Domain.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DomainSpec is a description of a domain.
2323
| `domainHome` | string | The folder for the WebLogic Domain. Not required. Defaults to /shared/domains/domains/domainUID if domainHomeInImage is false. Defaults to /u01/oracle/user_projects/domains/ if domainHomeInImage is true. |
2424
| `domainHomeInImage` | Boolean | True if this domain's home is defined in the Docker image for the domain. Defaults to true. |
2525
| `domainUID` | string | Domain unique identifier. Must be unique across the Kubernetes cluster. Not required. Defaults to the value of metadata.name. |
26+
| `experimental` | [Experimental](#experimental) | Experimental feature configurations. |
2627
| `image` | string | The WebLogic Docker image; required when domainHomeInImage is true; otherwise, defaults to container-registry.oracle.com/middleware/weblogic:12.2.1.3. |
2728
| `imagePullPolicy` | string | The image pull policy for the WebLogic Docker image. Legal values are Always, Never and IfNotPresent. Defaults to Always if image ends in :latest, IfNotPresent otherwise. |
2829
| `imagePullSecrets` | array of [Local Object Reference](k8s1.13.5.md#local-object-reference) | A list of image pull secrets for the WebLogic Docker image. |
@@ -81,6 +82,12 @@ An element representing a cluster in the domain configuration.
8182
| `serverStartPolicy` | string | The strategy for deciding whether to start a server. Legal values are NEVER, or IF_NEEDED. |
8283
| `serverStartState` | string | The state in which the server is to be started. Use ADMIN if server should start in the admin state. Defaults to RUNNING. |
8384

85+
### Experimental
86+
87+
| Name | Type | Description |
88+
| --- | --- | --- |
89+
| `istio` | [Istio](#istio) | Istio service mesh integration configuration. |
90+
8491
### Managed Server
8592

8693
ManagedServer represents the operator configuration for a single Managed Server.
@@ -176,6 +183,13 @@ ServerPod describes the configuration for a Kubernetes pod for a server.
176183
| `annotations` | Map | The annotations to be attached to generated resources. |
177184
| `labels` | Map | The labels to be attached to generated resources. The label names must not start with 'weblogic.'. |
178185

186+
### Istio
187+
188+
| Name | Type | Description |
189+
| --- | --- | --- |
190+
| `enabled` | Boolean | True, if this domain is deployed under an Istio service mesh. Defaults to false. Not required. |
191+
| `readinessPort` | number | The WebLogic readiness port for Istio. Defaults to 8888. Not required. |
192+
179193
### Probe Tuning
180194

181195
| Name | Type | Description |

docs/domains/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,10 @@
11691169
"description": "Domain unique identifier. Must be unique across the Kubernetes cluster. Not required. Defaults to the value of metadata.name.",
11701170
"type": "string"
11711171
},
1172+
"experimental": {
1173+
"description": "Experimental feature configurations.",
1174+
"$ref": "#/definitions/Experimental"
1175+
},
11721176
"serverStartPolicy": {
11731177
"description": "The strategy for deciding whether to start a server. Legal values are ADMIN_ONLY, NEVER, or IF_NEEDED.",
11741178
"type": "string",
@@ -1278,6 +1282,28 @@
12781282
}
12791283
}
12801284
},
1285+
"Experimental": {
1286+
"type": "object",
1287+
"properties": {
1288+
"istio": {
1289+
"description": "Istio service mesh integration configuration.",
1290+
"$ref": "#/definitions/Istio"
1291+
}
1292+
}
1293+
},
1294+
"Istio": {
1295+
"type": "object",
1296+
"properties": {
1297+
"readinessPort": {
1298+
"description": "The WebLogic readiness port for Istio. Defaults to 8888. Not required.",
1299+
"type": "number"
1300+
},
1301+
"enabled": {
1302+
"description": "True, if this domain is deployed under an Istio service mesh. Defaults to false. Not required.",
1303+
"type": "boolean"
1304+
}
1305+
}
1306+
},
12811307
"KubernetesResource": {
12821308
"type": "object",
12831309
"properties": {

integration-tests/src/test/java/oracle/kubernetes/operator/ItInitContainers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private static void destroyInitContdomain() throws Exception {
119119
* before starting the admin server pod.
120120
*
121121
* @throws Exception when domain.yaml cannot be read or modified to include the initContainers or
122-
* weblogic server pod doesn't go through initialization and ready state
122+
* WebLogic server pod doesn't go through initialization and ready state
123123
*/
124124
@Test
125125
public void testDomainInitContainer() throws Exception {
@@ -198,7 +198,7 @@ public void testClusterInitContainer() throws Exception {
198198
* before starting the admin server pod.
199199
*
200200
* @throws Exception when domain.yaml cannot be read or modified to include the initContainers or
201-
* weblogic server pod doesn't go through initialization and ready state
201+
* WebLogic server pod doesn't go through initialization and ready state
202202
*/
203203
@Test
204204
public void testMsInitContainer() throws Exception {

integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,10 @@ private static void gitCloneBuildMonitoringExporter() throws Exception {
155155
/**
156156
* Utility to execute any shell scripts.
157157
*
158-
* @srcLoc - path to the shel script
159-
* @destLoc - destination path there the shell script will be executed
160-
* @fileName - name of the shell script
161-
* @args - args to pass to the shell script
158+
* @param srcLoc - path to the shell script
159+
* @param destLoc - destination path there the shell script will be executed
160+
* @param fileName - name of the shell script
161+
* @param args - args to pass to the shell script
162162
* @throws Exception if could not run the command successfully to clone from github
163163
*/
164164
private static void executeShelScript(String srcLoc, String destLoc, String fileName, String args)

kubernetes/charts/weblogic-operator/templates/_operator-dep.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ spec:
3636
value: "false"
3737
- name: "JAVA_LOGGING_LEVEL"
3838
value: {{ .javaLoggingLevel | quote }}
39+
- name: ISTIO_ENABLED
40+
value: {{ .istioEnabled | quote }}
3941
{{- if .remoteDebugNodePortEnabled }}
4042
- name: "REMOTE_DEBUG_PORT"
4143
value: {{ .internalDebugHttpPort | quote }}

kubernetes/charts/weblogic-operator/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,7 @@ elasticSearchHost: "elasticsearch.default.svc.cluster.local"
100100
# elasticSearchPort specifies the port number of where elasticsearch is running.
101101
# This parameter is ignored if 'elkIntegrationEnabled' is false.
102102
elasticSearchPort: 9200
103+
104+
# experimental
105+
# istioEnabled specifies whether or not it is deployed under Istio.
106+
istioEnabled: false

kubernetes/samples/scripts/common/domain-template.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,8 @@ spec:
7575
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
7676
# The number of managed servers to start for unlisted clusters
7777
# replicas: 1
78+
#
79+
experimental:
80+
istio:
81+
enabled: %ISTIO_ENABLED%
82+
readinessPort: %ISTIO_READINESS_PORT%

kubernetes/samples/scripts/common/utility.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ function createFiles {
368368
sed -i -e "s:%CUSTOM_RCUPREFIX%:${rcuSchemaPrefix}:g" ${createJobOutput}
369369
sed -i -e "s|%CUSTOM_CONNECTION_STRING%|${rcuDatabaseURL}|g" ${createJobOutput}
370370
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3Channel}:g" ${createJobOutput}
371+
sed -i -e "s|%ISTIO_ENABLED%|${istioEnabled}|g" ${createJobOutput}
372+
sed -i -e "s|%ISTIO_READINESS_PORT%|${istioReadinessPort}|g" ${createJobOutput}
371373

372374
# Generate the yaml to create the kubernetes job that will delete the weblogic domain_home folder
373375
echo Generating ${deleteJobOutput}
@@ -423,6 +425,8 @@ function createFiles {
423425
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3ChannelPrefix}:g" ${dcrOutput}
424426
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${dcrOutput}
425427
sed -i -e "s:%INITIAL_MANAGED_SERVER_REPLICAS%:${initialManagedServerReplicas}:g" ${dcrOutput}
428+
sed -i -e "s:%ISTIO_ENABLED%:${istioEnabled}:g" ${dcrOutput}
429+
sed -i -e "s:%ISTIO_READINESS_PORT%:${istioReadinessPort}:g" ${dcrOutput}
426430

427431
if [ "${domainHomeInImage}" == "true" ]; then
428432

0 commit comments

Comments
 (0)