Skip to content

Commit 140a030

Browse files
committed
Merge branch 'develop' of https://github.com/oracle/weblogic-kubernetes-operator into april_cleanup_corrected
2 parents a79d85e + 138319c commit 140a030

Some content is hidden

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

48 files changed

+471
-375
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Please refer to [Shutting down a domain](site/shutdown-domain.md) for informatio
161161

162162
## Load balancing with an Ingress controller or a web server
163163

164-
You can choose a load balancer provider for your WebLogic domains running in a Kubernetes cluster. Please refer to Load balancing with Voyager Ingress Controller, [Load balancing with Traefik Ingress Controller](site/traefik.md), and [Load balancing with Apache Web Server](site/apache.md) for information about the current capabilities and setup instructions for each of the supported load balancers.
164+
You can choose a load balancer provider for your WebLogic domains running in a Kubernetes cluster. Please refer to Load balancing with Voyager Ingress Controller, [Load balancing with Traefik Ingress Controller](site/traefik.md), and [Load balancing with Apache HTTP Server](site/apache.md) for information about the current capabilities and setup instructions for each of the supported load balancers.
165165

166166

167167
[comment]: # (Exporting operator logs to ELK. The operator provides an option to export its log files to the ELK stack. Please refer to [ELK integration]site/elk.md for information about this capability.)

kubernetes/create-weblogic-domain-inputs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# The version of this inputs file. Do not modify.
5+
version: create-weblogic-domain-inputs-v1
6+
47
# Port number for admin server
58
adminPort: 7001
69

kubernetes/create-weblogic-operator-inputs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Copyright 2017, 2018 Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# The version of this inputs file. Do not modify.
5+
version: create-weblogic-operator-inputs-v1
6+
47
# The name of the service account that the operator will use to
58
# make requests to the Kubernetes API server.
69
# The name must be lowercase

kubernetes/internal/create-weblogic-domain-job-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
name: %DOMAIN_UID%-create-weblogic-domain-job-cm
77
namespace: %NAMESPACE%
88
labels:
9+
weblogic.resourceVersion: domain-v1
910
weblogic.domainUID: %DOMAIN_UID%
1011
weblogic.domainName: %DOMAIN_NAME%
1112
data:
@@ -266,6 +267,7 @@ spec:
266267
template:
267268
metadata:
268269
labels:
270+
weblogic.resourceVersion: domain-v1
269271
weblogic.domainUID: %DOMAIN_UID%
270272
weblogic.domainName: %DOMAIN_NAME%
271273
app: %DOMAIN_UID%-create-weblogic-domain-job

kubernetes/internal/create-weblogic-domain.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,16 @@ function initAndValidateOutputDir {
107107
domain-custom-resource.yaml
108108
}
109109

110+
#
111+
# Function to validate the version of the inputs file
112+
#
113+
function validateVersion {
114+
local requiredVersion='create-weblogic-domain-inputs-v1'
115+
if [ "${version}" != "${requiredVersion}" ]; then
116+
validationError "Invalid version: \"${version}\". Must be ${requiredVersion}."
117+
fi
118+
}
119+
110120
#
111121
# Function to ensure the domain uid is lowercase
112122
#
@@ -376,7 +386,8 @@ function initialize {
376386
weblogicCredentialsSecretName \
377387
namespace \
378388
javaOptions \
379-
t3PublicAddress
389+
t3PublicAddress \
390+
version
380391

381392
validateIntegerInputParamsSpecified \
382393
adminPort \
@@ -393,6 +404,7 @@ function initialize {
393404
exposeAdminT3Channel \
394405
exposeAdminNodePort
395406

407+
validateVersion
396408
validateDomainUid
397409
validateNamespace
398410
validateClusterName

kubernetes/internal/create-weblogic-operator.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ function initialize {
117117
# Parse the common inputs file
118118
parseCommonInputs
119119

120-
validateInputParamsSpecified serviceAccount namespace targetNamespaces weblogicOperatorImage
120+
validateInputParamsSpecified version serviceAccount namespace targetNamespaces weblogicOperatorImage
121121

122122
validateBooleanInputParamsSpecified elkIntegrationEnabled
123123

124+
validateVersion
125+
124126
validateServiceAccount
125127

126128
validateNamespace
@@ -203,6 +205,16 @@ function validateImagePullPolicy {
203205
fi
204206
}
205207

208+
#
209+
# Function to validate the version of the inputs file
210+
#
211+
function validateVersion {
212+
local requiredVersion='create-weblogic-operator-inputs-v1'
213+
if [ "${version}" != "${requiredVersion}" ]; then
214+
validationError "Invalid version: \"${version}\". Must be ${requiredVersion}."
215+
fi
216+
}
217+
206218
#
207219
# Function to validate the service account is lowercase
208220
#

kubernetes/internal/domain-custom-resource-template.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ metadata:
99
name: %DOMAIN_UID%
1010
namespace: %NAMESPACE%
1111
labels:
12+
weblogic.resourceVersion: domain-v1
1213
weblogic.domainUID: %DOMAIN_UID%
1314
weblogic.domainName: %DOMAIN_NAME%
1415
spec:

kubernetes/internal/generate-security-policy.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ kind: Namespace
6767
metadata:
6868
name: ${NAMESPACE}
6969
labels:
70+
weblogic.resourceVersion: operator-v1
7071
weblogic.operatorName: ${NAMESPACE}
7172
---
7273
#
@@ -78,6 +79,7 @@ metadata:
7879
namespace: ${NAMESPACE}
7980
name: ${ACCOUNT_NAME}
8081
labels:
82+
weblogic.resourceVersion: operator-v1
8183
weblogic.operatorName: ${NAMESPACE}
8284
---
8385
EOF
@@ -91,6 +93,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
9193
metadata:
9294
name: weblogic-operator-cluster-role
9395
labels:
96+
weblogic.resourceVersion: operator-v1
9497
weblogic.operatorName: ${NAMESPACE}
9598
rules:
9699
- apiGroups: [""]
@@ -123,6 +126,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
123126
metadata:
124127
name: weblogic-operator-cluster-role-nonresource
125128
labels:
129+
weblogic.resourceVersion: operator-v1
126130
weblogic.operatorName: ${NAMESPACE}
127131
rules:
128132
- nonResourceURLs: ["/version/*"]
@@ -136,6 +140,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
136140
metadata:
137141
name: ${NAMESPACE}-operator-rolebinding
138142
labels:
143+
weblogic.resourceVersion: operator-v1
139144
weblogic.operatorName: ${NAMESPACE}
140145
subjects:
141146
- kind: ServiceAccount
@@ -152,6 +157,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
152157
metadata:
153158
name: ${NAMESPACE}-operator-rolebinding-nonresource
154159
labels:
160+
weblogic.resourceVersion: operator-v1
155161
weblogic.operatorName: ${NAMESPACE}
156162
subjects:
157163
- kind: ServiceAccount
@@ -168,6 +174,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
168174
metadata:
169175
name: ${NAMESPACE}-operator-rolebinding-discovery
170176
labels:
177+
weblogic.resourceVersion: operator-v1
171178
weblogic.operatorName: ${NAMESPACE}
172179
subjects:
173180
- kind: ServiceAccount
@@ -184,6 +191,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
184191
metadata:
185192
name: ${NAMESPACE}-operator-rolebinding-auth-delegator
186193
labels:
194+
weblogic.resourceVersion: operator-v1
187195
weblogic.operatorName: ${NAMESPACE}
188196
subjects:
189197
- kind: ServiceAccount
@@ -203,6 +211,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
203211
metadata:
204212
name: weblogic-operator-namespace-role
205213
labels:
214+
weblogic.resourceVersion: operator-v1
206215
weblogic.operatorName: ${NAMESPACE}
207216
rules:
208217
- apiGroups: [""]
@@ -245,6 +254,7 @@ metadata:
245254
name: weblogic-operator-rolebinding
246255
namespace: ${i}
247256
labels:
257+
weblogic.resourceVersion: operator-v1
248258
weblogic.operatorName: ${NAMESPACE}
249259
subjects:
250260
- kind: ServiceAccount

kubernetes/internal/voyager-ingress-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ metadata:
44
name: %DOMAIN_UID%-voyager
55
namespace: %NAMESPACE%
66
labels:
7+
weblogic.resourceVersion: voyager-load-balancer-v1
78
weblogic.domainUID: %DOMAIN_UID%
89
weblogic.domainName: %DOMAIN_NAME%
910
annotations:
@@ -27,6 +28,7 @@ metadata:
2728
namespace: %NAMESPACE%
2829
labels:
2930
app: %DOMAIN_UID%-voyager-stats
31+
weblogic.resourceVersion: voyager-load-balancer-v1
3032
weblogic.domainUID: %DOMAIN_UID%
3133
weblogic.domainName: %DOMAIN_NAME%
3234
spec:

kubernetes/internal/weblogic-domain-apache-security-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
44
metadata:
55
name: %DOMAIN_UID%-apache-webtier
66
labels:
7+
weblogic.resourceVersion: apache-load-balancer-v1
78
weblogic.domainUID: %DOMAIN_UID%
89
weblogic.domainName: %DOMAIN_NAME%
910
rules:
@@ -32,6 +33,7 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
3233
metadata:
3334
name: %DOMAIN_UID%-apache-webtier
3435
labels:
36+
weblogic.resourceVersion: apache-load-balancer-v1
3537
weblogic.domainUID: %DOMAIN_UID%
3638
weblogic.domainName: %DOMAIN_NAME%
3739
roleRef:

0 commit comments

Comments
 (0)