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

[graphite] Feature/add additional labels and annotations for statefulset #467

Open
wants to merge 3 commits into
base: master
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 charts/graphite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
version: 2.0.0
version: 2.2.0
appVersion: "1.1.10-3"
description: Graphite metrics server
name: graphite
Expand Down
2 changes: 2 additions & 0 deletions charts/graphite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ The following table lists the configurable parameters of the Graphite chart and
| `ingress.path` | Ingress path | `/` |
| `ingress.hosts` | Ingress hosts | `[]` |
| `ingress.tls` | Ingress TLS | `[]` |
| `statefulset.annotations` | Statefulset annotations | `{}` |
| `statefulset.labels` | Statefulset labels | `{}` |
| `resources` | Resources | `{}` |
| `nodeSelector` | NodeSelector | `{}` |
| `tolerations` | Tolerations | `[]` |
Expand Down
7 changes: 7 additions & 0 deletions charts/graphite/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ metadata:
helm.sh/chart: {{ include "graphite.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.statefulset.labels }}
{{ toYaml .Values.statefulset.labels | indent 4 }}
{{- end }}
{{- with .Values.statefulset.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
updateStrategy:
type: RollingUpdate
Expand Down
4 changes: 4 additions & 0 deletions charts/graphite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ ingress:
# hosts:
# - chart-example.local

statefulset:
labels: {}
annotations: {}

env: {}
# - name: example-name
# value: example-value
Expand Down