diff --git a/charts/netbird-operator/templates/webhook.yaml b/charts/netbird-operator/templates/webhook.yaml index 1637001..f84da72 100644 --- a/charts/netbird-operator/templates/webhook.yaml +++ b/charts/netbird-operator/templates/webhook.yaml @@ -122,6 +122,10 @@ spec: kind: Issuer name: {{ template "netbird-operator.fullname" . }}-selfsigned-issuer secretName: {{ template "netbird-operator.webhookCertSecret" . }} + {{- with .Values.webhook.certManagerPrivateKey }} + privateKey: + {{- toYaml . | nindent 4 }} + {{- end }} --- apiVersion: cert-manager.io/v1 kind: Issuer diff --git a/charts/netbird-operator/values.yaml b/charts/netbird-operator/values.yaml index 6d58cd5..bd6e8c4 100644 --- a/charts/netbird-operator/values.yaml +++ b/charts/netbird-operator/values.yaml @@ -16,6 +16,9 @@ webhook: # Use cert-manager to provision webhook certificates (recommended) enableCertManager: true + # Private key settings for the cert-manager Certificate, e.g. {algorithm: ECDSA, size: 256, rotationPolicy: Always} + certManagerPrivateKey: {} + # Narrow down validation and mutation webhooks namespaces namespaceSelectors: [] # - key: foo