Improved documentation
The following topics have been described in the documentation webpage:
Network config as a Kubernetes secret
You can use the Network Config as a CRD to define the organizations that you want to use in your client application.
The following CRD will create a secret named org1-nc
in the default
namespace containing the network config for all the peers created in your Kubernetes Cluster.
Example application in Node.JS and GoLang
Examples on how to use the network config in Node.JS and GoLang are available in the following repositories:
Thanks to @adityajoshi12 for the contribution.
Kubectl Plugin 1.6.0
You can update to the latest version using krew
:
This new version includes:
getlatest
commandcalculatepackageid
command
Get latest version or sequence from chaincode
In case you need to get the last version or sequence in order to install a new version of the chaincode there's a command that will give you this information:
The sequence will be written to the file SEQUENCE.txt and the version will be written to the file VERSION.txt.
You can now increase sequence by one
And then, following the steps in the getting started to approve and commit the new version of the chaincode.
Calculate Package ID
If you're running a new version of the chaincode, you need to calculate the package id to approve the chaincode with the right packageId
.
To solve this, we created the calculatepackageid
command, which you can use to get the package id of the chaincode:
Then, with the Package ID and with the help of getlatest
command, you could approve and commit the chaincode:
And finally, commit:
CouchDB image configurable
You can now configure the image
, tag
and pullPolicy
of the CouchDB container, in case you want to run another CouchDB version or configure it.
More information on this topic is available on the documentation
Delete anchor peer
A new command has been added, delanchorpeer
, to delete an anchor peer in a specific channel.