Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions charts/linkerd-control-plane/templates/config-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,25 @@ rules:
resources: ["configmaps"]
verbs: ["get"]
resourceNames: ["linkerd-config"]
{{- with .Values.configAccess }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: linkerd-config
namespace: {{ $.Release.Namespace }}
labels:
app.kubernetes.io/part-of: Linkerd
linkerd.io/control-plane-ns: {{$.Release.Namespace}}
{{- with $.Values.commonLabels }}{{ toYaml . | trim | nindent 4 }}{{- end }}
roleRef:
kind: Role
name: linkerd-config
apiGroup: rbac.authorization.k8s.io
subjects:
{{- range . }}
- kind: ServiceAccount
name: {{ .name }}
namespace: {{ .namespace }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/linkerd-control-plane/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -709,3 +709,9 @@ podMonitor:
egress:
# -- The namespace that is used to store egress configuration that affects all client workloads in the cluster
globalEgressNetworkNamespace: linkerd-egress

# -- List of additional service accounts with read access to the linkerd-config
# ConfigMap
configAccess:
#- name:
# namespace: