Skip to content

Commit babda96

Browse files
committed
[rollout-operator] Handle fullnameOverride in webhooks self-signed-cert
Add handling of fullnameOverride to the webhooks self-signed-cert, so the SAN matches the service name. Signed-off-by: yetisage <[email protected]>
1 parent 24bcd88 commit babda96

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

charts/rollout-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: rollout-operator
33
description: "Grafana rollout-operator"
44
type: application
5-
version: 0.33.1
5+
version: 0.33.2
66
appVersion: v0.29.0
77
home: https://github.com/grafana/rollout-operator
88
kubeVersion: ^1.10.0-0

charts/rollout-operator/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ spec:
5454
{{- if .Values.webhooks.enabled }}
5555
- -server-tls.enabled=true
5656
- -server-tls.self-signed-cert.secret-name={{ .Values.webhooks.selfSignedCertSecretName }}
57+
{{- if .Values.fullnameOverride }}
58+
- -server-tls.self-signed-cert.dns-name={{ include "rollout-operator.fullname" .}}.{{ .Release.Namespace }}.svc
59+
{{- end }}
5760
{{- end }}
5861
{{- range .Values.extraArgs }}
5962
- {{ . }}

0 commit comments

Comments
 (0)