From dc29c612caf4c7c7115be15f765f8efe82b0b620 Mon Sep 17 00:00:00 2001 From: Kruchkov Alexandr Date: Mon, 27 Jan 2025 18:53:34 +0100 Subject: [PATCH 1/2] add namespace to chart, support for custom namespace --- helm/cert-exporter/templates/cert-manager/cert-manager.yaml | 1 + helm/cert-exporter/templates/cert-manager/service.yaml | 1 + helm/cert-exporter/values.yaml | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/cert-exporter/templates/cert-manager/cert-manager.yaml b/helm/cert-exporter/templates/cert-manager/cert-manager.yaml index 449be37..bbdcb7a 100644 --- a/helm/cert-exporter/templates/cert-manager/cert-manager.yaml +++ b/helm/cert-exporter/templates/cert-manager/cert-manager.yaml @@ -3,6 +3,7 @@ apiVersion: apps/v1 kind: {{ .Values.certManager.kind }} metadata: name: "{{- include "cert-exporter.fullname" . -}}-cert-manager" + namespace: {{ .Values.certManager.namespace }} labels: {{- include "cert-exporter.certManagerLabels" . | nindent 4 }} spec: diff --git a/helm/cert-exporter/templates/cert-manager/service.yaml b/helm/cert-exporter/templates/cert-manager/service.yaml index 3190f08..3f4c3d1 100644 --- a/helm/cert-exporter/templates/cert-manager/service.yaml +++ b/helm/cert-exporter/templates/cert-manager/service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: {{ include "cert-exporter.fullname" . }} + namespace: {{ .Values.certManager.namespace }} labels: {{- include "cert-exporter.certManagerLabels" . | nindent 4 }} {{- with .Values.service.annotations }} diff --git a/helm/cert-exporter/values.yaml b/helm/cert-exporter/values.yaml index c6bbd8f..65ccb7f 100644 --- a/helm/cert-exporter/values.yaml +++ b/helm/cert-exporter/values.yaml @@ -1,6 +1,7 @@ certManager: # DaemonSet or Deployment kind: Deployment + namespace: monitoring replicaCount: 1 # Adds additional labels to pods additionalPodLabels: {} @@ -10,7 +11,7 @@ certManager: image: repository: joeelliott/cert-exporter # The default tag is ".Chart.AppVersion", only set "tag" to override that - tag: + tag: pullPolicy: IfNotPresent command: ["./app"] args: From 260aa6a97e7d3529d90749a99b4baa8aa35ad7a5 Mon Sep 17 00:00:00 2001 From: Kruchkov Alexandr Date: Mon, 27 Jan 2025 18:58:06 +0100 Subject: [PATCH 2/2] bump version --- helm/cert-exporter/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/cert-exporter/Chart.yaml b/helm/cert-exporter/Chart.yaml index c99f987..b6917df 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.10.0 +version: 3.10.1 appVersion: v2.14.0