policy-generator/cmd/policygen/templates/linkerd/application/meshtlsauthentication.yaml
Erik Brakkee cd4023f5ce emojivoto is working.
But... need to do major rework

only a single networkauthentication may be set
the required authenticationRefs in the authorization policy are anded
together so we should use a separate authorization policy for each
communication link
2025-01-25 12:44:01 +01:00

15 lines
321 B
YAML

---
apiVersion: policy.linkerd.io/v1alpha1
kind: MeshTLSAuthentication
metadata:
name: {{ .app.Name }}-p{{.port}}
namespace: {{ .app.Namespace.Name }}
spec:
identityRefs:
{{- range $sa := .serviceAccounts }}
- kind: ServiceAccount
name: {{ $sa.Name }}
namespace: {{ $sa.Namespace }}
{{- end }}