Skip to content

Commit a62e060

Browse files
authored
Review and update descriptions for schema (#1772)
* Review and update descriptions for schema * Correct typos * Review comments * More comments * A couple more, minor changes * A couple more missing periods * Even more review
1 parent 10f8dcf commit a62e060

28 files changed

+1544
-1344
lines changed

docs/domains/Domain.json

Lines changed: 120 additions & 127 deletions
Large diffs are not rendered by default.

docs/domains/Domain.md

Lines changed: 120 additions & 134 deletions
Large diffs are not rendered by default.

docs/domains/index.html

Lines changed: 120 additions & 126 deletions
Large diffs are not rendered by default.

kubernetes/crd/domain-crd.yaml

Lines changed: 478 additions & 391 deletions
Large diffs are not rendered by default.

kubernetes/crd/domain-v1beta1-crd.yaml

Lines changed: 463 additions & 375 deletions
Large diffs are not rendered by default.

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/AdminServer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
import org.apache.commons.lang3.builder.HashCodeBuilder;
1313
import org.apache.commons.lang3.builder.ToStringBuilder;
1414

15-
@Description("AdminServer represents the operator configuration for the Administration Server.")
1615
public class AdminServer extends Server {
1716

1817
@Description(
19-
"Configures which of the Administration Server's WebLogic admin channels should be exposed outside"
20-
+ " the Kubernetes cluster via a node port service.")
18+
"Customization affecting the generation of the Kubernetes Service for the Administration Server. These settings "
19+
+ "can also specify the creation of a second NodePort Service to expose specific channels or network access "
20+
+ "points outside the Kubernetes cluster.")
2121
private AdminService adminService;
2222

2323
/**

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/AdminService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ public class AdminService implements ServiceConfigurator {
2020
@SerializedName("channels")
2121
@Description(
2222
"Specifies which of the Administration Server's WebLogic channels should be exposed outside "
23-
+ "the Kubernetes cluster via a node port service, along with the node port for "
24-
+ "each channel. If not specified, the Administration Server's node port service will "
23+
+ "the Kubernetes cluster via a NodePort Service, along with the port for "
24+
+ "each channel. If not specified, the Administration Server's NodePort Service will "
2525
+ "not be created.")
2626
private final List<Channel> channels = new ArrayList<>();
2727

28-
@Description("Labels to associate with the external channel service.")
28+
@Description("Labels to associate with the Administration Server's Service(s).")
2929
private final Map<String, String> labels = new HashMap<>();
3030

31-
@Description("Annotations to associate with the external channel service.")
31+
@Description("Annotations to associate with the Administration Server's Service(s).")
3232
private final Map<String, String> annotations = new HashMap<>();
3333

3434
/**

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/BaseConfiguration.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@
3535
*/
3636
public abstract class BaseConfiguration {
3737

38-
@Description("Configuration affecting server pods.")
38+
@Description("Customization affecting the generation of Pods for WebLogic Server instances.")
3939
private final ServerPod serverPod = new ServerPod();
4040

4141
@Description(
42-
"Customization affecting ClusterIP Kubernetes services for WebLogic Server instances.")
42+
"Customization affecting the generation of Kubernetes Services for WebLogic Server instances.")
4343
@SerializedName("serverService")
4444
@Expose
4545
private final ServerService serverService = new ServerService();
4646

4747
/** Desired startup state. Legal values are RUNNING or ADMIN. */
4848
@EnumClass(ServerStartState.class)
4949
@Description(
50-
"The state in which the server is to be started. Use ADMIN if server should start "
50+
"The WebLogic runtime state in which the server is to be started. Use ADMIN if the server should start "
5151
+ "in the admin state. Defaults to RUNNING.")
5252
private String serverStartState;
5353

@@ -61,8 +61,9 @@ public abstract class BaseConfiguration {
6161
* @since 2.0
6262
*/
6363
@Description(
64-
"If present, every time this value is updated the operator will restart"
65-
+ " the required servers.")
64+
"Changes to this field cause the operator to restart WebLogic Server instances. More info: "
65+
+ "https://oracle.github.io/weblogic-kubernetes-operator/userguide/managing-domains/"
66+
+ "domain-lifecycle/startup/#restarting-servers.")
6667
private String restartVersion;
6768

6869
/**

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/Channel.java

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,24 @@
1111
import org.apache.commons.lang3.builder.HashCodeBuilder;
1212
import org.apache.commons.lang3.builder.ToStringBuilder;
1313

14-
@Description("Describes a single channel used by the Administration Server.")
1514
public class Channel implements Comparable<Channel> {
1615
@SerializedName("channelName")
1716
@Description(
18-
"Name of channel.\n'default' refers to the Administration Server's default channel (configured "
19-
+ "via the ServerMBean's ListenPort) "
20-
+ "\n'default-secure' refers to the Administration Server's default secure channel "
21-
+ "(configured via the ServerMBean's SSLMBean's ListenPort) "
22-
+ "\n'default-admin' refers to the Administration Server's default administrative channel "
23-
+ "(configured via the DomainMBean's AdministrationPort) "
24-
+ "\nOtherwise, the name is the name of one of the Administration Server's network access points "
25-
+ "(configured via the ServerMBean's NetworkAccessMBeans).")
17+
"Name of the channel. The \"default\" value refers to the Administration Server's default channel, "
18+
+ "which is configured using the ServerMBean's ListenPort. "
19+
+ "The \"default-secure\" value refers to the Administration Server's default secure channel, "
20+
+ "which is configured using the ServerMBean's SSLMBean's ListenPort. "
21+
+ "The \"default-admin\" value refers to the Administration Server's default administrative channel, "
22+
+ "which is configured using the DomainMBean's AdministrationPort. "
23+
+ "Otherwise, provide the name of one of the Administration Server's network access points, "
24+
+ "which is configured using the ServerMBean's NetworkAccessMBeans. The \"default\", \"default-secure\", "
25+
+ "and \"default-admin\" channels may not be specified here when using Istio.")
2626
@Nonnull
2727
private String channelName;
2828

2929
@SerializedName("nodePort")
3030
@Description(
31-
"Specifies the port number used to access the WebLogic channel "
32-
+ "outside of the Kubernetes cluster. "
31+
"Specifies the port number used to access the WebLogic channel outside of the Kubernetes cluster. "
3332
+ "If not specified, defaults to the port defined by the WebLogic channel.")
3433
private Integer nodePort;
3534

operator/src/main/java/oracle/kubernetes/weblogic/domain/model/Cluster.java

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,27 @@
2222
*
2323
* @since 2.0
2424
*/
25-
@Description("An element representing a cluster in the domain configuration.")
2625
public class Cluster extends BaseConfiguration implements Comparable<Cluster> {
2726
/** The name of the cluster. Required. */
28-
@Description("The name of this cluster. Required")
27+
@Description("The name of the cluster. This value must match the name of a WebLogic cluster already defined "
28+
+ "in the WebLogic domain configuration. Required.")
2929
@Nonnull
3030
private String clusterName;
3131

3232
/** The number of replicas to run in the cluster, if specified. */
33-
@Description("The number of cluster members to run.")
33+
@Description(
34+
"The number of cluster member Managed Server instances to start for this WebLogic cluster. "
35+
+ "The operator will sort cluster member Managed Server names from the WebLogic domain "
36+
+ "configuration by normalizing any numbers in the Managed Server name and then sorting alphabetically. "
37+
+ "This is done so that server names such as \"managed-server10\" come after \"managed-server9\". "
38+
+ "The operator will then start Managed Server instances from the sorted list, "
39+
+ "up to the `replicas` count, unless specific Managed Servers are specified as "
40+
+ "starting in their entry under the `managedServers` field. In that case, the specified Managed Server "
41+
+ "instances will be started and then additional cluster members "
42+
+ "will be started, up to the `replicas` count, by finding further cluster members in the sorted list that are "
43+
+ "not already started. If cluster members are started "
44+
+ "because of their related entries under `managedServers`, then this cluster may have more cluster members "
45+
+ "running than its `replicas` count. Defaults to 0.")
3446
@Range(minimum = 0)
3547
private Integer replicas;
3648

@@ -42,34 +54,36 @@ public class Cluster extends BaseConfiguration implements Comparable<Cluster> {
4254
* @since 2.0
4355
*/
4456
@EnumClass(value = ServerStartPolicy.class, qualifier = "forCluster")
45-
@Description(
46-
"The strategy for deciding whether to start a server. "
47-
+ "Legal values are NEVER, or IF_NEEDED.")
57+
@Description("The strategy for deciding whether to start a WebLogic Server instance. "
58+
+ "Legal values are NEVER, or IF_NEEDED. Defaults to IF_NEEDED. "
59+
+ "More info: https://oracle.github.io/weblogic-kubernetes-operator/userguide/managing-domains/"
60+
+ "domain-lifecycle/startup/#starting-and-stopping-servers.")
4861
private String serverStartPolicy;
4962

5063
@Description(
5164
"The maximum number of cluster members that can be temporarily unavailable. Defaults to 1.")
5265
@Range(minimum = 1)
5366
private Integer maxUnavailable;
5467

55-
@Description("Customization affecting ClusterIP Kubernetes services for the WebLogic cluster.")
68+
@Description("Customization affecting Kubernetes Service generated for this WebLogic cluster.")
5669
@SerializedName("clusterService")
5770
@Expose
5871
private KubernetesResource clusterService = new KubernetesResource();
5972

60-
@Description("If true (the default), then the number of replicas is allowed to drop below the "
61-
+ "minimum dynamic cluster size configured in the WebLogic domain home configuration. "
62-
+ "Otherwise, the operator will ensure that the number of replicas is not less than "
63-
+ "the minimum dynamic cluster setting. This setting applies to dynamic clusters only."
73+
@Description("Specifies whether the number of running cluster members is allowed to drop below the "
74+
+ "minimum dynamic cluster size configured in the WebLogic domain configuration. "
75+
+ "Otherwise, the operator will ensure that the number of running cluster members is not less than "
76+
+ "the minimum dynamic cluster setting. This setting applies to dynamic clusters only. "
77+
+ "Defaults to true."
6478
)
6579
private Boolean allowReplicasBelowMinDynClusterSize;
6680

6781
@Description(
68-
"The maximum number of Managed Servers that the operator will start in parallel "
69-
+ "for the cluster in response to a change in replicas count for the cluster. "
70-
+ "If more Managed Servers need to be started, the operator will wait until a Managed "
71-
+ "Server pod is in the `Ready` and `Running` state before starting the next Managed Server. "
72-
+ "A value of 0 (the default) means all Managed Servers will start in parallel."
82+
"The maximum number of Managed Servers instances that the operator will start in parallel "
83+
+ "for this cluster in response to a change in the `replicas` count. "
84+
+ "If more Managed Server instances must be started, the operator will wait until a Managed "
85+
+ "Server Pod is in the `Ready` state before starting the next Managed Server instance. "
86+
+ "A value of 0 means all Managed Server instances will start in parallel. Defaults to 0."
7387
)
7488
@Range(minimum = 0)
7589
private Integer maxConcurrentStartup;

0 commit comments

Comments
 (0)