Ignore unknown fields from the k8splugin API responses 79/122979/2
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 29 Jul 2021 21:27:06 +0000 (23:27 +0200)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 5 Aug 2021 17:55:47 +0000 (17:55 +0000)
Ignore unknown fields from the k8splugin API responses

Issue-ID: CCSDK-3400
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
Change-Id: I9d184a0a4369848221cce56e164162b55edb3c5a

ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/definition/profile/K8sProfile.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/definition/template/K8sTemplate.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sConfigValueRequest.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sConfigValueResponse.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sRbInstance.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sRbInstanceGvk.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sRbInstanceRequest.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sRbInstanceStatus.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/K8sTopic.kt
ms/blueprintsprocessor/functions/k8s-connection-plugin/src/main/kotlin/org/onap/ccsdk/cds/blueprintsprocessor/functions/k8s/instance/healthcheck/K8sRbInstanceHealthCheck.kt

index 0106b81..cefe3e6 100644 (file)
@@ -1,8 +1,10 @@
 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance
 
 import com.fasterxml.jackson.annotation.JsonAlias
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sConfigValueResponse {
     @get:JsonProperty("rb-name")
     var rbName: String? = null
index e618689..f662118 100644 (file)
 
 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance
 
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sRbInstanceStatus {
 
     @get:JsonProperty("request")
@@ -46,6 +48,7 @@ class K8sRbInstanceStatus {
     }
 }
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sRbInstanceResourceStatus {
 
     @get:JsonProperty("name")
index 0f1f605..1a23c59 100644 (file)
@@ -1,7 +1,9 @@
 package org.onap.ccsdk.cds.blueprintsprocessor.functions.k8s.instance.healthcheck
 
+import com.fasterxml.jackson.annotation.JsonIgnoreProperties
 import com.fasterxml.jackson.annotation.JsonProperty
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sRbInstanceHealthCheckSimple {
 
     @get:JsonProperty("healthcheck-id")
@@ -25,6 +27,7 @@ class K8sRbInstanceHealthCheckSimple {
     }
 }
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sRbInstanceHealthCheckList {
 
     @get:JsonProperty("instance-id")
@@ -47,6 +50,7 @@ class K8sRbInstanceHealthCheckList {
     }
 }
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sRbInstanceHealthCheck {
 
     @get:JsonProperty("healthcheck-id")
@@ -79,6 +83,7 @@ class K8sRbInstanceHealthCheck {
     }
 }
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sHealthCheckTest {
 
     @get:JsonProperty("StartedAt")
@@ -107,6 +112,7 @@ class K8sHealthCheckTest {
     }
 }
 
+@JsonIgnoreProperties(ignoreUnknown = true)
 class K8sRbInstanceHealthCheckHook {
 
     @get:JsonProperty("name")