Skip to content

Commit b44b86a

Browse files
doxiaomarkxnelson
authored andcommitted
Fix sample input defaults (#624)
* Have explicit default values in the input files Signed-off-by: doxiao <[email protected]> * Update README Signed-off-by: doxiao <[email protected]> * More update to the README Signed-off-by: doxiao <[email protected]> * Update one more property Signed-off-by: doxiao <[email protected]>
1 parent 0753cc3 commit b44b86a

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

kubernetes/samples/scripts/create-weblogic-domain/create-weblogic-credentials.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ function usage {
4242
echo usage: ${script} -u username -p password [-d domainUID] [-n namespace] [-s sercretName] [-h]
4343
echo " -u username, must be specified."
4444
echo " -p password, must be specified."
45-
echo " -n namespace, optional. The value is default if not specified"
46-
echo " -d domainUID, optional. The default value is `domain1`. When specified, the secret will be label with the domainUID unless the given value is an empty string."
47-
echo " -s secretName, optional. When not specified, the secret name will be determined based on the domainUID option"
45+
echo " -d domainUID, optional. The default value is domain1. If specified, the secret will be labeled with the domainUID unless the given value is an empty string."
46+
echo " -n namespace, optional. Use the default namespace if not specified"
47+
echo " -s secretName, optional. If not specified, the secret name will be determined based on the domainUID value"
4848
echo " -h Help"
4949
exit $1
5050
}

kubernetes/samples/scripts/create-weblogic-domain/domain-home-in-image/create-domain-inputs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ productionModeEnabled: true
4242

4343
# Name of the Kubernetes secret for the Admin Server's username and password
4444
# The name must be lowercase.
45-
# The default is <domainUID>-weblogic-credentials.
46-
weblogicCredentialsSecretName:
45+
# If not specified, the value is derived from the domainUID as <domainUID>-weblogic-credentials
46+
weblogicCredentialsSecretName: domain1-weblogic-credentials
4747

4848
# Whether to include server .out to the pod's stdout.
4949
# The default is true.

kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The following parameters can be provided in the inputs file.
7373
| `createDomainFilesDir` | Directory to get all the create domain scripts and supporting files, including the script that is specified by the `createDomainScriptName` property. By default, this directory is set to the relative path `wlst`, and the create script will use the built-in WLST offline scripts in the `wlst` directory to create the WebLogic domain. It can also be set to the relative path `wdt`, and then the built-in WDT scripts will be used instead. An absolute path is also supported to point to an arbitrary directory in the file system. | `wlst` |
7474
| `createDomainScriptsMountPath` | Mount path of the directory where the create domain scripts are located inside the pod. | `/u01/weblogic` |
7575
| `createDomainScriptName` | Script that creates the domain. | `create-domain-job.sh` |
76-
| `domainHome` | Home directory of the WebLogic domain. | `/shared/domains/<domainUID>` |
76+
| `domainHome` | Home directory of the WebLogic domain. If not specified, the value is derived from the `domainUID` as `/shared/domains/<domainUID>`. | `/shared/domains/domain1` |
7777
| `domainPVMountPath` | Mount path of the domain persistent volume. | `/shared` |
7878
| `domainUID` | Unique ID that will be used to identify this particular domain. Used as the name of the generated WebLogic domain as well as the name of the Kubernetes domain resource. This ID must be unique across all domains in a Kubernetes cluster. This ID cannot contain any character that is not valid in a Kubernetes service name. | `domain1` |
7979
| `exposeAdminNodePort` | Boolean indicating if the Administration Server is exposed outside of the Kubernetes cluster. | `false` |
@@ -84,15 +84,16 @@ The following parameters can be provided in the inputs file.
8484
| `includeServerOutInPodLog` | Boolean indicating whether to include server .out to the pod's stdout. | `true` |
8585
| `initialManagedServerReplicas` | Number of Managed Servers to initially start for the domain. | `2` |
8686
| `javaOptions` | Java options for starting the Administration and Managed Servers. A Java option can have references to one or more of the following pre-defined variables to obtain WebLogic domain information: `$(DOMAIN_NAME)`, `$(DOMAIN_HOME)`, `$(ADMIN_NAME)`, `$(ADMIN_PORT)`, and `$(SERVER_NAME)`. | `-Dweblogic.StdoutDebugEnabled=false` |
87-
| `logHome` | The in-pod name of the directory to store the domain, node manager, server logs, and server .out files in. | `/shared/logs/<domainUID>` |
87+
| `logHome` | The in-pod name of the directory to store the domain, node manager, server logs, and server .out files in. If not specified, the value is derived from the `domainUID` as `/shared/logs/<domainUID>`. | `/shared/logs/domain1` |
8888
| `managedServerNameBase` | Base string used to generate Managed Server names. | `managed-server` |
8989
| `managedServerPort` | Port number for each Managed Server. | `8001` |
9090
| `namespace` | Kubernetes namespace in which to create the domain. | `default` |
91+
| `persistentVolumeClaimName` | Name of the persistent volume claim. If not specified, the value is derived from the `domainUID` as `<domainUID>-weblogic-sample-pvc` | `domain1-weblogic-sample-pvc` |
9192
| `productionModeEnabled` | Boolean indicating if production mode is enabled for the domain. | `true` |
9293
| `serverStartPolicy` | Determines which WebLogic Servers will be started up. Legal values are `NEVER`, `ALWAYS`, `IF_NEEDED`, `ADMIN_ONLY`. | `IF_NEEDED` |
9394
| `t3ChannelPort` | Port for the T3 channel of the NetworkAccessPoint. | `30012` |
9495
| `t3PublicAddress` | Public address for the T3 channel. | `kubernetes` |
95-
| `weblogicCredentialsSecretName` | Name of the Kubernetes secret for the Administration Server's username and password. | `domain1-weblogic-credentials` |
96+
| `weblogicCredentialsSecretName` | Name of the Kubernetes secret for the Administration Server's username and password. If not specified, the value is derived from the `domainUID` as `<domainUID>-weblogic-credentials`. | `domain1-weblogic-credentials` |
9697
| `weblogicImagePullSecretName` | Name of the Kubernetes secret for the Docker Store, used to pull the WebLogic Server image. | `docker-store-secret` |
9798

9899
Note that the names of the Kubernetes resources in the generated YAML files may be formed with the value of some of the properties specified in the `create-inputs.yaml` file. Those properties include the `adminServerName`, `clusterName` and `managedServerNameBase`. If those values contain any characters that are invalid in a Kubernetes service name, those characters are converted to valid values in the generated YAML files. For example, an uppercase letter is converted to a lowercase letter and an underscore `("_")` is converted to a hyphen `("-")`.

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ adminServerName: admin-server
1515
domainUID: domain1
1616

1717
# Home of the WebLogic domain
18-
# The default is /shared/domains/<domainUID>
19-
domainHome:
18+
# If not specified, the value is derived from the domainUID as /shared/domains/<domainUID>
19+
domainHome: /shared/domains/domain1
2020

2121
# Type of WebLogic Cluster
2222
# Legal values are "CONFIGURED" or "DYNAMIC"
@@ -57,17 +57,17 @@ productionModeEnabled: true
5757

5858
# Name of the Kubernetes secret for the Admin Server's username and password
5959
# The name must be lowercase.
60-
# The default is <domainUID>-weblogic-credentials.
61-
weblogicCredentialsSecretName:
60+
# If not specified, the value is derived from the domainUID as <domainUID>-weblogic-credentials
61+
weblogicCredentialsSecretName: domain1-weblogic-credentials
6262

6363
# Whether to include server .out to the pod's stdout.
6464
# The default is true.
6565
includeServerOutInPodLog: true
6666

6767
# The in-pod name of the directory to store the domain, node manager, server logs, and server .out
6868
# files in.
69-
# The default is /shared/logs/<domainUID>/.
70-
logHome:
69+
# If not specified, the value is derived from the domainUID as /shared/logs/<domainUID>
70+
logHome: /shared/logs/domain1
7171

7272
# Port for the T3Channel of the NetworkAccessPoint
7373
t3ChannelPort: 30012
@@ -94,8 +94,8 @@ namespace: default
9494
javaOptions: -Dweblogic.StdoutDebugEnabled=false
9595

9696
# Name of the persistent volume claim
97-
# The default is <domainUID>-weblogic-sample-pvc
98-
persistentVolumeClaimName:
97+
# If not specified, the value is derived from the domainUID as <domainUID>-weblogic-sample-pvc
98+
persistentVolumeClaimName: domain1-weblogic-sample-pvc
9999

100100
# Mount path of the domain persistent volume.
101101
domainPVMountPath: /shared

0 commit comments

Comments
 (0)