hyperledger-bevel / bevel-operator-fabric

Hyperledger Fabric Kubernetes operator - Hyperledger Fabric operator for Kubernetes (v2.3, v2.4 and v2.5, soon 3.0)
https://hyperledger-bevel.github.io/bevel-operator-fabric/
Apache License 2.0
278 stars 93 forks source link

Parameterize channels in network config #114

Closed ZappaBoy closed 2 years ago

ZappaBoy commented 2 years ago

Regarding #113

Creating a server to expose REST API I got this error:

Error: Failed to create Channel. channel name should match Regex /^[a-z][a-z0-9.-]*$/, but got _default

It seems that the underscore in _default is an unsupported symbol, so I solved renaming the default channel in default in all the project.

Also as noticed by @dviejokfs https://github.com/hyperledger-labs/hlf-operator/pull/113#issuecomment-1231823243: We should parameterized the channels in the resultant network config. The _default channel is useful for GoLang applications, but for Node.JS applications it fails.

dviejokfs commented 2 years ago

@ZappaBoy This is available using the --channels flag in the inspect command in v1.8.0