Skip to content

Commit

Permalink
feat: ignore unkown json properties
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Miglinci <pmig@glasskube.eu>
  • Loading branch information
pmig committed Feb 20, 2023
1 parent 0db762a commit 811014b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions operator/src/main/kotlin/eu/glasskube/operator/Main.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package eu.glasskube.operator

import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.module.kotlin.KotlinFeature
import com.fasterxml.jackson.module.kotlin.kotlinModule
import eu.glasskube.kubernetes.api.model.configMap
Expand Down Expand Up @@ -58,6 +59,7 @@ fun main() {
val operator = Operator(kubernetesClient) {
it.withObjectMapper(
Serialization.jsonMapper()
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
.registerModule(kotlinModule { configure(KotlinFeature.NullIsSameAsDefault, true) })
)
}
Expand Down

0 comments on commit 811014b

Please sign in to comment.