Skip to content

Commit

Permalink
yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Apr 2, 2024
1 parent 2f60516 commit f0afbfd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 23 deletions.
3 changes: 1 addition & 2 deletions assets/src/graph-kubernetes/access/clusterrole.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ query ClusterRoles(

query ClusterRole($name: String!) {
handleGetClusterRoleDetail(name: $name)
@rest(path: "clusterrole/{args.name}") {
@rest(path: "clusterrole/{args.name}") {
typeMeta @type(name: "types_TypeMeta") {
...TypeMeta
}
Expand All @@ -43,4 +43,3 @@ query ClusterRole($name: String!) {
errors
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ query ClusterRoleBindings(

query ClusterRoleBinding($name: String!) {
handleGetClusterRoleBindingDetail(name: $name)
@rest(path: "clusterrolebinding/{args.name}") {
@rest(path: "clusterrolebinding/{args.name}") {
typeMeta @type(name: "types_TypeMeta") {
...TypeMeta
}
Expand All @@ -48,4 +48,3 @@ query ClusterRoleBinding($name: String!) {
errors
}
}

2 changes: 1 addition & 1 deletion assets/src/graph-kubernetes/access/role.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ query Roles(

query Role($name: String!, $namespace: String!) {
handleGetRoleDetail(namespace: $namespace, name: $name)
@rest(path: "role/{args.namespace}/{args.name}") {
@rest(path: "role/{args.namespace}/{args.name}") {
typeMeta @type(name: "types_TypeMeta") {
...TypeMeta
}
Expand Down
3 changes: 1 addition & 2 deletions assets/src/graph-kubernetes/access/rolebinding.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ query RoleBindings(
}
}


query RoleBinding($name: String!, $namespace: String!) {
handleGetRoleBindingDetail(namespace: $namespace, name: $name)
@rest(path: "rolebinding/{args.namespace}/{args.name}") {
@rest(path: "rolebinding/{args.namespace}/{args.name}") {
typeMeta @type(name: "types_TypeMeta") {
...TypeMeta
}
Expand Down
26 changes: 10 additions & 16 deletions assets/src/graph-kubernetes/access/serviceaccount.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ query ServiceAccounts(
itemsPerPage: $itemsPerPage
page: $page
)
@rest(
type: "serviceaccount_ServiceAccountList"
path: "serviceaccount/{args.namespace}?filterBy={args.filterBy}&sortBy={args.sortBy}&itemsPerPage={args.itemsPerPage}&page={args.page}"
) {
@rest(
type: "serviceaccount_ServiceAccountList"
path: "serviceaccount/{args.namespace}?filterBy={args.filterBy}&sortBy={args.sortBy}&itemsPerPage={args.itemsPerPage}&page={args.page}"
) {
listMeta @type(name: "types_ListMeta") {
...ListMeta
}
Expand All @@ -30,18 +30,12 @@ query ServiceAccounts(
}
}

query ServiceAccount(
$namespace: String!
$name: String!
) {
handleGetServiceAccountDetail(
namespace: $namespace
serviceaccount: $name,
)
@rest(
type: "serviceaccount_ServiceAccountDetail"
path: "serviceaccount/{args.namespace}/{args.serviceaccount}"
) {
query ServiceAccount($namespace: String!, $name: String!) {
handleGetServiceAccountDetail(namespace: $namespace, serviceaccount: $name)
@rest(
type: "serviceaccount_ServiceAccountDetail"
path: "serviceaccount/{args.namespace}/{args.serviceaccount}"
) {
typeMeta @type(name: "types_TypeMeta") {
...TypeMeta
}
Expand Down

0 comments on commit f0afbfd

Please sign in to comment.