From 724ea936ae85bcb0205069fb25839bc39db51f79 Mon Sep 17 00:00:00 2001 From: CharlieC3 <2747302+CharlieC3@users.noreply.github.com> Date: Mon, 15 Jul 2024 15:38:53 -0400 Subject: [PATCH] [stacks-blockchain]: fix statefulset annotation rendering --- hirosystems/stacks-blockchain/Chart.yaml | 2 +- .../stacks-blockchain/templates/statefulset.yaml | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/hirosystems/stacks-blockchain/Chart.yaml b/hirosystems/stacks-blockchain/Chart.yaml index 733e3ec..3702273 100644 --- a/hirosystems/stacks-blockchain/Chart.yaml +++ b/hirosystems/stacks-blockchain/Chart.yaml @@ -33,4 +33,4 @@ name: stacks-blockchain sources: - https://github.com/stacks-network/stacks-blockchain - https://docs.stacks.co/ -version: 2.1.0 +version: 2.1.1 diff --git a/hirosystems/stacks-blockchain/templates/statefulset.yaml b/hirosystems/stacks-blockchain/templates/statefulset.yaml index d7800c3..b7a945f 100644 --- a/hirosystems/stacks-blockchain/templates/statefulset.yaml +++ b/hirosystems/stacks-blockchain/templates/statefulset.yaml @@ -8,9 +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 }} - {{- include "common.tplvalues.render" ( dict "value" .Values.statefulsetAnnotations "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 }}