File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
operator-framework/src/test/java/io/javaoperatorsdk/operator/baseapi/simple Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ void configMapGetsCreatedForTestCustomResource() {
24
24
operator .getReconcilerOfType (TestReconciler .class ).setUpdateStatus (true );
25
25
26
26
TestCustomResource resource = TestUtils .testCustomResource ();
27
+ // resource.getSpec()
27
28
operator .create (resource );
28
29
29
30
awaitResourcesCreatedOrUpdated ();
Original file line number Diff line number Diff line change 1
1
package io .javaoperatorsdk .operator .baseapi .simple ;
2
2
3
+ import com .fasterxml .jackson .annotation .JsonAnyGetter ;
4
+ import com .fasterxml .jackson .annotation .JsonAnySetter ;
5
+ import com .fasterxml .jackson .databind .JsonNode ;
6
+
3
7
public class TestCustomResourceSpec {
4
8
5
9
private String configMapName ;
@@ -8,6 +12,18 @@ public class TestCustomResourceSpec {
8
12
9
13
private String value ;
10
14
15
+ private JsonNode someValue ;
16
+
17
+ @ JsonAnyGetter
18
+ public JsonNode getSomeValue () {
19
+ return someValue ;
20
+ }
21
+
22
+ @ JsonAnySetter
23
+ public void setSomeValue (JsonNode value ) {
24
+ this .someValue = value ;
25
+ }
26
+
11
27
public String getConfigMapName () {
12
28
return configMapName ;
13
29
}
You can’t perform that action at this time.
0 commit comments