Skip to content

Commit

Permalink
update wandb-console-role and manager-role permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
velotioaastha committed May 17, 2024
1 parent ab8c7cf commit 6592951
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 14 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.13.0
version: 0.13.1
appVersion: 1.0.0
icon: https://wandb.ai/logo.svg

Expand Down
16 changes: 12 additions & 4 deletions charts/operator-wandb/charts/console/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,16 @@ metadata:
{{- toYaml .Values.clusterRole.annotations | nindent 4 }}
{{- end }}
rules:
# We can scope these permissions down later
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list", "watch", "patch"]
- apiGroups: [""]
resources: ["nodes", "namespaces", "pods", "pods/log", "configmaps", "services", "serviceaccounts", "events"]
verbs: ["get", "list"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "daemonsets", "replicasets", "controllerrevisions"]
verbs: ["get", "list"]
- apiGroups: ["apps"]
resources: ["deployments/status", "statefulsets/status", "daemonsets/status", "replicasets/status"]
verbs: ["get"]
{{- end }}
2 changes: 1 addition & 1 deletion charts/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: operator
description: A Helm chart for Weights & Biases operator
type: application
version: 1.1.3
version: 1.1.4
appVersion: "1.0.0"
maintainers:
- name: wandb
Expand Down
2 changes: 1 addition & 1 deletion charts/operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ helm upgrade --install operator wandb/operator

```
git clone https://github.com/wandb/helm-charts.git
cd helm-charts
cd helm-charts/charts/operator
helm upgrade --namespace=wandb --create-namespace --install operator .
```
81 changes: 80 additions & 1 deletion charts/operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,83 @@ kind: ClusterRole
metadata:
name: {{ include "name" . }}-manager-role
rules:
{{ toYaml .Values.clusterRole.rules | indent 2 }}
- apiGroups:
- '*'
resources:
- '*'
verbs:
- get
- list
- watch
- apiGroups:
- ""
resources:
- serviceaccounts
- services
- services/finalizers
- secrets
- persistentvolumeclaims
- persistentvolumes
- configmaps
- pods
- events
verbs:
- create
- patch
- delete
- update
- apiGroups:
- apps
resources:
- deployments
- daemonsets
verbs:
- create
- patch
- delete
- update
- apiGroups:
- apps.wandb.com
resources:
- '*'
verbs:
- '*'
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterroles
- clusterrolebindings
- roles
- rolebindings
verbs:
- create
- update
- delete
- patch
- bind
- escalate
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- create
- update
- delete
- patch
- apiGroups:
- networking.k8s.io
resources:
- ingresses
- ingressclasses
verbs:
- create
- patch
- update
- delete
- apiGroups:
- networking.k8s.io
resources:
- ingresses/status
verbs:
- update
6 changes: 0 additions & 6 deletions charts/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,4 @@ manager:
serviceAccount:
create: true

clusterRole:
rules:
- apiGroups: ["*"]
resources: ["*"]
verbs: ["*"]

airgapped: false

0 comments on commit 6592951

Please sign in to comment.