Skip to content

Commit

Permalink
[bitcoin-core]: add statefulsetAnnotations property
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Jul 22, 2024
1 parent 6ace6f8 commit fc194c6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hirosystems/bitcoin-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ sources:
- https://github.com/bitcoin/bitcoin
- https://github.com/ruimarinho/docker-bitcoin-core
- https://bitcoin.org
version: 2.1.3
version: 2.1.4
10 changes: 8 additions & 2 deletions hirosystems/bitcoin-core/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ metadata:
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- if or .Values.statefulsetAnnotations .Values.commonAnnotations }}
annotations:
{{- if .Values.statefulsetAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.statefulsetAnnotations "context" $) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
Expand Down
4 changes: 4 additions & 0 deletions hirosystems/bitcoin-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ hostAliases: []
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
##
podLabels: {}
## @param statefulsetAnnotations Annotations for bitcoin-core StatefulSet
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
statefulsetAnnotations: {}
## @param podAnnotations Annotations for bitcoin-core pods
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
Expand Down

0 comments on commit fc194c6

Please sign in to comment.