Skip to content

Commit

Permalink
add extralabels to statefulset
Browse files Browse the repository at this point in the history
fix: update helm doc
  • Loading branch information
Julian-Chu authored and chomatdam committed Feb 15, 2025
1 parent b603fb7 commit 7415da9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/nidhogg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A Helm chart for Kubernetes
|-----|------|---------|-------------|
| affinity | object | `{}` | |
| configuration | object | `{"taintRemovalDelayInSeconds":5}` | Configuration for nidhogg |
| extraLabels | object | `{}` | |
| fullnameOverride | string | `""` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/pelotech/nidhogg"` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/nidhogg/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ metadata:
name: {{ include "nidhogg.fullname" . }}
labels:
{{- include "nidhogg.labels" . | nindent 4 }}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down
2 changes: 2 additions & 0 deletions charts/nidhogg/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

# StatefulSet additional labels
extraLabels: {}
podAnnotations: {}
podLabels: {}

Expand Down

0 comments on commit 7415da9

Please sign in to comment.