From 789feec8319a4ad34bac6f251b808ceaabe61a27 Mon Sep 17 00:00:00 2001 From: Ivan Rosa <73159879+Ivan-Rosa@users.noreply.github.com> Date: Fri, 3 Jan 2025 16:06:12 +0100 Subject: [PATCH] conditionally add annotations key (#179) * conditionally add annotations key * update readme --------- Co-authored-by: Ivan Rosa --- helm/cert-exporter/Chart.yaml | 2 +- helm/cert-exporter/templates/cert-manager/cert-manager.yaml | 2 ++ readme.md | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helm/cert-exporter/Chart.yaml b/helm/cert-exporter/Chart.yaml index fb7d2a6..c99f987 100644 --- a/helm/cert-exporter/Chart.yaml +++ b/helm/cert-exporter/Chart.yaml @@ -3,5 +3,5 @@ name: cert-exporter description: Monitors and exposes PKI information as Prometheus metrics type: application -version: 3.9.0 +version: 3.10.0 appVersion: v2.14.0 diff --git a/helm/cert-exporter/templates/cert-manager/cert-manager.yaml b/helm/cert-exporter/templates/cert-manager/cert-manager.yaml index ed7325c..449be37 100644 --- a/helm/cert-exporter/templates/cert-manager/cert-manager.yaml +++ b/helm/cert-exporter/templates/cert-manager/cert-manager.yaml @@ -19,8 +19,10 @@ spec: {{- with .Values.certManager.additionalPodLabels }} {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.certManager.podAnnotations }} annotations: {{- toYaml .Values.certManager.podAnnotations | nindent 8 }} + {{- end }} spec: {{- with .Values.certManager.imagePullSecrets }} imagePullSecrets: diff --git a/readme.md b/readme.md index 13caba4..b601eb1 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # cert-exporter -[![Go Report Card](https://goreportcard.com/badge/github.com/joe-elliott/cert-exporter)](https://goreportcard.com/report/github.com/joe-elliott/cert-exporter) ![binary version](https://img.shields.io/badge/binary%20version-2.14.0-blue) ![helm version](https://img.shields.io/badge/helm%20version-3.9.0-blue) +[![Go Report Card](https://goreportcard.com/badge/github.com/joe-elliott/cert-exporter)](https://goreportcard.com/report/github.com/joe-elliott/cert-exporter) ![binary version](https://img.shields.io/badge/binary%20version-2.14.0-blue) ![helm version](https://img.shields.io/badge/helm%20version-3.10.0-blue) Kubernetes uses PKI certificates for authentication between all major components. These certs are critical for the operation of your cluster but are often opaque to an administrator. This application is designed to parse certificates and export expiration information for Prometheus to scrape.