Skip to content

Commit b322672

Browse files
committed
A few extra unintentional changes reverted
1 parent 1b6a318 commit b322672

File tree

6 files changed

+29
-32
lines changed

6 files changed

+29
-32
lines changed

docs/domains/Domain.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
"IF_NEEDED"
3333
]
3434
},
35-
"restartVersion": {
36-
"description": "If present, every time this value is updated the operator will restart the required servers.",
37-
"type": "string"
38-
},
3935
"adminService": {
4036
"description": "Configures which of the admin server\u0027s WebLogic admin channels should be exposed outside the Kubernetes cluster via a node port service.",
4137
"$ref": "#/definitions/AdminService"
38+
},
39+
"restartVersion": {
40+
"description": "If present, every time this value is updated the operator will restart the required servers.",
41+
"type": "string"
4242
}
4343
}
4444
},
@@ -434,6 +434,10 @@
434434
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.Volume"
435435
}
436436
},
437+
"resources": {
438+
"description": "Memory and cpu minimum requirements and limits for the server.",
439+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
440+
},
437441
"readinessProbe": {
438442
"description": "Settings for the readiness probe associated with a server.",
439443
"$ref": "#/definitions/ProbeTuning"
@@ -442,10 +446,6 @@
442446
"description": "The annotations to be attached to generated resources.",
443447
"$ref": "#/definitions/Map"
444448
},
445-
"resources": {
446-
"description": "Memory and cpu minimum requirements and limits for the server.",
447-
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
448-
},
449449
"containerSecurityContext": {
450450
"description": "Container-level security attributes. Will override any matching pod-level attributes.",
451451
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
@@ -457,10 +457,6 @@
457457
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.EnvVar"
458458
}
459459
},
460-
"labels": {
461-
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
462-
"$ref": "#/definitions/Map"
463-
},
464460
"nodeSelector": {
465461
"description": "Selector which must match a node\u0027s labels for the pod to be scheduled on that node.",
466462
"$ref": "#/definitions/Map"
@@ -471,6 +467,10 @@
471467
"items": {
472468
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.VolumeMount"
473469
}
470+
},
471+
"labels": {
472+
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
473+
"$ref": "#/definitions/Map"
474474
}
475475
}
476476
},

docs/domains/index.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -952,13 +952,13 @@
952952
"IF_NEEDED"
953953
]
954954
},
955-
"restartVersion": {
956-
"description": "If present, every time this value is updated the operator will restart the required servers.",
957-
"type": "string"
958-
},
959955
"adminService": {
960956
"description": "Configures which of the admin server\u0027s WebLogic admin channels should be exposed outside the Kubernetes cluster via a node port service.",
961957
"$ref": "#/definitions/AdminService"
958+
},
959+
"restartVersion": {
960+
"description": "If present, every time this value is updated the operator will restart the required servers.",
961+
"type": "string"
962962
}
963963
}
964964
},
@@ -1354,6 +1354,10 @@
13541354
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.Volume"
13551355
}
13561356
},
1357+
"resources": {
1358+
"description": "Memory and cpu minimum requirements and limits for the server.",
1359+
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
1360+
},
13571361
"readinessProbe": {
13581362
"description": "Settings for the readiness probe associated with a server.",
13591363
"$ref": "#/definitions/ProbeTuning"
@@ -1362,10 +1366,6 @@
13621366
"description": "The annotations to be attached to generated resources.",
13631367
"$ref": "#/definitions/Map"
13641368
},
1365-
"resources": {
1366-
"description": "Memory and cpu minimum requirements and limits for the server.",
1367-
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
1368-
},
13691369
"containerSecurityContext": {
13701370
"description": "Container-level security attributes. Will override any matching pod-level attributes.",
13711371
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
@@ -1377,10 +1377,6 @@
13771377
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.EnvVar"
13781378
}
13791379
},
1380-
"labels": {
1381-
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
1382-
"$ref": "#/definitions/Map"
1383-
},
13841380
"nodeSelector": {
13851381
"description": "Selector which must match a node\u0027s labels for the pod to be scheduled on that node.",
13861382
"$ref": "#/definitions/Map"
@@ -1391,6 +1387,10 @@
13911387
"items": {
13921388
"$ref": "https://github.com/garethr/kubernetes-json-schema/blob/master/v1.9.0/_definitions.json#/definitions/io.k8s.api.core.v1.VolumeMount"
13931389
}
1390+
},
1391+
"labels": {
1392+
"description": "The labels to be attached to generated resources. The label names must not start with \u0027weblogic.\u0027.",
1393+
"$ref": "#/definitions/Map"
13941394
}
13951395
}
13961396
},

model/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<configuration>
108108
<resources>
109109
<resource>
110-
<directory>${project.build.outputDirectory}/schema/oracle/kubernetes/weblogic/domain/v3</directory>
110+
<directory>${project.build.outputDirectory}/schema/oracle/kubernetes/weblogic/domain/model</directory>
111111
</resource>
112112
</resources>
113113
<outputDirectory>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
// Licensed under the Universal Permissive License v 1.0 as shown at
33
// http://oss.oracle.com/licenses/upl.
44

5-
package oracle.kubernetes.weblogic.domain.model; // Copyright 2018, Oracle Corporation and/or its
6-
// affiliates. All rights reserved.
7-
// Licensed under the Universal Permissive License v 1.0 as shown at
8-
// http://oss.oracle.com/licenses/upl.
5+
package oracle.kubernetes.weblogic.domain.model;
96

107
import static org.hamcrest.Matchers.equalTo;
118
import static org.hamcrest.Matchers.not;

operator/src/test/java/oracle/kubernetes/operator/helpers/KubernetesTestSupportTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ public void afterDeletePod_podsInDifferentNamespacesStillExist() {
151151
public void listPodSelectsByLabel() {
152152
V1Pod pod1 = createLabeledPod("ns1", "pod1", ImmutableMap.of("k1", "v1", "k2", "v2"));
153153
V1Pod pod2 = createLabeledPod("ns1", "pod2", ImmutableMap.of("k1", "v2"));
154-
V1Pod pod3 = createLabeledPod("ns1", "pod3", ImmutableMap.of("k1", "v1", "k2", "model"));
155-
V1Pod pod4 = createLabeledPod("ns2", "pod4", ImmutableMap.of("k1", "v1", "k2", "model"));
154+
V1Pod pod3 = createLabeledPod("ns1", "pod3", ImmutableMap.of("k1", "v1", "k2", "v2"));
155+
V1Pod pod4 = createLabeledPod("ns2", "pod4", ImmutableMap.of("k1", "v1", "k2", "v2"));
156156
testSupport.defineResources(pod1, pod2, pod3, pod4);
157157

158158
TestResponseStep<V1PodList> responseStep = new TestResponseStep<>();

operator/src/test/java/oracle/kubernetes/operator/rest/RestTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public void testLatestVersion() {
155155

156156
@Test
157157
public void testNonExistingVersion() {
158-
String href = OPERATOR_HREF + "/model";
158+
String href = OPERATOR_HREF + "/v2";
159159
Response r = request(href).get();
160160
verifyNotFound(r);
161161
ErrorModel want = new ErrorModel(Status.NOT_FOUND.getStatusCode(), href);

0 commit comments

Comments
 (0)