Skip to content

Commit

Permalink
Simplify console permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbroks committed Aug 25, 2023
1 parent 792e48d commit 6085273
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 38 deletions.
2 changes: 1 addition & 1 deletion charts/operator-wandb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator-wandb
description: A Helm chart for deploying W&B to Kubernetes
type: application
version: 0.1.9
version: 0.1.10
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg
maintainers:
Expand Down
2 changes: 1 addition & 1 deletion charts/operator-wandb/charts/console/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ name: console
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
appVersion: 1.16.0
40 changes: 4 additions & 36 deletions charts/operator-wandb/charts/console/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,40 +16,8 @@ metadata:
{{- toYaml .Values.clusterRole.annotations | nindent 4 }}
{{- end }}
rules:
- apiGroups:
- ""
- apps
- apps.wandb.com
- autoscaling
- policy
- networking.k8s.io
- metrics.k8s.io
- flowcontrol.apiserver.k8s.io
- rbac.authorization.k8s.io
resources:
- pods
- deployments
- bindings
- configmaps
- endpoints
- events
- namespaces
- pods/logs
- pods
- replicationcontrollers
- secrets
- serviceaccounts
- weightsandbiases.apps.wandb.com
- controllerrevisions.apps
- deployments.apps
- replicasets.apps
- statefulsets.apps
- horizontalpodautoscalers.autoscaling
- prioritylevelconfigurations.flowcontrol.apiserver.k8s.io
- nodes.metrics.k8s.io
- ingressclasses.networking.k8s.io
- ingresses.networking.k8s.io
- poddisruptionbudgets.policy
- roles.rbac.authorization.k8s.io
verbs: [get, list, watch, create, update, patch, delete]
# We can fix this later :P
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
{{- end }}

0 comments on commit 6085273

Please sign in to comment.