blob: a9a24c15776674e1f4c5b716e4c59fab450b0936 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
apiVersion: v1
kind: {% if cluster is defined and cluster %}Cluster{% endif %}RoleBinding
metadata:
name: {{obj_name}}
{% if labels is defined %}
labels:
{% for k, v in labels.items() %}
{{ k }}: {{ v }}
{% endfor %}
{% endif %}
roleRef:
{% if 'kind' in roleRef %}
kind: {{ roleRef.kind }}
{% endif %}
name: {{ roleRef.name }}
subjects:
{% for sub in subjects %}
- kind: {{ sub.kind }}
name: {{ sub.name }}
{% if 'namespace' in sub %}
namespace: {{ sub.namespace }}
{% endif %}
{% endfor %}
|