fix(cert manager): Fix manifest if cert_manager_trusted_internal_ca is provided (#9922)
This commit is contained in:
committed by
GitHub
parent
4020a93d7e
commit
dcc04e54f3
@ -964,6 +964,17 @@ spec:
|
|||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
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 %}
|
{% if cert_manager_tolerations %}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{ cert_manager_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
{{ cert_manager_tolerations | to_nice_yaml(indent=2) | indent(width=8) }}
|
||||||
@ -983,17 +994,6 @@ spec:
|
|||||||
dnsConfig:
|
dnsConfig:
|
||||||
{{ cert_manager_dns_config | to_nice_yaml | indent(width=8) }}
|
{{ cert_manager_dns_config | to_nice_yaml | indent(width=8) }}
|
||||||
{% endif %}
|
{% 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
|
# Source: cert-manager/deploy/charts/cert-manager/templates/webhook-deployment.yaml
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
Reference in New Issue
Block a user