Skip to content

Commit

Permalink
Use cluster-admin ClusterRoleBinding
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 committed May 27, 2022
1 parent 369ae44 commit 2836610
Show file tree
Hide file tree
Showing 44 changed files with 17 additions and 952 deletions.
1 change: 0 additions & 1 deletion charts/benchmark-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ A Helm chart for Kubernetes
| operator.replicaCount | int | `1` | how many replicas for the operator deployment |
| operator.resources.limits.cpu | string | `"0.1"` | |
| operator.tolerations[0] | object | `{"effect":"NoSchedule","key":"role","value":"workload"}` | schedule on a workload node even if it's tainted |
| rbac | object | `{"clusterRoles":{"kubevirt":false,"selfProvisioner":false}}` | map for custom cluster roles for certain benchmarks like kubevirt |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.4.0](https://github.com/norwoodj/helm-docs/releases/v1.4.0)
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{{ if .Values.rbac.clusterRoles.selfProvisioner }}
apiVersion: rbac.authorization.k8s.io/v1
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "benchmark-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: self-provisioner
name: cluster-admin
subjects:
- kind: ServiceAccount
name: {{ include "benchmark-operator.fullname" . }}
namespace: {{ .Release.Namespace }}
{{ end }}
76 changes: 0 additions & 76 deletions charts/benchmark-operator/templates/kubevirt-cluster-role.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions charts/benchmark-operator/templates/psp.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions charts/benchmark-operator/templates/role-binding.yaml

This file was deleted.

103 changes: 0 additions & 103 deletions charts/benchmark-operator/templates/role.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions charts/benchmark-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ nameOverride: ""

# -- (string) overrides naming of all resources
fullnameOverride: "benchmark-operator"

# -- map for custom cluster roles for certain benchmarks like kubevirt
rbac:
clusterRoles:
kubevirt: false
selfProvisioner: false

operator:

# -- how many replicas for the operator deployment
Expand Down
3 changes: 0 additions & 3 deletions config/crd/bases/ripsaw.cloudbulldozer.io_benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,6 @@ spec:
privileged:
default: false
type: boolean
serviceaccount:
default: default
type: string
stockpileSkipTags:
default: []
items:
Expand Down
2 changes: 1 addition & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
volumeMounts:
- mountPath: /redis-master-data
name: data
serviceAccountName: operator
serviceAccountName: benchmark-operator
terminationGracePeriodSeconds: 10
volumes:
- name: data
Expand Down
9 changes: 0 additions & 9 deletions config/rbac/auth_proxy_client_clusterrole.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions config/rbac/auth_proxy_role.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions config/rbac/auth_proxy_role_binding.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions config/rbac/auth_proxy_service.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions config/rbac/benchmark_editor_role.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions config/rbac/benchmark_viewer_role.yaml

This file was deleted.

Loading

0 comments on commit 2836610

Please sign in to comment.