constellation/internal/helm/charts/cilium/templates/hubble/tls-helm/relay-client-secret.yaml

22 lines
761 B
YAML
Raw Normal View History

2022-08-12 04:20:19 -04:00
{{- if and .Values.hubble.enabled .Values.hubble.tls.enabled .Values.hubble.tls.auto.enabled (eq .Values.hubble.tls.auto.method "helm") .Values.hubble.relay.enabled }}
{{- $_ := include "hubble-generate-certs.helm.setup-ca" . -}}
{{- $cn := "*.hubble-relay.cilium.io" }}
{{- $dns := list $cn }}
{{- $cert := genSignedCert $cn nil $dns (.Values.hubble.tls.auto.certValidityDuration | int) .ca -}}
---
apiVersion: v1
kind: Secret
metadata:
name: hubble-relay-client-certs
namespace: {{ .Release.Namespace }}
{{- with .Values.hubble.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
2022-08-12 04:20:19 -04:00
type: kubernetes.io/tls
data:
ca.crt: {{ .ca.Cert | b64enc }}
tls.crt: {{ $cert.Cert | b64enc }}
tls.key: {{ $cert.Key | b64enc }}
{{- end }}