Skip to content

Commit 0a6fdd6

Browse files
committed
Adds custom rbac template to deploy directory #300
* Used for creating a new custom rbac ConfigMap
1 parent fb22fbb commit 0a6fdd6

File tree

2 files changed

+539
-0
lines changed

2 files changed

+539
-0
lines changed

deploy/templates/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Hawtio-Online Templates
2+
3+
## Custom Hawtio custom-hawtio-online-rbac.yml
4+
5+
A template for adding a ConfigMap for custom RBAC rules. To apply, users should execute the following command, setting the *APP_NAME* to an appropriate value for their configuration:
6+
```
7+
kubectl process -f custom-hawtio-online-rbac.yml -p APP_NAME=custom-hawtio | kubectl create -f -
8+
```
9+
10+
Once applied, the ConfigMap can be edited using the command:
11+
```
12+
kubectl edit configmap <APP_NAME>-rbac # change the APP_NAME to match the previous command
13+
```
14+
15+
### Using the ConfigMap
16+
17+
1. If using the [operator](https://github/hawtio/hawtio-operator), specify the ConfigMap name in the Hawtio CR:
18+
```yaml
19+
apiVersion: v1
20+
items:
21+
- apiVersion: hawt.io/v1
22+
kind: Hawtio
23+
metadata:
24+
name: hawtio-online
25+
namespace: hawtio-dev
26+
spec:
27+
rbac:
28+
configMap: custom-hawtio-rbac
29+
...
30+
```
31+
1. If installing via the command line, using the `deploy` directory, edit the [base/deployment.yml](https://github.com/hawtio/hawtio-online/blob/main/deploy/base/deployment.yml) file and change the following:
32+
```yaml
33+
...
34+
volumes:
35+
- name: hawtio-rbac
36+
configMap:
37+
name: <APP_NAME>-rbac
38+
...
39+
```

0 commit comments

Comments
 (0)