Skip to content

Commit 2ab349f

Browse files
committed
And more
1 parent 644cde4 commit 2ab349f

File tree

63 files changed

+305
-293
lines changed

Some content is hidden

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

63 files changed

+305
-293
lines changed

json-schema/src/main/java/oracle/kubernetes/json/Description.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
package oracle.kubernetes.json;
66

7-
import static java.lang.annotation.ElementType.FIELD;
8-
import static java.lang.annotation.ElementType.TYPE;
9-
107
import java.lang.annotation.Retention;
118
import java.lang.annotation.RetentionPolicy;
129
import java.lang.annotation.Target;
1310

11+
import static java.lang.annotation.ElementType.FIELD;
12+
import static java.lang.annotation.ElementType.TYPE;
13+
1414
/** Supplies a description for a field to be inserted into the generated JSON schema. */
1515
@Retention(RetentionPolicy.RUNTIME)
1616
@Target({TYPE, FIELD})

model/src/main/java/oracle/kubernetes/weblogic/domain/DomainConfigurator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public abstract class DomainConfigurator {
2525

2626
private Domain domain;
2727

28-
public DomainConfigurator() {}
28+
public DomainConfigurator() {
29+
}
2930

3031
protected DomainConfigurator(Domain domain) {
3132
this.domain = domain;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,13 +329,13 @@ public V1SecretReference getWebLogicCredentialsSecret() {
329329
*
330330
* @return domain UID
331331
*/
332-
public String getDomainUID() {
333-
return Optional.ofNullable(spec.getDomainUID()).orElse(getMetadata().getName());
332+
public String getDomainUid() {
333+
return Optional.ofNullable(spec.getDomainUid()).orElse(getMetadata().getName());
334334
}
335335

336336
public String getLogHome() {
337337
return Optional.ofNullable(spec.getLogHome())
338-
.orElse(String.format(LOG_HOME_DEFAULT_PATTERN, getDomainUID()));
338+
.orElse(String.format(LOG_HOME_DEFAULT_PATTERN, getDomainUid()));
339339
}
340340

341341
public boolean getLogHomeEnabled() {
@@ -364,7 +364,7 @@ public String getDomainHome() {
364364
if (spec.isDomainHomeInImage()) {
365365
return "/u01/oracle/user_projects/domains";
366366
}
367-
return "/shared/domains/" + getDomainUID();
367+
return "/shared/domains/" + getDomainUid();
368368
}
369369

370370
public boolean isShuttingDown() {

model/src/main/java/oracle/kubernetes/weblogic/domain/model/DomainCommonConfigurator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ public DomainConfigurator createFor(Domain domain) {
2828
return new DomainCommonConfigurator(domain);
2929
}
3030

31-
public DomainCommonConfigurator() {}
31+
public DomainCommonConfigurator() {
32+
}
3233

3334
DomainCommonConfigurator(@Nonnull Domain domain) {
3435
super(domain);

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

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import javax.validation.Valid;
1313
import javax.validation.constraints.NotNull;
1414

15+
import com.google.gson.annotations.SerializedName;
1516
import io.kubernetes.client.models.V1LocalObjectReference;
1617
import io.kubernetes.client.models.V1SecretReference;
1718
import oracle.kubernetes.json.Description;
@@ -37,7 +38,8 @@ public class DomainSpec extends BaseConfiguration {
3738
"Domain unique identifier. Must be unique across the Kubernetes cluster. Not required."
3839
+ " Defaults to the value of metadata.name")
3940
@Pattern("^[a-z0-9_.]{1,253}$")
40-
private String domainUID;
41+
@SerializedName("domainUID")
42+
private String domainUid;
4143

4244
/**
4345
* Domain home.
@@ -46,7 +48,7 @@ public class DomainSpec extends BaseConfiguration {
4648
*/
4749
@Description(
4850
"The folder for the WebLogic Domain. Not required."
49-
+ " Defaults to /shared/domains/domains/domainUID if domainHomeInImage is false"
51+
+ " Defaults to /shared/domains/domains/domainUid if domainHomeInImage is false"
5052
+ " Defaults to /u01/oracle/user_projects/domains/ if domainHomeInImage is true")
5153
private String domainHome;
5254

@@ -231,28 +233,28 @@ EffectiveConfigurationFactory getEffectiveConfigurationFactory(
231233
*
232234
* @return domain UID
233235
*/
234-
public String getDomainUID() {
235-
return domainUID;
236+
public String getDomainUid() {
237+
return domainUid;
236238
}
237239

238240
/**
239241
* Domain unique identifier. Must be unique across the Kubernetes cluster. (Not required) Defaults
240242
* to the value of metadata.name
241243
*
242-
* @param domainUID domain UID
244+
* @param domainUid domain UID
243245
*/
244-
public void setDomainUID(String domainUID) {
245-
this.domainUID = domainUID;
246+
public void setDomainUid(String domainUid) {
247+
this.domainUid = domainUid;
246248
}
247249

248250
/**
249251
* Domain unique identifier. Must be unique across the Kubernetes cluster. (Required)
250252
*
251-
* @param domainUID domain UID
253+
* @param domainUid domain UID
252254
* @return this
253255
*/
254-
public DomainSpec withDomainUID(String domainUID) {
255-
this.domainUID = domainUID;
256+
public DomainSpec withDomainUid(String domainUid) {
257+
this.domainUid = domainUid;
256258
return this;
257259
}
258260

@@ -505,7 +507,7 @@ public String toString() {
505507
ToStringBuilder builder =
506508
new ToStringBuilder(this)
507509
.appendSuper(super.toString())
508-
.append("domainUID", domainUID)
510+
.append("domainUid", domainUid)
509511
.append("domainHome", domainHome)
510512
.append("domainHomeInImage", domainHomeInImage)
511513
.append("serverStartPolicy", serverStartPolicy)
@@ -531,7 +533,7 @@ public int hashCode() {
531533
HashCodeBuilder builder =
532534
new HashCodeBuilder()
533535
.appendSuper(super.hashCode())
534-
.append(domainUID)
536+
.append(domainUid)
535537
.append(domainHome)
536538
.append(domainHomeInImage)
537539
.append(serverStartPolicy)
@@ -565,7 +567,7 @@ public boolean equals(Object other) {
565567
EqualsBuilder builder =
566568
new EqualsBuilder()
567569
.appendSuper(super.equals(other))
568-
.append(domainUID, rhs.domainUID)
570+
.append(domainUid, rhs.domainUid)
569571
.append(domainHome, rhs.domainHome)
570572
.append(domainHomeInImage, rhs.domainHomeInImage)
571573
.append(serverStartPolicy, rhs.serverStartPolicy)

model/src/test/java/oracle/kubernetes/weblogic/domain/DomainTestBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public abstract class DomainTestBase {
5050
protected static Domain createDomain() {
5151
return new Domain()
5252
.withMetadata(new V1ObjectMeta().namespace(NS))
53-
.withSpec(new DomainSpec().withWebLogicCredentialsSecret(SECRET).withDomainUID(DOMAIN_UID));
53+
.withSpec(new DomainSpec().withWebLogicCredentialsSecret(SECRET).withDomainUid(DOMAIN_UID));
5454
}
5555

5656
protected abstract DomainConfigurator configureDomain(Domain domain);
@@ -70,7 +70,7 @@ public void canGetAdminServerInfoFromDomain() {
7070

7171
@Test
7272
public void canGetDomainInfoFromDomain() {
73-
assertThat(domain.getDomainUID(), equalTo(DOMAIN_UID));
73+
assertThat(domain.getDomainUid(), equalTo(DOMAIN_UID));
7474
}
7575

7676
@Test

0 commit comments

Comments
 (0)