1
0
Fork 0
mirror of synced 2024-11-19 15:25:36 -05:00
ovpn-admin/helm/templates/rbac.yaml

30 lines
616 B
YAML
Raw Normal View History

2022-01-29 07:47:26 -05:00
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
2022-11-09 14:48:08 -05:00
name: {{ include "ovpn-admin-chart.serviceAccountName" . }}
2022-01-29 07:47:26 -05:00
rules:
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- apiGroups:
- ""
resources:
- secrets
verbs:
- "*"
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
2022-11-09 14:48:08 -05:00
name: {{ include "ovpn-admin-chart.serviceAccountName" . }}
2022-01-29 07:47:26 -05:00
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
2022-11-09 14:48:08 -05:00
name: {{ include "ovpn-admin-chart.serviceAccountName" . }}
2022-01-29 07:47:26 -05:00
subjects:
- kind: ServiceAccount
2022-11-09 14:48:08 -05:00
name: {{ include "ovpn-admin-chart.serviceAccountName" . }}