Skip to content

Commit

Permalink
add manifest changes to add cluster roles and bindings
Browse files Browse the repository at this point in the history
Signed-off-by: bharathappali <[email protected]>
  • Loading branch information
bharathappali committed Jan 8, 2025
1 parent 8eac6a6 commit 79c5c8c
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,53 @@ roleRef:
kind: ClusterRole
name: kruize-recommendation-updater
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kruize-edit-ko
rules:
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "daemonsets"]
verbs: ["get", "patch", "update"]
- apiGroups: [ "batch" ]
resources: [ "jobs" ]
verbs: [ "get", "patch", "update" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: instaslices-access
rules:
- apiGroups: ["inference.redhat.com"]
resources: ["instaslices"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: instaslices-access-binding
subjects:
- kind: ServiceAccount
name: default
namespace: monitoring
roleRef:
kind: ClusterRole
name: instaslices-access
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kruize-edit-ko-binding
subjects:
- kind: ServiceAccount
name: default
namespace: monitoring
roleRef:
kind: ClusterRole
name: kruize-edit-ko
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,53 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kruize-edit-ko
rules:
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "daemonsets"]
verbs: ["get", "patch", "update"]
- apiGroups: [ "batch" ]
resources: [ "jobs" ]
verbs: [ "get", "patch", "update" ]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: instaslices-access
rules:
- apiGroups: ["inference.redhat.com"]
resources: ["instaslices"]
verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: instaslices-access-binding
subjects:
- kind: ServiceAccount
name: kruize-sa
namespace: openshift-tuning
roleRef:
kind: ClusterRole
name: instaslices-access
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kruize-edit-ko-binding
subjects:
- kind: ServiceAccount
name: kruize-sa
namespace: openshift-tuning
roleRef:
kind: ClusterRole
name: kruize-edit-ko
apiGroup: rbac.authorization.k8s.io
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: autotune-scc-crb
Expand Down

0 comments on commit 79c5c8c

Please sign in to comment.