apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: longhorn-data-restore-role
  namespace: longhorn-system
  annotations:
    kustomize.toolkit.fluxcd.io/prune: disabled
  labels:
    app: longhorn-data-restore
rules:
- apiGroups: [""] # "" indicates the core API group
  resources: ["secrets"]
  verbs: ["get", "watch", "create"]