rolebinding.j2 271 B

1234567891011121314
  1. apiVersion: v1
  2. kind: RoleBinding
  3. metadata:
  4. name: {{obj_name}}
  5. roleRef:
  6. {% if roleRef.kind is defined %}
  7. kind: {{ roleRef.kind }}
  8. {% endif %}
  9. name: {{ roleRef.name }}
  10. subjects:
  11. {% for sub in subjects %}
  12. - kind: {{ sub.kind }}
  13. name: {{ sub.name }}
  14. {% endfor %}