diff --git a/hirosystems/bitcoin-core/Chart.yaml b/hirosystems/bitcoin-core/Chart.yaml index e42d7dc..e17bd99 100644 --- a/hirosystems/bitcoin-core/Chart.yaml +++ b/hirosystems/bitcoin-core/Chart.yaml @@ -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 diff --git a/hirosystems/bitcoin-core/templates/statefulset.yaml b/hirosystems/bitcoin-core/templates/statefulset.yaml index ca583ab..f9d621e 100644 --- a/hirosystems/bitcoin-core/templates/statefulset.yaml +++ b/hirosystems/bitcoin-core/templates/statefulset.yaml @@ -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 }} diff --git a/hirosystems/bitcoin-core/values.yaml b/hirosystems/bitcoin-core/values.yaml index 80bc608..0304b66 100644 --- a/hirosystems/bitcoin-core/values.yaml +++ b/hirosystems/bitcoin-core/values.yaml @@ -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/ ##