diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/utils/Serialization.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/utils/Serialization.java index 3680e664bae..d8372971a49 100644 --- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/utils/Serialization.java +++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/utils/Serialization.java @@ -40,6 +40,8 @@ import java.util.stream.Collectors; import io.fabric8.kubernetes.client.utils.serialization.UnmatchedFieldTypeModule; + +import org.yaml.snakeyaml.LoaderOptions; import org.yaml.snakeyaml.Yaml; import org.yaml.snakeyaml.constructor.SafeConstructor; @@ -370,7 +372,7 @@ private static String readSpecFileFromInputStream(InputStream inputStream) { } private static T unmarshalYaml(InputStream is, TypeReference type) throws JsonProcessingException { - final Yaml yaml = new Yaml(new SafeConstructor()); + final Yaml yaml = new Yaml(new SafeConstructor(new LoaderOptions())); Map obj = yaml.load(is); String objAsJsonStr = JSON_MAPPER.writeValueAsString(obj); return unmarshalJsonStr(objAsJsonStr, type); diff --git a/pom.xml b/pom.xml index 5884482b33d..49102ef55d4 100644 --- a/pom.xml +++ b/pom.xml @@ -85,7 +85,7 @@ 3.12.1_1 1.15.0 1.15.0_1 - 2.13.1 + 2.15.3 0.2.2 @@ -113,7 +113,7 @@ 1.7.33 4.2.0 1.18.22 - 1.28 + 2.2 1.70 1.21 1.12.0