1
2
3 package generated
4
5 import (
6 "bytes"
7 "context"
8 "errors"
9 "io"
10 "strconv"
11 "sync"
12 "sync/atomic"
13 "time"
14
15 "github.com/99designs/gqlgen/graphql"
16 "github.com/99designs/gqlgen/graphql/introspection"
17 gqlparser "github.com/vektah/gqlparser/v2"
18 "github.com/vektah/gqlparser/v2/ast"
19 v1 "k8s.io/api/core/v1"
20 v11 "k8s.io/apimachinery/pkg/apis/meta/v1"
21
22 "github.com/chaos-mesh/chaos-mesh/api/v1alpha1"
23 "github.com/chaos-mesh/chaos-mesh/pkg/ctrl/server/model"
24 )
25
26
27
28
29 func NewExecutableSchema(cfg Config) graphql.ExecutableSchema {
30 return &executableSchema{
31 resolvers: cfg.Resolvers,
32 directives: cfg.Directives,
33 complexity: cfg.Complexity,
34 }
35 }
36
37 type Config struct {
38 Resolvers ResolverRoot
39 Directives DirectiveRoot
40 Complexity ComplexityRoot
41 }
42
43 type ResolverRoot interface {
44 AttrOverrideSpec() AttrOverrideSpecResolver
45 BandwidthSpec() BandwidthSpecResolver
46 ChaosCondition() ChaosConditionResolver
47 CidrAndPort() CidrAndPortResolver
48 ContainerStateRunning() ContainerStateRunningResolver
49 ContainerStateTerminated() ContainerStateTerminatedResolver
50 ExperimentStatus() ExperimentStatusResolver
51 HTTPChaos() HTTPChaosResolver
52 HTTPChaosSpec() HTTPChaosSpecResolver
53 HTTPChaosStatus() HTTPChaosStatusResolver
54 IOChaos() IOChaosResolver
55 IOChaosAction() IOChaosActionResolver
56 IOChaosSpec() IOChaosSpecResolver
57 IOChaosStatus() IOChaosStatusResolver
58 IoFault() IoFaultResolver
59 Logger() LoggerResolver
60 MistakeSpec() MistakeSpecResolver
61 MutablePod() MutablePodResolver
62 Mutation() MutationResolver
63 Namespace() NamespaceResolver
64 NetworkChaos() NetworkChaosResolver
65 OwnerReference() OwnerReferenceResolver
66 Pod() PodResolver
67 PodCondition() PodConditionResolver
68 PodHTTPChaos() PodHTTPChaosResolver
69 PodHttpChaosReplaceActions() PodHttpChaosReplaceActionsResolver
70 PodHttpChaosRule() PodHttpChaosRuleResolver
71 PodHttpChaosSelector() PodHttpChaosSelectorResolver
72 PodIOChaos() PodIOChaosResolver
73 PodNetworkChaos() PodNetworkChaosResolver
74 PodSelectorSpec() PodSelectorSpecResolver
75 PodStatus() PodStatusResolver
76 PodStressChaos() PodStressChaosResolver
77 Process() ProcessResolver
78 Query() QueryResolver
79 RawIPSet() RawIPSetResolver
80 RawIptables() RawIptablesResolver
81 RawTrafficControl() RawTrafficControlResolver
82 Record() RecordResolver
83 StressChaos() StressChaosResolver
84 StressChaosSpec() StressChaosSpecResolver
85 StressChaosStatus() StressChaosStatusResolver
86 }
87
88 type DirectiveRoot struct {
89 }
90
91 type ComplexityRoot struct {
92 AttrOverrideSpec struct {
93 Atime func(childComplexity int) int
94 Blocks func(childComplexity int) int
95 Ctime func(childComplexity int) int
96 Gid func(childComplexity int) int
97 Ino func(childComplexity int) int
98 Kind func(childComplexity int) int
99 Mtime func(childComplexity int) int
100 Nlink func(childComplexity int) int
101 Perm func(childComplexity int) int
102 Rdev func(childComplexity int) int
103 Size func(childComplexity int) int
104 UID func(childComplexity int) int
105 }
106
107 BandwidthSpec struct {
108 Buffer func(childComplexity int) int
109 Limit func(childComplexity int) int
110 Minburst func(childComplexity int) int
111 Peakrate func(childComplexity int) int
112 Rate func(childComplexity int) int
113 }
114
115 CPUStressor struct {
116 Load func(childComplexity int) int
117 Options func(childComplexity int) int
118 Workers func(childComplexity int) int
119 }
120
121 Cgroups struct {
122 CPU func(childComplexity int) int
123 Memory func(childComplexity int) int
124 Raw func(childComplexity int) int
125 }
126
127 CgroupsCpu struct {
128 Period func(childComplexity int) int
129 Quota func(childComplexity int) int
130 }
131
132 CgroupsMemory struct {
133 Limit func(childComplexity int) int
134 }
135
136 ChaosCondition struct {
137 Reason func(childComplexity int) int
138 Status func(childComplexity int) int
139 Type func(childComplexity int) int
140 }
141
142 CidrAndPort struct {
143 Cidr func(childComplexity int) int
144 Port func(childComplexity int) int
145 }
146
147 ContainerState struct {
148 Running func(childComplexity int) int
149 Terminated func(childComplexity int) int
150 Waiting func(childComplexity int) int
151 }
152
153 ContainerStateRunning struct {
154 StartedAt func(childComplexity int) int
155 }
156
157 ContainerStateTerminated struct {
158 ContainerID func(childComplexity int) int
159 ExitCode func(childComplexity int) int
160 FinishedAt func(childComplexity int) int
161 Message func(childComplexity int) int
162 Reason func(childComplexity int) int
163 Signal func(childComplexity int) int
164 StartedAt func(childComplexity int) int
165 }
166
167 ContainerStateWaiting struct {
168 Message func(childComplexity int) int
169 Reason func(childComplexity int) int
170 }
171
172 ContainerStatus struct {
173 ContainerID func(childComplexity int) int
174 Image func(childComplexity int) int
175 ImageID func(childComplexity int) int
176 LastTerminationState func(childComplexity int) int
177 Name func(childComplexity int) int
178 Ready func(childComplexity int) int
179 RestartCount func(childComplexity int) int
180 Started func(childComplexity int) int
181 State func(childComplexity int) int
182 }
183
184 CorruptSpec struct {
185 Correlation func(childComplexity int) int
186 Corrupt func(childComplexity int) int
187 }
188
189 DelaySpec struct {
190 Correlation func(childComplexity int) int
191 Jitter func(childComplexity int) int
192 Latency func(childComplexity int) int
193 Reorder func(childComplexity int) int
194 }
195
196 DuplicateSpec struct {
197 Correlation func(childComplexity int) int
198 Duplicate func(childComplexity int) int
199 }
200
201 ExperimentStatus struct {
202 DesiredPhase func(childComplexity int) int
203 Records func(childComplexity int) int
204 }
205
206 Fd struct {
207 Fd func(childComplexity int) int
208 Target func(childComplexity int) int
209 }
210
211 HTTPChaos struct {
212 APIVersion func(childComplexity int) int
213 Annotations func(childComplexity int) int
214 CreationTimestamp func(childComplexity int) int
215 DeletionGracePeriodSeconds func(childComplexity int) int
216 DeletionTimestamp func(childComplexity int) int
217 Finalizers func(childComplexity int) int
218 GenerateName func(childComplexity int) int
219 Generation func(childComplexity int) int
220 Kind func(childComplexity int) int
221 Labels func(childComplexity int) int
222 Name func(childComplexity int) int
223 Namespace func(childComplexity int) int
224 OwnerReferences func(childComplexity int) int
225 Podhttp func(childComplexity int) int
226 ResourceVersion func(childComplexity int) int
227 SelfLink func(childComplexity int) int
228 Spec func(childComplexity int) int
229 Status func(childComplexity int) int
230 UID func(childComplexity int) int
231 }
232
233 HTTPChaosSpec struct {
234 Abort func(childComplexity int) int
235 Code func(childComplexity int) int
236 Delay func(childComplexity int) int
237 Duration func(childComplexity int) int
238 Method func(childComplexity int) int
239 Mode func(childComplexity int) int
240 Patch func(childComplexity int) int
241 Path func(childComplexity int) int
242 Port func(childComplexity int) int
243 Replace func(childComplexity int) int
244 RequestHeaders func(childComplexity int) int
245 ResponseHeaders func(childComplexity int) int
246 Selector func(childComplexity int) int
247 Target func(childComplexity int) int
248 Value func(childComplexity int) int
249 }
250
251 HTTPChaosStatus struct {
252 Conditions func(childComplexity int) int
253 Experiment func(childComplexity int) int
254 Instances func(childComplexity int) int
255 }
256
257 IOChaos struct {
258 APIVersion func(childComplexity int) int
259 Annotations func(childComplexity int) int
260 CreationTimestamp func(childComplexity int) int
261 DeletionGracePeriodSeconds func(childComplexity int) int
262 DeletionTimestamp func(childComplexity int) int
263 Finalizers func(childComplexity int) int
264 GenerateName func(childComplexity int) int
265 Generation func(childComplexity int) int
266 Kind func(childComplexity int) int
267 Labels func(childComplexity int) int
268 Name func(childComplexity int) int
269 Namespace func(childComplexity int) int
270 OwnerReferences func(childComplexity int) int
271 Podios func(childComplexity int) int
272 ResourceVersion func(childComplexity int) int
273 SelfLink func(childComplexity int) int
274 Spec func(childComplexity int) int
275 Status func(childComplexity int) int
276 UID func(childComplexity int) int
277 }
278
279 IOChaosAction struct {
280 Atime func(childComplexity int) int
281 Blocks func(childComplexity int) int
282 Ctime func(childComplexity int) int
283 Faults func(childComplexity int) int
284 Filling func(childComplexity int) int
285 Gid func(childComplexity int) int
286 Ino func(childComplexity int) int
287 Kind func(childComplexity int) int
288 Latency func(childComplexity int) int
289 MaxLength func(childComplexity int) int
290 MaxOccurrences func(childComplexity int) int
291 Methods func(childComplexity int) int
292 Mtime func(childComplexity int) int
293 Nlink func(childComplexity int) int
294 Path func(childComplexity int) int
295 Percent func(childComplexity int) int
296 Perm func(childComplexity int) int
297 Rdev func(childComplexity int) int
298 Size func(childComplexity int) int
299 Source func(childComplexity int) int
300 Type func(childComplexity int) int
301 UID func(childComplexity int) int
302 }
303
304 IOChaosSpec struct {
305 Action func(childComplexity int) int
306 Attr func(childComplexity int) int
307 ContainerNames func(childComplexity int) int
308 Delay func(childComplexity int) int
309 Duration func(childComplexity int) int
310 Errno func(childComplexity int) int
311 Methods func(childComplexity int) int
312 Mistake func(childComplexity int) int
313 Mode func(childComplexity int) int
314 Path func(childComplexity int) int
315 Percent func(childComplexity int) int
316 Selector func(childComplexity int) int
317 Value func(childComplexity int) int
318 VolumePath func(childComplexity int) int
319 }
320
321 IOChaosStatus struct {
322 Conditions func(childComplexity int) int
323 Experiment func(childComplexity int) int
324 Instances func(childComplexity int) int
325 }
326
327 IoFault struct {
328 Errno func(childComplexity int) int
329 Weight func(childComplexity int) int
330 }
331
332 KillProcessResult struct {
333 Command func(childComplexity int) int
334 Pid func(childComplexity int) int
335 }
336
337 Logger struct {
338 Component func(childComplexity int, ns string, component model.Component) int
339 Pod func(childComplexity int, ns string, name string) int
340 }
341
342 LossSpec struct {
343 Correlation func(childComplexity int) int
344 Loss func(childComplexity int) int
345 }
346
347 MemoryStressor struct {
348 Options func(childComplexity int) int
349 Size func(childComplexity int) int
350 Workers func(childComplexity int) int
351 }
352
353 MistakeSpec struct {
354 Filling func(childComplexity int) int
355 MaxLength func(childComplexity int) int
356 MaxOccurrences func(childComplexity int) int
357 }
358
359 MutablePod struct {
360 CleanIptables func(childComplexity int, chains []string) int
361 CleanTcs func(childComplexity int, devices []string) int
362 KillProcesses func(childComplexity int, pids []string) int
363 Pod func(childComplexity int) int
364 }
365
366 Mutation struct {
367 Pod func(childComplexity int, ns string, name string) int
368 }
369
370 Namespace struct {
371 Component func(childComplexity int, component model.Component) int
372 Httpchaos func(childComplexity int, name *string) int
373 Iochaos func(childComplexity int, name *string) int
374 Networkchaos func(childComplexity int, name *string) int
375 Ns func(childComplexity int) int
376 Pod func(childComplexity int, name *string) int
377 Podhttpchaos func(childComplexity int, name *string) int
378 Podiochaos func(childComplexity int, name *string) int
379 Podnetworkchaos func(childComplexity int, name *string) int
380 Stresschaos func(childComplexity int, name *string) int
381 }
382
383 NetworkChaos struct {
384 APIVersion func(childComplexity int) int
385 Annotations func(childComplexity int) int
386 CreationTimestamp func(childComplexity int) int
387 DeletionGracePeriodSeconds func(childComplexity int) int
388 DeletionTimestamp func(childComplexity int) int
389 Finalizers func(childComplexity int) int
390 GenerateName func(childComplexity int) int
391 Generation func(childComplexity int) int
392 Kind func(childComplexity int) int
393 Labels func(childComplexity int) int
394 Name func(childComplexity int) int
395 Namespace func(childComplexity int) int
396 OwnerReferences func(childComplexity int) int
397 Podnetwork func(childComplexity int) int
398 ResourceVersion func(childComplexity int) int
399 SelfLink func(childComplexity int) int
400 UID func(childComplexity int) int
401 }
402
403 OwnerReference struct {
404 APIVersion func(childComplexity int) int
405 BlockOwnerDeletion func(childComplexity int) int
406 Controller func(childComplexity int) int
407 Kind func(childComplexity int) int
408 Name func(childComplexity int) int
409 UID func(childComplexity int) int
410 }
411
412 Pod struct {
413 APIVersion func(childComplexity int) int
414 Annotations func(childComplexity int) int
415 CreationTimestamp func(childComplexity int) int
416 Daemon func(childComplexity int) int
417 DeletionGracePeriodSeconds func(childComplexity int) int
418 DeletionTimestamp func(childComplexity int) int
419 Finalizers func(childComplexity int) int
420 GenerateName func(childComplexity int) int
421 Generation func(childComplexity int) int
422 Ipset func(childComplexity int) int
423 Iptables func(childComplexity int) int
424 Kind func(childComplexity int) int
425 Labels func(childComplexity int) int
426 Logs func(childComplexity int) int
427 Mounts func(childComplexity int) int
428 Name func(childComplexity int) int
429 Namespace func(childComplexity int) int
430 OwnerReferences func(childComplexity int) int
431 Processes func(childComplexity int) int
432 ResourceVersion func(childComplexity int) int
433 SelfLink func(childComplexity int) int
434 Spec func(childComplexity int) int
435 Status func(childComplexity int) int
436 TcQdisc func(childComplexity int) int
437 UID func(childComplexity int) int
438 }
439
440 PodCondition struct {
441 LastProbeTime func(childComplexity int) int
442 LastTransitionTime func(childComplexity int) int
443 Message func(childComplexity int) int
444 Reason func(childComplexity int) int
445 Status func(childComplexity int) int
446 Type func(childComplexity int) int
447 }
448
449 PodHTTPChaos struct {
450 APIVersion func(childComplexity int) int
451 Annotations func(childComplexity int) int
452 CreationTimestamp func(childComplexity int) int
453 DeletionGracePeriodSeconds func(childComplexity int) int
454 DeletionTimestamp func(childComplexity int) int
455 Finalizers func(childComplexity int) int
456 GenerateName func(childComplexity int) int
457 Generation func(childComplexity int) int
458 Kind func(childComplexity int) int
459 Labels func(childComplexity int) int
460 Name func(childComplexity int) int
461 Namespace func(childComplexity int) int
462 OwnerReferences func(childComplexity int) int
463 Pod func(childComplexity int) int
464 ResourceVersion func(childComplexity int) int
465 SelfLink func(childComplexity int) int
466 Spec func(childComplexity int) int
467 Status func(childComplexity int) int
468 UID func(childComplexity int) int
469 }
470
471 PodHttpChaosActions struct {
472 Abort func(childComplexity int) int
473 Delay func(childComplexity int) int
474 Patch func(childComplexity int) int
475 Replace func(childComplexity int) int
476 }
477
478 PodHttpChaosPatchActions struct {
479 Body func(childComplexity int) int
480 Headers func(childComplexity int) int
481 Queries func(childComplexity int) int
482 }
483
484 PodHttpChaosPatchBodyAction struct {
485 Type func(childComplexity int) int
486 Value func(childComplexity int) int
487 }
488
489 PodHttpChaosReplaceActions struct {
490 Body func(childComplexity int) int
491 Code func(childComplexity int) int
492 Headers func(childComplexity int) int
493 Method func(childComplexity int) int
494 Path func(childComplexity int) int
495 Queries func(childComplexity int) int
496 }
497
498 PodHttpChaosRule struct {
499 Actions func(childComplexity int) int
500 Port func(childComplexity int) int
501 Selector func(childComplexity int) int
502 Source func(childComplexity int) int
503 Target func(childComplexity int) int
504 }
505
506 PodHttpChaosSelector struct {
507 Code func(childComplexity int) int
508 Method func(childComplexity int) int
509 Path func(childComplexity int) int
510 Port func(childComplexity int) int
511 RequestHeaders func(childComplexity int) int
512 ResponseHeaders func(childComplexity int) int
513 }
514
515 PodHttpChaosSpec struct {
516 Rules func(childComplexity int) int
517 TLS func(childComplexity int) int
518 }
519
520 PodHttpChaosStatus struct {
521 FailedMessage func(childComplexity int) int
522 ObservedGeneration func(childComplexity int) int
523 Pid func(childComplexity int) int
524 StartTime func(childComplexity int) int
525 }
526
527 PodHttpChaosTLS struct {
528 CAName func(childComplexity int) int
529 CertName func(childComplexity int) int
530 KeyName func(childComplexity int) int
531 SecretName func(childComplexity int) int
532 SecretNamespace func(childComplexity int) int
533 }
534
535 PodIOChaos struct {
536 APIVersion func(childComplexity int) int
537 Annotations func(childComplexity int) int
538 CreationTimestamp func(childComplexity int) int
539 DeletionGracePeriodSeconds func(childComplexity int) int
540 DeletionTimestamp func(childComplexity int) int
541 Finalizers func(childComplexity int) int
542 GenerateName func(childComplexity int) int
543 Generation func(childComplexity int) int
544 Ios func(childComplexity int) int
545 Kind func(childComplexity int) int
546 Labels func(childComplexity int) int
547 Name func(childComplexity int) int
548 Namespace func(childComplexity int) int
549 OwnerReferences func(childComplexity int) int
550 Pod func(childComplexity int) int
551 ResourceVersion func(childComplexity int) int
552 SelfLink func(childComplexity int) int
553 Spec func(childComplexity int) int
554 Status func(childComplexity int) int
555 UID func(childComplexity int) int
556 }
557
558 PodIOChaosSpec struct {
559 Actions func(childComplexity int) int
560 Container func(childComplexity int) int
561 VolumeMountPath func(childComplexity int) int
562 }
563
564 PodIOChaosStatus struct {
565 FailedMessage func(childComplexity int) int
566 ObservedGeneration func(childComplexity int) int
567 Pid func(childComplexity int) int
568 StartTime func(childComplexity int) int
569 }
570
571 PodIP struct {
572 IP func(childComplexity int) int
573 }
574
575 PodNetworkChaos struct {
576 APIVersion func(childComplexity int) int
577 Annotations func(childComplexity int) int
578 CreationTimestamp func(childComplexity int) int
579 DeletionGracePeriodSeconds func(childComplexity int) int
580 DeletionTimestamp func(childComplexity int) int
581 Finalizers func(childComplexity int) int
582 GenerateName func(childComplexity int) int
583 Generation func(childComplexity int) int
584 Kind func(childComplexity int) int
585 Labels func(childComplexity int) int
586 Name func(childComplexity int) int
587 Namespace func(childComplexity int) int
588 OwnerReferences func(childComplexity int) int
589 Pod func(childComplexity int) int
590 ResourceVersion func(childComplexity int) int
591 SelfLink func(childComplexity int) int
592 Spec func(childComplexity int) int
593 Status func(childComplexity int) int
594 UID func(childComplexity int) int
595 }
596
597 PodNetworkChaosSpec struct {
598 IPSets func(childComplexity int) int
599 Iptables func(childComplexity int) int
600 TrafficControls func(childComplexity int) int
601 }
602
603 PodNetworkChaosStatus struct {
604 FailedMessage func(childComplexity int) int
605 ObservedGeneration func(childComplexity int) int
606 }
607
608 PodSelectorSpec struct {
609 AnnotationSelectors func(childComplexity int) int
610 FieldSelectors func(childComplexity int) int
611 LabelSelectors func(childComplexity int) int
612 Namespaces func(childComplexity int) int
613 NodeSelectors func(childComplexity int) int
614 Nodes func(childComplexity int) int
615 PodPhaseSelectors func(childComplexity int) int
616 Pods func(childComplexity int) int
617 }
618
619 PodSpec struct {
620 NodeName func(childComplexity int) int
621 }
622
623 PodStatus struct {
624 Conditions func(childComplexity int) int
625 ContainerStatuses func(childComplexity int) int
626 EphemeralContainerStatuses func(childComplexity int) int
627 HostIP func(childComplexity int) int
628 InitContainerStatuses func(childComplexity int) int
629 Message func(childComplexity int) int
630 NominatedNodeName func(childComplexity int) int
631 Phase func(childComplexity int) int
632 PodIP func(childComplexity int) int
633 PodIPs func(childComplexity int) int
634 QosClass func(childComplexity int) int
635 Reason func(childComplexity int) int
636 StartTime func(childComplexity int) int
637 }
638
639 PodStressChaos struct {
640 Cgroups func(childComplexity int) int
641 Pod func(childComplexity int) int
642 ProcessStress func(childComplexity int) int
643 StressChaos func(childComplexity int) int
644 }
645
646 Process struct {
647 Command func(childComplexity int) int
648 Fds func(childComplexity int) int
649 Pid func(childComplexity int) int
650 Pod func(childComplexity int) int
651 }
652
653 ProcessStress struct {
654 Cgroup func(childComplexity int) int
655 Process func(childComplexity int) int
656 }
657
658 Query struct {
659 Namespace func(childComplexity int, ns *string) int
660 Pods func(childComplexity int, selector model.PodSelectorInput) int
661 }
662
663 RateSpec struct {
664 Rate func(childComplexity int) int
665 }
666
667 RawIPSet struct {
668 CidrAndPorts func(childComplexity int) int
669 Cidrs func(childComplexity int) int
670 IPSetType func(childComplexity int) int
671 Name func(childComplexity int) int
672 SetNames func(childComplexity int) int
673 Source func(childComplexity int) int
674 }
675
676 RawIptables struct {
677 Device func(childComplexity int) int
678 Direction func(childComplexity int) int
679 IPSets func(childComplexity int) int
680 Name func(childComplexity int) int
681 Source func(childComplexity int) int
682 }
683
684 RawTrafficControl struct {
685 Bandwidth func(childComplexity int) int
686 Corrupt func(childComplexity int) int
687 Delay func(childComplexity int) int
688 Device func(childComplexity int) int
689 Duplicate func(childComplexity int) int
690 IPSet func(childComplexity int) int
691 Loss func(childComplexity int) int
692 Rate func(childComplexity int) int
693 Source func(childComplexity int) int
694 Type func(childComplexity int) int
695 }
696
697 Record struct {
698 Id func(childComplexity int) int
699 Phase func(childComplexity int) int
700 SelectorKey func(childComplexity int) int
701 }
702
703 ReorderSpec struct {
704 Correlation func(childComplexity int) int
705 Gap func(childComplexity int) int
706 Reorder func(childComplexity int) int
707 }
708
709 StressChaos struct {
710 APIVersion func(childComplexity int) int
711 Annotations func(childComplexity int) int
712 CreationTimestamp func(childComplexity int) int
713 DeletionGracePeriodSeconds func(childComplexity int) int
714 DeletionTimestamp func(childComplexity int) int
715 Finalizers func(childComplexity int) int
716 GenerateName func(childComplexity int) int
717 Generation func(childComplexity int) int
718 Kind func(childComplexity int) int
719 Labels func(childComplexity int) int
720 Name func(childComplexity int) int
721 Namespace func(childComplexity int) int
722 OwnerReferences func(childComplexity int) int
723 Podstress func(childComplexity int) int
724 ResourceVersion func(childComplexity int) int
725 SelfLink func(childComplexity int) int
726 Spec func(childComplexity int) int
727 UID func(childComplexity int) int
728 }
729
730 StressChaosSpec struct {
731 ContainerNames func(childComplexity int) int
732 Duration func(childComplexity int) int
733 Mode func(childComplexity int) int
734 Selector func(childComplexity int) int
735 StressngStressors func(childComplexity int) int
736 Stressors func(childComplexity int) int
737 Value func(childComplexity int) int
738 }
739
740 StressChaosStatus struct {
741 Conditions func(childComplexity int) int
742 Experiment func(childComplexity int) int
743 Instances func(childComplexity int) int
744 }
745
746 Stressors struct {
747 CPUStressor func(childComplexity int) int
748 MemoryStressor func(childComplexity int) int
749 }
750
751 Timespec struct {
752 Nsec func(childComplexity int) int
753 Sec func(childComplexity int) int
754 }
755 }
756
757 type AttrOverrideSpecResolver interface {
758 Ino(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
759 Size(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
760 Blocks(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
761
762 Kind(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*string, error)
763 Perm(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
764 Nlink(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
765 UID(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
766 Gid(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
767 Rdev(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
768 }
769 type BandwidthSpecResolver interface {
770 Limit(ctx context.Context, obj *v1alpha1.BandwidthSpec) (int, error)
771 Buffer(ctx context.Context, obj *v1alpha1.BandwidthSpec) (int, error)
772 Peakrate(ctx context.Context, obj *v1alpha1.BandwidthSpec) (*int, error)
773 Minburst(ctx context.Context, obj *v1alpha1.BandwidthSpec) (*int, error)
774 }
775 type ChaosConditionResolver interface {
776 Type(ctx context.Context, obj *v1alpha1.ChaosCondition) (string, error)
777 Status(ctx context.Context, obj *v1alpha1.ChaosCondition) (string, error)
778 }
779 type CidrAndPortResolver interface {
780 Port(ctx context.Context, obj *v1alpha1.CidrAndPort) (int, error)
781 }
782 type ContainerStateRunningResolver interface {
783 StartedAt(ctx context.Context, obj *v1.ContainerStateRunning) (*time.Time, error)
784 }
785 type ContainerStateTerminatedResolver interface {
786 StartedAt(ctx context.Context, obj *v1.ContainerStateTerminated) (*time.Time, error)
787 FinishedAt(ctx context.Context, obj *v1.ContainerStateTerminated) (*time.Time, error)
788 }
789 type ExperimentStatusResolver interface {
790 DesiredPhase(ctx context.Context, obj *v1alpha1.ExperimentStatus) (string, error)
791 }
792 type HTTPChaosResolver interface {
793 UID(ctx context.Context, obj *v1alpha1.HTTPChaos) (string, error)
794
795 CreationTimestamp(ctx context.Context, obj *v1alpha1.HTTPChaos) (*time.Time, error)
796 DeletionTimestamp(ctx context.Context, obj *v1alpha1.HTTPChaos) (*time.Time, error)
797
798 Labels(ctx context.Context, obj *v1alpha1.HTTPChaos) (map[string]interface{}, error)
799 Annotations(ctx context.Context, obj *v1alpha1.HTTPChaos) (map[string]interface{}, error)
800
801 Podhttp(ctx context.Context, obj *v1alpha1.HTTPChaos) ([]*v1alpha1.PodHttpChaos, error)
802 }
803 type HTTPChaosSpecResolver interface {
804 Mode(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (string, error)
805
806 Target(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (string, error)
807
808 RequestHeaders(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (map[string]interface{}, error)
809 ResponseHeaders(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (map[string]interface{}, error)
810 }
811 type HTTPChaosStatusResolver interface {
812 Instances(ctx context.Context, obj *v1alpha1.HTTPChaosStatus) (map[string]interface{}, error)
813 }
814 type IOChaosResolver interface {
815 UID(ctx context.Context, obj *v1alpha1.IOChaos) (string, error)
816
817 CreationTimestamp(ctx context.Context, obj *v1alpha1.IOChaos) (*time.Time, error)
818 DeletionTimestamp(ctx context.Context, obj *v1alpha1.IOChaos) (*time.Time, error)
819
820 Labels(ctx context.Context, obj *v1alpha1.IOChaos) (map[string]interface{}, error)
821 Annotations(ctx context.Context, obj *v1alpha1.IOChaos) (map[string]interface{}, error)
822
823 Podios(ctx context.Context, obj *v1alpha1.IOChaos) ([]*v1alpha1.PodIOChaos, error)
824 }
825 type IOChaosActionResolver interface {
826 Type(ctx context.Context, obj *v1alpha1.IOChaosAction) (string, error)
827
828 Methods(ctx context.Context, obj *v1alpha1.IOChaosAction) ([]string, error)
829
830 Ino(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
831 Size(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
832 Blocks(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
833 Atime(ctx context.Context, obj *v1alpha1.IOChaosAction) (*v1alpha1.Timespec, error)
834 Mtime(ctx context.Context, obj *v1alpha1.IOChaosAction) (*v1alpha1.Timespec, error)
835 Ctime(ctx context.Context, obj *v1alpha1.IOChaosAction) (*v1alpha1.Timespec, error)
836 Kind(ctx context.Context, obj *v1alpha1.IOChaosAction) (*string, error)
837 Perm(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
838 Nlink(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
839 UID(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
840 Gid(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
841 Rdev(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
842 Filling(ctx context.Context, obj *v1alpha1.IOChaosAction) (*string, error)
843 MaxOccurrences(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
844 MaxLength(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int64, error)
845 }
846 type IOChaosSpecResolver interface {
847 Mode(ctx context.Context, obj *v1alpha1.IOChaosSpec) (string, error)
848
849 Action(ctx context.Context, obj *v1alpha1.IOChaosSpec) (string, error)
850
851 Errno(ctx context.Context, obj *v1alpha1.IOChaosSpec) (*int, error)
852
853 Methods(ctx context.Context, obj *v1alpha1.IOChaosSpec) ([]string, error)
854 }
855 type IOChaosStatusResolver interface {
856 Instances(ctx context.Context, obj *v1alpha1.IOChaosStatus) (map[string]interface{}, error)
857 }
858 type IoFaultResolver interface {
859 Errno(ctx context.Context, obj *v1alpha1.IoFault) (int, error)
860 }
861 type LoggerResolver interface {
862 Component(ctx context.Context, ns string, component model.Component) (<-chan string, error)
863 Pod(ctx context.Context, ns string, name string) (<-chan string, error)
864 }
865 type MistakeSpecResolver interface {
866 Filling(ctx context.Context, obj *v1alpha1.MistakeSpec) (*string, error)
867 }
868 type MutablePodResolver interface {
869 KillProcesses(ctx context.Context, obj *model.MutablePod, pids []string) ([]*model.KillProcessResult, error)
870 CleanTcs(ctx context.Context, obj *model.MutablePod, devices []string) ([]string, error)
871 CleanIptables(ctx context.Context, obj *model.MutablePod, chains []string) ([]string, error)
872 }
873 type MutationResolver interface {
874 Pod(ctx context.Context, ns string, name string) (*model.MutablePod, error)
875 }
876 type NamespaceResolver interface {
877 Component(ctx context.Context, obj *model.Namespace, component model.Component) ([]*v1.Pod, error)
878 Pod(ctx context.Context, obj *model.Namespace, name *string) ([]*v1.Pod, error)
879 Stresschaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.StressChaos, error)
880 Iochaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.IOChaos, error)
881 Podiochaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.PodIOChaos, error)
882 Httpchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.HTTPChaos, error)
883 Podhttpchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.PodHttpChaos, error)
884 Networkchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.NetworkChaos, error)
885 Podnetworkchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.PodNetworkChaos, error)
886 }
887 type NetworkChaosResolver interface {
888 UID(ctx context.Context, obj *v1alpha1.NetworkChaos) (string, error)
889
890 CreationTimestamp(ctx context.Context, obj *v1alpha1.NetworkChaos) (*time.Time, error)
891 DeletionTimestamp(ctx context.Context, obj *v1alpha1.NetworkChaos) (*time.Time, error)
892
893 Labels(ctx context.Context, obj *v1alpha1.NetworkChaos) (map[string]interface{}, error)
894 Annotations(ctx context.Context, obj *v1alpha1.NetworkChaos) (map[string]interface{}, error)
895
896 Podnetwork(ctx context.Context, obj *v1alpha1.NetworkChaos) ([]*v1alpha1.PodNetworkChaos, error)
897 }
898 type OwnerReferenceResolver interface {
899 UID(ctx context.Context, obj *v11.OwnerReference) (string, error)
900 }
901 type PodResolver interface {
902 UID(ctx context.Context, obj *v1.Pod) (string, error)
903
904 CreationTimestamp(ctx context.Context, obj *v1.Pod) (*time.Time, error)
905 DeletionTimestamp(ctx context.Context, obj *v1.Pod) (*time.Time, error)
906
907 Labels(ctx context.Context, obj *v1.Pod) (map[string]interface{}, error)
908 Annotations(ctx context.Context, obj *v1.Pod) (map[string]interface{}, error)
909
910 Logs(ctx context.Context, obj *v1.Pod) (string, error)
911 Daemon(ctx context.Context, obj *v1.Pod) (*v1.Pod, error)
912 Processes(ctx context.Context, obj *v1.Pod) ([]*model.Process, error)
913 Mounts(ctx context.Context, obj *v1.Pod) ([]string, error)
914 Ipset(ctx context.Context, obj *v1.Pod) (string, error)
915 TcQdisc(ctx context.Context, obj *v1.Pod) ([]string, error)
916 Iptables(ctx context.Context, obj *v1.Pod) ([]string, error)
917 }
918 type PodConditionResolver interface {
919 Type(ctx context.Context, obj *v1.PodCondition) (string, error)
920 Status(ctx context.Context, obj *v1.PodCondition) (string, error)
921 LastProbeTime(ctx context.Context, obj *v1.PodCondition) (*time.Time, error)
922 LastTransitionTime(ctx context.Context, obj *v1.PodCondition) (*time.Time, error)
923 }
924 type PodHTTPChaosResolver interface {
925 UID(ctx context.Context, obj *v1alpha1.PodHttpChaos) (string, error)
926
927 CreationTimestamp(ctx context.Context, obj *v1alpha1.PodHttpChaos) (*time.Time, error)
928 DeletionTimestamp(ctx context.Context, obj *v1alpha1.PodHttpChaos) (*time.Time, error)
929
930 Labels(ctx context.Context, obj *v1alpha1.PodHttpChaos) (map[string]interface{}, error)
931 Annotations(ctx context.Context, obj *v1alpha1.PodHttpChaos) (map[string]interface{}, error)
932
933 Pod(ctx context.Context, obj *v1alpha1.PodHttpChaos) (*v1.Pod, error)
934 }
935 type PodHttpChaosReplaceActionsResolver interface {
936 Body(ctx context.Context, obj *v1alpha1.PodHttpChaosReplaceActions) (*string, error)
937 Queries(ctx context.Context, obj *v1alpha1.PodHttpChaosReplaceActions) (map[string]interface{}, error)
938 Headers(ctx context.Context, obj *v1alpha1.PodHttpChaosReplaceActions) (map[string]interface{}, error)
939 }
940 type PodHttpChaosRuleResolver interface {
941 Target(ctx context.Context, obj *v1alpha1.PodHttpChaosRule) (string, error)
942 }
943 type PodHttpChaosSelectorResolver interface {
944 RequestHeaders(ctx context.Context, obj *v1alpha1.PodHttpChaosSelector) (map[string]interface{}, error)
945 ResponseHeaders(ctx context.Context, obj *v1alpha1.PodHttpChaosSelector) (map[string]interface{}, error)
946 }
947 type PodIOChaosResolver interface {
948 UID(ctx context.Context, obj *v1alpha1.PodIOChaos) (string, error)
949
950 CreationTimestamp(ctx context.Context, obj *v1alpha1.PodIOChaos) (*time.Time, error)
951 DeletionTimestamp(ctx context.Context, obj *v1alpha1.PodIOChaos) (*time.Time, error)
952
953 Labels(ctx context.Context, obj *v1alpha1.PodIOChaos) (map[string]interface{}, error)
954 Annotations(ctx context.Context, obj *v1alpha1.PodIOChaos) (map[string]interface{}, error)
955
956 Pod(ctx context.Context, obj *v1alpha1.PodIOChaos) (*v1.Pod, error)
957 Ios(ctx context.Context, obj *v1alpha1.PodIOChaos) ([]*v1alpha1.IOChaos, error)
958 }
959 type PodNetworkChaosResolver interface {
960 UID(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (string, error)
961
962 CreationTimestamp(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (*time.Time, error)
963 DeletionTimestamp(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (*time.Time, error)
964
965 Labels(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (map[string]interface{}, error)
966 Annotations(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (map[string]interface{}, error)
967
968 Pod(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (*v1.Pod, error)
969 }
970 type PodSelectorSpecResolver interface {
971 Pods(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
972 NodeSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
973 FieldSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
974 LabelSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
975 AnnotationSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
976 }
977 type PodStatusResolver interface {
978 Phase(ctx context.Context, obj *v1.PodStatus) (string, error)
979
980 StartTime(ctx context.Context, obj *v1.PodStatus) (*time.Time, error)
981
982 QosClass(ctx context.Context, obj *v1.PodStatus) (string, error)
983 }
984 type PodStressChaosResolver interface {
985 Cgroups(ctx context.Context, obj *model.PodStressChaos) (*model.Cgroups, error)
986 ProcessStress(ctx context.Context, obj *model.PodStressChaos) ([]*model.ProcessStress, error)
987 }
988 type ProcessResolver interface {
989 Fds(ctx context.Context, obj *model.Process) ([]*model.Fd, error)
990 }
991 type QueryResolver interface {
992 Namespace(ctx context.Context, ns *string) ([]*model.Namespace, error)
993 Pods(ctx context.Context, selector model.PodSelectorInput) ([]*v1.Pod, error)
994 }
995 type RawIPSetResolver interface {
996 IPSetType(ctx context.Context, obj *v1alpha1.RawIPSet) (string, error)
997 }
998 type RawIptablesResolver interface {
999 Direction(ctx context.Context, obj *v1alpha1.RawIptables) (string, error)
1000 }
1001 type RawTrafficControlResolver interface {
1002 Type(ctx context.Context, obj *v1alpha1.RawTrafficControl) (string, error)
1003 }
1004 type RecordResolver interface {
1005 Phase(ctx context.Context, obj *v1alpha1.Record) (string, error)
1006 }
1007 type StressChaosResolver interface {
1008 UID(ctx context.Context, obj *v1alpha1.StressChaos) (string, error)
1009
1010 CreationTimestamp(ctx context.Context, obj *v1alpha1.StressChaos) (*time.Time, error)
1011 DeletionTimestamp(ctx context.Context, obj *v1alpha1.StressChaos) (*time.Time, error)
1012
1013 Labels(ctx context.Context, obj *v1alpha1.StressChaos) (map[string]interface{}, error)
1014 Annotations(ctx context.Context, obj *v1alpha1.StressChaos) (map[string]interface{}, error)
1015
1016 Podstress(ctx context.Context, obj *v1alpha1.StressChaos) ([]*model.PodStressChaos, error)
1017 }
1018 type StressChaosSpecResolver interface {
1019 Mode(ctx context.Context, obj *v1alpha1.StressChaosSpec) (string, error)
1020 }
1021 type StressChaosStatusResolver interface {
1022 Instances(ctx context.Context, obj *v1alpha1.StressChaosStatus) (map[string]interface{}, error)
1023 }
1024
1025 type executableSchema struct {
1026 resolvers ResolverRoot
1027 directives DirectiveRoot
1028 complexity ComplexityRoot
1029 }
1030
1031 func (e *executableSchema) Schema() *ast.Schema {
1032 return parsedSchema
1033 }
1034
1035 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
1036 ec := executionContext{nil, e}
1037 _ = ec
1038 switch typeName + "." + field {
1039
1040 case "AttrOverrideSpec.atime":
1041 if e.complexity.AttrOverrideSpec.Atime == nil {
1042 break
1043 }
1044
1045 return e.complexity.AttrOverrideSpec.Atime(childComplexity), true
1046
1047 case "AttrOverrideSpec.blocks":
1048 if e.complexity.AttrOverrideSpec.Blocks == nil {
1049 break
1050 }
1051
1052 return e.complexity.AttrOverrideSpec.Blocks(childComplexity), true
1053
1054 case "AttrOverrideSpec.ctime":
1055 if e.complexity.AttrOverrideSpec.Ctime == nil {
1056 break
1057 }
1058
1059 return e.complexity.AttrOverrideSpec.Ctime(childComplexity), true
1060
1061 case "AttrOverrideSpec.gid":
1062 if e.complexity.AttrOverrideSpec.Gid == nil {
1063 break
1064 }
1065
1066 return e.complexity.AttrOverrideSpec.Gid(childComplexity), true
1067
1068 case "AttrOverrideSpec.ino":
1069 if e.complexity.AttrOverrideSpec.Ino == nil {
1070 break
1071 }
1072
1073 return e.complexity.AttrOverrideSpec.Ino(childComplexity), true
1074
1075 case "AttrOverrideSpec.kind":
1076 if e.complexity.AttrOverrideSpec.Kind == nil {
1077 break
1078 }
1079
1080 return e.complexity.AttrOverrideSpec.Kind(childComplexity), true
1081
1082 case "AttrOverrideSpec.mtime":
1083 if e.complexity.AttrOverrideSpec.Mtime == nil {
1084 break
1085 }
1086
1087 return e.complexity.AttrOverrideSpec.Mtime(childComplexity), true
1088
1089 case "AttrOverrideSpec.nlink":
1090 if e.complexity.AttrOverrideSpec.Nlink == nil {
1091 break
1092 }
1093
1094 return e.complexity.AttrOverrideSpec.Nlink(childComplexity), true
1095
1096 case "AttrOverrideSpec.perm":
1097 if e.complexity.AttrOverrideSpec.Perm == nil {
1098 break
1099 }
1100
1101 return e.complexity.AttrOverrideSpec.Perm(childComplexity), true
1102
1103 case "AttrOverrideSpec.rdev":
1104 if e.complexity.AttrOverrideSpec.Rdev == nil {
1105 break
1106 }
1107
1108 return e.complexity.AttrOverrideSpec.Rdev(childComplexity), true
1109
1110 case "AttrOverrideSpec.size":
1111 if e.complexity.AttrOverrideSpec.Size == nil {
1112 break
1113 }
1114
1115 return e.complexity.AttrOverrideSpec.Size(childComplexity), true
1116
1117 case "AttrOverrideSpec.uid":
1118 if e.complexity.AttrOverrideSpec.UID == nil {
1119 break
1120 }
1121
1122 return e.complexity.AttrOverrideSpec.UID(childComplexity), true
1123
1124 case "BandwidthSpec.buffer":
1125 if e.complexity.BandwidthSpec.Buffer == nil {
1126 break
1127 }
1128
1129 return e.complexity.BandwidthSpec.Buffer(childComplexity), true
1130
1131 case "BandwidthSpec.limit":
1132 if e.complexity.BandwidthSpec.Limit == nil {
1133 break
1134 }
1135
1136 return e.complexity.BandwidthSpec.Limit(childComplexity), true
1137
1138 case "BandwidthSpec.minburst":
1139 if e.complexity.BandwidthSpec.Minburst == nil {
1140 break
1141 }
1142
1143 return e.complexity.BandwidthSpec.Minburst(childComplexity), true
1144
1145 case "BandwidthSpec.peakrate":
1146 if e.complexity.BandwidthSpec.Peakrate == nil {
1147 break
1148 }
1149
1150 return e.complexity.BandwidthSpec.Peakrate(childComplexity), true
1151
1152 case "BandwidthSpec.rate":
1153 if e.complexity.BandwidthSpec.Rate == nil {
1154 break
1155 }
1156
1157 return e.complexity.BandwidthSpec.Rate(childComplexity), true
1158
1159 case "CPUStressor.load":
1160 if e.complexity.CPUStressor.Load == nil {
1161 break
1162 }
1163
1164 return e.complexity.CPUStressor.Load(childComplexity), true
1165
1166 case "CPUStressor.options":
1167 if e.complexity.CPUStressor.Options == nil {
1168 break
1169 }
1170
1171 return e.complexity.CPUStressor.Options(childComplexity), true
1172
1173 case "CPUStressor.workers":
1174 if e.complexity.CPUStressor.Workers == nil {
1175 break
1176 }
1177
1178 return e.complexity.CPUStressor.Workers(childComplexity), true
1179
1180 case "Cgroups.cpu":
1181 if e.complexity.Cgroups.CPU == nil {
1182 break
1183 }
1184
1185 return e.complexity.Cgroups.CPU(childComplexity), true
1186
1187 case "Cgroups.memory":
1188 if e.complexity.Cgroups.Memory == nil {
1189 break
1190 }
1191
1192 return e.complexity.Cgroups.Memory(childComplexity), true
1193
1194 case "Cgroups.raw":
1195 if e.complexity.Cgroups.Raw == nil {
1196 break
1197 }
1198
1199 return e.complexity.Cgroups.Raw(childComplexity), true
1200
1201 case "CgroupsCpu.period":
1202 if e.complexity.CgroupsCpu.Period == nil {
1203 break
1204 }
1205
1206 return e.complexity.CgroupsCpu.Period(childComplexity), true
1207
1208 case "CgroupsCpu.quota":
1209 if e.complexity.CgroupsCpu.Quota == nil {
1210 break
1211 }
1212
1213 return e.complexity.CgroupsCpu.Quota(childComplexity), true
1214
1215 case "CgroupsMemory.limit":
1216 if e.complexity.CgroupsMemory.Limit == nil {
1217 break
1218 }
1219
1220 return e.complexity.CgroupsMemory.Limit(childComplexity), true
1221
1222 case "ChaosCondition.reason":
1223 if e.complexity.ChaosCondition.Reason == nil {
1224 break
1225 }
1226
1227 return e.complexity.ChaosCondition.Reason(childComplexity), true
1228
1229 case "ChaosCondition.status":
1230 if e.complexity.ChaosCondition.Status == nil {
1231 break
1232 }
1233
1234 return e.complexity.ChaosCondition.Status(childComplexity), true
1235
1236 case "ChaosCondition.type":
1237 if e.complexity.ChaosCondition.Type == nil {
1238 break
1239 }
1240
1241 return e.complexity.ChaosCondition.Type(childComplexity), true
1242
1243 case "CidrAndPort.cidr":
1244 if e.complexity.CidrAndPort.Cidr == nil {
1245 break
1246 }
1247
1248 return e.complexity.CidrAndPort.Cidr(childComplexity), true
1249
1250 case "CidrAndPort.port":
1251 if e.complexity.CidrAndPort.Port == nil {
1252 break
1253 }
1254
1255 return e.complexity.CidrAndPort.Port(childComplexity), true
1256
1257 case "ContainerState.running":
1258 if e.complexity.ContainerState.Running == nil {
1259 break
1260 }
1261
1262 return e.complexity.ContainerState.Running(childComplexity), true
1263
1264 case "ContainerState.terminated":
1265 if e.complexity.ContainerState.Terminated == nil {
1266 break
1267 }
1268
1269 return e.complexity.ContainerState.Terminated(childComplexity), true
1270
1271 case "ContainerState.waiting":
1272 if e.complexity.ContainerState.Waiting == nil {
1273 break
1274 }
1275
1276 return e.complexity.ContainerState.Waiting(childComplexity), true
1277
1278 case "ContainerStateRunning.startedAt":
1279 if e.complexity.ContainerStateRunning.StartedAt == nil {
1280 break
1281 }
1282
1283 return e.complexity.ContainerStateRunning.StartedAt(childComplexity), true
1284
1285 case "ContainerStateTerminated.containerID":
1286 if e.complexity.ContainerStateTerminated.ContainerID == nil {
1287 break
1288 }
1289
1290 return e.complexity.ContainerStateTerminated.ContainerID(childComplexity), true
1291
1292 case "ContainerStateTerminated.exitCode":
1293 if e.complexity.ContainerStateTerminated.ExitCode == nil {
1294 break
1295 }
1296
1297 return e.complexity.ContainerStateTerminated.ExitCode(childComplexity), true
1298
1299 case "ContainerStateTerminated.finishedAt":
1300 if e.complexity.ContainerStateTerminated.FinishedAt == nil {
1301 break
1302 }
1303
1304 return e.complexity.ContainerStateTerminated.FinishedAt(childComplexity), true
1305
1306 case "ContainerStateTerminated.message":
1307 if e.complexity.ContainerStateTerminated.Message == nil {
1308 break
1309 }
1310
1311 return e.complexity.ContainerStateTerminated.Message(childComplexity), true
1312
1313 case "ContainerStateTerminated.reason":
1314 if e.complexity.ContainerStateTerminated.Reason == nil {
1315 break
1316 }
1317
1318 return e.complexity.ContainerStateTerminated.Reason(childComplexity), true
1319
1320 case "ContainerStateTerminated.signal":
1321 if e.complexity.ContainerStateTerminated.Signal == nil {
1322 break
1323 }
1324
1325 return e.complexity.ContainerStateTerminated.Signal(childComplexity), true
1326
1327 case "ContainerStateTerminated.startedAt":
1328 if e.complexity.ContainerStateTerminated.StartedAt == nil {
1329 break
1330 }
1331
1332 return e.complexity.ContainerStateTerminated.StartedAt(childComplexity), true
1333
1334 case "ContainerStateWaiting.message":
1335 if e.complexity.ContainerStateWaiting.Message == nil {
1336 break
1337 }
1338
1339 return e.complexity.ContainerStateWaiting.Message(childComplexity), true
1340
1341 case "ContainerStateWaiting.reason":
1342 if e.complexity.ContainerStateWaiting.Reason == nil {
1343 break
1344 }
1345
1346 return e.complexity.ContainerStateWaiting.Reason(childComplexity), true
1347
1348 case "ContainerStatus.containerID":
1349 if e.complexity.ContainerStatus.ContainerID == nil {
1350 break
1351 }
1352
1353 return e.complexity.ContainerStatus.ContainerID(childComplexity), true
1354
1355 case "ContainerStatus.image":
1356 if e.complexity.ContainerStatus.Image == nil {
1357 break
1358 }
1359
1360 return e.complexity.ContainerStatus.Image(childComplexity), true
1361
1362 case "ContainerStatus.imageID":
1363 if e.complexity.ContainerStatus.ImageID == nil {
1364 break
1365 }
1366
1367 return e.complexity.ContainerStatus.ImageID(childComplexity), true
1368
1369 case "ContainerStatus.lastTerminationState":
1370 if e.complexity.ContainerStatus.LastTerminationState == nil {
1371 break
1372 }
1373
1374 return e.complexity.ContainerStatus.LastTerminationState(childComplexity), true
1375
1376 case "ContainerStatus.name":
1377 if e.complexity.ContainerStatus.Name == nil {
1378 break
1379 }
1380
1381 return e.complexity.ContainerStatus.Name(childComplexity), true
1382
1383 case "ContainerStatus.ready":
1384 if e.complexity.ContainerStatus.Ready == nil {
1385 break
1386 }
1387
1388 return e.complexity.ContainerStatus.Ready(childComplexity), true
1389
1390 case "ContainerStatus.restartCount":
1391 if e.complexity.ContainerStatus.RestartCount == nil {
1392 break
1393 }
1394
1395 return e.complexity.ContainerStatus.RestartCount(childComplexity), true
1396
1397 case "ContainerStatus.started":
1398 if e.complexity.ContainerStatus.Started == nil {
1399 break
1400 }
1401
1402 return e.complexity.ContainerStatus.Started(childComplexity), true
1403
1404 case "ContainerStatus.State":
1405 if e.complexity.ContainerStatus.State == nil {
1406 break
1407 }
1408
1409 return e.complexity.ContainerStatus.State(childComplexity), true
1410
1411 case "CorruptSpec.correlation":
1412 if e.complexity.CorruptSpec.Correlation == nil {
1413 break
1414 }
1415
1416 return e.complexity.CorruptSpec.Correlation(childComplexity), true
1417
1418 case "CorruptSpec.corrupt":
1419 if e.complexity.CorruptSpec.Corrupt == nil {
1420 break
1421 }
1422
1423 return e.complexity.CorruptSpec.Corrupt(childComplexity), true
1424
1425 case "DelaySpec.correlation":
1426 if e.complexity.DelaySpec.Correlation == nil {
1427 break
1428 }
1429
1430 return e.complexity.DelaySpec.Correlation(childComplexity), true
1431
1432 case "DelaySpec.jitter":
1433 if e.complexity.DelaySpec.Jitter == nil {
1434 break
1435 }
1436
1437 return e.complexity.DelaySpec.Jitter(childComplexity), true
1438
1439 case "DelaySpec.latency":
1440 if e.complexity.DelaySpec.Latency == nil {
1441 break
1442 }
1443
1444 return e.complexity.DelaySpec.Latency(childComplexity), true
1445
1446 case "DelaySpec.reorder":
1447 if e.complexity.DelaySpec.Reorder == nil {
1448 break
1449 }
1450
1451 return e.complexity.DelaySpec.Reorder(childComplexity), true
1452
1453 case "DuplicateSpec.correlation":
1454 if e.complexity.DuplicateSpec.Correlation == nil {
1455 break
1456 }
1457
1458 return e.complexity.DuplicateSpec.Correlation(childComplexity), true
1459
1460 case "DuplicateSpec.duplicate":
1461 if e.complexity.DuplicateSpec.Duplicate == nil {
1462 break
1463 }
1464
1465 return e.complexity.DuplicateSpec.Duplicate(childComplexity), true
1466
1467 case "ExperimentStatus.desiredPhase":
1468 if e.complexity.ExperimentStatus.DesiredPhase == nil {
1469 break
1470 }
1471
1472 return e.complexity.ExperimentStatus.DesiredPhase(childComplexity), true
1473
1474 case "ExperimentStatus.Records":
1475 if e.complexity.ExperimentStatus.Records == nil {
1476 break
1477 }
1478
1479 return e.complexity.ExperimentStatus.Records(childComplexity), true
1480
1481 case "Fd.fd":
1482 if e.complexity.Fd.Fd == nil {
1483 break
1484 }
1485
1486 return e.complexity.Fd.Fd(childComplexity), true
1487
1488 case "Fd.target":
1489 if e.complexity.Fd.Target == nil {
1490 break
1491 }
1492
1493 return e.complexity.Fd.Target(childComplexity), true
1494
1495 case "HTTPChaos.apiVersion":
1496 if e.complexity.HTTPChaos.APIVersion == nil {
1497 break
1498 }
1499
1500 return e.complexity.HTTPChaos.APIVersion(childComplexity), true
1501
1502 case "HTTPChaos.annotations":
1503 if e.complexity.HTTPChaos.Annotations == nil {
1504 break
1505 }
1506
1507 return e.complexity.HTTPChaos.Annotations(childComplexity), true
1508
1509 case "HTTPChaos.creationTimestamp":
1510 if e.complexity.HTTPChaos.CreationTimestamp == nil {
1511 break
1512 }
1513
1514 return e.complexity.HTTPChaos.CreationTimestamp(childComplexity), true
1515
1516 case "HTTPChaos.deletionGracePeriodSeconds":
1517 if e.complexity.HTTPChaos.DeletionGracePeriodSeconds == nil {
1518 break
1519 }
1520
1521 return e.complexity.HTTPChaos.DeletionGracePeriodSeconds(childComplexity), true
1522
1523 case "HTTPChaos.deletionTimestamp":
1524 if e.complexity.HTTPChaos.DeletionTimestamp == nil {
1525 break
1526 }
1527
1528 return e.complexity.HTTPChaos.DeletionTimestamp(childComplexity), true
1529
1530 case "HTTPChaos.finalizers":
1531 if e.complexity.HTTPChaos.Finalizers == nil {
1532 break
1533 }
1534
1535 return e.complexity.HTTPChaos.Finalizers(childComplexity), true
1536
1537 case "HTTPChaos.generateName":
1538 if e.complexity.HTTPChaos.GenerateName == nil {
1539 break
1540 }
1541
1542 return e.complexity.HTTPChaos.GenerateName(childComplexity), true
1543
1544 case "HTTPChaos.generation":
1545 if e.complexity.HTTPChaos.Generation == nil {
1546 break
1547 }
1548
1549 return e.complexity.HTTPChaos.Generation(childComplexity), true
1550
1551 case "HTTPChaos.kind":
1552 if e.complexity.HTTPChaos.Kind == nil {
1553 break
1554 }
1555
1556 return e.complexity.HTTPChaos.Kind(childComplexity), true
1557
1558 case "HTTPChaos.labels":
1559 if e.complexity.HTTPChaos.Labels == nil {
1560 break
1561 }
1562
1563 return e.complexity.HTTPChaos.Labels(childComplexity), true
1564
1565 case "HTTPChaos.name":
1566 if e.complexity.HTTPChaos.Name == nil {
1567 break
1568 }
1569
1570 return e.complexity.HTTPChaos.Name(childComplexity), true
1571
1572 case "HTTPChaos.namespace":
1573 if e.complexity.HTTPChaos.Namespace == nil {
1574 break
1575 }
1576
1577 return e.complexity.HTTPChaos.Namespace(childComplexity), true
1578
1579 case "HTTPChaos.ownerReferences":
1580 if e.complexity.HTTPChaos.OwnerReferences == nil {
1581 break
1582 }
1583
1584 return e.complexity.HTTPChaos.OwnerReferences(childComplexity), true
1585
1586 case "HTTPChaos.podhttp":
1587 if e.complexity.HTTPChaos.Podhttp == nil {
1588 break
1589 }
1590
1591 return e.complexity.HTTPChaos.Podhttp(childComplexity), true
1592
1593 case "HTTPChaos.resourceVersion":
1594 if e.complexity.HTTPChaos.ResourceVersion == nil {
1595 break
1596 }
1597
1598 return e.complexity.HTTPChaos.ResourceVersion(childComplexity), true
1599
1600 case "HTTPChaos.selfLink":
1601 if e.complexity.HTTPChaos.SelfLink == nil {
1602 break
1603 }
1604
1605 return e.complexity.HTTPChaos.SelfLink(childComplexity), true
1606
1607 case "HTTPChaos.spec":
1608 if e.complexity.HTTPChaos.Spec == nil {
1609 break
1610 }
1611
1612 return e.complexity.HTTPChaos.Spec(childComplexity), true
1613
1614 case "HTTPChaos.status":
1615 if e.complexity.HTTPChaos.Status == nil {
1616 break
1617 }
1618
1619 return e.complexity.HTTPChaos.Status(childComplexity), true
1620
1621 case "HTTPChaos.uid":
1622 if e.complexity.HTTPChaos.UID == nil {
1623 break
1624 }
1625
1626 return e.complexity.HTTPChaos.UID(childComplexity), true
1627
1628 case "HTTPChaosSpec.abort":
1629 if e.complexity.HTTPChaosSpec.Abort == nil {
1630 break
1631 }
1632
1633 return e.complexity.HTTPChaosSpec.Abort(childComplexity), true
1634
1635 case "HTTPChaosSpec.code":
1636 if e.complexity.HTTPChaosSpec.Code == nil {
1637 break
1638 }
1639
1640 return e.complexity.HTTPChaosSpec.Code(childComplexity), true
1641
1642 case "HTTPChaosSpec.delay":
1643 if e.complexity.HTTPChaosSpec.Delay == nil {
1644 break
1645 }
1646
1647 return e.complexity.HTTPChaosSpec.Delay(childComplexity), true
1648
1649 case "HTTPChaosSpec.duration":
1650 if e.complexity.HTTPChaosSpec.Duration == nil {
1651 break
1652 }
1653
1654 return e.complexity.HTTPChaosSpec.Duration(childComplexity), true
1655
1656 case "HTTPChaosSpec.method":
1657 if e.complexity.HTTPChaosSpec.Method == nil {
1658 break
1659 }
1660
1661 return e.complexity.HTTPChaosSpec.Method(childComplexity), true
1662
1663 case "HTTPChaosSpec.mode":
1664 if e.complexity.HTTPChaosSpec.Mode == nil {
1665 break
1666 }
1667
1668 return e.complexity.HTTPChaosSpec.Mode(childComplexity), true
1669
1670 case "HTTPChaosSpec.patch":
1671 if e.complexity.HTTPChaosSpec.Patch == nil {
1672 break
1673 }
1674
1675 return e.complexity.HTTPChaosSpec.Patch(childComplexity), true
1676
1677 case "HTTPChaosSpec.path":
1678 if e.complexity.HTTPChaosSpec.Path == nil {
1679 break
1680 }
1681
1682 return e.complexity.HTTPChaosSpec.Path(childComplexity), true
1683
1684 case "HTTPChaosSpec.port":
1685 if e.complexity.HTTPChaosSpec.Port == nil {
1686 break
1687 }
1688
1689 return e.complexity.HTTPChaosSpec.Port(childComplexity), true
1690
1691 case "HTTPChaosSpec.replace":
1692 if e.complexity.HTTPChaosSpec.Replace == nil {
1693 break
1694 }
1695
1696 return e.complexity.HTTPChaosSpec.Replace(childComplexity), true
1697
1698 case "HTTPChaosSpec.requestHeaders":
1699 if e.complexity.HTTPChaosSpec.RequestHeaders == nil {
1700 break
1701 }
1702
1703 return e.complexity.HTTPChaosSpec.RequestHeaders(childComplexity), true
1704
1705 case "HTTPChaosSpec.responseHeaders":
1706 if e.complexity.HTTPChaosSpec.ResponseHeaders == nil {
1707 break
1708 }
1709
1710 return e.complexity.HTTPChaosSpec.ResponseHeaders(childComplexity), true
1711
1712 case "HTTPChaosSpec.selector":
1713 if e.complexity.HTTPChaosSpec.Selector == nil {
1714 break
1715 }
1716
1717 return e.complexity.HTTPChaosSpec.Selector(childComplexity), true
1718
1719 case "HTTPChaosSpec.target":
1720 if e.complexity.HTTPChaosSpec.Target == nil {
1721 break
1722 }
1723
1724 return e.complexity.HTTPChaosSpec.Target(childComplexity), true
1725
1726 case "HTTPChaosSpec.value":
1727 if e.complexity.HTTPChaosSpec.Value == nil {
1728 break
1729 }
1730
1731 return e.complexity.HTTPChaosSpec.Value(childComplexity), true
1732
1733 case "HTTPChaosStatus.conditions":
1734 if e.complexity.HTTPChaosStatus.Conditions == nil {
1735 break
1736 }
1737
1738 return e.complexity.HTTPChaosStatus.Conditions(childComplexity), true
1739
1740 case "HTTPChaosStatus.experiment":
1741 if e.complexity.HTTPChaosStatus.Experiment == nil {
1742 break
1743 }
1744
1745 return e.complexity.HTTPChaosStatus.Experiment(childComplexity), true
1746
1747 case "HTTPChaosStatus.instances":
1748 if e.complexity.HTTPChaosStatus.Instances == nil {
1749 break
1750 }
1751
1752 return e.complexity.HTTPChaosStatus.Instances(childComplexity), true
1753
1754 case "IOChaos.apiVersion":
1755 if e.complexity.IOChaos.APIVersion == nil {
1756 break
1757 }
1758
1759 return e.complexity.IOChaos.APIVersion(childComplexity), true
1760
1761 case "IOChaos.annotations":
1762 if e.complexity.IOChaos.Annotations == nil {
1763 break
1764 }
1765
1766 return e.complexity.IOChaos.Annotations(childComplexity), true
1767
1768 case "IOChaos.creationTimestamp":
1769 if e.complexity.IOChaos.CreationTimestamp == nil {
1770 break
1771 }
1772
1773 return e.complexity.IOChaos.CreationTimestamp(childComplexity), true
1774
1775 case "IOChaos.deletionGracePeriodSeconds":
1776 if e.complexity.IOChaos.DeletionGracePeriodSeconds == nil {
1777 break
1778 }
1779
1780 return e.complexity.IOChaos.DeletionGracePeriodSeconds(childComplexity), true
1781
1782 case "IOChaos.deletionTimestamp":
1783 if e.complexity.IOChaos.DeletionTimestamp == nil {
1784 break
1785 }
1786
1787 return e.complexity.IOChaos.DeletionTimestamp(childComplexity), true
1788
1789 case "IOChaos.finalizers":
1790 if e.complexity.IOChaos.Finalizers == nil {
1791 break
1792 }
1793
1794 return e.complexity.IOChaos.Finalizers(childComplexity), true
1795
1796 case "IOChaos.generateName":
1797 if e.complexity.IOChaos.GenerateName == nil {
1798 break
1799 }
1800
1801 return e.complexity.IOChaos.GenerateName(childComplexity), true
1802
1803 case "IOChaos.generation":
1804 if e.complexity.IOChaos.Generation == nil {
1805 break
1806 }
1807
1808 return e.complexity.IOChaos.Generation(childComplexity), true
1809
1810 case "IOChaos.kind":
1811 if e.complexity.IOChaos.Kind == nil {
1812 break
1813 }
1814
1815 return e.complexity.IOChaos.Kind(childComplexity), true
1816
1817 case "IOChaos.labels":
1818 if e.complexity.IOChaos.Labels == nil {
1819 break
1820 }
1821
1822 return e.complexity.IOChaos.Labels(childComplexity), true
1823
1824 case "IOChaos.name":
1825 if e.complexity.IOChaos.Name == nil {
1826 break
1827 }
1828
1829 return e.complexity.IOChaos.Name(childComplexity), true
1830
1831 case "IOChaos.namespace":
1832 if e.complexity.IOChaos.Namespace == nil {
1833 break
1834 }
1835
1836 return e.complexity.IOChaos.Namespace(childComplexity), true
1837
1838 case "IOChaos.ownerReferences":
1839 if e.complexity.IOChaos.OwnerReferences == nil {
1840 break
1841 }
1842
1843 return e.complexity.IOChaos.OwnerReferences(childComplexity), true
1844
1845 case "IOChaos.podios":
1846 if e.complexity.IOChaos.Podios == nil {
1847 break
1848 }
1849
1850 return e.complexity.IOChaos.Podios(childComplexity), true
1851
1852 case "IOChaos.resourceVersion":
1853 if e.complexity.IOChaos.ResourceVersion == nil {
1854 break
1855 }
1856
1857 return e.complexity.IOChaos.ResourceVersion(childComplexity), true
1858
1859 case "IOChaos.selfLink":
1860 if e.complexity.IOChaos.SelfLink == nil {
1861 break
1862 }
1863
1864 return e.complexity.IOChaos.SelfLink(childComplexity), true
1865
1866 case "IOChaos.spec":
1867 if e.complexity.IOChaos.Spec == nil {
1868 break
1869 }
1870
1871 return e.complexity.IOChaos.Spec(childComplexity), true
1872
1873 case "IOChaos.status":
1874 if e.complexity.IOChaos.Status == nil {
1875 break
1876 }
1877
1878 return e.complexity.IOChaos.Status(childComplexity), true
1879
1880 case "IOChaos.uid":
1881 if e.complexity.IOChaos.UID == nil {
1882 break
1883 }
1884
1885 return e.complexity.IOChaos.UID(childComplexity), true
1886
1887 case "IOChaosAction.atime":
1888 if e.complexity.IOChaosAction.Atime == nil {
1889 break
1890 }
1891
1892 return e.complexity.IOChaosAction.Atime(childComplexity), true
1893
1894 case "IOChaosAction.blocks":
1895 if e.complexity.IOChaosAction.Blocks == nil {
1896 break
1897 }
1898
1899 return e.complexity.IOChaosAction.Blocks(childComplexity), true
1900
1901 case "IOChaosAction.ctime":
1902 if e.complexity.IOChaosAction.Ctime == nil {
1903 break
1904 }
1905
1906 return e.complexity.IOChaosAction.Ctime(childComplexity), true
1907
1908 case "IOChaosAction.faults":
1909 if e.complexity.IOChaosAction.Faults == nil {
1910 break
1911 }
1912
1913 return e.complexity.IOChaosAction.Faults(childComplexity), true
1914
1915 case "IOChaosAction.filling":
1916 if e.complexity.IOChaosAction.Filling == nil {
1917 break
1918 }
1919
1920 return e.complexity.IOChaosAction.Filling(childComplexity), true
1921
1922 case "IOChaosAction.gid":
1923 if e.complexity.IOChaosAction.Gid == nil {
1924 break
1925 }
1926
1927 return e.complexity.IOChaosAction.Gid(childComplexity), true
1928
1929 case "IOChaosAction.ino":
1930 if e.complexity.IOChaosAction.Ino == nil {
1931 break
1932 }
1933
1934 return e.complexity.IOChaosAction.Ino(childComplexity), true
1935
1936 case "IOChaosAction.kind":
1937 if e.complexity.IOChaosAction.Kind == nil {
1938 break
1939 }
1940
1941 return e.complexity.IOChaosAction.Kind(childComplexity), true
1942
1943 case "IOChaosAction.latency":
1944 if e.complexity.IOChaosAction.Latency == nil {
1945 break
1946 }
1947
1948 return e.complexity.IOChaosAction.Latency(childComplexity), true
1949
1950 case "IOChaosAction.maxLength":
1951 if e.complexity.IOChaosAction.MaxLength == nil {
1952 break
1953 }
1954
1955 return e.complexity.IOChaosAction.MaxLength(childComplexity), true
1956
1957 case "IOChaosAction.maxOccurrences":
1958 if e.complexity.IOChaosAction.MaxOccurrences == nil {
1959 break
1960 }
1961
1962 return e.complexity.IOChaosAction.MaxOccurrences(childComplexity), true
1963
1964 case "IOChaosAction.methods":
1965 if e.complexity.IOChaosAction.Methods == nil {
1966 break
1967 }
1968
1969 return e.complexity.IOChaosAction.Methods(childComplexity), true
1970
1971 case "IOChaosAction.mtime":
1972 if e.complexity.IOChaosAction.Mtime == nil {
1973 break
1974 }
1975
1976 return e.complexity.IOChaosAction.Mtime(childComplexity), true
1977
1978 case "IOChaosAction.nlink":
1979 if e.complexity.IOChaosAction.Nlink == nil {
1980 break
1981 }
1982
1983 return e.complexity.IOChaosAction.Nlink(childComplexity), true
1984
1985 case "IOChaosAction.path":
1986 if e.complexity.IOChaosAction.Path == nil {
1987 break
1988 }
1989
1990 return e.complexity.IOChaosAction.Path(childComplexity), true
1991
1992 case "IOChaosAction.percent":
1993 if e.complexity.IOChaosAction.Percent == nil {
1994 break
1995 }
1996
1997 return e.complexity.IOChaosAction.Percent(childComplexity), true
1998
1999 case "IOChaosAction.perm":
2000 if e.complexity.IOChaosAction.Perm == nil {
2001 break
2002 }
2003
2004 return e.complexity.IOChaosAction.Perm(childComplexity), true
2005
2006 case "IOChaosAction.rdev":
2007 if e.complexity.IOChaosAction.Rdev == nil {
2008 break
2009 }
2010
2011 return e.complexity.IOChaosAction.Rdev(childComplexity), true
2012
2013 case "IOChaosAction.size":
2014 if e.complexity.IOChaosAction.Size == nil {
2015 break
2016 }
2017
2018 return e.complexity.IOChaosAction.Size(childComplexity), true
2019
2020 case "IOChaosAction.source":
2021 if e.complexity.IOChaosAction.Source == nil {
2022 break
2023 }
2024
2025 return e.complexity.IOChaosAction.Source(childComplexity), true
2026
2027 case "IOChaosAction.type":
2028 if e.complexity.IOChaosAction.Type == nil {
2029 break
2030 }
2031
2032 return e.complexity.IOChaosAction.Type(childComplexity), true
2033
2034 case "IOChaosAction.uid":
2035 if e.complexity.IOChaosAction.UID == nil {
2036 break
2037 }
2038
2039 return e.complexity.IOChaosAction.UID(childComplexity), true
2040
2041 case "IOChaosSpec.action":
2042 if e.complexity.IOChaosSpec.Action == nil {
2043 break
2044 }
2045
2046 return e.complexity.IOChaosSpec.Action(childComplexity), true
2047
2048 case "IOChaosSpec.attr":
2049 if e.complexity.IOChaosSpec.Attr == nil {
2050 break
2051 }
2052
2053 return e.complexity.IOChaosSpec.Attr(childComplexity), true
2054
2055 case "IOChaosSpec.containerNames":
2056 if e.complexity.IOChaosSpec.ContainerNames == nil {
2057 break
2058 }
2059
2060 return e.complexity.IOChaosSpec.ContainerNames(childComplexity), true
2061
2062 case "IOChaosSpec.delay":
2063 if e.complexity.IOChaosSpec.Delay == nil {
2064 break
2065 }
2066
2067 return e.complexity.IOChaosSpec.Delay(childComplexity), true
2068
2069 case "IOChaosSpec.duration":
2070 if e.complexity.IOChaosSpec.Duration == nil {
2071 break
2072 }
2073
2074 return e.complexity.IOChaosSpec.Duration(childComplexity), true
2075
2076 case "IOChaosSpec.errno":
2077 if e.complexity.IOChaosSpec.Errno == nil {
2078 break
2079 }
2080
2081 return e.complexity.IOChaosSpec.Errno(childComplexity), true
2082
2083 case "IOChaosSpec.methods":
2084 if e.complexity.IOChaosSpec.Methods == nil {
2085 break
2086 }
2087
2088 return e.complexity.IOChaosSpec.Methods(childComplexity), true
2089
2090 case "IOChaosSpec.mistake":
2091 if e.complexity.IOChaosSpec.Mistake == nil {
2092 break
2093 }
2094
2095 return e.complexity.IOChaosSpec.Mistake(childComplexity), true
2096
2097 case "IOChaosSpec.mode":
2098 if e.complexity.IOChaosSpec.Mode == nil {
2099 break
2100 }
2101
2102 return e.complexity.IOChaosSpec.Mode(childComplexity), true
2103
2104 case "IOChaosSpec.path":
2105 if e.complexity.IOChaosSpec.Path == nil {
2106 break
2107 }
2108
2109 return e.complexity.IOChaosSpec.Path(childComplexity), true
2110
2111 case "IOChaosSpec.percent":
2112 if e.complexity.IOChaosSpec.Percent == nil {
2113 break
2114 }
2115
2116 return e.complexity.IOChaosSpec.Percent(childComplexity), true
2117
2118 case "IOChaosSpec.selector":
2119 if e.complexity.IOChaosSpec.Selector == nil {
2120 break
2121 }
2122
2123 return e.complexity.IOChaosSpec.Selector(childComplexity), true
2124
2125 case "IOChaosSpec.value":
2126 if e.complexity.IOChaosSpec.Value == nil {
2127 break
2128 }
2129
2130 return e.complexity.IOChaosSpec.Value(childComplexity), true
2131
2132 case "IOChaosSpec.volumePath":
2133 if e.complexity.IOChaosSpec.VolumePath == nil {
2134 break
2135 }
2136
2137 return e.complexity.IOChaosSpec.VolumePath(childComplexity), true
2138
2139 case "IOChaosStatus.conditions":
2140 if e.complexity.IOChaosStatus.Conditions == nil {
2141 break
2142 }
2143
2144 return e.complexity.IOChaosStatus.Conditions(childComplexity), true
2145
2146 case "IOChaosStatus.experiment":
2147 if e.complexity.IOChaosStatus.Experiment == nil {
2148 break
2149 }
2150
2151 return e.complexity.IOChaosStatus.Experiment(childComplexity), true
2152
2153 case "IOChaosStatus.instances":
2154 if e.complexity.IOChaosStatus.Instances == nil {
2155 break
2156 }
2157
2158 return e.complexity.IOChaosStatus.Instances(childComplexity), true
2159
2160 case "IoFault.errno":
2161 if e.complexity.IoFault.Errno == nil {
2162 break
2163 }
2164
2165 return e.complexity.IoFault.Errno(childComplexity), true
2166
2167 case "IoFault.weight":
2168 if e.complexity.IoFault.Weight == nil {
2169 break
2170 }
2171
2172 return e.complexity.IoFault.Weight(childComplexity), true
2173
2174 case "KillProcessResult.command":
2175 if e.complexity.KillProcessResult.Command == nil {
2176 break
2177 }
2178
2179 return e.complexity.KillProcessResult.Command(childComplexity), true
2180
2181 case "KillProcessResult.pid":
2182 if e.complexity.KillProcessResult.Pid == nil {
2183 break
2184 }
2185
2186 return e.complexity.KillProcessResult.Pid(childComplexity), true
2187
2188 case "Logger.component":
2189 if e.complexity.Logger.Component == nil {
2190 break
2191 }
2192
2193 args, err := ec.field_Logger_component_args(context.TODO(), rawArgs)
2194 if err != nil {
2195 return 0, false
2196 }
2197
2198 return e.complexity.Logger.Component(childComplexity, args["ns"].(string), args["component"].(model.Component)), true
2199
2200 case "Logger.pod":
2201 if e.complexity.Logger.Pod == nil {
2202 break
2203 }
2204
2205 args, err := ec.field_Logger_pod_args(context.TODO(), rawArgs)
2206 if err != nil {
2207 return 0, false
2208 }
2209
2210 return e.complexity.Logger.Pod(childComplexity, args["ns"].(string), args["name"].(string)), true
2211
2212 case "LossSpec.correlation":
2213 if e.complexity.LossSpec.Correlation == nil {
2214 break
2215 }
2216
2217 return e.complexity.LossSpec.Correlation(childComplexity), true
2218
2219 case "LossSpec.loss":
2220 if e.complexity.LossSpec.Loss == nil {
2221 break
2222 }
2223
2224 return e.complexity.LossSpec.Loss(childComplexity), true
2225
2226 case "MemoryStressor.options":
2227 if e.complexity.MemoryStressor.Options == nil {
2228 break
2229 }
2230
2231 return e.complexity.MemoryStressor.Options(childComplexity), true
2232
2233 case "MemoryStressor.size":
2234 if e.complexity.MemoryStressor.Size == nil {
2235 break
2236 }
2237
2238 return e.complexity.MemoryStressor.Size(childComplexity), true
2239
2240 case "MemoryStressor.workers":
2241 if e.complexity.MemoryStressor.Workers == nil {
2242 break
2243 }
2244
2245 return e.complexity.MemoryStressor.Workers(childComplexity), true
2246
2247 case "MistakeSpec.filling":
2248 if e.complexity.MistakeSpec.Filling == nil {
2249 break
2250 }
2251
2252 return e.complexity.MistakeSpec.Filling(childComplexity), true
2253
2254 case "MistakeSpec.maxLength":
2255 if e.complexity.MistakeSpec.MaxLength == nil {
2256 break
2257 }
2258
2259 return e.complexity.MistakeSpec.MaxLength(childComplexity), true
2260
2261 case "MistakeSpec.maxOccurrences":
2262 if e.complexity.MistakeSpec.MaxOccurrences == nil {
2263 break
2264 }
2265
2266 return e.complexity.MistakeSpec.MaxOccurrences(childComplexity), true
2267
2268 case "MutablePod.cleanIptables":
2269 if e.complexity.MutablePod.CleanIptables == nil {
2270 break
2271 }
2272
2273 args, err := ec.field_MutablePod_cleanIptables_args(context.TODO(), rawArgs)
2274 if err != nil {
2275 return 0, false
2276 }
2277
2278 return e.complexity.MutablePod.CleanIptables(childComplexity, args["chains"].([]string)), true
2279
2280 case "MutablePod.cleanTcs":
2281 if e.complexity.MutablePod.CleanTcs == nil {
2282 break
2283 }
2284
2285 args, err := ec.field_MutablePod_cleanTcs_args(context.TODO(), rawArgs)
2286 if err != nil {
2287 return 0, false
2288 }
2289
2290 return e.complexity.MutablePod.CleanTcs(childComplexity, args["devices"].([]string)), true
2291
2292 case "MutablePod.killProcesses":
2293 if e.complexity.MutablePod.KillProcesses == nil {
2294 break
2295 }
2296
2297 args, err := ec.field_MutablePod_killProcesses_args(context.TODO(), rawArgs)
2298 if err != nil {
2299 return 0, false
2300 }
2301
2302 return e.complexity.MutablePod.KillProcesses(childComplexity, args["pids"].([]string)), true
2303
2304 case "MutablePod.pod":
2305 if e.complexity.MutablePod.Pod == nil {
2306 break
2307 }
2308
2309 return e.complexity.MutablePod.Pod(childComplexity), true
2310
2311 case "Mutation.pod":
2312 if e.complexity.Mutation.Pod == nil {
2313 break
2314 }
2315
2316 args, err := ec.field_Mutation_pod_args(context.TODO(), rawArgs)
2317 if err != nil {
2318 return 0, false
2319 }
2320
2321 return e.complexity.Mutation.Pod(childComplexity, args["ns"].(string), args["name"].(string)), true
2322
2323 case "Namespace.component":
2324 if e.complexity.Namespace.Component == nil {
2325 break
2326 }
2327
2328 args, err := ec.field_Namespace_component_args(context.TODO(), rawArgs)
2329 if err != nil {
2330 return 0, false
2331 }
2332
2333 return e.complexity.Namespace.Component(childComplexity, args["component"].(model.Component)), true
2334
2335 case "Namespace.httpchaos":
2336 if e.complexity.Namespace.Httpchaos == nil {
2337 break
2338 }
2339
2340 args, err := ec.field_Namespace_httpchaos_args(context.TODO(), rawArgs)
2341 if err != nil {
2342 return 0, false
2343 }
2344
2345 return e.complexity.Namespace.Httpchaos(childComplexity, args["name"].(*string)), true
2346
2347 case "Namespace.iochaos":
2348 if e.complexity.Namespace.Iochaos == nil {
2349 break
2350 }
2351
2352 args, err := ec.field_Namespace_iochaos_args(context.TODO(), rawArgs)
2353 if err != nil {
2354 return 0, false
2355 }
2356
2357 return e.complexity.Namespace.Iochaos(childComplexity, args["name"].(*string)), true
2358
2359 case "Namespace.networkchaos":
2360 if e.complexity.Namespace.Networkchaos == nil {
2361 break
2362 }
2363
2364 args, err := ec.field_Namespace_networkchaos_args(context.TODO(), rawArgs)
2365 if err != nil {
2366 return 0, false
2367 }
2368
2369 return e.complexity.Namespace.Networkchaos(childComplexity, args["name"].(*string)), true
2370
2371 case "Namespace.ns":
2372 if e.complexity.Namespace.Ns == nil {
2373 break
2374 }
2375
2376 return e.complexity.Namespace.Ns(childComplexity), true
2377
2378 case "Namespace.pod":
2379 if e.complexity.Namespace.Pod == nil {
2380 break
2381 }
2382
2383 args, err := ec.field_Namespace_pod_args(context.TODO(), rawArgs)
2384 if err != nil {
2385 return 0, false
2386 }
2387
2388 return e.complexity.Namespace.Pod(childComplexity, args["name"].(*string)), true
2389
2390 case "Namespace.podhttpchaos":
2391 if e.complexity.Namespace.Podhttpchaos == nil {
2392 break
2393 }
2394
2395 args, err := ec.field_Namespace_podhttpchaos_args(context.TODO(), rawArgs)
2396 if err != nil {
2397 return 0, false
2398 }
2399
2400 return e.complexity.Namespace.Podhttpchaos(childComplexity, args["name"].(*string)), true
2401
2402 case "Namespace.podiochaos":
2403 if e.complexity.Namespace.Podiochaos == nil {
2404 break
2405 }
2406
2407 args, err := ec.field_Namespace_podiochaos_args(context.TODO(), rawArgs)
2408 if err != nil {
2409 return 0, false
2410 }
2411
2412 return e.complexity.Namespace.Podiochaos(childComplexity, args["name"].(*string)), true
2413
2414 case "Namespace.podnetworkchaos":
2415 if e.complexity.Namespace.Podnetworkchaos == nil {
2416 break
2417 }
2418
2419 args, err := ec.field_Namespace_podnetworkchaos_args(context.TODO(), rawArgs)
2420 if err != nil {
2421 return 0, false
2422 }
2423
2424 return e.complexity.Namespace.Podnetworkchaos(childComplexity, args["name"].(*string)), true
2425
2426 case "Namespace.stresschaos":
2427 if e.complexity.Namespace.Stresschaos == nil {
2428 break
2429 }
2430
2431 args, err := ec.field_Namespace_stresschaos_args(context.TODO(), rawArgs)
2432 if err != nil {
2433 return 0, false
2434 }
2435
2436 return e.complexity.Namespace.Stresschaos(childComplexity, args["name"].(*string)), true
2437
2438 case "NetworkChaos.apiVersion":
2439 if e.complexity.NetworkChaos.APIVersion == nil {
2440 break
2441 }
2442
2443 return e.complexity.NetworkChaos.APIVersion(childComplexity), true
2444
2445 case "NetworkChaos.annotations":
2446 if e.complexity.NetworkChaos.Annotations == nil {
2447 break
2448 }
2449
2450 return e.complexity.NetworkChaos.Annotations(childComplexity), true
2451
2452 case "NetworkChaos.creationTimestamp":
2453 if e.complexity.NetworkChaos.CreationTimestamp == nil {
2454 break
2455 }
2456
2457 return e.complexity.NetworkChaos.CreationTimestamp(childComplexity), true
2458
2459 case "NetworkChaos.deletionGracePeriodSeconds":
2460 if e.complexity.NetworkChaos.DeletionGracePeriodSeconds == nil {
2461 break
2462 }
2463
2464 return e.complexity.NetworkChaos.DeletionGracePeriodSeconds(childComplexity), true
2465
2466 case "NetworkChaos.deletionTimestamp":
2467 if e.complexity.NetworkChaos.DeletionTimestamp == nil {
2468 break
2469 }
2470
2471 return e.complexity.NetworkChaos.DeletionTimestamp(childComplexity), true
2472
2473 case "NetworkChaos.finalizers":
2474 if e.complexity.NetworkChaos.Finalizers == nil {
2475 break
2476 }
2477
2478 return e.complexity.NetworkChaos.Finalizers(childComplexity), true
2479
2480 case "NetworkChaos.generateName":
2481 if e.complexity.NetworkChaos.GenerateName == nil {
2482 break
2483 }
2484
2485 return e.complexity.NetworkChaos.GenerateName(childComplexity), true
2486
2487 case "NetworkChaos.generation":
2488 if e.complexity.NetworkChaos.Generation == nil {
2489 break
2490 }
2491
2492 return e.complexity.NetworkChaos.Generation(childComplexity), true
2493
2494 case "NetworkChaos.kind":
2495 if e.complexity.NetworkChaos.Kind == nil {
2496 break
2497 }
2498
2499 return e.complexity.NetworkChaos.Kind(childComplexity), true
2500
2501 case "NetworkChaos.labels":
2502 if e.complexity.NetworkChaos.Labels == nil {
2503 break
2504 }
2505
2506 return e.complexity.NetworkChaos.Labels(childComplexity), true
2507
2508 case "NetworkChaos.name":
2509 if e.complexity.NetworkChaos.Name == nil {
2510 break
2511 }
2512
2513 return e.complexity.NetworkChaos.Name(childComplexity), true
2514
2515 case "NetworkChaos.namespace":
2516 if e.complexity.NetworkChaos.Namespace == nil {
2517 break
2518 }
2519
2520 return e.complexity.NetworkChaos.Namespace(childComplexity), true
2521
2522 case "NetworkChaos.ownerReferences":
2523 if e.complexity.NetworkChaos.OwnerReferences == nil {
2524 break
2525 }
2526
2527 return e.complexity.NetworkChaos.OwnerReferences(childComplexity), true
2528
2529 case "NetworkChaos.podnetwork":
2530 if e.complexity.NetworkChaos.Podnetwork == nil {
2531 break
2532 }
2533
2534 return e.complexity.NetworkChaos.Podnetwork(childComplexity), true
2535
2536 case "NetworkChaos.resourceVersion":
2537 if e.complexity.NetworkChaos.ResourceVersion == nil {
2538 break
2539 }
2540
2541 return e.complexity.NetworkChaos.ResourceVersion(childComplexity), true
2542
2543 case "NetworkChaos.selfLink":
2544 if e.complexity.NetworkChaos.SelfLink == nil {
2545 break
2546 }
2547
2548 return e.complexity.NetworkChaos.SelfLink(childComplexity), true
2549
2550 case "NetworkChaos.uid":
2551 if e.complexity.NetworkChaos.UID == nil {
2552 break
2553 }
2554
2555 return e.complexity.NetworkChaos.UID(childComplexity), true
2556
2557 case "OwnerReference.apiVersion":
2558 if e.complexity.OwnerReference.APIVersion == nil {
2559 break
2560 }
2561
2562 return e.complexity.OwnerReference.APIVersion(childComplexity), true
2563
2564 case "OwnerReference.blockOwnerDeletion":
2565 if e.complexity.OwnerReference.BlockOwnerDeletion == nil {
2566 break
2567 }
2568
2569 return e.complexity.OwnerReference.BlockOwnerDeletion(childComplexity), true
2570
2571 case "OwnerReference.controller":
2572 if e.complexity.OwnerReference.Controller == nil {
2573 break
2574 }
2575
2576 return e.complexity.OwnerReference.Controller(childComplexity), true
2577
2578 case "OwnerReference.kind":
2579 if e.complexity.OwnerReference.Kind == nil {
2580 break
2581 }
2582
2583 return e.complexity.OwnerReference.Kind(childComplexity), true
2584
2585 case "OwnerReference.name":
2586 if e.complexity.OwnerReference.Name == nil {
2587 break
2588 }
2589
2590 return e.complexity.OwnerReference.Name(childComplexity), true
2591
2592 case "OwnerReference.uid":
2593 if e.complexity.OwnerReference.UID == nil {
2594 break
2595 }
2596
2597 return e.complexity.OwnerReference.UID(childComplexity), true
2598
2599 case "Pod.apiVersion":
2600 if e.complexity.Pod.APIVersion == nil {
2601 break
2602 }
2603
2604 return e.complexity.Pod.APIVersion(childComplexity), true
2605
2606 case "Pod.annotations":
2607 if e.complexity.Pod.Annotations == nil {
2608 break
2609 }
2610
2611 return e.complexity.Pod.Annotations(childComplexity), true
2612
2613 case "Pod.creationTimestamp":
2614 if e.complexity.Pod.CreationTimestamp == nil {
2615 break
2616 }
2617
2618 return e.complexity.Pod.CreationTimestamp(childComplexity), true
2619
2620 case "Pod.daemon":
2621 if e.complexity.Pod.Daemon == nil {
2622 break
2623 }
2624
2625 return e.complexity.Pod.Daemon(childComplexity), true
2626
2627 case "Pod.deletionGracePeriodSeconds":
2628 if e.complexity.Pod.DeletionGracePeriodSeconds == nil {
2629 break
2630 }
2631
2632 return e.complexity.Pod.DeletionGracePeriodSeconds(childComplexity), true
2633
2634 case "Pod.deletionTimestamp":
2635 if e.complexity.Pod.DeletionTimestamp == nil {
2636 break
2637 }
2638
2639 return e.complexity.Pod.DeletionTimestamp(childComplexity), true
2640
2641 case "Pod.finalizers":
2642 if e.complexity.Pod.Finalizers == nil {
2643 break
2644 }
2645
2646 return e.complexity.Pod.Finalizers(childComplexity), true
2647
2648 case "Pod.generateName":
2649 if e.complexity.Pod.GenerateName == nil {
2650 break
2651 }
2652
2653 return e.complexity.Pod.GenerateName(childComplexity), true
2654
2655 case "Pod.generation":
2656 if e.complexity.Pod.Generation == nil {
2657 break
2658 }
2659
2660 return e.complexity.Pod.Generation(childComplexity), true
2661
2662 case "Pod.ipset":
2663 if e.complexity.Pod.Ipset == nil {
2664 break
2665 }
2666
2667 return e.complexity.Pod.Ipset(childComplexity), true
2668
2669 case "Pod.iptables":
2670 if e.complexity.Pod.Iptables == nil {
2671 break
2672 }
2673
2674 return e.complexity.Pod.Iptables(childComplexity), true
2675
2676 case "Pod.kind":
2677 if e.complexity.Pod.Kind == nil {
2678 break
2679 }
2680
2681 return e.complexity.Pod.Kind(childComplexity), true
2682
2683 case "Pod.labels":
2684 if e.complexity.Pod.Labels == nil {
2685 break
2686 }
2687
2688 return e.complexity.Pod.Labels(childComplexity), true
2689
2690 case "Pod.logs":
2691 if e.complexity.Pod.Logs == nil {
2692 break
2693 }
2694
2695 return e.complexity.Pod.Logs(childComplexity), true
2696
2697 case "Pod.mounts":
2698 if e.complexity.Pod.Mounts == nil {
2699 break
2700 }
2701
2702 return e.complexity.Pod.Mounts(childComplexity), true
2703
2704 case "Pod.name":
2705 if e.complexity.Pod.Name == nil {
2706 break
2707 }
2708
2709 return e.complexity.Pod.Name(childComplexity), true
2710
2711 case "Pod.namespace":
2712 if e.complexity.Pod.Namespace == nil {
2713 break
2714 }
2715
2716 return e.complexity.Pod.Namespace(childComplexity), true
2717
2718 case "Pod.ownerReferences":
2719 if e.complexity.Pod.OwnerReferences == nil {
2720 break
2721 }
2722
2723 return e.complexity.Pod.OwnerReferences(childComplexity), true
2724
2725 case "Pod.processes":
2726 if e.complexity.Pod.Processes == nil {
2727 break
2728 }
2729
2730 return e.complexity.Pod.Processes(childComplexity), true
2731
2732 case "Pod.resourceVersion":
2733 if e.complexity.Pod.ResourceVersion == nil {
2734 break
2735 }
2736
2737 return e.complexity.Pod.ResourceVersion(childComplexity), true
2738
2739 case "Pod.selfLink":
2740 if e.complexity.Pod.SelfLink == nil {
2741 break
2742 }
2743
2744 return e.complexity.Pod.SelfLink(childComplexity), true
2745
2746 case "Pod.spec":
2747 if e.complexity.Pod.Spec == nil {
2748 break
2749 }
2750
2751 return e.complexity.Pod.Spec(childComplexity), true
2752
2753 case "Pod.status":
2754 if e.complexity.Pod.Status == nil {
2755 break
2756 }
2757
2758 return e.complexity.Pod.Status(childComplexity), true
2759
2760 case "Pod.tcQdisc":
2761 if e.complexity.Pod.TcQdisc == nil {
2762 break
2763 }
2764
2765 return e.complexity.Pod.TcQdisc(childComplexity), true
2766
2767 case "Pod.uid":
2768 if e.complexity.Pod.UID == nil {
2769 break
2770 }
2771
2772 return e.complexity.Pod.UID(childComplexity), true
2773
2774 case "PodCondition.lastProbeTime":
2775 if e.complexity.PodCondition.LastProbeTime == nil {
2776 break
2777 }
2778
2779 return e.complexity.PodCondition.LastProbeTime(childComplexity), true
2780
2781 case "PodCondition.lastTransitionTime":
2782 if e.complexity.PodCondition.LastTransitionTime == nil {
2783 break
2784 }
2785
2786 return e.complexity.PodCondition.LastTransitionTime(childComplexity), true
2787
2788 case "PodCondition.message":
2789 if e.complexity.PodCondition.Message == nil {
2790 break
2791 }
2792
2793 return e.complexity.PodCondition.Message(childComplexity), true
2794
2795 case "PodCondition.reason":
2796 if e.complexity.PodCondition.Reason == nil {
2797 break
2798 }
2799
2800 return e.complexity.PodCondition.Reason(childComplexity), true
2801
2802 case "PodCondition.status":
2803 if e.complexity.PodCondition.Status == nil {
2804 break
2805 }
2806
2807 return e.complexity.PodCondition.Status(childComplexity), true
2808
2809 case "PodCondition.type":
2810 if e.complexity.PodCondition.Type == nil {
2811 break
2812 }
2813
2814 return e.complexity.PodCondition.Type(childComplexity), true
2815
2816 case "PodHTTPChaos.apiVersion":
2817 if e.complexity.PodHTTPChaos.APIVersion == nil {
2818 break
2819 }
2820
2821 return e.complexity.PodHTTPChaos.APIVersion(childComplexity), true
2822
2823 case "PodHTTPChaos.annotations":
2824 if e.complexity.PodHTTPChaos.Annotations == nil {
2825 break
2826 }
2827
2828 return e.complexity.PodHTTPChaos.Annotations(childComplexity), true
2829
2830 case "PodHTTPChaos.creationTimestamp":
2831 if e.complexity.PodHTTPChaos.CreationTimestamp == nil {
2832 break
2833 }
2834
2835 return e.complexity.PodHTTPChaos.CreationTimestamp(childComplexity), true
2836
2837 case "PodHTTPChaos.deletionGracePeriodSeconds":
2838 if e.complexity.PodHTTPChaos.DeletionGracePeriodSeconds == nil {
2839 break
2840 }
2841
2842 return e.complexity.PodHTTPChaos.DeletionGracePeriodSeconds(childComplexity), true
2843
2844 case "PodHTTPChaos.deletionTimestamp":
2845 if e.complexity.PodHTTPChaos.DeletionTimestamp == nil {
2846 break
2847 }
2848
2849 return e.complexity.PodHTTPChaos.DeletionTimestamp(childComplexity), true
2850
2851 case "PodHTTPChaos.finalizers":
2852 if e.complexity.PodHTTPChaos.Finalizers == nil {
2853 break
2854 }
2855
2856 return e.complexity.PodHTTPChaos.Finalizers(childComplexity), true
2857
2858 case "PodHTTPChaos.generateName":
2859 if e.complexity.PodHTTPChaos.GenerateName == nil {
2860 break
2861 }
2862
2863 return e.complexity.PodHTTPChaos.GenerateName(childComplexity), true
2864
2865 case "PodHTTPChaos.generation":
2866 if e.complexity.PodHTTPChaos.Generation == nil {
2867 break
2868 }
2869
2870 return e.complexity.PodHTTPChaos.Generation(childComplexity), true
2871
2872 case "PodHTTPChaos.kind":
2873 if e.complexity.PodHTTPChaos.Kind == nil {
2874 break
2875 }
2876
2877 return e.complexity.PodHTTPChaos.Kind(childComplexity), true
2878
2879 case "PodHTTPChaos.labels":
2880 if e.complexity.PodHTTPChaos.Labels == nil {
2881 break
2882 }
2883
2884 return e.complexity.PodHTTPChaos.Labels(childComplexity), true
2885
2886 case "PodHTTPChaos.name":
2887 if e.complexity.PodHTTPChaos.Name == nil {
2888 break
2889 }
2890
2891 return e.complexity.PodHTTPChaos.Name(childComplexity), true
2892
2893 case "PodHTTPChaos.namespace":
2894 if e.complexity.PodHTTPChaos.Namespace == nil {
2895 break
2896 }
2897
2898 return e.complexity.PodHTTPChaos.Namespace(childComplexity), true
2899
2900 case "PodHTTPChaos.ownerReferences":
2901 if e.complexity.PodHTTPChaos.OwnerReferences == nil {
2902 break
2903 }
2904
2905 return e.complexity.PodHTTPChaos.OwnerReferences(childComplexity), true
2906
2907 case "PodHTTPChaos.pod":
2908 if e.complexity.PodHTTPChaos.Pod == nil {
2909 break
2910 }
2911
2912 return e.complexity.PodHTTPChaos.Pod(childComplexity), true
2913
2914 case "PodHTTPChaos.resourceVersion":
2915 if e.complexity.PodHTTPChaos.ResourceVersion == nil {
2916 break
2917 }
2918
2919 return e.complexity.PodHTTPChaos.ResourceVersion(childComplexity), true
2920
2921 case "PodHTTPChaos.selfLink":
2922 if e.complexity.PodHTTPChaos.SelfLink == nil {
2923 break
2924 }
2925
2926 return e.complexity.PodHTTPChaos.SelfLink(childComplexity), true
2927
2928 case "PodHTTPChaos.spec":
2929 if e.complexity.PodHTTPChaos.Spec == nil {
2930 break
2931 }
2932
2933 return e.complexity.PodHTTPChaos.Spec(childComplexity), true
2934
2935 case "PodHTTPChaos.status":
2936 if e.complexity.PodHTTPChaos.Status == nil {
2937 break
2938 }
2939
2940 return e.complexity.PodHTTPChaos.Status(childComplexity), true
2941
2942 case "PodHTTPChaos.uid":
2943 if e.complexity.PodHTTPChaos.UID == nil {
2944 break
2945 }
2946
2947 return e.complexity.PodHTTPChaos.UID(childComplexity), true
2948
2949 case "PodHttpChaosActions.abort":
2950 if e.complexity.PodHttpChaosActions.Abort == nil {
2951 break
2952 }
2953
2954 return e.complexity.PodHttpChaosActions.Abort(childComplexity), true
2955
2956 case "PodHttpChaosActions.delay":
2957 if e.complexity.PodHttpChaosActions.Delay == nil {
2958 break
2959 }
2960
2961 return e.complexity.PodHttpChaosActions.Delay(childComplexity), true
2962
2963 case "PodHttpChaosActions.patch":
2964 if e.complexity.PodHttpChaosActions.Patch == nil {
2965 break
2966 }
2967
2968 return e.complexity.PodHttpChaosActions.Patch(childComplexity), true
2969
2970 case "PodHttpChaosActions.replace":
2971 if e.complexity.PodHttpChaosActions.Replace == nil {
2972 break
2973 }
2974
2975 return e.complexity.PodHttpChaosActions.Replace(childComplexity), true
2976
2977 case "PodHttpChaosPatchActions.body":
2978 if e.complexity.PodHttpChaosPatchActions.Body == nil {
2979 break
2980 }
2981
2982 return e.complexity.PodHttpChaosPatchActions.Body(childComplexity), true
2983
2984 case "PodHttpChaosPatchActions.headers":
2985 if e.complexity.PodHttpChaosPatchActions.Headers == nil {
2986 break
2987 }
2988
2989 return e.complexity.PodHttpChaosPatchActions.Headers(childComplexity), true
2990
2991 case "PodHttpChaosPatchActions.queries":
2992 if e.complexity.PodHttpChaosPatchActions.Queries == nil {
2993 break
2994 }
2995
2996 return e.complexity.PodHttpChaosPatchActions.Queries(childComplexity), true
2997
2998 case "PodHttpChaosPatchBodyAction.type":
2999 if e.complexity.PodHttpChaosPatchBodyAction.Type == nil {
3000 break
3001 }
3002
3003 return e.complexity.PodHttpChaosPatchBodyAction.Type(childComplexity), true
3004
3005 case "PodHttpChaosPatchBodyAction.value":
3006 if e.complexity.PodHttpChaosPatchBodyAction.Value == nil {
3007 break
3008 }
3009
3010 return e.complexity.PodHttpChaosPatchBodyAction.Value(childComplexity), true
3011
3012 case "PodHttpChaosReplaceActions.body":
3013 if e.complexity.PodHttpChaosReplaceActions.Body == nil {
3014 break
3015 }
3016
3017 return e.complexity.PodHttpChaosReplaceActions.Body(childComplexity), true
3018
3019 case "PodHttpChaosReplaceActions.code":
3020 if e.complexity.PodHttpChaosReplaceActions.Code == nil {
3021 break
3022 }
3023
3024 return e.complexity.PodHttpChaosReplaceActions.Code(childComplexity), true
3025
3026 case "PodHttpChaosReplaceActions.headers":
3027 if e.complexity.PodHttpChaosReplaceActions.Headers == nil {
3028 break
3029 }
3030
3031 return e.complexity.PodHttpChaosReplaceActions.Headers(childComplexity), true
3032
3033 case "PodHttpChaosReplaceActions.method":
3034 if e.complexity.PodHttpChaosReplaceActions.Method == nil {
3035 break
3036 }
3037
3038 return e.complexity.PodHttpChaosReplaceActions.Method(childComplexity), true
3039
3040 case "PodHttpChaosReplaceActions.path":
3041 if e.complexity.PodHttpChaosReplaceActions.Path == nil {
3042 break
3043 }
3044
3045 return e.complexity.PodHttpChaosReplaceActions.Path(childComplexity), true
3046
3047 case "PodHttpChaosReplaceActions.queries":
3048 if e.complexity.PodHttpChaosReplaceActions.Queries == nil {
3049 break
3050 }
3051
3052 return e.complexity.PodHttpChaosReplaceActions.Queries(childComplexity), true
3053
3054 case "PodHttpChaosRule.actions":
3055 if e.complexity.PodHttpChaosRule.Actions == nil {
3056 break
3057 }
3058
3059 return e.complexity.PodHttpChaosRule.Actions(childComplexity), true
3060
3061 case "PodHttpChaosRule.port":
3062 if e.complexity.PodHttpChaosRule.Port == nil {
3063 break
3064 }
3065
3066 return e.complexity.PodHttpChaosRule.Port(childComplexity), true
3067
3068 case "PodHttpChaosRule.selector":
3069 if e.complexity.PodHttpChaosRule.Selector == nil {
3070 break
3071 }
3072
3073 return e.complexity.PodHttpChaosRule.Selector(childComplexity), true
3074
3075 case "PodHttpChaosRule.source":
3076 if e.complexity.PodHttpChaosRule.Source == nil {
3077 break
3078 }
3079
3080 return e.complexity.PodHttpChaosRule.Source(childComplexity), true
3081
3082 case "PodHttpChaosRule.target":
3083 if e.complexity.PodHttpChaosRule.Target == nil {
3084 break
3085 }
3086
3087 return e.complexity.PodHttpChaosRule.Target(childComplexity), true
3088
3089 case "PodHttpChaosSelector.code":
3090 if e.complexity.PodHttpChaosSelector.Code == nil {
3091 break
3092 }
3093
3094 return e.complexity.PodHttpChaosSelector.Code(childComplexity), true
3095
3096 case "PodHttpChaosSelector.method":
3097 if e.complexity.PodHttpChaosSelector.Method == nil {
3098 break
3099 }
3100
3101 return e.complexity.PodHttpChaosSelector.Method(childComplexity), true
3102
3103 case "PodHttpChaosSelector.path":
3104 if e.complexity.PodHttpChaosSelector.Path == nil {
3105 break
3106 }
3107
3108 return e.complexity.PodHttpChaosSelector.Path(childComplexity), true
3109
3110 case "PodHttpChaosSelector.port":
3111 if e.complexity.PodHttpChaosSelector.Port == nil {
3112 break
3113 }
3114
3115 return e.complexity.PodHttpChaosSelector.Port(childComplexity), true
3116
3117 case "PodHttpChaosSelector.requestHeaders":
3118 if e.complexity.PodHttpChaosSelector.RequestHeaders == nil {
3119 break
3120 }
3121
3122 return e.complexity.PodHttpChaosSelector.RequestHeaders(childComplexity), true
3123
3124 case "PodHttpChaosSelector.responseHeaders":
3125 if e.complexity.PodHttpChaosSelector.ResponseHeaders == nil {
3126 break
3127 }
3128
3129 return e.complexity.PodHttpChaosSelector.ResponseHeaders(childComplexity), true
3130
3131 case "PodHttpChaosSpec.rules":
3132 if e.complexity.PodHttpChaosSpec.Rules == nil {
3133 break
3134 }
3135
3136 return e.complexity.PodHttpChaosSpec.Rules(childComplexity), true
3137
3138 case "PodHttpChaosSpec.tls":
3139 if e.complexity.PodHttpChaosSpec.TLS == nil {
3140 break
3141 }
3142
3143 return e.complexity.PodHttpChaosSpec.TLS(childComplexity), true
3144
3145 case "PodHttpChaosStatus.failedMessage":
3146 if e.complexity.PodHttpChaosStatus.FailedMessage == nil {
3147 break
3148 }
3149
3150 return e.complexity.PodHttpChaosStatus.FailedMessage(childComplexity), true
3151
3152 case "PodHttpChaosStatus.observedGeneration":
3153 if e.complexity.PodHttpChaosStatus.ObservedGeneration == nil {
3154 break
3155 }
3156
3157 return e.complexity.PodHttpChaosStatus.ObservedGeneration(childComplexity), true
3158
3159 case "PodHttpChaosStatus.pid":
3160 if e.complexity.PodHttpChaosStatus.Pid == nil {
3161 break
3162 }
3163
3164 return e.complexity.PodHttpChaosStatus.Pid(childComplexity), true
3165
3166 case "PodHttpChaosStatus.startTime":
3167 if e.complexity.PodHttpChaosStatus.StartTime == nil {
3168 break
3169 }
3170
3171 return e.complexity.PodHttpChaosStatus.StartTime(childComplexity), true
3172
3173 case "PodHttpChaosTLS.caName":
3174 if e.complexity.PodHttpChaosTLS.CAName == nil {
3175 break
3176 }
3177
3178 return e.complexity.PodHttpChaosTLS.CAName(childComplexity), true
3179
3180 case "PodHttpChaosTLS.certName":
3181 if e.complexity.PodHttpChaosTLS.CertName == nil {
3182 break
3183 }
3184
3185 return e.complexity.PodHttpChaosTLS.CertName(childComplexity), true
3186
3187 case "PodHttpChaosTLS.keyName":
3188 if e.complexity.PodHttpChaosTLS.KeyName == nil {
3189 break
3190 }
3191
3192 return e.complexity.PodHttpChaosTLS.KeyName(childComplexity), true
3193
3194 case "PodHttpChaosTLS.secretName":
3195 if e.complexity.PodHttpChaosTLS.SecretName == nil {
3196 break
3197 }
3198
3199 return e.complexity.PodHttpChaosTLS.SecretName(childComplexity), true
3200
3201 case "PodHttpChaosTLS.secretNamespace":
3202 if e.complexity.PodHttpChaosTLS.SecretNamespace == nil {
3203 break
3204 }
3205
3206 return e.complexity.PodHttpChaosTLS.SecretNamespace(childComplexity), true
3207
3208 case "PodIOChaos.apiVersion":
3209 if e.complexity.PodIOChaos.APIVersion == nil {
3210 break
3211 }
3212
3213 return e.complexity.PodIOChaos.APIVersion(childComplexity), true
3214
3215 case "PodIOChaos.annotations":
3216 if e.complexity.PodIOChaos.Annotations == nil {
3217 break
3218 }
3219
3220 return e.complexity.PodIOChaos.Annotations(childComplexity), true
3221
3222 case "PodIOChaos.creationTimestamp":
3223 if e.complexity.PodIOChaos.CreationTimestamp == nil {
3224 break
3225 }
3226
3227 return e.complexity.PodIOChaos.CreationTimestamp(childComplexity), true
3228
3229 case "PodIOChaos.deletionGracePeriodSeconds":
3230 if e.complexity.PodIOChaos.DeletionGracePeriodSeconds == nil {
3231 break
3232 }
3233
3234 return e.complexity.PodIOChaos.DeletionGracePeriodSeconds(childComplexity), true
3235
3236 case "PodIOChaos.deletionTimestamp":
3237 if e.complexity.PodIOChaos.DeletionTimestamp == nil {
3238 break
3239 }
3240
3241 return e.complexity.PodIOChaos.DeletionTimestamp(childComplexity), true
3242
3243 case "PodIOChaos.finalizers":
3244 if e.complexity.PodIOChaos.Finalizers == nil {
3245 break
3246 }
3247
3248 return e.complexity.PodIOChaos.Finalizers(childComplexity), true
3249
3250 case "PodIOChaos.generateName":
3251 if e.complexity.PodIOChaos.GenerateName == nil {
3252 break
3253 }
3254
3255 return e.complexity.PodIOChaos.GenerateName(childComplexity), true
3256
3257 case "PodIOChaos.generation":
3258 if e.complexity.PodIOChaos.Generation == nil {
3259 break
3260 }
3261
3262 return e.complexity.PodIOChaos.Generation(childComplexity), true
3263
3264 case "PodIOChaos.ios":
3265 if e.complexity.PodIOChaos.Ios == nil {
3266 break
3267 }
3268
3269 return e.complexity.PodIOChaos.Ios(childComplexity), true
3270
3271 case "PodIOChaos.kind":
3272 if e.complexity.PodIOChaos.Kind == nil {
3273 break
3274 }
3275
3276 return e.complexity.PodIOChaos.Kind(childComplexity), true
3277
3278 case "PodIOChaos.labels":
3279 if e.complexity.PodIOChaos.Labels == nil {
3280 break
3281 }
3282
3283 return e.complexity.PodIOChaos.Labels(childComplexity), true
3284
3285 case "PodIOChaos.name":
3286 if e.complexity.PodIOChaos.Name == nil {
3287 break
3288 }
3289
3290 return e.complexity.PodIOChaos.Name(childComplexity), true
3291
3292 case "PodIOChaos.namespace":
3293 if e.complexity.PodIOChaos.Namespace == nil {
3294 break
3295 }
3296
3297 return e.complexity.PodIOChaos.Namespace(childComplexity), true
3298
3299 case "PodIOChaos.ownerReferences":
3300 if e.complexity.PodIOChaos.OwnerReferences == nil {
3301 break
3302 }
3303
3304 return e.complexity.PodIOChaos.OwnerReferences(childComplexity), true
3305
3306 case "PodIOChaos.pod":
3307 if e.complexity.PodIOChaos.Pod == nil {
3308 break
3309 }
3310
3311 return e.complexity.PodIOChaos.Pod(childComplexity), true
3312
3313 case "PodIOChaos.resourceVersion":
3314 if e.complexity.PodIOChaos.ResourceVersion == nil {
3315 break
3316 }
3317
3318 return e.complexity.PodIOChaos.ResourceVersion(childComplexity), true
3319
3320 case "PodIOChaos.selfLink":
3321 if e.complexity.PodIOChaos.SelfLink == nil {
3322 break
3323 }
3324
3325 return e.complexity.PodIOChaos.SelfLink(childComplexity), true
3326
3327 case "PodIOChaos.spec":
3328 if e.complexity.PodIOChaos.Spec == nil {
3329 break
3330 }
3331
3332 return e.complexity.PodIOChaos.Spec(childComplexity), true
3333
3334 case "PodIOChaos.status":
3335 if e.complexity.PodIOChaos.Status == nil {
3336 break
3337 }
3338
3339 return e.complexity.PodIOChaos.Status(childComplexity), true
3340
3341 case "PodIOChaos.uid":
3342 if e.complexity.PodIOChaos.UID == nil {
3343 break
3344 }
3345
3346 return e.complexity.PodIOChaos.UID(childComplexity), true
3347
3348 case "PodIOChaosSpec.actions":
3349 if e.complexity.PodIOChaosSpec.Actions == nil {
3350 break
3351 }
3352
3353 return e.complexity.PodIOChaosSpec.Actions(childComplexity), true
3354
3355 case "PodIOChaosSpec.container":
3356 if e.complexity.PodIOChaosSpec.Container == nil {
3357 break
3358 }
3359
3360 return e.complexity.PodIOChaosSpec.Container(childComplexity), true
3361
3362 case "PodIOChaosSpec.volumeMountPath":
3363 if e.complexity.PodIOChaosSpec.VolumeMountPath == nil {
3364 break
3365 }
3366
3367 return e.complexity.PodIOChaosSpec.VolumeMountPath(childComplexity), true
3368
3369 case "PodIOChaosStatus.failedMessage":
3370 if e.complexity.PodIOChaosStatus.FailedMessage == nil {
3371 break
3372 }
3373
3374 return e.complexity.PodIOChaosStatus.FailedMessage(childComplexity), true
3375
3376 case "PodIOChaosStatus.observedGeneration":
3377 if e.complexity.PodIOChaosStatus.ObservedGeneration == nil {
3378 break
3379 }
3380
3381 return e.complexity.PodIOChaosStatus.ObservedGeneration(childComplexity), true
3382
3383 case "PodIOChaosStatus.pid":
3384 if e.complexity.PodIOChaosStatus.Pid == nil {
3385 break
3386 }
3387
3388 return e.complexity.PodIOChaosStatus.Pid(childComplexity), true
3389
3390 case "PodIOChaosStatus.startTime":
3391 if e.complexity.PodIOChaosStatus.StartTime == nil {
3392 break
3393 }
3394
3395 return e.complexity.PodIOChaosStatus.StartTime(childComplexity), true
3396
3397 case "PodIP.ip":
3398 if e.complexity.PodIP.IP == nil {
3399 break
3400 }
3401
3402 return e.complexity.PodIP.IP(childComplexity), true
3403
3404 case "PodNetworkChaos.apiVersion":
3405 if e.complexity.PodNetworkChaos.APIVersion == nil {
3406 break
3407 }
3408
3409 return e.complexity.PodNetworkChaos.APIVersion(childComplexity), true
3410
3411 case "PodNetworkChaos.annotations":
3412 if e.complexity.PodNetworkChaos.Annotations == nil {
3413 break
3414 }
3415
3416 return e.complexity.PodNetworkChaos.Annotations(childComplexity), true
3417
3418 case "PodNetworkChaos.creationTimestamp":
3419 if e.complexity.PodNetworkChaos.CreationTimestamp == nil {
3420 break
3421 }
3422
3423 return e.complexity.PodNetworkChaos.CreationTimestamp(childComplexity), true
3424
3425 case "PodNetworkChaos.deletionGracePeriodSeconds":
3426 if e.complexity.PodNetworkChaos.DeletionGracePeriodSeconds == nil {
3427 break
3428 }
3429
3430 return e.complexity.PodNetworkChaos.DeletionGracePeriodSeconds(childComplexity), true
3431
3432 case "PodNetworkChaos.deletionTimestamp":
3433 if e.complexity.PodNetworkChaos.DeletionTimestamp == nil {
3434 break
3435 }
3436
3437 return e.complexity.PodNetworkChaos.DeletionTimestamp(childComplexity), true
3438
3439 case "PodNetworkChaos.finalizers":
3440 if e.complexity.PodNetworkChaos.Finalizers == nil {
3441 break
3442 }
3443
3444 return e.complexity.PodNetworkChaos.Finalizers(childComplexity), true
3445
3446 case "PodNetworkChaos.generateName":
3447 if e.complexity.PodNetworkChaos.GenerateName == nil {
3448 break
3449 }
3450
3451 return e.complexity.PodNetworkChaos.GenerateName(childComplexity), true
3452
3453 case "PodNetworkChaos.generation":
3454 if e.complexity.PodNetworkChaos.Generation == nil {
3455 break
3456 }
3457
3458 return e.complexity.PodNetworkChaos.Generation(childComplexity), true
3459
3460 case "PodNetworkChaos.kind":
3461 if e.complexity.PodNetworkChaos.Kind == nil {
3462 break
3463 }
3464
3465 return e.complexity.PodNetworkChaos.Kind(childComplexity), true
3466
3467 case "PodNetworkChaos.labels":
3468 if e.complexity.PodNetworkChaos.Labels == nil {
3469 break
3470 }
3471
3472 return e.complexity.PodNetworkChaos.Labels(childComplexity), true
3473
3474 case "PodNetworkChaos.name":
3475 if e.complexity.PodNetworkChaos.Name == nil {
3476 break
3477 }
3478
3479 return e.complexity.PodNetworkChaos.Name(childComplexity), true
3480
3481 case "PodNetworkChaos.namespace":
3482 if e.complexity.PodNetworkChaos.Namespace == nil {
3483 break
3484 }
3485
3486 return e.complexity.PodNetworkChaos.Namespace(childComplexity), true
3487
3488 case "PodNetworkChaos.ownerReferences":
3489 if e.complexity.PodNetworkChaos.OwnerReferences == nil {
3490 break
3491 }
3492
3493 return e.complexity.PodNetworkChaos.OwnerReferences(childComplexity), true
3494
3495 case "PodNetworkChaos.pod":
3496 if e.complexity.PodNetworkChaos.Pod == nil {
3497 break
3498 }
3499
3500 return e.complexity.PodNetworkChaos.Pod(childComplexity), true
3501
3502 case "PodNetworkChaos.resourceVersion":
3503 if e.complexity.PodNetworkChaos.ResourceVersion == nil {
3504 break
3505 }
3506
3507 return e.complexity.PodNetworkChaos.ResourceVersion(childComplexity), true
3508
3509 case "PodNetworkChaos.selfLink":
3510 if e.complexity.PodNetworkChaos.SelfLink == nil {
3511 break
3512 }
3513
3514 return e.complexity.PodNetworkChaos.SelfLink(childComplexity), true
3515
3516 case "PodNetworkChaos.spec":
3517 if e.complexity.PodNetworkChaos.Spec == nil {
3518 break
3519 }
3520
3521 return e.complexity.PodNetworkChaos.Spec(childComplexity), true
3522
3523 case "PodNetworkChaos.status":
3524 if e.complexity.PodNetworkChaos.Status == nil {
3525 break
3526 }
3527
3528 return e.complexity.PodNetworkChaos.Status(childComplexity), true
3529
3530 case "PodNetworkChaos.uid":
3531 if e.complexity.PodNetworkChaos.UID == nil {
3532 break
3533 }
3534
3535 return e.complexity.PodNetworkChaos.UID(childComplexity), true
3536
3537 case "PodNetworkChaosSpec.ipSets":
3538 if e.complexity.PodNetworkChaosSpec.IPSets == nil {
3539 break
3540 }
3541
3542 return e.complexity.PodNetworkChaosSpec.IPSets(childComplexity), true
3543
3544 case "PodNetworkChaosSpec.iptables":
3545 if e.complexity.PodNetworkChaosSpec.Iptables == nil {
3546 break
3547 }
3548
3549 return e.complexity.PodNetworkChaosSpec.Iptables(childComplexity), true
3550
3551 case "PodNetworkChaosSpec.trafficControls":
3552 if e.complexity.PodNetworkChaosSpec.TrafficControls == nil {
3553 break
3554 }
3555
3556 return e.complexity.PodNetworkChaosSpec.TrafficControls(childComplexity), true
3557
3558 case "PodNetworkChaosStatus.failedMessage":
3559 if e.complexity.PodNetworkChaosStatus.FailedMessage == nil {
3560 break
3561 }
3562
3563 return e.complexity.PodNetworkChaosStatus.FailedMessage(childComplexity), true
3564
3565 case "PodNetworkChaosStatus.observedGeneration":
3566 if e.complexity.PodNetworkChaosStatus.ObservedGeneration == nil {
3567 break
3568 }
3569
3570 return e.complexity.PodNetworkChaosStatus.ObservedGeneration(childComplexity), true
3571
3572 case "PodSelectorSpec.annotationSelectors":
3573 if e.complexity.PodSelectorSpec.AnnotationSelectors == nil {
3574 break
3575 }
3576
3577 return e.complexity.PodSelectorSpec.AnnotationSelectors(childComplexity), true
3578
3579 case "PodSelectorSpec.fieldSelectors":
3580 if e.complexity.PodSelectorSpec.FieldSelectors == nil {
3581 break
3582 }
3583
3584 return e.complexity.PodSelectorSpec.FieldSelectors(childComplexity), true
3585
3586 case "PodSelectorSpec.labelSelectors":
3587 if e.complexity.PodSelectorSpec.LabelSelectors == nil {
3588 break
3589 }
3590
3591 return e.complexity.PodSelectorSpec.LabelSelectors(childComplexity), true
3592
3593 case "PodSelectorSpec.namespaces":
3594 if e.complexity.PodSelectorSpec.Namespaces == nil {
3595 break
3596 }
3597
3598 return e.complexity.PodSelectorSpec.Namespaces(childComplexity), true
3599
3600 case "PodSelectorSpec.nodeSelectors":
3601 if e.complexity.PodSelectorSpec.NodeSelectors == nil {
3602 break
3603 }
3604
3605 return e.complexity.PodSelectorSpec.NodeSelectors(childComplexity), true
3606
3607 case "PodSelectorSpec.nodes":
3608 if e.complexity.PodSelectorSpec.Nodes == nil {
3609 break
3610 }
3611
3612 return e.complexity.PodSelectorSpec.Nodes(childComplexity), true
3613
3614 case "PodSelectorSpec.podPhaseSelectors":
3615 if e.complexity.PodSelectorSpec.PodPhaseSelectors == nil {
3616 break
3617 }
3618
3619 return e.complexity.PodSelectorSpec.PodPhaseSelectors(childComplexity), true
3620
3621 case "PodSelectorSpec.pods":
3622 if e.complexity.PodSelectorSpec.Pods == nil {
3623 break
3624 }
3625
3626 return e.complexity.PodSelectorSpec.Pods(childComplexity), true
3627
3628 case "PodSpec.nodeName":
3629 if e.complexity.PodSpec.NodeName == nil {
3630 break
3631 }
3632
3633 return e.complexity.PodSpec.NodeName(childComplexity), true
3634
3635 case "PodStatus.conditions":
3636 if e.complexity.PodStatus.Conditions == nil {
3637 break
3638 }
3639
3640 return e.complexity.PodStatus.Conditions(childComplexity), true
3641
3642 case "PodStatus.containerStatuses":
3643 if e.complexity.PodStatus.ContainerStatuses == nil {
3644 break
3645 }
3646
3647 return e.complexity.PodStatus.ContainerStatuses(childComplexity), true
3648
3649 case "PodStatus.ephemeralContainerStatuses":
3650 if e.complexity.PodStatus.EphemeralContainerStatuses == nil {
3651 break
3652 }
3653
3654 return e.complexity.PodStatus.EphemeralContainerStatuses(childComplexity), true
3655
3656 case "PodStatus.hostIP":
3657 if e.complexity.PodStatus.HostIP == nil {
3658 break
3659 }
3660
3661 return e.complexity.PodStatus.HostIP(childComplexity), true
3662
3663 case "PodStatus.initContainerStatuses":
3664 if e.complexity.PodStatus.InitContainerStatuses == nil {
3665 break
3666 }
3667
3668 return e.complexity.PodStatus.InitContainerStatuses(childComplexity), true
3669
3670 case "PodStatus.message":
3671 if e.complexity.PodStatus.Message == nil {
3672 break
3673 }
3674
3675 return e.complexity.PodStatus.Message(childComplexity), true
3676
3677 case "PodStatus.nominatedNodeName":
3678 if e.complexity.PodStatus.NominatedNodeName == nil {
3679 break
3680 }
3681
3682 return e.complexity.PodStatus.NominatedNodeName(childComplexity), true
3683
3684 case "PodStatus.phase":
3685 if e.complexity.PodStatus.Phase == nil {
3686 break
3687 }
3688
3689 return e.complexity.PodStatus.Phase(childComplexity), true
3690
3691 case "PodStatus.podIP":
3692 if e.complexity.PodStatus.PodIP == nil {
3693 break
3694 }
3695
3696 return e.complexity.PodStatus.PodIP(childComplexity), true
3697
3698 case "PodStatus.podIPs":
3699 if e.complexity.PodStatus.PodIPs == nil {
3700 break
3701 }
3702
3703 return e.complexity.PodStatus.PodIPs(childComplexity), true
3704
3705 case "PodStatus.qosClass":
3706 if e.complexity.PodStatus.QosClass == nil {
3707 break
3708 }
3709
3710 return e.complexity.PodStatus.QosClass(childComplexity), true
3711
3712 case "PodStatus.reason":
3713 if e.complexity.PodStatus.Reason == nil {
3714 break
3715 }
3716
3717 return e.complexity.PodStatus.Reason(childComplexity), true
3718
3719 case "PodStatus.startTime":
3720 if e.complexity.PodStatus.StartTime == nil {
3721 break
3722 }
3723
3724 return e.complexity.PodStatus.StartTime(childComplexity), true
3725
3726 case "PodStressChaos.cgroups":
3727 if e.complexity.PodStressChaos.Cgroups == nil {
3728 break
3729 }
3730
3731 return e.complexity.PodStressChaos.Cgroups(childComplexity), true
3732
3733 case "PodStressChaos.pod":
3734 if e.complexity.PodStressChaos.Pod == nil {
3735 break
3736 }
3737
3738 return e.complexity.PodStressChaos.Pod(childComplexity), true
3739
3740 case "PodStressChaos.processStress":
3741 if e.complexity.PodStressChaos.ProcessStress == nil {
3742 break
3743 }
3744
3745 return e.complexity.PodStressChaos.ProcessStress(childComplexity), true
3746
3747 case "PodStressChaos.stressChaos":
3748 if e.complexity.PodStressChaos.StressChaos == nil {
3749 break
3750 }
3751
3752 return e.complexity.PodStressChaos.StressChaos(childComplexity), true
3753
3754 case "Process.command":
3755 if e.complexity.Process.Command == nil {
3756 break
3757 }
3758
3759 return e.complexity.Process.Command(childComplexity), true
3760
3761 case "Process.fds":
3762 if e.complexity.Process.Fds == nil {
3763 break
3764 }
3765
3766 return e.complexity.Process.Fds(childComplexity), true
3767
3768 case "Process.pid":
3769 if e.complexity.Process.Pid == nil {
3770 break
3771 }
3772
3773 return e.complexity.Process.Pid(childComplexity), true
3774
3775 case "Process.pod":
3776 if e.complexity.Process.Pod == nil {
3777 break
3778 }
3779
3780 return e.complexity.Process.Pod(childComplexity), true
3781
3782 case "ProcessStress.cgroup":
3783 if e.complexity.ProcessStress.Cgroup == nil {
3784 break
3785 }
3786
3787 return e.complexity.ProcessStress.Cgroup(childComplexity), true
3788
3789 case "ProcessStress.process":
3790 if e.complexity.ProcessStress.Process == nil {
3791 break
3792 }
3793
3794 return e.complexity.ProcessStress.Process(childComplexity), true
3795
3796 case "Query.namespace":
3797 if e.complexity.Query.Namespace == nil {
3798 break
3799 }
3800
3801 args, err := ec.field_Query_namespace_args(context.TODO(), rawArgs)
3802 if err != nil {
3803 return 0, false
3804 }
3805
3806 return e.complexity.Query.Namespace(childComplexity, args["ns"].(*string)), true
3807
3808 case "Query.pods":
3809 if e.complexity.Query.Pods == nil {
3810 break
3811 }
3812
3813 args, err := ec.field_Query_pods_args(context.TODO(), rawArgs)
3814 if err != nil {
3815 return 0, false
3816 }
3817
3818 return e.complexity.Query.Pods(childComplexity, args["selector"].(model.PodSelectorInput)), true
3819
3820 case "RateSpec.rate":
3821 if e.complexity.RateSpec.Rate == nil {
3822 break
3823 }
3824
3825 return e.complexity.RateSpec.Rate(childComplexity), true
3826
3827 case "RawIPSet.cidrAndPorts":
3828 if e.complexity.RawIPSet.CidrAndPorts == nil {
3829 break
3830 }
3831
3832 return e.complexity.RawIPSet.CidrAndPorts(childComplexity), true
3833
3834 case "RawIPSet.cidrs":
3835 if e.complexity.RawIPSet.Cidrs == nil {
3836 break
3837 }
3838
3839 return e.complexity.RawIPSet.Cidrs(childComplexity), true
3840
3841 case "RawIPSet.ipSetType":
3842 if e.complexity.RawIPSet.IPSetType == nil {
3843 break
3844 }
3845
3846 return e.complexity.RawIPSet.IPSetType(childComplexity), true
3847
3848 case "RawIPSet.name":
3849 if e.complexity.RawIPSet.Name == nil {
3850 break
3851 }
3852
3853 return e.complexity.RawIPSet.Name(childComplexity), true
3854
3855 case "RawIPSet.setNames":
3856 if e.complexity.RawIPSet.SetNames == nil {
3857 break
3858 }
3859
3860 return e.complexity.RawIPSet.SetNames(childComplexity), true
3861
3862 case "RawIPSet.source":
3863 if e.complexity.RawIPSet.Source == nil {
3864 break
3865 }
3866
3867 return e.complexity.RawIPSet.Source(childComplexity), true
3868
3869 case "RawIptables.device":
3870 if e.complexity.RawIptables.Device == nil {
3871 break
3872 }
3873
3874 return e.complexity.RawIptables.Device(childComplexity), true
3875
3876 case "RawIptables.direction":
3877 if e.complexity.RawIptables.Direction == nil {
3878 break
3879 }
3880
3881 return e.complexity.RawIptables.Direction(childComplexity), true
3882
3883 case "RawIptables.ipSets":
3884 if e.complexity.RawIptables.IPSets == nil {
3885 break
3886 }
3887
3888 return e.complexity.RawIptables.IPSets(childComplexity), true
3889
3890 case "RawIptables.name":
3891 if e.complexity.RawIptables.Name == nil {
3892 break
3893 }
3894
3895 return e.complexity.RawIptables.Name(childComplexity), true
3896
3897 case "RawIptables.source":
3898 if e.complexity.RawIptables.Source == nil {
3899 break
3900 }
3901
3902 return e.complexity.RawIptables.Source(childComplexity), true
3903
3904 case "RawTrafficControl.bandwidth":
3905 if e.complexity.RawTrafficControl.Bandwidth == nil {
3906 break
3907 }
3908
3909 return e.complexity.RawTrafficControl.Bandwidth(childComplexity), true
3910
3911 case "RawTrafficControl.corrupt":
3912 if e.complexity.RawTrafficControl.Corrupt == nil {
3913 break
3914 }
3915
3916 return e.complexity.RawTrafficControl.Corrupt(childComplexity), true
3917
3918 case "RawTrafficControl.delay":
3919 if e.complexity.RawTrafficControl.Delay == nil {
3920 break
3921 }
3922
3923 return e.complexity.RawTrafficControl.Delay(childComplexity), true
3924
3925 case "RawTrafficControl.device":
3926 if e.complexity.RawTrafficControl.Device == nil {
3927 break
3928 }
3929
3930 return e.complexity.RawTrafficControl.Device(childComplexity), true
3931
3932 case "RawTrafficControl.duplicate":
3933 if e.complexity.RawTrafficControl.Duplicate == nil {
3934 break
3935 }
3936
3937 return e.complexity.RawTrafficControl.Duplicate(childComplexity), true
3938
3939 case "RawTrafficControl.ipSet":
3940 if e.complexity.RawTrafficControl.IPSet == nil {
3941 break
3942 }
3943
3944 return e.complexity.RawTrafficControl.IPSet(childComplexity), true
3945
3946 case "RawTrafficControl.loss":
3947 if e.complexity.RawTrafficControl.Loss == nil {
3948 break
3949 }
3950
3951 return e.complexity.RawTrafficControl.Loss(childComplexity), true
3952
3953 case "RawTrafficControl.rate":
3954 if e.complexity.RawTrafficControl.Rate == nil {
3955 break
3956 }
3957
3958 return e.complexity.RawTrafficControl.Rate(childComplexity), true
3959
3960 case "RawTrafficControl.source":
3961 if e.complexity.RawTrafficControl.Source == nil {
3962 break
3963 }
3964
3965 return e.complexity.RawTrafficControl.Source(childComplexity), true
3966
3967 case "RawTrafficControl.type":
3968 if e.complexity.RawTrafficControl.Type == nil {
3969 break
3970 }
3971
3972 return e.complexity.RawTrafficControl.Type(childComplexity), true
3973
3974 case "Record.id":
3975 if e.complexity.Record.Id == nil {
3976 break
3977 }
3978
3979 return e.complexity.Record.Id(childComplexity), true
3980
3981 case "Record.phase":
3982 if e.complexity.Record.Phase == nil {
3983 break
3984 }
3985
3986 return e.complexity.Record.Phase(childComplexity), true
3987
3988 case "Record.selectorKey":
3989 if e.complexity.Record.SelectorKey == nil {
3990 break
3991 }
3992
3993 return e.complexity.Record.SelectorKey(childComplexity), true
3994
3995 case "ReorderSpec.correlation":
3996 if e.complexity.ReorderSpec.Correlation == nil {
3997 break
3998 }
3999
4000 return e.complexity.ReorderSpec.Correlation(childComplexity), true
4001
4002 case "ReorderSpec.gap":
4003 if e.complexity.ReorderSpec.Gap == nil {
4004 break
4005 }
4006
4007 return e.complexity.ReorderSpec.Gap(childComplexity), true
4008
4009 case "ReorderSpec.reorder":
4010 if e.complexity.ReorderSpec.Reorder == nil {
4011 break
4012 }
4013
4014 return e.complexity.ReorderSpec.Reorder(childComplexity), true
4015
4016 case "StressChaos.apiVersion":
4017 if e.complexity.StressChaos.APIVersion == nil {
4018 break
4019 }
4020
4021 return e.complexity.StressChaos.APIVersion(childComplexity), true
4022
4023 case "StressChaos.annotations":
4024 if e.complexity.StressChaos.Annotations == nil {
4025 break
4026 }
4027
4028 return e.complexity.StressChaos.Annotations(childComplexity), true
4029
4030 case "StressChaos.creationTimestamp":
4031 if e.complexity.StressChaos.CreationTimestamp == nil {
4032 break
4033 }
4034
4035 return e.complexity.StressChaos.CreationTimestamp(childComplexity), true
4036
4037 case "StressChaos.deletionGracePeriodSeconds":
4038 if e.complexity.StressChaos.DeletionGracePeriodSeconds == nil {
4039 break
4040 }
4041
4042 return e.complexity.StressChaos.DeletionGracePeriodSeconds(childComplexity), true
4043
4044 case "StressChaos.deletionTimestamp":
4045 if e.complexity.StressChaos.DeletionTimestamp == nil {
4046 break
4047 }
4048
4049 return e.complexity.StressChaos.DeletionTimestamp(childComplexity), true
4050
4051 case "StressChaos.finalizers":
4052 if e.complexity.StressChaos.Finalizers == nil {
4053 break
4054 }
4055
4056 return e.complexity.StressChaos.Finalizers(childComplexity), true
4057
4058 case "StressChaos.generateName":
4059 if e.complexity.StressChaos.GenerateName == nil {
4060 break
4061 }
4062
4063 return e.complexity.StressChaos.GenerateName(childComplexity), true
4064
4065 case "StressChaos.generation":
4066 if e.complexity.StressChaos.Generation == nil {
4067 break
4068 }
4069
4070 return e.complexity.StressChaos.Generation(childComplexity), true
4071
4072 case "StressChaos.kind":
4073 if e.complexity.StressChaos.Kind == nil {
4074 break
4075 }
4076
4077 return e.complexity.StressChaos.Kind(childComplexity), true
4078
4079 case "StressChaos.labels":
4080 if e.complexity.StressChaos.Labels == nil {
4081 break
4082 }
4083
4084 return e.complexity.StressChaos.Labels(childComplexity), true
4085
4086 case "StressChaos.name":
4087 if e.complexity.StressChaos.Name == nil {
4088 break
4089 }
4090
4091 return e.complexity.StressChaos.Name(childComplexity), true
4092
4093 case "StressChaos.namespace":
4094 if e.complexity.StressChaos.Namespace == nil {
4095 break
4096 }
4097
4098 return e.complexity.StressChaos.Namespace(childComplexity), true
4099
4100 case "StressChaos.ownerReferences":
4101 if e.complexity.StressChaos.OwnerReferences == nil {
4102 break
4103 }
4104
4105 return e.complexity.StressChaos.OwnerReferences(childComplexity), true
4106
4107 case "StressChaos.podstress":
4108 if e.complexity.StressChaos.Podstress == nil {
4109 break
4110 }
4111
4112 return e.complexity.StressChaos.Podstress(childComplexity), true
4113
4114 case "StressChaos.resourceVersion":
4115 if e.complexity.StressChaos.ResourceVersion == nil {
4116 break
4117 }
4118
4119 return e.complexity.StressChaos.ResourceVersion(childComplexity), true
4120
4121 case "StressChaos.selfLink":
4122 if e.complexity.StressChaos.SelfLink == nil {
4123 break
4124 }
4125
4126 return e.complexity.StressChaos.SelfLink(childComplexity), true
4127
4128 case "StressChaos.spec":
4129 if e.complexity.StressChaos.Spec == nil {
4130 break
4131 }
4132
4133 return e.complexity.StressChaos.Spec(childComplexity), true
4134
4135 case "StressChaos.uid":
4136 if e.complexity.StressChaos.UID == nil {
4137 break
4138 }
4139
4140 return e.complexity.StressChaos.UID(childComplexity), true
4141
4142 case "StressChaosSpec.containerNames":
4143 if e.complexity.StressChaosSpec.ContainerNames == nil {
4144 break
4145 }
4146
4147 return e.complexity.StressChaosSpec.ContainerNames(childComplexity), true
4148
4149 case "StressChaosSpec.duration":
4150 if e.complexity.StressChaosSpec.Duration == nil {
4151 break
4152 }
4153
4154 return e.complexity.StressChaosSpec.Duration(childComplexity), true
4155
4156 case "StressChaosSpec.mode":
4157 if e.complexity.StressChaosSpec.Mode == nil {
4158 break
4159 }
4160
4161 return e.complexity.StressChaosSpec.Mode(childComplexity), true
4162
4163 case "StressChaosSpec.selector":
4164 if e.complexity.StressChaosSpec.Selector == nil {
4165 break
4166 }
4167
4168 return e.complexity.StressChaosSpec.Selector(childComplexity), true
4169
4170 case "StressChaosSpec.stressngStressors":
4171 if e.complexity.StressChaosSpec.StressngStressors == nil {
4172 break
4173 }
4174
4175 return e.complexity.StressChaosSpec.StressngStressors(childComplexity), true
4176
4177 case "StressChaosSpec.stressors":
4178 if e.complexity.StressChaosSpec.Stressors == nil {
4179 break
4180 }
4181
4182 return e.complexity.StressChaosSpec.Stressors(childComplexity), true
4183
4184 case "StressChaosSpec.value":
4185 if e.complexity.StressChaosSpec.Value == nil {
4186 break
4187 }
4188
4189 return e.complexity.StressChaosSpec.Value(childComplexity), true
4190
4191 case "StressChaosStatus.conditions":
4192 if e.complexity.StressChaosStatus.Conditions == nil {
4193 break
4194 }
4195
4196 return e.complexity.StressChaosStatus.Conditions(childComplexity), true
4197
4198 case "StressChaosStatus.experiment":
4199 if e.complexity.StressChaosStatus.Experiment == nil {
4200 break
4201 }
4202
4203 return e.complexity.StressChaosStatus.Experiment(childComplexity), true
4204
4205 case "StressChaosStatus.instances":
4206 if e.complexity.StressChaosStatus.Instances == nil {
4207 break
4208 }
4209
4210 return e.complexity.StressChaosStatus.Instances(childComplexity), true
4211
4212 case "Stressors.cpuStressor":
4213 if e.complexity.Stressors.CPUStressor == nil {
4214 break
4215 }
4216
4217 return e.complexity.Stressors.CPUStressor(childComplexity), true
4218
4219 case "Stressors.memoryStressor":
4220 if e.complexity.Stressors.MemoryStressor == nil {
4221 break
4222 }
4223
4224 return e.complexity.Stressors.MemoryStressor(childComplexity), true
4225
4226 case "Timespec.nsec":
4227 if e.complexity.Timespec.Nsec == nil {
4228 break
4229 }
4230
4231 return e.complexity.Timespec.Nsec(childComplexity), true
4232
4233 case "Timespec.sec":
4234 if e.complexity.Timespec.Sec == nil {
4235 break
4236 }
4237
4238 return e.complexity.Timespec.Sec(childComplexity), true
4239
4240 }
4241 return 0, false
4242 }
4243
4244 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
4245 rc := graphql.GetOperationContext(ctx)
4246 ec := executionContext{rc, e}
4247 first := true
4248
4249 switch rc.Operation.Operation {
4250 case ast.Query:
4251 return func(ctx context.Context) *graphql.Response {
4252 if !first {
4253 return nil
4254 }
4255 first = false
4256 data := ec._Query(ctx, rc.Operation.SelectionSet)
4257 var buf bytes.Buffer
4258 data.MarshalGQL(&buf)
4259
4260 return &graphql.Response{
4261 Data: buf.Bytes(),
4262 }
4263 }
4264 case ast.Mutation:
4265 return func(ctx context.Context) *graphql.Response {
4266 if !first {
4267 return nil
4268 }
4269 first = false
4270 data := ec._Mutation(ctx, rc.Operation.SelectionSet)
4271 var buf bytes.Buffer
4272 data.MarshalGQL(&buf)
4273
4274 return &graphql.Response{
4275 Data: buf.Bytes(),
4276 }
4277 }
4278 case ast.Subscription:
4279 next := ec._Logger(ctx, rc.Operation.SelectionSet)
4280
4281 var buf bytes.Buffer
4282 return func(ctx context.Context) *graphql.Response {
4283 buf.Reset()
4284 data := next()
4285
4286 if data == nil {
4287 return nil
4288 }
4289 data.MarshalGQL(&buf)
4290
4291 return &graphql.Response{
4292 Data: buf.Bytes(),
4293 }
4294 }
4295
4296 default:
4297 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
4298 }
4299 }
4300
4301 type executionContext struct {
4302 *graphql.OperationContext
4303 *executableSchema
4304 }
4305
4306 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
4307 if ec.DisableIntrospection {
4308 return nil, errors.New("introspection disabled")
4309 }
4310 return introspection.WrapSchema(parsedSchema), nil
4311 }
4312
4313 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
4314 if ec.DisableIntrospection {
4315 return nil, errors.New("introspection disabled")
4316 }
4317 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
4318 }
4319
4320 var sources = []*ast.Source{
4321 {Name: "server/schema.graphqls", Input: `# Copyright 2021 Chaos Mesh Authors.
4322 #
4323 # Licensed under the Apache License, Version 2.0 (the "License");
4324 # you may not use this file except in compliance with the License.
4325 # You may obtain a copy of the License at
4326 #
4327 # http://www.apache.org/licenses/LICENSE-2.0
4328 #
4329 # Unless required by applicable law or agreed to in writing, software
4330 # distributed under the License is distributed on an "AS IS" BASIS,
4331 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4332 # See the License for the specific language governing permissions and
4333 # limitations under the License.
4334 #
4335
4336 directive @goModel(model: String, models: [String!]) on OBJECT
4337 | INPUT_OBJECT
4338 | SCALAR
4339 | ENUM
4340 | INTERFACE
4341 | UNION
4342
4343 directive @goField(forceResolver: Boolean, name: String) on INPUT_FIELD_DEFINITION
4344 | FIELD_DEFINITION
4345
4346 scalar Time
4347 scalar Map
4348 scalar Int64
4349
4350 schema {
4351 query: Query
4352 mutation: Mutation
4353 subscription: Logger
4354 }
4355
4356 type Query {
4357 namespace(ns: String): [Namespace!]
4358 pods(selector: PodSelectorInput!): [Pod!]
4359 }
4360
4361 type Mutation {
4362 pod(ns: String! = "default", name: String!): MutablePod
4363 }
4364
4365 type Logger {
4366 component(ns: String! = "chaos-mesh", component: Component!): String! @goField(forceResolver: true)
4367 pod(ns: String! = "default", name: String!): String! @goField(forceResolver: true)
4368 }
4369
4370 type Namespace {
4371 ns: String!
4372 component(component: Component!): [Pod!] @goField(forceResolver: true)
4373 pod(name: String): [Pod!] @goField(forceResolver: true)
4374 stresschaos(name: String): [StressChaos!] @goField(forceResolver: true)
4375 iochaos(name: String): [IOChaos!] @goField(forceResolver: true)
4376 podiochaos(name: String): [PodIOChaos!] @goField(forceResolver: true)
4377 httpchaos(name: String): [HTTPChaos!] @goField(forceResolver: true)
4378 podhttpchaos(name: String): [PodHTTPChaos!] @goField(forceResolver: true)
4379 networkchaos(name: String): [NetworkChaos!] @goField(forceResolver: true)
4380 podnetworkchaos(name: String): [PodNetworkChaos!] @goField(forceResolver: true)
4381 }
4382
4383 type OwnerReference @goModel(model: "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference") {
4384 kind: String!
4385 apiVersion: String!
4386 name: String!
4387 uid: String!
4388 controller: Boolean
4389 blockOwnerDeletion: Boolean
4390 }
4391
4392 enum Component {
4393 MANAGER
4394 DAEMON
4395 DASHBOARD
4396 DNSSERVER
4397 }
4398
4399 type Process {
4400 pod: Pod!
4401 pid: String!
4402 command: String!
4403 fds: [Fd!] @goField(forceResolver: true)
4404 }
4405
4406 type KillProcessResult {
4407 pid: String!
4408 command: String!
4409 }
4410
4411 type Fd {
4412 fd: String!
4413 target: String!
4414 }
4415
4416 # PodSelectorInput defines the some selectors to select objects.
4417 # If the all selectors are empty, all objects will be used in chaos experiment.
4418 input PodSelectorInput {
4419 # namespaces is a set of namespace to which objects belong.
4420 namespaces: [String!]
4421
4422 # nodes is a set of node name and objects must belong to these nodes.
4423 nodes: [String!]
4424
4425 # pods is a map of string keys and a set values that used to select pods.
4426 # The key defines the namespace which pods belong,
4427 # and the each values is a set of pod names.
4428 pods: Map
4429
4430 # map of string keys and values that can be used to select nodes.
4431 # Selector which must match a node's labels,
4432 # and objects must belong to these selected nodes.
4433 nodeSelectors: Map
4434
4435 # map of string keys and values that can be used to select objects.
4436 # A selector based on fields.
4437 fieldSelectors: Map
4438
4439 # map of string keys and values that can be used to select objects.
4440 # A selector based on labels.
4441 labelSelectors: Map
4442
4443 # map of string keys and values that can be used to select objects.
4444 # A selector based on annotations.
4445 annotationSelectors: Map
4446
4447 # podPhaseSelectors is a set of condition of a pod at the current time.
4448 # supported value: Pending / Running / Succeeded / Failed / Unknown
4449 podPhaseSelectors: [String!]
4450 }
4451
4452 type MutablePod {
4453 pod: Pod!
4454 killProcesses(pids: [String!]): [KillProcessResult!] @goField(forceResolver: true)
4455 cleanTcs(devices: [String!]): [String!] @goField(forceResolver: true)
4456 cleanIptables(chains: [String!]): [String!] @goField(forceResolver: true)
4457 }
4458
4459 type Pod @goModel(model: "k8s.io/api/core/v1.Pod") {
4460 kind: String!
4461 apiVersion: String!
4462 name: String!
4463 generateName: String!
4464 namespace: String!
4465 selfLink: String!
4466 uid: String!
4467 resourceVersion: String!
4468 generation: Int!
4469 creationTimestamp: Time!
4470 deletionTimestamp: Time
4471 deletionGracePeriodSeconds: Int
4472 labels: Map
4473 annotations: Map
4474 ownerReferences: [OwnerReference!]
4475 finalizers: [String!]
4476
4477 spec: PodSpec!
4478 status: PodStatus!
4479
4480 logs: String! @goField(forceResolver: true)
4481 daemon: Pod @goField(forceResolver: true)
4482 processes: [Process!] @goField(forceResolver: true)
4483 mounts: [String!] @goField(forceResolver: true)
4484 ipset: String! @goField(forceResolver: true)
4485 tcQdisc: [String!] @goField(forceResolver: true)
4486 iptables: [String!] @goField(forceResolver: true)
4487 }
4488
4489 # PodStatus represents information about the status of a pod. Status may trail the actual
4490 # state of a system, especially if the node that hosts the pod cannot contact the control
4491 # plane.
4492 type PodStatus @goModel(model: "k8s.io/api/core/v1.PodStatus") {
4493 # The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
4494 # The conditions array, the reason and message fields, and the individual container status
4495 # arrays contain more detail about the pod's status.
4496 # There are five possible phase values:
4497 #
4498 # Pending: The pod has been accepted by the Kubernetes system, but one or more of the
4499 # container images has not been created. This includes time before being scheduled as
4500 # well as time spent downloading images over the network, which could take a while.
4501 # Running: The pod has been bound to a node, and all of the containers have been created.
4502 # At least one container is still running, or is in the process of starting or restarting.
4503 # Succeeded: All containers in the pod have terminated in success, and will not be restarted.
4504 # Failed: All containers in the pod have terminated, and at least one container has
4505 # terminated in failure. The container either exited with non-zero status or was terminated
4506 # by the system.
4507 # Unknown: For some reason the state of the pod could not be obtained, typically due to an
4508 # error in communicating with the host of the pod.
4509 #
4510 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
4511 phase: String!
4512
4513 # Current service state of pod.
4514 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
4515 conditions: [PodCondition!]
4516
4517 # A human readable message indicating details about why the pod is in this condition.
4518 message: String!
4519
4520 # A brief CamelCase message indicating details about why the pod is in this state.
4521 # e.g. 'Evicted'
4522 reason: String!
4523
4524 # nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
4525 # scheduled right away as preemption victims receive their graceful termination periods.
4526 # This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
4527 # to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
4528 # give the resources on this node to a higher priority pod that is created after preemption.
4529 # As a result, this field may be different than PodSpec.nodeName when the pod is
4530 # scheduled.
4531 nominatedNodeName: String!
4532
4533 # IP address of the host to which the pod is assigned. Empty if not yet scheduled.
4534 hostIP: String!
4535
4536 # IP address allocated to the pod. Routable at least within the cluster.
4537 # Empty if not yet allocated.
4538 podIP: String!
4539
4540 # podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
4541 # match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
4542 # is empty if no IPs have been allocated yet.
4543 podIPs: [PodIP!]
4544
4545 # RFC 3339 date and time at which the object was acknowledged by the Kubelet.
4546 # This is before the Kubelet pulled the container image(s) for the pod.
4547 startTime: Time
4548
4549 # The list has one entry per init container in the manifest. The most recent successful
4550 # init container will have ready = true, the most recently started container will have
4551 # startTime set.
4552 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
4553 initContainerStatuses: [ContainerStatus!]
4554
4555 # The list has one entry per container in the manifest. Each entry is currently the output
4556 # of ` + "`" + `docker inspect` + "`" + `.
4557 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
4558 containerStatuses: [ContainerStatus!]
4559
4560 # The Quality of Service (QOS) classification assigned to the pod based on resource requirements
4561 # See PodQOSClass type for available QOS classes
4562 # More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
4563 qosClass: String!
4564
4565 # Status for any ephemeral containers that have run in this pod.
4566 # This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature.
4567 ephemeralContainerStatuses: [ContainerStatus!]
4568 }
4569
4570 # IP address information for entries in the (plural) PodIPs field.
4571 # Each entry includes:
4572 # IP: An IP address allocated to the pod. Routable at least within the cluster.
4573 type PodIP @goModel(model: "k8s.io/api/core/v1.PodIP") {
4574 # ip is an IP address (IPv4 or IPv6) assigned to the pod
4575 ip: String!
4576 }
4577
4578 # PodCondition contains details for the current condition of this pod.
4579 type PodCondition @goModel(model: "k8s.io/api/core/v1.PodCondition") {
4580 # Type is the type of the condition.
4581 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
4582 type: String!
4583
4584 # Status is the status of the condition.
4585 # Can be True, False, Unknown.
4586 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
4587 status: String!
4588
4589 # Last time we probed the condition.
4590 lastProbeTime: Time
4591
4592 # Last time the condition transitioned from one status to another.
4593 lastTransitionTime: Time
4594
4595 # Unique, one-word, CamelCase reason for the condition's last transition.
4596 reason: String
4597
4598 # Human-readable message indicating details about last transition.
4599 message: String
4600 }
4601
4602 # ContainerStatus contains details for the current status of this container.
4603 type ContainerStatus @goModel(model: "k8s.io/api/core/v1.ContainerStatus") {
4604 # This must be a DNS_LABEL. Each container in a pod must have a unique name.
4605 # Cannot be updated.
4606 name: String!
4607
4608 # Details about the container's current condition.
4609 State: ContainerState
4610
4611 # Details about the container's last termination condition.
4612 lastTerminationState: ContainerState
4613
4614 # Specifies whether the container has passed its readiness probe.
4615 ready: Boolean!
4616
4617 # The number of times the container has been restarted, currently based on
4618 # the number of dead containers that have not yet been removed.
4619 # Note that this is calculated from dead containers. But those containers are subject to
4620 # garbage collection. This value will get capped at 5 by GC.
4621 restartCount: Int!
4622
4623 # The image the container is running.
4624 # More info: https://kubernetes.io/docs/concepts/containers/images
4625 # TODO(dchen1107): Which image the container is running with?
4626 image: String!
4627
4628 # ImageID of the container's image.
4629 imageID: String!
4630
4631 # Container's ID in the format 'docker://<container_id>'.
4632 containerID: String!
4633
4634 # Specifies whether the container has passed its startup probe.
4635 # Initialized as false, becomes true after startupProbe is considered successful.
4636 # Resets to false when the container is restarted, or if kubelet loses state temporarily.
4637 # Is always true when no startupProbe is defined.
4638 started: Boolean
4639 }
4640
4641 # ContainerState holds a possible state of container.
4642 # Only one of its members may be specified.
4643 # If none of them is specified, the default one is ContainerStateWaiting.
4644 type ContainerState @goModel(model: "k8s.io/api/core/v1.ContainerState") {
4645 # Details about a waiting container
4646 waiting: ContainerStateWaiting
4647
4648 # Details about a running container
4649 running: ContainerStateRunning
4650
4651 # Details about a terminated container
4652 terminated: ContainerStateTerminated
4653 }
4654
4655 # ContainerStateWaiting is a waiting state of a container.
4656 type ContainerStateWaiting @goModel(model: "k8s.io/api/core/v1.ContainerStateWaiting") {
4657 # (brief) reason the container is not yet running.
4658 reason: String
4659
4660 # Message regarding why the container is not yet running.
4661 message: String
4662 }
4663
4664 # ContainerStateRunning is a running state of a container.
4665 type ContainerStateRunning @goModel(model: "k8s.io/api/core/v1.ContainerStateRunning") {
4666 # Time at which the container was last (re-)started
4667 startedAt: Time
4668 }
4669
4670 # ContainerStateTerminated is a terminated state of a container.
4671 type ContainerStateTerminated @goModel(model: "k8s.io/api/core/v1.ContainerStateTerminated") {
4672 # Exit status from the last termination of the container
4673 exitCode: Int!
4674
4675 # Signal from the last termination of the container
4676 signal: Int
4677
4678 # (brief) reason from the last termination of the container
4679 reason: String
4680
4681 # Message regarding the last termination of the container
4682 message: String
4683
4684 #Time at which previous execution of the container started
4685 startedAt: Time
4686
4687 # Time at which the container last terminated
4688 finishedAt: Time
4689
4690 # Container's ID in the format 'docker://<container_id>'
4691 containerID: String
4692 }
4693
4694
4695 # TODO: add more fields
4696 type PodSpec @goModel(model: "k8s.io/api/core/v1.PodSpec") {
4697 # ndeName is a request to schedule this pod onto a specific node. If it is non-empty,
4698 # the scheduler simply schedules this pod onto that node, assuming that it fits resource
4699 # requirements.
4700 nodeName: String!
4701
4702 }
4703
4704 type PodIOChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodIOChaos") {
4705 kind: String!
4706 apiVersion: String!
4707 name: String!
4708 generateName: String!
4709 namespace: String!
4710 selfLink: String!
4711 uid: String!
4712 resourceVersion: String!
4713 generation: Int!
4714 creationTimestamp: Time!
4715 deletionTimestamp: Time
4716 deletionGracePeriodSeconds: Int
4717 labels: Map
4718 annotations: Map
4719 ownerReferences: [OwnerReference!]
4720 finalizers: [String!]
4721
4722 spec: PodIOChaosSpec!
4723 status: PodIOChaosStatus!
4724
4725 pod: Pod! @goField(forceResolver: true)
4726 ios: [IOChaos!] @goField(forceResolver: true)
4727 }
4728
4729 # PodIOChaosSpec defines the desired state of PodIOChaos
4730 type PodIOChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodIOChaosSpec") {
4731 # volumeMountPath represents the target mount path
4732 # It must be a root of mount path now.
4733 volumeMountPath: String!
4734
4735 container: String
4736
4737 # actions are a list of IOChaos actions
4738 actions: [IOChaosAction!]
4739 }
4740
4741 type PodIOChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodIOChaosStatus") {
4742
4743 # pid represents a running toda process id
4744 pid: Int
4745
4746 # startTime represents the start time of a toda process
4747 startTime: Int
4748 failedMessage: String
4749 observedGeneration: Int
4750 }
4751
4752 # IOChaosAction defines an possible action of IOChaos
4753 type IOChaosAction @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaosAction") {
4754 type: String!
4755
4756 # path represents a glob of injecting path
4757 path: String!
4758
4759 # methods represents the method that the action will inject in
4760 methods: [String!]
4761
4762 # percent represents the percent probability of injecting this action
4763 percent: Int
4764
4765 # faults represents the fault to inject
4766 faults: [IoFault!]
4767
4768 # Latency represents the latency to inject
4769 latency: String
4770
4771 # attrOverrides represents the attribution to override
4772 ino: Int64
4773 size: Int64
4774 blocks: Int64
4775 atime: Timespec @goField(forceResolver: true)
4776 mtime: Timespec @goField(forceResolver: true)
4777 ctime: Timespec @goField(forceResolver: true)
4778 kind: String # the file kind
4779 perm: Int
4780 nlink: Int64
4781 uid: Int64
4782 gid: Int64
4783 rdev: Int64
4784
4785 # MistakeSpec represents the mistake to inject
4786
4787 # filling determines what is filled in the miskate data.
4788 filling: String
4789
4790 # there will be [1, MaxOccurrences] segments of wrong data.
4791 maxOccurrences: Int64 @goField(forceResolver: true)
4792
4793 # max length of each wrong data segment in bytes
4794 maxLength: Int64 @goField(forceResolver: true)
4795
4796 # source represents the source of current rules
4797 source: String!
4798 }
4799
4800 type IoFault @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IoFault") {
4801 errno: Int!
4802 weight: Int!
4803 }
4804
4805 # Timespec represents a time
4806 type Timespec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.Timespec") {
4807 sec: Int!
4808 nsec: Int!
4809 }
4810
4811
4812 type IOChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaos") {
4813 kind: String!
4814 apiVersion: String!
4815 name: String!
4816 generateName: String!
4817 namespace: String!
4818 selfLink: String!
4819 uid: String!
4820 resourceVersion: String!
4821 generation: Int!
4822 creationTimestamp: Time!
4823 deletionTimestamp: Time
4824 deletionGracePeriodSeconds: Int
4825 labels: Map
4826 annotations: Map
4827 ownerReferences: [OwnerReference!]
4828 finalizers: [String!]
4829
4830 spec: IOChaosSpec!
4831 status: IOChaosStatus!
4832
4833 podios: [PodIOChaos!] @goField(forceResolver: true)
4834 }
4835
4836 # IOChaosSpec defines the desired state of IOChaos
4837 type IOChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaosSpec") {
4838 # containerNames indicates list of the name of affected container.
4839 # If not set, the first container will be injected
4840 containerNames: [String!]
4841
4842 # selector is used to select pods that are used to inject chaos action.
4843 selector: PodSelectorSpec!
4844
4845 # mode defines the mode to run chaos action.
4846 # supported mode: one / all / fixed / fixed-percent / random-max-percent
4847 mode: String!
4848
4849 # value is required when the mode is set to ` + "`" + `FixedPodMode` + "`" + ` / ` + "`" + `FixedPercentPodMod` + "`" + ` / ` + "`" + `RandomMaxPercentPodMod` + "`" + `.
4850 # If ` + "`" + `FixedPodMode` + "`" + `, provide an integer of pods to do chaos action.
4851 # If ` + "`" + `FixedPercentPodMod` + "`" + `, provide a number from 0-100 to specify the percent of pods the server can do chaos action.
4852 # IF ` + "`" + `RandomMaxPercentPodMod` + "`" + `, provide a number from 0-100 to specify the max percent of pods to do chaos action
4853 value: String
4854
4855
4856 # action defines the specific pod chaos action.
4857 # Supported action: latency / fault / attrOverride / mistake
4858 action: String!
4859
4860 # delay defines the value of I/O chaos action delay.
4861 # A delay string is a possibly signed sequence of
4862 # decimal numbers, each with optional fraction and a unit suffix,
4863 # such as "300ms".
4864 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
4865 delay: String
4866
4867 # errno defines the error code that returned by I/O action.
4868 # refer to: https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html
4869 errno: Int
4870
4871 # attr defines the overrided attribution
4872 attr: AttrOverrideSpec
4873
4874 # mistake defines what types of incorrectness are injected to IO operations
4875 mistake: MistakeSpec
4876
4877 # path defines the path of files for injecting I/O chaos action.
4878 path: String
4879
4880 # methods defines the I/O methods for injecting I/O chaos action.
4881 # default: all I/O methods.
4882 methods: [String!]
4883
4884 # percent defines the percentage of injection errors and provides a number from 0-100.
4885 # default: 100.
4886 percent: Int
4887
4888 # volumePath represents the mount path of injected volume
4889 volumePath: String!
4890
4891 # duration represents the duration of the chaos action.
4892 # It is required when the action is ` + "`" + `PodFailureAction` + "`" + `.
4893 # A duration string is a possibly signed sequence of
4894 # decimal numbers, each with optional fraction and a unit suffix,
4895 # such as "300ms", "-1.5h" or "2h45m".
4896 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
4897 duration: String
4898 }
4899
4900 # AttrOverrideSpec represents an override of attribution
4901 type AttrOverrideSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.AttrOverrideSpec") {
4902 ino: Int
4903 size: Int
4904 blocks: Int
4905 atime: Timespec
4906 mtime: Timespec
4907 ctime: Timespec
4908 kind: String # the file kind
4909 perm: Int
4910 nlink: Int
4911 uid: Int
4912 gid: Int
4913 rdev: Int
4914 }
4915
4916 # MistakeSpec represents one type of mistake
4917 type MistakeSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.MistakeSpec") {
4918 # filling determines what is filled in the miskate data.
4919 filling: String
4920
4921 # there will be [1, MaxOccurrences] segments of wrong data.
4922 maxOccurrences: Int
4923
4924 # max length of each wrong data segment in bytes
4925 maxLength: Int
4926 }
4927
4928 type IOChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaosStatus") {
4929 # conditions represents the current global condition of the chaos
4930 conditions: [ChaosCondition!]
4931
4932 # experiment records the last experiment state.
4933 experiment: ExperimentStatus
4934
4935 # instances always specifies podhttpchaos generation or empty
4936 instances: Map
4937 }
4938
4939 type PodHTTPChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaos") {
4940 kind: String!
4941 apiVersion: String!
4942 name: String!
4943 generateName: String!
4944 namespace: String!
4945 selfLink: String!
4946 uid: String!
4947 resourceVersion: String!
4948 generation: Int!
4949 creationTimestamp: Time!
4950 deletionTimestamp: Time
4951 deletionGracePeriodSeconds: Int
4952 labels: Map
4953 annotations: Map
4954 ownerReferences: [OwnerReference!]
4955 finalizers: [String!]
4956
4957 spec: PodHttpChaosSpec!
4958 status: PodHttpChaosStatus!
4959
4960 pod: Pod! @goField(forceResolver: true)
4961 }
4962
4963 # PodHttpChaosSpec defines the desired state of PodHttpChaos.
4964 type PodHttpChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosSpec") {
4965 # rules are a list of injection rule for http request.
4966 rules: [PodHttpChaosRule!]!
4967
4968 # tls is the tls config,
4969 # will be override if there are multiple HTTPChaos experiments are applied
4970 tls: PodHttpChaosTLS
4971 }
4972
4973 # PodHttpChaosStatus defines the actual state of PodHttpChaos.
4974 type PodHttpChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosStatus") {
4975 # pid represents a running tproxy process id.
4976 pid: Int
4977
4978 # startTime represents the start time of a tproxy process.
4979 startTime: Int
4980
4981 failedMessage: String
4982 observedGeneration: Int
4983 }
4984
4985 # PodHttpChaosTLS contains the tls config for HTTPChaos
4986 type PodHttpChaosTLS @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosTLS") {
4987 # secretName represents the name of required secret resource
4988 secretName: String!
4989
4990 # secretNamespace represents the namespace of required secret resource,
4991 # should be the same with deployment/chaos-controller-manager in most cases
4992 secretNamespace: String!
4993
4994 # certName represents the data name of cert file in secret, ` + "`" + `tls.crt` + "`" + ` for example
4995 certName: String!
4996
4997 # keyName represents the data name of key file in secret, ` + "`" + `tls.key` + "`" + ` for example
4998 keyName: String!
4999
5000 # caName represents the data name of ca file in secret, ` + "`" + `ca.crt` + "`" + ` for example
5001 caName: String
5002 }
5003
5004 # PodHttpChaosRule defines the injection rule for http.
5005 type PodHttpChaosRule @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosRule") {
5006 # target is the object to be selected and injected, <Request|Response>.
5007 target: String!
5008
5009 selector: PodHttpChaosSelector!
5010
5011 actions: PodHttpChaosActions!
5012
5013 # source represents the source of current rules
5014 source: String!
5015
5016 # port represents the target port to be proxy of.
5017 port: Int!
5018 }
5019
5020 type PodHttpChaosSelector @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosSelector") {
5021 # port represents the target port to be proxy of.
5022 port: Int
5023
5024 # path is a rule to select target by uri path in http request.
5025 path: String
5026
5027 # method is a rule to select target by http method in request.
5028 method: String
5029
5030 # code is a rule to select target by http status code in response.
5031 code: Int
5032
5033 # requestHeaders is a rule to select target by http headers in request.
5034 # The key-value pairs represent header name and header value pairs.
5035 requestHeaders: Map
5036
5037 # responseHeaders is a rule to select target by http headers in response.
5038 # The key-value pairs represent header name and header value pairs.
5039 responseHeaders: Map
5040 }
5041
5042 # PodHttpChaosAction defines possible actions of HttpChaos.
5043 type PodHttpChaosActions @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosActions") {
5044 # abort is a rule to abort a http session.
5045 abort: Boolean
5046
5047 # delay represents the delay of the target request/response.
5048 # A duration string is a possibly unsigned sequence of
5049 # decimal numbers, each with optional fraction and a unit suffix,
5050 # such as "300ms", "2h45m".
5051 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
5052 delay: String
5053
5054 # replace is a rule to replace some contents in target.
5055 replace: PodHttpChaosReplaceActions
5056
5057 # patch is a rule to patch some contents in target.
5058 patch: PodHttpChaosPatchActions
5059 }
5060
5061 type HTTPChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.HTTPChaos") {
5062 kind: String!
5063 apiVersion: String!
5064 name: String!
5065 generateName: String!
5066 namespace: String!
5067 selfLink: String!
5068 uid: String!
5069 resourceVersion: String!
5070 generation: Int!
5071 creationTimestamp: Time!
5072 deletionTimestamp: Time
5073 deletionGracePeriodSeconds: Int
5074 labels: Map
5075 annotations: Map
5076 ownerReferences: [OwnerReference!]
5077 finalizers: [String!]
5078
5079 spec: HTTPChaosSpec!
5080 status: HTTPChaosStatus!
5081
5082 podhttp: [PodHTTPChaos!] @goField(forceResolver: true)
5083 }
5084
5085 type HTTPChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.HTTPChaosSpec") {
5086 # selector is used to select pods that are used to inject chaos action.
5087 selector: PodSelectorSpec!
5088
5089 # mode defines the mode to run chaos action.
5090 # supported mode: one / all / fixed / fixed-percent / random-max-percent
5091 mode: String!
5092
5093 # value is required when the mode is set to ` + "`" + `FixedPodMode` + "`" + ` / ` + "`" + `FixedPercentPodMod` + "`" + ` / ` + "`" + `RandomMaxPercentPodMod` + "`" + `.
5094 # If ` + "`" + `FixedPodMode` + "`" + `, provide an integer of pods to do chaos action.
5095 # If ` + "`" + `FixedPercentPodMod` + "`" + `, provide a number from 0-100 to specify the percent of pods the server can do chaos action.
5096 # IF ` + "`" + `RandomMaxPercentPodMod` + "`" + `, provide a number from 0-100 to specify the max percent of pods to do chaos action
5097 value: String
5098
5099 # target is the object to be selected and injected.
5100 target: String!
5101
5102 # abort is a rule to abort a http session.
5103 abort: Boolean
5104
5105 # delay represents the delay of the target request/response.
5106 # A duration string is a possibly unsigned sequence of
5107 # decimal numbers, each with optional fraction and a unit suffix,
5108 # such as "300ms", "2h45m".
5109 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
5110 delay: String
5111
5112 # replace is a rule to replace some contents in target.
5113 replace: PodHttpChaosReplaceActions
5114
5115 # patch is a rule to patch some contents in target.
5116 patch: PodHttpChaosPatchActions
5117
5118 # port represents the target port to be proxy of.
5119 port: Int
5120
5121 # path is a rule to select target by uri path in http request.
5122 path: String
5123
5124 # method is a rule to select target by http method in request.
5125 method: String
5126
5127 # code is a rule to select target by http status code in response.
5128 code: Int
5129
5130 # requestHeaders is a rule to select target by http headers in request.
5131 # The key-value pairs represent header name and header value pairs.
5132 requestHeaders: Map
5133
5134 # responseHeaders is a rule to select target by http headers in response.
5135 # The key-value pairs represent header name and header value pairs.
5136 responseHeaders: Map
5137
5138 # duration represents the duration of the chaos action.
5139 duration: String
5140 }
5141
5142 # PodSelectorSpec defines the some selectors to select objects.
5143 # If the all selectors are empty, all objects will be used in chaos experiment.
5144 type PodSelectorSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodSelectorSpec") {
5145 # namespaces is a set of namespace to which objects belong.
5146 namespaces: [String!]
5147
5148 # nodes is a set of node name and objects must belong to these nodes.
5149 nodes: [String!]
5150
5151 # pods is a map of string keys and a set values that used to select pods.
5152 # The key defines the namespace which pods belong,
5153 # and the each values is a set of pod names.
5154 pods: Map
5155
5156 # map of string keys and values that can be used to select nodes.
5157 # Selector which must match a node's labels,
5158 # and objects must belong to these selected nodes.
5159 nodeSelectors: Map
5160
5161 # map of string keys and values that can be used to select objects.
5162 # A selector based on fields.
5163 fieldSelectors: Map
5164
5165 # map of string keys and values that can be used to select objects.
5166 # A selector based on labels.
5167 labelSelectors: Map
5168
5169 # map of string keys and values that can be used to select objects.
5170 # A selector based on annotations.
5171 annotationSelectors: Map
5172
5173 # podPhaseSelectors is a set of condition of a pod at the current time.
5174 # supported value: Pending / Running / Succeeded / Failed / Unknown
5175 podPhaseSelectors: [String!]
5176 }
5177
5178 type PodHttpChaosReplaceActions @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosReplaceActions") {
5179 # path is rule to to replace uri path in http request.
5180 path: String
5181
5182 # method is a rule to replace http method in request.
5183 method: String
5184
5185 # code is a rule to replace http status code in response.
5186 code: Int
5187
5188 # body is a rule to replace http message body in target.
5189 body: String
5190
5191 # queries is a rule to replace uri queries in http request.
5192 # For example, with value ` + "`" + `{ "foo": "unknown" }` + "`" + `, the ` + "`" + `/?foo=bar` + "`" + ` will be altered to ` + "`" + `/?foo=unknown` + "`" + `,
5193 queries: Map
5194
5195 # headers is a rule to replace http headers of target.
5196 # The key-value pairs represent header name and header value pairs.
5197 headers: Map
5198 }
5199
5200 # PodHttpChaosPatchActions defines possible patch-actions of HttpChaos.
5201 type PodHttpChaosPatchActions @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosPatchActions") {
5202 # body is a rule to patch message body of target.
5203 body: PodHttpChaosPatchBodyAction
5204
5205 # queries is a rule to append uri queries of target(Request only).
5206 # For example: ` + "`" + `[["foo", "bar"], ["foo", "unknown"]]` + "`" + `.
5207 queries: [[String!]!]
5208
5209 # headers is a rule to append http headers of target.
5210 # For example: ` + "`" + `[["Set-Cookie", "<one cookie>"], ["Set-Cookie", "<another cookie>"]]` + "`" + `.
5211 headers: [[String!]!]
5212 }
5213
5214 # PodHttpChaosPatchBodyAction defines patch body action of HttpChaos.
5215 type PodHttpChaosPatchBodyAction @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosPatchBodyAction") {
5216 # type represents the patch type, only support ` + "`" + `JSON` + "`" + ` as [merge patch json](https://tools.ietf.org/html/rfc7396) currently.
5217 type: String!
5218
5219 # value is the patch contents.
5220 value: String!
5221 }
5222
5223 type HTTPChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.HTTPChaosStatus") {
5224 # conditions represents the current global condition of the chaos
5225 conditions: [ChaosCondition!]
5226
5227 # experiment records the last experiment state.
5228 experiment: ExperimentStatus
5229
5230 # instances always specifies podhttpchaos generation or empty
5231 instances: Map
5232 }
5233
5234 type ChaosCondition @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.ChaosCondition") {
5235 type: String!
5236 status: String!
5237 reason: String
5238 }
5239
5240 type ExperimentStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.ExperimentStatus") {
5241 desiredPhase: String!
5242
5243 # Records are used to track the running status
5244 Records: [Record!]
5245 }
5246
5247 type Record @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.Record") {
5248 id: String!
5249 selectorKey: String!
5250 phase: String!
5251 }
5252
5253 type PodNetworkChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodNetworkChaos") {
5254 kind: String!
5255 apiVersion: String!
5256 name: String!
5257 generateName: String!
5258 namespace: String!
5259 selfLink: String!
5260 uid: String!
5261 resourceVersion: String!
5262 generation: Int!
5263 creationTimestamp: Time!
5264 deletionTimestamp: Time
5265 deletionGracePeriodSeconds: Int
5266 labels: Map
5267 annotations: Map
5268 ownerReferences: [OwnerReference!]
5269 finalizers: [String!]
5270
5271 spec: PodNetworkChaosSpec!
5272 status: PodNetworkChaosStatus!
5273
5274 pod: Pod! @goField(forceResolver: true)
5275 }
5276
5277 # PodNetworkChaosSpec defines the desired state of PodNetworkChaos
5278 type PodNetworkChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodNetworkChaosSpec") {
5279 # The ipset on the pod
5280 ipSets: [RawIPSet!]
5281
5282 # The iptables rules on the pod
5283 iptables: [RawIptables!]
5284
5285 # The tc rules on the pod
5286 trafficControls: [RawTrafficControl!]
5287 }
5288
5289 # PodNetworkChaosStatus defines the observed state of PodNetworkChaos
5290 type PodNetworkChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodNetworkChaosStatus") {
5291 failedMessage: String!
5292 observedGeneration: Int!
5293 }
5294
5295 # RawIPSet represents an ipset on specific pod
5296 type RawIPSet @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RawIPSet") {
5297 # The name of ipset
5298 name: String!
5299
5300 ipSetType: String!
5301
5302 # The contents of ipset
5303 cidrs: [String!]!
5304
5305 # The contents of ipset.
5306 # Only available when IPSetType is NetPortIPSet.
5307 cidrAndPorts: [CidrAndPort!]
5308
5309 # The contents of ipset.
5310 # Only available when IPSetType is SetIPSet.
5311 setNames: [String!]!
5312
5313 # The name and namespace of the source network chaos
5314 source: String!
5315 }
5316
5317 type CidrAndPort @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.CidrAndPort") {
5318 cidr: String!
5319 port: Int!
5320 }
5321
5322 # RawIptables represents the iptables rules on specific pod
5323 type RawIptables @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RawIptables") {
5324 # The name of iptables chain
5325 name: String!
5326
5327 # The name of related ipset
5328 ipSets: [String!]!
5329
5330 # The block direction of this iptables rule
5331 direction: String!
5332
5333 # The name and namespace of the source network chaos
5334 source: String!
5335
5336 # Device represents the network device to be affected.
5337 device: String
5338 }
5339
5340 # RawTrafficControl represents the traffic control chaos on specific pod
5341 type RawTrafficControl @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RawTrafficControl") {
5342 # The type of traffic control
5343 type: String!
5344
5345 # delay represents the detail about delay action
5346 delay: DelaySpec
5347
5348 # loss represents the detail about loss action
5349 loss: LossSpec
5350
5351 # duplicateSpec represents the detail about loss action
5352 duplicate: DuplicateSpec
5353
5354 # corrupt represents the detail about corrupt action
5355 corrupt: CorruptSpec
5356
5357 # bandwidth represents the detail about bandwidth control action
5358 bandwidth: BandwidthSpec
5359
5360 # Rate represents the detail about rate control action
5361 rate: RateSpec
5362
5363 # The name of target ipset
5364 ipSet: String
5365
5366 # The name and namespace of the source network chaos
5367 source: String
5368
5369 # Device represents the network device to be affected.
5370 device: String
5371 }
5372
5373 # DelaySpec defines detail of a delay action
5374 type DelaySpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.DelaySpec") {
5375 latency: String!
5376 correlation: String
5377 jitter: String
5378 reorder: ReorderSpec
5379 }
5380
5381 # LossSpec defines detail of a loss action
5382 type LossSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.LossSpec") {
5383 loss: String!
5384 correlation: String
5385 }
5386
5387 # DuplicateSpec defines detail of a duplicate action
5388 type DuplicateSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.DuplicateSpec") {
5389 duplicate: String!
5390 correlation: String
5391 }
5392
5393 # CorruptSpec defines detail of a corrupt action
5394 type CorruptSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.CorruptSpec") {
5395 corrupt: String!
5396 correlation: String
5397 }
5398
5399 # BandwidthSpec defines detail of bandwidth limit.
5400 type BandwidthSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.BandwidthSpec") {
5401 # rate is the speed knob. Allows bps, kbps, mbps, gbps, tbps unit. bps means bytes per second.
5402 rate: String!
5403
5404 # limit is the number of bytes that can be queued waiting for tokens to become available.
5405 limit: Int!
5406
5407 # buffer is the maximum amount of bytes that tokens can be available for instantaneously.
5408 buffer: Int!
5409
5410 # peakrate is the maximum depletion rate of the bucket.
5411 # The peakrate does not need to be set, it is only necessary
5412 # if perfect millisecond timescale shaping is required.
5413 peakrate: Int
5414
5415 # minburst specifies the size of the peakrate bucket. For perfect
5416 # accuracy, should be set to the MTU of the interface. If a
5417 # peakrate is needed, but some burstiness is acceptable, this
5418 # size can be raised. A 3000 byte minburst allows around 3mbit/s
5419 # of peakrate, given 1000 byte packets.
5420 minburst: Int
5421 }
5422
5423 type RateSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RateSpec"){
5424 # Rate is the speed knob. Allows bit, kbit, mbit, gbit, tbit, bps, kbps, mbps, gbps, tbps unit. bps means bytes per second.
5425 rate: String!
5426 }
5427
5428 # ReorderSpec defines details of packet reorder.
5429 type ReorderSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.ReorderSpec") {
5430 reorder: String!
5431 correlation: String
5432 gap: Int
5433 }
5434
5435 type NetworkChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.NetworkChaos") {
5436 kind: String!
5437 apiVersion: String!
5438 name: String!
5439 generateName: String!
5440 namespace: String!
5441 selfLink: String!
5442 uid: String!
5443 resourceVersion: String!
5444 generation: Int!
5445 creationTimestamp: Time!
5446 deletionTimestamp: Time
5447 deletionGracePeriodSeconds: Int
5448 labels: Map
5449 annotations: Map
5450 ownerReferences: [OwnerReference!]
5451 finalizers: [String!]
5452
5453 podnetwork: [PodNetworkChaos!] @goField(forceResolver: true)
5454 }
5455
5456 type MemoryStressor @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.MemoryStressor") {
5457 # Workers specifies N workers to apply the stressor.
5458 # Maximum 8192 workers can run by stress-ng
5459 workers: Int!
5460
5461 # Size specifies N bytes consumed per vm worker, default is the total available memory.
5462 # One can specify the size as % of total available memory or in units of B, KB/KiB,
5463 # MB/MiB, GB/GiB, TB/TiB.
5464 size: String
5465
5466 # extend stress-ng options
5467 options: [String!]
5468 }
5469
5470 type CPUStressor @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.CPUStressor") {
5471 # Workers specifies N workers to apply the stressor.
5472 # Maximum 8192 workers can run by stress-ng
5473 workers: Int!
5474
5475 # Load specifies P percent loading per CPU worker. 0 is effectively a sleep (no load) and 100
5476 # is full loading.
5477 load: Int
5478
5479 # extend stress-ng options
5480 options: [String!]
5481 }
5482
5483 type Stressors @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.Stressors") {
5484 memoryStressor: MemoryStressor
5485 cpuStressor: CPUStressor
5486 }
5487
5488 # StressChaosSpec defines the desired state of StressChaos
5489 type StressChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.StressChaosSpec") {
5490 # containerNames indicates list of the name of affected container.
5491 # If not set, all containers will be injected
5492 containerNames: [String!]
5493
5494 # selector is used to select pods that are used to inject chaos action.
5495 selector: PodSelectorSpec!
5496
5497 # mode defines the mode to run chaos action.
5498 # supported mode: one / all / fixed / fixed-percent / random-max-percent
5499 mode: String!
5500
5501 # value is required when the mode is set to ` + "`" + `FixedPodMode` + "`" + ` / ` + "`" + `FixedPercentPodMod` + "`" + ` / ` + "`" + `RandomMaxPercentPodMod` + "`" + `.
5502 # If ` + "`" + `FixedPodMode` + "`" + `, provide an integer of pods to do chaos action.
5503 # If ` + "`" + `FixedPercentPodMod` + "`" + `, provide a number from 0-100 to specify the percent of pods the server can do chaos action.
5504 # IF ` + "`" + `RandomMaxPercentPodMod` + "`" + `, provide a number from 0-100 to specify the max percent of pods to do chaos action
5505 value: String
5506
5507 stressors: Stressors
5508
5509
5510 # StressngStressors defines plenty of stressors just like ` + "`" + `Stressors` + "`" + ` except that it's an experimental
5511 # feature and more powerful. You can define stressors in ` + "`" + `stress-ng` + "`" + ` (see also ` + "`" + `man stress-ng` + "`" + `) dialect,
5512 # however not all of the supported stressors are well tested. It maybe retired in later releases. You
5513 # should always use ` + "`" + `Stressors` + "`" + ` to define the stressors and use this only when you want more stressors
5514 # unsupported by ` + "`" + `Stressors` + "`" + `. When both ` + "`" + `StressngStressors` + "`" + ` and ` + "`" + `Stressors` + "`" + ` are defined, ` + "`" + `StressngStressors` + "`" + `
5515 # wins.
5516 stressngStressors: String
5517
5518 # duration represents the duration of the chaos action.
5519 # It is required when the action is ` + "`" + `PodFailureAction` + "`" + `.
5520 # A duration string is a possibly signed sequence of
5521 # decimal numbers, each with optional fraction and a unit suffix,
5522 # such as "300ms", "-1.5h" or "2h45m".
5523 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
5524 duration: String
5525 }
5526
5527 type StressChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.StressChaosStatus") {
5528 # conditions represents the current global condition of the chaos
5529 conditions: [ChaosCondition!]
5530
5531 # experiment records the last experiment state.
5532 experiment: ExperimentStatus
5533
5534 # instances always specifies stressing instances
5535 instances: Map
5536 }
5537
5538 type StressChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.StressChaos") {
5539 kind: String!
5540 apiVersion: String!
5541 name: String!
5542 generateName: String!
5543 namespace: String!
5544 selfLink: String!
5545 uid: String!
5546 resourceVersion: String!
5547 generation: Int!
5548 creationTimestamp: Time!
5549 deletionTimestamp: Time
5550 deletionGracePeriodSeconds: Int
5551 labels: Map
5552 annotations: Map
5553 ownerReferences: [OwnerReference!]
5554 finalizers: [String!]
5555
5556 spec: StressChaosSpec!
5557
5558 podstress: [PodStressChaos!] @goField(forceResolver: true)
5559 }
5560
5561 # PodStressChaos is a virtual type to describe relationship between pod and stress chaos
5562 type PodStressChaos {
5563 stressChaos: StressChaos!
5564
5565 pod: Pod!
5566 cgroups: Cgroups! @goField(forceResolver: true)
5567 processStress: [ProcessStress!] @goField(forceResolver: true)
5568 }
5569
5570 type Cgroups {
5571 raw: String!
5572 cpu: CgroupsCpu
5573 memory: CgroupsMemory
5574 }
5575
5576 type CgroupsCpu {
5577 quota: Int!
5578 period: Int!
5579 }
5580
5581 type CgroupsMemory {
5582 limit: Int64!
5583 }
5584
5585 type ProcessStress {
5586 process: Process!
5587 cgroup: String!
5588 }
5589 `, BuiltIn: false},
5590 }
5591 var parsedSchema = gqlparser.MustLoadSchema(sources...)
5592
5593
5594
5595
5596
5597 func (ec *executionContext) field_Logger_component_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5598 var err error
5599 args := map[string]interface{}{}
5600 var arg0 string
5601 if tmp, ok := rawArgs["ns"]; ok {
5602 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
5603 arg0, err = ec.unmarshalNString2string(ctx, tmp)
5604 if err != nil {
5605 return nil, err
5606 }
5607 }
5608 args["ns"] = arg0
5609 var arg1 model.Component
5610 if tmp, ok := rawArgs["component"]; ok {
5611 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("component"))
5612 arg1, err = ec.unmarshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐComponent(ctx, tmp)
5613 if err != nil {
5614 return nil, err
5615 }
5616 }
5617 args["component"] = arg1
5618 return args, nil
5619 }
5620
5621 func (ec *executionContext) field_Logger_pod_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5622 var err error
5623 args := map[string]interface{}{}
5624 var arg0 string
5625 if tmp, ok := rawArgs["ns"]; ok {
5626 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
5627 arg0, err = ec.unmarshalNString2string(ctx, tmp)
5628 if err != nil {
5629 return nil, err
5630 }
5631 }
5632 args["ns"] = arg0
5633 var arg1 string
5634 if tmp, ok := rawArgs["name"]; ok {
5635 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5636 arg1, err = ec.unmarshalNString2string(ctx, tmp)
5637 if err != nil {
5638 return nil, err
5639 }
5640 }
5641 args["name"] = arg1
5642 return args, nil
5643 }
5644
5645 func (ec *executionContext) field_MutablePod_cleanIptables_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5646 var err error
5647 args := map[string]interface{}{}
5648 var arg0 []string
5649 if tmp, ok := rawArgs["chains"]; ok {
5650 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("chains"))
5651 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp)
5652 if err != nil {
5653 return nil, err
5654 }
5655 }
5656 args["chains"] = arg0
5657 return args, nil
5658 }
5659
5660 func (ec *executionContext) field_MutablePod_cleanTcs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5661 var err error
5662 args := map[string]interface{}{}
5663 var arg0 []string
5664 if tmp, ok := rawArgs["devices"]; ok {
5665 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("devices"))
5666 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp)
5667 if err != nil {
5668 return nil, err
5669 }
5670 }
5671 args["devices"] = arg0
5672 return args, nil
5673 }
5674
5675 func (ec *executionContext) field_MutablePod_killProcesses_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5676 var err error
5677 args := map[string]interface{}{}
5678 var arg0 []string
5679 if tmp, ok := rawArgs["pids"]; ok {
5680 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pids"))
5681 arg0, err = ec.unmarshalOString2ᚕstringᚄ(ctx, tmp)
5682 if err != nil {
5683 return nil, err
5684 }
5685 }
5686 args["pids"] = arg0
5687 return args, nil
5688 }
5689
5690 func (ec *executionContext) field_Mutation_pod_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5691 var err error
5692 args := map[string]interface{}{}
5693 var arg0 string
5694 if tmp, ok := rawArgs["ns"]; ok {
5695 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
5696 arg0, err = ec.unmarshalNString2string(ctx, tmp)
5697 if err != nil {
5698 return nil, err
5699 }
5700 }
5701 args["ns"] = arg0
5702 var arg1 string
5703 if tmp, ok := rawArgs["name"]; ok {
5704 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5705 arg1, err = ec.unmarshalNString2string(ctx, tmp)
5706 if err != nil {
5707 return nil, err
5708 }
5709 }
5710 args["name"] = arg1
5711 return args, nil
5712 }
5713
5714 func (ec *executionContext) field_Namespace_component_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5715 var err error
5716 args := map[string]interface{}{}
5717 var arg0 model.Component
5718 if tmp, ok := rawArgs["component"]; ok {
5719 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("component"))
5720 arg0, err = ec.unmarshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐComponent(ctx, tmp)
5721 if err != nil {
5722 return nil, err
5723 }
5724 }
5725 args["component"] = arg0
5726 return args, nil
5727 }
5728
5729 func (ec *executionContext) field_Namespace_httpchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5730 var err error
5731 args := map[string]interface{}{}
5732 var arg0 *string
5733 if tmp, ok := rawArgs["name"]; ok {
5734 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5735 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5736 if err != nil {
5737 return nil, err
5738 }
5739 }
5740 args["name"] = arg0
5741 return args, nil
5742 }
5743
5744 func (ec *executionContext) field_Namespace_iochaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5745 var err error
5746 args := map[string]interface{}{}
5747 var arg0 *string
5748 if tmp, ok := rawArgs["name"]; ok {
5749 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5750 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5751 if err != nil {
5752 return nil, err
5753 }
5754 }
5755 args["name"] = arg0
5756 return args, nil
5757 }
5758
5759 func (ec *executionContext) field_Namespace_networkchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5760 var err error
5761 args := map[string]interface{}{}
5762 var arg0 *string
5763 if tmp, ok := rawArgs["name"]; ok {
5764 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5765 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5766 if err != nil {
5767 return nil, err
5768 }
5769 }
5770 args["name"] = arg0
5771 return args, nil
5772 }
5773
5774 func (ec *executionContext) field_Namespace_pod_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5775 var err error
5776 args := map[string]interface{}{}
5777 var arg0 *string
5778 if tmp, ok := rawArgs["name"]; ok {
5779 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5780 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5781 if err != nil {
5782 return nil, err
5783 }
5784 }
5785 args["name"] = arg0
5786 return args, nil
5787 }
5788
5789 func (ec *executionContext) field_Namespace_podhttpchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5790 var err error
5791 args := map[string]interface{}{}
5792 var arg0 *string
5793 if tmp, ok := rawArgs["name"]; ok {
5794 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5795 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5796 if err != nil {
5797 return nil, err
5798 }
5799 }
5800 args["name"] = arg0
5801 return args, nil
5802 }
5803
5804 func (ec *executionContext) field_Namespace_podiochaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5805 var err error
5806 args := map[string]interface{}{}
5807 var arg0 *string
5808 if tmp, ok := rawArgs["name"]; ok {
5809 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5810 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5811 if err != nil {
5812 return nil, err
5813 }
5814 }
5815 args["name"] = arg0
5816 return args, nil
5817 }
5818
5819 func (ec *executionContext) field_Namespace_podnetworkchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5820 var err error
5821 args := map[string]interface{}{}
5822 var arg0 *string
5823 if tmp, ok := rawArgs["name"]; ok {
5824 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5825 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5826 if err != nil {
5827 return nil, err
5828 }
5829 }
5830 args["name"] = arg0
5831 return args, nil
5832 }
5833
5834 func (ec *executionContext) field_Namespace_stresschaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5835 var err error
5836 args := map[string]interface{}{}
5837 var arg0 *string
5838 if tmp, ok := rawArgs["name"]; ok {
5839 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5840 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5841 if err != nil {
5842 return nil, err
5843 }
5844 }
5845 args["name"] = arg0
5846 return args, nil
5847 }
5848
5849 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5850 var err error
5851 args := map[string]interface{}{}
5852 var arg0 string
5853 if tmp, ok := rawArgs["name"]; ok {
5854 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5855 arg0, err = ec.unmarshalNString2string(ctx, tmp)
5856 if err != nil {
5857 return nil, err
5858 }
5859 }
5860 args["name"] = arg0
5861 return args, nil
5862 }
5863
5864 func (ec *executionContext) field_Query_namespace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5865 var err error
5866 args := map[string]interface{}{}
5867 var arg0 *string
5868 if tmp, ok := rawArgs["ns"]; ok {
5869 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
5870 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5871 if err != nil {
5872 return nil, err
5873 }
5874 }
5875 args["ns"] = arg0
5876 return args, nil
5877 }
5878
5879 func (ec *executionContext) field_Query_pods_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5880 var err error
5881 args := map[string]interface{}{}
5882 var arg0 model.PodSelectorInput
5883 if tmp, ok := rawArgs["selector"]; ok {
5884 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("selector"))
5885 arg0, err = ec.unmarshalNPodSelectorInput2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐPodSelectorInput(ctx, tmp)
5886 if err != nil {
5887 return nil, err
5888 }
5889 }
5890 args["selector"] = arg0
5891 return args, nil
5892 }
5893
5894 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5895 var err error
5896 args := map[string]interface{}{}
5897 var arg0 bool
5898 if tmp, ok := rawArgs["includeDeprecated"]; ok {
5899 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
5900 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
5901 if err != nil {
5902 return nil, err
5903 }
5904 }
5905 args["includeDeprecated"] = arg0
5906 return args, nil
5907 }
5908
5909 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5910 var err error
5911 args := map[string]interface{}{}
5912 var arg0 bool
5913 if tmp, ok := rawArgs["includeDeprecated"]; ok {
5914 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
5915 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
5916 if err != nil {
5917 return nil, err
5918 }
5919 }
5920 args["includeDeprecated"] = arg0
5921 return args, nil
5922 }
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 func (ec *executionContext) _AttrOverrideSpec_ino(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5933 defer func() {
5934 if r := recover(); r != nil {
5935 ec.Error(ctx, ec.Recover(ctx, r))
5936 ret = graphql.Null
5937 }
5938 }()
5939 fc := &graphql.FieldContext{
5940 Object: "AttrOverrideSpec",
5941 Field: field,
5942 Args: nil,
5943 IsMethod: true,
5944 IsResolver: true,
5945 }
5946
5947 ctx = graphql.WithFieldContext(ctx, fc)
5948 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5949 ctx = rctx
5950 return ec.resolvers.AttrOverrideSpec().Ino(rctx, obj)
5951 })
5952 if err != nil {
5953 ec.Error(ctx, err)
5954 return graphql.Null
5955 }
5956 if resTmp == nil {
5957 return graphql.Null
5958 }
5959 res := resTmp.(*int)
5960 fc.Result = res
5961 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5962 }
5963
5964 func (ec *executionContext) _AttrOverrideSpec_size(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5965 defer func() {
5966 if r := recover(); r != nil {
5967 ec.Error(ctx, ec.Recover(ctx, r))
5968 ret = graphql.Null
5969 }
5970 }()
5971 fc := &graphql.FieldContext{
5972 Object: "AttrOverrideSpec",
5973 Field: field,
5974 Args: nil,
5975 IsMethod: true,
5976 IsResolver: true,
5977 }
5978
5979 ctx = graphql.WithFieldContext(ctx, fc)
5980 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5981 ctx = rctx
5982 return ec.resolvers.AttrOverrideSpec().Size(rctx, obj)
5983 })
5984 if err != nil {
5985 ec.Error(ctx, err)
5986 return graphql.Null
5987 }
5988 if resTmp == nil {
5989 return graphql.Null
5990 }
5991 res := resTmp.(*int)
5992 fc.Result = res
5993 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5994 }
5995
5996 func (ec *executionContext) _AttrOverrideSpec_blocks(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5997 defer func() {
5998 if r := recover(); r != nil {
5999 ec.Error(ctx, ec.Recover(ctx, r))
6000 ret = graphql.Null
6001 }
6002 }()
6003 fc := &graphql.FieldContext{
6004 Object: "AttrOverrideSpec",
6005 Field: field,
6006 Args: nil,
6007 IsMethod: true,
6008 IsResolver: true,
6009 }
6010
6011 ctx = graphql.WithFieldContext(ctx, fc)
6012 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6013 ctx = rctx
6014 return ec.resolvers.AttrOverrideSpec().Blocks(rctx, obj)
6015 })
6016 if err != nil {
6017 ec.Error(ctx, err)
6018 return graphql.Null
6019 }
6020 if resTmp == nil {
6021 return graphql.Null
6022 }
6023 res := resTmp.(*int)
6024 fc.Result = res
6025 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6026 }
6027
6028 func (ec *executionContext) _AttrOverrideSpec_atime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6029 defer func() {
6030 if r := recover(); r != nil {
6031 ec.Error(ctx, ec.Recover(ctx, r))
6032 ret = graphql.Null
6033 }
6034 }()
6035 fc := &graphql.FieldContext{
6036 Object: "AttrOverrideSpec",
6037 Field: field,
6038 Args: nil,
6039 IsMethod: false,
6040 IsResolver: false,
6041 }
6042
6043 ctx = graphql.WithFieldContext(ctx, fc)
6044 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6045 ctx = rctx
6046 return obj.Atime, nil
6047 })
6048 if err != nil {
6049 ec.Error(ctx, err)
6050 return graphql.Null
6051 }
6052 if resTmp == nil {
6053 return graphql.Null
6054 }
6055 res := resTmp.(*v1alpha1.Timespec)
6056 fc.Result = res
6057 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
6058 }
6059
6060 func (ec *executionContext) _AttrOverrideSpec_mtime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6061 defer func() {
6062 if r := recover(); r != nil {
6063 ec.Error(ctx, ec.Recover(ctx, r))
6064 ret = graphql.Null
6065 }
6066 }()
6067 fc := &graphql.FieldContext{
6068 Object: "AttrOverrideSpec",
6069 Field: field,
6070 Args: nil,
6071 IsMethod: false,
6072 IsResolver: false,
6073 }
6074
6075 ctx = graphql.WithFieldContext(ctx, fc)
6076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6077 ctx = rctx
6078 return obj.Mtime, nil
6079 })
6080 if err != nil {
6081 ec.Error(ctx, err)
6082 return graphql.Null
6083 }
6084 if resTmp == nil {
6085 return graphql.Null
6086 }
6087 res := resTmp.(*v1alpha1.Timespec)
6088 fc.Result = res
6089 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
6090 }
6091
6092 func (ec *executionContext) _AttrOverrideSpec_ctime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6093 defer func() {
6094 if r := recover(); r != nil {
6095 ec.Error(ctx, ec.Recover(ctx, r))
6096 ret = graphql.Null
6097 }
6098 }()
6099 fc := &graphql.FieldContext{
6100 Object: "AttrOverrideSpec",
6101 Field: field,
6102 Args: nil,
6103 IsMethod: false,
6104 IsResolver: false,
6105 }
6106
6107 ctx = graphql.WithFieldContext(ctx, fc)
6108 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6109 ctx = rctx
6110 return obj.Ctime, nil
6111 })
6112 if err != nil {
6113 ec.Error(ctx, err)
6114 return graphql.Null
6115 }
6116 if resTmp == nil {
6117 return graphql.Null
6118 }
6119 res := resTmp.(*v1alpha1.Timespec)
6120 fc.Result = res
6121 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
6122 }
6123
6124 func (ec *executionContext) _AttrOverrideSpec_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6125 defer func() {
6126 if r := recover(); r != nil {
6127 ec.Error(ctx, ec.Recover(ctx, r))
6128 ret = graphql.Null
6129 }
6130 }()
6131 fc := &graphql.FieldContext{
6132 Object: "AttrOverrideSpec",
6133 Field: field,
6134 Args: nil,
6135 IsMethod: true,
6136 IsResolver: true,
6137 }
6138
6139 ctx = graphql.WithFieldContext(ctx, fc)
6140 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6141 ctx = rctx
6142 return ec.resolvers.AttrOverrideSpec().Kind(rctx, obj)
6143 })
6144 if err != nil {
6145 ec.Error(ctx, err)
6146 return graphql.Null
6147 }
6148 if resTmp == nil {
6149 return graphql.Null
6150 }
6151 res := resTmp.(*string)
6152 fc.Result = res
6153 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
6154 }
6155
6156 func (ec *executionContext) _AttrOverrideSpec_perm(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6157 defer func() {
6158 if r := recover(); r != nil {
6159 ec.Error(ctx, ec.Recover(ctx, r))
6160 ret = graphql.Null
6161 }
6162 }()
6163 fc := &graphql.FieldContext{
6164 Object: "AttrOverrideSpec",
6165 Field: field,
6166 Args: nil,
6167 IsMethod: true,
6168 IsResolver: true,
6169 }
6170
6171 ctx = graphql.WithFieldContext(ctx, fc)
6172 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6173 ctx = rctx
6174 return ec.resolvers.AttrOverrideSpec().Perm(rctx, obj)
6175 })
6176 if err != nil {
6177 ec.Error(ctx, err)
6178 return graphql.Null
6179 }
6180 if resTmp == nil {
6181 return graphql.Null
6182 }
6183 res := resTmp.(*int)
6184 fc.Result = res
6185 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6186 }
6187
6188 func (ec *executionContext) _AttrOverrideSpec_nlink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6189 defer func() {
6190 if r := recover(); r != nil {
6191 ec.Error(ctx, ec.Recover(ctx, r))
6192 ret = graphql.Null
6193 }
6194 }()
6195 fc := &graphql.FieldContext{
6196 Object: "AttrOverrideSpec",
6197 Field: field,
6198 Args: nil,
6199 IsMethod: true,
6200 IsResolver: true,
6201 }
6202
6203 ctx = graphql.WithFieldContext(ctx, fc)
6204 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6205 ctx = rctx
6206 return ec.resolvers.AttrOverrideSpec().Nlink(rctx, obj)
6207 })
6208 if err != nil {
6209 ec.Error(ctx, err)
6210 return graphql.Null
6211 }
6212 if resTmp == nil {
6213 return graphql.Null
6214 }
6215 res := resTmp.(*int)
6216 fc.Result = res
6217 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6218 }
6219
6220 func (ec *executionContext) _AttrOverrideSpec_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6221 defer func() {
6222 if r := recover(); r != nil {
6223 ec.Error(ctx, ec.Recover(ctx, r))
6224 ret = graphql.Null
6225 }
6226 }()
6227 fc := &graphql.FieldContext{
6228 Object: "AttrOverrideSpec",
6229 Field: field,
6230 Args: nil,
6231 IsMethod: true,
6232 IsResolver: true,
6233 }
6234
6235 ctx = graphql.WithFieldContext(ctx, fc)
6236 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6237 ctx = rctx
6238 return ec.resolvers.AttrOverrideSpec().UID(rctx, obj)
6239 })
6240 if err != nil {
6241 ec.Error(ctx, err)
6242 return graphql.Null
6243 }
6244 if resTmp == nil {
6245 return graphql.Null
6246 }
6247 res := resTmp.(*int)
6248 fc.Result = res
6249 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6250 }
6251
6252 func (ec *executionContext) _AttrOverrideSpec_gid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6253 defer func() {
6254 if r := recover(); r != nil {
6255 ec.Error(ctx, ec.Recover(ctx, r))
6256 ret = graphql.Null
6257 }
6258 }()
6259 fc := &graphql.FieldContext{
6260 Object: "AttrOverrideSpec",
6261 Field: field,
6262 Args: nil,
6263 IsMethod: true,
6264 IsResolver: true,
6265 }
6266
6267 ctx = graphql.WithFieldContext(ctx, fc)
6268 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6269 ctx = rctx
6270 return ec.resolvers.AttrOverrideSpec().Gid(rctx, obj)
6271 })
6272 if err != nil {
6273 ec.Error(ctx, err)
6274 return graphql.Null
6275 }
6276 if resTmp == nil {
6277 return graphql.Null
6278 }
6279 res := resTmp.(*int)
6280 fc.Result = res
6281 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6282 }
6283
6284 func (ec *executionContext) _AttrOverrideSpec_rdev(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
6285 defer func() {
6286 if r := recover(); r != nil {
6287 ec.Error(ctx, ec.Recover(ctx, r))
6288 ret = graphql.Null
6289 }
6290 }()
6291 fc := &graphql.FieldContext{
6292 Object: "AttrOverrideSpec",
6293 Field: field,
6294 Args: nil,
6295 IsMethod: true,
6296 IsResolver: true,
6297 }
6298
6299 ctx = graphql.WithFieldContext(ctx, fc)
6300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6301 ctx = rctx
6302 return ec.resolvers.AttrOverrideSpec().Rdev(rctx, obj)
6303 })
6304 if err != nil {
6305 ec.Error(ctx, err)
6306 return graphql.Null
6307 }
6308 if resTmp == nil {
6309 return graphql.Null
6310 }
6311 res := resTmp.(*int)
6312 fc.Result = res
6313 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6314 }
6315
6316 func (ec *executionContext) _BandwidthSpec_rate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
6317 defer func() {
6318 if r := recover(); r != nil {
6319 ec.Error(ctx, ec.Recover(ctx, r))
6320 ret = graphql.Null
6321 }
6322 }()
6323 fc := &graphql.FieldContext{
6324 Object: "BandwidthSpec",
6325 Field: field,
6326 Args: nil,
6327 IsMethod: false,
6328 IsResolver: false,
6329 }
6330
6331 ctx = graphql.WithFieldContext(ctx, fc)
6332 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6333 ctx = rctx
6334 return obj.Rate, nil
6335 })
6336 if err != nil {
6337 ec.Error(ctx, err)
6338 return graphql.Null
6339 }
6340 if resTmp == nil {
6341 if !graphql.HasFieldError(ctx, fc) {
6342 ec.Errorf(ctx, "must not be null")
6343 }
6344 return graphql.Null
6345 }
6346 res := resTmp.(string)
6347 fc.Result = res
6348 return ec.marshalNString2string(ctx, field.Selections, res)
6349 }
6350
6351 func (ec *executionContext) _BandwidthSpec_limit(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
6352 defer func() {
6353 if r := recover(); r != nil {
6354 ec.Error(ctx, ec.Recover(ctx, r))
6355 ret = graphql.Null
6356 }
6357 }()
6358 fc := &graphql.FieldContext{
6359 Object: "BandwidthSpec",
6360 Field: field,
6361 Args: nil,
6362 IsMethod: true,
6363 IsResolver: true,
6364 }
6365
6366 ctx = graphql.WithFieldContext(ctx, fc)
6367 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6368 ctx = rctx
6369 return ec.resolvers.BandwidthSpec().Limit(rctx, obj)
6370 })
6371 if err != nil {
6372 ec.Error(ctx, err)
6373 return graphql.Null
6374 }
6375 if resTmp == nil {
6376 if !graphql.HasFieldError(ctx, fc) {
6377 ec.Errorf(ctx, "must not be null")
6378 }
6379 return graphql.Null
6380 }
6381 res := resTmp.(int)
6382 fc.Result = res
6383 return ec.marshalNInt2int(ctx, field.Selections, res)
6384 }
6385
6386 func (ec *executionContext) _BandwidthSpec_buffer(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
6387 defer func() {
6388 if r := recover(); r != nil {
6389 ec.Error(ctx, ec.Recover(ctx, r))
6390 ret = graphql.Null
6391 }
6392 }()
6393 fc := &graphql.FieldContext{
6394 Object: "BandwidthSpec",
6395 Field: field,
6396 Args: nil,
6397 IsMethod: true,
6398 IsResolver: true,
6399 }
6400
6401 ctx = graphql.WithFieldContext(ctx, fc)
6402 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6403 ctx = rctx
6404 return ec.resolvers.BandwidthSpec().Buffer(rctx, obj)
6405 })
6406 if err != nil {
6407 ec.Error(ctx, err)
6408 return graphql.Null
6409 }
6410 if resTmp == nil {
6411 if !graphql.HasFieldError(ctx, fc) {
6412 ec.Errorf(ctx, "must not be null")
6413 }
6414 return graphql.Null
6415 }
6416 res := resTmp.(int)
6417 fc.Result = res
6418 return ec.marshalNInt2int(ctx, field.Selections, res)
6419 }
6420
6421 func (ec *executionContext) _BandwidthSpec_peakrate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
6422 defer func() {
6423 if r := recover(); r != nil {
6424 ec.Error(ctx, ec.Recover(ctx, r))
6425 ret = graphql.Null
6426 }
6427 }()
6428 fc := &graphql.FieldContext{
6429 Object: "BandwidthSpec",
6430 Field: field,
6431 Args: nil,
6432 IsMethod: true,
6433 IsResolver: true,
6434 }
6435
6436 ctx = graphql.WithFieldContext(ctx, fc)
6437 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6438 ctx = rctx
6439 return ec.resolvers.BandwidthSpec().Peakrate(rctx, obj)
6440 })
6441 if err != nil {
6442 ec.Error(ctx, err)
6443 return graphql.Null
6444 }
6445 if resTmp == nil {
6446 return graphql.Null
6447 }
6448 res := resTmp.(*int)
6449 fc.Result = res
6450 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6451 }
6452
6453 func (ec *executionContext) _BandwidthSpec_minburst(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
6454 defer func() {
6455 if r := recover(); r != nil {
6456 ec.Error(ctx, ec.Recover(ctx, r))
6457 ret = graphql.Null
6458 }
6459 }()
6460 fc := &graphql.FieldContext{
6461 Object: "BandwidthSpec",
6462 Field: field,
6463 Args: nil,
6464 IsMethod: true,
6465 IsResolver: true,
6466 }
6467
6468 ctx = graphql.WithFieldContext(ctx, fc)
6469 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6470 ctx = rctx
6471 return ec.resolvers.BandwidthSpec().Minburst(rctx, obj)
6472 })
6473 if err != nil {
6474 ec.Error(ctx, err)
6475 return graphql.Null
6476 }
6477 if resTmp == nil {
6478 return graphql.Null
6479 }
6480 res := resTmp.(*int)
6481 fc.Result = res
6482 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6483 }
6484
6485 func (ec *executionContext) _CPUStressor_workers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CPUStressor) (ret graphql.Marshaler) {
6486 defer func() {
6487 if r := recover(); r != nil {
6488 ec.Error(ctx, ec.Recover(ctx, r))
6489 ret = graphql.Null
6490 }
6491 }()
6492 fc := &graphql.FieldContext{
6493 Object: "CPUStressor",
6494 Field: field,
6495 Args: nil,
6496 IsMethod: false,
6497 IsResolver: false,
6498 }
6499
6500 ctx = graphql.WithFieldContext(ctx, fc)
6501 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6502 ctx = rctx
6503 return obj.Workers, nil
6504 })
6505 if err != nil {
6506 ec.Error(ctx, err)
6507 return graphql.Null
6508 }
6509 if resTmp == nil {
6510 if !graphql.HasFieldError(ctx, fc) {
6511 ec.Errorf(ctx, "must not be null")
6512 }
6513 return graphql.Null
6514 }
6515 res := resTmp.(int)
6516 fc.Result = res
6517 return ec.marshalNInt2int(ctx, field.Selections, res)
6518 }
6519
6520 func (ec *executionContext) _CPUStressor_load(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CPUStressor) (ret graphql.Marshaler) {
6521 defer func() {
6522 if r := recover(); r != nil {
6523 ec.Error(ctx, ec.Recover(ctx, r))
6524 ret = graphql.Null
6525 }
6526 }()
6527 fc := &graphql.FieldContext{
6528 Object: "CPUStressor",
6529 Field: field,
6530 Args: nil,
6531 IsMethod: false,
6532 IsResolver: false,
6533 }
6534
6535 ctx = graphql.WithFieldContext(ctx, fc)
6536 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6537 ctx = rctx
6538 return obj.Load, nil
6539 })
6540 if err != nil {
6541 ec.Error(ctx, err)
6542 return graphql.Null
6543 }
6544 if resTmp == nil {
6545 return graphql.Null
6546 }
6547 res := resTmp.(*int)
6548 fc.Result = res
6549 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
6550 }
6551
6552 func (ec *executionContext) _CPUStressor_options(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CPUStressor) (ret graphql.Marshaler) {
6553 defer func() {
6554 if r := recover(); r != nil {
6555 ec.Error(ctx, ec.Recover(ctx, r))
6556 ret = graphql.Null
6557 }
6558 }()
6559 fc := &graphql.FieldContext{
6560 Object: "CPUStressor",
6561 Field: field,
6562 Args: nil,
6563 IsMethod: false,
6564 IsResolver: false,
6565 }
6566
6567 ctx = graphql.WithFieldContext(ctx, fc)
6568 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6569 ctx = rctx
6570 return obj.Options, nil
6571 })
6572 if err != nil {
6573 ec.Error(ctx, err)
6574 return graphql.Null
6575 }
6576 if resTmp == nil {
6577 return graphql.Null
6578 }
6579 res := resTmp.([]string)
6580 fc.Result = res
6581 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
6582 }
6583
6584 func (ec *executionContext) _Cgroups_raw(ctx context.Context, field graphql.CollectedField, obj *model.Cgroups) (ret graphql.Marshaler) {
6585 defer func() {
6586 if r := recover(); r != nil {
6587 ec.Error(ctx, ec.Recover(ctx, r))
6588 ret = graphql.Null
6589 }
6590 }()
6591 fc := &graphql.FieldContext{
6592 Object: "Cgroups",
6593 Field: field,
6594 Args: nil,
6595 IsMethod: false,
6596 IsResolver: false,
6597 }
6598
6599 ctx = graphql.WithFieldContext(ctx, fc)
6600 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6601 ctx = rctx
6602 return obj.Raw, nil
6603 })
6604 if err != nil {
6605 ec.Error(ctx, err)
6606 return graphql.Null
6607 }
6608 if resTmp == nil {
6609 if !graphql.HasFieldError(ctx, fc) {
6610 ec.Errorf(ctx, "must not be null")
6611 }
6612 return graphql.Null
6613 }
6614 res := resTmp.(string)
6615 fc.Result = res
6616 return ec.marshalNString2string(ctx, field.Selections, res)
6617 }
6618
6619 func (ec *executionContext) _Cgroups_cpu(ctx context.Context, field graphql.CollectedField, obj *model.Cgroups) (ret graphql.Marshaler) {
6620 defer func() {
6621 if r := recover(); r != nil {
6622 ec.Error(ctx, ec.Recover(ctx, r))
6623 ret = graphql.Null
6624 }
6625 }()
6626 fc := &graphql.FieldContext{
6627 Object: "Cgroups",
6628 Field: field,
6629 Args: nil,
6630 IsMethod: false,
6631 IsResolver: false,
6632 }
6633
6634 ctx = graphql.WithFieldContext(ctx, fc)
6635 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6636 ctx = rctx
6637 return obj.CPU, nil
6638 })
6639 if err != nil {
6640 ec.Error(ctx, err)
6641 return graphql.Null
6642 }
6643 if resTmp == nil {
6644 return graphql.Null
6645 }
6646 res := resTmp.(*model.CgroupsCPU)
6647 fc.Result = res
6648 return ec.marshalOCgroupsCpu2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroupsCPU(ctx, field.Selections, res)
6649 }
6650
6651 func (ec *executionContext) _Cgroups_memory(ctx context.Context, field graphql.CollectedField, obj *model.Cgroups) (ret graphql.Marshaler) {
6652 defer func() {
6653 if r := recover(); r != nil {
6654 ec.Error(ctx, ec.Recover(ctx, r))
6655 ret = graphql.Null
6656 }
6657 }()
6658 fc := &graphql.FieldContext{
6659 Object: "Cgroups",
6660 Field: field,
6661 Args: nil,
6662 IsMethod: false,
6663 IsResolver: false,
6664 }
6665
6666 ctx = graphql.WithFieldContext(ctx, fc)
6667 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6668 ctx = rctx
6669 return obj.Memory, nil
6670 })
6671 if err != nil {
6672 ec.Error(ctx, err)
6673 return graphql.Null
6674 }
6675 if resTmp == nil {
6676 return graphql.Null
6677 }
6678 res := resTmp.(*model.CgroupsMemory)
6679 fc.Result = res
6680 return ec.marshalOCgroupsMemory2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroupsMemory(ctx, field.Selections, res)
6681 }
6682
6683 func (ec *executionContext) _CgroupsCpu_quota(ctx context.Context, field graphql.CollectedField, obj *model.CgroupsCPU) (ret graphql.Marshaler) {
6684 defer func() {
6685 if r := recover(); r != nil {
6686 ec.Error(ctx, ec.Recover(ctx, r))
6687 ret = graphql.Null
6688 }
6689 }()
6690 fc := &graphql.FieldContext{
6691 Object: "CgroupsCpu",
6692 Field: field,
6693 Args: nil,
6694 IsMethod: false,
6695 IsResolver: false,
6696 }
6697
6698 ctx = graphql.WithFieldContext(ctx, fc)
6699 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6700 ctx = rctx
6701 return obj.Quota, nil
6702 })
6703 if err != nil {
6704 ec.Error(ctx, err)
6705 return graphql.Null
6706 }
6707 if resTmp == nil {
6708 if !graphql.HasFieldError(ctx, fc) {
6709 ec.Errorf(ctx, "must not be null")
6710 }
6711 return graphql.Null
6712 }
6713 res := resTmp.(int)
6714 fc.Result = res
6715 return ec.marshalNInt2int(ctx, field.Selections, res)
6716 }
6717
6718 func (ec *executionContext) _CgroupsCpu_period(ctx context.Context, field graphql.CollectedField, obj *model.CgroupsCPU) (ret graphql.Marshaler) {
6719 defer func() {
6720 if r := recover(); r != nil {
6721 ec.Error(ctx, ec.Recover(ctx, r))
6722 ret = graphql.Null
6723 }
6724 }()
6725 fc := &graphql.FieldContext{
6726 Object: "CgroupsCpu",
6727 Field: field,
6728 Args: nil,
6729 IsMethod: false,
6730 IsResolver: false,
6731 }
6732
6733 ctx = graphql.WithFieldContext(ctx, fc)
6734 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6735 ctx = rctx
6736 return obj.Period, nil
6737 })
6738 if err != nil {
6739 ec.Error(ctx, err)
6740 return graphql.Null
6741 }
6742 if resTmp == nil {
6743 if !graphql.HasFieldError(ctx, fc) {
6744 ec.Errorf(ctx, "must not be null")
6745 }
6746 return graphql.Null
6747 }
6748 res := resTmp.(int)
6749 fc.Result = res
6750 return ec.marshalNInt2int(ctx, field.Selections, res)
6751 }
6752
6753 func (ec *executionContext) _CgroupsMemory_limit(ctx context.Context, field graphql.CollectedField, obj *model.CgroupsMemory) (ret graphql.Marshaler) {
6754 defer func() {
6755 if r := recover(); r != nil {
6756 ec.Error(ctx, ec.Recover(ctx, r))
6757 ret = graphql.Null
6758 }
6759 }()
6760 fc := &graphql.FieldContext{
6761 Object: "CgroupsMemory",
6762 Field: field,
6763 Args: nil,
6764 IsMethod: false,
6765 IsResolver: false,
6766 }
6767
6768 ctx = graphql.WithFieldContext(ctx, fc)
6769 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6770 ctx = rctx
6771 return obj.Limit, nil
6772 })
6773 if err != nil {
6774 ec.Error(ctx, err)
6775 return graphql.Null
6776 }
6777 if resTmp == nil {
6778 if !graphql.HasFieldError(ctx, fc) {
6779 ec.Errorf(ctx, "must not be null")
6780 }
6781 return graphql.Null
6782 }
6783 res := resTmp.(int64)
6784 fc.Result = res
6785 return ec.marshalNInt642int64(ctx, field.Selections, res)
6786 }
6787
6788 func (ec *executionContext) _ChaosCondition_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ChaosCondition) (ret graphql.Marshaler) {
6789 defer func() {
6790 if r := recover(); r != nil {
6791 ec.Error(ctx, ec.Recover(ctx, r))
6792 ret = graphql.Null
6793 }
6794 }()
6795 fc := &graphql.FieldContext{
6796 Object: "ChaosCondition",
6797 Field: field,
6798 Args: nil,
6799 IsMethod: true,
6800 IsResolver: true,
6801 }
6802
6803 ctx = graphql.WithFieldContext(ctx, fc)
6804 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6805 ctx = rctx
6806 return ec.resolvers.ChaosCondition().Type(rctx, obj)
6807 })
6808 if err != nil {
6809 ec.Error(ctx, err)
6810 return graphql.Null
6811 }
6812 if resTmp == nil {
6813 if !graphql.HasFieldError(ctx, fc) {
6814 ec.Errorf(ctx, "must not be null")
6815 }
6816 return graphql.Null
6817 }
6818 res := resTmp.(string)
6819 fc.Result = res
6820 return ec.marshalNString2string(ctx, field.Selections, res)
6821 }
6822
6823 func (ec *executionContext) _ChaosCondition_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ChaosCondition) (ret graphql.Marshaler) {
6824 defer func() {
6825 if r := recover(); r != nil {
6826 ec.Error(ctx, ec.Recover(ctx, r))
6827 ret = graphql.Null
6828 }
6829 }()
6830 fc := &graphql.FieldContext{
6831 Object: "ChaosCondition",
6832 Field: field,
6833 Args: nil,
6834 IsMethod: true,
6835 IsResolver: true,
6836 }
6837
6838 ctx = graphql.WithFieldContext(ctx, fc)
6839 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6840 ctx = rctx
6841 return ec.resolvers.ChaosCondition().Status(rctx, obj)
6842 })
6843 if err != nil {
6844 ec.Error(ctx, err)
6845 return graphql.Null
6846 }
6847 if resTmp == nil {
6848 if !graphql.HasFieldError(ctx, fc) {
6849 ec.Errorf(ctx, "must not be null")
6850 }
6851 return graphql.Null
6852 }
6853 res := resTmp.(string)
6854 fc.Result = res
6855 return ec.marshalNString2string(ctx, field.Selections, res)
6856 }
6857
6858 func (ec *executionContext) _ChaosCondition_reason(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ChaosCondition) (ret graphql.Marshaler) {
6859 defer func() {
6860 if r := recover(); r != nil {
6861 ec.Error(ctx, ec.Recover(ctx, r))
6862 ret = graphql.Null
6863 }
6864 }()
6865 fc := &graphql.FieldContext{
6866 Object: "ChaosCondition",
6867 Field: field,
6868 Args: nil,
6869 IsMethod: false,
6870 IsResolver: false,
6871 }
6872
6873 ctx = graphql.WithFieldContext(ctx, fc)
6874 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6875 ctx = rctx
6876 return obj.Reason, nil
6877 })
6878 if err != nil {
6879 ec.Error(ctx, err)
6880 return graphql.Null
6881 }
6882 if resTmp == nil {
6883 return graphql.Null
6884 }
6885 res := resTmp.(string)
6886 fc.Result = res
6887 return ec.marshalOString2string(ctx, field.Selections, res)
6888 }
6889
6890 func (ec *executionContext) _CidrAndPort_cidr(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CidrAndPort) (ret graphql.Marshaler) {
6891 defer func() {
6892 if r := recover(); r != nil {
6893 ec.Error(ctx, ec.Recover(ctx, r))
6894 ret = graphql.Null
6895 }
6896 }()
6897 fc := &graphql.FieldContext{
6898 Object: "CidrAndPort",
6899 Field: field,
6900 Args: nil,
6901 IsMethod: false,
6902 IsResolver: false,
6903 }
6904
6905 ctx = graphql.WithFieldContext(ctx, fc)
6906 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6907 ctx = rctx
6908 return obj.Cidr, nil
6909 })
6910 if err != nil {
6911 ec.Error(ctx, err)
6912 return graphql.Null
6913 }
6914 if resTmp == nil {
6915 if !graphql.HasFieldError(ctx, fc) {
6916 ec.Errorf(ctx, "must not be null")
6917 }
6918 return graphql.Null
6919 }
6920 res := resTmp.(string)
6921 fc.Result = res
6922 return ec.marshalNString2string(ctx, field.Selections, res)
6923 }
6924
6925 func (ec *executionContext) _CidrAndPort_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CidrAndPort) (ret graphql.Marshaler) {
6926 defer func() {
6927 if r := recover(); r != nil {
6928 ec.Error(ctx, ec.Recover(ctx, r))
6929 ret = graphql.Null
6930 }
6931 }()
6932 fc := &graphql.FieldContext{
6933 Object: "CidrAndPort",
6934 Field: field,
6935 Args: nil,
6936 IsMethod: true,
6937 IsResolver: true,
6938 }
6939
6940 ctx = graphql.WithFieldContext(ctx, fc)
6941 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6942 ctx = rctx
6943 return ec.resolvers.CidrAndPort().Port(rctx, obj)
6944 })
6945 if err != nil {
6946 ec.Error(ctx, err)
6947 return graphql.Null
6948 }
6949 if resTmp == nil {
6950 if !graphql.HasFieldError(ctx, fc) {
6951 ec.Errorf(ctx, "must not be null")
6952 }
6953 return graphql.Null
6954 }
6955 res := resTmp.(int)
6956 fc.Result = res
6957 return ec.marshalNInt2int(ctx, field.Selections, res)
6958 }
6959
6960 func (ec *executionContext) _ContainerState_waiting(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerState) (ret graphql.Marshaler) {
6961 defer func() {
6962 if r := recover(); r != nil {
6963 ec.Error(ctx, ec.Recover(ctx, r))
6964 ret = graphql.Null
6965 }
6966 }()
6967 fc := &graphql.FieldContext{
6968 Object: "ContainerState",
6969 Field: field,
6970 Args: nil,
6971 IsMethod: false,
6972 IsResolver: false,
6973 }
6974
6975 ctx = graphql.WithFieldContext(ctx, fc)
6976 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6977 ctx = rctx
6978 return obj.Waiting, nil
6979 })
6980 if err != nil {
6981 ec.Error(ctx, err)
6982 return graphql.Null
6983 }
6984 if resTmp == nil {
6985 return graphql.Null
6986 }
6987 res := resTmp.(*v1.ContainerStateWaiting)
6988 fc.Result = res
6989 return ec.marshalOContainerStateWaiting2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateWaiting(ctx, field.Selections, res)
6990 }
6991
6992 func (ec *executionContext) _ContainerState_running(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerState) (ret graphql.Marshaler) {
6993 defer func() {
6994 if r := recover(); r != nil {
6995 ec.Error(ctx, ec.Recover(ctx, r))
6996 ret = graphql.Null
6997 }
6998 }()
6999 fc := &graphql.FieldContext{
7000 Object: "ContainerState",
7001 Field: field,
7002 Args: nil,
7003 IsMethod: false,
7004 IsResolver: false,
7005 }
7006
7007 ctx = graphql.WithFieldContext(ctx, fc)
7008 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7009 ctx = rctx
7010 return obj.Running, nil
7011 })
7012 if err != nil {
7013 ec.Error(ctx, err)
7014 return graphql.Null
7015 }
7016 if resTmp == nil {
7017 return graphql.Null
7018 }
7019 res := resTmp.(*v1.ContainerStateRunning)
7020 fc.Result = res
7021 return ec.marshalOContainerStateRunning2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateRunning(ctx, field.Selections, res)
7022 }
7023
7024 func (ec *executionContext) _ContainerState_terminated(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerState) (ret graphql.Marshaler) {
7025 defer func() {
7026 if r := recover(); r != nil {
7027 ec.Error(ctx, ec.Recover(ctx, r))
7028 ret = graphql.Null
7029 }
7030 }()
7031 fc := &graphql.FieldContext{
7032 Object: "ContainerState",
7033 Field: field,
7034 Args: nil,
7035 IsMethod: false,
7036 IsResolver: false,
7037 }
7038
7039 ctx = graphql.WithFieldContext(ctx, fc)
7040 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7041 ctx = rctx
7042 return obj.Terminated, nil
7043 })
7044 if err != nil {
7045 ec.Error(ctx, err)
7046 return graphql.Null
7047 }
7048 if resTmp == nil {
7049 return graphql.Null
7050 }
7051 res := resTmp.(*v1.ContainerStateTerminated)
7052 fc.Result = res
7053 return ec.marshalOContainerStateTerminated2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateTerminated(ctx, field.Selections, res)
7054 }
7055
7056 func (ec *executionContext) _ContainerStateRunning_startedAt(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateRunning) (ret graphql.Marshaler) {
7057 defer func() {
7058 if r := recover(); r != nil {
7059 ec.Error(ctx, ec.Recover(ctx, r))
7060 ret = graphql.Null
7061 }
7062 }()
7063 fc := &graphql.FieldContext{
7064 Object: "ContainerStateRunning",
7065 Field: field,
7066 Args: nil,
7067 IsMethod: true,
7068 IsResolver: true,
7069 }
7070
7071 ctx = graphql.WithFieldContext(ctx, fc)
7072 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7073 ctx = rctx
7074 return ec.resolvers.ContainerStateRunning().StartedAt(rctx, obj)
7075 })
7076 if err != nil {
7077 ec.Error(ctx, err)
7078 return graphql.Null
7079 }
7080 if resTmp == nil {
7081 return graphql.Null
7082 }
7083 res := resTmp.(*time.Time)
7084 fc.Result = res
7085 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
7086 }
7087
7088 func (ec *executionContext) _ContainerStateTerminated_exitCode(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7089 defer func() {
7090 if r := recover(); r != nil {
7091 ec.Error(ctx, ec.Recover(ctx, r))
7092 ret = graphql.Null
7093 }
7094 }()
7095 fc := &graphql.FieldContext{
7096 Object: "ContainerStateTerminated",
7097 Field: field,
7098 Args: nil,
7099 IsMethod: false,
7100 IsResolver: false,
7101 }
7102
7103 ctx = graphql.WithFieldContext(ctx, fc)
7104 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7105 ctx = rctx
7106 return obj.ExitCode, nil
7107 })
7108 if err != nil {
7109 ec.Error(ctx, err)
7110 return graphql.Null
7111 }
7112 if resTmp == nil {
7113 if !graphql.HasFieldError(ctx, fc) {
7114 ec.Errorf(ctx, "must not be null")
7115 }
7116 return graphql.Null
7117 }
7118 res := resTmp.(int32)
7119 fc.Result = res
7120 return ec.marshalNInt2int32(ctx, field.Selections, res)
7121 }
7122
7123 func (ec *executionContext) _ContainerStateTerminated_signal(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7124 defer func() {
7125 if r := recover(); r != nil {
7126 ec.Error(ctx, ec.Recover(ctx, r))
7127 ret = graphql.Null
7128 }
7129 }()
7130 fc := &graphql.FieldContext{
7131 Object: "ContainerStateTerminated",
7132 Field: field,
7133 Args: nil,
7134 IsMethod: false,
7135 IsResolver: false,
7136 }
7137
7138 ctx = graphql.WithFieldContext(ctx, fc)
7139 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7140 ctx = rctx
7141 return obj.Signal, nil
7142 })
7143 if err != nil {
7144 ec.Error(ctx, err)
7145 return graphql.Null
7146 }
7147 if resTmp == nil {
7148 return graphql.Null
7149 }
7150 res := resTmp.(int32)
7151 fc.Result = res
7152 return ec.marshalOInt2int32(ctx, field.Selections, res)
7153 }
7154
7155 func (ec *executionContext) _ContainerStateTerminated_reason(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7156 defer func() {
7157 if r := recover(); r != nil {
7158 ec.Error(ctx, ec.Recover(ctx, r))
7159 ret = graphql.Null
7160 }
7161 }()
7162 fc := &graphql.FieldContext{
7163 Object: "ContainerStateTerminated",
7164 Field: field,
7165 Args: nil,
7166 IsMethod: false,
7167 IsResolver: false,
7168 }
7169
7170 ctx = graphql.WithFieldContext(ctx, fc)
7171 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7172 ctx = rctx
7173 return obj.Reason, nil
7174 })
7175 if err != nil {
7176 ec.Error(ctx, err)
7177 return graphql.Null
7178 }
7179 if resTmp == nil {
7180 return graphql.Null
7181 }
7182 res := resTmp.(string)
7183 fc.Result = res
7184 return ec.marshalOString2string(ctx, field.Selections, res)
7185 }
7186
7187 func (ec *executionContext) _ContainerStateTerminated_message(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7188 defer func() {
7189 if r := recover(); r != nil {
7190 ec.Error(ctx, ec.Recover(ctx, r))
7191 ret = graphql.Null
7192 }
7193 }()
7194 fc := &graphql.FieldContext{
7195 Object: "ContainerStateTerminated",
7196 Field: field,
7197 Args: nil,
7198 IsMethod: false,
7199 IsResolver: false,
7200 }
7201
7202 ctx = graphql.WithFieldContext(ctx, fc)
7203 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7204 ctx = rctx
7205 return obj.Message, nil
7206 })
7207 if err != nil {
7208 ec.Error(ctx, err)
7209 return graphql.Null
7210 }
7211 if resTmp == nil {
7212 return graphql.Null
7213 }
7214 res := resTmp.(string)
7215 fc.Result = res
7216 return ec.marshalOString2string(ctx, field.Selections, res)
7217 }
7218
7219 func (ec *executionContext) _ContainerStateTerminated_startedAt(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7220 defer func() {
7221 if r := recover(); r != nil {
7222 ec.Error(ctx, ec.Recover(ctx, r))
7223 ret = graphql.Null
7224 }
7225 }()
7226 fc := &graphql.FieldContext{
7227 Object: "ContainerStateTerminated",
7228 Field: field,
7229 Args: nil,
7230 IsMethod: true,
7231 IsResolver: true,
7232 }
7233
7234 ctx = graphql.WithFieldContext(ctx, fc)
7235 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7236 ctx = rctx
7237 return ec.resolvers.ContainerStateTerminated().StartedAt(rctx, obj)
7238 })
7239 if err != nil {
7240 ec.Error(ctx, err)
7241 return graphql.Null
7242 }
7243 if resTmp == nil {
7244 return graphql.Null
7245 }
7246 res := resTmp.(*time.Time)
7247 fc.Result = res
7248 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
7249 }
7250
7251 func (ec *executionContext) _ContainerStateTerminated_finishedAt(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7252 defer func() {
7253 if r := recover(); r != nil {
7254 ec.Error(ctx, ec.Recover(ctx, r))
7255 ret = graphql.Null
7256 }
7257 }()
7258 fc := &graphql.FieldContext{
7259 Object: "ContainerStateTerminated",
7260 Field: field,
7261 Args: nil,
7262 IsMethod: true,
7263 IsResolver: true,
7264 }
7265
7266 ctx = graphql.WithFieldContext(ctx, fc)
7267 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7268 ctx = rctx
7269 return ec.resolvers.ContainerStateTerminated().FinishedAt(rctx, obj)
7270 })
7271 if err != nil {
7272 ec.Error(ctx, err)
7273 return graphql.Null
7274 }
7275 if resTmp == nil {
7276 return graphql.Null
7277 }
7278 res := resTmp.(*time.Time)
7279 fc.Result = res
7280 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
7281 }
7282
7283 func (ec *executionContext) _ContainerStateTerminated_containerID(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
7284 defer func() {
7285 if r := recover(); r != nil {
7286 ec.Error(ctx, ec.Recover(ctx, r))
7287 ret = graphql.Null
7288 }
7289 }()
7290 fc := &graphql.FieldContext{
7291 Object: "ContainerStateTerminated",
7292 Field: field,
7293 Args: nil,
7294 IsMethod: false,
7295 IsResolver: false,
7296 }
7297
7298 ctx = graphql.WithFieldContext(ctx, fc)
7299 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7300 ctx = rctx
7301 return obj.ContainerID, nil
7302 })
7303 if err != nil {
7304 ec.Error(ctx, err)
7305 return graphql.Null
7306 }
7307 if resTmp == nil {
7308 return graphql.Null
7309 }
7310 res := resTmp.(string)
7311 fc.Result = res
7312 return ec.marshalOString2string(ctx, field.Selections, res)
7313 }
7314
7315 func (ec *executionContext) _ContainerStateWaiting_reason(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateWaiting) (ret graphql.Marshaler) {
7316 defer func() {
7317 if r := recover(); r != nil {
7318 ec.Error(ctx, ec.Recover(ctx, r))
7319 ret = graphql.Null
7320 }
7321 }()
7322 fc := &graphql.FieldContext{
7323 Object: "ContainerStateWaiting",
7324 Field: field,
7325 Args: nil,
7326 IsMethod: false,
7327 IsResolver: false,
7328 }
7329
7330 ctx = graphql.WithFieldContext(ctx, fc)
7331 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7332 ctx = rctx
7333 return obj.Reason, nil
7334 })
7335 if err != nil {
7336 ec.Error(ctx, err)
7337 return graphql.Null
7338 }
7339 if resTmp == nil {
7340 return graphql.Null
7341 }
7342 res := resTmp.(string)
7343 fc.Result = res
7344 return ec.marshalOString2string(ctx, field.Selections, res)
7345 }
7346
7347 func (ec *executionContext) _ContainerStateWaiting_message(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateWaiting) (ret graphql.Marshaler) {
7348 defer func() {
7349 if r := recover(); r != nil {
7350 ec.Error(ctx, ec.Recover(ctx, r))
7351 ret = graphql.Null
7352 }
7353 }()
7354 fc := &graphql.FieldContext{
7355 Object: "ContainerStateWaiting",
7356 Field: field,
7357 Args: nil,
7358 IsMethod: false,
7359 IsResolver: false,
7360 }
7361
7362 ctx = graphql.WithFieldContext(ctx, fc)
7363 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7364 ctx = rctx
7365 return obj.Message, nil
7366 })
7367 if err != nil {
7368 ec.Error(ctx, err)
7369 return graphql.Null
7370 }
7371 if resTmp == nil {
7372 return graphql.Null
7373 }
7374 res := resTmp.(string)
7375 fc.Result = res
7376 return ec.marshalOString2string(ctx, field.Selections, res)
7377 }
7378
7379 func (ec *executionContext) _ContainerStatus_name(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7380 defer func() {
7381 if r := recover(); r != nil {
7382 ec.Error(ctx, ec.Recover(ctx, r))
7383 ret = graphql.Null
7384 }
7385 }()
7386 fc := &graphql.FieldContext{
7387 Object: "ContainerStatus",
7388 Field: field,
7389 Args: nil,
7390 IsMethod: false,
7391 IsResolver: false,
7392 }
7393
7394 ctx = graphql.WithFieldContext(ctx, fc)
7395 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7396 ctx = rctx
7397 return obj.Name, nil
7398 })
7399 if err != nil {
7400 ec.Error(ctx, err)
7401 return graphql.Null
7402 }
7403 if resTmp == nil {
7404 if !graphql.HasFieldError(ctx, fc) {
7405 ec.Errorf(ctx, "must not be null")
7406 }
7407 return graphql.Null
7408 }
7409 res := resTmp.(string)
7410 fc.Result = res
7411 return ec.marshalNString2string(ctx, field.Selections, res)
7412 }
7413
7414 func (ec *executionContext) _ContainerStatus_State(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7415 defer func() {
7416 if r := recover(); r != nil {
7417 ec.Error(ctx, ec.Recover(ctx, r))
7418 ret = graphql.Null
7419 }
7420 }()
7421 fc := &graphql.FieldContext{
7422 Object: "ContainerStatus",
7423 Field: field,
7424 Args: nil,
7425 IsMethod: false,
7426 IsResolver: false,
7427 }
7428
7429 ctx = graphql.WithFieldContext(ctx, fc)
7430 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7431 ctx = rctx
7432 return obj.State, nil
7433 })
7434 if err != nil {
7435 ec.Error(ctx, err)
7436 return graphql.Null
7437 }
7438 if resTmp == nil {
7439 return graphql.Null
7440 }
7441 res := resTmp.(v1.ContainerState)
7442 fc.Result = res
7443 return ec.marshalOContainerState2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerState(ctx, field.Selections, res)
7444 }
7445
7446 func (ec *executionContext) _ContainerStatus_lastTerminationState(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7447 defer func() {
7448 if r := recover(); r != nil {
7449 ec.Error(ctx, ec.Recover(ctx, r))
7450 ret = graphql.Null
7451 }
7452 }()
7453 fc := &graphql.FieldContext{
7454 Object: "ContainerStatus",
7455 Field: field,
7456 Args: nil,
7457 IsMethod: false,
7458 IsResolver: false,
7459 }
7460
7461 ctx = graphql.WithFieldContext(ctx, fc)
7462 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7463 ctx = rctx
7464 return obj.LastTerminationState, nil
7465 })
7466 if err != nil {
7467 ec.Error(ctx, err)
7468 return graphql.Null
7469 }
7470 if resTmp == nil {
7471 return graphql.Null
7472 }
7473 res := resTmp.(v1.ContainerState)
7474 fc.Result = res
7475 return ec.marshalOContainerState2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerState(ctx, field.Selections, res)
7476 }
7477
7478 func (ec *executionContext) _ContainerStatus_ready(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7479 defer func() {
7480 if r := recover(); r != nil {
7481 ec.Error(ctx, ec.Recover(ctx, r))
7482 ret = graphql.Null
7483 }
7484 }()
7485 fc := &graphql.FieldContext{
7486 Object: "ContainerStatus",
7487 Field: field,
7488 Args: nil,
7489 IsMethod: false,
7490 IsResolver: false,
7491 }
7492
7493 ctx = graphql.WithFieldContext(ctx, fc)
7494 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7495 ctx = rctx
7496 return obj.Ready, nil
7497 })
7498 if err != nil {
7499 ec.Error(ctx, err)
7500 return graphql.Null
7501 }
7502 if resTmp == nil {
7503 if !graphql.HasFieldError(ctx, fc) {
7504 ec.Errorf(ctx, "must not be null")
7505 }
7506 return graphql.Null
7507 }
7508 res := resTmp.(bool)
7509 fc.Result = res
7510 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
7511 }
7512
7513 func (ec *executionContext) _ContainerStatus_restartCount(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7514 defer func() {
7515 if r := recover(); r != nil {
7516 ec.Error(ctx, ec.Recover(ctx, r))
7517 ret = graphql.Null
7518 }
7519 }()
7520 fc := &graphql.FieldContext{
7521 Object: "ContainerStatus",
7522 Field: field,
7523 Args: nil,
7524 IsMethod: false,
7525 IsResolver: false,
7526 }
7527
7528 ctx = graphql.WithFieldContext(ctx, fc)
7529 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7530 ctx = rctx
7531 return obj.RestartCount, nil
7532 })
7533 if err != nil {
7534 ec.Error(ctx, err)
7535 return graphql.Null
7536 }
7537 if resTmp == nil {
7538 if !graphql.HasFieldError(ctx, fc) {
7539 ec.Errorf(ctx, "must not be null")
7540 }
7541 return graphql.Null
7542 }
7543 res := resTmp.(int32)
7544 fc.Result = res
7545 return ec.marshalNInt2int32(ctx, field.Selections, res)
7546 }
7547
7548 func (ec *executionContext) _ContainerStatus_image(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7549 defer func() {
7550 if r := recover(); r != nil {
7551 ec.Error(ctx, ec.Recover(ctx, r))
7552 ret = graphql.Null
7553 }
7554 }()
7555 fc := &graphql.FieldContext{
7556 Object: "ContainerStatus",
7557 Field: field,
7558 Args: nil,
7559 IsMethod: false,
7560 IsResolver: false,
7561 }
7562
7563 ctx = graphql.WithFieldContext(ctx, fc)
7564 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7565 ctx = rctx
7566 return obj.Image, nil
7567 })
7568 if err != nil {
7569 ec.Error(ctx, err)
7570 return graphql.Null
7571 }
7572 if resTmp == nil {
7573 if !graphql.HasFieldError(ctx, fc) {
7574 ec.Errorf(ctx, "must not be null")
7575 }
7576 return graphql.Null
7577 }
7578 res := resTmp.(string)
7579 fc.Result = res
7580 return ec.marshalNString2string(ctx, field.Selections, res)
7581 }
7582
7583 func (ec *executionContext) _ContainerStatus_imageID(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7584 defer func() {
7585 if r := recover(); r != nil {
7586 ec.Error(ctx, ec.Recover(ctx, r))
7587 ret = graphql.Null
7588 }
7589 }()
7590 fc := &graphql.FieldContext{
7591 Object: "ContainerStatus",
7592 Field: field,
7593 Args: nil,
7594 IsMethod: false,
7595 IsResolver: false,
7596 }
7597
7598 ctx = graphql.WithFieldContext(ctx, fc)
7599 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7600 ctx = rctx
7601 return obj.ImageID, nil
7602 })
7603 if err != nil {
7604 ec.Error(ctx, err)
7605 return graphql.Null
7606 }
7607 if resTmp == nil {
7608 if !graphql.HasFieldError(ctx, fc) {
7609 ec.Errorf(ctx, "must not be null")
7610 }
7611 return graphql.Null
7612 }
7613 res := resTmp.(string)
7614 fc.Result = res
7615 return ec.marshalNString2string(ctx, field.Selections, res)
7616 }
7617
7618 func (ec *executionContext) _ContainerStatus_containerID(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7619 defer func() {
7620 if r := recover(); r != nil {
7621 ec.Error(ctx, ec.Recover(ctx, r))
7622 ret = graphql.Null
7623 }
7624 }()
7625 fc := &graphql.FieldContext{
7626 Object: "ContainerStatus",
7627 Field: field,
7628 Args: nil,
7629 IsMethod: false,
7630 IsResolver: false,
7631 }
7632
7633 ctx = graphql.WithFieldContext(ctx, fc)
7634 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7635 ctx = rctx
7636 return obj.ContainerID, nil
7637 })
7638 if err != nil {
7639 ec.Error(ctx, err)
7640 return graphql.Null
7641 }
7642 if resTmp == nil {
7643 if !graphql.HasFieldError(ctx, fc) {
7644 ec.Errorf(ctx, "must not be null")
7645 }
7646 return graphql.Null
7647 }
7648 res := resTmp.(string)
7649 fc.Result = res
7650 return ec.marshalNString2string(ctx, field.Selections, res)
7651 }
7652
7653 func (ec *executionContext) _ContainerStatus_started(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
7654 defer func() {
7655 if r := recover(); r != nil {
7656 ec.Error(ctx, ec.Recover(ctx, r))
7657 ret = graphql.Null
7658 }
7659 }()
7660 fc := &graphql.FieldContext{
7661 Object: "ContainerStatus",
7662 Field: field,
7663 Args: nil,
7664 IsMethod: false,
7665 IsResolver: false,
7666 }
7667
7668 ctx = graphql.WithFieldContext(ctx, fc)
7669 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7670 ctx = rctx
7671 return obj.Started, nil
7672 })
7673 if err != nil {
7674 ec.Error(ctx, err)
7675 return graphql.Null
7676 }
7677 if resTmp == nil {
7678 return graphql.Null
7679 }
7680 res := resTmp.(*bool)
7681 fc.Result = res
7682 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
7683 }
7684
7685 func (ec *executionContext) _CorruptSpec_corrupt(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CorruptSpec) (ret graphql.Marshaler) {
7686 defer func() {
7687 if r := recover(); r != nil {
7688 ec.Error(ctx, ec.Recover(ctx, r))
7689 ret = graphql.Null
7690 }
7691 }()
7692 fc := &graphql.FieldContext{
7693 Object: "CorruptSpec",
7694 Field: field,
7695 Args: nil,
7696 IsMethod: false,
7697 IsResolver: false,
7698 }
7699
7700 ctx = graphql.WithFieldContext(ctx, fc)
7701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7702 ctx = rctx
7703 return obj.Corrupt, nil
7704 })
7705 if err != nil {
7706 ec.Error(ctx, err)
7707 return graphql.Null
7708 }
7709 if resTmp == nil {
7710 if !graphql.HasFieldError(ctx, fc) {
7711 ec.Errorf(ctx, "must not be null")
7712 }
7713 return graphql.Null
7714 }
7715 res := resTmp.(string)
7716 fc.Result = res
7717 return ec.marshalNString2string(ctx, field.Selections, res)
7718 }
7719
7720 func (ec *executionContext) _CorruptSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CorruptSpec) (ret graphql.Marshaler) {
7721 defer func() {
7722 if r := recover(); r != nil {
7723 ec.Error(ctx, ec.Recover(ctx, r))
7724 ret = graphql.Null
7725 }
7726 }()
7727 fc := &graphql.FieldContext{
7728 Object: "CorruptSpec",
7729 Field: field,
7730 Args: nil,
7731 IsMethod: false,
7732 IsResolver: false,
7733 }
7734
7735 ctx = graphql.WithFieldContext(ctx, fc)
7736 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7737 ctx = rctx
7738 return obj.Correlation, nil
7739 })
7740 if err != nil {
7741 ec.Error(ctx, err)
7742 return graphql.Null
7743 }
7744 if resTmp == nil {
7745 return graphql.Null
7746 }
7747 res := resTmp.(string)
7748 fc.Result = res
7749 return ec.marshalOString2string(ctx, field.Selections, res)
7750 }
7751
7752 func (ec *executionContext) _DelaySpec_latency(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
7753 defer func() {
7754 if r := recover(); r != nil {
7755 ec.Error(ctx, ec.Recover(ctx, r))
7756 ret = graphql.Null
7757 }
7758 }()
7759 fc := &graphql.FieldContext{
7760 Object: "DelaySpec",
7761 Field: field,
7762 Args: nil,
7763 IsMethod: false,
7764 IsResolver: false,
7765 }
7766
7767 ctx = graphql.WithFieldContext(ctx, fc)
7768 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7769 ctx = rctx
7770 return obj.Latency, nil
7771 })
7772 if err != nil {
7773 ec.Error(ctx, err)
7774 return graphql.Null
7775 }
7776 if resTmp == nil {
7777 if !graphql.HasFieldError(ctx, fc) {
7778 ec.Errorf(ctx, "must not be null")
7779 }
7780 return graphql.Null
7781 }
7782 res := resTmp.(string)
7783 fc.Result = res
7784 return ec.marshalNString2string(ctx, field.Selections, res)
7785 }
7786
7787 func (ec *executionContext) _DelaySpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
7788 defer func() {
7789 if r := recover(); r != nil {
7790 ec.Error(ctx, ec.Recover(ctx, r))
7791 ret = graphql.Null
7792 }
7793 }()
7794 fc := &graphql.FieldContext{
7795 Object: "DelaySpec",
7796 Field: field,
7797 Args: nil,
7798 IsMethod: false,
7799 IsResolver: false,
7800 }
7801
7802 ctx = graphql.WithFieldContext(ctx, fc)
7803 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7804 ctx = rctx
7805 return obj.Correlation, nil
7806 })
7807 if err != nil {
7808 ec.Error(ctx, err)
7809 return graphql.Null
7810 }
7811 if resTmp == nil {
7812 return graphql.Null
7813 }
7814 res := resTmp.(string)
7815 fc.Result = res
7816 return ec.marshalOString2string(ctx, field.Selections, res)
7817 }
7818
7819 func (ec *executionContext) _DelaySpec_jitter(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
7820 defer func() {
7821 if r := recover(); r != nil {
7822 ec.Error(ctx, ec.Recover(ctx, r))
7823 ret = graphql.Null
7824 }
7825 }()
7826 fc := &graphql.FieldContext{
7827 Object: "DelaySpec",
7828 Field: field,
7829 Args: nil,
7830 IsMethod: false,
7831 IsResolver: false,
7832 }
7833
7834 ctx = graphql.WithFieldContext(ctx, fc)
7835 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7836 ctx = rctx
7837 return obj.Jitter, nil
7838 })
7839 if err != nil {
7840 ec.Error(ctx, err)
7841 return graphql.Null
7842 }
7843 if resTmp == nil {
7844 return graphql.Null
7845 }
7846 res := resTmp.(string)
7847 fc.Result = res
7848 return ec.marshalOString2string(ctx, field.Selections, res)
7849 }
7850
7851 func (ec *executionContext) _DelaySpec_reorder(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
7852 defer func() {
7853 if r := recover(); r != nil {
7854 ec.Error(ctx, ec.Recover(ctx, r))
7855 ret = graphql.Null
7856 }
7857 }()
7858 fc := &graphql.FieldContext{
7859 Object: "DelaySpec",
7860 Field: field,
7861 Args: nil,
7862 IsMethod: false,
7863 IsResolver: false,
7864 }
7865
7866 ctx = graphql.WithFieldContext(ctx, fc)
7867 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7868 ctx = rctx
7869 return obj.Reorder, nil
7870 })
7871 if err != nil {
7872 ec.Error(ctx, err)
7873 return graphql.Null
7874 }
7875 if resTmp == nil {
7876 return graphql.Null
7877 }
7878 res := resTmp.(*v1alpha1.ReorderSpec)
7879 fc.Result = res
7880 return ec.marshalOReorderSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐReorderSpec(ctx, field.Selections, res)
7881 }
7882
7883 func (ec *executionContext) _DuplicateSpec_duplicate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DuplicateSpec) (ret graphql.Marshaler) {
7884 defer func() {
7885 if r := recover(); r != nil {
7886 ec.Error(ctx, ec.Recover(ctx, r))
7887 ret = graphql.Null
7888 }
7889 }()
7890 fc := &graphql.FieldContext{
7891 Object: "DuplicateSpec",
7892 Field: field,
7893 Args: nil,
7894 IsMethod: false,
7895 IsResolver: false,
7896 }
7897
7898 ctx = graphql.WithFieldContext(ctx, fc)
7899 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7900 ctx = rctx
7901 return obj.Duplicate, nil
7902 })
7903 if err != nil {
7904 ec.Error(ctx, err)
7905 return graphql.Null
7906 }
7907 if resTmp == nil {
7908 if !graphql.HasFieldError(ctx, fc) {
7909 ec.Errorf(ctx, "must not be null")
7910 }
7911 return graphql.Null
7912 }
7913 res := resTmp.(string)
7914 fc.Result = res
7915 return ec.marshalNString2string(ctx, field.Selections, res)
7916 }
7917
7918 func (ec *executionContext) _DuplicateSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DuplicateSpec) (ret graphql.Marshaler) {
7919 defer func() {
7920 if r := recover(); r != nil {
7921 ec.Error(ctx, ec.Recover(ctx, r))
7922 ret = graphql.Null
7923 }
7924 }()
7925 fc := &graphql.FieldContext{
7926 Object: "DuplicateSpec",
7927 Field: field,
7928 Args: nil,
7929 IsMethod: false,
7930 IsResolver: false,
7931 }
7932
7933 ctx = graphql.WithFieldContext(ctx, fc)
7934 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7935 ctx = rctx
7936 return obj.Correlation, nil
7937 })
7938 if err != nil {
7939 ec.Error(ctx, err)
7940 return graphql.Null
7941 }
7942 if resTmp == nil {
7943 return graphql.Null
7944 }
7945 res := resTmp.(string)
7946 fc.Result = res
7947 return ec.marshalOString2string(ctx, field.Selections, res)
7948 }
7949
7950 func (ec *executionContext) _ExperimentStatus_desiredPhase(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ExperimentStatus) (ret graphql.Marshaler) {
7951 defer func() {
7952 if r := recover(); r != nil {
7953 ec.Error(ctx, ec.Recover(ctx, r))
7954 ret = graphql.Null
7955 }
7956 }()
7957 fc := &graphql.FieldContext{
7958 Object: "ExperimentStatus",
7959 Field: field,
7960 Args: nil,
7961 IsMethod: true,
7962 IsResolver: true,
7963 }
7964
7965 ctx = graphql.WithFieldContext(ctx, fc)
7966 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7967 ctx = rctx
7968 return ec.resolvers.ExperimentStatus().DesiredPhase(rctx, obj)
7969 })
7970 if err != nil {
7971 ec.Error(ctx, err)
7972 return graphql.Null
7973 }
7974 if resTmp == nil {
7975 if !graphql.HasFieldError(ctx, fc) {
7976 ec.Errorf(ctx, "must not be null")
7977 }
7978 return graphql.Null
7979 }
7980 res := resTmp.(string)
7981 fc.Result = res
7982 return ec.marshalNString2string(ctx, field.Selections, res)
7983 }
7984
7985 func (ec *executionContext) _ExperimentStatus_Records(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ExperimentStatus) (ret graphql.Marshaler) {
7986 defer func() {
7987 if r := recover(); r != nil {
7988 ec.Error(ctx, ec.Recover(ctx, r))
7989 ret = graphql.Null
7990 }
7991 }()
7992 fc := &graphql.FieldContext{
7993 Object: "ExperimentStatus",
7994 Field: field,
7995 Args: nil,
7996 IsMethod: false,
7997 IsResolver: false,
7998 }
7999
8000 ctx = graphql.WithFieldContext(ctx, fc)
8001 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8002 ctx = rctx
8003 return obj.Records, nil
8004 })
8005 if err != nil {
8006 ec.Error(ctx, err)
8007 return graphql.Null
8008 }
8009 if resTmp == nil {
8010 return graphql.Null
8011 }
8012 res := resTmp.([]*v1alpha1.Record)
8013 fc.Result = res
8014 return ec.marshalORecord2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecordᚄ(ctx, field.Selections, res)
8015 }
8016
8017 func (ec *executionContext) _Fd_fd(ctx context.Context, field graphql.CollectedField, obj *model.Fd) (ret graphql.Marshaler) {
8018 defer func() {
8019 if r := recover(); r != nil {
8020 ec.Error(ctx, ec.Recover(ctx, r))
8021 ret = graphql.Null
8022 }
8023 }()
8024 fc := &graphql.FieldContext{
8025 Object: "Fd",
8026 Field: field,
8027 Args: nil,
8028 IsMethod: false,
8029 IsResolver: false,
8030 }
8031
8032 ctx = graphql.WithFieldContext(ctx, fc)
8033 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8034 ctx = rctx
8035 return obj.Fd, nil
8036 })
8037 if err != nil {
8038 ec.Error(ctx, err)
8039 return graphql.Null
8040 }
8041 if resTmp == nil {
8042 if !graphql.HasFieldError(ctx, fc) {
8043 ec.Errorf(ctx, "must not be null")
8044 }
8045 return graphql.Null
8046 }
8047 res := resTmp.(string)
8048 fc.Result = res
8049 return ec.marshalNString2string(ctx, field.Selections, res)
8050 }
8051
8052 func (ec *executionContext) _Fd_target(ctx context.Context, field graphql.CollectedField, obj *model.Fd) (ret graphql.Marshaler) {
8053 defer func() {
8054 if r := recover(); r != nil {
8055 ec.Error(ctx, ec.Recover(ctx, r))
8056 ret = graphql.Null
8057 }
8058 }()
8059 fc := &graphql.FieldContext{
8060 Object: "Fd",
8061 Field: field,
8062 Args: nil,
8063 IsMethod: false,
8064 IsResolver: false,
8065 }
8066
8067 ctx = graphql.WithFieldContext(ctx, fc)
8068 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8069 ctx = rctx
8070 return obj.Target, nil
8071 })
8072 if err != nil {
8073 ec.Error(ctx, err)
8074 return graphql.Null
8075 }
8076 if resTmp == nil {
8077 if !graphql.HasFieldError(ctx, fc) {
8078 ec.Errorf(ctx, "must not be null")
8079 }
8080 return graphql.Null
8081 }
8082 res := resTmp.(string)
8083 fc.Result = res
8084 return ec.marshalNString2string(ctx, field.Selections, res)
8085 }
8086
8087 func (ec *executionContext) _HTTPChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8088 defer func() {
8089 if r := recover(); r != nil {
8090 ec.Error(ctx, ec.Recover(ctx, r))
8091 ret = graphql.Null
8092 }
8093 }()
8094 fc := &graphql.FieldContext{
8095 Object: "HTTPChaos",
8096 Field: field,
8097 Args: nil,
8098 IsMethod: false,
8099 IsResolver: false,
8100 }
8101
8102 ctx = graphql.WithFieldContext(ctx, fc)
8103 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8104 ctx = rctx
8105 return obj.Kind, nil
8106 })
8107 if err != nil {
8108 ec.Error(ctx, err)
8109 return graphql.Null
8110 }
8111 if resTmp == nil {
8112 if !graphql.HasFieldError(ctx, fc) {
8113 ec.Errorf(ctx, "must not be null")
8114 }
8115 return graphql.Null
8116 }
8117 res := resTmp.(string)
8118 fc.Result = res
8119 return ec.marshalNString2string(ctx, field.Selections, res)
8120 }
8121
8122 func (ec *executionContext) _HTTPChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8123 defer func() {
8124 if r := recover(); r != nil {
8125 ec.Error(ctx, ec.Recover(ctx, r))
8126 ret = graphql.Null
8127 }
8128 }()
8129 fc := &graphql.FieldContext{
8130 Object: "HTTPChaos",
8131 Field: field,
8132 Args: nil,
8133 IsMethod: false,
8134 IsResolver: false,
8135 }
8136
8137 ctx = graphql.WithFieldContext(ctx, fc)
8138 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8139 ctx = rctx
8140 return obj.APIVersion, nil
8141 })
8142 if err != nil {
8143 ec.Error(ctx, err)
8144 return graphql.Null
8145 }
8146 if resTmp == nil {
8147 if !graphql.HasFieldError(ctx, fc) {
8148 ec.Errorf(ctx, "must not be null")
8149 }
8150 return graphql.Null
8151 }
8152 res := resTmp.(string)
8153 fc.Result = res
8154 return ec.marshalNString2string(ctx, field.Selections, res)
8155 }
8156
8157 func (ec *executionContext) _HTTPChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8158 defer func() {
8159 if r := recover(); r != nil {
8160 ec.Error(ctx, ec.Recover(ctx, r))
8161 ret = graphql.Null
8162 }
8163 }()
8164 fc := &graphql.FieldContext{
8165 Object: "HTTPChaos",
8166 Field: field,
8167 Args: nil,
8168 IsMethod: false,
8169 IsResolver: false,
8170 }
8171
8172 ctx = graphql.WithFieldContext(ctx, fc)
8173 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8174 ctx = rctx
8175 return obj.Name, nil
8176 })
8177 if err != nil {
8178 ec.Error(ctx, err)
8179 return graphql.Null
8180 }
8181 if resTmp == nil {
8182 if !graphql.HasFieldError(ctx, fc) {
8183 ec.Errorf(ctx, "must not be null")
8184 }
8185 return graphql.Null
8186 }
8187 res := resTmp.(string)
8188 fc.Result = res
8189 return ec.marshalNString2string(ctx, field.Selections, res)
8190 }
8191
8192 func (ec *executionContext) _HTTPChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8193 defer func() {
8194 if r := recover(); r != nil {
8195 ec.Error(ctx, ec.Recover(ctx, r))
8196 ret = graphql.Null
8197 }
8198 }()
8199 fc := &graphql.FieldContext{
8200 Object: "HTTPChaos",
8201 Field: field,
8202 Args: nil,
8203 IsMethod: false,
8204 IsResolver: false,
8205 }
8206
8207 ctx = graphql.WithFieldContext(ctx, fc)
8208 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8209 ctx = rctx
8210 return obj.GenerateName, nil
8211 })
8212 if err != nil {
8213 ec.Error(ctx, err)
8214 return graphql.Null
8215 }
8216 if resTmp == nil {
8217 if !graphql.HasFieldError(ctx, fc) {
8218 ec.Errorf(ctx, "must not be null")
8219 }
8220 return graphql.Null
8221 }
8222 res := resTmp.(string)
8223 fc.Result = res
8224 return ec.marshalNString2string(ctx, field.Selections, res)
8225 }
8226
8227 func (ec *executionContext) _HTTPChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8228 defer func() {
8229 if r := recover(); r != nil {
8230 ec.Error(ctx, ec.Recover(ctx, r))
8231 ret = graphql.Null
8232 }
8233 }()
8234 fc := &graphql.FieldContext{
8235 Object: "HTTPChaos",
8236 Field: field,
8237 Args: nil,
8238 IsMethod: false,
8239 IsResolver: false,
8240 }
8241
8242 ctx = graphql.WithFieldContext(ctx, fc)
8243 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8244 ctx = rctx
8245 return obj.Namespace, nil
8246 })
8247 if err != nil {
8248 ec.Error(ctx, err)
8249 return graphql.Null
8250 }
8251 if resTmp == nil {
8252 if !graphql.HasFieldError(ctx, fc) {
8253 ec.Errorf(ctx, "must not be null")
8254 }
8255 return graphql.Null
8256 }
8257 res := resTmp.(string)
8258 fc.Result = res
8259 return ec.marshalNString2string(ctx, field.Selections, res)
8260 }
8261
8262 func (ec *executionContext) _HTTPChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8263 defer func() {
8264 if r := recover(); r != nil {
8265 ec.Error(ctx, ec.Recover(ctx, r))
8266 ret = graphql.Null
8267 }
8268 }()
8269 fc := &graphql.FieldContext{
8270 Object: "HTTPChaos",
8271 Field: field,
8272 Args: nil,
8273 IsMethod: false,
8274 IsResolver: false,
8275 }
8276
8277 ctx = graphql.WithFieldContext(ctx, fc)
8278 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8279 ctx = rctx
8280 return obj.SelfLink, nil
8281 })
8282 if err != nil {
8283 ec.Error(ctx, err)
8284 return graphql.Null
8285 }
8286 if resTmp == nil {
8287 if !graphql.HasFieldError(ctx, fc) {
8288 ec.Errorf(ctx, "must not be null")
8289 }
8290 return graphql.Null
8291 }
8292 res := resTmp.(string)
8293 fc.Result = res
8294 return ec.marshalNString2string(ctx, field.Selections, res)
8295 }
8296
8297 func (ec *executionContext) _HTTPChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8298 defer func() {
8299 if r := recover(); r != nil {
8300 ec.Error(ctx, ec.Recover(ctx, r))
8301 ret = graphql.Null
8302 }
8303 }()
8304 fc := &graphql.FieldContext{
8305 Object: "HTTPChaos",
8306 Field: field,
8307 Args: nil,
8308 IsMethod: true,
8309 IsResolver: true,
8310 }
8311
8312 ctx = graphql.WithFieldContext(ctx, fc)
8313 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8314 ctx = rctx
8315 return ec.resolvers.HTTPChaos().UID(rctx, obj)
8316 })
8317 if err != nil {
8318 ec.Error(ctx, err)
8319 return graphql.Null
8320 }
8321 if resTmp == nil {
8322 if !graphql.HasFieldError(ctx, fc) {
8323 ec.Errorf(ctx, "must not be null")
8324 }
8325 return graphql.Null
8326 }
8327 res := resTmp.(string)
8328 fc.Result = res
8329 return ec.marshalNString2string(ctx, field.Selections, res)
8330 }
8331
8332 func (ec *executionContext) _HTTPChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8333 defer func() {
8334 if r := recover(); r != nil {
8335 ec.Error(ctx, ec.Recover(ctx, r))
8336 ret = graphql.Null
8337 }
8338 }()
8339 fc := &graphql.FieldContext{
8340 Object: "HTTPChaos",
8341 Field: field,
8342 Args: nil,
8343 IsMethod: false,
8344 IsResolver: false,
8345 }
8346
8347 ctx = graphql.WithFieldContext(ctx, fc)
8348 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8349 ctx = rctx
8350 return obj.ResourceVersion, nil
8351 })
8352 if err != nil {
8353 ec.Error(ctx, err)
8354 return graphql.Null
8355 }
8356 if resTmp == nil {
8357 if !graphql.HasFieldError(ctx, fc) {
8358 ec.Errorf(ctx, "must not be null")
8359 }
8360 return graphql.Null
8361 }
8362 res := resTmp.(string)
8363 fc.Result = res
8364 return ec.marshalNString2string(ctx, field.Selections, res)
8365 }
8366
8367 func (ec *executionContext) _HTTPChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8368 defer func() {
8369 if r := recover(); r != nil {
8370 ec.Error(ctx, ec.Recover(ctx, r))
8371 ret = graphql.Null
8372 }
8373 }()
8374 fc := &graphql.FieldContext{
8375 Object: "HTTPChaos",
8376 Field: field,
8377 Args: nil,
8378 IsMethod: false,
8379 IsResolver: false,
8380 }
8381
8382 ctx = graphql.WithFieldContext(ctx, fc)
8383 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8384 ctx = rctx
8385 return obj.Generation, nil
8386 })
8387 if err != nil {
8388 ec.Error(ctx, err)
8389 return graphql.Null
8390 }
8391 if resTmp == nil {
8392 if !graphql.HasFieldError(ctx, fc) {
8393 ec.Errorf(ctx, "must not be null")
8394 }
8395 return graphql.Null
8396 }
8397 res := resTmp.(int64)
8398 fc.Result = res
8399 return ec.marshalNInt2int64(ctx, field.Selections, res)
8400 }
8401
8402 func (ec *executionContext) _HTTPChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8403 defer func() {
8404 if r := recover(); r != nil {
8405 ec.Error(ctx, ec.Recover(ctx, r))
8406 ret = graphql.Null
8407 }
8408 }()
8409 fc := &graphql.FieldContext{
8410 Object: "HTTPChaos",
8411 Field: field,
8412 Args: nil,
8413 IsMethod: true,
8414 IsResolver: true,
8415 }
8416
8417 ctx = graphql.WithFieldContext(ctx, fc)
8418 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8419 ctx = rctx
8420 return ec.resolvers.HTTPChaos().CreationTimestamp(rctx, obj)
8421 })
8422 if err != nil {
8423 ec.Error(ctx, err)
8424 return graphql.Null
8425 }
8426 if resTmp == nil {
8427 if !graphql.HasFieldError(ctx, fc) {
8428 ec.Errorf(ctx, "must not be null")
8429 }
8430 return graphql.Null
8431 }
8432 res := resTmp.(*time.Time)
8433 fc.Result = res
8434 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
8435 }
8436
8437 func (ec *executionContext) _HTTPChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8438 defer func() {
8439 if r := recover(); r != nil {
8440 ec.Error(ctx, ec.Recover(ctx, r))
8441 ret = graphql.Null
8442 }
8443 }()
8444 fc := &graphql.FieldContext{
8445 Object: "HTTPChaos",
8446 Field: field,
8447 Args: nil,
8448 IsMethod: true,
8449 IsResolver: true,
8450 }
8451
8452 ctx = graphql.WithFieldContext(ctx, fc)
8453 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8454 ctx = rctx
8455 return ec.resolvers.HTTPChaos().DeletionTimestamp(rctx, obj)
8456 })
8457 if err != nil {
8458 ec.Error(ctx, err)
8459 return graphql.Null
8460 }
8461 if resTmp == nil {
8462 return graphql.Null
8463 }
8464 res := resTmp.(*time.Time)
8465 fc.Result = res
8466 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
8467 }
8468
8469 func (ec *executionContext) _HTTPChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8470 defer func() {
8471 if r := recover(); r != nil {
8472 ec.Error(ctx, ec.Recover(ctx, r))
8473 ret = graphql.Null
8474 }
8475 }()
8476 fc := &graphql.FieldContext{
8477 Object: "HTTPChaos",
8478 Field: field,
8479 Args: nil,
8480 IsMethod: false,
8481 IsResolver: false,
8482 }
8483
8484 ctx = graphql.WithFieldContext(ctx, fc)
8485 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8486 ctx = rctx
8487 return obj.DeletionGracePeriodSeconds, nil
8488 })
8489 if err != nil {
8490 ec.Error(ctx, err)
8491 return graphql.Null
8492 }
8493 if resTmp == nil {
8494 return graphql.Null
8495 }
8496 res := resTmp.(*int64)
8497 fc.Result = res
8498 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
8499 }
8500
8501 func (ec *executionContext) _HTTPChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8502 defer func() {
8503 if r := recover(); r != nil {
8504 ec.Error(ctx, ec.Recover(ctx, r))
8505 ret = graphql.Null
8506 }
8507 }()
8508 fc := &graphql.FieldContext{
8509 Object: "HTTPChaos",
8510 Field: field,
8511 Args: nil,
8512 IsMethod: true,
8513 IsResolver: true,
8514 }
8515
8516 ctx = graphql.WithFieldContext(ctx, fc)
8517 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8518 ctx = rctx
8519 return ec.resolvers.HTTPChaos().Labels(rctx, obj)
8520 })
8521 if err != nil {
8522 ec.Error(ctx, err)
8523 return graphql.Null
8524 }
8525 if resTmp == nil {
8526 return graphql.Null
8527 }
8528 res := resTmp.(map[string]interface{})
8529 fc.Result = res
8530 return ec.marshalOMap2map(ctx, field.Selections, res)
8531 }
8532
8533 func (ec *executionContext) _HTTPChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8534 defer func() {
8535 if r := recover(); r != nil {
8536 ec.Error(ctx, ec.Recover(ctx, r))
8537 ret = graphql.Null
8538 }
8539 }()
8540 fc := &graphql.FieldContext{
8541 Object: "HTTPChaos",
8542 Field: field,
8543 Args: nil,
8544 IsMethod: true,
8545 IsResolver: true,
8546 }
8547
8548 ctx = graphql.WithFieldContext(ctx, fc)
8549 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8550 ctx = rctx
8551 return ec.resolvers.HTTPChaos().Annotations(rctx, obj)
8552 })
8553 if err != nil {
8554 ec.Error(ctx, err)
8555 return graphql.Null
8556 }
8557 if resTmp == nil {
8558 return graphql.Null
8559 }
8560 res := resTmp.(map[string]interface{})
8561 fc.Result = res
8562 return ec.marshalOMap2map(ctx, field.Selections, res)
8563 }
8564
8565 func (ec *executionContext) _HTTPChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8566 defer func() {
8567 if r := recover(); r != nil {
8568 ec.Error(ctx, ec.Recover(ctx, r))
8569 ret = graphql.Null
8570 }
8571 }()
8572 fc := &graphql.FieldContext{
8573 Object: "HTTPChaos",
8574 Field: field,
8575 Args: nil,
8576 IsMethod: false,
8577 IsResolver: false,
8578 }
8579
8580 ctx = graphql.WithFieldContext(ctx, fc)
8581 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8582 ctx = rctx
8583 return obj.OwnerReferences, nil
8584 })
8585 if err != nil {
8586 ec.Error(ctx, err)
8587 return graphql.Null
8588 }
8589 if resTmp == nil {
8590 return graphql.Null
8591 }
8592 res := resTmp.([]v11.OwnerReference)
8593 fc.Result = res
8594 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
8595 }
8596
8597 func (ec *executionContext) _HTTPChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8598 defer func() {
8599 if r := recover(); r != nil {
8600 ec.Error(ctx, ec.Recover(ctx, r))
8601 ret = graphql.Null
8602 }
8603 }()
8604 fc := &graphql.FieldContext{
8605 Object: "HTTPChaos",
8606 Field: field,
8607 Args: nil,
8608 IsMethod: false,
8609 IsResolver: false,
8610 }
8611
8612 ctx = graphql.WithFieldContext(ctx, fc)
8613 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8614 ctx = rctx
8615 return obj.Finalizers, nil
8616 })
8617 if err != nil {
8618 ec.Error(ctx, err)
8619 return graphql.Null
8620 }
8621 if resTmp == nil {
8622 return graphql.Null
8623 }
8624 res := resTmp.([]string)
8625 fc.Result = res
8626 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
8627 }
8628
8629 func (ec *executionContext) _HTTPChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8630 defer func() {
8631 if r := recover(); r != nil {
8632 ec.Error(ctx, ec.Recover(ctx, r))
8633 ret = graphql.Null
8634 }
8635 }()
8636 fc := &graphql.FieldContext{
8637 Object: "HTTPChaos",
8638 Field: field,
8639 Args: nil,
8640 IsMethod: false,
8641 IsResolver: false,
8642 }
8643
8644 ctx = graphql.WithFieldContext(ctx, fc)
8645 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8646 ctx = rctx
8647 return obj.Spec, nil
8648 })
8649 if err != nil {
8650 ec.Error(ctx, err)
8651 return graphql.Null
8652 }
8653 if resTmp == nil {
8654 if !graphql.HasFieldError(ctx, fc) {
8655 ec.Errorf(ctx, "must not be null")
8656 }
8657 return graphql.Null
8658 }
8659 res := resTmp.(v1alpha1.HTTPChaosSpec)
8660 fc.Result = res
8661 return ec.marshalNHTTPChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosSpec(ctx, field.Selections, res)
8662 }
8663
8664 func (ec *executionContext) _HTTPChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8665 defer func() {
8666 if r := recover(); r != nil {
8667 ec.Error(ctx, ec.Recover(ctx, r))
8668 ret = graphql.Null
8669 }
8670 }()
8671 fc := &graphql.FieldContext{
8672 Object: "HTTPChaos",
8673 Field: field,
8674 Args: nil,
8675 IsMethod: false,
8676 IsResolver: false,
8677 }
8678
8679 ctx = graphql.WithFieldContext(ctx, fc)
8680 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8681 ctx = rctx
8682 return obj.Status, nil
8683 })
8684 if err != nil {
8685 ec.Error(ctx, err)
8686 return graphql.Null
8687 }
8688 if resTmp == nil {
8689 if !graphql.HasFieldError(ctx, fc) {
8690 ec.Errorf(ctx, "must not be null")
8691 }
8692 return graphql.Null
8693 }
8694 res := resTmp.(v1alpha1.HTTPChaosStatus)
8695 fc.Result = res
8696 return ec.marshalNHTTPChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosStatus(ctx, field.Selections, res)
8697 }
8698
8699 func (ec *executionContext) _HTTPChaos_podhttp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
8700 defer func() {
8701 if r := recover(); r != nil {
8702 ec.Error(ctx, ec.Recover(ctx, r))
8703 ret = graphql.Null
8704 }
8705 }()
8706 fc := &graphql.FieldContext{
8707 Object: "HTTPChaos",
8708 Field: field,
8709 Args: nil,
8710 IsMethod: true,
8711 IsResolver: true,
8712 }
8713
8714 ctx = graphql.WithFieldContext(ctx, fc)
8715 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8716 ctx = rctx
8717 return ec.resolvers.HTTPChaos().Podhttp(rctx, obj)
8718 })
8719 if err != nil {
8720 ec.Error(ctx, err)
8721 return graphql.Null
8722 }
8723 if resTmp == nil {
8724 return graphql.Null
8725 }
8726 res := resTmp.([]*v1alpha1.PodHttpChaos)
8727 fc.Result = res
8728 return ec.marshalOPodHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosᚄ(ctx, field.Selections, res)
8729 }
8730
8731 func (ec *executionContext) _HTTPChaosSpec_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8732 defer func() {
8733 if r := recover(); r != nil {
8734 ec.Error(ctx, ec.Recover(ctx, r))
8735 ret = graphql.Null
8736 }
8737 }()
8738 fc := &graphql.FieldContext{
8739 Object: "HTTPChaosSpec",
8740 Field: field,
8741 Args: nil,
8742 IsMethod: false,
8743 IsResolver: false,
8744 }
8745
8746 ctx = graphql.WithFieldContext(ctx, fc)
8747 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8748 ctx = rctx
8749 return obj.Selector, nil
8750 })
8751 if err != nil {
8752 ec.Error(ctx, err)
8753 return graphql.Null
8754 }
8755 if resTmp == nil {
8756 if !graphql.HasFieldError(ctx, fc) {
8757 ec.Errorf(ctx, "must not be null")
8758 }
8759 return graphql.Null
8760 }
8761 res := resTmp.(v1alpha1.PodSelectorSpec)
8762 fc.Result = res
8763 return ec.marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx, field.Selections, res)
8764 }
8765
8766 func (ec *executionContext) _HTTPChaosSpec_mode(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8767 defer func() {
8768 if r := recover(); r != nil {
8769 ec.Error(ctx, ec.Recover(ctx, r))
8770 ret = graphql.Null
8771 }
8772 }()
8773 fc := &graphql.FieldContext{
8774 Object: "HTTPChaosSpec",
8775 Field: field,
8776 Args: nil,
8777 IsMethod: true,
8778 IsResolver: true,
8779 }
8780
8781 ctx = graphql.WithFieldContext(ctx, fc)
8782 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8783 ctx = rctx
8784 return ec.resolvers.HTTPChaosSpec().Mode(rctx, obj)
8785 })
8786 if err != nil {
8787 ec.Error(ctx, err)
8788 return graphql.Null
8789 }
8790 if resTmp == nil {
8791 if !graphql.HasFieldError(ctx, fc) {
8792 ec.Errorf(ctx, "must not be null")
8793 }
8794 return graphql.Null
8795 }
8796 res := resTmp.(string)
8797 fc.Result = res
8798 return ec.marshalNString2string(ctx, field.Selections, res)
8799 }
8800
8801 func (ec *executionContext) _HTTPChaosSpec_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8802 defer func() {
8803 if r := recover(); r != nil {
8804 ec.Error(ctx, ec.Recover(ctx, r))
8805 ret = graphql.Null
8806 }
8807 }()
8808 fc := &graphql.FieldContext{
8809 Object: "HTTPChaosSpec",
8810 Field: field,
8811 Args: nil,
8812 IsMethod: false,
8813 IsResolver: false,
8814 }
8815
8816 ctx = graphql.WithFieldContext(ctx, fc)
8817 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8818 ctx = rctx
8819 return obj.Value, nil
8820 })
8821 if err != nil {
8822 ec.Error(ctx, err)
8823 return graphql.Null
8824 }
8825 if resTmp == nil {
8826 return graphql.Null
8827 }
8828 res := resTmp.(string)
8829 fc.Result = res
8830 return ec.marshalOString2string(ctx, field.Selections, res)
8831 }
8832
8833 func (ec *executionContext) _HTTPChaosSpec_target(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8834 defer func() {
8835 if r := recover(); r != nil {
8836 ec.Error(ctx, ec.Recover(ctx, r))
8837 ret = graphql.Null
8838 }
8839 }()
8840 fc := &graphql.FieldContext{
8841 Object: "HTTPChaosSpec",
8842 Field: field,
8843 Args: nil,
8844 IsMethod: true,
8845 IsResolver: true,
8846 }
8847
8848 ctx = graphql.WithFieldContext(ctx, fc)
8849 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8850 ctx = rctx
8851 return ec.resolvers.HTTPChaosSpec().Target(rctx, obj)
8852 })
8853 if err != nil {
8854 ec.Error(ctx, err)
8855 return graphql.Null
8856 }
8857 if resTmp == nil {
8858 if !graphql.HasFieldError(ctx, fc) {
8859 ec.Errorf(ctx, "must not be null")
8860 }
8861 return graphql.Null
8862 }
8863 res := resTmp.(string)
8864 fc.Result = res
8865 return ec.marshalNString2string(ctx, field.Selections, res)
8866 }
8867
8868 func (ec *executionContext) _HTTPChaosSpec_abort(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8869 defer func() {
8870 if r := recover(); r != nil {
8871 ec.Error(ctx, ec.Recover(ctx, r))
8872 ret = graphql.Null
8873 }
8874 }()
8875 fc := &graphql.FieldContext{
8876 Object: "HTTPChaosSpec",
8877 Field: field,
8878 Args: nil,
8879 IsMethod: false,
8880 IsResolver: false,
8881 }
8882
8883 ctx = graphql.WithFieldContext(ctx, fc)
8884 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8885 ctx = rctx
8886 return obj.Abort, nil
8887 })
8888 if err != nil {
8889 ec.Error(ctx, err)
8890 return graphql.Null
8891 }
8892 if resTmp == nil {
8893 return graphql.Null
8894 }
8895 res := resTmp.(*bool)
8896 fc.Result = res
8897 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
8898 }
8899
8900 func (ec *executionContext) _HTTPChaosSpec_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8901 defer func() {
8902 if r := recover(); r != nil {
8903 ec.Error(ctx, ec.Recover(ctx, r))
8904 ret = graphql.Null
8905 }
8906 }()
8907 fc := &graphql.FieldContext{
8908 Object: "HTTPChaosSpec",
8909 Field: field,
8910 Args: nil,
8911 IsMethod: false,
8912 IsResolver: false,
8913 }
8914
8915 ctx = graphql.WithFieldContext(ctx, fc)
8916 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8917 ctx = rctx
8918 return obj.Delay, nil
8919 })
8920 if err != nil {
8921 ec.Error(ctx, err)
8922 return graphql.Null
8923 }
8924 if resTmp == nil {
8925 return graphql.Null
8926 }
8927 res := resTmp.(*string)
8928 fc.Result = res
8929 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
8930 }
8931
8932 func (ec *executionContext) _HTTPChaosSpec_replace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8933 defer func() {
8934 if r := recover(); r != nil {
8935 ec.Error(ctx, ec.Recover(ctx, r))
8936 ret = graphql.Null
8937 }
8938 }()
8939 fc := &graphql.FieldContext{
8940 Object: "HTTPChaosSpec",
8941 Field: field,
8942 Args: nil,
8943 IsMethod: false,
8944 IsResolver: false,
8945 }
8946
8947 ctx = graphql.WithFieldContext(ctx, fc)
8948 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8949 ctx = rctx
8950 return obj.Replace, nil
8951 })
8952 if err != nil {
8953 ec.Error(ctx, err)
8954 return graphql.Null
8955 }
8956 if resTmp == nil {
8957 return graphql.Null
8958 }
8959 res := resTmp.(*v1alpha1.PodHttpChaosReplaceActions)
8960 fc.Result = res
8961 return ec.marshalOPodHttpChaosReplaceActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosReplaceActions(ctx, field.Selections, res)
8962 }
8963
8964 func (ec *executionContext) _HTTPChaosSpec_patch(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8965 defer func() {
8966 if r := recover(); r != nil {
8967 ec.Error(ctx, ec.Recover(ctx, r))
8968 ret = graphql.Null
8969 }
8970 }()
8971 fc := &graphql.FieldContext{
8972 Object: "HTTPChaosSpec",
8973 Field: field,
8974 Args: nil,
8975 IsMethod: false,
8976 IsResolver: false,
8977 }
8978
8979 ctx = graphql.WithFieldContext(ctx, fc)
8980 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8981 ctx = rctx
8982 return obj.Patch, nil
8983 })
8984 if err != nil {
8985 ec.Error(ctx, err)
8986 return graphql.Null
8987 }
8988 if resTmp == nil {
8989 return graphql.Null
8990 }
8991 res := resTmp.(*v1alpha1.PodHttpChaosPatchActions)
8992 fc.Result = res
8993 return ec.marshalOPodHttpChaosPatchActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchActions(ctx, field.Selections, res)
8994 }
8995
8996 func (ec *executionContext) _HTTPChaosSpec_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8997 defer func() {
8998 if r := recover(); r != nil {
8999 ec.Error(ctx, ec.Recover(ctx, r))
9000 ret = graphql.Null
9001 }
9002 }()
9003 fc := &graphql.FieldContext{
9004 Object: "HTTPChaosSpec",
9005 Field: field,
9006 Args: nil,
9007 IsMethod: false,
9008 IsResolver: false,
9009 }
9010
9011 ctx = graphql.WithFieldContext(ctx, fc)
9012 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9013 ctx = rctx
9014 return obj.Port, nil
9015 })
9016 if err != nil {
9017 ec.Error(ctx, err)
9018 return graphql.Null
9019 }
9020 if resTmp == nil {
9021 return graphql.Null
9022 }
9023 res := resTmp.(int32)
9024 fc.Result = res
9025 return ec.marshalOInt2int32(ctx, field.Selections, res)
9026 }
9027
9028 func (ec *executionContext) _HTTPChaosSpec_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
9029 defer func() {
9030 if r := recover(); r != nil {
9031 ec.Error(ctx, ec.Recover(ctx, r))
9032 ret = graphql.Null
9033 }
9034 }()
9035 fc := &graphql.FieldContext{
9036 Object: "HTTPChaosSpec",
9037 Field: field,
9038 Args: nil,
9039 IsMethod: false,
9040 IsResolver: false,
9041 }
9042
9043 ctx = graphql.WithFieldContext(ctx, fc)
9044 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9045 ctx = rctx
9046 return obj.Path, nil
9047 })
9048 if err != nil {
9049 ec.Error(ctx, err)
9050 return graphql.Null
9051 }
9052 if resTmp == nil {
9053 return graphql.Null
9054 }
9055 res := resTmp.(*string)
9056 fc.Result = res
9057 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
9058 }
9059
9060 func (ec *executionContext) _HTTPChaosSpec_method(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
9061 defer func() {
9062 if r := recover(); r != nil {
9063 ec.Error(ctx, ec.Recover(ctx, r))
9064 ret = graphql.Null
9065 }
9066 }()
9067 fc := &graphql.FieldContext{
9068 Object: "HTTPChaosSpec",
9069 Field: field,
9070 Args: nil,
9071 IsMethod: false,
9072 IsResolver: false,
9073 }
9074
9075 ctx = graphql.WithFieldContext(ctx, fc)
9076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9077 ctx = rctx
9078 return obj.Method, nil
9079 })
9080 if err != nil {
9081 ec.Error(ctx, err)
9082 return graphql.Null
9083 }
9084 if resTmp == nil {
9085 return graphql.Null
9086 }
9087 res := resTmp.(*string)
9088 fc.Result = res
9089 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
9090 }
9091
9092 func (ec *executionContext) _HTTPChaosSpec_code(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
9093 defer func() {
9094 if r := recover(); r != nil {
9095 ec.Error(ctx, ec.Recover(ctx, r))
9096 ret = graphql.Null
9097 }
9098 }()
9099 fc := &graphql.FieldContext{
9100 Object: "HTTPChaosSpec",
9101 Field: field,
9102 Args: nil,
9103 IsMethod: false,
9104 IsResolver: false,
9105 }
9106
9107 ctx = graphql.WithFieldContext(ctx, fc)
9108 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9109 ctx = rctx
9110 return obj.Code, nil
9111 })
9112 if err != nil {
9113 ec.Error(ctx, err)
9114 return graphql.Null
9115 }
9116 if resTmp == nil {
9117 return graphql.Null
9118 }
9119 res := resTmp.(*int32)
9120 fc.Result = res
9121 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
9122 }
9123
9124 func (ec *executionContext) _HTTPChaosSpec_requestHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
9125 defer func() {
9126 if r := recover(); r != nil {
9127 ec.Error(ctx, ec.Recover(ctx, r))
9128 ret = graphql.Null
9129 }
9130 }()
9131 fc := &graphql.FieldContext{
9132 Object: "HTTPChaosSpec",
9133 Field: field,
9134 Args: nil,
9135 IsMethod: true,
9136 IsResolver: true,
9137 }
9138
9139 ctx = graphql.WithFieldContext(ctx, fc)
9140 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9141 ctx = rctx
9142 return ec.resolvers.HTTPChaosSpec().RequestHeaders(rctx, obj)
9143 })
9144 if err != nil {
9145 ec.Error(ctx, err)
9146 return graphql.Null
9147 }
9148 if resTmp == nil {
9149 return graphql.Null
9150 }
9151 res := resTmp.(map[string]interface{})
9152 fc.Result = res
9153 return ec.marshalOMap2map(ctx, field.Selections, res)
9154 }
9155
9156 func (ec *executionContext) _HTTPChaosSpec_responseHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
9157 defer func() {
9158 if r := recover(); r != nil {
9159 ec.Error(ctx, ec.Recover(ctx, r))
9160 ret = graphql.Null
9161 }
9162 }()
9163 fc := &graphql.FieldContext{
9164 Object: "HTTPChaosSpec",
9165 Field: field,
9166 Args: nil,
9167 IsMethod: true,
9168 IsResolver: true,
9169 }
9170
9171 ctx = graphql.WithFieldContext(ctx, fc)
9172 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9173 ctx = rctx
9174 return ec.resolvers.HTTPChaosSpec().ResponseHeaders(rctx, obj)
9175 })
9176 if err != nil {
9177 ec.Error(ctx, err)
9178 return graphql.Null
9179 }
9180 if resTmp == nil {
9181 return graphql.Null
9182 }
9183 res := resTmp.(map[string]interface{})
9184 fc.Result = res
9185 return ec.marshalOMap2map(ctx, field.Selections, res)
9186 }
9187
9188 func (ec *executionContext) _HTTPChaosSpec_duration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
9189 defer func() {
9190 if r := recover(); r != nil {
9191 ec.Error(ctx, ec.Recover(ctx, r))
9192 ret = graphql.Null
9193 }
9194 }()
9195 fc := &graphql.FieldContext{
9196 Object: "HTTPChaosSpec",
9197 Field: field,
9198 Args: nil,
9199 IsMethod: false,
9200 IsResolver: false,
9201 }
9202
9203 ctx = graphql.WithFieldContext(ctx, fc)
9204 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9205 ctx = rctx
9206 return obj.Duration, nil
9207 })
9208 if err != nil {
9209 ec.Error(ctx, err)
9210 return graphql.Null
9211 }
9212 if resTmp == nil {
9213 return graphql.Null
9214 }
9215 res := resTmp.(*string)
9216 fc.Result = res
9217 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
9218 }
9219
9220 func (ec *executionContext) _HTTPChaosStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosStatus) (ret graphql.Marshaler) {
9221 defer func() {
9222 if r := recover(); r != nil {
9223 ec.Error(ctx, ec.Recover(ctx, r))
9224 ret = graphql.Null
9225 }
9226 }()
9227 fc := &graphql.FieldContext{
9228 Object: "HTTPChaosStatus",
9229 Field: field,
9230 Args: nil,
9231 IsMethod: false,
9232 IsResolver: false,
9233 }
9234
9235 ctx = graphql.WithFieldContext(ctx, fc)
9236 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9237 ctx = rctx
9238 return obj.Conditions, nil
9239 })
9240 if err != nil {
9241 ec.Error(ctx, err)
9242 return graphql.Null
9243 }
9244 if resTmp == nil {
9245 return graphql.Null
9246 }
9247 res := resTmp.([]v1alpha1.ChaosCondition)
9248 fc.Result = res
9249 return ec.marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx, field.Selections, res)
9250 }
9251
9252 func (ec *executionContext) _HTTPChaosStatus_experiment(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosStatus) (ret graphql.Marshaler) {
9253 defer func() {
9254 if r := recover(); r != nil {
9255 ec.Error(ctx, ec.Recover(ctx, r))
9256 ret = graphql.Null
9257 }
9258 }()
9259 fc := &graphql.FieldContext{
9260 Object: "HTTPChaosStatus",
9261 Field: field,
9262 Args: nil,
9263 IsMethod: false,
9264 IsResolver: false,
9265 }
9266
9267 ctx = graphql.WithFieldContext(ctx, fc)
9268 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9269 ctx = rctx
9270 return obj.Experiment, nil
9271 })
9272 if err != nil {
9273 ec.Error(ctx, err)
9274 return graphql.Null
9275 }
9276 if resTmp == nil {
9277 return graphql.Null
9278 }
9279 res := resTmp.(v1alpha1.ExperimentStatus)
9280 fc.Result = res
9281 return ec.marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx, field.Selections, res)
9282 }
9283
9284 func (ec *executionContext) _HTTPChaosStatus_instances(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosStatus) (ret graphql.Marshaler) {
9285 defer func() {
9286 if r := recover(); r != nil {
9287 ec.Error(ctx, ec.Recover(ctx, r))
9288 ret = graphql.Null
9289 }
9290 }()
9291 fc := &graphql.FieldContext{
9292 Object: "HTTPChaosStatus",
9293 Field: field,
9294 Args: nil,
9295 IsMethod: true,
9296 IsResolver: true,
9297 }
9298
9299 ctx = graphql.WithFieldContext(ctx, fc)
9300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9301 ctx = rctx
9302 return ec.resolvers.HTTPChaosStatus().Instances(rctx, obj)
9303 })
9304 if err != nil {
9305 ec.Error(ctx, err)
9306 return graphql.Null
9307 }
9308 if resTmp == nil {
9309 return graphql.Null
9310 }
9311 res := resTmp.(map[string]interface{})
9312 fc.Result = res
9313 return ec.marshalOMap2map(ctx, field.Selections, res)
9314 }
9315
9316 func (ec *executionContext) _IOChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9317 defer func() {
9318 if r := recover(); r != nil {
9319 ec.Error(ctx, ec.Recover(ctx, r))
9320 ret = graphql.Null
9321 }
9322 }()
9323 fc := &graphql.FieldContext{
9324 Object: "IOChaos",
9325 Field: field,
9326 Args: nil,
9327 IsMethod: false,
9328 IsResolver: false,
9329 }
9330
9331 ctx = graphql.WithFieldContext(ctx, fc)
9332 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9333 ctx = rctx
9334 return obj.Kind, nil
9335 })
9336 if err != nil {
9337 ec.Error(ctx, err)
9338 return graphql.Null
9339 }
9340 if resTmp == nil {
9341 if !graphql.HasFieldError(ctx, fc) {
9342 ec.Errorf(ctx, "must not be null")
9343 }
9344 return graphql.Null
9345 }
9346 res := resTmp.(string)
9347 fc.Result = res
9348 return ec.marshalNString2string(ctx, field.Selections, res)
9349 }
9350
9351 func (ec *executionContext) _IOChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9352 defer func() {
9353 if r := recover(); r != nil {
9354 ec.Error(ctx, ec.Recover(ctx, r))
9355 ret = graphql.Null
9356 }
9357 }()
9358 fc := &graphql.FieldContext{
9359 Object: "IOChaos",
9360 Field: field,
9361 Args: nil,
9362 IsMethod: false,
9363 IsResolver: false,
9364 }
9365
9366 ctx = graphql.WithFieldContext(ctx, fc)
9367 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9368 ctx = rctx
9369 return obj.APIVersion, nil
9370 })
9371 if err != nil {
9372 ec.Error(ctx, err)
9373 return graphql.Null
9374 }
9375 if resTmp == nil {
9376 if !graphql.HasFieldError(ctx, fc) {
9377 ec.Errorf(ctx, "must not be null")
9378 }
9379 return graphql.Null
9380 }
9381 res := resTmp.(string)
9382 fc.Result = res
9383 return ec.marshalNString2string(ctx, field.Selections, res)
9384 }
9385
9386 func (ec *executionContext) _IOChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9387 defer func() {
9388 if r := recover(); r != nil {
9389 ec.Error(ctx, ec.Recover(ctx, r))
9390 ret = graphql.Null
9391 }
9392 }()
9393 fc := &graphql.FieldContext{
9394 Object: "IOChaos",
9395 Field: field,
9396 Args: nil,
9397 IsMethod: false,
9398 IsResolver: false,
9399 }
9400
9401 ctx = graphql.WithFieldContext(ctx, fc)
9402 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9403 ctx = rctx
9404 return obj.Name, nil
9405 })
9406 if err != nil {
9407 ec.Error(ctx, err)
9408 return graphql.Null
9409 }
9410 if resTmp == nil {
9411 if !graphql.HasFieldError(ctx, fc) {
9412 ec.Errorf(ctx, "must not be null")
9413 }
9414 return graphql.Null
9415 }
9416 res := resTmp.(string)
9417 fc.Result = res
9418 return ec.marshalNString2string(ctx, field.Selections, res)
9419 }
9420
9421 func (ec *executionContext) _IOChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9422 defer func() {
9423 if r := recover(); r != nil {
9424 ec.Error(ctx, ec.Recover(ctx, r))
9425 ret = graphql.Null
9426 }
9427 }()
9428 fc := &graphql.FieldContext{
9429 Object: "IOChaos",
9430 Field: field,
9431 Args: nil,
9432 IsMethod: false,
9433 IsResolver: false,
9434 }
9435
9436 ctx = graphql.WithFieldContext(ctx, fc)
9437 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9438 ctx = rctx
9439 return obj.GenerateName, nil
9440 })
9441 if err != nil {
9442 ec.Error(ctx, err)
9443 return graphql.Null
9444 }
9445 if resTmp == nil {
9446 if !graphql.HasFieldError(ctx, fc) {
9447 ec.Errorf(ctx, "must not be null")
9448 }
9449 return graphql.Null
9450 }
9451 res := resTmp.(string)
9452 fc.Result = res
9453 return ec.marshalNString2string(ctx, field.Selections, res)
9454 }
9455
9456 func (ec *executionContext) _IOChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9457 defer func() {
9458 if r := recover(); r != nil {
9459 ec.Error(ctx, ec.Recover(ctx, r))
9460 ret = graphql.Null
9461 }
9462 }()
9463 fc := &graphql.FieldContext{
9464 Object: "IOChaos",
9465 Field: field,
9466 Args: nil,
9467 IsMethod: false,
9468 IsResolver: false,
9469 }
9470
9471 ctx = graphql.WithFieldContext(ctx, fc)
9472 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9473 ctx = rctx
9474 return obj.Namespace, nil
9475 })
9476 if err != nil {
9477 ec.Error(ctx, err)
9478 return graphql.Null
9479 }
9480 if resTmp == nil {
9481 if !graphql.HasFieldError(ctx, fc) {
9482 ec.Errorf(ctx, "must not be null")
9483 }
9484 return graphql.Null
9485 }
9486 res := resTmp.(string)
9487 fc.Result = res
9488 return ec.marshalNString2string(ctx, field.Selections, res)
9489 }
9490
9491 func (ec *executionContext) _IOChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9492 defer func() {
9493 if r := recover(); r != nil {
9494 ec.Error(ctx, ec.Recover(ctx, r))
9495 ret = graphql.Null
9496 }
9497 }()
9498 fc := &graphql.FieldContext{
9499 Object: "IOChaos",
9500 Field: field,
9501 Args: nil,
9502 IsMethod: false,
9503 IsResolver: false,
9504 }
9505
9506 ctx = graphql.WithFieldContext(ctx, fc)
9507 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9508 ctx = rctx
9509 return obj.SelfLink, nil
9510 })
9511 if err != nil {
9512 ec.Error(ctx, err)
9513 return graphql.Null
9514 }
9515 if resTmp == nil {
9516 if !graphql.HasFieldError(ctx, fc) {
9517 ec.Errorf(ctx, "must not be null")
9518 }
9519 return graphql.Null
9520 }
9521 res := resTmp.(string)
9522 fc.Result = res
9523 return ec.marshalNString2string(ctx, field.Selections, res)
9524 }
9525
9526 func (ec *executionContext) _IOChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9527 defer func() {
9528 if r := recover(); r != nil {
9529 ec.Error(ctx, ec.Recover(ctx, r))
9530 ret = graphql.Null
9531 }
9532 }()
9533 fc := &graphql.FieldContext{
9534 Object: "IOChaos",
9535 Field: field,
9536 Args: nil,
9537 IsMethod: true,
9538 IsResolver: true,
9539 }
9540
9541 ctx = graphql.WithFieldContext(ctx, fc)
9542 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9543 ctx = rctx
9544 return ec.resolvers.IOChaos().UID(rctx, obj)
9545 })
9546 if err != nil {
9547 ec.Error(ctx, err)
9548 return graphql.Null
9549 }
9550 if resTmp == nil {
9551 if !graphql.HasFieldError(ctx, fc) {
9552 ec.Errorf(ctx, "must not be null")
9553 }
9554 return graphql.Null
9555 }
9556 res := resTmp.(string)
9557 fc.Result = res
9558 return ec.marshalNString2string(ctx, field.Selections, res)
9559 }
9560
9561 func (ec *executionContext) _IOChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9562 defer func() {
9563 if r := recover(); r != nil {
9564 ec.Error(ctx, ec.Recover(ctx, r))
9565 ret = graphql.Null
9566 }
9567 }()
9568 fc := &graphql.FieldContext{
9569 Object: "IOChaos",
9570 Field: field,
9571 Args: nil,
9572 IsMethod: false,
9573 IsResolver: false,
9574 }
9575
9576 ctx = graphql.WithFieldContext(ctx, fc)
9577 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9578 ctx = rctx
9579 return obj.ResourceVersion, nil
9580 })
9581 if err != nil {
9582 ec.Error(ctx, err)
9583 return graphql.Null
9584 }
9585 if resTmp == nil {
9586 if !graphql.HasFieldError(ctx, fc) {
9587 ec.Errorf(ctx, "must not be null")
9588 }
9589 return graphql.Null
9590 }
9591 res := resTmp.(string)
9592 fc.Result = res
9593 return ec.marshalNString2string(ctx, field.Selections, res)
9594 }
9595
9596 func (ec *executionContext) _IOChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9597 defer func() {
9598 if r := recover(); r != nil {
9599 ec.Error(ctx, ec.Recover(ctx, r))
9600 ret = graphql.Null
9601 }
9602 }()
9603 fc := &graphql.FieldContext{
9604 Object: "IOChaos",
9605 Field: field,
9606 Args: nil,
9607 IsMethod: false,
9608 IsResolver: false,
9609 }
9610
9611 ctx = graphql.WithFieldContext(ctx, fc)
9612 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9613 ctx = rctx
9614 return obj.Generation, nil
9615 })
9616 if err != nil {
9617 ec.Error(ctx, err)
9618 return graphql.Null
9619 }
9620 if resTmp == nil {
9621 if !graphql.HasFieldError(ctx, fc) {
9622 ec.Errorf(ctx, "must not be null")
9623 }
9624 return graphql.Null
9625 }
9626 res := resTmp.(int64)
9627 fc.Result = res
9628 return ec.marshalNInt2int64(ctx, field.Selections, res)
9629 }
9630
9631 func (ec *executionContext) _IOChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9632 defer func() {
9633 if r := recover(); r != nil {
9634 ec.Error(ctx, ec.Recover(ctx, r))
9635 ret = graphql.Null
9636 }
9637 }()
9638 fc := &graphql.FieldContext{
9639 Object: "IOChaos",
9640 Field: field,
9641 Args: nil,
9642 IsMethod: true,
9643 IsResolver: true,
9644 }
9645
9646 ctx = graphql.WithFieldContext(ctx, fc)
9647 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9648 ctx = rctx
9649 return ec.resolvers.IOChaos().CreationTimestamp(rctx, obj)
9650 })
9651 if err != nil {
9652 ec.Error(ctx, err)
9653 return graphql.Null
9654 }
9655 if resTmp == nil {
9656 if !graphql.HasFieldError(ctx, fc) {
9657 ec.Errorf(ctx, "must not be null")
9658 }
9659 return graphql.Null
9660 }
9661 res := resTmp.(*time.Time)
9662 fc.Result = res
9663 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
9664 }
9665
9666 func (ec *executionContext) _IOChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9667 defer func() {
9668 if r := recover(); r != nil {
9669 ec.Error(ctx, ec.Recover(ctx, r))
9670 ret = graphql.Null
9671 }
9672 }()
9673 fc := &graphql.FieldContext{
9674 Object: "IOChaos",
9675 Field: field,
9676 Args: nil,
9677 IsMethod: true,
9678 IsResolver: true,
9679 }
9680
9681 ctx = graphql.WithFieldContext(ctx, fc)
9682 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9683 ctx = rctx
9684 return ec.resolvers.IOChaos().DeletionTimestamp(rctx, obj)
9685 })
9686 if err != nil {
9687 ec.Error(ctx, err)
9688 return graphql.Null
9689 }
9690 if resTmp == nil {
9691 return graphql.Null
9692 }
9693 res := resTmp.(*time.Time)
9694 fc.Result = res
9695 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
9696 }
9697
9698 func (ec *executionContext) _IOChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9699 defer func() {
9700 if r := recover(); r != nil {
9701 ec.Error(ctx, ec.Recover(ctx, r))
9702 ret = graphql.Null
9703 }
9704 }()
9705 fc := &graphql.FieldContext{
9706 Object: "IOChaos",
9707 Field: field,
9708 Args: nil,
9709 IsMethod: false,
9710 IsResolver: false,
9711 }
9712
9713 ctx = graphql.WithFieldContext(ctx, fc)
9714 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9715 ctx = rctx
9716 return obj.DeletionGracePeriodSeconds, nil
9717 })
9718 if err != nil {
9719 ec.Error(ctx, err)
9720 return graphql.Null
9721 }
9722 if resTmp == nil {
9723 return graphql.Null
9724 }
9725 res := resTmp.(*int64)
9726 fc.Result = res
9727 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
9728 }
9729
9730 func (ec *executionContext) _IOChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9731 defer func() {
9732 if r := recover(); r != nil {
9733 ec.Error(ctx, ec.Recover(ctx, r))
9734 ret = graphql.Null
9735 }
9736 }()
9737 fc := &graphql.FieldContext{
9738 Object: "IOChaos",
9739 Field: field,
9740 Args: nil,
9741 IsMethod: true,
9742 IsResolver: true,
9743 }
9744
9745 ctx = graphql.WithFieldContext(ctx, fc)
9746 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9747 ctx = rctx
9748 return ec.resolvers.IOChaos().Labels(rctx, obj)
9749 })
9750 if err != nil {
9751 ec.Error(ctx, err)
9752 return graphql.Null
9753 }
9754 if resTmp == nil {
9755 return graphql.Null
9756 }
9757 res := resTmp.(map[string]interface{})
9758 fc.Result = res
9759 return ec.marshalOMap2map(ctx, field.Selections, res)
9760 }
9761
9762 func (ec *executionContext) _IOChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9763 defer func() {
9764 if r := recover(); r != nil {
9765 ec.Error(ctx, ec.Recover(ctx, r))
9766 ret = graphql.Null
9767 }
9768 }()
9769 fc := &graphql.FieldContext{
9770 Object: "IOChaos",
9771 Field: field,
9772 Args: nil,
9773 IsMethod: true,
9774 IsResolver: true,
9775 }
9776
9777 ctx = graphql.WithFieldContext(ctx, fc)
9778 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9779 ctx = rctx
9780 return ec.resolvers.IOChaos().Annotations(rctx, obj)
9781 })
9782 if err != nil {
9783 ec.Error(ctx, err)
9784 return graphql.Null
9785 }
9786 if resTmp == nil {
9787 return graphql.Null
9788 }
9789 res := resTmp.(map[string]interface{})
9790 fc.Result = res
9791 return ec.marshalOMap2map(ctx, field.Selections, res)
9792 }
9793
9794 func (ec *executionContext) _IOChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9795 defer func() {
9796 if r := recover(); r != nil {
9797 ec.Error(ctx, ec.Recover(ctx, r))
9798 ret = graphql.Null
9799 }
9800 }()
9801 fc := &graphql.FieldContext{
9802 Object: "IOChaos",
9803 Field: field,
9804 Args: nil,
9805 IsMethod: false,
9806 IsResolver: false,
9807 }
9808
9809 ctx = graphql.WithFieldContext(ctx, fc)
9810 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9811 ctx = rctx
9812 return obj.OwnerReferences, nil
9813 })
9814 if err != nil {
9815 ec.Error(ctx, err)
9816 return graphql.Null
9817 }
9818 if resTmp == nil {
9819 return graphql.Null
9820 }
9821 res := resTmp.([]v11.OwnerReference)
9822 fc.Result = res
9823 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
9824 }
9825
9826 func (ec *executionContext) _IOChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9827 defer func() {
9828 if r := recover(); r != nil {
9829 ec.Error(ctx, ec.Recover(ctx, r))
9830 ret = graphql.Null
9831 }
9832 }()
9833 fc := &graphql.FieldContext{
9834 Object: "IOChaos",
9835 Field: field,
9836 Args: nil,
9837 IsMethod: false,
9838 IsResolver: false,
9839 }
9840
9841 ctx = graphql.WithFieldContext(ctx, fc)
9842 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9843 ctx = rctx
9844 return obj.Finalizers, nil
9845 })
9846 if err != nil {
9847 ec.Error(ctx, err)
9848 return graphql.Null
9849 }
9850 if resTmp == nil {
9851 return graphql.Null
9852 }
9853 res := resTmp.([]string)
9854 fc.Result = res
9855 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
9856 }
9857
9858 func (ec *executionContext) _IOChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9859 defer func() {
9860 if r := recover(); r != nil {
9861 ec.Error(ctx, ec.Recover(ctx, r))
9862 ret = graphql.Null
9863 }
9864 }()
9865 fc := &graphql.FieldContext{
9866 Object: "IOChaos",
9867 Field: field,
9868 Args: nil,
9869 IsMethod: false,
9870 IsResolver: false,
9871 }
9872
9873 ctx = graphql.WithFieldContext(ctx, fc)
9874 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9875 ctx = rctx
9876 return obj.Spec, nil
9877 })
9878 if err != nil {
9879 ec.Error(ctx, err)
9880 return graphql.Null
9881 }
9882 if resTmp == nil {
9883 if !graphql.HasFieldError(ctx, fc) {
9884 ec.Errorf(ctx, "must not be null")
9885 }
9886 return graphql.Null
9887 }
9888 res := resTmp.(v1alpha1.IOChaosSpec)
9889 fc.Result = res
9890 return ec.marshalNIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosSpec(ctx, field.Selections, res)
9891 }
9892
9893 func (ec *executionContext) _IOChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9894 defer func() {
9895 if r := recover(); r != nil {
9896 ec.Error(ctx, ec.Recover(ctx, r))
9897 ret = graphql.Null
9898 }
9899 }()
9900 fc := &graphql.FieldContext{
9901 Object: "IOChaos",
9902 Field: field,
9903 Args: nil,
9904 IsMethod: false,
9905 IsResolver: false,
9906 }
9907
9908 ctx = graphql.WithFieldContext(ctx, fc)
9909 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9910 ctx = rctx
9911 return obj.Status, nil
9912 })
9913 if err != nil {
9914 ec.Error(ctx, err)
9915 return graphql.Null
9916 }
9917 if resTmp == nil {
9918 if !graphql.HasFieldError(ctx, fc) {
9919 ec.Errorf(ctx, "must not be null")
9920 }
9921 return graphql.Null
9922 }
9923 res := resTmp.(v1alpha1.IOChaosStatus)
9924 fc.Result = res
9925 return ec.marshalNIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosStatus(ctx, field.Selections, res)
9926 }
9927
9928 func (ec *executionContext) _IOChaos_podios(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
9929 defer func() {
9930 if r := recover(); r != nil {
9931 ec.Error(ctx, ec.Recover(ctx, r))
9932 ret = graphql.Null
9933 }
9934 }()
9935 fc := &graphql.FieldContext{
9936 Object: "IOChaos",
9937 Field: field,
9938 Args: nil,
9939 IsMethod: true,
9940 IsResolver: true,
9941 }
9942
9943 ctx = graphql.WithFieldContext(ctx, fc)
9944 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9945 ctx = rctx
9946 return ec.resolvers.IOChaos().Podios(rctx, obj)
9947 })
9948 if err != nil {
9949 ec.Error(ctx, err)
9950 return graphql.Null
9951 }
9952 if resTmp == nil {
9953 return graphql.Null
9954 }
9955 res := resTmp.([]*v1alpha1.PodIOChaos)
9956 fc.Result = res
9957 return ec.marshalOPodIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosᚄ(ctx, field.Selections, res)
9958 }
9959
9960 func (ec *executionContext) _IOChaosAction_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9961 defer func() {
9962 if r := recover(); r != nil {
9963 ec.Error(ctx, ec.Recover(ctx, r))
9964 ret = graphql.Null
9965 }
9966 }()
9967 fc := &graphql.FieldContext{
9968 Object: "IOChaosAction",
9969 Field: field,
9970 Args: nil,
9971 IsMethod: true,
9972 IsResolver: true,
9973 }
9974
9975 ctx = graphql.WithFieldContext(ctx, fc)
9976 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9977 ctx = rctx
9978 return ec.resolvers.IOChaosAction().Type(rctx, obj)
9979 })
9980 if err != nil {
9981 ec.Error(ctx, err)
9982 return graphql.Null
9983 }
9984 if resTmp == nil {
9985 if !graphql.HasFieldError(ctx, fc) {
9986 ec.Errorf(ctx, "must not be null")
9987 }
9988 return graphql.Null
9989 }
9990 res := resTmp.(string)
9991 fc.Result = res
9992 return ec.marshalNString2string(ctx, field.Selections, res)
9993 }
9994
9995 func (ec *executionContext) _IOChaosAction_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9996 defer func() {
9997 if r := recover(); r != nil {
9998 ec.Error(ctx, ec.Recover(ctx, r))
9999 ret = graphql.Null
10000 }
10001 }()
10002 fc := &graphql.FieldContext{
10003 Object: "IOChaosAction",
10004 Field: field,
10005 Args: nil,
10006 IsMethod: false,
10007 IsResolver: false,
10008 }
10009
10010 ctx = graphql.WithFieldContext(ctx, fc)
10011 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10012 ctx = rctx
10013 return obj.Path, nil
10014 })
10015 if err != nil {
10016 ec.Error(ctx, err)
10017 return graphql.Null
10018 }
10019 if resTmp == nil {
10020 if !graphql.HasFieldError(ctx, fc) {
10021 ec.Errorf(ctx, "must not be null")
10022 }
10023 return graphql.Null
10024 }
10025 res := resTmp.(string)
10026 fc.Result = res
10027 return ec.marshalNString2string(ctx, field.Selections, res)
10028 }
10029
10030 func (ec *executionContext) _IOChaosAction_methods(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10031 defer func() {
10032 if r := recover(); r != nil {
10033 ec.Error(ctx, ec.Recover(ctx, r))
10034 ret = graphql.Null
10035 }
10036 }()
10037 fc := &graphql.FieldContext{
10038 Object: "IOChaosAction",
10039 Field: field,
10040 Args: nil,
10041 IsMethod: true,
10042 IsResolver: true,
10043 }
10044
10045 ctx = graphql.WithFieldContext(ctx, fc)
10046 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10047 ctx = rctx
10048 return ec.resolvers.IOChaosAction().Methods(rctx, obj)
10049 })
10050 if err != nil {
10051 ec.Error(ctx, err)
10052 return graphql.Null
10053 }
10054 if resTmp == nil {
10055 return graphql.Null
10056 }
10057 res := resTmp.([]string)
10058 fc.Result = res
10059 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
10060 }
10061
10062 func (ec *executionContext) _IOChaosAction_percent(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10063 defer func() {
10064 if r := recover(); r != nil {
10065 ec.Error(ctx, ec.Recover(ctx, r))
10066 ret = graphql.Null
10067 }
10068 }()
10069 fc := &graphql.FieldContext{
10070 Object: "IOChaosAction",
10071 Field: field,
10072 Args: nil,
10073 IsMethod: false,
10074 IsResolver: false,
10075 }
10076
10077 ctx = graphql.WithFieldContext(ctx, fc)
10078 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10079 ctx = rctx
10080 return obj.Percent, nil
10081 })
10082 if err != nil {
10083 ec.Error(ctx, err)
10084 return graphql.Null
10085 }
10086 if resTmp == nil {
10087 return graphql.Null
10088 }
10089 res := resTmp.(int)
10090 fc.Result = res
10091 return ec.marshalOInt2int(ctx, field.Selections, res)
10092 }
10093
10094 func (ec *executionContext) _IOChaosAction_faults(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10095 defer func() {
10096 if r := recover(); r != nil {
10097 ec.Error(ctx, ec.Recover(ctx, r))
10098 ret = graphql.Null
10099 }
10100 }()
10101 fc := &graphql.FieldContext{
10102 Object: "IOChaosAction",
10103 Field: field,
10104 Args: nil,
10105 IsMethod: false,
10106 IsResolver: false,
10107 }
10108
10109 ctx = graphql.WithFieldContext(ctx, fc)
10110 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10111 ctx = rctx
10112 return obj.Faults, nil
10113 })
10114 if err != nil {
10115 ec.Error(ctx, err)
10116 return graphql.Null
10117 }
10118 if resTmp == nil {
10119 return graphql.Null
10120 }
10121 res := resTmp.([]v1alpha1.IoFault)
10122 fc.Result = res
10123 return ec.marshalOIoFault2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFaultᚄ(ctx, field.Selections, res)
10124 }
10125
10126 func (ec *executionContext) _IOChaosAction_latency(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10127 defer func() {
10128 if r := recover(); r != nil {
10129 ec.Error(ctx, ec.Recover(ctx, r))
10130 ret = graphql.Null
10131 }
10132 }()
10133 fc := &graphql.FieldContext{
10134 Object: "IOChaosAction",
10135 Field: field,
10136 Args: nil,
10137 IsMethod: false,
10138 IsResolver: false,
10139 }
10140
10141 ctx = graphql.WithFieldContext(ctx, fc)
10142 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10143 ctx = rctx
10144 return obj.Latency, nil
10145 })
10146 if err != nil {
10147 ec.Error(ctx, err)
10148 return graphql.Null
10149 }
10150 if resTmp == nil {
10151 return graphql.Null
10152 }
10153 res := resTmp.(string)
10154 fc.Result = res
10155 return ec.marshalOString2string(ctx, field.Selections, res)
10156 }
10157
10158 func (ec *executionContext) _IOChaosAction_ino(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10159 defer func() {
10160 if r := recover(); r != nil {
10161 ec.Error(ctx, ec.Recover(ctx, r))
10162 ret = graphql.Null
10163 }
10164 }()
10165 fc := &graphql.FieldContext{
10166 Object: "IOChaosAction",
10167 Field: field,
10168 Args: nil,
10169 IsMethod: true,
10170 IsResolver: true,
10171 }
10172
10173 ctx = graphql.WithFieldContext(ctx, fc)
10174 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10175 ctx = rctx
10176 return ec.resolvers.IOChaosAction().Ino(rctx, obj)
10177 })
10178 if err != nil {
10179 ec.Error(ctx, err)
10180 return graphql.Null
10181 }
10182 if resTmp == nil {
10183 return graphql.Null
10184 }
10185 res := resTmp.(*int64)
10186 fc.Result = res
10187 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10188 }
10189
10190 func (ec *executionContext) _IOChaosAction_size(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10191 defer func() {
10192 if r := recover(); r != nil {
10193 ec.Error(ctx, ec.Recover(ctx, r))
10194 ret = graphql.Null
10195 }
10196 }()
10197 fc := &graphql.FieldContext{
10198 Object: "IOChaosAction",
10199 Field: field,
10200 Args: nil,
10201 IsMethod: true,
10202 IsResolver: true,
10203 }
10204
10205 ctx = graphql.WithFieldContext(ctx, fc)
10206 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10207 ctx = rctx
10208 return ec.resolvers.IOChaosAction().Size(rctx, obj)
10209 })
10210 if err != nil {
10211 ec.Error(ctx, err)
10212 return graphql.Null
10213 }
10214 if resTmp == nil {
10215 return graphql.Null
10216 }
10217 res := resTmp.(*int64)
10218 fc.Result = res
10219 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10220 }
10221
10222 func (ec *executionContext) _IOChaosAction_blocks(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10223 defer func() {
10224 if r := recover(); r != nil {
10225 ec.Error(ctx, ec.Recover(ctx, r))
10226 ret = graphql.Null
10227 }
10228 }()
10229 fc := &graphql.FieldContext{
10230 Object: "IOChaosAction",
10231 Field: field,
10232 Args: nil,
10233 IsMethod: true,
10234 IsResolver: true,
10235 }
10236
10237 ctx = graphql.WithFieldContext(ctx, fc)
10238 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10239 ctx = rctx
10240 return ec.resolvers.IOChaosAction().Blocks(rctx, obj)
10241 })
10242 if err != nil {
10243 ec.Error(ctx, err)
10244 return graphql.Null
10245 }
10246 if resTmp == nil {
10247 return graphql.Null
10248 }
10249 res := resTmp.(*int64)
10250 fc.Result = res
10251 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10252 }
10253
10254 func (ec *executionContext) _IOChaosAction_atime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10255 defer func() {
10256 if r := recover(); r != nil {
10257 ec.Error(ctx, ec.Recover(ctx, r))
10258 ret = graphql.Null
10259 }
10260 }()
10261 fc := &graphql.FieldContext{
10262 Object: "IOChaosAction",
10263 Field: field,
10264 Args: nil,
10265 IsMethod: true,
10266 IsResolver: true,
10267 }
10268
10269 ctx = graphql.WithFieldContext(ctx, fc)
10270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10271 ctx = rctx
10272 return ec.resolvers.IOChaosAction().Atime(rctx, obj)
10273 })
10274 if err != nil {
10275 ec.Error(ctx, err)
10276 return graphql.Null
10277 }
10278 if resTmp == nil {
10279 return graphql.Null
10280 }
10281 res := resTmp.(*v1alpha1.Timespec)
10282 fc.Result = res
10283 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
10284 }
10285
10286 func (ec *executionContext) _IOChaosAction_mtime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10287 defer func() {
10288 if r := recover(); r != nil {
10289 ec.Error(ctx, ec.Recover(ctx, r))
10290 ret = graphql.Null
10291 }
10292 }()
10293 fc := &graphql.FieldContext{
10294 Object: "IOChaosAction",
10295 Field: field,
10296 Args: nil,
10297 IsMethod: true,
10298 IsResolver: true,
10299 }
10300
10301 ctx = graphql.WithFieldContext(ctx, fc)
10302 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10303 ctx = rctx
10304 return ec.resolvers.IOChaosAction().Mtime(rctx, obj)
10305 })
10306 if err != nil {
10307 ec.Error(ctx, err)
10308 return graphql.Null
10309 }
10310 if resTmp == nil {
10311 return graphql.Null
10312 }
10313 res := resTmp.(*v1alpha1.Timespec)
10314 fc.Result = res
10315 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
10316 }
10317
10318 func (ec *executionContext) _IOChaosAction_ctime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10319 defer func() {
10320 if r := recover(); r != nil {
10321 ec.Error(ctx, ec.Recover(ctx, r))
10322 ret = graphql.Null
10323 }
10324 }()
10325 fc := &graphql.FieldContext{
10326 Object: "IOChaosAction",
10327 Field: field,
10328 Args: nil,
10329 IsMethod: true,
10330 IsResolver: true,
10331 }
10332
10333 ctx = graphql.WithFieldContext(ctx, fc)
10334 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10335 ctx = rctx
10336 return ec.resolvers.IOChaosAction().Ctime(rctx, obj)
10337 })
10338 if err != nil {
10339 ec.Error(ctx, err)
10340 return graphql.Null
10341 }
10342 if resTmp == nil {
10343 return graphql.Null
10344 }
10345 res := resTmp.(*v1alpha1.Timespec)
10346 fc.Result = res
10347 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
10348 }
10349
10350 func (ec *executionContext) _IOChaosAction_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10351 defer func() {
10352 if r := recover(); r != nil {
10353 ec.Error(ctx, ec.Recover(ctx, r))
10354 ret = graphql.Null
10355 }
10356 }()
10357 fc := &graphql.FieldContext{
10358 Object: "IOChaosAction",
10359 Field: field,
10360 Args: nil,
10361 IsMethod: true,
10362 IsResolver: true,
10363 }
10364
10365 ctx = graphql.WithFieldContext(ctx, fc)
10366 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10367 ctx = rctx
10368 return ec.resolvers.IOChaosAction().Kind(rctx, obj)
10369 })
10370 if err != nil {
10371 ec.Error(ctx, err)
10372 return graphql.Null
10373 }
10374 if resTmp == nil {
10375 return graphql.Null
10376 }
10377 res := resTmp.(*string)
10378 fc.Result = res
10379 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
10380 }
10381
10382 func (ec *executionContext) _IOChaosAction_perm(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10383 defer func() {
10384 if r := recover(); r != nil {
10385 ec.Error(ctx, ec.Recover(ctx, r))
10386 ret = graphql.Null
10387 }
10388 }()
10389 fc := &graphql.FieldContext{
10390 Object: "IOChaosAction",
10391 Field: field,
10392 Args: nil,
10393 IsMethod: true,
10394 IsResolver: true,
10395 }
10396
10397 ctx = graphql.WithFieldContext(ctx, fc)
10398 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10399 ctx = rctx
10400 return ec.resolvers.IOChaosAction().Perm(rctx, obj)
10401 })
10402 if err != nil {
10403 ec.Error(ctx, err)
10404 return graphql.Null
10405 }
10406 if resTmp == nil {
10407 return graphql.Null
10408 }
10409 res := resTmp.(*int)
10410 fc.Result = res
10411 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
10412 }
10413
10414 func (ec *executionContext) _IOChaosAction_nlink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10415 defer func() {
10416 if r := recover(); r != nil {
10417 ec.Error(ctx, ec.Recover(ctx, r))
10418 ret = graphql.Null
10419 }
10420 }()
10421 fc := &graphql.FieldContext{
10422 Object: "IOChaosAction",
10423 Field: field,
10424 Args: nil,
10425 IsMethod: true,
10426 IsResolver: true,
10427 }
10428
10429 ctx = graphql.WithFieldContext(ctx, fc)
10430 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10431 ctx = rctx
10432 return ec.resolvers.IOChaosAction().Nlink(rctx, obj)
10433 })
10434 if err != nil {
10435 ec.Error(ctx, err)
10436 return graphql.Null
10437 }
10438 if resTmp == nil {
10439 return graphql.Null
10440 }
10441 res := resTmp.(*int64)
10442 fc.Result = res
10443 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10444 }
10445
10446 func (ec *executionContext) _IOChaosAction_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10447 defer func() {
10448 if r := recover(); r != nil {
10449 ec.Error(ctx, ec.Recover(ctx, r))
10450 ret = graphql.Null
10451 }
10452 }()
10453 fc := &graphql.FieldContext{
10454 Object: "IOChaosAction",
10455 Field: field,
10456 Args: nil,
10457 IsMethod: true,
10458 IsResolver: true,
10459 }
10460
10461 ctx = graphql.WithFieldContext(ctx, fc)
10462 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10463 ctx = rctx
10464 return ec.resolvers.IOChaosAction().UID(rctx, obj)
10465 })
10466 if err != nil {
10467 ec.Error(ctx, err)
10468 return graphql.Null
10469 }
10470 if resTmp == nil {
10471 return graphql.Null
10472 }
10473 res := resTmp.(*int64)
10474 fc.Result = res
10475 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10476 }
10477
10478 func (ec *executionContext) _IOChaosAction_gid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10479 defer func() {
10480 if r := recover(); r != nil {
10481 ec.Error(ctx, ec.Recover(ctx, r))
10482 ret = graphql.Null
10483 }
10484 }()
10485 fc := &graphql.FieldContext{
10486 Object: "IOChaosAction",
10487 Field: field,
10488 Args: nil,
10489 IsMethod: true,
10490 IsResolver: true,
10491 }
10492
10493 ctx = graphql.WithFieldContext(ctx, fc)
10494 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10495 ctx = rctx
10496 return ec.resolvers.IOChaosAction().Gid(rctx, obj)
10497 })
10498 if err != nil {
10499 ec.Error(ctx, err)
10500 return graphql.Null
10501 }
10502 if resTmp == nil {
10503 return graphql.Null
10504 }
10505 res := resTmp.(*int64)
10506 fc.Result = res
10507 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10508 }
10509
10510 func (ec *executionContext) _IOChaosAction_rdev(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10511 defer func() {
10512 if r := recover(); r != nil {
10513 ec.Error(ctx, ec.Recover(ctx, r))
10514 ret = graphql.Null
10515 }
10516 }()
10517 fc := &graphql.FieldContext{
10518 Object: "IOChaosAction",
10519 Field: field,
10520 Args: nil,
10521 IsMethod: true,
10522 IsResolver: true,
10523 }
10524
10525 ctx = graphql.WithFieldContext(ctx, fc)
10526 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10527 ctx = rctx
10528 return ec.resolvers.IOChaosAction().Rdev(rctx, obj)
10529 })
10530 if err != nil {
10531 ec.Error(ctx, err)
10532 return graphql.Null
10533 }
10534 if resTmp == nil {
10535 return graphql.Null
10536 }
10537 res := resTmp.(*int64)
10538 fc.Result = res
10539 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10540 }
10541
10542 func (ec *executionContext) _IOChaosAction_filling(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10543 defer func() {
10544 if r := recover(); r != nil {
10545 ec.Error(ctx, ec.Recover(ctx, r))
10546 ret = graphql.Null
10547 }
10548 }()
10549 fc := &graphql.FieldContext{
10550 Object: "IOChaosAction",
10551 Field: field,
10552 Args: nil,
10553 IsMethod: true,
10554 IsResolver: true,
10555 }
10556
10557 ctx = graphql.WithFieldContext(ctx, fc)
10558 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10559 ctx = rctx
10560 return ec.resolvers.IOChaosAction().Filling(rctx, obj)
10561 })
10562 if err != nil {
10563 ec.Error(ctx, err)
10564 return graphql.Null
10565 }
10566 if resTmp == nil {
10567 return graphql.Null
10568 }
10569 res := resTmp.(*string)
10570 fc.Result = res
10571 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
10572 }
10573
10574 func (ec *executionContext) _IOChaosAction_maxOccurrences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10575 defer func() {
10576 if r := recover(); r != nil {
10577 ec.Error(ctx, ec.Recover(ctx, r))
10578 ret = graphql.Null
10579 }
10580 }()
10581 fc := &graphql.FieldContext{
10582 Object: "IOChaosAction",
10583 Field: field,
10584 Args: nil,
10585 IsMethod: true,
10586 IsResolver: true,
10587 }
10588
10589 ctx = graphql.WithFieldContext(ctx, fc)
10590 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10591 ctx = rctx
10592 return ec.resolvers.IOChaosAction().MaxOccurrences(rctx, obj)
10593 })
10594 if err != nil {
10595 ec.Error(ctx, err)
10596 return graphql.Null
10597 }
10598 if resTmp == nil {
10599 return graphql.Null
10600 }
10601 res := resTmp.(*int64)
10602 fc.Result = res
10603 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10604 }
10605
10606 func (ec *executionContext) _IOChaosAction_maxLength(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10607 defer func() {
10608 if r := recover(); r != nil {
10609 ec.Error(ctx, ec.Recover(ctx, r))
10610 ret = graphql.Null
10611 }
10612 }()
10613 fc := &graphql.FieldContext{
10614 Object: "IOChaosAction",
10615 Field: field,
10616 Args: nil,
10617 IsMethod: true,
10618 IsResolver: true,
10619 }
10620
10621 ctx = graphql.WithFieldContext(ctx, fc)
10622 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10623 ctx = rctx
10624 return ec.resolvers.IOChaosAction().MaxLength(rctx, obj)
10625 })
10626 if err != nil {
10627 ec.Error(ctx, err)
10628 return graphql.Null
10629 }
10630 if resTmp == nil {
10631 return graphql.Null
10632 }
10633 res := resTmp.(*int64)
10634 fc.Result = res
10635 return ec.marshalOInt642ᚖint64(ctx, field.Selections, res)
10636 }
10637
10638 func (ec *executionContext) _IOChaosAction_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
10639 defer func() {
10640 if r := recover(); r != nil {
10641 ec.Error(ctx, ec.Recover(ctx, r))
10642 ret = graphql.Null
10643 }
10644 }()
10645 fc := &graphql.FieldContext{
10646 Object: "IOChaosAction",
10647 Field: field,
10648 Args: nil,
10649 IsMethod: false,
10650 IsResolver: false,
10651 }
10652
10653 ctx = graphql.WithFieldContext(ctx, fc)
10654 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10655 ctx = rctx
10656 return obj.Source, nil
10657 })
10658 if err != nil {
10659 ec.Error(ctx, err)
10660 return graphql.Null
10661 }
10662 if resTmp == nil {
10663 if !graphql.HasFieldError(ctx, fc) {
10664 ec.Errorf(ctx, "must not be null")
10665 }
10666 return graphql.Null
10667 }
10668 res := resTmp.(string)
10669 fc.Result = res
10670 return ec.marshalNString2string(ctx, field.Selections, res)
10671 }
10672
10673 func (ec *executionContext) _IOChaosSpec_containerNames(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10674 defer func() {
10675 if r := recover(); r != nil {
10676 ec.Error(ctx, ec.Recover(ctx, r))
10677 ret = graphql.Null
10678 }
10679 }()
10680 fc := &graphql.FieldContext{
10681 Object: "IOChaosSpec",
10682 Field: field,
10683 Args: nil,
10684 IsMethod: false,
10685 IsResolver: false,
10686 }
10687
10688 ctx = graphql.WithFieldContext(ctx, fc)
10689 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10690 ctx = rctx
10691 return obj.ContainerNames, nil
10692 })
10693 if err != nil {
10694 ec.Error(ctx, err)
10695 return graphql.Null
10696 }
10697 if resTmp == nil {
10698 return graphql.Null
10699 }
10700 res := resTmp.([]string)
10701 fc.Result = res
10702 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
10703 }
10704
10705 func (ec *executionContext) _IOChaosSpec_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10706 defer func() {
10707 if r := recover(); r != nil {
10708 ec.Error(ctx, ec.Recover(ctx, r))
10709 ret = graphql.Null
10710 }
10711 }()
10712 fc := &graphql.FieldContext{
10713 Object: "IOChaosSpec",
10714 Field: field,
10715 Args: nil,
10716 IsMethod: false,
10717 IsResolver: false,
10718 }
10719
10720 ctx = graphql.WithFieldContext(ctx, fc)
10721 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10722 ctx = rctx
10723 return obj.Selector, nil
10724 })
10725 if err != nil {
10726 ec.Error(ctx, err)
10727 return graphql.Null
10728 }
10729 if resTmp == nil {
10730 if !graphql.HasFieldError(ctx, fc) {
10731 ec.Errorf(ctx, "must not be null")
10732 }
10733 return graphql.Null
10734 }
10735 res := resTmp.(v1alpha1.PodSelectorSpec)
10736 fc.Result = res
10737 return ec.marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx, field.Selections, res)
10738 }
10739
10740 func (ec *executionContext) _IOChaosSpec_mode(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10741 defer func() {
10742 if r := recover(); r != nil {
10743 ec.Error(ctx, ec.Recover(ctx, r))
10744 ret = graphql.Null
10745 }
10746 }()
10747 fc := &graphql.FieldContext{
10748 Object: "IOChaosSpec",
10749 Field: field,
10750 Args: nil,
10751 IsMethod: true,
10752 IsResolver: true,
10753 }
10754
10755 ctx = graphql.WithFieldContext(ctx, fc)
10756 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10757 ctx = rctx
10758 return ec.resolvers.IOChaosSpec().Mode(rctx, obj)
10759 })
10760 if err != nil {
10761 ec.Error(ctx, err)
10762 return graphql.Null
10763 }
10764 if resTmp == nil {
10765 if !graphql.HasFieldError(ctx, fc) {
10766 ec.Errorf(ctx, "must not be null")
10767 }
10768 return graphql.Null
10769 }
10770 res := resTmp.(string)
10771 fc.Result = res
10772 return ec.marshalNString2string(ctx, field.Selections, res)
10773 }
10774
10775 func (ec *executionContext) _IOChaosSpec_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10776 defer func() {
10777 if r := recover(); r != nil {
10778 ec.Error(ctx, ec.Recover(ctx, r))
10779 ret = graphql.Null
10780 }
10781 }()
10782 fc := &graphql.FieldContext{
10783 Object: "IOChaosSpec",
10784 Field: field,
10785 Args: nil,
10786 IsMethod: false,
10787 IsResolver: false,
10788 }
10789
10790 ctx = graphql.WithFieldContext(ctx, fc)
10791 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10792 ctx = rctx
10793 return obj.Value, nil
10794 })
10795 if err != nil {
10796 ec.Error(ctx, err)
10797 return graphql.Null
10798 }
10799 if resTmp == nil {
10800 return graphql.Null
10801 }
10802 res := resTmp.(string)
10803 fc.Result = res
10804 return ec.marshalOString2string(ctx, field.Selections, res)
10805 }
10806
10807 func (ec *executionContext) _IOChaosSpec_action(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10808 defer func() {
10809 if r := recover(); r != nil {
10810 ec.Error(ctx, ec.Recover(ctx, r))
10811 ret = graphql.Null
10812 }
10813 }()
10814 fc := &graphql.FieldContext{
10815 Object: "IOChaosSpec",
10816 Field: field,
10817 Args: nil,
10818 IsMethod: true,
10819 IsResolver: true,
10820 }
10821
10822 ctx = graphql.WithFieldContext(ctx, fc)
10823 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10824 ctx = rctx
10825 return ec.resolvers.IOChaosSpec().Action(rctx, obj)
10826 })
10827 if err != nil {
10828 ec.Error(ctx, err)
10829 return graphql.Null
10830 }
10831 if resTmp == nil {
10832 if !graphql.HasFieldError(ctx, fc) {
10833 ec.Errorf(ctx, "must not be null")
10834 }
10835 return graphql.Null
10836 }
10837 res := resTmp.(string)
10838 fc.Result = res
10839 return ec.marshalNString2string(ctx, field.Selections, res)
10840 }
10841
10842 func (ec *executionContext) _IOChaosSpec_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10843 defer func() {
10844 if r := recover(); r != nil {
10845 ec.Error(ctx, ec.Recover(ctx, r))
10846 ret = graphql.Null
10847 }
10848 }()
10849 fc := &graphql.FieldContext{
10850 Object: "IOChaosSpec",
10851 Field: field,
10852 Args: nil,
10853 IsMethod: false,
10854 IsResolver: false,
10855 }
10856
10857 ctx = graphql.WithFieldContext(ctx, fc)
10858 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10859 ctx = rctx
10860 return obj.Delay, nil
10861 })
10862 if err != nil {
10863 ec.Error(ctx, err)
10864 return graphql.Null
10865 }
10866 if resTmp == nil {
10867 return graphql.Null
10868 }
10869 res := resTmp.(string)
10870 fc.Result = res
10871 return ec.marshalOString2string(ctx, field.Selections, res)
10872 }
10873
10874 func (ec *executionContext) _IOChaosSpec_errno(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10875 defer func() {
10876 if r := recover(); r != nil {
10877 ec.Error(ctx, ec.Recover(ctx, r))
10878 ret = graphql.Null
10879 }
10880 }()
10881 fc := &graphql.FieldContext{
10882 Object: "IOChaosSpec",
10883 Field: field,
10884 Args: nil,
10885 IsMethod: true,
10886 IsResolver: true,
10887 }
10888
10889 ctx = graphql.WithFieldContext(ctx, fc)
10890 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10891 ctx = rctx
10892 return ec.resolvers.IOChaosSpec().Errno(rctx, obj)
10893 })
10894 if err != nil {
10895 ec.Error(ctx, err)
10896 return graphql.Null
10897 }
10898 if resTmp == nil {
10899 return graphql.Null
10900 }
10901 res := resTmp.(*int)
10902 fc.Result = res
10903 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
10904 }
10905
10906 func (ec *executionContext) _IOChaosSpec_attr(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10907 defer func() {
10908 if r := recover(); r != nil {
10909 ec.Error(ctx, ec.Recover(ctx, r))
10910 ret = graphql.Null
10911 }
10912 }()
10913 fc := &graphql.FieldContext{
10914 Object: "IOChaosSpec",
10915 Field: field,
10916 Args: nil,
10917 IsMethod: false,
10918 IsResolver: false,
10919 }
10920
10921 ctx = graphql.WithFieldContext(ctx, fc)
10922 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10923 ctx = rctx
10924 return obj.Attr, nil
10925 })
10926 if err != nil {
10927 ec.Error(ctx, err)
10928 return graphql.Null
10929 }
10930 if resTmp == nil {
10931 return graphql.Null
10932 }
10933 res := resTmp.(*v1alpha1.AttrOverrideSpec)
10934 fc.Result = res
10935 return ec.marshalOAttrOverrideSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐAttrOverrideSpec(ctx, field.Selections, res)
10936 }
10937
10938 func (ec *executionContext) _IOChaosSpec_mistake(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10939 defer func() {
10940 if r := recover(); r != nil {
10941 ec.Error(ctx, ec.Recover(ctx, r))
10942 ret = graphql.Null
10943 }
10944 }()
10945 fc := &graphql.FieldContext{
10946 Object: "IOChaosSpec",
10947 Field: field,
10948 Args: nil,
10949 IsMethod: false,
10950 IsResolver: false,
10951 }
10952
10953 ctx = graphql.WithFieldContext(ctx, fc)
10954 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10955 ctx = rctx
10956 return obj.Mistake, nil
10957 })
10958 if err != nil {
10959 ec.Error(ctx, err)
10960 return graphql.Null
10961 }
10962 if resTmp == nil {
10963 return graphql.Null
10964 }
10965 res := resTmp.(*v1alpha1.MistakeSpec)
10966 fc.Result = res
10967 return ec.marshalOMistakeSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐMistakeSpec(ctx, field.Selections, res)
10968 }
10969
10970 func (ec *executionContext) _IOChaosSpec_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10971 defer func() {
10972 if r := recover(); r != nil {
10973 ec.Error(ctx, ec.Recover(ctx, r))
10974 ret = graphql.Null
10975 }
10976 }()
10977 fc := &graphql.FieldContext{
10978 Object: "IOChaosSpec",
10979 Field: field,
10980 Args: nil,
10981 IsMethod: false,
10982 IsResolver: false,
10983 }
10984
10985 ctx = graphql.WithFieldContext(ctx, fc)
10986 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10987 ctx = rctx
10988 return obj.Path, nil
10989 })
10990 if err != nil {
10991 ec.Error(ctx, err)
10992 return graphql.Null
10993 }
10994 if resTmp == nil {
10995 return graphql.Null
10996 }
10997 res := resTmp.(string)
10998 fc.Result = res
10999 return ec.marshalOString2string(ctx, field.Selections, res)
11000 }
11001
11002 func (ec *executionContext) _IOChaosSpec_methods(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
11003 defer func() {
11004 if r := recover(); r != nil {
11005 ec.Error(ctx, ec.Recover(ctx, r))
11006 ret = graphql.Null
11007 }
11008 }()
11009 fc := &graphql.FieldContext{
11010 Object: "IOChaosSpec",
11011 Field: field,
11012 Args: nil,
11013 IsMethod: true,
11014 IsResolver: true,
11015 }
11016
11017 ctx = graphql.WithFieldContext(ctx, fc)
11018 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11019 ctx = rctx
11020 return ec.resolvers.IOChaosSpec().Methods(rctx, obj)
11021 })
11022 if err != nil {
11023 ec.Error(ctx, err)
11024 return graphql.Null
11025 }
11026 if resTmp == nil {
11027 return graphql.Null
11028 }
11029 res := resTmp.([]string)
11030 fc.Result = res
11031 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
11032 }
11033
11034 func (ec *executionContext) _IOChaosSpec_percent(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
11035 defer func() {
11036 if r := recover(); r != nil {
11037 ec.Error(ctx, ec.Recover(ctx, r))
11038 ret = graphql.Null
11039 }
11040 }()
11041 fc := &graphql.FieldContext{
11042 Object: "IOChaosSpec",
11043 Field: field,
11044 Args: nil,
11045 IsMethod: false,
11046 IsResolver: false,
11047 }
11048
11049 ctx = graphql.WithFieldContext(ctx, fc)
11050 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11051 ctx = rctx
11052 return obj.Percent, nil
11053 })
11054 if err != nil {
11055 ec.Error(ctx, err)
11056 return graphql.Null
11057 }
11058 if resTmp == nil {
11059 return graphql.Null
11060 }
11061 res := resTmp.(int)
11062 fc.Result = res
11063 return ec.marshalOInt2int(ctx, field.Selections, res)
11064 }
11065
11066 func (ec *executionContext) _IOChaosSpec_volumePath(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
11067 defer func() {
11068 if r := recover(); r != nil {
11069 ec.Error(ctx, ec.Recover(ctx, r))
11070 ret = graphql.Null
11071 }
11072 }()
11073 fc := &graphql.FieldContext{
11074 Object: "IOChaosSpec",
11075 Field: field,
11076 Args: nil,
11077 IsMethod: false,
11078 IsResolver: false,
11079 }
11080
11081 ctx = graphql.WithFieldContext(ctx, fc)
11082 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11083 ctx = rctx
11084 return obj.VolumePath, nil
11085 })
11086 if err != nil {
11087 ec.Error(ctx, err)
11088 return graphql.Null
11089 }
11090 if resTmp == nil {
11091 if !graphql.HasFieldError(ctx, fc) {
11092 ec.Errorf(ctx, "must not be null")
11093 }
11094 return graphql.Null
11095 }
11096 res := resTmp.(string)
11097 fc.Result = res
11098 return ec.marshalNString2string(ctx, field.Selections, res)
11099 }
11100
11101 func (ec *executionContext) _IOChaosSpec_duration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
11102 defer func() {
11103 if r := recover(); r != nil {
11104 ec.Error(ctx, ec.Recover(ctx, r))
11105 ret = graphql.Null
11106 }
11107 }()
11108 fc := &graphql.FieldContext{
11109 Object: "IOChaosSpec",
11110 Field: field,
11111 Args: nil,
11112 IsMethod: false,
11113 IsResolver: false,
11114 }
11115
11116 ctx = graphql.WithFieldContext(ctx, fc)
11117 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11118 ctx = rctx
11119 return obj.Duration, nil
11120 })
11121 if err != nil {
11122 ec.Error(ctx, err)
11123 return graphql.Null
11124 }
11125 if resTmp == nil {
11126 return graphql.Null
11127 }
11128 res := resTmp.(*string)
11129 fc.Result = res
11130 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
11131 }
11132
11133 func (ec *executionContext) _IOChaosStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosStatus) (ret graphql.Marshaler) {
11134 defer func() {
11135 if r := recover(); r != nil {
11136 ec.Error(ctx, ec.Recover(ctx, r))
11137 ret = graphql.Null
11138 }
11139 }()
11140 fc := &graphql.FieldContext{
11141 Object: "IOChaosStatus",
11142 Field: field,
11143 Args: nil,
11144 IsMethod: false,
11145 IsResolver: false,
11146 }
11147
11148 ctx = graphql.WithFieldContext(ctx, fc)
11149 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11150 ctx = rctx
11151 return obj.Conditions, nil
11152 })
11153 if err != nil {
11154 ec.Error(ctx, err)
11155 return graphql.Null
11156 }
11157 if resTmp == nil {
11158 return graphql.Null
11159 }
11160 res := resTmp.([]v1alpha1.ChaosCondition)
11161 fc.Result = res
11162 return ec.marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx, field.Selections, res)
11163 }
11164
11165 func (ec *executionContext) _IOChaosStatus_experiment(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosStatus) (ret graphql.Marshaler) {
11166 defer func() {
11167 if r := recover(); r != nil {
11168 ec.Error(ctx, ec.Recover(ctx, r))
11169 ret = graphql.Null
11170 }
11171 }()
11172 fc := &graphql.FieldContext{
11173 Object: "IOChaosStatus",
11174 Field: field,
11175 Args: nil,
11176 IsMethod: false,
11177 IsResolver: false,
11178 }
11179
11180 ctx = graphql.WithFieldContext(ctx, fc)
11181 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11182 ctx = rctx
11183 return obj.Experiment, nil
11184 })
11185 if err != nil {
11186 ec.Error(ctx, err)
11187 return graphql.Null
11188 }
11189 if resTmp == nil {
11190 return graphql.Null
11191 }
11192 res := resTmp.(v1alpha1.ExperimentStatus)
11193 fc.Result = res
11194 return ec.marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx, field.Selections, res)
11195 }
11196
11197 func (ec *executionContext) _IOChaosStatus_instances(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosStatus) (ret graphql.Marshaler) {
11198 defer func() {
11199 if r := recover(); r != nil {
11200 ec.Error(ctx, ec.Recover(ctx, r))
11201 ret = graphql.Null
11202 }
11203 }()
11204 fc := &graphql.FieldContext{
11205 Object: "IOChaosStatus",
11206 Field: field,
11207 Args: nil,
11208 IsMethod: true,
11209 IsResolver: true,
11210 }
11211
11212 ctx = graphql.WithFieldContext(ctx, fc)
11213 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11214 ctx = rctx
11215 return ec.resolvers.IOChaosStatus().Instances(rctx, obj)
11216 })
11217 if err != nil {
11218 ec.Error(ctx, err)
11219 return graphql.Null
11220 }
11221 if resTmp == nil {
11222 return graphql.Null
11223 }
11224 res := resTmp.(map[string]interface{})
11225 fc.Result = res
11226 return ec.marshalOMap2map(ctx, field.Selections, res)
11227 }
11228
11229 func (ec *executionContext) _IoFault_errno(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IoFault) (ret graphql.Marshaler) {
11230 defer func() {
11231 if r := recover(); r != nil {
11232 ec.Error(ctx, ec.Recover(ctx, r))
11233 ret = graphql.Null
11234 }
11235 }()
11236 fc := &graphql.FieldContext{
11237 Object: "IoFault",
11238 Field: field,
11239 Args: nil,
11240 IsMethod: true,
11241 IsResolver: true,
11242 }
11243
11244 ctx = graphql.WithFieldContext(ctx, fc)
11245 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11246 ctx = rctx
11247 return ec.resolvers.IoFault().Errno(rctx, obj)
11248 })
11249 if err != nil {
11250 ec.Error(ctx, err)
11251 return graphql.Null
11252 }
11253 if resTmp == nil {
11254 if !graphql.HasFieldError(ctx, fc) {
11255 ec.Errorf(ctx, "must not be null")
11256 }
11257 return graphql.Null
11258 }
11259 res := resTmp.(int)
11260 fc.Result = res
11261 return ec.marshalNInt2int(ctx, field.Selections, res)
11262 }
11263
11264 func (ec *executionContext) _IoFault_weight(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IoFault) (ret graphql.Marshaler) {
11265 defer func() {
11266 if r := recover(); r != nil {
11267 ec.Error(ctx, ec.Recover(ctx, r))
11268 ret = graphql.Null
11269 }
11270 }()
11271 fc := &graphql.FieldContext{
11272 Object: "IoFault",
11273 Field: field,
11274 Args: nil,
11275 IsMethod: false,
11276 IsResolver: false,
11277 }
11278
11279 ctx = graphql.WithFieldContext(ctx, fc)
11280 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11281 ctx = rctx
11282 return obj.Weight, nil
11283 })
11284 if err != nil {
11285 ec.Error(ctx, err)
11286 return graphql.Null
11287 }
11288 if resTmp == nil {
11289 if !graphql.HasFieldError(ctx, fc) {
11290 ec.Errorf(ctx, "must not be null")
11291 }
11292 return graphql.Null
11293 }
11294 res := resTmp.(int32)
11295 fc.Result = res
11296 return ec.marshalNInt2int32(ctx, field.Selections, res)
11297 }
11298
11299 func (ec *executionContext) _KillProcessResult_pid(ctx context.Context, field graphql.CollectedField, obj *model.KillProcessResult) (ret graphql.Marshaler) {
11300 defer func() {
11301 if r := recover(); r != nil {
11302 ec.Error(ctx, ec.Recover(ctx, r))
11303 ret = graphql.Null
11304 }
11305 }()
11306 fc := &graphql.FieldContext{
11307 Object: "KillProcessResult",
11308 Field: field,
11309 Args: nil,
11310 IsMethod: false,
11311 IsResolver: false,
11312 }
11313
11314 ctx = graphql.WithFieldContext(ctx, fc)
11315 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11316 ctx = rctx
11317 return obj.Pid, nil
11318 })
11319 if err != nil {
11320 ec.Error(ctx, err)
11321 return graphql.Null
11322 }
11323 if resTmp == nil {
11324 if !graphql.HasFieldError(ctx, fc) {
11325 ec.Errorf(ctx, "must not be null")
11326 }
11327 return graphql.Null
11328 }
11329 res := resTmp.(string)
11330 fc.Result = res
11331 return ec.marshalNString2string(ctx, field.Selections, res)
11332 }
11333
11334 func (ec *executionContext) _KillProcessResult_command(ctx context.Context, field graphql.CollectedField, obj *model.KillProcessResult) (ret graphql.Marshaler) {
11335 defer func() {
11336 if r := recover(); r != nil {
11337 ec.Error(ctx, ec.Recover(ctx, r))
11338 ret = graphql.Null
11339 }
11340 }()
11341 fc := &graphql.FieldContext{
11342 Object: "KillProcessResult",
11343 Field: field,
11344 Args: nil,
11345 IsMethod: false,
11346 IsResolver: false,
11347 }
11348
11349 ctx = graphql.WithFieldContext(ctx, fc)
11350 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11351 ctx = rctx
11352 return obj.Command, nil
11353 })
11354 if err != nil {
11355 ec.Error(ctx, err)
11356 return graphql.Null
11357 }
11358 if resTmp == nil {
11359 if !graphql.HasFieldError(ctx, fc) {
11360 ec.Errorf(ctx, "must not be null")
11361 }
11362 return graphql.Null
11363 }
11364 res := resTmp.(string)
11365 fc.Result = res
11366 return ec.marshalNString2string(ctx, field.Selections, res)
11367 }
11368
11369 func (ec *executionContext) _Logger_component(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) {
11370 defer func() {
11371 if r := recover(); r != nil {
11372 ec.Error(ctx, ec.Recover(ctx, r))
11373 ret = nil
11374 }
11375 }()
11376 fc := &graphql.FieldContext{
11377 Object: "Logger",
11378 Field: field,
11379 Args: nil,
11380 IsMethod: true,
11381 IsResolver: true,
11382 }
11383
11384 ctx = graphql.WithFieldContext(ctx, fc)
11385 rawArgs := field.ArgumentMap(ec.Variables)
11386 args, err := ec.field_Logger_component_args(ctx, rawArgs)
11387 if err != nil {
11388 ec.Error(ctx, err)
11389 return nil
11390 }
11391 fc.Args = args
11392 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11393 ctx = rctx
11394 return ec.resolvers.Logger().Component(rctx, args["ns"].(string), args["component"].(model.Component))
11395 })
11396 if err != nil {
11397 ec.Error(ctx, err)
11398 return nil
11399 }
11400 if resTmp == nil {
11401 if !graphql.HasFieldError(ctx, fc) {
11402 ec.Errorf(ctx, "must not be null")
11403 }
11404 return nil
11405 }
11406 return func() graphql.Marshaler {
11407 res, ok := <-resTmp.(<-chan string)
11408 if !ok {
11409 return nil
11410 }
11411 return graphql.WriterFunc(func(w io.Writer) {
11412 w.Write([]byte{'{'})
11413 graphql.MarshalString(field.Alias).MarshalGQL(w)
11414 w.Write([]byte{':'})
11415 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w)
11416 w.Write([]byte{'}'})
11417 })
11418 }
11419 }
11420
11421 func (ec *executionContext) _Logger_pod(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) {
11422 defer func() {
11423 if r := recover(); r != nil {
11424 ec.Error(ctx, ec.Recover(ctx, r))
11425 ret = nil
11426 }
11427 }()
11428 fc := &graphql.FieldContext{
11429 Object: "Logger",
11430 Field: field,
11431 Args: nil,
11432 IsMethod: true,
11433 IsResolver: true,
11434 }
11435
11436 ctx = graphql.WithFieldContext(ctx, fc)
11437 rawArgs := field.ArgumentMap(ec.Variables)
11438 args, err := ec.field_Logger_pod_args(ctx, rawArgs)
11439 if err != nil {
11440 ec.Error(ctx, err)
11441 return nil
11442 }
11443 fc.Args = args
11444 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11445 ctx = rctx
11446 return ec.resolvers.Logger().Pod(rctx, args["ns"].(string), args["name"].(string))
11447 })
11448 if err != nil {
11449 ec.Error(ctx, err)
11450 return nil
11451 }
11452 if resTmp == nil {
11453 if !graphql.HasFieldError(ctx, fc) {
11454 ec.Errorf(ctx, "must not be null")
11455 }
11456 return nil
11457 }
11458 return func() graphql.Marshaler {
11459 res, ok := <-resTmp.(<-chan string)
11460 if !ok {
11461 return nil
11462 }
11463 return graphql.WriterFunc(func(w io.Writer) {
11464 w.Write([]byte{'{'})
11465 graphql.MarshalString(field.Alias).MarshalGQL(w)
11466 w.Write([]byte{':'})
11467 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w)
11468 w.Write([]byte{'}'})
11469 })
11470 }
11471 }
11472
11473 func (ec *executionContext) _LossSpec_loss(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.LossSpec) (ret graphql.Marshaler) {
11474 defer func() {
11475 if r := recover(); r != nil {
11476 ec.Error(ctx, ec.Recover(ctx, r))
11477 ret = graphql.Null
11478 }
11479 }()
11480 fc := &graphql.FieldContext{
11481 Object: "LossSpec",
11482 Field: field,
11483 Args: nil,
11484 IsMethod: false,
11485 IsResolver: false,
11486 }
11487
11488 ctx = graphql.WithFieldContext(ctx, fc)
11489 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11490 ctx = rctx
11491 return obj.Loss, nil
11492 })
11493 if err != nil {
11494 ec.Error(ctx, err)
11495 return graphql.Null
11496 }
11497 if resTmp == nil {
11498 if !graphql.HasFieldError(ctx, fc) {
11499 ec.Errorf(ctx, "must not be null")
11500 }
11501 return graphql.Null
11502 }
11503 res := resTmp.(string)
11504 fc.Result = res
11505 return ec.marshalNString2string(ctx, field.Selections, res)
11506 }
11507
11508 func (ec *executionContext) _LossSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.LossSpec) (ret graphql.Marshaler) {
11509 defer func() {
11510 if r := recover(); r != nil {
11511 ec.Error(ctx, ec.Recover(ctx, r))
11512 ret = graphql.Null
11513 }
11514 }()
11515 fc := &graphql.FieldContext{
11516 Object: "LossSpec",
11517 Field: field,
11518 Args: nil,
11519 IsMethod: false,
11520 IsResolver: false,
11521 }
11522
11523 ctx = graphql.WithFieldContext(ctx, fc)
11524 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11525 ctx = rctx
11526 return obj.Correlation, nil
11527 })
11528 if err != nil {
11529 ec.Error(ctx, err)
11530 return graphql.Null
11531 }
11532 if resTmp == nil {
11533 return graphql.Null
11534 }
11535 res := resTmp.(string)
11536 fc.Result = res
11537 return ec.marshalOString2string(ctx, field.Selections, res)
11538 }
11539
11540 func (ec *executionContext) _MemoryStressor_workers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MemoryStressor) (ret graphql.Marshaler) {
11541 defer func() {
11542 if r := recover(); r != nil {
11543 ec.Error(ctx, ec.Recover(ctx, r))
11544 ret = graphql.Null
11545 }
11546 }()
11547 fc := &graphql.FieldContext{
11548 Object: "MemoryStressor",
11549 Field: field,
11550 Args: nil,
11551 IsMethod: false,
11552 IsResolver: false,
11553 }
11554
11555 ctx = graphql.WithFieldContext(ctx, fc)
11556 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11557 ctx = rctx
11558 return obj.Workers, nil
11559 })
11560 if err != nil {
11561 ec.Error(ctx, err)
11562 return graphql.Null
11563 }
11564 if resTmp == nil {
11565 if !graphql.HasFieldError(ctx, fc) {
11566 ec.Errorf(ctx, "must not be null")
11567 }
11568 return graphql.Null
11569 }
11570 res := resTmp.(int)
11571 fc.Result = res
11572 return ec.marshalNInt2int(ctx, field.Selections, res)
11573 }
11574
11575 func (ec *executionContext) _MemoryStressor_size(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MemoryStressor) (ret graphql.Marshaler) {
11576 defer func() {
11577 if r := recover(); r != nil {
11578 ec.Error(ctx, ec.Recover(ctx, r))
11579 ret = graphql.Null
11580 }
11581 }()
11582 fc := &graphql.FieldContext{
11583 Object: "MemoryStressor",
11584 Field: field,
11585 Args: nil,
11586 IsMethod: false,
11587 IsResolver: false,
11588 }
11589
11590 ctx = graphql.WithFieldContext(ctx, fc)
11591 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11592 ctx = rctx
11593 return obj.Size, nil
11594 })
11595 if err != nil {
11596 ec.Error(ctx, err)
11597 return graphql.Null
11598 }
11599 if resTmp == nil {
11600 return graphql.Null
11601 }
11602 res := resTmp.(string)
11603 fc.Result = res
11604 return ec.marshalOString2string(ctx, field.Selections, res)
11605 }
11606
11607 func (ec *executionContext) _MemoryStressor_options(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MemoryStressor) (ret graphql.Marshaler) {
11608 defer func() {
11609 if r := recover(); r != nil {
11610 ec.Error(ctx, ec.Recover(ctx, r))
11611 ret = graphql.Null
11612 }
11613 }()
11614 fc := &graphql.FieldContext{
11615 Object: "MemoryStressor",
11616 Field: field,
11617 Args: nil,
11618 IsMethod: false,
11619 IsResolver: false,
11620 }
11621
11622 ctx = graphql.WithFieldContext(ctx, fc)
11623 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11624 ctx = rctx
11625 return obj.Options, nil
11626 })
11627 if err != nil {
11628 ec.Error(ctx, err)
11629 return graphql.Null
11630 }
11631 if resTmp == nil {
11632 return graphql.Null
11633 }
11634 res := resTmp.([]string)
11635 fc.Result = res
11636 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
11637 }
11638
11639 func (ec *executionContext) _MistakeSpec_filling(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MistakeSpec) (ret graphql.Marshaler) {
11640 defer func() {
11641 if r := recover(); r != nil {
11642 ec.Error(ctx, ec.Recover(ctx, r))
11643 ret = graphql.Null
11644 }
11645 }()
11646 fc := &graphql.FieldContext{
11647 Object: "MistakeSpec",
11648 Field: field,
11649 Args: nil,
11650 IsMethod: true,
11651 IsResolver: true,
11652 }
11653
11654 ctx = graphql.WithFieldContext(ctx, fc)
11655 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11656 ctx = rctx
11657 return ec.resolvers.MistakeSpec().Filling(rctx, obj)
11658 })
11659 if err != nil {
11660 ec.Error(ctx, err)
11661 return graphql.Null
11662 }
11663 if resTmp == nil {
11664 return graphql.Null
11665 }
11666 res := resTmp.(*string)
11667 fc.Result = res
11668 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
11669 }
11670
11671 func (ec *executionContext) _MistakeSpec_maxOccurrences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MistakeSpec) (ret graphql.Marshaler) {
11672 defer func() {
11673 if r := recover(); r != nil {
11674 ec.Error(ctx, ec.Recover(ctx, r))
11675 ret = graphql.Null
11676 }
11677 }()
11678 fc := &graphql.FieldContext{
11679 Object: "MistakeSpec",
11680 Field: field,
11681 Args: nil,
11682 IsMethod: false,
11683 IsResolver: false,
11684 }
11685
11686 ctx = graphql.WithFieldContext(ctx, fc)
11687 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11688 ctx = rctx
11689 return obj.MaxOccurrences, nil
11690 })
11691 if err != nil {
11692 ec.Error(ctx, err)
11693 return graphql.Null
11694 }
11695 if resTmp == nil {
11696 return graphql.Null
11697 }
11698 res := resTmp.(int64)
11699 fc.Result = res
11700 return ec.marshalOInt2int64(ctx, field.Selections, res)
11701 }
11702
11703 func (ec *executionContext) _MistakeSpec_maxLength(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MistakeSpec) (ret graphql.Marshaler) {
11704 defer func() {
11705 if r := recover(); r != nil {
11706 ec.Error(ctx, ec.Recover(ctx, r))
11707 ret = graphql.Null
11708 }
11709 }()
11710 fc := &graphql.FieldContext{
11711 Object: "MistakeSpec",
11712 Field: field,
11713 Args: nil,
11714 IsMethod: false,
11715 IsResolver: false,
11716 }
11717
11718 ctx = graphql.WithFieldContext(ctx, fc)
11719 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11720 ctx = rctx
11721 return obj.MaxLength, nil
11722 })
11723 if err != nil {
11724 ec.Error(ctx, err)
11725 return graphql.Null
11726 }
11727 if resTmp == nil {
11728 return graphql.Null
11729 }
11730 res := resTmp.(int64)
11731 fc.Result = res
11732 return ec.marshalOInt2int64(ctx, field.Selections, res)
11733 }
11734
11735 func (ec *executionContext) _MutablePod_pod(ctx context.Context, field graphql.CollectedField, obj *model.MutablePod) (ret graphql.Marshaler) {
11736 defer func() {
11737 if r := recover(); r != nil {
11738 ec.Error(ctx, ec.Recover(ctx, r))
11739 ret = graphql.Null
11740 }
11741 }()
11742 fc := &graphql.FieldContext{
11743 Object: "MutablePod",
11744 Field: field,
11745 Args: nil,
11746 IsMethod: false,
11747 IsResolver: false,
11748 }
11749
11750 ctx = graphql.WithFieldContext(ctx, fc)
11751 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11752 ctx = rctx
11753 return obj.Pod, nil
11754 })
11755 if err != nil {
11756 ec.Error(ctx, err)
11757 return graphql.Null
11758 }
11759 if resTmp == nil {
11760 if !graphql.HasFieldError(ctx, fc) {
11761 ec.Errorf(ctx, "must not be null")
11762 }
11763 return graphql.Null
11764 }
11765 res := resTmp.(*v1.Pod)
11766 fc.Result = res
11767 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
11768 }
11769
11770 func (ec *executionContext) _MutablePod_killProcesses(ctx context.Context, field graphql.CollectedField, obj *model.MutablePod) (ret graphql.Marshaler) {
11771 defer func() {
11772 if r := recover(); r != nil {
11773 ec.Error(ctx, ec.Recover(ctx, r))
11774 ret = graphql.Null
11775 }
11776 }()
11777 fc := &graphql.FieldContext{
11778 Object: "MutablePod",
11779 Field: field,
11780 Args: nil,
11781 IsMethod: true,
11782 IsResolver: true,
11783 }
11784
11785 ctx = graphql.WithFieldContext(ctx, fc)
11786 rawArgs := field.ArgumentMap(ec.Variables)
11787 args, err := ec.field_MutablePod_killProcesses_args(ctx, rawArgs)
11788 if err != nil {
11789 ec.Error(ctx, err)
11790 return graphql.Null
11791 }
11792 fc.Args = args
11793 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11794 ctx = rctx
11795 return ec.resolvers.MutablePod().KillProcesses(rctx, obj, args["pids"].([]string))
11796 })
11797 if err != nil {
11798 ec.Error(ctx, err)
11799 return graphql.Null
11800 }
11801 if resTmp == nil {
11802 return graphql.Null
11803 }
11804 res := resTmp.([]*model.KillProcessResult)
11805 fc.Result = res
11806 return ec.marshalOKillProcessResult2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐKillProcessResultᚄ(ctx, field.Selections, res)
11807 }
11808
11809 func (ec *executionContext) _MutablePod_cleanTcs(ctx context.Context, field graphql.CollectedField, obj *model.MutablePod) (ret graphql.Marshaler) {
11810 defer func() {
11811 if r := recover(); r != nil {
11812 ec.Error(ctx, ec.Recover(ctx, r))
11813 ret = graphql.Null
11814 }
11815 }()
11816 fc := &graphql.FieldContext{
11817 Object: "MutablePod",
11818 Field: field,
11819 Args: nil,
11820 IsMethod: true,
11821 IsResolver: true,
11822 }
11823
11824 ctx = graphql.WithFieldContext(ctx, fc)
11825 rawArgs := field.ArgumentMap(ec.Variables)
11826 args, err := ec.field_MutablePod_cleanTcs_args(ctx, rawArgs)
11827 if err != nil {
11828 ec.Error(ctx, err)
11829 return graphql.Null
11830 }
11831 fc.Args = args
11832 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11833 ctx = rctx
11834 return ec.resolvers.MutablePod().CleanTcs(rctx, obj, args["devices"].([]string))
11835 })
11836 if err != nil {
11837 ec.Error(ctx, err)
11838 return graphql.Null
11839 }
11840 if resTmp == nil {
11841 return graphql.Null
11842 }
11843 res := resTmp.([]string)
11844 fc.Result = res
11845 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
11846 }
11847
11848 func (ec *executionContext) _MutablePod_cleanIptables(ctx context.Context, field graphql.CollectedField, obj *model.MutablePod) (ret graphql.Marshaler) {
11849 defer func() {
11850 if r := recover(); r != nil {
11851 ec.Error(ctx, ec.Recover(ctx, r))
11852 ret = graphql.Null
11853 }
11854 }()
11855 fc := &graphql.FieldContext{
11856 Object: "MutablePod",
11857 Field: field,
11858 Args: nil,
11859 IsMethod: true,
11860 IsResolver: true,
11861 }
11862
11863 ctx = graphql.WithFieldContext(ctx, fc)
11864 rawArgs := field.ArgumentMap(ec.Variables)
11865 args, err := ec.field_MutablePod_cleanIptables_args(ctx, rawArgs)
11866 if err != nil {
11867 ec.Error(ctx, err)
11868 return graphql.Null
11869 }
11870 fc.Args = args
11871 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11872 ctx = rctx
11873 return ec.resolvers.MutablePod().CleanIptables(rctx, obj, args["chains"].([]string))
11874 })
11875 if err != nil {
11876 ec.Error(ctx, err)
11877 return graphql.Null
11878 }
11879 if resTmp == nil {
11880 return graphql.Null
11881 }
11882 res := resTmp.([]string)
11883 fc.Result = res
11884 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
11885 }
11886
11887 func (ec *executionContext) _Mutation_pod(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
11888 defer func() {
11889 if r := recover(); r != nil {
11890 ec.Error(ctx, ec.Recover(ctx, r))
11891 ret = graphql.Null
11892 }
11893 }()
11894 fc := &graphql.FieldContext{
11895 Object: "Mutation",
11896 Field: field,
11897 Args: nil,
11898 IsMethod: true,
11899 IsResolver: true,
11900 }
11901
11902 ctx = graphql.WithFieldContext(ctx, fc)
11903 rawArgs := field.ArgumentMap(ec.Variables)
11904 args, err := ec.field_Mutation_pod_args(ctx, rawArgs)
11905 if err != nil {
11906 ec.Error(ctx, err)
11907 return graphql.Null
11908 }
11909 fc.Args = args
11910 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11911 ctx = rctx
11912 return ec.resolvers.Mutation().Pod(rctx, args["ns"].(string), args["name"].(string))
11913 })
11914 if err != nil {
11915 ec.Error(ctx, err)
11916 return graphql.Null
11917 }
11918 if resTmp == nil {
11919 return graphql.Null
11920 }
11921 res := resTmp.(*model.MutablePod)
11922 fc.Result = res
11923 return ec.marshalOMutablePod2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐMutablePod(ctx, field.Selections, res)
11924 }
11925
11926 func (ec *executionContext) _Namespace_ns(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
11927 defer func() {
11928 if r := recover(); r != nil {
11929 ec.Error(ctx, ec.Recover(ctx, r))
11930 ret = graphql.Null
11931 }
11932 }()
11933 fc := &graphql.FieldContext{
11934 Object: "Namespace",
11935 Field: field,
11936 Args: nil,
11937 IsMethod: false,
11938 IsResolver: false,
11939 }
11940
11941 ctx = graphql.WithFieldContext(ctx, fc)
11942 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11943 ctx = rctx
11944 return obj.Ns, nil
11945 })
11946 if err != nil {
11947 ec.Error(ctx, err)
11948 return graphql.Null
11949 }
11950 if resTmp == nil {
11951 if !graphql.HasFieldError(ctx, fc) {
11952 ec.Errorf(ctx, "must not be null")
11953 }
11954 return graphql.Null
11955 }
11956 res := resTmp.(string)
11957 fc.Result = res
11958 return ec.marshalNString2string(ctx, field.Selections, res)
11959 }
11960
11961 func (ec *executionContext) _Namespace_component(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
11962 defer func() {
11963 if r := recover(); r != nil {
11964 ec.Error(ctx, ec.Recover(ctx, r))
11965 ret = graphql.Null
11966 }
11967 }()
11968 fc := &graphql.FieldContext{
11969 Object: "Namespace",
11970 Field: field,
11971 Args: nil,
11972 IsMethod: true,
11973 IsResolver: true,
11974 }
11975
11976 ctx = graphql.WithFieldContext(ctx, fc)
11977 rawArgs := field.ArgumentMap(ec.Variables)
11978 args, err := ec.field_Namespace_component_args(ctx, rawArgs)
11979 if err != nil {
11980 ec.Error(ctx, err)
11981 return graphql.Null
11982 }
11983 fc.Args = args
11984 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11985 ctx = rctx
11986 return ec.resolvers.Namespace().Component(rctx, obj, args["component"].(model.Component))
11987 })
11988 if err != nil {
11989 ec.Error(ctx, err)
11990 return graphql.Null
11991 }
11992 if resTmp == nil {
11993 return graphql.Null
11994 }
11995 res := resTmp.([]*v1.Pod)
11996 fc.Result = res
11997 return ec.marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx, field.Selections, res)
11998 }
11999
12000 func (ec *executionContext) _Namespace_pod(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12001 defer func() {
12002 if r := recover(); r != nil {
12003 ec.Error(ctx, ec.Recover(ctx, r))
12004 ret = graphql.Null
12005 }
12006 }()
12007 fc := &graphql.FieldContext{
12008 Object: "Namespace",
12009 Field: field,
12010 Args: nil,
12011 IsMethod: true,
12012 IsResolver: true,
12013 }
12014
12015 ctx = graphql.WithFieldContext(ctx, fc)
12016 rawArgs := field.ArgumentMap(ec.Variables)
12017 args, err := ec.field_Namespace_pod_args(ctx, rawArgs)
12018 if err != nil {
12019 ec.Error(ctx, err)
12020 return graphql.Null
12021 }
12022 fc.Args = args
12023 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12024 ctx = rctx
12025 return ec.resolvers.Namespace().Pod(rctx, obj, args["name"].(*string))
12026 })
12027 if err != nil {
12028 ec.Error(ctx, err)
12029 return graphql.Null
12030 }
12031 if resTmp == nil {
12032 return graphql.Null
12033 }
12034 res := resTmp.([]*v1.Pod)
12035 fc.Result = res
12036 return ec.marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx, field.Selections, res)
12037 }
12038
12039 func (ec *executionContext) _Namespace_stresschaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12040 defer func() {
12041 if r := recover(); r != nil {
12042 ec.Error(ctx, ec.Recover(ctx, r))
12043 ret = graphql.Null
12044 }
12045 }()
12046 fc := &graphql.FieldContext{
12047 Object: "Namespace",
12048 Field: field,
12049 Args: nil,
12050 IsMethod: true,
12051 IsResolver: true,
12052 }
12053
12054 ctx = graphql.WithFieldContext(ctx, fc)
12055 rawArgs := field.ArgumentMap(ec.Variables)
12056 args, err := ec.field_Namespace_stresschaos_args(ctx, rawArgs)
12057 if err != nil {
12058 ec.Error(ctx, err)
12059 return graphql.Null
12060 }
12061 fc.Args = args
12062 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12063 ctx = rctx
12064 return ec.resolvers.Namespace().Stresschaos(rctx, obj, args["name"].(*string))
12065 })
12066 if err != nil {
12067 ec.Error(ctx, err)
12068 return graphql.Null
12069 }
12070 if resTmp == nil {
12071 return graphql.Null
12072 }
12073 res := resTmp.([]*v1alpha1.StressChaos)
12074 fc.Result = res
12075 return ec.marshalOStressChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaosᚄ(ctx, field.Selections, res)
12076 }
12077
12078 func (ec *executionContext) _Namespace_iochaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12079 defer func() {
12080 if r := recover(); r != nil {
12081 ec.Error(ctx, ec.Recover(ctx, r))
12082 ret = graphql.Null
12083 }
12084 }()
12085 fc := &graphql.FieldContext{
12086 Object: "Namespace",
12087 Field: field,
12088 Args: nil,
12089 IsMethod: true,
12090 IsResolver: true,
12091 }
12092
12093 ctx = graphql.WithFieldContext(ctx, fc)
12094 rawArgs := field.ArgumentMap(ec.Variables)
12095 args, err := ec.field_Namespace_iochaos_args(ctx, rawArgs)
12096 if err != nil {
12097 ec.Error(ctx, err)
12098 return graphql.Null
12099 }
12100 fc.Args = args
12101 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12102 ctx = rctx
12103 return ec.resolvers.Namespace().Iochaos(rctx, obj, args["name"].(*string))
12104 })
12105 if err != nil {
12106 ec.Error(ctx, err)
12107 return graphql.Null
12108 }
12109 if resTmp == nil {
12110 return graphql.Null
12111 }
12112 res := resTmp.([]*v1alpha1.IOChaos)
12113 fc.Result = res
12114 return ec.marshalOIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosᚄ(ctx, field.Selections, res)
12115 }
12116
12117 func (ec *executionContext) _Namespace_podiochaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12118 defer func() {
12119 if r := recover(); r != nil {
12120 ec.Error(ctx, ec.Recover(ctx, r))
12121 ret = graphql.Null
12122 }
12123 }()
12124 fc := &graphql.FieldContext{
12125 Object: "Namespace",
12126 Field: field,
12127 Args: nil,
12128 IsMethod: true,
12129 IsResolver: true,
12130 }
12131
12132 ctx = graphql.WithFieldContext(ctx, fc)
12133 rawArgs := field.ArgumentMap(ec.Variables)
12134 args, err := ec.field_Namespace_podiochaos_args(ctx, rawArgs)
12135 if err != nil {
12136 ec.Error(ctx, err)
12137 return graphql.Null
12138 }
12139 fc.Args = args
12140 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12141 ctx = rctx
12142 return ec.resolvers.Namespace().Podiochaos(rctx, obj, args["name"].(*string))
12143 })
12144 if err != nil {
12145 ec.Error(ctx, err)
12146 return graphql.Null
12147 }
12148 if resTmp == nil {
12149 return graphql.Null
12150 }
12151 res := resTmp.([]*v1alpha1.PodIOChaos)
12152 fc.Result = res
12153 return ec.marshalOPodIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosᚄ(ctx, field.Selections, res)
12154 }
12155
12156 func (ec *executionContext) _Namespace_httpchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12157 defer func() {
12158 if r := recover(); r != nil {
12159 ec.Error(ctx, ec.Recover(ctx, r))
12160 ret = graphql.Null
12161 }
12162 }()
12163 fc := &graphql.FieldContext{
12164 Object: "Namespace",
12165 Field: field,
12166 Args: nil,
12167 IsMethod: true,
12168 IsResolver: true,
12169 }
12170
12171 ctx = graphql.WithFieldContext(ctx, fc)
12172 rawArgs := field.ArgumentMap(ec.Variables)
12173 args, err := ec.field_Namespace_httpchaos_args(ctx, rawArgs)
12174 if err != nil {
12175 ec.Error(ctx, err)
12176 return graphql.Null
12177 }
12178 fc.Args = args
12179 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12180 ctx = rctx
12181 return ec.resolvers.Namespace().Httpchaos(rctx, obj, args["name"].(*string))
12182 })
12183 if err != nil {
12184 ec.Error(ctx, err)
12185 return graphql.Null
12186 }
12187 if resTmp == nil {
12188 return graphql.Null
12189 }
12190 res := resTmp.([]*v1alpha1.HTTPChaos)
12191 fc.Result = res
12192 return ec.marshalOHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosᚄ(ctx, field.Selections, res)
12193 }
12194
12195 func (ec *executionContext) _Namespace_podhttpchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12196 defer func() {
12197 if r := recover(); r != nil {
12198 ec.Error(ctx, ec.Recover(ctx, r))
12199 ret = graphql.Null
12200 }
12201 }()
12202 fc := &graphql.FieldContext{
12203 Object: "Namespace",
12204 Field: field,
12205 Args: nil,
12206 IsMethod: true,
12207 IsResolver: true,
12208 }
12209
12210 ctx = graphql.WithFieldContext(ctx, fc)
12211 rawArgs := field.ArgumentMap(ec.Variables)
12212 args, err := ec.field_Namespace_podhttpchaos_args(ctx, rawArgs)
12213 if err != nil {
12214 ec.Error(ctx, err)
12215 return graphql.Null
12216 }
12217 fc.Args = args
12218 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12219 ctx = rctx
12220 return ec.resolvers.Namespace().Podhttpchaos(rctx, obj, args["name"].(*string))
12221 })
12222 if err != nil {
12223 ec.Error(ctx, err)
12224 return graphql.Null
12225 }
12226 if resTmp == nil {
12227 return graphql.Null
12228 }
12229 res := resTmp.([]*v1alpha1.PodHttpChaos)
12230 fc.Result = res
12231 return ec.marshalOPodHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosᚄ(ctx, field.Selections, res)
12232 }
12233
12234 func (ec *executionContext) _Namespace_networkchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12235 defer func() {
12236 if r := recover(); r != nil {
12237 ec.Error(ctx, ec.Recover(ctx, r))
12238 ret = graphql.Null
12239 }
12240 }()
12241 fc := &graphql.FieldContext{
12242 Object: "Namespace",
12243 Field: field,
12244 Args: nil,
12245 IsMethod: true,
12246 IsResolver: true,
12247 }
12248
12249 ctx = graphql.WithFieldContext(ctx, fc)
12250 rawArgs := field.ArgumentMap(ec.Variables)
12251 args, err := ec.field_Namespace_networkchaos_args(ctx, rawArgs)
12252 if err != nil {
12253 ec.Error(ctx, err)
12254 return graphql.Null
12255 }
12256 fc.Args = args
12257 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12258 ctx = rctx
12259 return ec.resolvers.Namespace().Networkchaos(rctx, obj, args["name"].(*string))
12260 })
12261 if err != nil {
12262 ec.Error(ctx, err)
12263 return graphql.Null
12264 }
12265 if resTmp == nil {
12266 return graphql.Null
12267 }
12268 res := resTmp.([]*v1alpha1.NetworkChaos)
12269 fc.Result = res
12270 return ec.marshalONetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaosᚄ(ctx, field.Selections, res)
12271 }
12272
12273 func (ec *executionContext) _Namespace_podnetworkchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
12274 defer func() {
12275 if r := recover(); r != nil {
12276 ec.Error(ctx, ec.Recover(ctx, r))
12277 ret = graphql.Null
12278 }
12279 }()
12280 fc := &graphql.FieldContext{
12281 Object: "Namespace",
12282 Field: field,
12283 Args: nil,
12284 IsMethod: true,
12285 IsResolver: true,
12286 }
12287
12288 ctx = graphql.WithFieldContext(ctx, fc)
12289 rawArgs := field.ArgumentMap(ec.Variables)
12290 args, err := ec.field_Namespace_podnetworkchaos_args(ctx, rawArgs)
12291 if err != nil {
12292 ec.Error(ctx, err)
12293 return graphql.Null
12294 }
12295 fc.Args = args
12296 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12297 ctx = rctx
12298 return ec.resolvers.Namespace().Podnetworkchaos(rctx, obj, args["name"].(*string))
12299 })
12300 if err != nil {
12301 ec.Error(ctx, err)
12302 return graphql.Null
12303 }
12304 if resTmp == nil {
12305 return graphql.Null
12306 }
12307 res := resTmp.([]*v1alpha1.PodNetworkChaos)
12308 fc.Result = res
12309 return ec.marshalOPodNetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosᚄ(ctx, field.Selections, res)
12310 }
12311
12312 func (ec *executionContext) _NetworkChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12313 defer func() {
12314 if r := recover(); r != nil {
12315 ec.Error(ctx, ec.Recover(ctx, r))
12316 ret = graphql.Null
12317 }
12318 }()
12319 fc := &graphql.FieldContext{
12320 Object: "NetworkChaos",
12321 Field: field,
12322 Args: nil,
12323 IsMethod: false,
12324 IsResolver: false,
12325 }
12326
12327 ctx = graphql.WithFieldContext(ctx, fc)
12328 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12329 ctx = rctx
12330 return obj.Kind, nil
12331 })
12332 if err != nil {
12333 ec.Error(ctx, err)
12334 return graphql.Null
12335 }
12336 if resTmp == nil {
12337 if !graphql.HasFieldError(ctx, fc) {
12338 ec.Errorf(ctx, "must not be null")
12339 }
12340 return graphql.Null
12341 }
12342 res := resTmp.(string)
12343 fc.Result = res
12344 return ec.marshalNString2string(ctx, field.Selections, res)
12345 }
12346
12347 func (ec *executionContext) _NetworkChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12348 defer func() {
12349 if r := recover(); r != nil {
12350 ec.Error(ctx, ec.Recover(ctx, r))
12351 ret = graphql.Null
12352 }
12353 }()
12354 fc := &graphql.FieldContext{
12355 Object: "NetworkChaos",
12356 Field: field,
12357 Args: nil,
12358 IsMethod: false,
12359 IsResolver: false,
12360 }
12361
12362 ctx = graphql.WithFieldContext(ctx, fc)
12363 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12364 ctx = rctx
12365 return obj.APIVersion, nil
12366 })
12367 if err != nil {
12368 ec.Error(ctx, err)
12369 return graphql.Null
12370 }
12371 if resTmp == nil {
12372 if !graphql.HasFieldError(ctx, fc) {
12373 ec.Errorf(ctx, "must not be null")
12374 }
12375 return graphql.Null
12376 }
12377 res := resTmp.(string)
12378 fc.Result = res
12379 return ec.marshalNString2string(ctx, field.Selections, res)
12380 }
12381
12382 func (ec *executionContext) _NetworkChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12383 defer func() {
12384 if r := recover(); r != nil {
12385 ec.Error(ctx, ec.Recover(ctx, r))
12386 ret = graphql.Null
12387 }
12388 }()
12389 fc := &graphql.FieldContext{
12390 Object: "NetworkChaos",
12391 Field: field,
12392 Args: nil,
12393 IsMethod: false,
12394 IsResolver: false,
12395 }
12396
12397 ctx = graphql.WithFieldContext(ctx, fc)
12398 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12399 ctx = rctx
12400 return obj.Name, nil
12401 })
12402 if err != nil {
12403 ec.Error(ctx, err)
12404 return graphql.Null
12405 }
12406 if resTmp == nil {
12407 if !graphql.HasFieldError(ctx, fc) {
12408 ec.Errorf(ctx, "must not be null")
12409 }
12410 return graphql.Null
12411 }
12412 res := resTmp.(string)
12413 fc.Result = res
12414 return ec.marshalNString2string(ctx, field.Selections, res)
12415 }
12416
12417 func (ec *executionContext) _NetworkChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12418 defer func() {
12419 if r := recover(); r != nil {
12420 ec.Error(ctx, ec.Recover(ctx, r))
12421 ret = graphql.Null
12422 }
12423 }()
12424 fc := &graphql.FieldContext{
12425 Object: "NetworkChaos",
12426 Field: field,
12427 Args: nil,
12428 IsMethod: false,
12429 IsResolver: false,
12430 }
12431
12432 ctx = graphql.WithFieldContext(ctx, fc)
12433 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12434 ctx = rctx
12435 return obj.GenerateName, nil
12436 })
12437 if err != nil {
12438 ec.Error(ctx, err)
12439 return graphql.Null
12440 }
12441 if resTmp == nil {
12442 if !graphql.HasFieldError(ctx, fc) {
12443 ec.Errorf(ctx, "must not be null")
12444 }
12445 return graphql.Null
12446 }
12447 res := resTmp.(string)
12448 fc.Result = res
12449 return ec.marshalNString2string(ctx, field.Selections, res)
12450 }
12451
12452 func (ec *executionContext) _NetworkChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12453 defer func() {
12454 if r := recover(); r != nil {
12455 ec.Error(ctx, ec.Recover(ctx, r))
12456 ret = graphql.Null
12457 }
12458 }()
12459 fc := &graphql.FieldContext{
12460 Object: "NetworkChaos",
12461 Field: field,
12462 Args: nil,
12463 IsMethod: false,
12464 IsResolver: false,
12465 }
12466
12467 ctx = graphql.WithFieldContext(ctx, fc)
12468 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12469 ctx = rctx
12470 return obj.Namespace, nil
12471 })
12472 if err != nil {
12473 ec.Error(ctx, err)
12474 return graphql.Null
12475 }
12476 if resTmp == nil {
12477 if !graphql.HasFieldError(ctx, fc) {
12478 ec.Errorf(ctx, "must not be null")
12479 }
12480 return graphql.Null
12481 }
12482 res := resTmp.(string)
12483 fc.Result = res
12484 return ec.marshalNString2string(ctx, field.Selections, res)
12485 }
12486
12487 func (ec *executionContext) _NetworkChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12488 defer func() {
12489 if r := recover(); r != nil {
12490 ec.Error(ctx, ec.Recover(ctx, r))
12491 ret = graphql.Null
12492 }
12493 }()
12494 fc := &graphql.FieldContext{
12495 Object: "NetworkChaos",
12496 Field: field,
12497 Args: nil,
12498 IsMethod: false,
12499 IsResolver: false,
12500 }
12501
12502 ctx = graphql.WithFieldContext(ctx, fc)
12503 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12504 ctx = rctx
12505 return obj.SelfLink, nil
12506 })
12507 if err != nil {
12508 ec.Error(ctx, err)
12509 return graphql.Null
12510 }
12511 if resTmp == nil {
12512 if !graphql.HasFieldError(ctx, fc) {
12513 ec.Errorf(ctx, "must not be null")
12514 }
12515 return graphql.Null
12516 }
12517 res := resTmp.(string)
12518 fc.Result = res
12519 return ec.marshalNString2string(ctx, field.Selections, res)
12520 }
12521
12522 func (ec *executionContext) _NetworkChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12523 defer func() {
12524 if r := recover(); r != nil {
12525 ec.Error(ctx, ec.Recover(ctx, r))
12526 ret = graphql.Null
12527 }
12528 }()
12529 fc := &graphql.FieldContext{
12530 Object: "NetworkChaos",
12531 Field: field,
12532 Args: nil,
12533 IsMethod: true,
12534 IsResolver: true,
12535 }
12536
12537 ctx = graphql.WithFieldContext(ctx, fc)
12538 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12539 ctx = rctx
12540 return ec.resolvers.NetworkChaos().UID(rctx, obj)
12541 })
12542 if err != nil {
12543 ec.Error(ctx, err)
12544 return graphql.Null
12545 }
12546 if resTmp == nil {
12547 if !graphql.HasFieldError(ctx, fc) {
12548 ec.Errorf(ctx, "must not be null")
12549 }
12550 return graphql.Null
12551 }
12552 res := resTmp.(string)
12553 fc.Result = res
12554 return ec.marshalNString2string(ctx, field.Selections, res)
12555 }
12556
12557 func (ec *executionContext) _NetworkChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12558 defer func() {
12559 if r := recover(); r != nil {
12560 ec.Error(ctx, ec.Recover(ctx, r))
12561 ret = graphql.Null
12562 }
12563 }()
12564 fc := &graphql.FieldContext{
12565 Object: "NetworkChaos",
12566 Field: field,
12567 Args: nil,
12568 IsMethod: false,
12569 IsResolver: false,
12570 }
12571
12572 ctx = graphql.WithFieldContext(ctx, fc)
12573 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12574 ctx = rctx
12575 return obj.ResourceVersion, nil
12576 })
12577 if err != nil {
12578 ec.Error(ctx, err)
12579 return graphql.Null
12580 }
12581 if resTmp == nil {
12582 if !graphql.HasFieldError(ctx, fc) {
12583 ec.Errorf(ctx, "must not be null")
12584 }
12585 return graphql.Null
12586 }
12587 res := resTmp.(string)
12588 fc.Result = res
12589 return ec.marshalNString2string(ctx, field.Selections, res)
12590 }
12591
12592 func (ec *executionContext) _NetworkChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12593 defer func() {
12594 if r := recover(); r != nil {
12595 ec.Error(ctx, ec.Recover(ctx, r))
12596 ret = graphql.Null
12597 }
12598 }()
12599 fc := &graphql.FieldContext{
12600 Object: "NetworkChaos",
12601 Field: field,
12602 Args: nil,
12603 IsMethod: false,
12604 IsResolver: false,
12605 }
12606
12607 ctx = graphql.WithFieldContext(ctx, fc)
12608 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12609 ctx = rctx
12610 return obj.Generation, nil
12611 })
12612 if err != nil {
12613 ec.Error(ctx, err)
12614 return graphql.Null
12615 }
12616 if resTmp == nil {
12617 if !graphql.HasFieldError(ctx, fc) {
12618 ec.Errorf(ctx, "must not be null")
12619 }
12620 return graphql.Null
12621 }
12622 res := resTmp.(int64)
12623 fc.Result = res
12624 return ec.marshalNInt2int64(ctx, field.Selections, res)
12625 }
12626
12627 func (ec *executionContext) _NetworkChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12628 defer func() {
12629 if r := recover(); r != nil {
12630 ec.Error(ctx, ec.Recover(ctx, r))
12631 ret = graphql.Null
12632 }
12633 }()
12634 fc := &graphql.FieldContext{
12635 Object: "NetworkChaos",
12636 Field: field,
12637 Args: nil,
12638 IsMethod: true,
12639 IsResolver: true,
12640 }
12641
12642 ctx = graphql.WithFieldContext(ctx, fc)
12643 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12644 ctx = rctx
12645 return ec.resolvers.NetworkChaos().CreationTimestamp(rctx, obj)
12646 })
12647 if err != nil {
12648 ec.Error(ctx, err)
12649 return graphql.Null
12650 }
12651 if resTmp == nil {
12652 if !graphql.HasFieldError(ctx, fc) {
12653 ec.Errorf(ctx, "must not be null")
12654 }
12655 return graphql.Null
12656 }
12657 res := resTmp.(*time.Time)
12658 fc.Result = res
12659 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
12660 }
12661
12662 func (ec *executionContext) _NetworkChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12663 defer func() {
12664 if r := recover(); r != nil {
12665 ec.Error(ctx, ec.Recover(ctx, r))
12666 ret = graphql.Null
12667 }
12668 }()
12669 fc := &graphql.FieldContext{
12670 Object: "NetworkChaos",
12671 Field: field,
12672 Args: nil,
12673 IsMethod: true,
12674 IsResolver: true,
12675 }
12676
12677 ctx = graphql.WithFieldContext(ctx, fc)
12678 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12679 ctx = rctx
12680 return ec.resolvers.NetworkChaos().DeletionTimestamp(rctx, obj)
12681 })
12682 if err != nil {
12683 ec.Error(ctx, err)
12684 return graphql.Null
12685 }
12686 if resTmp == nil {
12687 return graphql.Null
12688 }
12689 res := resTmp.(*time.Time)
12690 fc.Result = res
12691 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
12692 }
12693
12694 func (ec *executionContext) _NetworkChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12695 defer func() {
12696 if r := recover(); r != nil {
12697 ec.Error(ctx, ec.Recover(ctx, r))
12698 ret = graphql.Null
12699 }
12700 }()
12701 fc := &graphql.FieldContext{
12702 Object: "NetworkChaos",
12703 Field: field,
12704 Args: nil,
12705 IsMethod: false,
12706 IsResolver: false,
12707 }
12708
12709 ctx = graphql.WithFieldContext(ctx, fc)
12710 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12711 ctx = rctx
12712 return obj.DeletionGracePeriodSeconds, nil
12713 })
12714 if err != nil {
12715 ec.Error(ctx, err)
12716 return graphql.Null
12717 }
12718 if resTmp == nil {
12719 return graphql.Null
12720 }
12721 res := resTmp.(*int64)
12722 fc.Result = res
12723 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
12724 }
12725
12726 func (ec *executionContext) _NetworkChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12727 defer func() {
12728 if r := recover(); r != nil {
12729 ec.Error(ctx, ec.Recover(ctx, r))
12730 ret = graphql.Null
12731 }
12732 }()
12733 fc := &graphql.FieldContext{
12734 Object: "NetworkChaos",
12735 Field: field,
12736 Args: nil,
12737 IsMethod: true,
12738 IsResolver: true,
12739 }
12740
12741 ctx = graphql.WithFieldContext(ctx, fc)
12742 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12743 ctx = rctx
12744 return ec.resolvers.NetworkChaos().Labels(rctx, obj)
12745 })
12746 if err != nil {
12747 ec.Error(ctx, err)
12748 return graphql.Null
12749 }
12750 if resTmp == nil {
12751 return graphql.Null
12752 }
12753 res := resTmp.(map[string]interface{})
12754 fc.Result = res
12755 return ec.marshalOMap2map(ctx, field.Selections, res)
12756 }
12757
12758 func (ec *executionContext) _NetworkChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12759 defer func() {
12760 if r := recover(); r != nil {
12761 ec.Error(ctx, ec.Recover(ctx, r))
12762 ret = graphql.Null
12763 }
12764 }()
12765 fc := &graphql.FieldContext{
12766 Object: "NetworkChaos",
12767 Field: field,
12768 Args: nil,
12769 IsMethod: true,
12770 IsResolver: true,
12771 }
12772
12773 ctx = graphql.WithFieldContext(ctx, fc)
12774 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12775 ctx = rctx
12776 return ec.resolvers.NetworkChaos().Annotations(rctx, obj)
12777 })
12778 if err != nil {
12779 ec.Error(ctx, err)
12780 return graphql.Null
12781 }
12782 if resTmp == nil {
12783 return graphql.Null
12784 }
12785 res := resTmp.(map[string]interface{})
12786 fc.Result = res
12787 return ec.marshalOMap2map(ctx, field.Selections, res)
12788 }
12789
12790 func (ec *executionContext) _NetworkChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12791 defer func() {
12792 if r := recover(); r != nil {
12793 ec.Error(ctx, ec.Recover(ctx, r))
12794 ret = graphql.Null
12795 }
12796 }()
12797 fc := &graphql.FieldContext{
12798 Object: "NetworkChaos",
12799 Field: field,
12800 Args: nil,
12801 IsMethod: false,
12802 IsResolver: false,
12803 }
12804
12805 ctx = graphql.WithFieldContext(ctx, fc)
12806 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12807 ctx = rctx
12808 return obj.OwnerReferences, nil
12809 })
12810 if err != nil {
12811 ec.Error(ctx, err)
12812 return graphql.Null
12813 }
12814 if resTmp == nil {
12815 return graphql.Null
12816 }
12817 res := resTmp.([]v11.OwnerReference)
12818 fc.Result = res
12819 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
12820 }
12821
12822 func (ec *executionContext) _NetworkChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12823 defer func() {
12824 if r := recover(); r != nil {
12825 ec.Error(ctx, ec.Recover(ctx, r))
12826 ret = graphql.Null
12827 }
12828 }()
12829 fc := &graphql.FieldContext{
12830 Object: "NetworkChaos",
12831 Field: field,
12832 Args: nil,
12833 IsMethod: false,
12834 IsResolver: false,
12835 }
12836
12837 ctx = graphql.WithFieldContext(ctx, fc)
12838 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12839 ctx = rctx
12840 return obj.Finalizers, nil
12841 })
12842 if err != nil {
12843 ec.Error(ctx, err)
12844 return graphql.Null
12845 }
12846 if resTmp == nil {
12847 return graphql.Null
12848 }
12849 res := resTmp.([]string)
12850 fc.Result = res
12851 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
12852 }
12853
12854 func (ec *executionContext) _NetworkChaos_podnetwork(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
12855 defer func() {
12856 if r := recover(); r != nil {
12857 ec.Error(ctx, ec.Recover(ctx, r))
12858 ret = graphql.Null
12859 }
12860 }()
12861 fc := &graphql.FieldContext{
12862 Object: "NetworkChaos",
12863 Field: field,
12864 Args: nil,
12865 IsMethod: true,
12866 IsResolver: true,
12867 }
12868
12869 ctx = graphql.WithFieldContext(ctx, fc)
12870 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12871 ctx = rctx
12872 return ec.resolvers.NetworkChaos().Podnetwork(rctx, obj)
12873 })
12874 if err != nil {
12875 ec.Error(ctx, err)
12876 return graphql.Null
12877 }
12878 if resTmp == nil {
12879 return graphql.Null
12880 }
12881 res := resTmp.([]*v1alpha1.PodNetworkChaos)
12882 fc.Result = res
12883 return ec.marshalOPodNetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosᚄ(ctx, field.Selections, res)
12884 }
12885
12886 func (ec *executionContext) _OwnerReference_kind(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
12887 defer func() {
12888 if r := recover(); r != nil {
12889 ec.Error(ctx, ec.Recover(ctx, r))
12890 ret = graphql.Null
12891 }
12892 }()
12893 fc := &graphql.FieldContext{
12894 Object: "OwnerReference",
12895 Field: field,
12896 Args: nil,
12897 IsMethod: false,
12898 IsResolver: false,
12899 }
12900
12901 ctx = graphql.WithFieldContext(ctx, fc)
12902 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12903 ctx = rctx
12904 return obj.Kind, nil
12905 })
12906 if err != nil {
12907 ec.Error(ctx, err)
12908 return graphql.Null
12909 }
12910 if resTmp == nil {
12911 if !graphql.HasFieldError(ctx, fc) {
12912 ec.Errorf(ctx, "must not be null")
12913 }
12914 return graphql.Null
12915 }
12916 res := resTmp.(string)
12917 fc.Result = res
12918 return ec.marshalNString2string(ctx, field.Selections, res)
12919 }
12920
12921 func (ec *executionContext) _OwnerReference_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
12922 defer func() {
12923 if r := recover(); r != nil {
12924 ec.Error(ctx, ec.Recover(ctx, r))
12925 ret = graphql.Null
12926 }
12927 }()
12928 fc := &graphql.FieldContext{
12929 Object: "OwnerReference",
12930 Field: field,
12931 Args: nil,
12932 IsMethod: false,
12933 IsResolver: false,
12934 }
12935
12936 ctx = graphql.WithFieldContext(ctx, fc)
12937 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12938 ctx = rctx
12939 return obj.APIVersion, nil
12940 })
12941 if err != nil {
12942 ec.Error(ctx, err)
12943 return graphql.Null
12944 }
12945 if resTmp == nil {
12946 if !graphql.HasFieldError(ctx, fc) {
12947 ec.Errorf(ctx, "must not be null")
12948 }
12949 return graphql.Null
12950 }
12951 res := resTmp.(string)
12952 fc.Result = res
12953 return ec.marshalNString2string(ctx, field.Selections, res)
12954 }
12955
12956 func (ec *executionContext) _OwnerReference_name(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
12957 defer func() {
12958 if r := recover(); r != nil {
12959 ec.Error(ctx, ec.Recover(ctx, r))
12960 ret = graphql.Null
12961 }
12962 }()
12963 fc := &graphql.FieldContext{
12964 Object: "OwnerReference",
12965 Field: field,
12966 Args: nil,
12967 IsMethod: false,
12968 IsResolver: false,
12969 }
12970
12971 ctx = graphql.WithFieldContext(ctx, fc)
12972 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12973 ctx = rctx
12974 return obj.Name, nil
12975 })
12976 if err != nil {
12977 ec.Error(ctx, err)
12978 return graphql.Null
12979 }
12980 if resTmp == nil {
12981 if !graphql.HasFieldError(ctx, fc) {
12982 ec.Errorf(ctx, "must not be null")
12983 }
12984 return graphql.Null
12985 }
12986 res := resTmp.(string)
12987 fc.Result = res
12988 return ec.marshalNString2string(ctx, field.Selections, res)
12989 }
12990
12991 func (ec *executionContext) _OwnerReference_uid(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
12992 defer func() {
12993 if r := recover(); r != nil {
12994 ec.Error(ctx, ec.Recover(ctx, r))
12995 ret = graphql.Null
12996 }
12997 }()
12998 fc := &graphql.FieldContext{
12999 Object: "OwnerReference",
13000 Field: field,
13001 Args: nil,
13002 IsMethod: true,
13003 IsResolver: true,
13004 }
13005
13006 ctx = graphql.WithFieldContext(ctx, fc)
13007 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13008 ctx = rctx
13009 return ec.resolvers.OwnerReference().UID(rctx, obj)
13010 })
13011 if err != nil {
13012 ec.Error(ctx, err)
13013 return graphql.Null
13014 }
13015 if resTmp == nil {
13016 if !graphql.HasFieldError(ctx, fc) {
13017 ec.Errorf(ctx, "must not be null")
13018 }
13019 return graphql.Null
13020 }
13021 res := resTmp.(string)
13022 fc.Result = res
13023 return ec.marshalNString2string(ctx, field.Selections, res)
13024 }
13025
13026 func (ec *executionContext) _OwnerReference_controller(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
13027 defer func() {
13028 if r := recover(); r != nil {
13029 ec.Error(ctx, ec.Recover(ctx, r))
13030 ret = graphql.Null
13031 }
13032 }()
13033 fc := &graphql.FieldContext{
13034 Object: "OwnerReference",
13035 Field: field,
13036 Args: nil,
13037 IsMethod: false,
13038 IsResolver: false,
13039 }
13040
13041 ctx = graphql.WithFieldContext(ctx, fc)
13042 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13043 ctx = rctx
13044 return obj.Controller, nil
13045 })
13046 if err != nil {
13047 ec.Error(ctx, err)
13048 return graphql.Null
13049 }
13050 if resTmp == nil {
13051 return graphql.Null
13052 }
13053 res := resTmp.(*bool)
13054 fc.Result = res
13055 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
13056 }
13057
13058 func (ec *executionContext) _OwnerReference_blockOwnerDeletion(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
13059 defer func() {
13060 if r := recover(); r != nil {
13061 ec.Error(ctx, ec.Recover(ctx, r))
13062 ret = graphql.Null
13063 }
13064 }()
13065 fc := &graphql.FieldContext{
13066 Object: "OwnerReference",
13067 Field: field,
13068 Args: nil,
13069 IsMethod: false,
13070 IsResolver: false,
13071 }
13072
13073 ctx = graphql.WithFieldContext(ctx, fc)
13074 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13075 ctx = rctx
13076 return obj.BlockOwnerDeletion, nil
13077 })
13078 if err != nil {
13079 ec.Error(ctx, err)
13080 return graphql.Null
13081 }
13082 if resTmp == nil {
13083 return graphql.Null
13084 }
13085 res := resTmp.(*bool)
13086 fc.Result = res
13087 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
13088 }
13089
13090 func (ec *executionContext) _Pod_kind(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13091 defer func() {
13092 if r := recover(); r != nil {
13093 ec.Error(ctx, ec.Recover(ctx, r))
13094 ret = graphql.Null
13095 }
13096 }()
13097 fc := &graphql.FieldContext{
13098 Object: "Pod",
13099 Field: field,
13100 Args: nil,
13101 IsMethod: false,
13102 IsResolver: false,
13103 }
13104
13105 ctx = graphql.WithFieldContext(ctx, fc)
13106 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13107 ctx = rctx
13108 return obj.Kind, nil
13109 })
13110 if err != nil {
13111 ec.Error(ctx, err)
13112 return graphql.Null
13113 }
13114 if resTmp == nil {
13115 if !graphql.HasFieldError(ctx, fc) {
13116 ec.Errorf(ctx, "must not be null")
13117 }
13118 return graphql.Null
13119 }
13120 res := resTmp.(string)
13121 fc.Result = res
13122 return ec.marshalNString2string(ctx, field.Selections, res)
13123 }
13124
13125 func (ec *executionContext) _Pod_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13126 defer func() {
13127 if r := recover(); r != nil {
13128 ec.Error(ctx, ec.Recover(ctx, r))
13129 ret = graphql.Null
13130 }
13131 }()
13132 fc := &graphql.FieldContext{
13133 Object: "Pod",
13134 Field: field,
13135 Args: nil,
13136 IsMethod: false,
13137 IsResolver: false,
13138 }
13139
13140 ctx = graphql.WithFieldContext(ctx, fc)
13141 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13142 ctx = rctx
13143 return obj.APIVersion, nil
13144 })
13145 if err != nil {
13146 ec.Error(ctx, err)
13147 return graphql.Null
13148 }
13149 if resTmp == nil {
13150 if !graphql.HasFieldError(ctx, fc) {
13151 ec.Errorf(ctx, "must not be null")
13152 }
13153 return graphql.Null
13154 }
13155 res := resTmp.(string)
13156 fc.Result = res
13157 return ec.marshalNString2string(ctx, field.Selections, res)
13158 }
13159
13160 func (ec *executionContext) _Pod_name(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13161 defer func() {
13162 if r := recover(); r != nil {
13163 ec.Error(ctx, ec.Recover(ctx, r))
13164 ret = graphql.Null
13165 }
13166 }()
13167 fc := &graphql.FieldContext{
13168 Object: "Pod",
13169 Field: field,
13170 Args: nil,
13171 IsMethod: false,
13172 IsResolver: false,
13173 }
13174
13175 ctx = graphql.WithFieldContext(ctx, fc)
13176 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13177 ctx = rctx
13178 return obj.Name, nil
13179 })
13180 if err != nil {
13181 ec.Error(ctx, err)
13182 return graphql.Null
13183 }
13184 if resTmp == nil {
13185 if !graphql.HasFieldError(ctx, fc) {
13186 ec.Errorf(ctx, "must not be null")
13187 }
13188 return graphql.Null
13189 }
13190 res := resTmp.(string)
13191 fc.Result = res
13192 return ec.marshalNString2string(ctx, field.Selections, res)
13193 }
13194
13195 func (ec *executionContext) _Pod_generateName(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13196 defer func() {
13197 if r := recover(); r != nil {
13198 ec.Error(ctx, ec.Recover(ctx, r))
13199 ret = graphql.Null
13200 }
13201 }()
13202 fc := &graphql.FieldContext{
13203 Object: "Pod",
13204 Field: field,
13205 Args: nil,
13206 IsMethod: false,
13207 IsResolver: false,
13208 }
13209
13210 ctx = graphql.WithFieldContext(ctx, fc)
13211 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13212 ctx = rctx
13213 return obj.GenerateName, nil
13214 })
13215 if err != nil {
13216 ec.Error(ctx, err)
13217 return graphql.Null
13218 }
13219 if resTmp == nil {
13220 if !graphql.HasFieldError(ctx, fc) {
13221 ec.Errorf(ctx, "must not be null")
13222 }
13223 return graphql.Null
13224 }
13225 res := resTmp.(string)
13226 fc.Result = res
13227 return ec.marshalNString2string(ctx, field.Selections, res)
13228 }
13229
13230 func (ec *executionContext) _Pod_namespace(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13231 defer func() {
13232 if r := recover(); r != nil {
13233 ec.Error(ctx, ec.Recover(ctx, r))
13234 ret = graphql.Null
13235 }
13236 }()
13237 fc := &graphql.FieldContext{
13238 Object: "Pod",
13239 Field: field,
13240 Args: nil,
13241 IsMethod: false,
13242 IsResolver: false,
13243 }
13244
13245 ctx = graphql.WithFieldContext(ctx, fc)
13246 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13247 ctx = rctx
13248 return obj.Namespace, nil
13249 })
13250 if err != nil {
13251 ec.Error(ctx, err)
13252 return graphql.Null
13253 }
13254 if resTmp == nil {
13255 if !graphql.HasFieldError(ctx, fc) {
13256 ec.Errorf(ctx, "must not be null")
13257 }
13258 return graphql.Null
13259 }
13260 res := resTmp.(string)
13261 fc.Result = res
13262 return ec.marshalNString2string(ctx, field.Selections, res)
13263 }
13264
13265 func (ec *executionContext) _Pod_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13266 defer func() {
13267 if r := recover(); r != nil {
13268 ec.Error(ctx, ec.Recover(ctx, r))
13269 ret = graphql.Null
13270 }
13271 }()
13272 fc := &graphql.FieldContext{
13273 Object: "Pod",
13274 Field: field,
13275 Args: nil,
13276 IsMethod: false,
13277 IsResolver: false,
13278 }
13279
13280 ctx = graphql.WithFieldContext(ctx, fc)
13281 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13282 ctx = rctx
13283 return obj.SelfLink, nil
13284 })
13285 if err != nil {
13286 ec.Error(ctx, err)
13287 return graphql.Null
13288 }
13289 if resTmp == nil {
13290 if !graphql.HasFieldError(ctx, fc) {
13291 ec.Errorf(ctx, "must not be null")
13292 }
13293 return graphql.Null
13294 }
13295 res := resTmp.(string)
13296 fc.Result = res
13297 return ec.marshalNString2string(ctx, field.Selections, res)
13298 }
13299
13300 func (ec *executionContext) _Pod_uid(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13301 defer func() {
13302 if r := recover(); r != nil {
13303 ec.Error(ctx, ec.Recover(ctx, r))
13304 ret = graphql.Null
13305 }
13306 }()
13307 fc := &graphql.FieldContext{
13308 Object: "Pod",
13309 Field: field,
13310 Args: nil,
13311 IsMethod: true,
13312 IsResolver: true,
13313 }
13314
13315 ctx = graphql.WithFieldContext(ctx, fc)
13316 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13317 ctx = rctx
13318 return ec.resolvers.Pod().UID(rctx, obj)
13319 })
13320 if err != nil {
13321 ec.Error(ctx, err)
13322 return graphql.Null
13323 }
13324 if resTmp == nil {
13325 if !graphql.HasFieldError(ctx, fc) {
13326 ec.Errorf(ctx, "must not be null")
13327 }
13328 return graphql.Null
13329 }
13330 res := resTmp.(string)
13331 fc.Result = res
13332 return ec.marshalNString2string(ctx, field.Selections, res)
13333 }
13334
13335 func (ec *executionContext) _Pod_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13336 defer func() {
13337 if r := recover(); r != nil {
13338 ec.Error(ctx, ec.Recover(ctx, r))
13339 ret = graphql.Null
13340 }
13341 }()
13342 fc := &graphql.FieldContext{
13343 Object: "Pod",
13344 Field: field,
13345 Args: nil,
13346 IsMethod: false,
13347 IsResolver: false,
13348 }
13349
13350 ctx = graphql.WithFieldContext(ctx, fc)
13351 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13352 ctx = rctx
13353 return obj.ResourceVersion, nil
13354 })
13355 if err != nil {
13356 ec.Error(ctx, err)
13357 return graphql.Null
13358 }
13359 if resTmp == nil {
13360 if !graphql.HasFieldError(ctx, fc) {
13361 ec.Errorf(ctx, "must not be null")
13362 }
13363 return graphql.Null
13364 }
13365 res := resTmp.(string)
13366 fc.Result = res
13367 return ec.marshalNString2string(ctx, field.Selections, res)
13368 }
13369
13370 func (ec *executionContext) _Pod_generation(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13371 defer func() {
13372 if r := recover(); r != nil {
13373 ec.Error(ctx, ec.Recover(ctx, r))
13374 ret = graphql.Null
13375 }
13376 }()
13377 fc := &graphql.FieldContext{
13378 Object: "Pod",
13379 Field: field,
13380 Args: nil,
13381 IsMethod: false,
13382 IsResolver: false,
13383 }
13384
13385 ctx = graphql.WithFieldContext(ctx, fc)
13386 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13387 ctx = rctx
13388 return obj.Generation, nil
13389 })
13390 if err != nil {
13391 ec.Error(ctx, err)
13392 return graphql.Null
13393 }
13394 if resTmp == nil {
13395 if !graphql.HasFieldError(ctx, fc) {
13396 ec.Errorf(ctx, "must not be null")
13397 }
13398 return graphql.Null
13399 }
13400 res := resTmp.(int64)
13401 fc.Result = res
13402 return ec.marshalNInt2int64(ctx, field.Selections, res)
13403 }
13404
13405 func (ec *executionContext) _Pod_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13406 defer func() {
13407 if r := recover(); r != nil {
13408 ec.Error(ctx, ec.Recover(ctx, r))
13409 ret = graphql.Null
13410 }
13411 }()
13412 fc := &graphql.FieldContext{
13413 Object: "Pod",
13414 Field: field,
13415 Args: nil,
13416 IsMethod: true,
13417 IsResolver: true,
13418 }
13419
13420 ctx = graphql.WithFieldContext(ctx, fc)
13421 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13422 ctx = rctx
13423 return ec.resolvers.Pod().CreationTimestamp(rctx, obj)
13424 })
13425 if err != nil {
13426 ec.Error(ctx, err)
13427 return graphql.Null
13428 }
13429 if resTmp == nil {
13430 if !graphql.HasFieldError(ctx, fc) {
13431 ec.Errorf(ctx, "must not be null")
13432 }
13433 return graphql.Null
13434 }
13435 res := resTmp.(*time.Time)
13436 fc.Result = res
13437 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
13438 }
13439
13440 func (ec *executionContext) _Pod_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13441 defer func() {
13442 if r := recover(); r != nil {
13443 ec.Error(ctx, ec.Recover(ctx, r))
13444 ret = graphql.Null
13445 }
13446 }()
13447 fc := &graphql.FieldContext{
13448 Object: "Pod",
13449 Field: field,
13450 Args: nil,
13451 IsMethod: true,
13452 IsResolver: true,
13453 }
13454
13455 ctx = graphql.WithFieldContext(ctx, fc)
13456 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13457 ctx = rctx
13458 return ec.resolvers.Pod().DeletionTimestamp(rctx, obj)
13459 })
13460 if err != nil {
13461 ec.Error(ctx, err)
13462 return graphql.Null
13463 }
13464 if resTmp == nil {
13465 return graphql.Null
13466 }
13467 res := resTmp.(*time.Time)
13468 fc.Result = res
13469 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
13470 }
13471
13472 func (ec *executionContext) _Pod_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13473 defer func() {
13474 if r := recover(); r != nil {
13475 ec.Error(ctx, ec.Recover(ctx, r))
13476 ret = graphql.Null
13477 }
13478 }()
13479 fc := &graphql.FieldContext{
13480 Object: "Pod",
13481 Field: field,
13482 Args: nil,
13483 IsMethod: false,
13484 IsResolver: false,
13485 }
13486
13487 ctx = graphql.WithFieldContext(ctx, fc)
13488 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13489 ctx = rctx
13490 return obj.DeletionGracePeriodSeconds, nil
13491 })
13492 if err != nil {
13493 ec.Error(ctx, err)
13494 return graphql.Null
13495 }
13496 if resTmp == nil {
13497 return graphql.Null
13498 }
13499 res := resTmp.(*int64)
13500 fc.Result = res
13501 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
13502 }
13503
13504 func (ec *executionContext) _Pod_labels(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13505 defer func() {
13506 if r := recover(); r != nil {
13507 ec.Error(ctx, ec.Recover(ctx, r))
13508 ret = graphql.Null
13509 }
13510 }()
13511 fc := &graphql.FieldContext{
13512 Object: "Pod",
13513 Field: field,
13514 Args: nil,
13515 IsMethod: true,
13516 IsResolver: true,
13517 }
13518
13519 ctx = graphql.WithFieldContext(ctx, fc)
13520 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13521 ctx = rctx
13522 return ec.resolvers.Pod().Labels(rctx, obj)
13523 })
13524 if err != nil {
13525 ec.Error(ctx, err)
13526 return graphql.Null
13527 }
13528 if resTmp == nil {
13529 return graphql.Null
13530 }
13531 res := resTmp.(map[string]interface{})
13532 fc.Result = res
13533 return ec.marshalOMap2map(ctx, field.Selections, res)
13534 }
13535
13536 func (ec *executionContext) _Pod_annotations(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13537 defer func() {
13538 if r := recover(); r != nil {
13539 ec.Error(ctx, ec.Recover(ctx, r))
13540 ret = graphql.Null
13541 }
13542 }()
13543 fc := &graphql.FieldContext{
13544 Object: "Pod",
13545 Field: field,
13546 Args: nil,
13547 IsMethod: true,
13548 IsResolver: true,
13549 }
13550
13551 ctx = graphql.WithFieldContext(ctx, fc)
13552 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13553 ctx = rctx
13554 return ec.resolvers.Pod().Annotations(rctx, obj)
13555 })
13556 if err != nil {
13557 ec.Error(ctx, err)
13558 return graphql.Null
13559 }
13560 if resTmp == nil {
13561 return graphql.Null
13562 }
13563 res := resTmp.(map[string]interface{})
13564 fc.Result = res
13565 return ec.marshalOMap2map(ctx, field.Selections, res)
13566 }
13567
13568 func (ec *executionContext) _Pod_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13569 defer func() {
13570 if r := recover(); r != nil {
13571 ec.Error(ctx, ec.Recover(ctx, r))
13572 ret = graphql.Null
13573 }
13574 }()
13575 fc := &graphql.FieldContext{
13576 Object: "Pod",
13577 Field: field,
13578 Args: nil,
13579 IsMethod: false,
13580 IsResolver: false,
13581 }
13582
13583 ctx = graphql.WithFieldContext(ctx, fc)
13584 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13585 ctx = rctx
13586 return obj.OwnerReferences, nil
13587 })
13588 if err != nil {
13589 ec.Error(ctx, err)
13590 return graphql.Null
13591 }
13592 if resTmp == nil {
13593 return graphql.Null
13594 }
13595 res := resTmp.([]v11.OwnerReference)
13596 fc.Result = res
13597 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
13598 }
13599
13600 func (ec *executionContext) _Pod_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13601 defer func() {
13602 if r := recover(); r != nil {
13603 ec.Error(ctx, ec.Recover(ctx, r))
13604 ret = graphql.Null
13605 }
13606 }()
13607 fc := &graphql.FieldContext{
13608 Object: "Pod",
13609 Field: field,
13610 Args: nil,
13611 IsMethod: false,
13612 IsResolver: false,
13613 }
13614
13615 ctx = graphql.WithFieldContext(ctx, fc)
13616 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13617 ctx = rctx
13618 return obj.Finalizers, nil
13619 })
13620 if err != nil {
13621 ec.Error(ctx, err)
13622 return graphql.Null
13623 }
13624 if resTmp == nil {
13625 return graphql.Null
13626 }
13627 res := resTmp.([]string)
13628 fc.Result = res
13629 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
13630 }
13631
13632 func (ec *executionContext) _Pod_spec(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13633 defer func() {
13634 if r := recover(); r != nil {
13635 ec.Error(ctx, ec.Recover(ctx, r))
13636 ret = graphql.Null
13637 }
13638 }()
13639 fc := &graphql.FieldContext{
13640 Object: "Pod",
13641 Field: field,
13642 Args: nil,
13643 IsMethod: false,
13644 IsResolver: false,
13645 }
13646
13647 ctx = graphql.WithFieldContext(ctx, fc)
13648 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13649 ctx = rctx
13650 return obj.Spec, nil
13651 })
13652 if err != nil {
13653 ec.Error(ctx, err)
13654 return graphql.Null
13655 }
13656 if resTmp == nil {
13657 if !graphql.HasFieldError(ctx, fc) {
13658 ec.Errorf(ctx, "must not be null")
13659 }
13660 return graphql.Null
13661 }
13662 res := resTmp.(v1.PodSpec)
13663 fc.Result = res
13664 return ec.marshalNPodSpec2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodSpec(ctx, field.Selections, res)
13665 }
13666
13667 func (ec *executionContext) _Pod_status(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13668 defer func() {
13669 if r := recover(); r != nil {
13670 ec.Error(ctx, ec.Recover(ctx, r))
13671 ret = graphql.Null
13672 }
13673 }()
13674 fc := &graphql.FieldContext{
13675 Object: "Pod",
13676 Field: field,
13677 Args: nil,
13678 IsMethod: false,
13679 IsResolver: false,
13680 }
13681
13682 ctx = graphql.WithFieldContext(ctx, fc)
13683 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13684 ctx = rctx
13685 return obj.Status, nil
13686 })
13687 if err != nil {
13688 ec.Error(ctx, err)
13689 return graphql.Null
13690 }
13691 if resTmp == nil {
13692 if !graphql.HasFieldError(ctx, fc) {
13693 ec.Errorf(ctx, "must not be null")
13694 }
13695 return graphql.Null
13696 }
13697 res := resTmp.(v1.PodStatus)
13698 fc.Result = res
13699 return ec.marshalNPodStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodStatus(ctx, field.Selections, res)
13700 }
13701
13702 func (ec *executionContext) _Pod_logs(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13703 defer func() {
13704 if r := recover(); r != nil {
13705 ec.Error(ctx, ec.Recover(ctx, r))
13706 ret = graphql.Null
13707 }
13708 }()
13709 fc := &graphql.FieldContext{
13710 Object: "Pod",
13711 Field: field,
13712 Args: nil,
13713 IsMethod: true,
13714 IsResolver: true,
13715 }
13716
13717 ctx = graphql.WithFieldContext(ctx, fc)
13718 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13719 ctx = rctx
13720 return ec.resolvers.Pod().Logs(rctx, obj)
13721 })
13722 if err != nil {
13723 ec.Error(ctx, err)
13724 return graphql.Null
13725 }
13726 if resTmp == nil {
13727 if !graphql.HasFieldError(ctx, fc) {
13728 ec.Errorf(ctx, "must not be null")
13729 }
13730 return graphql.Null
13731 }
13732 res := resTmp.(string)
13733 fc.Result = res
13734 return ec.marshalNString2string(ctx, field.Selections, res)
13735 }
13736
13737 func (ec *executionContext) _Pod_daemon(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13738 defer func() {
13739 if r := recover(); r != nil {
13740 ec.Error(ctx, ec.Recover(ctx, r))
13741 ret = graphql.Null
13742 }
13743 }()
13744 fc := &graphql.FieldContext{
13745 Object: "Pod",
13746 Field: field,
13747 Args: nil,
13748 IsMethod: true,
13749 IsResolver: true,
13750 }
13751
13752 ctx = graphql.WithFieldContext(ctx, fc)
13753 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13754 ctx = rctx
13755 return ec.resolvers.Pod().Daemon(rctx, obj)
13756 })
13757 if err != nil {
13758 ec.Error(ctx, err)
13759 return graphql.Null
13760 }
13761 if resTmp == nil {
13762 return graphql.Null
13763 }
13764 res := resTmp.(*v1.Pod)
13765 fc.Result = res
13766 return ec.marshalOPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
13767 }
13768
13769 func (ec *executionContext) _Pod_processes(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13770 defer func() {
13771 if r := recover(); r != nil {
13772 ec.Error(ctx, ec.Recover(ctx, r))
13773 ret = graphql.Null
13774 }
13775 }()
13776 fc := &graphql.FieldContext{
13777 Object: "Pod",
13778 Field: field,
13779 Args: nil,
13780 IsMethod: true,
13781 IsResolver: true,
13782 }
13783
13784 ctx = graphql.WithFieldContext(ctx, fc)
13785 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13786 ctx = rctx
13787 return ec.resolvers.Pod().Processes(rctx, obj)
13788 })
13789 if err != nil {
13790 ec.Error(ctx, err)
13791 return graphql.Null
13792 }
13793 if resTmp == nil {
13794 return graphql.Null
13795 }
13796 res := resTmp.([]*model.Process)
13797 fc.Result = res
13798 return ec.marshalOProcess2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcessᚄ(ctx, field.Selections, res)
13799 }
13800
13801 func (ec *executionContext) _Pod_mounts(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13802 defer func() {
13803 if r := recover(); r != nil {
13804 ec.Error(ctx, ec.Recover(ctx, r))
13805 ret = graphql.Null
13806 }
13807 }()
13808 fc := &graphql.FieldContext{
13809 Object: "Pod",
13810 Field: field,
13811 Args: nil,
13812 IsMethod: true,
13813 IsResolver: true,
13814 }
13815
13816 ctx = graphql.WithFieldContext(ctx, fc)
13817 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13818 ctx = rctx
13819 return ec.resolvers.Pod().Mounts(rctx, obj)
13820 })
13821 if err != nil {
13822 ec.Error(ctx, err)
13823 return graphql.Null
13824 }
13825 if resTmp == nil {
13826 return graphql.Null
13827 }
13828 res := resTmp.([]string)
13829 fc.Result = res
13830 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
13831 }
13832
13833 func (ec *executionContext) _Pod_ipset(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13834 defer func() {
13835 if r := recover(); r != nil {
13836 ec.Error(ctx, ec.Recover(ctx, r))
13837 ret = graphql.Null
13838 }
13839 }()
13840 fc := &graphql.FieldContext{
13841 Object: "Pod",
13842 Field: field,
13843 Args: nil,
13844 IsMethod: true,
13845 IsResolver: true,
13846 }
13847
13848 ctx = graphql.WithFieldContext(ctx, fc)
13849 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13850 ctx = rctx
13851 return ec.resolvers.Pod().Ipset(rctx, obj)
13852 })
13853 if err != nil {
13854 ec.Error(ctx, err)
13855 return graphql.Null
13856 }
13857 if resTmp == nil {
13858 if !graphql.HasFieldError(ctx, fc) {
13859 ec.Errorf(ctx, "must not be null")
13860 }
13861 return graphql.Null
13862 }
13863 res := resTmp.(string)
13864 fc.Result = res
13865 return ec.marshalNString2string(ctx, field.Selections, res)
13866 }
13867
13868 func (ec *executionContext) _Pod_tcQdisc(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13869 defer func() {
13870 if r := recover(); r != nil {
13871 ec.Error(ctx, ec.Recover(ctx, r))
13872 ret = graphql.Null
13873 }
13874 }()
13875 fc := &graphql.FieldContext{
13876 Object: "Pod",
13877 Field: field,
13878 Args: nil,
13879 IsMethod: true,
13880 IsResolver: true,
13881 }
13882
13883 ctx = graphql.WithFieldContext(ctx, fc)
13884 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13885 ctx = rctx
13886 return ec.resolvers.Pod().TcQdisc(rctx, obj)
13887 })
13888 if err != nil {
13889 ec.Error(ctx, err)
13890 return graphql.Null
13891 }
13892 if resTmp == nil {
13893 return graphql.Null
13894 }
13895 res := resTmp.([]string)
13896 fc.Result = res
13897 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
13898 }
13899
13900 func (ec *executionContext) _Pod_iptables(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
13901 defer func() {
13902 if r := recover(); r != nil {
13903 ec.Error(ctx, ec.Recover(ctx, r))
13904 ret = graphql.Null
13905 }
13906 }()
13907 fc := &graphql.FieldContext{
13908 Object: "Pod",
13909 Field: field,
13910 Args: nil,
13911 IsMethod: true,
13912 IsResolver: true,
13913 }
13914
13915 ctx = graphql.WithFieldContext(ctx, fc)
13916 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13917 ctx = rctx
13918 return ec.resolvers.Pod().Iptables(rctx, obj)
13919 })
13920 if err != nil {
13921 ec.Error(ctx, err)
13922 return graphql.Null
13923 }
13924 if resTmp == nil {
13925 return graphql.Null
13926 }
13927 res := resTmp.([]string)
13928 fc.Result = res
13929 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
13930 }
13931
13932 func (ec *executionContext) _PodCondition_type(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
13933 defer func() {
13934 if r := recover(); r != nil {
13935 ec.Error(ctx, ec.Recover(ctx, r))
13936 ret = graphql.Null
13937 }
13938 }()
13939 fc := &graphql.FieldContext{
13940 Object: "PodCondition",
13941 Field: field,
13942 Args: nil,
13943 IsMethod: true,
13944 IsResolver: true,
13945 }
13946
13947 ctx = graphql.WithFieldContext(ctx, fc)
13948 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13949 ctx = rctx
13950 return ec.resolvers.PodCondition().Type(rctx, obj)
13951 })
13952 if err != nil {
13953 ec.Error(ctx, err)
13954 return graphql.Null
13955 }
13956 if resTmp == nil {
13957 if !graphql.HasFieldError(ctx, fc) {
13958 ec.Errorf(ctx, "must not be null")
13959 }
13960 return graphql.Null
13961 }
13962 res := resTmp.(string)
13963 fc.Result = res
13964 return ec.marshalNString2string(ctx, field.Selections, res)
13965 }
13966
13967 func (ec *executionContext) _PodCondition_status(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
13968 defer func() {
13969 if r := recover(); r != nil {
13970 ec.Error(ctx, ec.Recover(ctx, r))
13971 ret = graphql.Null
13972 }
13973 }()
13974 fc := &graphql.FieldContext{
13975 Object: "PodCondition",
13976 Field: field,
13977 Args: nil,
13978 IsMethod: true,
13979 IsResolver: true,
13980 }
13981
13982 ctx = graphql.WithFieldContext(ctx, fc)
13983 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13984 ctx = rctx