I have a helm chart which I use to deploy an app that requires a number of credentials to run. I would like to be able to deploy the chart in different releases inside the namespace, editing certain settings between releases. The credential should be stored in secrets that are release independent so that there is only one instance of each secret in the namespace even if multiple releases are using them.
I would like to include a subchart that deploys the secrets as a dependency in the main chart and only install the resources if they have not been installed before.
I was looking at this question which uses conditions for its dependencies, but they are set as values. Is there a way to make the subchart only deploy if there is not already a set of resources with the names present? Or would it be possible for the subchart to be its own release and only redeployed if there was a mismatch in version?