From be4dc1b656789de5b23a768fc8f4ddf11a98c3d9 Mon Sep 17 00:00:00 2001 From: jw2k17 <43818692+jw2k17@users.noreply.github.com> Date: Wed, 13 Mar 2024 11:36:34 -0400 Subject: [PATCH] adding [annotations] directly to the top [metadata] section of the deployment yaml template (#50) * adding [annotations] directly to the top [metadata] section of the deployment yaml template * adding [annotations] directly to the top [metadata] section of the deployment yaml template if [annotations] available * Update chart version --------- Co-authored-by: gwang Co-authored-by: Cristian Greco --- charts/yet-another-cloudwatch-exporter/Chart.yaml | 2 +- charts/yet-another-cloudwatch-exporter/README.md | 2 +- .../yet-another-cloudwatch-exporter/templates/deployment.yaml | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/yet-another-cloudwatch-exporter/Chart.yaml b/charts/yet-another-cloudwatch-exporter/Chart.yaml index 41163fc..d00bb0e 100644 --- a/charts/yet-another-cloudwatch-exporter/Chart.yaml +++ b/charts/yet-another-cloudwatch-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: yet-another-cloudwatch-exporter description: Yace - Yet Another CloudWatch Exporter type: application -version: 0.30.0 +version: 0.31.0 appVersion: "v0.57.1" home: https://github.com/nerdswords/helm-charts sources: diff --git a/charts/yet-another-cloudwatch-exporter/README.md b/charts/yet-another-cloudwatch-exporter/README.md index 17ac7cd..e6fe3f2 100644 --- a/charts/yet-another-cloudwatch-exporter/README.md +++ b/charts/yet-another-cloudwatch-exporter/README.md @@ -1,6 +1,6 @@ # yet-another-cloudwatch-exporter -![Version: 0.30.0](https://img.shields.io/badge/Version-0.30.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.57.1](https://img.shields.io/badge/AppVersion-v0.57.1-informational?style=flat-square) +![Version: 0.31.0](https://img.shields.io/badge/Version-0.31.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.57.1](https://img.shields.io/badge/AppVersion-v0.57.1-informational?style=flat-square) Yace - Yet Another CloudWatch Exporter diff --git a/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml b/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml index 76c8d72..508f260 100644 --- a/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml +++ b/charts/yet-another-cloudwatch-exporter/templates/deployment.yaml @@ -5,6 +5,10 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "yet-another-cloudwatch-exporter.labels" . | nindent 4 }} + {{- with .Values.podAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: