Skip to content

Commit

Permalink
fix(cert manager): Fix manifest if cert_manager_trusted_internal_ca i…
Browse files Browse the repository at this point in the history
…s provided (#9922)
  • Loading branch information
peschmae authored Mar 27, 2023
1 parent 4020a93 commit dcc04e5
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,17 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
{% if cert_manager_trusted_internal_ca is defined %}
volumeMounts:
- mountPath: /etc/ssl/certs/internal-ca.pem
name: ca-internal-truststore
subPath: internal-ca.pem
volumes:
- configMap:
defaultMode: 420
name: ca-internal-truststore
name: ca-internal-truststore
{% endif %}
{% if cert_manager_tolerations %}
tolerations:
{{ cert_manager_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
Expand All @@ -983,17 +994,6 @@ spec:
dnsConfig:
{{ cert_manager_dns_config | to_nice_yaml | indent(width=8) }}
{% endif %}
{% if cert_manager_trusted_internal_ca is defined %}
volumeMounts:
- mountPath: /etc/ssl/certs/internal-ca.pem
name: ca-internal-truststore
subPath: internal-ca.pem
volumes:
- configMap:
defaultMode: 420
name: ca-internal-truststore
name: ca-internal-truststore
{% endif %}
---
# Source: cert-manager/deploy/charts/cert-manager/templates/webhook-deployment.yaml
apiVersion: apps/v1
Expand Down

0 comments on commit dcc04e5

Please sign in to comment.