blob: 41f165ad1da5fa43f22387706fe3bbe65e472c85 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
|
type LocalEnvironment {
id: Int!
globalId: ID!
name: String!
folderPath: String
stopPath: String
deletePath: String
retryUrl: String
autoStopPath: String
}
input LocalEnvironmentInput {
id: Int!
globalId: ID!
name: String!
folderPath: String
stopPath: String
deletePath: String
retryUrl: String
autoStopPath: String
}
type NestedLocalEnvironment {
name: String!
size: Int!
latest: LocalEnvironment!
}
input NestedLocalEnvironmentInput {
name: String!
size: Int!
latest: LocalEnvironmentInput!
}
type LocalEnvironmentFolder {
environments: [LocalEnvironment!]!
availableCount: Int!
stoppedCount: Int!
}
type ReviewApp {
canSetupReviewApp: Boolean!
allClustersEmpty: Boolean!
reviewSnippet: String
}
type LocalEnvironmentApp {
stoppedCount: Int!
availableCount: Int!
environments: [NestedLocalEnvironment!]!
reviewApp: ReviewApp!
}
type LocalErrors {
errors: [String!]!
}
type LocalPageInfo {
total: Int!
perPage: Int!
nextPage: Int!
previousPage: Int!
}
type k8sPodStatus {
phase: String
}
type LocalK8sPods {
status: k8sPodStatus
}
input LocalConfiguration {
basePath: String
baseOptions: JSON
}
type k8sServiceMetadata {
name: String
namespace: String
creationTimestamp: String
}
type k8sServiceSpec {
type: String
clusterIP: String
externalIP: String
ports: JSON
}
type LocalK8sServices {
metadata: k8sServiceMetadata
spec: k8sServiceSpec
}
type k8sDeploymentStatus {
conditions: JSON
}
type localK8sDeployment {
status: k8sDeploymentStatus
}
type k8sDaemonSetStatus {
IntMisscheduled: Int
IntReady: Int
desiredIntScheduled: Int
}
type localK8sDaemonSet {
status: k8sDaemonSetStatus
}
type k8sSetStatus {
readyReplicas: Int
}
type k8sSetSpec {
replicas: Int
}
type localK8sSet {
status: k8sSetStatus
spec: k8sSetSpec
}
type k8sJobStatus {
failed: Int
succeeded: Int
}
type k8sJobSpec {
completions: Int
}
type localK8sJob {
status: k8sJobStatus
spec: k8sJobSpec
}
type k8sCronJobStatus {
active: Int
lastScheduleTime: String
}
type k8sCronJobSpec {
suspend: Boolean
}
type localK8sCronJob {
status: k8sCronJobStatus
spec: k8sCronJobSpec
}
type LocalK8sWorkloads {
DeploymentList: [localK8sDeployment]
DaemonSetList: [localK8sDaemonSet]
StatefulSetList: [localK8sSet]
ReplicaSetList: [localK8sSet]
JobList: [localK8sJob]
CronJobList: [localK8sCronJob]
}
type k8sNamespaceMetadata {
name: String
}
type LocalK8sNamespaces {
metadata: k8sNamespaceMetadata
}
type LocalFluxResourceStatus {
status: String
type: String
}
extend type Query {
environmentApp(page: Int, scope: String): LocalEnvironmentApp
folder(environment: NestedLocalEnvironmentInput): LocalEnvironmentFolder
environmentToDelete: LocalEnvironment
pageInfo: LocalPageInfo
environmentToRollback: LocalEnvironment
environmentToStop: LocalEnvironment
isEnvironmentStopping(environment: LocalEnvironmentInput): Boolean
isLastDeployment(environment: LocalEnvironmentInput): Boolean
k8sPods(configuration: LocalConfiguration, namespace: String): [LocalK8sPods]
k8sServices(configuration: LocalConfiguration): [LocalK8sServices]
k8sWorkloads(configuration: LocalConfiguration, namespace: String): LocalK8sWorkloads
fluxKustomizationStatus(
configuration: LocalConfiguration
namespace: String
environmentName: String
): LocalFluxResourceStatus
fluxHelmReleaseStatus(
configuration: LocalConfiguration
namespace: String
environmentName: String
): LocalFluxResourceStatus
}
extend type Mutation {
stopEnvironmentREST(environment: LocalEnvironmentInput): LocalErrors
deleteEnvironment(environment: LocalEnvironmentInput): LocalErrors
rollbackEnvironment(environment: LocalEnvironmentInput): LocalErrors
cancelAutoStop(autoStopUrl: String!): LocalErrors
setEnvironmentToDelete(environment: LocalEnvironmentInput): LocalErrors
setEnvironmentToRollback(environment: LocalEnvironmentInput): LocalErrors
setEnvironmentToStop(environment: LocalEnvironmentInput): LocalErrors
setEnvironmentToChangeCanary(environment: LocalEnvironmentInput, weight: Int): LocalErrors
action(environment: LocalEnvironmentInput): LocalErrors
}
|