Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring labels on Pods #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion chart/pyroscope-ebpf/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: pyroscope-ebpf
description: A Helm chart for Pyroscope eBPF
type: application
version: 0.1.31
version: 0.1.32
appVersion: "0.37.2"
3 changes: 2 additions & 1 deletion chart/pyroscope-ebpf/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pyroscope-ebpf

![Version: 0.1.31](https://img.shields.io/badge/Version-0.1.31-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.37.2](https://img.shields.io/badge/AppVersion-0.37.2-informational?style=flat-square)
![Version: 0.1.32](https://img.shields.io/badge/Version-0.1.32-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.37.2](https://img.shields.io/badge/AppVersion-0.37.2-informational?style=flat-square)

A Helm chart for Pyroscope eBPF

Expand Down Expand Up @@ -42,6 +42,7 @@ helm delete my-release
| image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| image.repository | string | `"pyroscope/pyroscope"` | image to use for deploying |
| image.tag | string | `"0.37.2"` | Tag for pyroscope image to use |
| podLabels | object | `{}` | Additional labels to add on pods |
| serviceAccount.annotations | object | `{}` | ServiceAccount annotations |
| serviceAccount.create | bool | `true` | Create service account |
| serviceAccount.name | string | `""` | Service account name to use, when empty will be set to created account if serviceAccount.create is set else to default |
Expand Down
3 changes: 3 additions & 0 deletions chart/pyroscope-ebpf/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ spec:
metadata:
labels:
{{- include "pyroscope-ebpf.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.tolerations }}
tolerations:
Expand Down
3 changes: 3 additions & 0 deletions chart/pyroscope-ebpf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@ args:
- "--server-address"
- "http://pyroscope-server:4040"

# -- Additional labels to add on pods
podLabels: {}

# -- Name of the secret that will load environment vars from
# envFromSecret: ""
2 changes: 1 addition & 1 deletion chart/pyroscope/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: pyroscope
description: A Helm chart for Pyroscope
type: application
version: 0.2.92
version: 0.2.93
appVersion: "0.37.2"
3 changes: 2 additions & 1 deletion chart/pyroscope/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pyroscope

![Version: 0.2.92](https://img.shields.io/badge/Version-0.2.92-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.37.2](https://img.shields.io/badge/AppVersion-0.37.2-informational?style=flat-square)
![Version: 0.2.93](https://img.shields.io/badge/Version-0.2.93-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.37.2](https://img.shields.io/badge/AppVersion-0.37.2-informational?style=flat-square)

A Helm chart for Pyroscope

Expand Down Expand Up @@ -83,6 +83,7 @@ Please refer to [the documentation](https://pyroscope.io/docs/server-configurati
| persistence.finalizers | list | `["kubernetes.io/pvc-protection"]` | PersistentVolumeClaim finalizers |
| persistence.size | string | `"10Gi"` | Size of persistent volume claim |
| podAnnotations | object | `{}` | Pod annotations |
| podLabels | object | `{}` | Additional labels to add on pods |
| podSecurityContext | object | `{"fsGroup":101}` | Pod securityContext |
| pyroscopeConfigs | object | `{}` | Pyroscope server configuration. Please refer to https://pyroscope.io/docs/server-configuration |
| rbac.clusterRole.annotations | object | `{}` | Cluster role annotations |
Expand Down
6 changes: 5 additions & 1 deletion chart/pyroscope/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ spec:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels: {{- include "pyroscope.selectorLabels" . | nindent 8 }}
labels:
{{- include "pyroscope.selectorLabels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
3 changes: 3 additions & 0 deletions chart/pyroscope/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -220,3 +220,6 @@ rbac:
name: ""
# -- Cluster role binding annotations
annotations: {}

# -- Additional labels to add on pods
podLabels: {}