13 lines
595 B
YAML
13 lines
595 B
YAML
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) (not .Values.clustermesh.apiserver.tls.auto.enabled) }}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: clustermesh-apiserver-admin-cert
|
|
namespace: {{ .Release.Namespace }}
|
|
type: kubernetes.io/tls
|
|
data:
|
|
ca.crt: {{ .Values.clustermesh.apiserver.tls.ca.cert }}
|
|
tls.crt: {{ .Values.clustermesh.apiserver.tls.admin.cert | required "missing clustermesh.apiserver.tls.admin.cert" }}
|
|
tls.key: {{ .Values.clustermesh.apiserver.tls.admin.key | required "missing clustermesh.apiserver.tls.admin.key" }}
|
|
{{- end }}
|