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) {