Skip to content

Commit 97fc880

Browse files
feat: add support for extra env vars (#35)
1 parent 10dda6e commit 97fc880

File tree

8 files changed

+34
-16
lines changed

8 files changed

+34
-16
lines changed

charts/request-ipfs/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
appVersion: 0.4.26
33
description: A Helm chart for a dedicated Request IPFS node
44
name: request-ipfs
5-
version: 0.6.11
5+
version: 0.6.12
66
keywords:
77
- request
88
- ipfs

charts/request-ipfs/README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,17 @@ $ helm install --name my-release request/request-ipfs
2828

2929
The following table lists the configurable parameters of the Request IPFS chart and their default values.
3030

31-
| Parameter | Description | Default |
32-
|------------------------|--------------------------------------------------------------------------------------------------|-------------------------------|
33-
| `replicaCount` | The amount of replicas to run | `1` |
31+
| Parameter | Description | Default |
32+
|------------------------|--------------------------------------------------------------------------------------------------|-----------------------------|
33+
| `replicaCount` | The amount of replicas to run | `1` |
3434
| `image.image` | The docker image for the dedicated IPFS node | `requestnetwork/request-ipfs` |
35-
| `image.tag` | The version tag for the dedicated IPFS node image | `0.4.26` |
36-
| `image.pullPolicy` | Dedicated IPFS node image pull policy | `Always` |
37-
| `swarm.loadBalancerIP` | Static IP address used by the load balancer (optional) | |
38-
| `swarm.externalIP` | Swarm address to announce to the network. Usually same as `ipfs.swarm.loadBalancerIP` (optional) | |
39-
| `identity.peerId` | The IPFS node PeerID (optional) | `` |
40-
| `identity.privateKey` | The IPFS node Private Key (optional) | `` |
35+
| `image.tag` | The version tag for the dedicated IPFS node image | `0.4.26` |
36+
| `image.pullPolicy` | Dedicated IPFS node image pull policy | `Always` |
37+
| `swarm.loadBalancerIP` | Static IP address used by the load balancer (optional) | `null` |
38+
| `swarm.externalIP` | Swarm address to announce to the network. Usually same as `ipfs.swarm.loadBalancerIP` (optional) | `null` |
39+
| `identity.peerId` | The IPFS node PeerID (optional) | `null` |
40+
| `identity.privateKey` | The IPFS node Private Key (optional) | `null` |
41+
| `extraEnvs` | Additional environment variables to pass down to the IPFS node (optional) | `{}` |
4142

4243
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
4344

charts/request-ipfs/templates/statefulSet.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ spec:
6767
name: {{ include "request-ipfs.fullname" . }}-secret
6868
key: ipfsPrivateKey
6969
{{- end }}
70+
# Set additional environment variables for the IPFS container
71+
{{- range $key, $value := .Values.extraEnv }}
72+
- name: {{ $key }}
73+
value: {{ tpl $value $ | quote }}
74+
{{- end }}
7075
resources:
7176
{{ toYaml .Values.resources | indent 10 }}
7277

@@ -82,7 +87,7 @@ spec:
8287
tolerations:
8388
{{- toYaml . | nindent 8 }}
8489
{{- end }}
85-
90+
8691
volumeClaimTemplates:
8792
# IPFS storage volume
8893
- metadata:

charts/request-ipfs/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ persistence:
4444
accessModes:
4545
- ReadWriteOnce
4646

47+
# Additional environment variables to be passed to the IPFS node
48+
extraEnv: {}
49+
4750
livenessProbe: {}
4851

4952
readinessProbe:

charts/request-node/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: 0.31.0
33
description: A Helm chart for Request Node
44
name: request-node
5-
version: 0.8.0
5+
version: 0.8.1
66
keywords:
77
- request
88
- ipfs

charts/request-node/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ The following table lists the configurable parameters of the Request Node chart
4242
| `ipfs.image.tag` | The version tag for the dedicated IPFS server image | `0.3.4` |
4343
| `ipfs.image.pullPolicy` | Dedicated IPFS server image pull policy | `Always` |
4444
| `ipfs.swarm.port` | Port to access the IPFS swarm | `4001` |
45-
| `ipfs.swarm.externalIP` | Swarm address to announce to the network (optional). Usually should be the same as `ipfs.swarm.service.loadBalancerIP` | |
45+
| `ipfs.swarm.externalIP` | Swarm address to announce to the network (optional). Usually should be the same as `ipfs.swarm.service.loadBalancerIP` | `null` |
4646
| `ipfs.swarm.service.enabled` | Whether to enable the load service to access to IPFS swarm | `true` |
4747
| `ipfs.swarm.service.type` | The service type to access the IPFS swarm | `LoadBalancer` |
48-
| `ipfs.swarm.service.loadBalancerIP` | Static IP address used by the load balancer (optional) | |
49-
| `ipfs.identity.peerId` | The IPFS node PeerID (optional) | |
50-
| `ipfs.identity.privateKey` | The IPFS node Private Key (optional) | |
48+
| `ipfs.swarm.service.loadBalancerIP` | Static IP address used by the load balancer (optional) | `null` |
49+
| `ipfs.identity.peerId` | The IPFS node PeerID (optional) | `null` |
50+
| `ipfs.identity.privateKey` | The IPFS node Private Key (optional) | `null` |
51+
| `ipfs.extraEnvs` | Additional environment variables to pass down to the IPFS node (optional) | `{}` |
52+
5153

5254
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
5355

charts/request-node/templates/statefulSet.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@ spec:
133133
name: {{ include "request-node.fullname" . }}-secret
134134
key: ipfsPrivateKey
135135
{{- end }}
136+
# Set additional environment variables for the IPFS container
137+
{{- range $key, $value := .Values.ipfs.extraEnv }}
138+
- name: {{ $key }}
139+
value: {{ tpl $value $ | quote }}
140+
{{- end }}
136141
resources:
137142
{{- toYaml .Values.resources.ipfs | nindent 12 }}
138143

charts/request-node/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ ipfs:
8787
service:
8888
type: ClusterIP
8989
port: 5001
90+
# Additional environment variables to be passed to the IPFS node
91+
extraEnv: {}
9092
livenessProbe: {}
9193
readinessProbe: {}
9294

0 commit comments

Comments
 (0)