Skip to content

Commit f8128ed

Browse files
author
hanancha
committed
Removing enterprise flags form rbac configs
1 parent 808b83d commit f8128ed

File tree

2 files changed

+39
-41
lines changed

2 files changed

+39
-41
lines changed

templates/configmaps_rbac.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{ if .Values.enterprise.enabled }}
21
---
32
apiVersion: v1
43
kind: ConfigMap
@@ -10,12 +9,12 @@ metadata:
109
app: st2
1110
tier: backend
1211
vendor: stackstorm
13-
support: enterprise
12+
support: {{ template "supportMethod" . }}
1413
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
1514
release: {{ .Release.Name }}
1615
heritage: {{ .Release.Service }}
1716
data:
18-
{{ toYaml .Values.enterprise.rbac.roles | indent 2 }}
17+
{{ toYaml .Values.rbac.roles | indent 2 }}
1918

2019
---
2120
apiVersion: v1
@@ -28,12 +27,12 @@ metadata:
2827
app: st2
2928
tier: backend
3029
vendor: stackstorm
31-
support: enterprise
30+
support: {{ template "supportMethod" . }}
3231
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
3332
release: {{ .Release.Name }}
3433
heritage: {{ .Release.Service }}
3534
data:
36-
{{ toYaml .Values.enterprise.rbac.assignments | indent 2 }}
35+
{{ toYaml .Values.rbac.assignments | indent 2 }}
3736

3837
---
3938
apiVersion: v1
@@ -46,14 +45,13 @@ metadata:
4645
app: st2
4746
tier: backend
4847
vendor: stackstorm
49-
support: enterprise
48+
support: {{ template "supportMethod" . }}
5049
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
5150
release: {{ .Release.Name }}
5251
heritage: {{ .Release.Service }}
5352
data:
54-
{{- if .Values.enterprise.rbac.mappings }}
55-
{{ toYaml .Values.enterprise.rbac.mappings | indent 2 }}
53+
{{- if .Values.rbac.mappings }}
54+
{{ toYaml .Values.rbac.mappings | indent 2 }}
5655
{{ else }}
5756
{}
5857
{{ end }}
59-
{{ end }}

values.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -28,40 +28,40 @@ enterprise:
2828
# Don't have one? Obtain 90-day free trial at https://stackstorm.com/#product
2929
license: ""
3030

31-
# StackStorm Role Based Access Control settings (https://docs.stackstorm.com/rbac.html)
32-
rbac:
33-
# Custom StackStorm RBAC roles, shipped in '/opt/stackstorm/rbac/roles/'
34-
# See https://docs.stackstorm.com/rbac.html#defining-roles-and-permission-grants
35-
roles:
36-
sample.yaml: |
37-
# sample RBAC role file, see https://docs.stackstorm.com/rbac.html#defining-roles-and-permission-grants
38-
---
39-
name: "sample"
40-
description: "Example Role which contains no permission grants and serves for demonstration purposes"
31+
# StackStorm Role Based Access Control settings (https://docs.stackstorm.com/rbac.html)
32+
rbac:
33+
# Custom StackStorm RBAC roles, shipped in '/opt/stackstorm/rbac/roles/'
34+
# See https://docs.stackstorm.com/rbac.html#defining-roles-and-permission-grants
35+
roles:
36+
sample.yaml: |
37+
# sample RBAC role file, see https://docs.stackstorm.com/rbac.html#defining-roles-and-permission-grants
38+
---
39+
name: "sample"
40+
description: "Example Role which contains no permission grants and serves for demonstration purposes"
4141
42-
# Custom StackStorm RBAC role assignments, shipped in '/opt/stackstorm/rbac/assignments/'
43-
# See: https://docs.stackstorm.com/rbac.html#defining-user-role-assignments
44-
assignments:
45-
st2admin.yaml: |
46-
---
47-
username: st2admin
48-
roles:
49-
- system_admin
50-
stanley.yaml: |
51-
---
52-
username: stanley
53-
roles:
54-
- admin
42+
# Custom StackStorm RBAC role assignments, shipped in '/opt/stackstorm/rbac/assignments/'
43+
# See: https://docs.stackstorm.com/rbac.html#defining-user-role-assignments
44+
assignments:
45+
st2admin.yaml: |
46+
---
47+
username: st2admin
48+
roles:
49+
- system_admin
50+
stanley.yaml: |
51+
---
52+
username: stanley
53+
roles:
54+
- admin
5555
56-
# StackStorm RBAC LDAP groups-to-roles mapping rules, shipped in '/opt/stackstorm/rbac/mappings/'
57-
# See RBAC Roles Based on LDAP Groups: https://docs.stackstorm.com/rbac.html#automatically-granting-roles-based-on-ldap-group-membership
58-
mappings:
59-
#stormers.yaml: |
60-
# ---
61-
# group: "CN=stormers,OU=groups,DC=stackstorm,DC=net"
62-
# description: "Automatically grant admin role to all stormers group members."
63-
# roles:
64-
# - "admin"
56+
# StackStorm RBAC LDAP groups-to-roles mapping rules, shipped in '/opt/stackstorm/rbac/mappings/'
57+
# See RBAC Roles Based on LDAP Groups: https://docs.stackstorm.com/rbac.html#automatically-granting-roles-based-on-ldap-group-membership
58+
mappings:
59+
#stormers.yaml: |
60+
# ---
61+
# group: "CN=stormers,OU=groups,DC=stackstorm,DC=net"
62+
# description: "Automatically grant admin role to all stormers group members."
63+
# roles:
64+
# - "admin"
6565

6666
##
6767
## Service Account

0 commit comments

Comments
 (0)