Skip to content

Commit

Permalink
updated all rolebindings to use the clusterrole admin
Browse files Browse the repository at this point in the history
  • Loading branch information
bradsoper committed Mar 5, 2024
1 parent 68da2b8 commit f983419
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 45 deletions.
4 changes: 2 additions & 2 deletions pkg/app/controlplane/tmpl/ccp/mgr-rb.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cnvrg-ccp-operator-manager-role
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-ccp-operator-controller-manager
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cnvrg-buildimage-job
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-buildimage-job
name: cnvrg-buildimage-job
6 changes: 3 additions & 3 deletions pkg/app/controlplane/tmpl/conf/rbac/ccp-rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cnvrg-control-plane
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-control-plane
name: cnvrg-control-plane
6 changes: 3 additions & 3 deletions pkg/app/controlplane/tmpl/conf/rbac/job-rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cnvrg-job
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-job
name: cnvrg-job
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cnvrg-privileged-job
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-spark-job
name: cnvrg-spark-job
6 changes: 3 additions & 3 deletions pkg/app/controlplane/tmpl/nomex/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ metadata:
mlops.cnvrg.io/updatable: "false"
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: "cnvrg-nomex"
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-nomex
name: cnvrg-nomex
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/es/elastalert/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Es.Elastalert.SvcName }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Es.Elastalert.SvcName }}
name: {{ .Spec.Dbs.Es.Elastalert.SvcName }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/es/elastic/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Es.SvcName }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Es.ServiceAccount }}
name: {{ .Spec.Dbs.Es.ServiceAccount }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/es/kibana/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Es.Kibana.SvcName }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Es.Kibana.SvcName }}
name: {{ .Spec.Dbs.Es.Kibana.SvcName }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/minio/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Minio.ServiceAccount }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Minio.ServiceAccount }}
name: {{ .Spec.Dbs.Minio.ServiceAccount }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/pg/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Pg.ServiceAccount }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Pg.ServiceAccount }}
name: {{ .Spec.Dbs.Pg.ServiceAccount }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/prom/grafana/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Prom.Grafana.SvcName }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Prom.Grafana.SvcName }}
name: {{ .Spec.Dbs.Prom.Grafana.SvcName }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/prom/prometheus/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: cnvrg-prom
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: cnvrg-prom
namespace: {{ .CnvrgNamespace }}
namespace: {{ .CnvrgNamespace }}
6 changes: 3 additions & 3 deletions pkg/app/dbs/tmpl/redis/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.Dbs.Redis.ServiceAccount }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.Dbs.Redis.ServiceAccount }}
name: {{ .Spec.Dbs.Redis.ServiceAccount }}
4 changes: 2 additions & 2 deletions pkg/app/sso/tmpl/jwks/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ .Spec.SSO.Jwks.SvcName }}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{ .Spec.SSO.Jwks.SvcName }}
4 changes: 2 additions & 2 deletions pkg/app/sso/tmpl/proxy/rolebinding.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ metadata:
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{.Spec.SSO.Proxy.SvcName}}
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: {{.Spec.SSO.Proxy.SvcName}}

0 comments on commit f983419

Please sign in to comment.