Skip to content

Commit 53080b2

Browse files
committed
Make Istio configuration top-level object
2 parents 0d95c20 + fae8cc6 commit 53080b2

File tree

30 files changed

+443
-54
lines changed

30 files changed

+443
-54
lines changed

docs/charts/index.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
apiVersion: v1
22
entries:
33
weblogic-operator:
4-
- created: 2019-06-21T17:07:47.254382-04:00
4+
- created: "2019-07-17T10:01:27.787018-04:00"
55
description: Helm chart for configuring the WebLogic operator.
6-
digest: 0af0ca39bf33b38d82a22a21c32e1cb3da3f78d841ba2c4cfaa4c0e743d3b9b3
6+
digest: 464a6970a589e344f5b0c2f66c10f263e086b96bbf9241e876eee94a41792578
77
name: weblogic-operator
88
urls:
99
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.3.0.tgz
1010
version: 2.3.0
11-
- created: 2019-06-21T17:07:47.252194-04:00
11+
- created: "2019-07-17T10:01:27.784751-04:00"
1212
description: Helm chart for configuring the WebLogic operator.
1313
digest: 23d5a1c554fa8211cc1e86b7ade09460917cb2069e68fb4bfdddafc8db44fdcd
1414
name: weblogic-operator
1515
urls:
1616
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.2.1.tgz
1717
version: 2.2.1
18-
- created: 2019-06-21T17:07:47.250143-04:00
18+
- created: "2019-07-17T10:01:27.782976-04:00"
1919
description: Helm chart for configuring the WebLogic operator.
2020
digest: bba303686cb55d84fe8c0d693a2436e7e686b028085b56e012f6381699a3911f
2121
name: weblogic-operator
2222
urls:
2323
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.2.0.tgz
2424
version: 2.2.0
25-
- created: 2019-06-21T17:07:47.246971-04:00
25+
- created: "2019-07-17T10:01:27.781223-04:00"
2626
description: Helm chart for configuring the WebLogic operator.
2727
digest: 391e23c0969ada5f0cd2a088ddc6f11f237f57521801ed3925db2149a8437a0d
2828
name: weblogic-operator
2929
urls:
3030
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.1.tgz
3131
version: "2.1"
32-
- created: 2019-06-21T17:07:47.245138-04:00
32+
- created: "2019-07-17T10:01:27.778847-04:00"
3333
description: Helm chart for configuring the WebLogic operator.
3434
digest: 298acda78ab73db6b7ba6f2752311bfa40c65874e03fb196b70976192211c1a5
3535
name: weblogic-operator
3636
urls:
3737
- https://oracle.github.io/weblogic-kubernetes-operator/charts/weblogic-operator-2.0.1.tgz
3838
version: 2.0.1
39-
generated: 2019-06-21T17:07:47.24317-04:00
39+
generated: "2019-07-17T10:01:27.775905-04:00"
45 Bytes
Binary file not shown.

docs/domains/Domain.json

Lines changed: 19 additions & 6 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+
"istio": {
253+
"description": "Istio service mesh integration configuration.",
254+
"$ref": "#/definitions/Istio"
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",
@@ -298,18 +302,18 @@
298302
"description": "If true (the default), the server .out file will be included in the pod\u0027s stdout.",
299303
"type": "boolean"
300304
},
301-
"clusters": {
302-
"description": "Configuration for the clusters.",
305+
"managedServers": {
306+
"description": "Configuration for individual Managed Servers.",
303307
"type": "array",
304308
"items": {
305-
"$ref": "#/definitions/Cluster"
309+
"$ref": "#/definitions/ManagedServer"
306310
}
307311
},
308-
"managedServers": {
309-
"description": "Configuration for individual Managed Servers.",
312+
"clusters": {
313+
"description": "Configuration for the clusters.",
310314
"type": "array",
311315
"items": {
312-
"$ref": "#/definitions/ManagedServer"
316+
"$ref": "#/definitions/Cluster"
313317
}
314318
}
315319
}
@@ -358,6 +362,15 @@
358362
}
359363
}
360364
},
365+
"Istio": {
366+
"type": "object",
367+
"properties": {
368+
"istioEnabled": {
369+
"description": "True, if this domain is deployed under an Istio service mesh. Defaults to true. Not required.",
370+
"type": "boolean"
371+
}
372+
}
373+
},
361374
"KubernetesResource": {
362375
"type": "object",
363376
"properties": {

docs/domains/Domain.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ DomainSpec is a description of a domain.
2727
| `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. |
2828
| `imagePullSecrets` | array of [Local Object Reference](k8s1.13.5.md#local-object-reference) | A list of image pull secrets for the WebLogic Docker image. |
2929
| `includeServerOutInPodLog` | Boolean | If true (the default), the server .out file will be included in the pod's stdout. |
30+
| `istio` | [Istio](#istio) | Istio service mesh integration configuration. |
3031
| `logHome` | string | The in-pod name of the directory in which to store the domain, node manager, server logs, and server *.out files |
3132
| `logHomeEnabled` | Boolean | Specified whether the log home folder is enabled. Not required. Defaults to true if domainHomeInImage is false. Defaults to false if domainHomeInImage is true. |
3233
| `managedServers` | array of [Managed Server](#managed-server) | Configuration for individual Managed Servers. |
@@ -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+
### Istio
86+
87+
| Name | Type | Description |
88+
| --- | --- | --- |
89+
| `istioEnabled` | Boolean | True, if this domain is deployed under an Istio service mesh. Defaults to true. Not required. |
90+
8491
### Managed Server
8592

8693
ManagedServer represents the operator configuration for a single Managed Server.

docs/domains/index.html

Lines changed: 19 additions & 6 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+
"istio": {
1173+
"description": "Istio service mesh integration configuration.",
1174+
"$ref": "#/definitions/Istio"
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",
@@ -1218,18 +1222,18 @@
12181222
"description": "If true (the default), the server .out file will be included in the pod\u0027s stdout.",
12191223
"type": "boolean"
12201224
},
1221-
"clusters": {
1222-
"description": "Configuration for the clusters.",
1225+
"managedServers": {
1226+
"description": "Configuration for individual Managed Servers.",
12231227
"type": "array",
12241228
"items": {
1225-
"$ref": "#/definitions/Cluster"
1229+
"$ref": "#/definitions/ManagedServer"
12261230
}
12271231
},
1228-
"managedServers": {
1229-
"description": "Configuration for individual Managed Servers.",
1232+
"clusters": {
1233+
"description": "Configuration for the clusters.",
12301234
"type": "array",
12311235
"items": {
1232-
"$ref": "#/definitions/ManagedServer"
1236+
"$ref": "#/definitions/Cluster"
12331237
}
12341238
}
12351239
}
@@ -1278,6 +1282,15 @@
12781282
}
12791283
}
12801284
},
1285+
"Istio": {
1286+
"type": "object",
1287+
"properties": {
1288+
"istioEnabled": {
1289+
"description": "True, if this domain is deployed under an Istio service mesh. Defaults to true. Not required.",
1290+
"type": "boolean"
1291+
}
1292+
}
1293+
},
12811294
"KubernetesResource": {
12821295
"type": "object",
12831296
"properties": {

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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,6 @@ elasticSearchHost: "elasticsearch.default.svc.cluster.local"
9696
# elasticSearchPort specifies the port number of where elasticsearch is running.
9797
# This parameter is ignored if 'elkIntegrationEnabled' is false.
9898
elasticSearchPort: 9200
99+
100+
# istioEnabled specifies whether or not it is deployed under Istio.
101+
istioEnabled: false

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ spec:
4747
value: "%JAVA_OPTIONS%"
4848
- name: USER_MEM_ARGS
4949
value: "-XX:+UseContainerSupport -Djava.security.egd=file:/dev/./urandom "
50+
- name: ISTIO_ENABLED
51+
value: "%ISTIO_ENABLED%"
5052
%LOG_HOME_ON_PV_PREFIX%volumes:
5153
%LOG_HOME_ON_PV_PREFIX%- name: weblogic-domain-storage-volume
5254
%LOG_HOME_ON_PV_PREFIX% persistentVolumeClaim:
@@ -75,3 +77,5 @@ spec:
7577
replicas: %INITIAL_MANAGED_SERVER_REPLICAS%
7678
# The number of managed servers to start for unlisted clusters
7779
# replicas: 1
80+
#
81+
istioEnabled: %ISTIO_ENABLED%

kubernetes/samples/scripts/common/utility.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ 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}
371372

372373
# Generate the yaml to create the kubernetes job that will delete the weblogic domain_home folder
373374
echo Generating ${deleteJobOutput}
@@ -423,6 +424,7 @@ function createFiles {
423424
sed -i -e "s:%EXPOSE_T3_CHANNEL_PREFIX%:${exposeAdminT3ChannelPrefix}:g" ${dcrOutput}
424425
sed -i -e "s:%CLUSTER_NAME%:${clusterName}:g" ${dcrOutput}
425426
sed -i -e "s:%INITIAL_MANAGED_SERVER_REPLICAS%:${initialManagedServerReplicas}:g" ${dcrOutput}
427+
sed -i -e "s:%ISTIO_ENABLED%:${istioEnabled}:g" ${dcrOutput}
426428

427429
if [ "${domainHomeInImage}" == "true" ]; then
428430

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/common/create-domain-job.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/bash
22
# Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
3-
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
# Licensed under the Universal Permissive License v 1.0 as shown at
4+
# http://oss.oracle.com/licenses/upl.
45
#
56

67
function exitIfError {

0 commit comments

Comments
 (0)