From d10f147e55c3e6a4650bd169021e45f1952d474f Mon Sep 17 00:00:00 2001 From: "Aratz M. Lasa" Date: Thu, 11 Jul 2024 09:09:11 +0200 Subject: [PATCH] make podLabels optional --- charts/warpstream-agent/CHANGELOG.md | 6 ++++++ charts/warpstream-agent/Chart.yaml | 2 +- charts/warpstream-agent/templates/deployment.yaml | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/warpstream-agent/CHANGELOG.md b/charts/warpstream-agent/CHANGELOG.md index 1cb74e2..5c33c33 100644 --- a/charts/warpstream-agent/CHANGELOG.md +++ b/charts/warpstream-agent/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.13.3] - 2024-07-11 + +### Added + +- Make podLabels optional, from version 1.13.1 it it failed if it wasn't set at least one label. + ## [0.13.2] - 2024-07-05 ### Added diff --git a/charts/warpstream-agent/Chart.yaml b/charts/warpstream-agent/Chart.yaml index 374d50e..dd09fa6 100644 --- a/charts/warpstream-agent/Chart.yaml +++ b/charts/warpstream-agent/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: warpstream-agent description: WarpStream Agent for Kubernetes. type: application -version: 0.13.2 +version: 0.13.3 appVersion: v569 icon: https://avatars.githubusercontent.com/u/132156278 home: https://docs.warpstream.com/warpstream/ diff --git a/charts/warpstream-agent/templates/deployment.yaml b/charts/warpstream-agent/templates/deployment.yaml index ecc63f5..7986f30 100644 --- a/charts/warpstream-agent/templates/deployment.yaml +++ b/charts/warpstream-agent/templates/deployment.yaml @@ -26,7 +26,9 @@ spec: {{- end }} labels: {{- include "warpstream-agent.selectorLabels" . | nindent 8 }} - {{- toYaml .Values.podLabels | nindent 8 }} + {{- if not (empty .Values.podLabels) }} + {{- toYaml .Values.podLabels | nindent 8 }} + {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: