From a9e115adbabd1a7a909a3d849e24cd7e3fdada55 Mon Sep 17 00:00:00 2001 From: yclee Date: Fri, 13 Sep 2024 14:11:29 +0900 Subject: [PATCH] =?UTF-8?q?yaml=20generator=20---=20=EA=B0=92=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/kr/co/mcmp/api/manifest/YamlManifestService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java b/src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java index 7399c3b..a5a107c 100644 --- a/src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java +++ b/src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java @@ -4,6 +4,7 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; +import com.fasterxml.jackson.dataformat.yaml.YAMLGenerator; import kr.co.mcmp.api.manifest.k8s.*; import lombok.RequiredArgsConstructor; import lombok.extern.log4j.Log4j2; @@ -14,7 +15,8 @@ @RequiredArgsConstructor public class YamlManifestService { - private final ObjectMapper mapper = new ObjectMapper(new YAMLFactory()) + private final ObjectMapper mapper = new ObjectMapper(new YAMLFactory() + .disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)) .setSerializationInclusion(JsonInclude.Include.NON_NULL); public String generateYamlDeployments(K8SDeploymentDto deployments) {