CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/kubernetes/meterpreter/templates/rbac.yaml
Views: 11780
1
{{- if .Values.privileges.useServiceAccount -}}
2
apiVersion: v1
3
kind: ServiceAccount
4
metadata:
5
name: {{ include "meterpreter.fullname" . }}
6
labels:
7
{{- include "meterpreter.labels" . | nindent 4 }}
8
9
---
10
{{- if ne .Values.privileges.bindClusterRole "" -}}
11
apiVersion: rbac.authorization.k8s.io/v1
12
kind: RoleBinding
13
metadata:
14
name: {{ include "meterpreter.fullname" . }}
15
labels:
16
{{- include "meterpreter.labels" . | nindent 4 }}
17
roleRef:
18
apiGroup: rbac.authorization.k8s.io
19
kind: ClusterRole
20
name: {{ .Values.privileges.bindClusterRole }}
21
subjects:
22
- kind: ServiceAccount
23
name: {{ include "meterpreter.fullname" . }}
24
namespace: {{ .Release.Namespace }}
25
{{- end -}}
26
{{- end -}}
27
28