paritytech / helm-charts

Parity & Polkadot Helm charts collection
GNU General Public License v3.0
25 stars 22 forks source link

[node] add support for extraDerivation for existingSecrets. #351

Closed BulatSaif closed 1 month ago

BulatSaif commented 1 month ago

It is common practice for secrets to be created separately by a secret manager, and the Helm chart should accommodate this usage. Previously, it was only possible to configure the key for a single Substrate node, which limited the stateful set to a replica count of one.

This PR introduces the ability to use node.existingSecrets.extraDerivation, enabling the same seed key to be utilized across multiple nodes. Furthermore, it adds support for node.existingSecrets.nodeKey.appendPodIndex for node key secrets, allowing multiple node keys to be stored within the same Kubernetes secret.

Changes

  1. Added support for extraDerivation.
  2. Included an example for node.existingSecrets usage.