Skip to content

Commit a9d1f03

Browse files
review, minor edits
1 parent 13774dd commit a9d1f03

File tree

1 file changed

+95
-96
lines changed

1 file changed

+95
-96
lines changed

site/name-changes.md

Lines changed: 95 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
The initial version of the WebLogic Server Kubernetes Operator did not use consistent conventions for many customer visible names.
44

5-
We've recently addressed this by:
6-
* standardizing the names of scripts and input files for creating operators and domains
7-
* standardizing the input parameter names and values
8-
* standardizing the names of the generated YAML files
9-
* requiring that the customer create and specify a directory that the operators' and domains' generated YAML files will be stored in
5+
We addressed this by:
6+
* Standardizing the names of scripts and input files for creating operators and domains
7+
* Standardizing the input parameter names and values
8+
* Standardizing the names of the generated YAML files
9+
* Requiring that the customer create and specify a directory that the operators' and domains' generated YAML files will be stored in
1010

1111
This changes how operators and domains are created, and also changes the generated artifacts for operators and domains.
1212

13-
We're not providing an upgrade tool or backwards compatibility with the previous names. Instead, customers need to use the new script, inputs file and parameter names to recreate their operators and domains.
13+
We're not providing an upgrade tool or backwards compatibility with the previous names. Instead, customers need to use the new script, inputs file, and parameter names to recreate their operators and domains.
1414

1515
This document lists the customer visible naming changes. Also, the WebLogic Server Kubernetes Operator documentation has been updated.
1616

@@ -22,78 +22,78 @@ The following files are used to create the operator and to create and delete dom
2222

2323
| Previous File Name | New File Name |
2424
| --- | --- |
25-
| kubernetes/create-domain-job.sh | kubernetes/create-weblogic-domain.sh |
26-
| kubernetes/create-domain-job-inputs.yaml | kubernetes/create-weblogic-domain-inputs.yaml |
27-
| kubernetes/create-operator-inputs.yaml | kubernetes/create-weblogic-operator-inputs.yaml |
28-
| kubernetes/create-weblogic-operator.sh | same |
29-
| kubernetes/delete-domain.sh | kubernetes/delete-weblogic-operator-resources.sh |
25+
| `kubernetes/create-domain-job.sh` | `kubernetes/create-weblogic-domain.sh` |
26+
| `kubernetes/create-domain-job-inputs.yaml` | `kubernetes/create-weblogic-domain-inputs.yaml` |
27+
| `kubernetes/create-operator-inputs.yaml` | `kubernetes/create-weblogic-operator-inputs.yaml` |
28+
| `kubernetes/create-weblogic-operator.sh` | same |
29+
| `kubernetes/delete-domain.sh` | `kubernetes/delete-weblogic-operator-resources.sh` |
3030

3131
### Generated YAML Files for Operators and Domains
3232

3333
The create scripts generate a number of YAML files that are used to configure the corresponding Kubernetes artifacts for the operator and the domains.
34-
Normally, customers do not use these YAML files. However, customers can look at them. They can also change the operator and domain configuration by editing these files and reapplying them.
34+
Typically, customers do not use these YAML files. However, customers can look at them. They can also change the operator and domain configuration by editing these files and reapplying them.
3535

3636
#### Directory for the Generated YAML Files
3737

38-
Previously, these files were placed in the kubernetes directory (e.g. kubernetes/weblogic-operator.yaml). Now, they are placed in per-operator and per-domain directories (since a Kubernetes cluster can have more than one operator and an operator can manage more than one domain).
38+
Previously, these files were placed in the `kubernetes` directory (for example, `kubernetes/weblogic-operator.yaml`). Now, they are placed in per-operator and per-domain directories (since a Kubernetes cluster can have more than one operator and an operator can manage more than one domain).
3939

40-
The customer must create a directory that will parent the per-operator and per-domain directories, and use the -o option to pass the name of that directory to the create script, for example:
41-
mkdir /scratch/my-user-projects
42-
create-weblogic-operator.sh -o /scratch/my-user-projects
43-
The pathname can either be a full path name, or a relative path name. If it's a relative pathname, then it's relative to the directory of the shell invoking the create script.
40+
The customer must create a directory that will parent the per-operator and per-domain directories, and use the `-o` option to pass the name of that directory to the create script, for example:
41+
`mkdir /scratch/my-user-projects
42+
create-weblogic-operator.sh -o /scratch/my-user-projects`.
43+
The pathname can be either a full path name or a relative path name. If it's a relative pathname, then it's relative to the directory of the shell invoking the create script.
4444

4545
The per-operator directory name is:
46-
<user project dir from -o>/weblogic-operators/<operator namespace from the input YAML file's namespace property>
46+
`<user project dir from -o>/weblogic-operators/<operator namespace from the input YAML file's namespace property>`.
4747

4848
Similarly, the per-domain directory name is:
49-
<user project dir from -o>/weblogic-domains/<domain uid from the input YAML file's domainUid property>
49+
`<user project dir from -o>/weblogic-domains/<domain uid from the input YAML file's domainUid property>`.
5050

5151
#### What If I Mess Up Creating a Domain or Operator And Want To Do It Again?
5252

5353
* Remove the resources that were created for the domain:
54-
* kubernetes/delete-weblogic-domain-resources.sh yourDomainUID
54+
* `kubernetes/delete-weblogic-domain-resources.sh yourDomainUID`
5555
* Remove the resources that were created for the operator:
56-
* kubectl delete -f weblogic-operator.yaml
56+
* `kubectl delete -f weblogic-operator.yaml`
5757
* kubectl delete -f weblogic-operator-security.yaml
58-
* either remove the directory that was generated for that operator / domain, or remove the generated YAML files and the copy of the input file from it
59-
* make whatever changes you need in your inputs file
60-
* re-run the create script
58+
* Either remove the directory that was generated for that operator or domain, or remove the generated YAML files and the copy of the input file from it.
59+
* Make whatever changes you need in your inputs file.
60+
* Re-run the create script.
6161

6262
If you run the create script without cleaning up the previously generated directory, the create script will tell you about the offending files and then exit without creating anything.
6363

6464
#### Location of the Input YAML Files
6565

66-
The create scripts support a -i option for specifying the location of the inputs file. Similar to the -o option, the path can either be a full path name or a relative path name. Relative path names are relative to the directory of the shell invoking the create script.
66+
The create scripts support an `-i` option for specifying the location of the inputs file. Similar to the `-o` option, the path can be either a full path name or a relative path name. Relative path names are relative to the directory of the shell invoking the create script.
6767

68-
If -i is not specified, kubernetes/create-weblogic-operator.sh uses kubernetes/create-weblogic-operator-inputs.yaml.
68+
If `-i` is not specified, `kubernetes/create-weblogic-operator.sh` uses `kubernetes/create-weblogic-operator-inputs.yaml`.
6969

70-
Previously, kubernetes/create-domain-job.sh used kubernetes/create-domain-job-inputs.yaml as the input file if -i was not specified. This behavior has been changed. The customer must select a Kubernetes cluster wide unique id for the domain and set the domainUid property in the inputs file to that value. This means that the customer must always modify the inputs file.
70+
Previously, `kubernetes/create-domain-job.sh` used `kubernetes/create-domain-job-inputs.yaml` as the input file if `-i` was not specified. This behavior has been changed. The customer must select a Kubernetes cluster-wide unique ID for the domain and set the `domainUid` property in the inputs file to that value. This means that the customer must always modify the inputs file.
7171

72-
Also, we do not want the customer to have to change files in the operator's install directory. Because of this, the -i option MUST be specified when calling kubernetes/create-weblogic-operator.sh. The basic flow is:
72+
Also, we do not want the customer to have to change files in the operator's install directory. Because of this, the `-i` option MUST be specified when calling `kubernetes/create-weblogic-operator.sh`. The basic flow is:
7373

74-
* pick a user projects directory, e.g. /scratch/my-user-projects
75-
* mkdir /scratch/my-user-projects
76-
* pick a unique id for the domain, e.g. foo.com
77-
* cp kubernetes/create-weblogic-domain-inputs.yaml my-inputs.yaml
78-
* set the domainUid in my-inputs.yaml to foo.com
79-
* kubernetes/create-weblogic-operator.sh -i my-inputs.yaml -o /scratch/my-user-projects
74+
* Pick a user projects directory, for example, `/scratch/my-user-projects`
75+
* `mkdir /scratch/my-user-projects`
76+
* Pick a unique ID for the domain, for example, `foo.com`
77+
* `cp kubernetes/create-weblogic-domain-inputs.yaml my-inputs.yaml`
78+
* Set the domainUid in `my-inputs.yaml` to `foo.com`
79+
* `kubernetes/create-weblogic-operator.sh -i my-inputs.yaml -o /scratch/my-user-projects`
8080

81-
Note: my-inputs.yaml will be copied to /scratch/my-user-projects/weblogic-domains/foo.com/create-weblogic-domain-inputs.yaml
81+
**Note:** `my-inputs.yaml` will be copied to `/scratch/my-user-projects/weblogic-domains/foo.com/create-weblogic-domain-inputs.yaml`
8282

83-
#### File Names of the Generated YAML File
83+
#### File Names of the Generated YAML Files
8484

8585
The names of several of the generated YAML files have changed.
8686

8787
| Previous File Name | New File Name |
8888
| --- | --- |
89-
| domain-custom-resource.yaml | same |
90-
| domain-job.yaml | create-weblogic-domain-job.yaml |
91-
| persistent-volume.yaml | weblogic-domain-pv.yaml |
92-
| persistent-volume-claim.yaml | weblogic-domain-pvc.yaml |
93-
| rbac.yaml | weblogic-operator-security.yaml |
94-
| traefik-deployment.yaml | weblogic-domain-traefik-${clusterName, lower case}.yaml |
95-
| traefik-rbac.yaml | weblogic-domain-traefik-security-${clusterName, lower case}.yaml |
96-
| weblogic-operator.yaml | same |
89+
| `domain-custom-resource.yaml` | same |
90+
| `domain-job.yaml` | `create-weblogic-domain-job.yaml` |
91+
| `persistent-volume.yaml` | `weblogic-domain-pv.yaml` |
92+
| `persistent-volume-claim.yaml` | `weblogic-domain-pvc.yaml` |
93+
| `rbac.yaml` | `weblogic-operator-security.yaml` |
94+
| `traefik-deployment.yaml` | `weblogic-domain-traefik-${clusterName, lower case}.yaml` |
95+
| `traefik-rbac.yaml` | `weblogic-domain-traefik-security-${clusterName, lower case}.yaml` |
96+
| `weblogic-operator.yaml` | same |
9797

9898
## Input File Contents
9999
Some of the contents of the inputs files have changed:
@@ -108,81 +108,80 @@ Some of the contents of the inputs files have changed:
108108

109109
| Previous Property Name | New Property Name |
110110
| --- | --- |
111-
| image | weblogicOperatorImage |
112-
| imagePullPolicy | weblogicOperatorImagePullPolicy |
113-
| imagePullSecretName | weblogicOperatorImagePullSecretName |
111+
| `image` | `weblogicOperatorImage` |
112+
| `imagePullPolicy` | `weblogicOperatorImagePullPolicy` |
113+
| `imagePullSecretName` | `weblogicOperatorImagePullSecretName` |
114114

115115
#### Property Values
116116

117117
| Previous Property Name | Property Name | Old Property Value | New Property Value |
118118
| --- | --- | --- | --- |
119-
| externalRestOption | externalRestOption | none | NONE |
120-
| externalRestOption | externalRestOption | custom-cert | CUSTOM_CERT |
121-
| externalRestOption | externalRestOption | self-signed-cert | SELF_SIGNED_CERT |
119+
| `externalRestOption` | `externalRestOption` | `none` | `NONE` |
120+
| `externalRestOption` | `externalRestOption` | `custom-cert` | `CUSTOM_CERT` |
121+
| `externalRestOption` | `externalRestOption` | `self-signed-cert` | `SELF_SIGNED_CERT` |
122122

123123
### create-weblogic-domain-inputs.yaml
124124

125125
#### Property Names
126126

127127
| Previous Property Name | New Property Name |
128128
| --- | --- |
129-
| createDomainScript | This property has been removed |
130-
| domainUid | domainUID |
131-
| imagePullSecretName | weblogicImagePullSecretName |
132-
| loadBalancerAdminPort | loadBalancerDashboardPort |
133-
| managedServerCount | configuredManagedServerCount |
134-
| managedServerStartCount | initialManagedServerReplicas |
135-
| nfsServer | weblogicDomainStorageNFSServer |
136-
| persistencePath | weblogicDomainStoragePath |
137-
| persistenceSize | weblogicDomainStorageSize |
138-
| persistenceType | weblogicDomainStorageType |
139-
| persistenceStorageClass | This property has been removed |
140-
| persistenceVolumeClaimName | This property has been removed |
141-
| persistenceVolumeName | This property has been removed |
142-
| secretName | weblogicCredentialsSecretName |
143-
144-
#### Properties that must be customized
129+
| `createDomainScript` | This property has been removed |
130+
| `domainUid` | `domainUID` |
131+
| `imagePullSecretName` | `weblogicImagePullSecretName` |
132+
| `loadBalancerAdminPort` | `loadBalancerDashboardPort` |
133+
| `managedServerCount` | `configuredManagedServerCount` |
134+
| `managedServerStartCount` | `initialManagedServerReplicas` |
135+
| `nfsServer` | `weblogicDomainStorageNFSServer` |
136+
| `persistencePath` | `weblogicDomainStoragePath` |
137+
| `persistenceSize` | `weblogicDomainStorageSize` |
138+
| `persistenceType` | `weblogicDomainStorageType` |
139+
| `persistenceStorageClass` | This property has been removed |
140+
| `persistenceVolumeClaimName` | This property has been removed |
141+
| `persistenceVolumeName` | This property has been removed |
142+
| `secretName` | `weblogicCredentialsSecretName` |
143+
144+
#### Properties That Must be Customized
145145
The following input properties, which used to have default values, now must be uncommented and customized.
146146

147147
| Previous Property Name | New Property Name | Previous Default Value | Notes |
148148
| --- | --- | --- | --- |
149-
| domainUid | domainUID | domain1 | Since the domain UID is supposed to be unique across the Kubernetes cluster, the customer must choose one. |
150-
| persistencePath | weblogicDomainStoragePath | /scratch/k8s_dir/persistentVolume001 | The customer must select a directory for the domain's storage. |
151-
| nfsServer | weblogicDomainStorageNFSServer | nfsServer | If weblogicDomainStorageType is NFS, then the customer must specify the name or IP of the NFS server. |
149+
| `domainUid` | `domainUID` | `domain1` | Because the domain UID is supposed to be unique across the Kubernetes cluster, the customer must choose one. |
150+
| `persistencePath` | `weblogicDomainStoragePath` | `/scratch/k8s_dir/persistentVolume001` | The customer must select a directory for the domain's storage. |
151+
| `nfsServer` | `weblogicDomainStorageNFSServer` | `nfsServer` | If `weblogicDomainStorageType` is NFS, then the customer must specify the name or IP of the NFS server. |
152152

153153
#### Property Values
154154

155155
| Previous Property Name | New Property Name | Old Property Value | New Property Value |
156156
| --- | --- | --- | --- |
157-
| loadBalancer | loadBalancer | none | NONE |
158-
| loadBalancer | loadBalancer | traefik | TRAEFIK |
159-
| persistenceType | weblogicDomainStorageType | hostPath | HOST_PATH |
160-
| persistenceType | weblogicDomainStorageType | nfs | NFS |
157+
| `loadBalancer` | `loadBalancer` | `none` | `NONE` |
158+
| `loadBalancer` | `loadBalancer` | `traefik` | `TRAEFIK` |
159+
| `persistenceType` | `weblogicDomainStorageType` | `hostPath` | `HOST_PATH` |
160+
| `persistenceType` | `weblogicDomainStorageType` | `nfs` | `NFS` |
161161

162162
## Kubernetes Artifact Names
163163

164164
| Artifact Type | Previous Name | New Name |
165165
| --- | --- | --- |
166-
| persistent volume | ${domainUid}-${persistenceVolume} or ${persistenceVolume} | ${domainUID}-weblogic-domain-pv |
167-
| persistent volume claim | ${domainUid}-${persistenceVolumeClaim} or ${persistenceVolumeClaim} | ${domainUID}-weblogic-domain-pvc |
168-
| storage class name | ${domainUid} or ${persistenceStorageClass} | ${domainUID-weblogic-domain-storage-class |
169-
| job | domain-${domainUid}-job | ${domainUID}-create-weblogic-domain-job |
170-
| container | domain-job | create-weblogic-domain-job |
171-
| container | ${d.domainUID}-${d.clusterName, lower case}-traefik | traefik |
172-
| config map | operator-config-map | weblogic-operator-cm |
173-
| config map | ${domainUid}-${clusterName, lower case}-traefik | ${domainUID}-${clusterName, lower case}-traefik-cm |
174-
| config map | domain-${domainUid}-scripts | ${domainUID}-create-weblogic-domain-job-cm |
175-
| config map | weblogic-domain-config-map | weblogic-domain-cm |
176-
| secret | operator-secrets | weblogic-operator-secrets |
177-
| port | rest-https | rest |
178-
| service | external-weblogic-operator-service | external-weblogic-operator-srv |
179-
| service | internal-weblogic-operator-service | internal-weblogic-operator-srv |
180-
| volume & mount | operator-config-volume | weblogic-operator-cm-volume |
181-
| volume & mount | operator-secrets-volume | weblogic-operator-secrets-volume |
182-
| volume & mount | config-map-scripts | create-weblogic-domain-job-cm-volume |
183-
| volume & mount | pv-storage | weblogic-domain-storage-volume |
184-
| volume & mount | secrets | weblogic-credentials-volume |
185-
| volume & mount | scripts | weblogic-domain-cm-volume |
186-
187-
Note: The input properties for controlling the domain's persistent volume, persistent volume claim and storage class names have been removed. These names are now derived from the domain uid.
188-
166+
| persistent volume | `${domainUid}-${persistenceVolume}` or `${persistenceVolume}` | `${domainUID}-weblogic-domain-pv` |
167+
| persistent volume claim | `${domainUid}-${persistenceVolumeClaim}` or `${persistenceVolumeClaim}` | `${domainUID}-weblogic-domain-pvc` |
168+
| storage class name | `${domainUid}` or `${persistenceStorageClass}` | `${domainUID-weblogic-domain-storage-class` |
169+
| job | `domain-${domainUid}-job` | `${domainUID}-create-weblogic-domain-job` |
170+
| container | `domain-job` | `create-weblogic-domain-job` |
171+
| container | `${d.domainUID}-${d.clusterName, lower case}-traefik` | `traefik` |
172+
| config map | `operator-config-map` | `weblogic-operator-cm` |
173+
| config map | `${domainUid}-${clusterName, lower case}-traefik` | `${domainUID}-${clusterName, lower case}-traefik-cm` |
174+
| config map | `domain-${domainUid}-scripts` | `${domainUID}-create-weblogic-domain-job-cm` |
175+
| config map | `weblogic-domain-config-map` | `weblogic-domain-cm` |
176+
| secret | `operator-secrets` | `weblogic-operator-secrets` |
177+
| port | `rest-https` | `rest` |
178+
| service | `external-weblogic-operator-service` | `external-weblogic-operator-srv` |
179+
| service | `internal-weblogic-operator-service` | `internal-weblogic-operator-srv` |
180+
| volume & mount | `operator-config-volume` | `weblogic-operator-cm-volume` |
181+
| volume & mount | `operator-secrets-volume` | `weblogic-operator-secrets-volume` |
182+
| volume & mount | `config-map-scripts` | `create-weblogic-domain-job-cm-volume` |
183+
| volume & mount | `pv-storage` | `weblogic-domain-storage-volume` |
184+
| volume & mount | `secrets` | `weblogic-credentials-volume` |
185+
| volume & mount | `scripts` | `weblogic-domain-cm-volume` |
186+
187+
**Note:** The input properties for controlling the domain's persistent volume, persistent volume claim, and storage class names have been removed. These names are now derived from the domain UID.

0 commit comments

Comments
 (0)