error unmarshaling JSON: while decoding JSON: json: unknown field "hostAliases"

11/18/2019

I am using PIVT repo and following scaled up raft network but when i run

helm template channel-flow/ -f samples/scaled-raft-tls/network.yaml -f samples/scaled-raft-tls/crypto-config.yaml -f samples/scaled-raft-tls/hostAliases.yaml | argo submit - --watch

I get this error : -

Failed to parse workflow: error unmarshaling JSON: while decoding JSON: json: unknown field "hostAliases"
-- Adarsha Jha
hyperledger
hyperledger-fabric
kubernetes

1 Answer

11/18/2019

After researching for few hours i found that it was a problem with my argo version i,e. earlier it was 2.2.0 and when i updated my argo to 2.4.2 by doing

sudo curl -sSL -o /usr/local/bin/argo https://github.com/argoproj/argo/releases/download/v2.4.1/argo-linux-amd64

sudo chmod +x /usr/local/bin/argo

It worked .

-- Adarsha Jha
Source: StackOverflow