Skip to content
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 deploy/charts/firefly/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: firefly
description: A Helm chart for deploying FireFly and FireFly HTTPS Dataexchange onto Kubernetes.
type: application
appVersion: "0.11.1"
appVersion: "0.11.2"
version: "0.1.0"

maintainers:
Expand Down
25 changes: 25 additions & 0 deletions deploy/charts/firefly/ci/fab-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
config:
debugEnabled: true
adminEnabled: true
preInit: true

organizationName: "firefly-os"
organizationKey: "firefly-os"

fabconnectUrl: "http://fabconnect.firefly-os"

postgresUrl: "postgres://postgres:firef1y@postgresql.default.svc:5432?sslmode=disable"
postgresAutomigrate: true

ipfsApiUrl: "http://ipfs.firefly-os:5001"
ipfsGatewayUrl: "http://ipfs.firefly-os:8080"

dataexchange:
certificate:
enabled: true
issuerRef:
kind: ClusterIssuer
name: selfsigned-ca

tlsSecret:
enabled: false
21 changes: 20 additions & 1 deletion deploy/charts/firefly/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ blockchain:
ethconnect:
url: {{ tpl .Values.config.ethconnectUrl . }}
instance: {{ .Values.config.fireflyContractAddress }}
topic: "0" # TODO should likely be configurable
topic: {{ .Values.config.ethconnectTopic | quote }}
retry:
enable: {{ .Values.config.ethconnectRetry }}
{{- if and .Values.config.ethconnectUsername .Values.config.ethconnectPassword }}
auth:
username: {{ .Values.config.ethconnectUsername | quote }}
Expand All @@ -131,6 +133,23 @@ blockchain:
{{- if .Values.config.ethconnectPrefixLong }}
prefixLong: {{ .Values.config.ethconnectPrefixLong }}
{{- end }}
{{- else if .Values.config.fabconnectUrl }}
blockchain:
type: fabric
fabric:
fabconnect:
url: {{ tpl .Values.config.fabconnectUrl . }}
{{- if and .Values.config.fabconnectUsername .Values.config.fabconnectPassword }}
auth:
username: {{ .Values.config.fabconnectUsername | quote }}
password: {{ .Values.config.fabconnectPassword | quote }}
{{- end }}
retry:
enable: {{ .Values.config.fabconnectRetry }}
channel: {{ .Values.config.fabconnectChannel | quote }}
chaincode: {{ .Values.config.fireflyChaincode | quote }}
topic: {{ .Values.config.fabconnectTopic | quote }}
signer: {{ .Values.config.fabconnectSigner | quote }}
{{- end }}
{{- if .Values.config.databaseOverride }}
database:
Expand Down
2 changes: 1 addition & 1 deletion deploy/charts/firefly/templates/core/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "firefly.coreLabels" . | nindent 4 }}
stringData:
{{- if and .Values.config.postgresUrl .Values.config.postgresMigrationJob -}}
{{- if and .Values.config.postgresUrl .Values.config.postgresMigrationJob }}
psql_url: {{ tpl .Values.config.postgresUrl . }}
{{- end }}
firefly.core: |
Expand Down
32 changes: 31 additions & 1 deletion deploy/charts/firefly/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ config:
# The name of the organization the FireFly node belongs to
organizationName: ""

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

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

# The name of the Fabric chaincode deployment for the FireFly chaincode
fireflyChaincode: firefly_go

# The Postgres URL (including credentials and DB) for FireFly to for the database plugin
postgresUrl: ""

Expand Down Expand Up @@ -67,12 +70,39 @@ config:
# The basic auth password to use for authenticating to Ethconnect
ethconnectPassword: ""

# Enables retries when communicating with Ethconnect
ethconnectRetry: true

# The Ethconnect topic to use for blockchain event subscriptions
ethconnectTopic: 0

# The short prefix FireFly will prepend to certain headers it sends to Ethconnect i.e. ff or kld
ethconnectPrefixShort: ""

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

# The URL of the Fabconnect API and WS server to use for the blockchain plugin of type `fabric`
fabconnectUrl: ""

# The Fabric channel to use when communicating with peers and running chaincodes
fabconnectChannel: default-channel

# Enables retries when communicating with Fabconnect
fabconnectRetry: true

# The basic auth username to use for authenticating to Fabconnect
fabconnectUsername: ""

# The basic auth password to use for authenticating to Fabconnect
fabconnectPassword: ""

# The Fabconnect topic to use for blockchain event subscriptions
fabconnectTopic: 0

# The Fabric to use for signing transactions, must be pre-registered and enrolled
fabconnectSigner: ""

# Whether to use a Job to perform auto-registration of the FireFly runtime.
# Note registration will not be successful until the new node has caught up with the head of the chain.
registrationJob: false
Expand Down