Skip to content

Commit

Permalink
ipfs-cluster: allow setting custom init containers (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylenet authored Nov 3, 2023
1 parent af54cf1 commit 8eaffaf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/ipfs-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: ipfs-cluster
description: Run ipfs cluster along with kubo (go-ipfs)
type: application
version: 0.1.11
version: 0.1.12
maintainers:
- name: skylenet
email: rafael@skyle.net
3 changes: 2 additions & 1 deletion charts/ipfs-cluster/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ipfs-cluster

![Version: 0.1.11](https://img.shields.io/badge/Version-0.1.11-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
![Version: 0.1.12](https://img.shields.io/badge/Version-0.1.12-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)

Run ipfs cluster along with kubo (go-ipfs)

Expand Down Expand Up @@ -40,6 +40,7 @@ Run ipfs cluster along with kubo (go-ipfs)
| ipfs.image.repository | string | `"ipfs/kubo"` | |
| ipfs.image.tag | string | `"latest"` | |
| ipfs.imagePullSecrets | list | `[]` | |
| ipfs.initContainers | list | `[]` | Additional init containers |
| ipfs.initScripts."001-peers.sh" | string | See `values.yaml` | Scripts that will run in an init container before the ipfs node starts. This is useful to setup some configuration parameters |
| ipfs.nameOverride | string | `""` | |
| ipfs.nodeSelector | object | `{}` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/ipfs-cluster/templates/ipfs.statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
securityContext:
{{- toYaml .Values.ipfs.podSecurityContext | nindent 8 }}
initContainers:
{{- if .Values.ipfs.initContainers }}
{{- toYaml .Values.ipfs.initContainers | nindent 8 }}
{{- end }}
{{- if .Values.p2pNodePort.enabled }}
- name: init-nodeport
image: "{{ .Values.p2pNodePort.initContainer.image.repository }}:{{ .Values.p2pNodePort.initContainer.image.tag }}"
Expand Down
2 changes: 2 additions & 0 deletions charts/ipfs-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ ipfs:
extraVolumes: []
# -- Additional env variables
extraEnv: []
# -- Additional init containers
initContainers: []
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down

0 comments on commit 8eaffaf

Please sign in to comment.