meshtlsauthentications are now generated.

This commit is contained in:
erik committed 2025-01-19 22:05:14 +01:00
1 parent ef99ad61e8
commit f27f3610ab
3 files changed
+30 -6

No files matched your search

@@ -0,0 +1,17 @@
---
apiVersion: policy.linkerd.io/v1alpha1
kind: MeshTLSAuthentication
metadata:
name: {{ .Name }}
namespace: {{ .Namespace.Name }}
spec:
{{- if .ServiceAccounts }}
identityRefs:
{{- range $sa := .ServiceAccounts }}
- kind: ServiceAccount
name: {{ $sa }}
{{- end }}
{{- else }}
fail (printf "no service accounts defined for app %s" .Name )
{{- end}}