Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

hlf-peer: multi channel support #15321

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/hlf-peer/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.2.6
version: 1.2.7
appVersion: 1.3.0
keywords:
- blockchain
Expand Down
2 changes: 1 addition & 1 deletion stable/hlf-peer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ The following table lists the configurable parameters of the Hyperledger Fabric
| `secrets.peer.tlsRootCert` | TLS root CA certificate: as 'cert.pem' | `` |
| `secrets.peer.tlsClient` | TLS client secret: as 'tls.crt' and 'tls.key' | `` |
| `secrets.peer.tlsClientRootCerts` | TLS Client root CA certificate files (any name) | `` |
| `secrets.channel` | Secret containing Channel tx for peer to create/join | `` |
| `secrets.channels` | Array of secrets containing channel creation file | `` |
| `secrets.adminCert` | Secret containing Peer Org admin certificate | `` |
| `secrets.adminCert` | Secret containing Peer Org admin private key | `` |
| `secrets.ordTlsRootCert` | Secret containing Orderer TLS root CA certificate | `` |
Expand Down
16 changes: 10 additions & 6 deletions stable/hlf-peer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ spec:
secret:
secretName: {{ .Values.secrets.peer.tlsClientRootCert }}
{{- end }}
{{- if .Values.secrets.channel }}
- name: channel
{{- if .Values.secrets.channels }}
{{- range .Values.secrets.channels }}
- name: {{ . }}
secret:
secretName: {{ .Values.secrets.channel }}
secretName: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.secrets.adminCert }}
- name: admin-cert
Expand Down Expand Up @@ -201,9 +203,11 @@ spec:
- mountPath: /var/hyperledger/tls/ord/cert
name: ord-tls-rootcert
{{- end }}
{{- if .Values.secrets.channel }}
- mountPath: /hl_config/channel
name: channel
{{- if .Values.secrets.channels }}
{{- range .Values.secrets.channels }}
- mountPath: /hl_config/channel/{{ . }}
name: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.secrets.adminCert }}
- mountPath: /var/hyperledger/admin_msp/admincerts
Expand Down
4 changes: 3 additions & 1 deletion stable/hlf-peer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ secrets:
# tlsClientRootCerts: hlf--ord-tlsrootcert
## This should contain "channel" transaction derived from a configtx.yaml
## configtxgen -profile ComposerChannel -channelID composerchannel -outputCreateChannelTx composerchannel.tx
# channel: hlf--channel
# channels:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@inzamam-iqbal, this update should be reflected in the README.md

# - foochannel
# - barchannel
## This should contain the Certificate of the Peer Organisation admin
## This is necessary to successfully run the peer
# adminCert: hlf--peer-admincert
Expand Down