From c3f8d3c8c733546af61bd5ea7f4777e175eb51fd Mon Sep 17 00:00:00 2001 From: ihiverlet Date: Fri, 26 Jan 2024 07:04:59 +0000 Subject: [PATCH] argo-cd add use of certmanager --- charts/argo-cd/Chart.yaml | 4 ++-- charts/argo-cd/templates/ingress.yaml | 3 +++ charts/argo-cd/values.yaml | 2 ++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/charts/argo-cd/Chart.yaml b/charts/argo-cd/Chart.yaml index 8b0973a..19c722b 100644 --- a/charts/argo-cd/Chart.yaml +++ b/charts/argo-cd/Chart.yaml @@ -24,7 +24,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.4 +version: 0.5.5 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to @@ -35,5 +35,5 @@ dependencies: version: 5.51.4 repository: https://argoproj.github.io/argo-helm - name: library-chart - version: 1.5.14 + version: 1.5.19 repository: https://inseefrlab.github.io/helm-charts-interactive-services diff --git a/charts/argo-cd/templates/ingress.yaml b/charts/argo-cd/templates/ingress.yaml index 42518e3..c8e677c 100644 --- a/charts/argo-cd/templates/ingress.yaml +++ b/charts/argo-cd/templates/ingress.yaml @@ -13,6 +13,9 @@ spec: tls: - hosts: - {{ .Values.ingress.hostname | quote }} + {{- if .Values.ingress.useCertManager }} + secretName: tls-cert-{{ include "library-chart.fullname" . }} + {{- end }} {{- end }} rules: - host: {{ .Values.ingress.hostname | quote }} diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index b8ee7b2..5ac0b6f 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -15,6 +15,8 @@ ingress: # - secretName: chart-example-tls # hosts: # - chart-example.local + useCertManager: false + certManagerClusterIssuer: "" route: enabled: false