Skip to content

Commit b90b42e

Browse files
committed
Fix updating certificates in admission controller pod
On restart of admission controller pod old secret is still can be present in environemnt, so make sure secret is updated first. Change-Id: Ia54529eb8034f4a39220d984736cc9ff1599372a Related-Prod: https://mirantis.jira.com/browse/PRODX-50786
1 parent a2538cb commit b90b42e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

charts/rockoon/templates/admission-controller-tls-secret.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ kind: Secret
4040
metadata:
4141
name: {{ include "rockoon.fullname" . }}-admission-tls
4242
namespace: {{ .Release.Namespace }}
43+
annotations:
44+
"helm.sh/hook": "pre-install,pre-upgrade"
45+
"helm.sh/hook-weight": "3"
4346
data:
4447
{{- if empty .Values.admission.tls }}
4548
oac.crt: {{ $client.Cert | b64enc }}

0 commit comments

Comments
 (0)