I’ve found that the reason of this problem was that I had some envVars duplicated. In my deployment I had:
...
spec:
template:
spec:
container:
env:
- name: ENV_VAR_NAME
value: "test"
- name: ENV_VAR_NAME
value: "test"
...
After removing the duplicated variable:
...
spec:
template:
spec:
container:
env:
- name: ENV_VAR_NAME
value: "test"
...
The helm upgrade [RELEASE] [CHART]
worked fine