'How to solve helm error: "did not find expected '-' indicator"?
I am trying to deploy a certain node with helm but before I install, I want to ensure the templating is correct hence I am attempting to run helm template . --debug and I have an error shown thus:
Error: YAML parse error on generic-node/templates/rosetta.yaml: error converting YAML to JSON: yaml: line 39: did not find expected '-' indicator
helm.go:84: [debug] error converting YAML to JSON: yaml: line 39: did not find expected '-' indicator
`
The section with the error is shown thus:
- name: ***
valueFrom:
secretKeyRef:
name: "generic-node-devnet-bp-key"
key: password
- name: ****
valueFrom:
secretKeyRef:
name: "generic-node-devnet-bp-key"
key: password
And the key for **** is the line 39, I do not know why it is flagging, could someone help?
Thanks
Solution 1:[1]
Look like you have an issue that lines have too many spaces. There are YAML checkers on the net, the following link may help you to verify your YAML. http://www.yamllint.com/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | newuserua_ext |
