{{with .Values -}} {{if .Identity -}} --- ### ### Identity Controller Service RBAC ### --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: linkerd-{{.Namespace}}-identity rules: - apiGroups: ["authentication.k8s.io"] resources: ["tokenreviews"] verbs: ["create"] --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1beta1 metadata: name: linkerd-{{.Namespace}}-identity roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: linkerd-{{.Namespace}}-identity subjects: - kind: ServiceAccount name: linkerd-identity namespace: {{.Namespace}} --- kind: ServiceAccount apiVersion: v1 metadata: name: linkerd-identity namespace: {{.Namespace}} {{end -}} {{end -}}