stack/kustomizations/forgejo/snapshots/rbac.yaml

43 lines
684 B
YAML
Raw Permalink Normal View History

2023-05-16 08:04:06 +00:00
apiVersion: v1
automountServiceAccountToken: true
kind: ServiceAccount
metadata:
name: forgejo-snapshot
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: forgejo-snapshot
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- apiGroups:
- snapshot.storage.k8s.io
resources:
- volumesnapshots
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: forgejo-snapshot
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: forgejo-snapshot
subjects:
- kind: ServiceAccount
name: forgejo-snapshot
namespace: default