From 04209fff8089a13e182f324b781f79ecdda23c4a Mon Sep 17 00:00:00 2001 From: yclee Date: Wed, 25 Sep 2024 15:09:42 +0900 Subject: [PATCH] =?UTF-8?q?yaml=20=EC=A7=81=EB=A0=AC=ED=99=94=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=9C=EC=99=B8=20=EB=8C=80=EC=83=81=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java | 2 +- 1 file changed, 1 insertion(+), 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 a5a107c..d89bfb5 100644 --- a/src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java +++ b/src/main/java/kr/co/mcmp/api/manifest/YamlManifestService.java @@ -17,7 +17,7 @@ public class YamlManifestService { private final ObjectMapper mapper = new ObjectMapper(new YAMLFactory() .disable(YAMLGenerator.Feature.WRITE_DOC_START_MARKER)) - .setSerializationInclusion(JsonInclude.Include.NON_NULL); + .setSerializationInclusion(JsonInclude.Include.NON_EMPTY); public String generateYamlDeployments(K8SDeploymentDto deployments) { return generateYaml(deployments);