Files
truecharts/charts/stable/tailscale/templates/_secret.tpl
T
1447649093 feat(Tailscale): Move to stable and add How-To Guide (#3556)
* 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>
2022-08-24 10:31:34 +03:00

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 }}