Assuming a pod has an environmental variable set both in its spec, as e.g. below
spec:
containers:
- name: env-print-demo
image: bash
env:
- name: FOO
value: "BAR"
as also injected to it via a ConfigMap
(but with a different value) which is the one that will be taken into account?