From 6e4fb6c652349c706b101fb8c9cad4871e265a24 Mon Sep 17 00:00:00 2001 From: treydock Date: Thu, 13 Jun 2024 10:12:13 -0400 Subject: [PATCH] Cleanup old cert secret (#258) --- charts/webservice/Chart.yaml | 2 +- charts/webservice/templates/hooks/remove-auth-ingress.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/webservice/Chart.yaml b/charts/webservice/Chart.yaml index 277912a..902bc08 100644 --- a/charts/webservice/Chart.yaml +++ b/charts/webservice/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: webservice description: OSC webservice bootstrap Helm Chart type: application -version: 0.36.0 +version: 0.36.1 appVersion: "0.1.0" maintainers: - name: treydock diff --git a/charts/webservice/templates/hooks/remove-auth-ingress.yaml b/charts/webservice/templates/hooks/remove-auth-ingress.yaml index e2a43e9..129ce39 100644 --- a/charts/webservice/templates/hooks/remove-auth-ingress.yaml +++ b/charts/webservice/templates/hooks/remove-auth-ingress.yaml @@ -136,6 +136,9 @@ spec: - "delete" - "secret" - {{ include "webservice.auth.name" . }}-cert + {{- range $container := .Values.containers }} + - {{ printf "%s-%s-cert" (include "webservice.name" $) (tpl $container.name $) | quote }} + {{- end }} - "--namespace={{ .Release.Namespace }}" - "--ignore-not-found=true" securityContext: