I have configMap:
apiVersion: v1
kind: ConfigMap
metadata:
name: my-app
data:
application.yaml: |-
config:
property1: 1
property2: 2
property3: 2
my-map-property:
a: b
c: d
e: f
g: h
now I want to update my map property to:
my-map-property:
1: 5
2: 6
3: 7
4: 8
what is the easiest tool to apply this patch to my configMap ?
I know there is yq or kustomize but when I tried example with kustomize
resources:
- my-configMap.yaml
patchesStrategicMerge:
- patch-configMap.yaml
and run: kubectl kustomize ./ then output contains just patch now whole configMap. Is there some better tool how to deal with this problem ?