HELM installation issue

As part of Opensearch installation using Helm I’m enabling the extraInitcontainer in order to update the vm.max_map_count. According to the pod description the init container was finished successfully but the value was not update and because of the pods are restarting.

In order to make sure that my configuration of the InitContainer is correct i have included it in a new deployment and it is working. Any suggestion ?