From ca0424cc298655d62eba3e8913b7881aac1733e0 Mon Sep 17 00:00:00 2001 From: deantchi <21262275+deantchi@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:44:07 -0700 Subject: [PATCH] [bitcoin-core]: enable labels on pvcs --- hirosystems/bitcoin-core/Chart.yaml | 2 +- hirosystems/bitcoin-core/templates/statefulset.yaml | 10 +++++++--- hirosystems/bitcoin-core/values.yaml | 3 +++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/hirosystems/bitcoin-core/Chart.yaml b/hirosystems/bitcoin-core/Chart.yaml index 9e96e3f..5067ad1 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.5 +version: 2.1.6 diff --git a/hirosystems/bitcoin-core/templates/statefulset.yaml b/hirosystems/bitcoin-core/templates/statefulset.yaml index f9d621e..9b87432 100644 --- a/hirosystems/bitcoin-core/templates/statefulset.yaml +++ b/hirosystems/bitcoin-core/templates/statefulset.yaml @@ -253,9 +253,13 @@ spec: {{- if .Values.commonAnnotations }} {{- include "common.tplvalues.render" (dict "value" .Values.commonAnnotations "context" $) | nindent 10 }} {{- end }} - {{- if .Values.commonLabels }} - labels: {{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 10 }} - {{- end }} + labels: + {{- if .Values.commonLabels}} + {{- include "common.tplvalues.render" (dict "value" .Values.commonLabels "context" $) | nindent 10}} + {{- end}} + {{- if .Values.persistence.labels}} + {{- include "common.tplvalues.render" (dict "value" .Values.persistence.labels "context" $) | nindent 10}} + {{- end}} spec: accessModes: {{- range .Values.persistence.accessModes }} diff --git a/hirosystems/bitcoin-core/values.yaml b/hirosystems/bitcoin-core/values.yaml index 3401d19..aca16a6 100644 --- a/hirosystems/bitcoin-core/values.yaml +++ b/hirosystems/bitcoin-core/values.yaml @@ -627,6 +627,9 @@ persistence: ## @param persistence.annotations Persistent Volume Claim annotations ## annotations: {} + ## @param persistence.annotations Persistent Volume Claim labels + ## + labels: {} ## @param persistence.accessModes Persistent Volume Access Modes ## accessModes: