Skip to content

Commit e6ea465

Browse files
authored
Oracle SOA Suite and Webcenter Sites release 23.2.2 - scripts and documentation updates (#168)
1 parent 8a3ec80 commit e6ea465

File tree

612 files changed

+258037
-161
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

612 files changed

+258037
-161
lines changed

OracleSOASuite/kubernetes/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The WebLogic Kubernetes operator (the “operator”) supports deployment of Ora
77
* `soaosb`: Deploys a domain with SOA, Oracle Enterprise Scheduler (ESS), and Oracle Service Bus
88

99
***
10-
The current supported production release is [23.1.2](https://github.com/oracle/fmw-kubernetes/releases).
10+
The current supported production release is [23.2.2](https://github.com/oracle/fmw-kubernetes/releases).
1111
***
1212

1313
In this release, Oracle SOA Suite domains are supported using the “domain on a persistent volume”

OracleSOASuite/kubernetes/charts/traefik/values.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33
#
44
image:
5-
name: traefik
6-
tag: 2.6.0
5+
name: traefik
76
pullPolicy: IfNotPresent
87
ingressRoute:
98
dashboard:
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
apiVersion: v1
55
name: weblogic-operator
66
description: Helm chart for configuring the WebLogic operator.
77

88
type: application
9-
version: 4.0.4
10-
appVersion: 4.0.4
9+
version: 4.0.6
10+
appVersion: 4.0.6

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

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
{{- define "operator.operatorDeployment" }}
@@ -34,9 +34,10 @@ spec:
3434
{{- end }}
3535
spec:
3636
serviceAccountName: {{ .serviceAccount | quote }}
37-
{{- if .runAsUser }}
37+
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
3838
securityContext:
39-
runAsUser: {{ .runAsUser }}
39+
seccompProfile:
40+
type: RuntimeDefault
4041
{{- end }}
4142
{{- with .nodeSelector }}
4243
nodeSelector:
@@ -74,12 +75,16 @@ spec:
7475
fieldPath: "metadata.uid"
7576
- name: "OPERATOR_VERBOSE"
7677
value: "false"
77-
- name: "JAVA_LOGGING_LEVEL"
78-
value: {{ .javaLoggingLevel | quote }}
7978
{{- if .kubernetesPlatform }}
8079
- name: "KUBERNETES_PLATFORM"
8180
value: {{ .kubernetesPlatform | quote }}
8281
{{- end }}
82+
{{- if and (hasKey . "enableRest") .enableRest }}
83+
- name: "ENABLE_REST_ENDPOINT"
84+
value: "true"
85+
{{- end }}
86+
- name: "JAVA_LOGGING_LEVEL"
87+
value: {{ .javaLoggingLevel | quote }}
8388
- name: "JAVA_LOGGING_MAXSIZE"
8489
value: {{ .javaLoggingFileSizeLimit | default 20000000 | quote }}
8590
- name: "JAVA_LOGGING_COUNT"
@@ -109,15 +114,15 @@ spec:
109114
{{- if .memoryLimits}}
110115
memory: {{ .memoryLimits }}
111116
{{- end }}
112-
{{- if (eq ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
113117
securityContext:
118+
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
119+
runAsUser: {{ .runAsUser | default 1000 }}
120+
{{- end }}
121+
runAsNonRoot: true
122+
privileged: false
114123
allowPrivilegeEscalation: false
115124
capabilities:
116125
drop: ["ALL"]
117-
runAsNonRoot: true
118-
seccompProfile:
119-
type: RuntimeDefault
120-
{{- end }}
121126
volumeMounts:
122127
- name: "weblogic-operator-cm-volume"
123128
mountPath: "/deployment/config"
@@ -259,17 +264,18 @@ spec:
259264
{{- end }}
260265
spec:
261266
serviceAccountName: {{ .serviceAccount | quote }}
262-
{{- if .runAsUser }}
267+
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
263268
securityContext:
264-
runAsUser: {{ .runAsUser }}
269+
seccompProfile:
270+
type: RuntimeDefault
265271
{{- end }}
266272
{{- with .nodeSelector }}
267273
nodeSelector:
268-
{{- toYaml . | nindent 8 }}
274+
{{- toYaml . | nindent 12 }}
269275
{{- end }}
270276
{{- with .affinity }}
271277
affinity:
272-
{{- toYaml . | nindent 8 }}
278+
{{- toYaml . | nindent 12 }}
273279
{{- end }}
274280
containers:
275281
- name: "weblogic-operator-webhook"
@@ -320,15 +326,15 @@ spec:
320326
{{- if .memoryLimits}}
321327
memory: {{ .memoryLimits }}
322328
{{- end }}
323-
{{- if (eq ( .kubernetesPlatform | default "Generic") "OpenShift") }}
324329
securityContext:
330+
{{- if (ne ( .kubernetesPlatform | default "Generic" ) "OpenShift") }}
331+
runAsUser: {{ .runAsUser | default 1000 }}
332+
{{- end }}
333+
runAsNonRoot: true
334+
privileged: false
325335
allowPrivilegeEscalation: false
326336
capabilities:
327-
drop: ["ALL"]
328-
runAsNonRoot: true
329-
seccompProfile:
330-
type: RuntimeDefault
331-
{{- end }}
337+
drop: ["ALL"]
332338
volumeMounts:
333339
- name: "weblogic-webhook-cm-volume"
334340
mountPath: "/deployment/config"

OracleSOASuite/kubernetes/charts/weblogic-operator/templates/_operator-external-svc.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
{{- define "operator.operatorExternalService" }}
5-
{{- if or .externalRestEnabled .remoteDebugNodePortEnabled }}
5+
{{- if or (and (hasKey . "enableRest") .enableRest .externalRestEnabled) .remoteDebugNodePortEnabled }}
66
---
77
apiVersion: "v1"
88
kind: "Service"

OracleSOASuite/kubernetes/charts/weblogic-operator/templates/_operator-internal-svc.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
{{- define "operator.operatorInternalService" }}
5+
{{- if and (hasKey . "enableRest") .enableRest }}
56
---
67
apiVersion: "v1"
78
kind: "Service"
@@ -21,6 +22,7 @@ spec:
2122
- port: 8083
2223
name: "metrics"
2324
appProtocol: http
25+
{{- end }}
2426
---
2527
{{- if not .operatorOnly }}
2628
apiVersion: "v1"

OracleSOASuite/kubernetes/charts/weblogic-operator/values.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
# serviceAccount specifies the name of the ServiceAccount in the operator's namespace that the
@@ -54,7 +54,7 @@ domainNamespaceSelectionStrategy: LabelSelector
5454
enableClusterRoleBinding: true
5555

5656
# image specifies the container image containing the operator.
57-
image: "ghcr.io/oracle/weblogic-kubernetes-operator:4.0.4"
57+
image: "ghcr.io/oracle/weblogic-kubernetes-operator:4.0.6"
5858

5959
# imagePullPolicy specifies the image pull policy for the operator's container image.
6060
imagePullPolicy: IfNotPresent
@@ -69,9 +69,13 @@ imagePullPolicy: IfNotPresent
6969
# imagePullSecrets:
7070
# - name: "my-operator-secret"
7171

72+
# enableRest specifies whether the operator's REST interface is enabled. Beginning with version 4.0.5,
73+
# the REST interface will be disabled by default.
74+
# enableRest: true
75+
7276
# externalRestEnabled specifies whether the operator's REST interface is exposed
7377
# outside the Kubernetes cluster on the port specified by the 'externalRestHttpsPort'
74-
# property.
78+
# property. Ignored if 'enableRest' is not true.
7579
#
7680
# If set to true, then the customer must provide the SSL certificate and private key for
7781
# the operator's external REST interface by specifying the 'externalOperatorCert' and

OracleSOASuite/kubernetes/common/utility.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
2+
# Copyright (c) 2018, 2023, Oracle and/or its affiliates.
33
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44

55
#
@@ -855,7 +855,7 @@ checkPodDelete() {
855855
checkPodState() {
856856

857857
status="NotReady"
858-
max=60
858+
max=120
859859
count=1
860860

861861
pod=$1
@@ -880,7 +880,7 @@ checkPodState() {
880880
count=`expr $count + 1`
881881
done
882882
if [ $count -gt $max ] ; then
883-
echo "[ERROR] Unable to start the Pod [$pod] after 300s ";
883+
echo "[ERROR] Unable to start the Pod [$pod] after 600s ";
884884
exit 1
885885
fi
886886

OracleSOASuite/kubernetes/create-soa-domain/domain-home-on-pv/create-domain.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,17 @@ function createDomainHome {
227227
sed -i "0,/ clusterName: ${soaClusterName}/s// clusterName: ${osbClusterName}/" ${dcrOutput}
228228

229229
sed -i -e "/ clusterName:/a ${PRECREATE_SERVICE}" ${dcrOutput}
230-
else
230+
elif [ "${domainType}" = "soa" ]; then
231231
sed -i "0,/ name: ${domainUID}-${soaClusterName}/s// name: ${domainUID}-$(toDNS1123Legal ${soaClusterName})/" ${dcrOutput}
232232
sed -i "0,/- name: ${domainUID}-${soaClusterName}/s//- name: ${domainUID}-$(toDNS1123Legal ${soaClusterName})/" ${dcrOutput}
233233
sed -i -e "/ clusterName:/a ${PRECREATE_SERVICE}" ${dcrOutput}
234-
fi
234+
elif [ "${domainType}" = "osb" ]; then
235+
sed -i "0,/ name: ${domainUID}-${osbClusterName}/s// name: ${domainUID}-$(toDNS1123Legal ${osbClusterName})/" ${dcrOutput}
236+
sed -i "0,/- name: ${domainUID}-${osbClusterName}/s//- name: ${domainUID}-$(toDNS1123Legal ${osbClusterName})/" ${dcrOutput}
237+
sed -i -e "/ clusterName:/a ${PRECREATE_SERVICE}" ${dcrOutput}
238+
else
239+
echo "No Matching ${domainType}"
240+
fi
235241
# set MemoryMetricEnabled=false for SOA and OSB clusters
236242
if [ "${domainType}" = "osb" ]; then
237243
sed -i -e "s/%MemoryMetricEnabled%/-Doracle.sb.tracking.resiliency.MemoryMetricEnabled=false /" ${dcrOutput}
@@ -244,6 +250,8 @@ function createDomainHome {
244250
else
245251
echo "domainType not defined. Setting it to soa by default"
246252
sed -i -e "s:%DOMAIN_TYPE%:soa:g" ${createJobOutput}
253+
sed -i "0,/ name: ${domainUID}-${soaClusterName}/s// name: ${domainUID}-$(toDNS1123Legal ${soaClusterName})/" ${dcrOutput}
254+
sed -i "0,/- name: ${domainUID}-${soaClusterName}/s//- name: ${domainUID}-$(toDNS1123Legal ${soaClusterName})/" ${dcrOutput}
247255
sed -i -e "/ clusterName:/a ${PRECREATE_SERVICE}" ${dcrOutput}
248256
sed -i -e "s/%MemoryMetricEnabled%/-Doracle.soa.tracking.resiliency.MemoryMetricEnabled=false /" ${dcrOutput}
249257
fi

0 commit comments

Comments
 (0)