I'm having problems with ConfigMap creation on OpenShift 4. I'm trying to add a data element which holds Java application.properties
and to format the YAML using literal block scalar. Example:
data:
application.properties: |
spring.application.name=myApp
server.port=8080
management.server.port=8080
Everything works fine until I add a longer line which should be present in the application.properties
. After I save the change literal block scalar is automatically updated to folded block scalar, like this:
data:
application.properties: >
spring.application.name=myApp
server.port=8080
management.server.port=8080
some.long.property=this.is.some.long.property.value.which.should.be.part.of.the.properties.file
What is the cause of this and how can I fix it? Its really frustrating.