Skip to content

Commit

Permalink
[stable/hlf-peer] Configure chaincode builder and chaincode runtime i…
Browse files Browse the repository at this point in the history
…mage (helm#23153)

Signed-off-by: AlexandrePicosson <alexandre.picosson@owkin.com>
  • Loading branch information
AlexandrePicosson authored and Ian Levesque committed Jul 13, 2020
1 parent 82586d7 commit ccfaf9c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stable/hlf-peer/Chart.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
description: Hyperledger Fabric Peer chart (these charts are created by AID:Tech and are currently not directly associated with the Hyperledger project)
name: hlf-peer
version: 1.3.0
version: 1.4.0
appVersion: 1.4.3
keywords:
- blockchain
Expand Down
6 changes: 5 additions & 1 deletion stable/hlf-peer/README.md
Expand Up @@ -74,7 +74,7 @@ The following table lists the configurable parameters of the Hyperledger Fabric
| Parameter | Description | Default |
| --------------------------------- | ------------------------------------------------- | ------------------------- |
| `image.repository` | `hlf-peer` image repository | `hyperledger/fabric-peer` |
| `image.tag` | `hlf-peer` image tag | `1.4.3` |
| `image.tag` | `hlf-peer` image tag | `1.4.3` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `service.portRequest` | TCP port for requests to Peer | `7051` |
| `service.portEvent` | TCP port for event service on Peer | `7053` |
Expand Down Expand Up @@ -107,6 +107,10 @@ The following table lists the configurable parameters of the Hyperledger Fabric
| `peer.gossip.useLeaderElection` | Gossip use leader election | `"true"` |
| `peer.tls.server.enabled` | Do we enable server-side TLS? | `false` |
| `peer.tls.client.enabled` | Do we enable client-side TLS? | `false` |
| `peer.chaincode.builder` | Image of the chaincode builder | `` |
| `peer.chaincode.runtime.golang` | Image of the chaincode runtime for Go | `` |
| `peer.chaincode.runtime.java` | Image of the chaincode runtime for Java | `` |
| `peer.chaincode.runtime.node` | Image of the chaincode runtime for Node.js | `` |
| `secrets.peer.cred` | Credentials: 'CA_USERNAME' and 'CA_PASSWORD' | `` |
| `secrets.peer.cert` | Certificate: as 'cert.pem' | `` |
| `secrets.peer.key` | Private key: as 'key.pem' | `` |
Expand Down
15 changes: 15 additions & 0 deletions stable/hlf-peer/templates/configmap--peer.yaml
Expand Up @@ -41,6 +41,21 @@ data:
CORE_PEER_GOSSIP_EXTERNALENDPOINT: {{ .Values.peer.gossip.externalEndpoint | quote }}
CORE_PEER_GOSSIP_ORGLEADER: {{ .Values.peer.gossip.orgLeader | quote }}
CORE_PEER_GOSSIP_USELEADERELECTION: {{ .Values.peer.gossip.useLeaderElection | quote }}
#############
# CHAINCODE #
#############
{{- if .Values.peer.chaincode.builder }}
CORE_CHAINCODE_BUILDER: {{ .Values.peer.chaincode.builder | quote }}
{{- end}}
{{- if .Values.peer.chaincode.runtime.golang }}
CORE_CHAINCODE_GOLANG_RUNTIME: {{ .Values.peer.chaincode.runtime.golang | quote }}
{{- end}}
{{- if .Values.peer.chaincode.runtime.java }}
CORE_CHAINCODE_JAVA_RUNTIME: {{ .Values.peer.chaincode.runtime.java | quote }}
{{- end}}
{{- if .Values.peer.chaincode.runtime.node }}
CORE_CHAINCODE_NODE_RUNTIME: {{ .Values.peer.chaincode.runtime.node | quote }}
{{- end}}
##########
# TLS #
##########
Expand Down
9 changes: 8 additions & 1 deletion stable/hlf-peer/values.yaml
Expand Up @@ -54,6 +54,7 @@ logging:
msp: warning
policies: warning


##################################
## Peer configuration options #
##################################
Expand All @@ -76,7 +77,13 @@ peer:
enabled: "false"
client:
enabled: "false"

chaincode:
# define the ccenv image used by the peer
builder: ""
runtime:
golang: ""
java: ""
node: ""
# Secrets references, empty by default, fill in with your secrets (particularly adminCert) or add Peer Admin certificate manually after launching chart.
secrets:
## These secrets should contain the Orderer crypto materials and credentials
Expand Down

0 comments on commit ccfaf9c

Please sign in to comment.