ansible-create-k8s-user/templates/role-binding.j2

13 lines
325 B
Plaintext
Raw Normal View History

2023-03-11 17:18:57 +00:00
apiVersion: rbac.authorization.k8s.io/v1
kind: {{ binding_type}}
metadata:
name: {{ username }}
namespace: {{ k8s_namespace | default("default") }}
subjects:
- kind: User
name: {{ username }}
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: {{ role_type }}
name: {{ role }}
apiGroup: rbac.authorization.k8s.io