I'm playing around with kubernetes ConfigMaps. In the official documentation, I see "file-like keys" in the data field:
apiVersion: v1
kind: ConfigMap
metadata:
name: game-demo
data:
# file-like keys
game.properties: |
enemy.types=aliens,monsters
player.maximum-lives=5
user-interface.properties: |
color.good=purple
color.bad=yellow
allow.textmode=true
Is it possible to break these "file-like keys" into different files and reference them in this ConfigMap resource?
I see several benefits of this approach:
- Slimmed down ConfigMap
- Proper syntax highlighting for the "file-like" configurations
- Can run auto formatters against the "file-like" configurations