-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
55 lines (50 loc) · 1.86 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
type k8sPersistentVolumeClaim {
id: String! @id @search(by: [hash, regexp])
context: String! @search(by: [hash, regexp])
apiVersion: String @search(by: [hash, regexp])
kind: String @search(by: [hash, regexp])
metadata: k8sMetadata
spec: k8sPersistentVolumeClaimSpec
status: k8sPersistentVolumeClaimStatus
namespace: [k8sNamespace] @hasInverse(field: persistentVolumeClaims)
}
type k8sPersistentVolumeClaimSpec @generate(
query: { get: false, query: false, aggregate: false }
mutation: { add: false, delete: false }
) {
accessModes: [String] @search(by: [hash, regexp])
dataSource: k8sPersistentVolumeClaimDataSource
dataSourceRef: k8sPersistentVolumeClaimDataSource
resources: k8sPersistentVolumeClaimResources
selector: k8sPodAffinitySelector
storageClassName: String @search(by: [hash, regexp])
volumeMode: String @search(by: [hash, regexp])
volumeName: String @search(by: [hash, regexp])
}
type k8sPersistentVolumeClaimStatus @generate(
query: { get: false, query: false, aggregate: false }
mutation: { add: false, delete: false }
) {
accessModes: [String] @search(by: [hash, regexp])
capacity: [k8sKeyValueArray],
conditions: [k8sPersistentVolumeClaimCondition],
phase: String @search(by: [hash, regexp])
}
type k8sPersistentVolumeClaimCondition {
id: String! @id
lastTransitionTime: String @search(by: [hash, regexp])
lastProbeTime: String @search(by: [hash, regexp])
message: String @search(by: [hash, regexp])
reason: String @search(by: [hash, regexp])
status: String @search(by: [hash, regexp])
type: String @search(by: [hash, regexp])
}
type k8sPersistentVolumeClaimDataSource {
apiGroup: String @search(by: [hash, regexp])
kind: String @search(by: [hash, regexp])
name: String @search(by: [hash, regexp])
}
type k8sPersistentVolumeClaimResources {
limits: [k8sKeyValueArray]
requests: [k8sKeyValueArray]
}