Skip to content

Commit f7aba2a

Browse files
authored
chore: Allow to configure subPaths for metastore and shared (#4476)
This allows to adapt those variables, without fullly patching them out. That's used GL internal, as we started of with a subPath of "metastore".
1 parent 6980023 commit f7aba2a

File tree

4 files changed

+18
-2
lines changed

4 files changed

+18
-2
lines changed

operations/pyroscope/helm/pyroscope/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
| pyroscope.persistence.accessModes[0] | string | `"ReadWriteOnce"` | |
7272
| pyroscope.persistence.annotations | object | `{}` | |
7373
| pyroscope.persistence.enabled | bool | `false` | |
74+
| pyroscope.persistence.metastore.subPath | string | `".metastore"` | |
75+
| pyroscope.persistence.shared.subPath | string | `".shared"` | |
7476
| pyroscope.persistence.size | string | `"10Gi"` | |
7577
| pyroscope.podAnnotations."profiles.grafana.com/cpu.port_name" | string | `"http2"` | |
7678
| pyroscope.podAnnotations."profiles.grafana.com/cpu.scrape" | string | `"true"` | |

operations/pyroscope/helm/pyroscope/templates/deployments-statefulsets.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ spec:
214214
{{- if $hasV2 }}
215215
- name: data
216216
mountPath: /data-shared
217-
subPath: .shared
217+
subPath: {{ $values.persistence.shared.subPath }}
218218
{{- end }}
219219
{{- if $isMetastore }}
220220
- name: data
221221
mountPath: /data-metastore
222-
subPath: .metastore
222+
subPath: {{ $values.persistence.metastore.subPath }}
223223
{{- end }}
224224
{{- with $values.extraVolumeMounts }}
225225
{{- toYaml . | nindent 12 }}

operations/pyroscope/helm/pyroscope/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,14 @@ pyroscope:
144144
# subPath: ""
145145
# existingClaim:
146146

147+
metastore:
148+
# subPath to use of the data volume for the metastore persistence.
149+
subPath: .metastore
150+
151+
shared:
152+
# subPath to use of the data volume for the shared storage used as bucket replacement.
153+
subPath: .shared
154+
147155
extraVolumes:
148156
[]
149157
# - name: backup-volume

operations/pyroscope/jsonnet/values.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@
414414
],
415415
"annotations": {},
416416
"enabled": false,
417+
"metastore": {
418+
"subPath": ".metastore"
419+
},
420+
"shared": {
421+
"subPath": ".shared"
422+
},
417423
"size": "10Gi"
418424
},
419425
"podAnnotations": {

0 commit comments

Comments
 (0)