Skip to content

Commit 42be176

Browse files
committed
Add rolebinding and fix cron permission profile
1 parent d6650c8 commit 42be176

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

k8s/base/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
22
resources:
33
- namespace.yaml
4+
- rolebinding.yaml
45
- openstack-api-backup-cron.yaml

k8s/base/openstack-api-backup-cron.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ spec:
2626
capabilities:
2727
drop:
2828
- ALL
29-
seccompProfile:
30-
type: RuntimeDefault
3129
env:
3230
- name: HOME
3331
value: '/tmp'

k8s/base/rolebinding.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
apiVersion: rbac.authorization.k8s.io/v1
3+
kind: RoleBinding
4+
metadata:
5+
name: system:openshift:scc:anyuid
6+
namespace: openstack-api-backup
7+
roleRef:
8+
apiGroup: rbac.authorization.k8s.io
9+
kind: ClusterRole
10+
name: system:openshift:scc:anyuid
11+
subjects:
12+
- kind: ServiceAccount
13+
name: default
14+
namespace: openstack-api-backup

0 commit comments

Comments
 (0)