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() {
2424 operator .getReconcilerOfType (TestReconciler .class ).setUpdateStatus (true );
2525
2626 TestCustomResource resource = TestUtils .testCustomResource ();
27+ // resource.getSpec()
2728 operator .create (resource );
2829
2930 awaitResourcesCreatedOrUpdated ();
Original file line number Diff line number Diff line change 11package io .javaoperatorsdk .operator .baseapi .simple ;
22
3+ import com .fasterxml .jackson .annotation .JsonAnyGetter ;
4+ import com .fasterxml .jackson .annotation .JsonAnySetter ;
5+ import com .fasterxml .jackson .databind .JsonNode ;
6+
37public class TestCustomResourceSpec {
48
59 private String configMapName ;
@@ -8,6 +12,18 @@ public class TestCustomResourceSpec {
812
913 private String value ;
1014
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+
1127 public String getConfigMapName () {
1228 return configMapName ;
1329 }
You can’t perform that action at this time.
0 commit comments