Skip to content

Commit 5ebd766

Browse files
authored
Add support for initContainers (#93)
1 parent 4098bfd commit 5ebd766

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

chart/pyroscope/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: pyroscope
33
description: A Helm chart for Pyroscope
44
type: application
5-
version: 0.2.74
5+
version: 0.2.75
66
appVersion: "0.33.0"

chart/pyroscope/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# pyroscope
22

3-
![Version: 0.2.74](https://img.shields.io/badge/Version-0.2.74-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.33.0](https://img.shields.io/badge/AppVersion-0.33.0-informational?style=flat-square)
3+
![Version: 0.2.75](https://img.shields.io/badge/Version-0.2.75-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.33.0](https://img.shields.io/badge/AppVersion-0.33.0-informational?style=flat-square)
44

55
A Helm chart for Pyroscope
66

@@ -67,6 +67,7 @@ Please refer to [the documentation](https://pyroscope.io/docs/server-configurati
6767
| ingress.hosts | list | `[{"host":"chart-example.local","paths":[{"path":"/","pathType":"Prefix"}]}]` | Ingress accepted hostnames |
6868
| ingress.rules | list | `[]` | Ingress custom rules. Take precedence over chart built-ins. |
6969
| ingress.tls | list | `[]` | Ingress TLS configuration |
70+
| initContainers | list | `[]` | |
7071
| livenessProbe.enabled | bool | `true` | Enable Pyroscope server liveness |
7172
| livenessProbe.failureThreshold | int | `3` | Pyroscope server liveness check failure threshold |
7273
| livenessProbe.httpGet.path | string | `"/healthz"` | Pyroscope server liveness check path |

chart/pyroscope/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ spec:
2727
serviceAccountName: {{ include "pyroscope.serviceAccountName" . }}
2828
securityContext:
2929
{{- toYaml .Values.podSecurityContext | nindent 8 }}
30+
{{- with .Values.initContainers }}
31+
initContainers:
32+
{{- toYaml . | nindent 8 }}
33+
{{- end }}
3034
containers:
3135
- name: {{ .Chart.Name }}
3236
args:

chart/pyroscope/values.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,18 @@ ingress:
122122
deploymentStrategy:
123123
type: Recreate
124124

125+
initContainers: []
126+
# - name: volume-mount-fix
127+
# imagePullPolicy: Always
128+
# command:
129+
# image: busybox
130+
# - sh
131+
# - -c
132+
# - chmod 777 /var/lib/pyroscope && chown -R 101:101 /var/lib/pyroscope
133+
# volumeMounts:
134+
# - name: storage
135+
# mountPath: /var/lib/pyroscope
136+
125137
readinessProbe:
126138
# -- Enable Pyroscope server readiness
127139
enabled: true

0 commit comments

Comments
 (0)