Skip to content

Commit a6cb12f

Browse files
committed
resolve merge conflicts
2 parents 407db05 + 809206f commit a6cb12f

File tree

88 files changed

+917
-1570
lines changed

Some content is hidden

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

88 files changed

+917
-1570
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Before using the operator, you might want to read the [design philosophy](site/d
4545

4646
* Kubernetes 1.10.11+, 1.11.5+, and 1.12.3+ (check with `kubectl version`).
4747
* Flannel networking v0.9.1-amd64 (check with `docker images | grep flannel`)
48-
* Docker 17.03.1.ce (check with `docker version`)
48+
* Docker 18.03.1.ce (check with `docker version`)
4949
* Oracle WebLogic Server 12.2.1.3.0
5050

5151
## Set up your Kubernetes cluster

integration-tests/src/test/java/oracle/kubernetes/operator/utils/Operator.java

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -209,30 +209,7 @@ private void callHelmInstall() throws Exception {
209209
}
210210

211211
private void reportHelmInstallFailure(String cmd, ExecResult result) throws Exception {
212-
String cause = getExecFailure(cmd, result);
213-
if (result.stderr().contains("Error: Job failed: BackoffLimitExceeded")) {
214-
// The operator helm chart pre-install hook probably failed.
215-
// This is probably because there is a problem with the values passed in,
216-
// for example a listed domain namespace does not exist.
217-
// Fetch the pre-install hook's results and return it too.
218-
String hookResults = getOperatorHelmChartHookResults("pre-install");
219-
cause = cause + "\n pre-install-hook returned\n" + hookResults;
220-
}
221-
throw new RuntimeException(cause);
222-
}
223-
224-
private String getOperatorHelmChartHookResults(String hookType) throws Exception {
225-
String cmd =
226-
"kubectl logs job/"
227-
+ operatorMap.get("releaseName")
228-
+ "-weblogic-operator-"
229-
+ hookType
230-
+ "-hook -n kube-system";
231-
ExecResult result = ExecCommand.exec(cmd);
232-
if (result.exitValue() != 0) {
233-
return getExecFailure(cmd, result);
234-
}
235-
return result.stdout();
212+
throw new RuntimeException(getExecFailure(cmd, result));
236213
}
237214

238215
private String getExecFailure(String cmd, ExecResult result) throws Exception {

kubernetes/charts/weblogic-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
name: weblogic-operator
55
version: 2.0
6-
description: Helm package for creation of the Weblogic operator.
6+
description: Helm chart for configuring the WebLogic operator.

kubernetes/charts/weblogic-operator/templates/_operator-verification-hook.tpl

Lines changed: 0 additions & 45 deletions
This file was deleted.

kubernetes/charts/weblogic-operator/templates/_validate-inputs.tpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
{{- $ignore := include "utils.verifyInteger" (list $scope "elasticSearchPort") -}}
3434
{{- end -}}
3535
{{- end -}}
36-
{{- $ignore := include "utils.verifyString" (list $scope "tillerNamespace") -}}
37-
{{- $ignore := include "utils.verifyString" (list $scope "tillerServiceAccount") -}}
3836
{{- $ignore := include "utils.verifyOptionalBoolean" (list $scope "mockWLS") -}}
3937
{{- $ignore:= include "utils.endValidation" $scope -}}
40-
{{- include "operator.operatorVerificationHook" (list $scope "pre-upgrade") }}
41-
{{- include "operator.operatorVerificationHook" (list $scope "pre-install") }}
4238
{{- end -}}
Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,39 @@
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-
# serviceAccount specifies the name of the service account that the operator will use to
5-
# make requests to the Kubernetes API server.
6-
# The name must be lowercase.
4+
# serviceAccount specifies the name of the service account in the operator's namespace that the
5+
# operator will use to make requests to the Kubernetes API server.
6+
# The customer is responsible for creating the service account.
7+
# If not specified, the the operator will use the operator's namespace's 'default' service account.
78
serviceAccount: "default"
89

9-
# domainNamespaces specifies list of WebLogic Domain namespaces which the operator manages
10-
# The names must be lowercase.
10+
# domainNamespaces specifies list of WebLogic Domain namespaces which the operator manages.
1111
# The customer is responsible for creating these namespaces.
12+
# If not specified, then the operator will manage WebLogic domains in the Kubernetes 'default' namespace.
1213
#
1314
# Example : In the configuration below, the helm installation will manage namespace1 and namespace2.
1415
#
1516
# domainNamespaces:
16-
# - namespace1
17-
# - namespace2
18-
domainNamespaces: [ "default" ]
17+
# - "namespace1"
18+
# - "namespace2"
19+
domainNamespaces:
20+
- "default"
1921

2022
# image specifies the docker image containing the operator code.
21-
image: "weblogic-kubernetes-operator:1.1"
23+
image: "weblogic-kubernetes-operator:2.0"
2224

2325
# imagePullPolicy specifies the image pull policy for the operator docker image.
2426
imagePullPolicy: "IfNotPresent"
2527

2628
# imagePullSecrets contains an optional list of Kubernetes secrets, in the operator's namepace,
2729
# that are needed to access the registry containing the operator Docker image.
30+
# The customer is responsible for creating the secret.
2831
# If no secrets are required, then omit this property.
2932
#
3033
# Example : a secret is needed, and has been stored in 'my-operator-secret'
3134
#
3235
# imagePullSecrets:
33-
# - name: my-operator-secret
36+
# - name: "my-operator-secret"
3437
#
3538
# imagePullSecrets:
3639
# - name:
@@ -39,7 +42,7 @@ imagePullPolicy: "IfNotPresent"
3942
# outside of the Kubernetes cluster on the port specified by the 'externalRestHttpsPort'
4043
# property.
4144
#
42-
# If set to true, then the customer provide the SSL certificate and private key for
45+
# If set to true, then the customer must provide the SSL certificate and private key for
4346
# the operator's external REST intervace by specifying the 'externalOperatorCert' and
4447
# 'externalOperatorKey' properties.
4548
externalRestEnabled: false
@@ -49,20 +52,20 @@ externalRestEnabled: false
4952
# Otherwise, it is ignored.
5053
externalRestHttpsPort: 31001
5154

52-
# The customer supplied certificate to use for the external operator REST
53-
# https interface. The value must be a string containing a base64 encoded PEM certificate.
55+
# The customer supplied certificate to use for the external operator REST https interface.
56+
# The value must be a string containing a base64 encoded PEM certificate.
5457
# This parameter is required if 'externalRestEnabled' is true.
5558
# Otherwise, it is ignored.
5659
#externalOperatorCert:
5760

58-
# The customer supplied private key to use for the external operator REST
59-
# https interface. The value must be a string containing a base64 encoded PEM key.
61+
# The customer supplied private key to use for the external operator REST https interface.
62+
# The value must be a string containing a base64 encoded PEM key.
6063
# This parameter is required if 'externalRestEnabled' is true.
6164
# Otherwise, it is ignored.
6265
#externalOperatorKey:
6366

64-
# remoteDebugNodePortEnabled specifies whether or not the operator will start a Java remote debug server on the
65-
# provided port and suspend execution until a remote debugger has attached.
67+
# remoteDebugNodePortEnabled specifies whether or not the operator will start a Java remote debug server
68+
# on the provided port and suspend execution until a remote debugger has attached.
6669
# The 'internalDebugHttpPort' property controls the port number inside the Kubernetes
6770
# cluster and the 'externalDebugHttpPort' property controls the port number outside
6871
# the Kubernetes cluster.
@@ -87,18 +90,14 @@ javaLoggingLevel: "INFO"
8790
# elkIntegrationEnabled specifies whether or not ELK integration is enabled.
8891
elkIntegrationEnabled: false
8992

90-
# logStashImage specifies the docker image containing logstash
91-
# TBD - should the logstash image pull policy and image pull secrets be configurable?
93+
# logStashImage specifies the docker image containing logstash.
94+
# This parameter is ignored if 'elkIntegrationEnabled' is false.
9295
logStashImage: "logstash:5"
9396

94-
# elasticSearchHost specifies the hostname of where elasticsearch is running
97+
# elasticSearchHost specifies the hostname of where elasticsearch is running.
98+
# This parameter is ignored if 'elkIntegrationEnabled' is false.
9599
elasticSearchHost: "elasticsearch.default.svc.cluster.local"
96100

97-
# elasticSearchPort specifies the port number of where elasticsearch is running
101+
# elasticSearchPort specifies the port number of where elasticsearch is running.
102+
# This parameter is ignored if 'elkIntegrationEnabled' is false.
98103
elasticSearchPort: 9200
99-
100-
# tillerNamespace is the name of the namespace that tiller is configured to use.
101-
tillerNamespace: "kube-system"
102-
103-
# tillerServiceAccount is the name of the service account that tiller is configured to use.
104-
tillerServiceAccount: "default"

kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/create-pv-pvc-inputs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ weblogicDomainStorageType: HOST_PATH
2626

2727
# Physical path of the persistent storage.
2828
# The following line must be uncomment and customized:
29-
weblogicDomainStoragePath: /scratch/k8s_dir
29+
#weblogicDomainStoragePath: /scratch/k8s_dir
3030

3131
# Reclaim policy of the persistent storage
3232
# The valid values are: 'Retain', 'Delete', and 'Recycle'

0 commit comments

Comments
 (0)