Skip to content

Commit f024c72

Browse files
committed
Edit descriptions
1 parent b7a5e44 commit f024c72

File tree

9 files changed

+72
-18
lines changed

9 files changed

+72
-18
lines changed

docs/domains/Domain.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"type": "object",
4646
"properties": {
4747
"channels": {
48+
"description": "Specifies which of the admin server\u0027s WebLogic channels should be exposed outside the Kubernetes cluster via a node port service, along with the node port for each channel. If not specified, the admin server\u0027s node port service will not be created.",
4849
"type": "array",
4950
"items": {
5051
"$ref": "#/definitions/Channel"
@@ -56,12 +57,17 @@
5657
"type": "object",
5758
"properties": {
5859
"channelName": {
60+
"description": "Name of channel. default\u0027 refers to the admin server\u0027s default channel (configured via the ServerMBean\u0027s ListenPort) \u0027default-secure\u0027 refers to the admin server\u0027s default secure channel (configured via the ServerMBean\u0027s SSLMBean\u0027s ListenPort) \u0027default-admin\u0027 refers to the admin server\u0027s default administrative channel (configured via the DomainMBean\u0027s AdministrationPort) Otherwise, the name is the name of one of the admin server\u0027s network access points (configured via the ServerMBean\u0027s NetworkAccessMBeans).",
5961
"type": "string"
6062
},
6163
"nodePort": {
64+
"description": "Specifies the port number used to access the WebLogic channel outside of the Kubernetes cluster. If not specified, defaults to the port defined by the WebLogic channel.",
6265
"type": "number"
6366
}
64-
}
67+
},
68+
"required": [
69+
"channelName"
70+
]
6571
},
6672
"Chronology": {
6773
"type": "object",
@@ -100,6 +106,9 @@
100106
"description": "Configuration affecting server pods",
101107
"$ref": "#/definitions/ServerPod"
102108
},
109+
"clusterService": {
110+
"$ref": "#/definitions/KubernetesResource"
111+
},
103112
"serverStartPolicy": {
104113
"description": "The strategy for deciding whether to start a server. Legal values are ADMIN_ONLY, NEVER, ALWAYS, or IF_NEEDED.",
105114
"type": "string",
@@ -239,6 +248,7 @@
239248
"type": "boolean"
240249
},
241250
"webLogicCredentialsSecret": {
251+
"description": "The name of a pre-created Kubernetes secret, in the domain\u0027s namepace, that holds the username and password needed to boot WebLogic under the \u0027username\u0027 and \u0027password\u0027 fields.",
242252
"$ref": "#/definitions/V1SecretReference"
243253
},
244254
"adminServer": {
@@ -307,11 +317,11 @@
307317
"type": "object",
308318
"properties": {
309319
"annotations": {
310-
"description": "Annotations applied to pods",
320+
"description": "The annotations to be attached to generated resources.",
311321
"$ref": "#/definitions/Map"
312322
},
313323
"labels": {
314-
"description": "Labels applied to pods",
324+
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
315325
"$ref": "#/definitions/Map"
316326
}
317327
}
@@ -336,6 +346,7 @@
336346
"$ref": "#/definitions/ServerPod"
337347
},
338348
"serverName": {
349+
"description": "The name of the server. Required.",
339350
"type": "string"
340351
},
341352
"serverStartPolicy": {
@@ -352,7 +363,10 @@
352363
"description": "If present, every time this value is updated the operator will restart the required servers",
353364
"type": "string"
354365
}
355-
}
366+
},
367+
"required": [
368+
"serverName"
369+
]
356370
},
357371
"Map": {
358372
"type": "object",
@@ -411,7 +425,7 @@
411425
}
412426
},
413427
"annotations": {
414-
"description": "Annotations applied to pods",
428+
"description": "The annotations to be attached to generated resources.",
415429
"$ref": "#/definitions/Map"
416430
},
417431
"resources": {
@@ -434,7 +448,7 @@
434448
}
435449
},
436450
"labels": {
437-
"description": "Labels applied to pods",
451+
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
438452
"$ref": "#/definitions/Map"
439453
},
440454
"nodeSelector": {
@@ -1625,7 +1639,7 @@
16251639
"type": "string"
16261640
},
16271641
"kind": {
1628-
"description": "The type of resource. Should be \u0027Domain\u0027",
1642+
"description": "The type of resource. Must be \u0027Domain\u0027",
16291643
"type": "string"
16301644
},
16311645
"spec": {

docs/domains/index.html

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@
849849
"type": "string"
850850
},
851851
"kind": {
852-
"description": "The type of resource. Should be \u0027Domain\u0027",
852+
"description": "The type of resource. Must be \u0027Domain\u0027",
853853
"type": "string"
854854
},
855855
"spec": {
@@ -965,6 +965,7 @@
965965
"type": "object",
966966
"properties": {
967967
"channels": {
968+
"description": "Specifies which of the admin server\u0027s WebLogic channels should be exposed outside the Kubernetes cluster via a node port service, along with the node port for each channel. If not specified, the admin server\u0027s node port service will not be created.",
968969
"type": "array",
969970
"items": {
970971
"$ref": "#/definitions/Channel"
@@ -976,12 +977,17 @@
976977
"type": "object",
977978
"properties": {
978979
"channelName": {
980+
"description": "Name of channel. default\u0027 refers to the admin server\u0027s default channel (configured via the ServerMBean\u0027s ListenPort) \u0027default-secure\u0027 refers to the admin server\u0027s default secure channel (configured via the ServerMBean\u0027s SSLMBean\u0027s ListenPort) \u0027default-admin\u0027 refers to the admin server\u0027s default administrative channel (configured via the DomainMBean\u0027s AdministrationPort) Otherwise, the name is the name of one of the admin server\u0027s network access points (configured via the ServerMBean\u0027s NetworkAccessMBeans).",
979981
"type": "string"
980982
},
981983
"nodePort": {
984+
"description": "Specifies the port number used to access the WebLogic channel outside of the Kubernetes cluster. If not specified, defaults to the port defined by the WebLogic channel.",
982985
"type": "number"
983986
}
984-
}
987+
},
988+
"required": [
989+
"channelName"
990+
]
985991
},
986992
"Chronology": {
987993
"type": "object",
@@ -1020,6 +1026,9 @@
10201026
"description": "Configuration affecting server pods",
10211027
"$ref": "#/definitions/ServerPod"
10221028
},
1029+
"clusterService": {
1030+
"$ref": "#/definitions/KubernetesResource"
1031+
},
10231032
"serverStartPolicy": {
10241033
"description": "The strategy for deciding whether to start a server. Legal values are ADMIN_ONLY, NEVER, ALWAYS, or IF_NEEDED.",
10251034
"type": "string",
@@ -1159,6 +1168,7 @@
11591168
"type": "boolean"
11601169
},
11611170
"webLogicCredentialsSecret": {
1171+
"description": "The name of a pre-created Kubernetes secret, in the domain\u0027s namepace, that holds the username and password needed to boot WebLogic under the \u0027username\u0027 and \u0027password\u0027 fields.",
11621172
"$ref": "#/definitions/V1SecretReference"
11631173
},
11641174
"adminServer": {
@@ -1227,11 +1237,11 @@
12271237
"type": "object",
12281238
"properties": {
12291239
"annotations": {
1230-
"description": "Annotations applied to pods",
1240+
"description": "The annotations to be attached to generated resources.",
12311241
"$ref": "#/definitions/Map"
12321242
},
12331243
"labels": {
1234-
"description": "Labels applied to pods",
1244+
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
12351245
"$ref": "#/definitions/Map"
12361246
}
12371247
}
@@ -1256,6 +1266,7 @@
12561266
"$ref": "#/definitions/ServerPod"
12571267
},
12581268
"serverName": {
1269+
"description": "The name of the server. Required.",
12591270
"type": "string"
12601271
},
12611272
"serverStartPolicy": {
@@ -1272,7 +1283,10 @@
12721283
"description": "If present, every time this value is updated the operator will restart the required servers",
12731284
"type": "string"
12741285
}
1275-
}
1286+
},
1287+
"required": [
1288+
"serverName"
1289+
]
12761290
},
12771291
"Map": {
12781292
"type": "object",
@@ -1331,7 +1345,7 @@
13311345
}
13321346
},
13331347
"annotations": {
1334-
"description": "Annotations applied to pods",
1348+
"description": "The annotations to be attached to generated resources.",
13351349
"$ref": "#/definitions/Map"
13361350
},
13371351
"resources": {
@@ -1354,7 +1368,7 @@
13541368
}
13551369
},
13561370
"labels": {
1357-
"description": "Labels applied to pods",
1371+
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
13581372
"$ref": "#/definitions/Map"
13591373
},
13601374
"nodeSelector": {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,16 @@
77
import com.google.gson.annotations.SerializedName;
88
import java.util.ArrayList;
99
import java.util.List;
10+
import oracle.kubernetes.json.Description;
1011
import org.apache.commons.lang3.builder.EqualsBuilder;
1112
import org.apache.commons.lang3.builder.HashCodeBuilder;
1213
import org.apache.commons.lang3.builder.ToStringBuilder;
1314

1415
public class AdminService {
1516
/** */
1617
@SerializedName("channels")
18+
@Description(
19+
"Specifies which of the admin server's WebLogic channels should be exposed outside the Kubernetes cluster via a node port service, along with the node port for each channel. If not specified, the admin server's node port service will not be created.")
1720
private List<Channel> channels = new ArrayList<>();
1821

1922
public AdminService withChannel(Channel port) {

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,26 @@
55
package oracle.kubernetes.weblogic.domain.v2;
66

77
import com.google.gson.annotations.SerializedName;
8+
import javax.annotation.Nonnull;
9+
import oracle.kubernetes.json.Description;
810
import org.apache.commons.lang3.builder.EqualsBuilder;
911
import org.apache.commons.lang3.builder.HashCodeBuilder;
1012
import org.apache.commons.lang3.builder.ToStringBuilder;
1113

1214
public class Channel implements Comparable<Channel> {
1315
@SerializedName("channelName")
16+
@Description(
17+
"Name of channel. default' refers to the admin server's default channel (configured via the ServerMBean's ListenPort) "
18+
+ "'default-secure' refers to the admin server's default secure channel (configured via the ServerMBean's SSLMBean's ListenPort) "
19+
+ "'default-admin' refers to the admin server's default administrative channel (configured via the DomainMBean's AdministrationPort) "
20+
+ "Otherwise, the name is the name of one of the admin server's network access points (configured via the ServerMBean's NetworkAccessMBeans).")
21+
@Nonnull
1422
private String channelName;
1523

1624
@SerializedName("nodePort")
25+
@Description(
26+
"Specifies the port number used to access the WebLogic channel outside of the Kubernetes cluster. "
27+
+ "If not specified, defaults to the port defined by the WebLogic channel.")
1728
private Integer nodePort;
1829

1930
public String getChannelName() {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ public class Cluster extends BaseConfiguration implements Comparable<Cluster> {
3232
@Range(minimum = 1)
3333
private Integer maxUnavailable;
3434

35+
// FIXME
36+
private KubernetesResource clusterService;
37+
3538
protected Cluster getConfiguration() {
3639
Cluster configuration = new Cluster();
3740
configuration.fillInFrom(this);

model/src/main/java/oracle/kubernetes/weblogic/domain/v2/Domain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class Domain {
4545
*/
4646
@SerializedName("kind")
4747
@Expose
48-
@Description("The type of resource. Should be 'Domain'")
48+
@Description("The type of resource. Must be 'Domain'")
4949
private String kind;
5050
/**
5151
* Standard object's metadata. More info:

model/src/main/java/oracle/kubernetes/weblogic/domain/v2/DomainSpec.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ public class DomainSpec extends BaseConfiguration {
4848
* Reference to secret containing WebLogic startup credentials username and password. Secret must
4949
* contain keys names 'username' and 'password' (Required)
5050
*/
51-
@Valid @NotNull private V1SecretReference webLogicCredentialsSecret;
51+
@Description(
52+
"The name of a pre-created Kubernetes secret, in the domain's namepace, that holds"
53+
+ " the username and password needed to boot WebLogic under the 'username' and 'password' fields.")
54+
@Valid
55+
@NotNull
56+
private V1SecretReference webLogicCredentialsSecret;
5257

5358
/**
5459
* The in-pod name of the directory to store the domain, node manager, server logs, and server

model/src/main/java/oracle/kubernetes/weblogic/domain/v2/KubernetesResource.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ class KubernetesResource {
1818
*
1919
* @since 2.0
2020
*/
21-
@Description("Labels applied to pods")
21+
@Description(
22+
"The labels to be attached to generated resources. The label names must not start with 'weblogic.'.")
2223
private Map<String, String> labels = new HashMap<>();
2324

2425
/**
2526
* The annotations to be attached to generated resources.
2627
*
2728
* @since 2.0
2829
*/
29-
@Description("Annotations applied to pods")
30+
@Description("The annotations to be attached to generated resources.")
3031
private Map<String, String> annotations = new HashMap<>();
3132

3233
void fillInFrom(KubernetesResource kubernetesResource1) {

model/src/main/java/oracle/kubernetes/weblogic/domain/v2/ManagedServer.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.google.gson.annotations.Expose;
88
import com.google.gson.annotations.SerializedName;
99
import javax.annotation.Nonnull;
10+
import oracle.kubernetes.json.Description;
1011
import org.apache.commons.lang3.builder.EqualsBuilder;
1112
import org.apache.commons.lang3.builder.HashCodeBuilder;
1213
import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -15,6 +16,8 @@ public class ManagedServer extends Server implements Comparable<ManagedServer> {
1516
/** The name of the managed server. Required. */
1617
@SerializedName("serverName")
1718
@Expose
19+
@Description("The name of the server. Required.")
20+
@Nonnull
1821
private String serverName;
1922

2023
public String getServerName() {

0 commit comments

Comments
 (0)