Skip to content

Commit

Permalink
yaml 직렬화시 제외 대상 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
st-yclee committed Sep 25, 2024
1 parent 9081f9f commit 04209ff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 04209ff

Please sign in to comment.