Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/whole-aliens-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"helm-charts": patch
---

feat: allow setting podLabels on hyperdx Pods
3 changes: 3 additions & 0 deletions charts/clickstack/templates/hyperdx/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
labels:
{{- include "clickstack.selectorLabels" . | nindent 8 }}
app: {{ include "clickstack.fullname" . }}
{{- with .Values.hyperdx.deployment.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
{{- if $podAnnotations }}
{{- with $podAnnotations }}
Expand Down
34 changes: 33 additions & 1 deletion charts/clickstack/tests/hyperdx-deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,39 @@ tests:
content:
environment: production
team: platform


- it: should add custom pod labels when podLabels is provided
set:
hyperdx:
deployment:
podLabels:
environment: production
team: platform
asserts:
- isSubset:
path: spec.template.metadata.labels
content:
environment: production
team: platform

- it: should keep deployment and pod labels separate
set:
hyperdx:
deployment:
labels:
example.com/scope: deployment
podLabels:
example.com/scope: pod
asserts:
- isSubset:
path: metadata.labels
content:
example.com/scope: deployment
- isSubset:
path: spec.template.metadata.labels
content:
example.com/scope: pod

- it: should add custom environment variables when provided
set:
hyperdx:
Expand Down
2 changes: 2 additions & 0 deletions charts/clickstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ hyperdx:
# podAnnotations takes precedence when both maps contain the same key.
annotations: {}
labels: {}
# Labels applied to the HyperDX pod template metadata.
podLabels: {}
env: []
# Additional init containers to run before the HyperDX container starts.
# Useful for fetching certificates, warming caches, or other startup tasks.
Expand Down
Loading