I'm trying to use Kustomize to generate ConfigMaps from files that contain key-value pairs. My kustomization file contains this:
configMapGenerator:
- name: my-config
files:
- environment.properties
The environment.properties file contains this:
FIRST: 1
SECOND: 2
LAST: 3
The generated output contains this:
apiVersion: v1
data:
environment.properties: |
FIRST: 1
SECOND: 2
LAST: 3
kind: ConfigMap
How can I flatten this data structure? I'd rather have this output instead:
apiVersion: v1
data:
FIRST: 1
SECOND: 2
LAST: 3
kind: ConfigMap