New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML Multiline block indicator issue #1829
Comments
@jfbourner : Thanks for reporting, I can reproduce the issue. In the meantime, Could you please check if using |
Nope, my previous assumption was wrong. Jackson ObjectMapper is doing what it is supposed to do. Somehow trailing newline doesn't seem to be added to annotation value via this config: <property>
<name>proxy.istio.io/config</name>
<value>proxyMetadata:
ISTIO_META_DNS_CAPTURE: "false"
holdApplicationUntilProxyStarts: true</value>
</property> this generates annotation with value: I tried adding |
… in labels/annotations (eclipse-jkube#1829) Signed-off-by: Rohan Kumar <rohaan@redhat.com>
… in labels/annotations (eclipse-jkube#1829) Add a trailing newline in case of multiline values in labels and annotations in MetadataVisitor Signed-off-by: Rohan Kumar <rohaan@redhat.com>
… in labels/annotations (eclipse-jkube#1829) Add a trailing newline in case of multiline values in labels and annotations in MetadataVisitor Signed-off-by: Rohan Kumar <rohaan@redhat.com>
… in labels/annotations (eclipse-jkube#1829) Add a trailing newline in case of multiline values in labels and annotations in MetadataVisitor Signed-off-by: Rohan Kumar <rohaan@redhat.com>
… in labels/annotations (#1829) Add a trailing newline in case of multiline values in labels and annotations in MetadataVisitor Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Describe the bug
When adding ISTIO configuration, via the annotations config, it is setting a Block Chomping Indicator to clip the new line, where it needs to retain the new line.
Yaml Multiline
ISTIO Config
POM Plugin config
Deployment.yml Output
As you can see above the deployment yaml has "|-" which causes the annotation to not work with ISTIO
Eclipse JKube version
1.9.1
Component
Kubernetes Maven Plugin
Apache Maven version
3.8.3
Gradle version
No response
Steps to reproduce
Expected behavior
Expected output
Runtime
Kubernetes (vanilla)
Kubernetes API Server version
other (please specify in additional context)
Environment
Windows, Linux
Eclipse JKube Logs
No response
Sample Reproducer Project
Sits on commercial infra
Additional context
No response
The text was updated successfully, but these errors were encountered: