paritytech / helm-charts

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

[node] add params validation #353

Closed BulatSaif closed 2 months ago

BulatSaif commented 2 months ago

Fixes for: https://github.com/paritytech/helm-charts/issues/349

Changes:

Example of error:

# examples/local-rococo/bootnode.yaml
node:
  customNodeKey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  persistGeneratedNodeKey: true
helm upgrade --install bootnode . -f examples/local-rococo/bootnode.yaml
Error: UPGRADE FAILED: execution error at (node/templates/statefulset.yaml:7:3): Error: Only one of [ .Values.node.persistGeneratedNodeKey .Values.node.customNodeKey] can be set.

Fix: Remove either .Values.node.persistGeneratedNodeKey or .Values.node.customNodeKey from the custom values file (e.g., -f examples/local-rococo/bootnode.yaml).