mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-02-06 10:05:23 -05:00
![Moritz Sanft](/assets/img/avatar_default.png)
* cli: move internal packages Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: fix buildfiles Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix exclude dir Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * cli: move back libraries that will not be used by TF provider Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
21 lines
782 B
YAML
21 lines
782 B
YAML
{{- if and .Values.clustermesh.useAPIServer .Values.clustermesh.apiserver.tls.auto.enabled (eq .Values.clustermesh.apiserver.tls.auto.method "helm") }}
|
|
{{- $_ := include "cilium.ca.setup" . -}}
|
|
{{- $cn := include "clustermesh-apiserver-generate-certs.remote-common-name" . -}}
|
|
{{- $cert := genSignedCert $cn nil nil (.Values.clustermesh.apiserver.tls.auto.certValidityDuration | int) .commonCA -}}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: clustermesh-apiserver-remote-cert
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- with .Values.clustermesh.annotations }}
|
|
annotations:
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
type: kubernetes.io/tls
|
|
data:
|
|
ca.crt: {{ .commonCA.Cert | b64enc }}
|
|
tls.crt: {{ $cert.Cert | b64enc }}
|
|
tls.key: {{ $cert.Key | b64enc }}
|
|
{{- end }}
|