Skip to content

Commit

Permalink
Fix Server RBAC (#40)
Browse files Browse the repository at this point in the history
I can no longer see organizations and projects, but I do get to see
namespaces, and I can derive where to place things from that.
  • Loading branch information
spjmurray authored Apr 10, 2024
1 parent 723087a commit bdcca2e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charts/unikorn/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for deploying Unikorn

type: application

version: v0.2.0
appVersion: v0.2.0
version: v0.2.1
appVersion: v0.2.1

icon: https://raw.githubusercontent.com/unikorn-cloud/unikorn/main/icons/default.png
10 changes: 8 additions & 2 deletions charts/unikorn/templates/unikorn-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ rules:
- apiGroups:
- unikorn-cloud.org
resources:
- organizations
- projects
- clustermanagers
- kubernetesclusters
verbs:
Expand All @@ -42,6 +40,14 @@ rules:
verbs:
- list
- watch
# Find project namespaces
- apiGroups:
- ""
resources:
- namespaces
verbs:
- list
- watch
# Get secrets, ugh, for kubeconfigs.
- apiGroups:
- ""
Expand Down
3 changes: 0 additions & 3 deletions pkg/server/handler/clustermanager/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ package clustermanager
import (
"context"
goerrors "errors"
"fmt"
"slices"

unikornv1core "github.com/unikorn-cloud/core/pkg/apis/unikorn/v1alpha1"
Expand Down Expand Up @@ -272,8 +271,6 @@ func (c *Client) generate(ctx context.Context, namespace *corev1.Namespace, orga
return nil, err
}

fmt.Println(applicationBundle)

controlPlane := &unikornv1.ClusterManager{
ObjectMeta: metav1.ObjectMeta{
Name: parameters.Name,
Expand Down

0 comments on commit bdcca2e

Please sign in to comment.