Skip to content

Commit

Permalink
fix suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Sep 19, 2024
1 parent 860207c commit db159d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/kubequery/radixapplication.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func GetRadixApplication(ctx context.Context, client radixclient.Interface, appN
func IsRadixApplicationAdmin(ctx context.Context, kubeClient kubernetes.Interface, appName string) (bool, error) {
return access.HasAccess(ctx, kubeClient, &authorizationapi.ResourceAttributes{
Verb: "patch",
Group: "",
Resource: radixv1.KindRadixRegistration,
Group: radixv1.GroupName,
Resource: radixv1.ResourceRadixRegistrations,
Version: "*",
Name: appName,
})
Expand Down
4 changes: 2 additions & 2 deletions api/kubequery/radixapplication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func Test_IsRadixApplicationAdmin(t *testing.T) {
called++
assert.Equal(t, review.Spec.ResourceAttributes, &authorizationapiv1.ResourceAttributes{
Verb: "patch",
Group: "",
Resource: radixv1.KindRadixRegistration,
Group: radixv1.GroupName,
Resource: radixv1.ResourceRadixRegistrations,
Version: "*",
Name: "any-app-name",
})
Expand Down

0 comments on commit db159d6

Please sign in to comment.