Skip to content
This repository was archived by the owner on Apr 25, 2023. It is now read-only.

Commit a1214b2

Browse files
committed
Fix mutatingwebhookconfiguration CA cert when cert-manager is enabled
1 parent c26fab5 commit a1214b2

File tree

1 file changed

+4
-0
lines changed
  • charts/kubefed/charts/controllermanager/templates

1 file changed

+4
-0
lines changed

charts/kubefed/charts/controllermanager/templates/webhook.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ metadata:
123123
{{- else }}
124124
name: mutation.core.kubefed.io
125125
{{- end }}
126+
annotations:
127+
{{- if .Values.certManager.enabled }}
128+
cert-manager.io/inject-ca-from: {{ printf "%s/%s%s" .Release.Namespace .Release.Name "-root-certificate" | quote }}
129+
{{- end }}
126130
webhooks:
127131
- name: kubefedconfigs.core.kubefed.io
128132
admissionReviewVersions:

0 commit comments

Comments
 (0)