I am using bitnami/mongodb as a dependency for my helm chart. With this chart autogenerating secrets for e.g. mongodb.auth.rootPassword on install, I want to use the existing secret upon updating the chart, instead of the "empty value" which causes auto generation.
To be clear: The above is just an example / my usecase, the following question is a general question regarding Helm.
Is there any variable in helm to check wether it is an install or an update?