From 7de14610147d209253a3be8ef99a0ddcb5012225 Mon Sep 17 00:00:00 2001 From: Raman Kumar Date: Mon, 21 Oct 2024 20:52:35 +0530 Subject: [PATCH] fixed line breaks in triggerList Signed-off-by: Raman Kumar --- .../jkube/enricher/generic/TriggersAnnotationEnricher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/TriggersAnnotationEnricher.java b/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/TriggersAnnotationEnricher.java index 394781be26..8dcea1002d 100644 --- a/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/TriggersAnnotationEnricher.java +++ b/jkube-kit/enricher/generic/src/main/java/org/eclipse/jkube/enricher/generic/TriggersAnnotationEnricher.java @@ -153,7 +153,7 @@ public void visit(ContainerBuilder cb) { }); try { - return Serialization.asJson(triggerList); + return Serialization.asJson(triggerList).replaceAll("\r?\n", "\n"); } catch (Exception e) { getLog().error("Error while creating ImageStreamTag triggers for Kubernetes resources: %s", e); return "[]";