kuui icon indicating copy to clipboard operation
kuui copied to clipboard

`\n` is being printed if the configmap is being created through a prop file, which should not

Open viveksinghggits opened this issue 4 years ago • 0 comments

If we create the configmap using properties file and the file has newlines those newlines are being converted to \n in the front end, which should not.

{
    "secret.properties": "name=vivek\nage=27\nlastname=singh\n"
}

below is how secret.properties looks

more secret.properties 
name=vivek
age=27
lastname=singh

How describe shows the configmap

kubectl describe configmaps cmprop 
Name:         cmprop
Namespace:    default
Labels:       <none>
Annotations:  <none>

Data
====
secret.properties:
----
name=vivek
age=27
lastname=singh

Events:  <none>

viveksinghggits avatar Dec 27 '19 10:12 viveksinghggits