Skip to content

Commit

Permalink
yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Mar 29, 2024
1 parent 76ebfcd commit 54f5988
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 16 deletions.
6 changes: 4 additions & 2 deletions assets/src/graph-kubernetes/common/raw.graphql
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
query NamespacedResource($kind: String!, $name: String!, $namespace: String!) {
handleGetResource(kind: $kind, name: $name, namespace: $namespace)
@rest(path: "_raw/{args.kind}/namespace/{args.namespace}/name/{args.name}") {
@rest(
path: "_raw/{args.kind}/namespace/{args.namespace}/name/{args.name}"
) {
Object
}
}

query Resource($kind: String!, $name: String!) {
handleGetResource(kind: $kind, name: $name, namespace: "")
@rest(path: "_raw/{args.kind}/name/{args.name}") {
@rest(path: "_raw/{args.kind}/name/{args.name}") {
Object
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ query PersistentVolumeClaims(

query PersistentVolumeClaim($name: String!, $namespace: String!) {
handleGetPersistentVolumeClaimDetail(namespace: $namespace, name: $name)
@rest(type: "persistentvolumeclaim_PersistentVolumeClaim" path: "persistentvolumeclaim/{args.namespace}/{args.name}") {
@rest(
type: "persistentvolumeclaim_PersistentVolumeClaim"
path: "persistentvolumeclaim/{args.namespace}/{args.name}"
) {
...PersistentVolumeClaimDetail
}
}
Expand Down
14 changes: 8 additions & 6 deletions assets/src/graph-kubernetes/storage/storageclass.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ query StorageClasses(

query StorageClass($name: String!) {
handleGetStorageClass(storageclass: $name)
@rest(path: "storageclass/{args.storageclass}") {
@rest(path: "storageclass/{args.storageclass}") {
typeMeta @type(name: "types_TypeMeta") {
...TypeMeta
}
Expand All @@ -48,16 +48,18 @@ query StorageClassPersistentVolumes(
$filterBy: String
$sortBy: String
$itemsPerPage: String
$page: String) {
$page: String
) {
handleGetStorageClassPersistentVolumes(
storageclass: $name
filterBy: $filterBy
sortBy: $sortBy
itemsPerPage: $itemsPerPage
page: $page)
@rest(
path: "storageclass/{args.storageclass}/persistentvolume?filterBy={args.filterBy}&sortBy={args.sortBy}&itemsPerPage={args.itemsPerPage}&page={args.page}"
) {
page: $page
)
@rest(
path: "storageclass/{args.storageclass}/persistentvolume?filterBy={args.filterBy}&sortBy={args.sortBy}&itemsPerPage={args.itemsPerPage}&page={args.page}"
) {
listMeta @type(name: "types_ListMeta") {
...ListMeta
}
Expand Down
17 changes: 10 additions & 7 deletions assets/src/graph-kubernetes/workloads/pod.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ query Pod($name: String!, $namespace: String!) {
imagePullSecrets {
name
}
persistentVolumeClaimList @type(name: "persistentvolumeclaim_PersistentVolumeClaimList") {
persistentVolumeClaimList
@type(name: "persistentvolumeclaim_PersistentVolumeClaimList") {
...PersistentVolumeClaimList
}
controller @type(name: "controller_ResourceOwner") {
Expand All @@ -79,18 +80,20 @@ query PodEvents(
$filterBy: String
$sortBy: String
$itemsPerPage: String
$page: String) {
$page: String
) {
handleGetPodEvents(
pod: $name
namespace: $namespace
filterBy: $filterBy
sortBy: $sortBy
itemsPerPage: $itemsPerPage
page: $page)
@rest(
type: "common_EventList"
path: "pod/{args.namespace}/{args.pod}/event?filterBy={args.filterBy}&sortBy={args.sortBy}&itemsPerPage={args.itemsPerPage}&page={args.page}"
) {
page: $page
)
@rest(
type: "common_EventList"
path: "pod/{args.namespace}/{args.pod}/event?filterBy={args.filterBy}&sortBy={args.sortBy}&itemsPerPage={args.itemsPerPage}&page={args.page}"
) {
...EventList
}
}

0 comments on commit 54f5988

Please sign in to comment.