Skip to content

Commit

Permalink
Merge pull request #16 from StrongMonkey/fix-api-version
Browse files Browse the repository at this point in the history
Fix wrong apiVersion and group for fleetworkspace
  • Loading branch information
StrongMonkey authored Dec 14, 2020
2 parents 0d23961 + 74196b3 commit 759af83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/resources/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ func (c *clusterValidator) Admit(response *webhook.Response, request *webhook.Re
Spec: v1.SubjectAccessReviewSpec{
ResourceAttributes: &v1.ResourceAttributes{
Verb: "fleetaddcluster",
Version: "v1",
Resource: "fleetworkspace",
Version: "v3",
Resource: "fleetworkspaces",
Group: "management.cattle.io",
Name: newCluster.Spec.FleetWorkspaceName,
},
User: request.UserInfo.Username,
Expand Down

0 comments on commit 759af83

Please sign in to comment.