{{with .Values -}} --- ### ### Proxy Injector RBAC ### --- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: linkerd-{{.Namespace}}-proxy-injector rules: - apiGroups: ["admissionregistration.k8s.io"] resources: ["mutatingwebhookconfigurations"] verbs: ["create", "get", "delete"] - apiGroups: [""] resources: ["namespaces"] verbs: ["list", "get", "watch"] - apiGroups: [""] resources: ["pods"] verbs: ["list"] - apiGroups: ["apps"] resources: ["replicasets"] verbs: ["list", "get", "watch"] --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: linkerd-{{.Namespace}}-proxy-injector subjects: - kind: ServiceAccount name: linkerd-proxy-injector namespace: {{.Namespace}} apiGroup: "" roleRef: kind: ClusterRole name: linkerd-{{.Namespace}}-proxy-injector apiGroup: rbac.authorization.k8s.io --- kind: ServiceAccount apiVersion: v1 metadata: name: linkerd-proxy-injector namespace: {{.Namespace}} {{end -}}