AlexRogalskiy/java-patterns

View on GitHub
k8s/secure/common/reconciler-rbac.yaml

Summary

Maintainability
Test Coverage
apiVersion: v1
kind: ServiceAccount
metadata:
  name: reconciler
  namespace: secure
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: reconciler
  namespace: secure
rules:
  - apiGroups: ['*']
    resources: ['*']
    verbs: ['*']
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: reconciler
  namespace: secure
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: reconciler
subjects:
  - kind: ServiceAccount
    name: reconciler
    namespace: secure