* feat(Tailscale): Move to stable and add How-To Guide * linting error * trying something to fix pre-commit * update md * pre-commit fix Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Co-authored-by: Stavros kois <s.kois@outlook.com>
20 lines
446 B
Smarty
20 lines
446 B
Smarty
{{/* Define the secret */}}
|
|
{{- define "tailscale.secret" -}}
|
|
|
|
{{- $secretName := printf "%s-tailscale-secret" (include "tc.common.names.fullname" .) }}
|
|
|
|
---
|
|
{{/* This secrets are loaded on tailscale */}}
|
|
apiVersion: v1
|
|
kind: Secret
|
|
type: Opaque
|
|
metadata:
|
|
name: {{ $secretName }}
|
|
labels:
|
|
{{- include "tc.common.labels" . | nindent 4 }}
|
|
data:
|
|
{{- with .Values.tailscale.authkey }}
|
|
TS_AUTH_KEY: {{ . | b64enc }}
|
|
{{- end }}
|
|
{{- end }}
|