Skip to content

Commit 7065837

Browse files
Merge pull request #356 from kaleido-io/helm-fabric-support
[helm] Fabconnect Support
2 parents a29e989 + 3735920 commit 7065837

File tree

6 files changed

+78
-4
lines changed

6 files changed

+78
-4
lines changed

deploy/charts/firefly/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: firefly
33
description: A Helm chart for deploying FireFly and FireFly HTTPS Dataexchange onto Kubernetes.
44
type: application
5-
appVersion: "0.11.1"
5+
appVersion: "0.11.2"
66
version: "0.1.0"
77

88
maintainers:
File renamed without changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
config:
2+
debugEnabled: true
3+
adminEnabled: true
4+
preInit: true
5+
6+
organizationName: "firefly-os"
7+
organizationKey: "firefly-os"
8+
9+
fabconnectUrl: "http://fabconnect.firefly-os"
10+
11+
postgresUrl: "postgres://postgres:[email protected]:5432?sslmode=disable"
12+
postgresAutomigrate: true
13+
14+
ipfsApiUrl: "http://ipfs.firefly-os:5001"
15+
ipfsGatewayUrl: "http://ipfs.firefly-os:8080"
16+
17+
dataexchange:
18+
certificate:
19+
enabled: true
20+
issuerRef:
21+
kind: ClusterIssuer
22+
name: selfsigned-ca
23+
24+
tlsSecret:
25+
enabled: false

deploy/charts/firefly/templates/_helpers.tpl

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ blockchain:
119119
ethconnect:
120120
url: {{ tpl .Values.config.ethconnectUrl . }}
121121
instance: {{ .Values.config.fireflyContractAddress }}
122-
topic: "0" # TODO should likely be configurable
122+
topic: {{ .Values.config.ethconnectTopic | quote }}
123+
retry:
124+
enable: {{ .Values.config.ethconnectRetry }}
123125
{{- if and .Values.config.ethconnectUsername .Values.config.ethconnectPassword }}
124126
auth:
125127
username: {{ .Values.config.ethconnectUsername | quote }}
@@ -131,6 +133,23 @@ blockchain:
131133
{{- if .Values.config.ethconnectPrefixLong }}
132134
prefixLong: {{ .Values.config.ethconnectPrefixLong }}
133135
{{- end }}
136+
{{- else if .Values.config.fabconnectUrl }}
137+
blockchain:
138+
type: fabric
139+
fabric:
140+
fabconnect:
141+
url: {{ tpl .Values.config.fabconnectUrl . }}
142+
{{- if and .Values.config.fabconnectUsername .Values.config.fabconnectPassword }}
143+
auth:
144+
username: {{ .Values.config.fabconnectUsername | quote }}
145+
password: {{ .Values.config.fabconnectPassword | quote }}
146+
{{- end }}
147+
retry:
148+
enable: {{ .Values.config.fabconnectRetry }}
149+
channel: {{ .Values.config.fabconnectChannel | quote }}
150+
chaincode: {{ .Values.config.fireflyChaincode | quote }}
151+
topic: {{ .Values.config.fabconnectTopic | quote }}
152+
signer: {{ .Values.config.fabconnectSigner | quote }}
134153
{{- end }}
135154
{{- if .Values.config.databaseOverride }}
136155
database:

deploy/charts/firefly/templates/core/secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
{{- include "firefly.coreLabels" . | nindent 4 }}
77
stringData:
8-
{{- if and .Values.config.postgresUrl .Values.config.postgresMigrationJob -}}
8+
{{- if and .Values.config.postgresUrl .Values.config.postgresMigrationJob }}
99
psql_url: {{ tpl .Values.config.postgresUrl . }}
1010
{{- end }}
1111
firefly.core: |

deploy/charts/firefly/values.yaml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ config:
1919
# The name of the organization the FireFly node belongs to
2020
organizationName: ""
2121

22-
# The blockchain signing key of the organization e.g. the Ethereum account address
22+
# The blockchain signing key of the organization e.g. the Ethereum account address or the Fabric membership
2323
organizationKey: ""
2424

2525
# The Ethereum address of the pre-deployed FireFly smart contract
2626
fireflyContractAddress: "/instances/contractAddress"
2727

28+
# The name of the Fabric chaincode deployment for the FireFly chaincode
29+
fireflyChaincode: firefly_go
30+
2831
# The Postgres URL (including credentials and DB) for FireFly to for the database plugin
2932
postgresUrl: ""
3033

@@ -67,12 +70,39 @@ config:
6770
# The basic auth password to use for authenticating to Ethconnect
6871
ethconnectPassword: ""
6972

73+
# Enables retries when communicating with Ethconnect
74+
ethconnectRetry: true
75+
76+
# The Ethconnect topic to use for blockchain event subscriptions
77+
ethconnectTopic: 0
78+
7079
# The short prefix FireFly will prepend to certain headers it sends to Ethconnect i.e. ff or kld
7180
ethconnectPrefixShort: ""
7281

7382
# The long prefix FireFly will prepend to certain headers it sends to Ethconnect i.e. FireFly or Kaleido
7483
ethconnectPrefixLong: ""
7584

85+
# The URL of the Fabconnect API and WS server to use for the blockchain plugin of type `fabric`
86+
fabconnectUrl: ""
87+
88+
# The Fabric channel to use when communicating with peers and running chaincodes
89+
fabconnectChannel: default-channel
90+
91+
# Enables retries when communicating with Fabconnect
92+
fabconnectRetry: true
93+
94+
# The basic auth username to use for authenticating to Fabconnect
95+
fabconnectUsername: ""
96+
97+
# The basic auth password to use for authenticating to Fabconnect
98+
fabconnectPassword: ""
99+
100+
# The Fabconnect topic to use for blockchain event subscriptions
101+
fabconnectTopic: 0
102+
103+
# The Fabric to use for signing transactions, must be pre-registered and enrolled
104+
fabconnectSigner: ""
105+
76106
# Whether to use a Job to perform auto-registration of the FireFly runtime.
77107
# Note registration will not be successful until the new node has caught up with the head of the chain.
78108
registrationJob: false

0 commit comments

Comments
 (0)