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
13985 return ec.resolvers.PodCondition().Status(rctx, obj)
13986 })
13987 if err != nil {
13988 ec.Error(ctx, err)
13989 return graphql.Null
13990 }
13991 if resTmp == nil {
13992 if !graphql.HasFieldError(ctx, fc) {
13993 ec.Errorf(ctx, "must not be null")
13994 }
13995 return graphql.Null
13996 }
13997 res := resTmp.(string)
13998 fc.Result = res
13999 return ec.marshalNString2string(ctx, field.Selections, res)
14000 }
14001
14002 func (ec *executionContext) _PodCondition_lastProbeTime(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
14003 defer func() {
14004 if r := recover(); r != nil {
14005 ec.Error(ctx, ec.Recover(ctx, r))
14006 ret = graphql.Null
14007 }
14008 }()
14009 fc := &graphql.FieldContext{
14010 Object: "PodCondition",
14011 Field: field,
14012 Args: nil,
14013 IsMethod: true,
14014 IsResolver: true,
14015 }
14016
14017 ctx = graphql.WithFieldContext(ctx, fc)
14018 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14019 ctx = rctx
14020 return ec.resolvers.PodCondition().LastProbeTime(rctx, obj)
14021 })
14022 if err != nil {
14023 ec.Error(ctx, err)
14024 return graphql.Null
14025 }
14026 if resTmp == nil {
14027 return graphql.Null
14028 }
14029 res := resTmp.(*time.Time)
14030 fc.Result = res
14031 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
14032 }
14033
14034 func (ec *executionContext) _PodCondition_lastTransitionTime(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
14035 defer func() {
14036 if r := recover(); r != nil {
14037 ec.Error(ctx, ec.Recover(ctx, r))
14038 ret = graphql.Null
14039 }
14040 }()
14041 fc := &graphql.FieldContext{
14042 Object: "PodCondition",
14043 Field: field,
14044 Args: nil,
14045 IsMethod: true,
14046 IsResolver: true,
14047 }
14048
14049 ctx = graphql.WithFieldContext(ctx, fc)
14050 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14051 ctx = rctx
14052 return ec.resolvers.PodCondition().LastTransitionTime(rctx, obj)
14053 })
14054 if err != nil {
14055 ec.Error(ctx, err)
14056 return graphql.Null
14057 }
14058 if resTmp == nil {
14059 return graphql.Null
14060 }
14061 res := resTmp.(*time.Time)
14062 fc.Result = res
14063 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
14064 }
14065
14066 func (ec *executionContext) _PodCondition_reason(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
14067 defer func() {
14068 if r := recover(); r != nil {
14069 ec.Error(ctx, ec.Recover(ctx, r))
14070 ret = graphql.Null
14071 }
14072 }()
14073 fc := &graphql.FieldContext{
14074 Object: "PodCondition",
14075 Field: field,
14076 Args: nil,
14077 IsMethod: false,
14078 IsResolver: false,
14079 }
14080
14081 ctx = graphql.WithFieldContext(ctx, fc)
14082 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14083 ctx = rctx
14084 return obj.Reason, nil
14085 })
14086 if err != nil {
14087 ec.Error(ctx, err)
14088 return graphql.Null
14089 }
14090 if resTmp == nil {
14091 return graphql.Null
14092 }
14093 res := resTmp.(string)
14094 fc.Result = res
14095 return ec.marshalOString2string(ctx, field.Selections, res)
14096 }
14097
14098 func (ec *executionContext) _PodCondition_message(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
14099 defer func() {
14100 if r := recover(); r != nil {
14101 ec.Error(ctx, ec.Recover(ctx, r))
14102 ret = graphql.Null
14103 }
14104 }()
14105 fc := &graphql.FieldContext{
14106 Object: "PodCondition",
14107 Field: field,
14108 Args: nil,
14109 IsMethod: false,
14110 IsResolver: false,
14111 }
14112
14113 ctx = graphql.WithFieldContext(ctx, fc)
14114 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14115 ctx = rctx
14116 return obj.Message, nil
14117 })
14118 if err != nil {
14119 ec.Error(ctx, err)
14120 return graphql.Null
14121 }
14122 if resTmp == nil {
14123 return graphql.Null
14124 }
14125 res := resTmp.(string)
14126 fc.Result = res
14127 return ec.marshalOString2string(ctx, field.Selections, res)
14128 }
14129
14130 func (ec *executionContext) _PodHTTPChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14131 defer func() {
14132 if r := recover(); r != nil {
14133 ec.Error(ctx, ec.Recover(ctx, r))
14134 ret = graphql.Null
14135 }
14136 }()
14137 fc := &graphql.FieldContext{
14138 Object: "PodHTTPChaos",
14139 Field: field,
14140 Args: nil,
14141 IsMethod: false,
14142 IsResolver: false,
14143 }
14144
14145 ctx = graphql.WithFieldContext(ctx, fc)
14146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14147 ctx = rctx
14148 return obj.Kind, nil
14149 })
14150 if err != nil {
14151 ec.Error(ctx, err)
14152 return graphql.Null
14153 }
14154 if resTmp == nil {
14155 if !graphql.HasFieldError(ctx, fc) {
14156 ec.Errorf(ctx, "must not be null")
14157 }
14158 return graphql.Null
14159 }
14160 res := resTmp.(string)
14161 fc.Result = res
14162 return ec.marshalNString2string(ctx, field.Selections, res)
14163 }
14164
14165 func (ec *executionContext) _PodHTTPChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14166 defer func() {
14167 if r := recover(); r != nil {
14168 ec.Error(ctx, ec.Recover(ctx, r))
14169 ret = graphql.Null
14170 }
14171 }()
14172 fc := &graphql.FieldContext{
14173 Object: "PodHTTPChaos",
14174 Field: field,
14175 Args: nil,
14176 IsMethod: false,
14177 IsResolver: false,
14178 }
14179
14180 ctx = graphql.WithFieldContext(ctx, fc)
14181 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14182 ctx = rctx
14183 return obj.APIVersion, nil
14184 })
14185 if err != nil {
14186 ec.Error(ctx, err)
14187 return graphql.Null
14188 }
14189 if resTmp == nil {
14190 if !graphql.HasFieldError(ctx, fc) {
14191 ec.Errorf(ctx, "must not be null")
14192 }
14193 return graphql.Null
14194 }
14195 res := resTmp.(string)
14196 fc.Result = res
14197 return ec.marshalNString2string(ctx, field.Selections, res)
14198 }
14199
14200 func (ec *executionContext) _PodHTTPChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14201 defer func() {
14202 if r := recover(); r != nil {
14203 ec.Error(ctx, ec.Recover(ctx, r))
14204 ret = graphql.Null
14205 }
14206 }()
14207 fc := &graphql.FieldContext{
14208 Object: "PodHTTPChaos",
14209 Field: field,
14210 Args: nil,
14211 IsMethod: false,
14212 IsResolver: false,
14213 }
14214
14215 ctx = graphql.WithFieldContext(ctx, fc)
14216 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14217 ctx = rctx
14218 return obj.Name, nil
14219 })
14220 if err != nil {
14221 ec.Error(ctx, err)
14222 return graphql.Null
14223 }
14224 if resTmp == nil {
14225 if !graphql.HasFieldError(ctx, fc) {
14226 ec.Errorf(ctx, "must not be null")
14227 }
14228 return graphql.Null
14229 }
14230 res := resTmp.(string)
14231 fc.Result = res
14232 return ec.marshalNString2string(ctx, field.Selections, res)
14233 }
14234
14235 func (ec *executionContext) _PodHTTPChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14236 defer func() {
14237 if r := recover(); r != nil {
14238 ec.Error(ctx, ec.Recover(ctx, r))
14239 ret = graphql.Null
14240 }
14241 }()
14242 fc := &graphql.FieldContext{
14243 Object: "PodHTTPChaos",
14244 Field: field,
14245 Args: nil,
14246 IsMethod: false,
14247 IsResolver: false,
14248 }
14249
14250 ctx = graphql.WithFieldContext(ctx, fc)
14251 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14252 ctx = rctx
14253 return obj.GenerateName, nil
14254 })
14255 if err != nil {
14256 ec.Error(ctx, err)
14257 return graphql.Null
14258 }
14259 if resTmp == nil {
14260 if !graphql.HasFieldError(ctx, fc) {
14261 ec.Errorf(ctx, "must not be null")
14262 }
14263 return graphql.Null
14264 }
14265 res := resTmp.(string)
14266 fc.Result = res
14267 return ec.marshalNString2string(ctx, field.Selections, res)
14268 }
14269
14270 func (ec *executionContext) _PodHTTPChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14271 defer func() {
14272 if r := recover(); r != nil {
14273 ec.Error(ctx, ec.Recover(ctx, r))
14274 ret = graphql.Null
14275 }
14276 }()
14277 fc := &graphql.FieldContext{
14278 Object: "PodHTTPChaos",
14279 Field: field,
14280 Args: nil,
14281 IsMethod: false,
14282 IsResolver: false,
14283 }
14284
14285 ctx = graphql.WithFieldContext(ctx, fc)
14286 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14287 ctx = rctx
14288 return obj.Namespace, nil
14289 })
14290 if err != nil {
14291 ec.Error(ctx, err)
14292 return graphql.Null
14293 }
14294 if resTmp == nil {
14295 if !graphql.HasFieldError(ctx, fc) {
14296 ec.Errorf(ctx, "must not be null")
14297 }
14298 return graphql.Null
14299 }
14300 res := resTmp.(string)
14301 fc.Result = res
14302 return ec.marshalNString2string(ctx, field.Selections, res)
14303 }
14304
14305 func (ec *executionContext) _PodHTTPChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14306 defer func() {
14307 if r := recover(); r != nil {
14308 ec.Error(ctx, ec.Recover(ctx, r))
14309 ret = graphql.Null
14310 }
14311 }()
14312 fc := &graphql.FieldContext{
14313 Object: "PodHTTPChaos",
14314 Field: field,
14315 Args: nil,
14316 IsMethod: false,
14317 IsResolver: false,
14318 }
14319
14320 ctx = graphql.WithFieldContext(ctx, fc)
14321 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14322 ctx = rctx
14323 return obj.SelfLink, nil
14324 })
14325 if err != nil {
14326 ec.Error(ctx, err)
14327 return graphql.Null
14328 }
14329 if resTmp == nil {
14330 if !graphql.HasFieldError(ctx, fc) {
14331 ec.Errorf(ctx, "must not be null")
14332 }
14333 return graphql.Null
14334 }
14335 res := resTmp.(string)
14336 fc.Result = res
14337 return ec.marshalNString2string(ctx, field.Selections, res)
14338 }
14339
14340 func (ec *executionContext) _PodHTTPChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14341 defer func() {
14342 if r := recover(); r != nil {
14343 ec.Error(ctx, ec.Recover(ctx, r))
14344 ret = graphql.Null
14345 }
14346 }()
14347 fc := &graphql.FieldContext{
14348 Object: "PodHTTPChaos",
14349 Field: field,
14350 Args: nil,
14351 IsMethod: true,
14352 IsResolver: true,
14353 }
14354
14355 ctx = graphql.WithFieldContext(ctx, fc)
14356 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14357 ctx = rctx
14358 return ec.resolvers.PodHTTPChaos().UID(rctx, obj)
14359 })
14360 if err != nil {
14361 ec.Error(ctx, err)
14362 return graphql.Null
14363 }
14364 if resTmp == nil {
14365 if !graphql.HasFieldError(ctx, fc) {
14366 ec.Errorf(ctx, "must not be null")
14367 }
14368 return graphql.Null
14369 }
14370 res := resTmp.(string)
14371 fc.Result = res
14372 return ec.marshalNString2string(ctx, field.Selections, res)
14373 }
14374
14375 func (ec *executionContext) _PodHTTPChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14376 defer func() {
14377 if r := recover(); r != nil {
14378 ec.Error(ctx, ec.Recover(ctx, r))
14379 ret = graphql.Null
14380 }
14381 }()
14382 fc := &graphql.FieldContext{
14383 Object: "PodHTTPChaos",
14384 Field: field,
14385 Args: nil,
14386 IsMethod: false,
14387 IsResolver: false,
14388 }
14389
14390 ctx = graphql.WithFieldContext(ctx, fc)
14391 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14392 ctx = rctx
14393 return obj.ResourceVersion, nil
14394 })
14395 if err != nil {
14396 ec.Error(ctx, err)
14397 return graphql.Null
14398 }
14399 if resTmp == nil {
14400 if !graphql.HasFieldError(ctx, fc) {
14401 ec.Errorf(ctx, "must not be null")
14402 }
14403 return graphql.Null
14404 }
14405 res := resTmp.(string)
14406 fc.Result = res
14407 return ec.marshalNString2string(ctx, field.Selections, res)
14408 }
14409
14410 func (ec *executionContext) _PodHTTPChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14411 defer func() {
14412 if r := recover(); r != nil {
14413 ec.Error(ctx, ec.Recover(ctx, r))
14414 ret = graphql.Null
14415 }
14416 }()
14417 fc := &graphql.FieldContext{
14418 Object: "PodHTTPChaos",
14419 Field: field,
14420 Args: nil,
14421 IsMethod: false,
14422 IsResolver: false,
14423 }
14424
14425 ctx = graphql.WithFieldContext(ctx, fc)
14426 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14427 ctx = rctx
14428 return obj.Generation, nil
14429 })
14430 if err != nil {
14431 ec.Error(ctx, err)
14432 return graphql.Null
14433 }
14434 if resTmp == nil {
14435 if !graphql.HasFieldError(ctx, fc) {
14436 ec.Errorf(ctx, "must not be null")
14437 }
14438 return graphql.Null
14439 }
14440 res := resTmp.(int64)
14441 fc.Result = res
14442 return ec.marshalNInt2int64(ctx, field.Selections, res)
14443 }
14444
14445 func (ec *executionContext) _PodHTTPChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14446 defer func() {
14447 if r := recover(); r != nil {
14448 ec.Error(ctx, ec.Recover(ctx, r))
14449 ret = graphql.Null
14450 }
14451 }()
14452 fc := &graphql.FieldContext{
14453 Object: "PodHTTPChaos",
14454 Field: field,
14455 Args: nil,
14456 IsMethod: true,
14457 IsResolver: true,
14458 }
14459
14460 ctx = graphql.WithFieldContext(ctx, fc)
14461 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14462 ctx = rctx
14463 return ec.resolvers.PodHTTPChaos().CreationTimestamp(rctx, obj)
14464 })
14465 if err != nil {
14466 ec.Error(ctx, err)
14467 return graphql.Null
14468 }
14469 if resTmp == nil {
14470 if !graphql.HasFieldError(ctx, fc) {
14471 ec.Errorf(ctx, "must not be null")
14472 }
14473 return graphql.Null
14474 }
14475 res := resTmp.(*time.Time)
14476 fc.Result = res
14477 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
14478 }
14479
14480 func (ec *executionContext) _PodHTTPChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14481 defer func() {
14482 if r := recover(); r != nil {
14483 ec.Error(ctx, ec.Recover(ctx, r))
14484 ret = graphql.Null
14485 }
14486 }()
14487 fc := &graphql.FieldContext{
14488 Object: "PodHTTPChaos",
14489 Field: field,
14490 Args: nil,
14491 IsMethod: true,
14492 IsResolver: true,
14493 }
14494
14495 ctx = graphql.WithFieldContext(ctx, fc)
14496 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14497 ctx = rctx
14498 return ec.resolvers.PodHTTPChaos().DeletionTimestamp(rctx, obj)
14499 })
14500 if err != nil {
14501 ec.Error(ctx, err)
14502 return graphql.Null
14503 }
14504 if resTmp == nil {
14505 return graphql.Null
14506 }
14507 res := resTmp.(*time.Time)
14508 fc.Result = res
14509 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
14510 }
14511
14512 func (ec *executionContext) _PodHTTPChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14513 defer func() {
14514 if r := recover(); r != nil {
14515 ec.Error(ctx, ec.Recover(ctx, r))
14516 ret = graphql.Null
14517 }
14518 }()
14519 fc := &graphql.FieldContext{
14520 Object: "PodHTTPChaos",
14521 Field: field,
14522 Args: nil,
14523 IsMethod: false,
14524 IsResolver: false,
14525 }
14526
14527 ctx = graphql.WithFieldContext(ctx, fc)
14528 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14529 ctx = rctx
14530 return obj.DeletionGracePeriodSeconds, nil
14531 })
14532 if err != nil {
14533 ec.Error(ctx, err)
14534 return graphql.Null
14535 }
14536 if resTmp == nil {
14537 return graphql.Null
14538 }
14539 res := resTmp.(*int64)
14540 fc.Result = res
14541 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
14542 }
14543
14544 func (ec *executionContext) _PodHTTPChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14545 defer func() {
14546 if r := recover(); r != nil {
14547 ec.Error(ctx, ec.Recover(ctx, r))
14548 ret = graphql.Null
14549 }
14550 }()
14551 fc := &graphql.FieldContext{
14552 Object: "PodHTTPChaos",
14553 Field: field,
14554 Args: nil,
14555 IsMethod: true,
14556 IsResolver: true,
14557 }
14558
14559 ctx = graphql.WithFieldContext(ctx, fc)
14560 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14561 ctx = rctx
14562 return ec.resolvers.PodHTTPChaos().Labels(rctx, obj)
14563 })
14564 if err != nil {
14565 ec.Error(ctx, err)
14566 return graphql.Null
14567 }
14568 if resTmp == nil {
14569 return graphql.Null
14570 }
14571 res := resTmp.(map[string]interface{})
14572 fc.Result = res
14573 return ec.marshalOMap2map(ctx, field.Selections, res)
14574 }
14575
14576 func (ec *executionContext) _PodHTTPChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14577 defer func() {
14578 if r := recover(); r != nil {
14579 ec.Error(ctx, ec.Recover(ctx, r))
14580 ret = graphql.Null
14581 }
14582 }()
14583 fc := &graphql.FieldContext{
14584 Object: "PodHTTPChaos",
14585 Field: field,
14586 Args: nil,
14587 IsMethod: true,
14588 IsResolver: true,
14589 }
14590
14591 ctx = graphql.WithFieldContext(ctx, fc)
14592 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14593 ctx = rctx
14594 return ec.resolvers.PodHTTPChaos().Annotations(rctx, obj)
14595 })
14596 if err != nil {
14597 ec.Error(ctx, err)
14598 return graphql.Null
14599 }
14600 if resTmp == nil {
14601 return graphql.Null
14602 }
14603 res := resTmp.(map[string]interface{})
14604 fc.Result = res
14605 return ec.marshalOMap2map(ctx, field.Selections, res)
14606 }
14607
14608 func (ec *executionContext) _PodHTTPChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14609 defer func() {
14610 if r := recover(); r != nil {
14611 ec.Error(ctx, ec.Recover(ctx, r))
14612 ret = graphql.Null
14613 }
14614 }()
14615 fc := &graphql.FieldContext{
14616 Object: "PodHTTPChaos",
14617 Field: field,
14618 Args: nil,
14619 IsMethod: false,
14620 IsResolver: false,
14621 }
14622
14623 ctx = graphql.WithFieldContext(ctx, fc)
14624 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14625 ctx = rctx
14626 return obj.OwnerReferences, nil
14627 })
14628 if err != nil {
14629 ec.Error(ctx, err)
14630 return graphql.Null
14631 }
14632 if resTmp == nil {
14633 return graphql.Null
14634 }
14635 res := resTmp.([]v11.OwnerReference)
14636 fc.Result = res
14637 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
14638 }
14639
14640 func (ec *executionContext) _PodHTTPChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14641 defer func() {
14642 if r := recover(); r != nil {
14643 ec.Error(ctx, ec.Recover(ctx, r))
14644 ret = graphql.Null
14645 }
14646 }()
14647 fc := &graphql.FieldContext{
14648 Object: "PodHTTPChaos",
14649 Field: field,
14650 Args: nil,
14651 IsMethod: false,
14652 IsResolver: false,
14653 }
14654
14655 ctx = graphql.WithFieldContext(ctx, fc)
14656 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14657 ctx = rctx
14658 return obj.Finalizers, nil
14659 })
14660 if err != nil {
14661 ec.Error(ctx, err)
14662 return graphql.Null
14663 }
14664 if resTmp == nil {
14665 return graphql.Null
14666 }
14667 res := resTmp.([]string)
14668 fc.Result = res
14669 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
14670 }
14671
14672 func (ec *executionContext) _PodHTTPChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14673 defer func() {
14674 if r := recover(); r != nil {
14675 ec.Error(ctx, ec.Recover(ctx, r))
14676 ret = graphql.Null
14677 }
14678 }()
14679 fc := &graphql.FieldContext{
14680 Object: "PodHTTPChaos",
14681 Field: field,
14682 Args: nil,
14683 IsMethod: false,
14684 IsResolver: false,
14685 }
14686
14687 ctx = graphql.WithFieldContext(ctx, fc)
14688 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14689 ctx = rctx
14690 return obj.Spec, nil
14691 })
14692 if err != nil {
14693 ec.Error(ctx, err)
14694 return graphql.Null
14695 }
14696 if resTmp == nil {
14697 if !graphql.HasFieldError(ctx, fc) {
14698 ec.Errorf(ctx, "must not be null")
14699 }
14700 return graphql.Null
14701 }
14702 res := resTmp.(v1alpha1.PodHttpChaosSpec)
14703 fc.Result = res
14704 return ec.marshalNPodHttpChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSpec(ctx, field.Selections, res)
14705 }
14706
14707 func (ec *executionContext) _PodHTTPChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14708 defer func() {
14709 if r := recover(); r != nil {
14710 ec.Error(ctx, ec.Recover(ctx, r))
14711 ret = graphql.Null
14712 }
14713 }()
14714 fc := &graphql.FieldContext{
14715 Object: "PodHTTPChaos",
14716 Field: field,
14717 Args: nil,
14718 IsMethod: false,
14719 IsResolver: false,
14720 }
14721
14722 ctx = graphql.WithFieldContext(ctx, fc)
14723 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14724 ctx = rctx
14725 return obj.Status, nil
14726 })
14727 if err != nil {
14728 ec.Error(ctx, err)
14729 return graphql.Null
14730 }
14731 if resTmp == nil {
14732 if !graphql.HasFieldError(ctx, fc) {
14733 ec.Errorf(ctx, "must not be null")
14734 }
14735 return graphql.Null
14736 }
14737 res := resTmp.(v1alpha1.PodHttpChaosStatus)
14738 fc.Result = res
14739 return ec.marshalNPodHttpChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosStatus(ctx, field.Selections, res)
14740 }
14741
14742 func (ec *executionContext) _PodHTTPChaos_pod(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
14743 defer func() {
14744 if r := recover(); r != nil {
14745 ec.Error(ctx, ec.Recover(ctx, r))
14746 ret = graphql.Null
14747 }
14748 }()
14749 fc := &graphql.FieldContext{
14750 Object: "PodHTTPChaos",
14751 Field: field,
14752 Args: nil,
14753 IsMethod: true,
14754 IsResolver: true,
14755 }
14756
14757 ctx = graphql.WithFieldContext(ctx, fc)
14758 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14759 ctx = rctx
14760 return ec.resolvers.PodHTTPChaos().Pod(rctx, obj)
14761 })
14762 if err != nil {
14763 ec.Error(ctx, err)
14764 return graphql.Null
14765 }
14766 if resTmp == nil {
14767 if !graphql.HasFieldError(ctx, fc) {
14768 ec.Errorf(ctx, "must not be null")
14769 }
14770 return graphql.Null
14771 }
14772 res := resTmp.(*v1.Pod)
14773 fc.Result = res
14774 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
14775 }
14776
14777 func (ec *executionContext) _PodHttpChaosActions_abort(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
14778 defer func() {
14779 if r := recover(); r != nil {
14780 ec.Error(ctx, ec.Recover(ctx, r))
14781 ret = graphql.Null
14782 }
14783 }()
14784 fc := &graphql.FieldContext{
14785 Object: "PodHttpChaosActions",
14786 Field: field,
14787 Args: nil,
14788 IsMethod: false,
14789 IsResolver: false,
14790 }
14791
14792 ctx = graphql.WithFieldContext(ctx, fc)
14793 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14794 ctx = rctx
14795 return obj.Abort, nil
14796 })
14797 if err != nil {
14798 ec.Error(ctx, err)
14799 return graphql.Null
14800 }
14801 if resTmp == nil {
14802 return graphql.Null
14803 }
14804 res := resTmp.(*bool)
14805 fc.Result = res
14806 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
14807 }
14808
14809 func (ec *executionContext) _PodHttpChaosActions_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
14810 defer func() {
14811 if r := recover(); r != nil {
14812 ec.Error(ctx, ec.Recover(ctx, r))
14813 ret = graphql.Null
14814 }
14815 }()
14816 fc := &graphql.FieldContext{
14817 Object: "PodHttpChaosActions",
14818 Field: field,
14819 Args: nil,
14820 IsMethod: false,
14821 IsResolver: false,
14822 }
14823
14824 ctx = graphql.WithFieldContext(ctx, fc)
14825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14826 ctx = rctx
14827 return obj.Delay, nil
14828 })
14829 if err != nil {
14830 ec.Error(ctx, err)
14831 return graphql.Null
14832 }
14833 if resTmp == nil {
14834 return graphql.Null
14835 }
14836 res := resTmp.(*string)
14837 fc.Result = res
14838 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
14839 }
14840
14841 func (ec *executionContext) _PodHttpChaosActions_replace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
14842 defer func() {
14843 if r := recover(); r != nil {
14844 ec.Error(ctx, ec.Recover(ctx, r))
14845 ret = graphql.Null
14846 }
14847 }()
14848 fc := &graphql.FieldContext{
14849 Object: "PodHttpChaosActions",
14850 Field: field,
14851 Args: nil,
14852 IsMethod: false,
14853 IsResolver: false,
14854 }
14855
14856 ctx = graphql.WithFieldContext(ctx, fc)
14857 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14858 ctx = rctx
14859 return obj.Replace, nil
14860 })
14861 if err != nil {
14862 ec.Error(ctx, err)
14863 return graphql.Null
14864 }
14865 if resTmp == nil {
14866 return graphql.Null
14867 }
14868 res := resTmp.(*v1alpha1.PodHttpChaosReplaceActions)
14869 fc.Result = res
14870 return ec.marshalOPodHttpChaosReplaceActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosReplaceActions(ctx, field.Selections, res)
14871 }
14872
14873 func (ec *executionContext) _PodHttpChaosActions_patch(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
14874 defer func() {
14875 if r := recover(); r != nil {
14876 ec.Error(ctx, ec.Recover(ctx, r))
14877 ret = graphql.Null
14878 }
14879 }()
14880 fc := &graphql.FieldContext{
14881 Object: "PodHttpChaosActions",
14882 Field: field,
14883 Args: nil,
14884 IsMethod: false,
14885 IsResolver: false,
14886 }
14887
14888 ctx = graphql.WithFieldContext(ctx, fc)
14889 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14890 ctx = rctx
14891 return obj.Patch, nil
14892 })
14893 if err != nil {
14894 ec.Error(ctx, err)
14895 return graphql.Null
14896 }
14897 if resTmp == nil {
14898 return graphql.Null
14899 }
14900 res := resTmp.(*v1alpha1.PodHttpChaosPatchActions)
14901 fc.Result = res
14902 return ec.marshalOPodHttpChaosPatchActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchActions(ctx, field.Selections, res)
14903 }
14904
14905 func (ec *executionContext) _PodHttpChaosPatchActions_body(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchActions) (ret graphql.Marshaler) {
14906 defer func() {
14907 if r := recover(); r != nil {
14908 ec.Error(ctx, ec.Recover(ctx, r))
14909 ret = graphql.Null
14910 }
14911 }()
14912 fc := &graphql.FieldContext{
14913 Object: "PodHttpChaosPatchActions",
14914 Field: field,
14915 Args: nil,
14916 IsMethod: false,
14917 IsResolver: false,
14918 }
14919
14920 ctx = graphql.WithFieldContext(ctx, fc)
14921 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14922 ctx = rctx
14923 return obj.Body, nil
14924 })
14925 if err != nil {
14926 ec.Error(ctx, err)
14927 return graphql.Null
14928 }
14929 if resTmp == nil {
14930 return graphql.Null
14931 }
14932 res := resTmp.(*v1alpha1.PodHttpChaosPatchBodyAction)
14933 fc.Result = res
14934 return ec.marshalOPodHttpChaosPatchBodyAction2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchBodyAction(ctx, field.Selections, res)
14935 }
14936
14937 func (ec *executionContext) _PodHttpChaosPatchActions_queries(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchActions) (ret graphql.Marshaler) {
14938 defer func() {
14939 if r := recover(); r != nil {
14940 ec.Error(ctx, ec.Recover(ctx, r))
14941 ret = graphql.Null
14942 }
14943 }()
14944 fc := &graphql.FieldContext{
14945 Object: "PodHttpChaosPatchActions",
14946 Field: field,
14947 Args: nil,
14948 IsMethod: false,
14949 IsResolver: false,
14950 }
14951
14952 ctx = graphql.WithFieldContext(ctx, fc)
14953 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14954 ctx = rctx
14955 return obj.Queries, nil
14956 })
14957 if err != nil {
14958 ec.Error(ctx, err)
14959 return graphql.Null
14960 }
14961 if resTmp == nil {
14962 return graphql.Null
14963 }
14964 res := resTmp.([][]string)
14965 fc.Result = res
14966 return ec.marshalOString2ᚕᚕstringᚄ(ctx, field.Selections, res)
14967 }
14968
14969 func (ec *executionContext) _PodHttpChaosPatchActions_headers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchActions) (ret graphql.Marshaler) {
14970 defer func() {
14971 if r := recover(); r != nil {
14972 ec.Error(ctx, ec.Recover(ctx, r))
14973 ret = graphql.Null
14974 }
14975 }()
14976 fc := &graphql.FieldContext{
14977 Object: "PodHttpChaosPatchActions",
14978 Field: field,
14979 Args: nil,
14980 IsMethod: false,
14981 IsResolver: false,
14982 }
14983
14984 ctx = graphql.WithFieldContext(ctx, fc)
14985 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14986 ctx = rctx
14987 return obj.Headers, nil
14988 })
14989 if err != nil {
14990 ec.Error(ctx, err)
14991 return graphql.Null
14992 }
14993 if resTmp == nil {
14994 return graphql.Null
14995 }
14996 res := resTmp.([][]string)
14997 fc.Result = res
14998 return ec.marshalOString2ᚕᚕstringᚄ(ctx, field.Selections, res)
14999 }
15000
15001 func (ec *executionContext) _PodHttpChaosPatchBodyAction_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchBodyAction) (ret graphql.Marshaler) {
15002 defer func() {
15003 if r := recover(); r != nil {
15004 ec.Error(ctx, ec.Recover(ctx, r))
15005 ret = graphql.Null
15006 }
15007 }()
15008 fc := &graphql.FieldContext{
15009 Object: "PodHttpChaosPatchBodyAction",
15010 Field: field,
15011 Args: nil,
15012 IsMethod: false,
15013 IsResolver: false,
15014 }
15015
15016 ctx = graphql.WithFieldContext(ctx, fc)
15017 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15018 ctx = rctx
15019 return obj.Type, nil
15020 })
15021 if err != nil {
15022 ec.Error(ctx, err)
15023 return graphql.Null
15024 }
15025 if resTmp == nil {
15026 if !graphql.HasFieldError(ctx, fc) {
15027 ec.Errorf(ctx, "must not be null")
15028 }
15029 return graphql.Null
15030 }
15031 res := resTmp.(string)
15032 fc.Result = res
15033 return ec.marshalNString2string(ctx, field.Selections, res)
15034 }
15035
15036 func (ec *executionContext) _PodHttpChaosPatchBodyAction_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchBodyAction) (ret graphql.Marshaler) {
15037 defer func() {
15038 if r := recover(); r != nil {
15039 ec.Error(ctx, ec.Recover(ctx, r))
15040 ret = graphql.Null
15041 }
15042 }()
15043 fc := &graphql.FieldContext{
15044 Object: "PodHttpChaosPatchBodyAction",
15045 Field: field,
15046 Args: nil,
15047 IsMethod: false,
15048 IsResolver: false,
15049 }
15050
15051 ctx = graphql.WithFieldContext(ctx, fc)
15052 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15053 ctx = rctx
15054 return obj.Value, nil
15055 })
15056 if err != nil {
15057 ec.Error(ctx, err)
15058 return graphql.Null
15059 }
15060 if resTmp == nil {
15061 if !graphql.HasFieldError(ctx, fc) {
15062 ec.Errorf(ctx, "must not be null")
15063 }
15064 return graphql.Null
15065 }
15066 res := resTmp.(string)
15067 fc.Result = res
15068 return ec.marshalNString2string(ctx, field.Selections, res)
15069 }
15070
15071 func (ec *executionContext) _PodHttpChaosReplaceActions_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
15072 defer func() {
15073 if r := recover(); r != nil {
15074 ec.Error(ctx, ec.Recover(ctx, r))
15075 ret = graphql.Null
15076 }
15077 }()
15078 fc := &graphql.FieldContext{
15079 Object: "PodHttpChaosReplaceActions",
15080 Field: field,
15081 Args: nil,
15082 IsMethod: false,
15083 IsResolver: false,
15084 }
15085
15086 ctx = graphql.WithFieldContext(ctx, fc)
15087 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15088 ctx = rctx
15089 return obj.Path, nil
15090 })
15091 if err != nil {
15092 ec.Error(ctx, err)
15093 return graphql.Null
15094 }
15095 if resTmp == nil {
15096 return graphql.Null
15097 }
15098 res := resTmp.(*string)
15099 fc.Result = res
15100 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15101 }
15102
15103 func (ec *executionContext) _PodHttpChaosReplaceActions_method(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
15104 defer func() {
15105 if r := recover(); r != nil {
15106 ec.Error(ctx, ec.Recover(ctx, r))
15107 ret = graphql.Null
15108 }
15109 }()
15110 fc := &graphql.FieldContext{
15111 Object: "PodHttpChaosReplaceActions",
15112 Field: field,
15113 Args: nil,
15114 IsMethod: false,
15115 IsResolver: false,
15116 }
15117
15118 ctx = graphql.WithFieldContext(ctx, fc)
15119 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15120 ctx = rctx
15121 return obj.Method, nil
15122 })
15123 if err != nil {
15124 ec.Error(ctx, err)
15125 return graphql.Null
15126 }
15127 if resTmp == nil {
15128 return graphql.Null
15129 }
15130 res := resTmp.(*string)
15131 fc.Result = res
15132 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15133 }
15134
15135 func (ec *executionContext) _PodHttpChaosReplaceActions_code(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
15136 defer func() {
15137 if r := recover(); r != nil {
15138 ec.Error(ctx, ec.Recover(ctx, r))
15139 ret = graphql.Null
15140 }
15141 }()
15142 fc := &graphql.FieldContext{
15143 Object: "PodHttpChaosReplaceActions",
15144 Field: field,
15145 Args: nil,
15146 IsMethod: false,
15147 IsResolver: false,
15148 }
15149
15150 ctx = graphql.WithFieldContext(ctx, fc)
15151 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15152 ctx = rctx
15153 return obj.Code, nil
15154 })
15155 if err != nil {
15156 ec.Error(ctx, err)
15157 return graphql.Null
15158 }
15159 if resTmp == nil {
15160 return graphql.Null
15161 }
15162 res := resTmp.(*int32)
15163 fc.Result = res
15164 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
15165 }
15166
15167 func (ec *executionContext) _PodHttpChaosReplaceActions_body(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
15168 defer func() {
15169 if r := recover(); r != nil {
15170 ec.Error(ctx, ec.Recover(ctx, r))
15171 ret = graphql.Null
15172 }
15173 }()
15174 fc := &graphql.FieldContext{
15175 Object: "PodHttpChaosReplaceActions",
15176 Field: field,
15177 Args: nil,
15178 IsMethod: true,
15179 IsResolver: true,
15180 }
15181
15182 ctx = graphql.WithFieldContext(ctx, fc)
15183 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15184 ctx = rctx
15185 return ec.resolvers.PodHttpChaosReplaceActions().Body(rctx, obj)
15186 })
15187 if err != nil {
15188 ec.Error(ctx, err)
15189 return graphql.Null
15190 }
15191 if resTmp == nil {
15192 return graphql.Null
15193 }
15194 res := resTmp.(*string)
15195 fc.Result = res
15196 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15197 }
15198
15199 func (ec *executionContext) _PodHttpChaosReplaceActions_queries(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
15200 defer func() {
15201 if r := recover(); r != nil {
15202 ec.Error(ctx, ec.Recover(ctx, r))
15203 ret = graphql.Null
15204 }
15205 }()
15206 fc := &graphql.FieldContext{
15207 Object: "PodHttpChaosReplaceActions",
15208 Field: field,
15209 Args: nil,
15210 IsMethod: true,
15211 IsResolver: true,
15212 }
15213
15214 ctx = graphql.WithFieldContext(ctx, fc)
15215 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15216 ctx = rctx
15217 return ec.resolvers.PodHttpChaosReplaceActions().Queries(rctx, obj)
15218 })
15219 if err != nil {
15220 ec.Error(ctx, err)
15221 return graphql.Null
15222 }
15223 if resTmp == nil {
15224 return graphql.Null
15225 }
15226 res := resTmp.(map[string]interface{})
15227 fc.Result = res
15228 return ec.marshalOMap2map(ctx, field.Selections, res)
15229 }
15230
15231 func (ec *executionContext) _PodHttpChaosReplaceActions_headers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
15232 defer func() {
15233 if r := recover(); r != nil {
15234 ec.Error(ctx, ec.Recover(ctx, r))
15235 ret = graphql.Null
15236 }
15237 }()
15238 fc := &graphql.FieldContext{
15239 Object: "PodHttpChaosReplaceActions",
15240 Field: field,
15241 Args: nil,
15242 IsMethod: true,
15243 IsResolver: true,
15244 }
15245
15246 ctx = graphql.WithFieldContext(ctx, fc)
15247 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15248 ctx = rctx
15249 return ec.resolvers.PodHttpChaosReplaceActions().Headers(rctx, obj)
15250 })
15251 if err != nil {
15252 ec.Error(ctx, err)
15253 return graphql.Null
15254 }
15255 if resTmp == nil {
15256 return graphql.Null
15257 }
15258 res := resTmp.(map[string]interface{})
15259 fc.Result = res
15260 return ec.marshalOMap2map(ctx, field.Selections, res)
15261 }
15262
15263 func (ec *executionContext) _PodHttpChaosRule_target(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
15264 defer func() {
15265 if r := recover(); r != nil {
15266 ec.Error(ctx, ec.Recover(ctx, r))
15267 ret = graphql.Null
15268 }
15269 }()
15270 fc := &graphql.FieldContext{
15271 Object: "PodHttpChaosRule",
15272 Field: field,
15273 Args: nil,
15274 IsMethod: true,
15275 IsResolver: true,
15276 }
15277
15278 ctx = graphql.WithFieldContext(ctx, fc)
15279 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15280 ctx = rctx
15281 return ec.resolvers.PodHttpChaosRule().Target(rctx, obj)
15282 })
15283 if err != nil {
15284 ec.Error(ctx, err)
15285 return graphql.Null
15286 }
15287 if resTmp == nil {
15288 if !graphql.HasFieldError(ctx, fc) {
15289 ec.Errorf(ctx, "must not be null")
15290 }
15291 return graphql.Null
15292 }
15293 res := resTmp.(string)
15294 fc.Result = res
15295 return ec.marshalNString2string(ctx, field.Selections, res)
15296 }
15297
15298 func (ec *executionContext) _PodHttpChaosRule_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
15299 defer func() {
15300 if r := recover(); r != nil {
15301 ec.Error(ctx, ec.Recover(ctx, r))
15302 ret = graphql.Null
15303 }
15304 }()
15305 fc := &graphql.FieldContext{
15306 Object: "PodHttpChaosRule",
15307 Field: field,
15308 Args: nil,
15309 IsMethod: false,
15310 IsResolver: false,
15311 }
15312
15313 ctx = graphql.WithFieldContext(ctx, fc)
15314 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15315 ctx = rctx
15316 return obj.Selector, nil
15317 })
15318 if err != nil {
15319 ec.Error(ctx, err)
15320 return graphql.Null
15321 }
15322 if resTmp == nil {
15323 if !graphql.HasFieldError(ctx, fc) {
15324 ec.Errorf(ctx, "must not be null")
15325 }
15326 return graphql.Null
15327 }
15328 res := resTmp.(v1alpha1.PodHttpChaosSelector)
15329 fc.Result = res
15330 return ec.marshalNPodHttpChaosSelector2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSelector(ctx, field.Selections, res)
15331 }
15332
15333 func (ec *executionContext) _PodHttpChaosRule_actions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
15334 defer func() {
15335 if r := recover(); r != nil {
15336 ec.Error(ctx, ec.Recover(ctx, r))
15337 ret = graphql.Null
15338 }
15339 }()
15340 fc := &graphql.FieldContext{
15341 Object: "PodHttpChaosRule",
15342 Field: field,
15343 Args: nil,
15344 IsMethod: false,
15345 IsResolver: false,
15346 }
15347
15348 ctx = graphql.WithFieldContext(ctx, fc)
15349 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15350 ctx = rctx
15351 return obj.Actions, nil
15352 })
15353 if err != nil {
15354 ec.Error(ctx, err)
15355 return graphql.Null
15356 }
15357 if resTmp == nil {
15358 if !graphql.HasFieldError(ctx, fc) {
15359 ec.Errorf(ctx, "must not be null")
15360 }
15361 return graphql.Null
15362 }
15363 res := resTmp.(v1alpha1.PodHttpChaosActions)
15364 fc.Result = res
15365 return ec.marshalNPodHttpChaosActions2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosActions(ctx, field.Selections, res)
15366 }
15367
15368 func (ec *executionContext) _PodHttpChaosRule_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
15369 defer func() {
15370 if r := recover(); r != nil {
15371 ec.Error(ctx, ec.Recover(ctx, r))
15372 ret = graphql.Null
15373 }
15374 }()
15375 fc := &graphql.FieldContext{
15376 Object: "PodHttpChaosRule",
15377 Field: field,
15378 Args: nil,
15379 IsMethod: false,
15380 IsResolver: false,
15381 }
15382
15383 ctx = graphql.WithFieldContext(ctx, fc)
15384 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15385 ctx = rctx
15386 return obj.Source, nil
15387 })
15388 if err != nil {
15389 ec.Error(ctx, err)
15390 return graphql.Null
15391 }
15392 if resTmp == nil {
15393 if !graphql.HasFieldError(ctx, fc) {
15394 ec.Errorf(ctx, "must not be null")
15395 }
15396 return graphql.Null
15397 }
15398 res := resTmp.(string)
15399 fc.Result = res
15400 return ec.marshalNString2string(ctx, field.Selections, res)
15401 }
15402
15403 func (ec *executionContext) _PodHttpChaosRule_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
15404 defer func() {
15405 if r := recover(); r != nil {
15406 ec.Error(ctx, ec.Recover(ctx, r))
15407 ret = graphql.Null
15408 }
15409 }()
15410 fc := &graphql.FieldContext{
15411 Object: "PodHttpChaosRule",
15412 Field: field,
15413 Args: nil,
15414 IsMethod: false,
15415 IsResolver: false,
15416 }
15417
15418 ctx = graphql.WithFieldContext(ctx, fc)
15419 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15420 ctx = rctx
15421 return obj.Port, nil
15422 })
15423 if err != nil {
15424 ec.Error(ctx, err)
15425 return graphql.Null
15426 }
15427 if resTmp == nil {
15428 if !graphql.HasFieldError(ctx, fc) {
15429 ec.Errorf(ctx, "must not be null")
15430 }
15431 return graphql.Null
15432 }
15433 res := resTmp.(int32)
15434 fc.Result = res
15435 return ec.marshalNInt2int32(ctx, field.Selections, res)
15436 }
15437
15438 func (ec *executionContext) _PodHttpChaosSelector_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
15439 defer func() {
15440 if r := recover(); r != nil {
15441 ec.Error(ctx, ec.Recover(ctx, r))
15442 ret = graphql.Null
15443 }
15444 }()
15445 fc := &graphql.FieldContext{
15446 Object: "PodHttpChaosSelector",
15447 Field: field,
15448 Args: nil,
15449 IsMethod: false,
15450 IsResolver: false,
15451 }
15452
15453 ctx = graphql.WithFieldContext(ctx, fc)
15454 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15455 ctx = rctx
15456 return obj.Port, nil
15457 })
15458 if err != nil {
15459 ec.Error(ctx, err)
15460 return graphql.Null
15461 }
15462 if resTmp == nil {
15463 return graphql.Null
15464 }
15465 res := resTmp.(*int32)
15466 fc.Result = res
15467 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
15468 }
15469
15470 func (ec *executionContext) _PodHttpChaosSelector_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
15471 defer func() {
15472 if r := recover(); r != nil {
15473 ec.Error(ctx, ec.Recover(ctx, r))
15474 ret = graphql.Null
15475 }
15476 }()
15477 fc := &graphql.FieldContext{
15478 Object: "PodHttpChaosSelector",
15479 Field: field,
15480 Args: nil,
15481 IsMethod: false,
15482 IsResolver: false,
15483 }
15484
15485 ctx = graphql.WithFieldContext(ctx, fc)
15486 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15487 ctx = rctx
15488 return obj.Path, nil
15489 })
15490 if err != nil {
15491 ec.Error(ctx, err)
15492 return graphql.Null
15493 }
15494 if resTmp == nil {
15495 return graphql.Null
15496 }
15497 res := resTmp.(*string)
15498 fc.Result = res
15499 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15500 }
15501
15502 func (ec *executionContext) _PodHttpChaosSelector_method(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
15503 defer func() {
15504 if r := recover(); r != nil {
15505 ec.Error(ctx, ec.Recover(ctx, r))
15506 ret = graphql.Null
15507 }
15508 }()
15509 fc := &graphql.FieldContext{
15510 Object: "PodHttpChaosSelector",
15511 Field: field,
15512 Args: nil,
15513 IsMethod: false,
15514 IsResolver: false,
15515 }
15516
15517 ctx = graphql.WithFieldContext(ctx, fc)
15518 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15519 ctx = rctx
15520 return obj.Method, nil
15521 })
15522 if err != nil {
15523 ec.Error(ctx, err)
15524 return graphql.Null
15525 }
15526 if resTmp == nil {
15527 return graphql.Null
15528 }
15529 res := resTmp.(*string)
15530 fc.Result = res
15531 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15532 }
15533
15534 func (ec *executionContext) _PodHttpChaosSelector_code(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
15535 defer func() {
15536 if r := recover(); r != nil {
15537 ec.Error(ctx, ec.Recover(ctx, r))
15538 ret = graphql.Null
15539 }
15540 }()
15541 fc := &graphql.FieldContext{
15542 Object: "PodHttpChaosSelector",
15543 Field: field,
15544 Args: nil,
15545 IsMethod: false,
15546 IsResolver: false,
15547 }
15548
15549 ctx = graphql.WithFieldContext(ctx, fc)
15550 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15551 ctx = rctx
15552 return obj.Code, nil
15553 })
15554 if err != nil {
15555 ec.Error(ctx, err)
15556 return graphql.Null
15557 }
15558 if resTmp == nil {
15559 return graphql.Null
15560 }
15561 res := resTmp.(*int32)
15562 fc.Result = res
15563 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
15564 }
15565
15566 func (ec *executionContext) _PodHttpChaosSelector_requestHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
15567 defer func() {
15568 if r := recover(); r != nil {
15569 ec.Error(ctx, ec.Recover(ctx, r))
15570 ret = graphql.Null
15571 }
15572 }()
15573 fc := &graphql.FieldContext{
15574 Object: "PodHttpChaosSelector",
15575 Field: field,
15576 Args: nil,
15577 IsMethod: true,
15578 IsResolver: true,
15579 }
15580
15581 ctx = graphql.WithFieldContext(ctx, fc)
15582 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15583 ctx = rctx
15584 return ec.resolvers.PodHttpChaosSelector().RequestHeaders(rctx, obj)
15585 })
15586 if err != nil {
15587 ec.Error(ctx, err)
15588 return graphql.Null
15589 }
15590 if resTmp == nil {
15591 return graphql.Null
15592 }
15593 res := resTmp.(map[string]interface{})
15594 fc.Result = res
15595 return ec.marshalOMap2map(ctx, field.Selections, res)
15596 }
15597
15598 func (ec *executionContext) _PodHttpChaosSelector_responseHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
15599 defer func() {
15600 if r := recover(); r != nil {
15601 ec.Error(ctx, ec.Recover(ctx, r))
15602 ret = graphql.Null
15603 }
15604 }()
15605 fc := &graphql.FieldContext{
15606 Object: "PodHttpChaosSelector",
15607 Field: field,
15608 Args: nil,
15609 IsMethod: true,
15610 IsResolver: true,
15611 }
15612
15613 ctx = graphql.WithFieldContext(ctx, fc)
15614 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15615 ctx = rctx
15616 return ec.resolvers.PodHttpChaosSelector().ResponseHeaders(rctx, obj)
15617 })
15618 if err != nil {
15619 ec.Error(ctx, err)
15620 return graphql.Null
15621 }
15622 if resTmp == nil {
15623 return graphql.Null
15624 }
15625 res := resTmp.(map[string]interface{})
15626 fc.Result = res
15627 return ec.marshalOMap2map(ctx, field.Selections, res)
15628 }
15629
15630 func (ec *executionContext) _PodHttpChaosSpec_rules(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSpec) (ret graphql.Marshaler) {
15631 defer func() {
15632 if r := recover(); r != nil {
15633 ec.Error(ctx, ec.Recover(ctx, r))
15634 ret = graphql.Null
15635 }
15636 }()
15637 fc := &graphql.FieldContext{
15638 Object: "PodHttpChaosSpec",
15639 Field: field,
15640 Args: nil,
15641 IsMethod: false,
15642 IsResolver: false,
15643 }
15644
15645 ctx = graphql.WithFieldContext(ctx, fc)
15646 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15647 ctx = rctx
15648 return obj.Rules, nil
15649 })
15650 if err != nil {
15651 ec.Error(ctx, err)
15652 return graphql.Null
15653 }
15654 if resTmp == nil {
15655 if !graphql.HasFieldError(ctx, fc) {
15656 ec.Errorf(ctx, "must not be null")
15657 }
15658 return graphql.Null
15659 }
15660 res := resTmp.([]v1alpha1.PodHttpChaosRule)
15661 fc.Result = res
15662 return ec.marshalNPodHttpChaosRule2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRuleᚄ(ctx, field.Selections, res)
15663 }
15664
15665 func (ec *executionContext) _PodHttpChaosSpec_tls(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSpec) (ret graphql.Marshaler) {
15666 defer func() {
15667 if r := recover(); r != nil {
15668 ec.Error(ctx, ec.Recover(ctx, r))
15669 ret = graphql.Null
15670 }
15671 }()
15672 fc := &graphql.FieldContext{
15673 Object: "PodHttpChaosSpec",
15674 Field: field,
15675 Args: nil,
15676 IsMethod: false,
15677 IsResolver: false,
15678 }
15679
15680 ctx = graphql.WithFieldContext(ctx, fc)
15681 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15682 ctx = rctx
15683 return obj.TLS, nil
15684 })
15685 if err != nil {
15686 ec.Error(ctx, err)
15687 return graphql.Null
15688 }
15689 if resTmp == nil {
15690 return graphql.Null
15691 }
15692 res := resTmp.(*v1alpha1.PodHttpChaosTLS)
15693 fc.Result = res
15694 return ec.marshalOPodHttpChaosTLS2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosTLS(ctx, field.Selections, res)
15695 }
15696
15697 func (ec *executionContext) _PodHttpChaosStatus_pid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
15698 defer func() {
15699 if r := recover(); r != nil {
15700 ec.Error(ctx, ec.Recover(ctx, r))
15701 ret = graphql.Null
15702 }
15703 }()
15704 fc := &graphql.FieldContext{
15705 Object: "PodHttpChaosStatus",
15706 Field: field,
15707 Args: nil,
15708 IsMethod: false,
15709 IsResolver: false,
15710 }
15711
15712 ctx = graphql.WithFieldContext(ctx, fc)
15713 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15714 ctx = rctx
15715 return obj.Pid, nil
15716 })
15717 if err != nil {
15718 ec.Error(ctx, err)
15719 return graphql.Null
15720 }
15721 if resTmp == nil {
15722 return graphql.Null
15723 }
15724 res := resTmp.(int64)
15725 fc.Result = res
15726 return ec.marshalOInt2int64(ctx, field.Selections, res)
15727 }
15728
15729 func (ec *executionContext) _PodHttpChaosStatus_startTime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
15730 defer func() {
15731 if r := recover(); r != nil {
15732 ec.Error(ctx, ec.Recover(ctx, r))
15733 ret = graphql.Null
15734 }
15735 }()
15736 fc := &graphql.FieldContext{
15737 Object: "PodHttpChaosStatus",
15738 Field: field,
15739 Args: nil,
15740 IsMethod: false,
15741 IsResolver: false,
15742 }
15743
15744 ctx = graphql.WithFieldContext(ctx, fc)
15745 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15746 ctx = rctx
15747 return obj.StartTime, nil
15748 })
15749 if err != nil {
15750 ec.Error(ctx, err)
15751 return graphql.Null
15752 }
15753 if resTmp == nil {
15754 return graphql.Null
15755 }
15756 res := resTmp.(int64)
15757 fc.Result = res
15758 return ec.marshalOInt2int64(ctx, field.Selections, res)
15759 }
15760
15761 func (ec *executionContext) _PodHttpChaosStatus_failedMessage(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
15762 defer func() {
15763 if r := recover(); r != nil {
15764 ec.Error(ctx, ec.Recover(ctx, r))
15765 ret = graphql.Null
15766 }
15767 }()
15768 fc := &graphql.FieldContext{
15769 Object: "PodHttpChaosStatus",
15770 Field: field,
15771 Args: nil,
15772 IsMethod: false,
15773 IsResolver: false,
15774 }
15775
15776 ctx = graphql.WithFieldContext(ctx, fc)
15777 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15778 ctx = rctx
15779 return obj.FailedMessage, nil
15780 })
15781 if err != nil {
15782 ec.Error(ctx, err)
15783 return graphql.Null
15784 }
15785 if resTmp == nil {
15786 return graphql.Null
15787 }
15788 res := resTmp.(string)
15789 fc.Result = res
15790 return ec.marshalOString2string(ctx, field.Selections, res)
15791 }
15792
15793 func (ec *executionContext) _PodHttpChaosStatus_observedGeneration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
15794 defer func() {
15795 if r := recover(); r != nil {
15796 ec.Error(ctx, ec.Recover(ctx, r))
15797 ret = graphql.Null
15798 }
15799 }()
15800 fc := &graphql.FieldContext{
15801 Object: "PodHttpChaosStatus",
15802 Field: field,
15803 Args: nil,
15804 IsMethod: false,
15805 IsResolver: false,
15806 }
15807
15808 ctx = graphql.WithFieldContext(ctx, fc)
15809 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15810 ctx = rctx
15811 return obj.ObservedGeneration, nil
15812 })
15813 if err != nil {
15814 ec.Error(ctx, err)
15815 return graphql.Null
15816 }
15817 if resTmp == nil {
15818 return graphql.Null
15819 }
15820 res := resTmp.(int64)
15821 fc.Result = res
15822 return ec.marshalOInt2int64(ctx, field.Selections, res)
15823 }
15824
15825 func (ec *executionContext) _PodHttpChaosTLS_secretName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosTLS) (ret graphql.Marshaler) {
15826 defer func() {
15827 if r := recover(); r != nil {
15828 ec.Error(ctx, ec.Recover(ctx, r))
15829 ret = graphql.Null
15830 }
15831 }()
15832 fc := &graphql.FieldContext{
15833 Object: "PodHttpChaosTLS",
15834 Field: field,
15835 Args: nil,
15836 IsMethod: false,
15837 IsResolver: false,
15838 }
15839
15840 ctx = graphql.WithFieldContext(ctx, fc)
15841 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15842 ctx = rctx
15843 return obj.SecretName, nil
15844 })
15845 if err != nil {
15846 ec.Error(ctx, err)
15847 return graphql.Null
15848 }
15849 if resTmp == nil {
15850 if !graphql.HasFieldError(ctx, fc) {
15851 ec.Errorf(ctx, "must not be null")
15852 }
15853 return graphql.Null
15854 }
15855 res := resTmp.(string)
15856 fc.Result = res
15857 return ec.marshalNString2string(ctx, field.Selections, res)
15858 }
15859
15860 func (ec *executionContext) _PodHttpChaosTLS_secretNamespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosTLS) (ret graphql.Marshaler) {
15861 defer func() {
15862 if r := recover(); r != nil {
15863 ec.Error(ctx, ec.Recover(ctx, r))
15864 ret = graphql.Null
15865 }
15866 }()
15867 fc := &graphql.FieldContext{
15868 Object: "PodHttpChaosTLS",
15869 Field: field,
15870 Args: nil,
15871 IsMethod: false,
15872 IsResolver: false,
15873 }
15874
15875 ctx = graphql.WithFieldContext(ctx, fc)
15876 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15877 ctx = rctx
15878 return obj.SecretNamespace, nil
15879 })
15880 if err != nil {
15881 ec.Error(ctx, err)
15882 return graphql.Null
15883 }
15884 if resTmp == nil {
15885 if !graphql.HasFieldError(ctx, fc) {
15886 ec.Errorf(ctx, "must not be null")
15887 }
15888 return graphql.Null
15889 }
15890 res := resTmp.(string)
15891 fc.Result = res
15892 return ec.marshalNString2string(ctx, field.Selections, res)
15893 }
15894
15895 func (ec *executionContext) _PodHttpChaosTLS_certName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosTLS) (ret graphql.Marshaler) {
15896 defer func() {
15897 if r := recover(); r != nil {
15898 ec.Error(ctx, ec.Recover(ctx, r))
15899 ret = graphql.Null
15900 }
15901 }()
15902 fc := &graphql.FieldContext{
15903 Object: "PodHttpChaosTLS",
15904 Field: field,
15905 Args: nil,
15906 IsMethod: false,
15907 IsResolver: false,
15908 }
15909
15910 ctx = graphql.WithFieldContext(ctx, fc)
15911 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15912 ctx = rctx
15913 return obj.CertName, nil
15914 })
15915 if err != nil {
15916 ec.Error(ctx, err)
15917 return graphql.Null
15918 }
15919 if resTmp == nil {
15920 if !graphql.HasFieldError(ctx, fc) {
15921 ec.Errorf(ctx, "must not be null")
15922 }
15923 return graphql.Null
15924 }
15925 res := resTmp.(string)
15926 fc.Result = res
15927 return ec.marshalNString2string(ctx, field.Selections, res)
15928 }
15929
15930 func (ec *executionContext) _PodHttpChaosTLS_keyName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosTLS) (ret graphql.Marshaler) {
15931 defer func() {
15932 if r := recover(); r != nil {
15933 ec.Error(ctx, ec.Recover(ctx, r))
15934 ret = graphql.Null
15935 }
15936 }()
15937 fc := &graphql.FieldContext{
15938 Object: "PodHttpChaosTLS",
15939 Field: field,
15940 Args: nil,
15941 IsMethod: false,
15942 IsResolver: false,
15943 }
15944
15945 ctx = graphql.WithFieldContext(ctx, fc)
15946 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15947 ctx = rctx
15948 return obj.KeyName, nil
15949 })
15950 if err != nil {
15951 ec.Error(ctx, err)
15952 return graphql.Null
15953 }
15954 if resTmp == nil {
15955 if !graphql.HasFieldError(ctx, fc) {
15956 ec.Errorf(ctx, "must not be null")
15957 }
15958 return graphql.Null
15959 }
15960 res := resTmp.(string)
15961 fc.Result = res
15962 return ec.marshalNString2string(ctx, field.Selections, res)
15963 }
15964
15965 func (ec *executionContext) _PodHttpChaosTLS_caName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosTLS) (ret graphql.Marshaler) {
15966 defer func() {
15967 if r := recover(); r != nil {
15968 ec.Error(ctx, ec.Recover(ctx, r))
15969 ret = graphql.Null
15970 }
15971 }()
15972 fc := &graphql.FieldContext{
15973 Object: "PodHttpChaosTLS",
15974 Field: field,
15975 Args: nil,
15976 IsMethod: false,
15977 IsResolver: false,
15978 }
15979
15980 ctx = graphql.WithFieldContext(ctx, fc)
15981 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15982 ctx = rctx
15983 return obj.CAName, nil
15984 })
15985 if err != nil {
15986 ec.Error(ctx, err)
15987 return graphql.Null
15988 }
15989 if resTmp == nil {
15990 return graphql.Null
15991 }
15992 res := resTmp.(*string)
15993 fc.Result = res
15994 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15995 }
15996
15997 func (ec *executionContext) _PodIOChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
15998 defer func() {
15999 if r := recover(); r != nil {
16000 ec.Error(ctx, ec.Recover(ctx, r))
16001 ret = graphql.Null
16002 }
16003 }()
16004 fc := &graphql.FieldContext{
16005 Object: "PodIOChaos",
16006 Field: field,
16007 Args: nil,
16008 IsMethod: false,
16009 IsResolver: false,
16010 }
16011
16012 ctx = graphql.WithFieldContext(ctx, fc)
16013 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16014 ctx = rctx
16015 return obj.Kind, nil
16016 })
16017 if err != nil {
16018 ec.Error(ctx, err)
16019 return graphql.Null
16020 }
16021 if resTmp == nil {
16022 if !graphql.HasFieldError(ctx, fc) {
16023 ec.Errorf(ctx, "must not be null")
16024 }
16025 return graphql.Null
16026 }
16027 res := resTmp.(string)
16028 fc.Result = res
16029 return ec.marshalNString2string(ctx, field.Selections, res)
16030 }
16031
16032 func (ec *executionContext) _PodIOChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16033 defer func() {
16034 if r := recover(); r != nil {
16035 ec.Error(ctx, ec.Recover(ctx, r))
16036 ret = graphql.Null
16037 }
16038 }()
16039 fc := &graphql.FieldContext{
16040 Object: "PodIOChaos",
16041 Field: field,
16042 Args: nil,
16043 IsMethod: false,
16044 IsResolver: false,
16045 }
16046
16047 ctx = graphql.WithFieldContext(ctx, fc)
16048 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16049 ctx = rctx
16050 return obj.APIVersion, nil
16051 })
16052 if err != nil {
16053 ec.Error(ctx, err)
16054 return graphql.Null
16055 }
16056 if resTmp == nil {
16057 if !graphql.HasFieldError(ctx, fc) {
16058 ec.Errorf(ctx, "must not be null")
16059 }
16060 return graphql.Null
16061 }
16062 res := resTmp.(string)
16063 fc.Result = res
16064 return ec.marshalNString2string(ctx, field.Selections, res)
16065 }
16066
16067 func (ec *executionContext) _PodIOChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16068 defer func() {
16069 if r := recover(); r != nil {
16070 ec.Error(ctx, ec.Recover(ctx, r))
16071 ret = graphql.Null
16072 }
16073 }()
16074 fc := &graphql.FieldContext{
16075 Object: "PodIOChaos",
16076 Field: field,
16077 Args: nil,
16078 IsMethod: false,
16079 IsResolver: false,
16080 }
16081
16082 ctx = graphql.WithFieldContext(ctx, fc)
16083 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16084 ctx = rctx
16085 return obj.Name, nil
16086 })
16087 if err != nil {
16088 ec.Error(ctx, err)
16089 return graphql.Null
16090 }
16091 if resTmp == nil {
16092 if !graphql.HasFieldError(ctx, fc) {
16093 ec.Errorf(ctx, "must not be null")
16094 }
16095 return graphql.Null
16096 }
16097 res := resTmp.(string)
16098 fc.Result = res
16099 return ec.marshalNString2string(ctx, field.Selections, res)
16100 }
16101
16102 func (ec *executionContext) _PodIOChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16103 defer func() {
16104 if r := recover(); r != nil {
16105 ec.Error(ctx, ec.Recover(ctx, r))
16106 ret = graphql.Null
16107 }
16108 }()
16109 fc := &graphql.FieldContext{
16110 Object: "PodIOChaos",
16111 Field: field,
16112 Args: nil,
16113 IsMethod: false,
16114 IsResolver: false,
16115 }
16116
16117 ctx = graphql.WithFieldContext(ctx, fc)
16118 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16119 ctx = rctx
16120 return obj.GenerateName, nil
16121 })
16122 if err != nil {
16123 ec.Error(ctx, err)
16124 return graphql.Null
16125 }
16126 if resTmp == nil {
16127 if !graphql.HasFieldError(ctx, fc) {
16128 ec.Errorf(ctx, "must not be null")
16129 }
16130 return graphql.Null
16131 }
16132 res := resTmp.(string)
16133 fc.Result = res
16134 return ec.marshalNString2string(ctx, field.Selections, res)
16135 }
16136
16137 func (ec *executionContext) _PodIOChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16138 defer func() {
16139 if r := recover(); r != nil {
16140 ec.Error(ctx, ec.Recover(ctx, r))
16141 ret = graphql.Null
16142 }
16143 }()
16144 fc := &graphql.FieldContext{
16145 Object: "PodIOChaos",
16146 Field: field,
16147 Args: nil,
16148 IsMethod: false,
16149 IsResolver: false,
16150 }
16151
16152 ctx = graphql.WithFieldContext(ctx, fc)
16153 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16154 ctx = rctx
16155 return obj.Namespace, nil
16156 })
16157 if err != nil {
16158 ec.Error(ctx, err)
16159 return graphql.Null
16160 }
16161 if resTmp == nil {
16162 if !graphql.HasFieldError(ctx, fc) {
16163 ec.Errorf(ctx, "must not be null")
16164 }
16165 return graphql.Null
16166 }
16167 res := resTmp.(string)
16168 fc.Result = res
16169 return ec.marshalNString2string(ctx, field.Selections, res)
16170 }
16171
16172 func (ec *executionContext) _PodIOChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16173 defer func() {
16174 if r := recover(); r != nil {
16175 ec.Error(ctx, ec.Recover(ctx, r))
16176 ret = graphql.Null
16177 }
16178 }()
16179 fc := &graphql.FieldContext{
16180 Object: "PodIOChaos",
16181 Field: field,
16182 Args: nil,
16183 IsMethod: false,
16184 IsResolver: false,
16185 }
16186
16187 ctx = graphql.WithFieldContext(ctx, fc)
16188 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16189 ctx = rctx
16190 return obj.SelfLink, nil
16191 })
16192 if err != nil {
16193 ec.Error(ctx, err)
16194 return graphql.Null
16195 }
16196 if resTmp == nil {
16197 if !graphql.HasFieldError(ctx, fc) {
16198 ec.Errorf(ctx, "must not be null")
16199 }
16200 return graphql.Null
16201 }
16202 res := resTmp.(string)
16203 fc.Result = res
16204 return ec.marshalNString2string(ctx, field.Selections, res)
16205 }
16206
16207 func (ec *executionContext) _PodIOChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16208 defer func() {
16209 if r := recover(); r != nil {
16210 ec.Error(ctx, ec.Recover(ctx, r))
16211 ret = graphql.Null
16212 }
16213 }()
16214 fc := &graphql.FieldContext{
16215 Object: "PodIOChaos",
16216 Field: field,
16217 Args: nil,
16218 IsMethod: true,
16219 IsResolver: true,
16220 }
16221
16222 ctx = graphql.WithFieldContext(ctx, fc)
16223 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16224 ctx = rctx
16225 return ec.resolvers.PodIOChaos().UID(rctx, obj)
16226 })
16227 if err != nil {
16228 ec.Error(ctx, err)
16229 return graphql.Null
16230 }
16231 if resTmp == nil {
16232 if !graphql.HasFieldError(ctx, fc) {
16233 ec.Errorf(ctx, "must not be null")
16234 }
16235 return graphql.Null
16236 }
16237 res := resTmp.(string)
16238 fc.Result = res
16239 return ec.marshalNString2string(ctx, field.Selections, res)
16240 }
16241
16242 func (ec *executionContext) _PodIOChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16243 defer func() {
16244 if r := recover(); r != nil {
16245 ec.Error(ctx, ec.Recover(ctx, r))
16246 ret = graphql.Null
16247 }
16248 }()
16249 fc := &graphql.FieldContext{
16250 Object: "PodIOChaos",
16251 Field: field,
16252 Args: nil,
16253 IsMethod: false,
16254 IsResolver: false,
16255 }
16256
16257 ctx = graphql.WithFieldContext(ctx, fc)
16258 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16259 ctx = rctx
16260 return obj.ResourceVersion, nil
16261 })
16262 if err != nil {
16263 ec.Error(ctx, err)
16264 return graphql.Null
16265 }
16266 if resTmp == nil {
16267 if !graphql.HasFieldError(ctx, fc) {
16268 ec.Errorf(ctx, "must not be null")
16269 }
16270 return graphql.Null
16271 }
16272 res := resTmp.(string)
16273 fc.Result = res
16274 return ec.marshalNString2string(ctx, field.Selections, res)
16275 }
16276
16277 func (ec *executionContext) _PodIOChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16278 defer func() {
16279 if r := recover(); r != nil {
16280 ec.Error(ctx, ec.Recover(ctx, r))
16281 ret = graphql.Null
16282 }
16283 }()
16284 fc := &graphql.FieldContext{
16285 Object: "PodIOChaos",
16286 Field: field,
16287 Args: nil,
16288 IsMethod: false,
16289 IsResolver: false,
16290 }
16291
16292 ctx = graphql.WithFieldContext(ctx, fc)
16293 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16294 ctx = rctx
16295 return obj.Generation, nil
16296 })
16297 if err != nil {
16298 ec.Error(ctx, err)
16299 return graphql.Null
16300 }
16301 if resTmp == nil {
16302 if !graphql.HasFieldError(ctx, fc) {
16303 ec.Errorf(ctx, "must not be null")
16304 }
16305 return graphql.Null
16306 }
16307 res := resTmp.(int64)
16308 fc.Result = res
16309 return ec.marshalNInt2int64(ctx, field.Selections, res)
16310 }
16311
16312 func (ec *executionContext) _PodIOChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16313 defer func() {
16314 if r := recover(); r != nil {
16315 ec.Error(ctx, ec.Recover(ctx, r))
16316 ret = graphql.Null
16317 }
16318 }()
16319 fc := &graphql.FieldContext{
16320 Object: "PodIOChaos",
16321 Field: field,
16322 Args: nil,
16323 IsMethod: true,
16324 IsResolver: true,
16325 }
16326
16327 ctx = graphql.WithFieldContext(ctx, fc)
16328 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16329 ctx = rctx
16330 return ec.resolvers.PodIOChaos().CreationTimestamp(rctx, obj)
16331 })
16332 if err != nil {
16333 ec.Error(ctx, err)
16334 return graphql.Null
16335 }
16336 if resTmp == nil {
16337 if !graphql.HasFieldError(ctx, fc) {
16338 ec.Errorf(ctx, "must not be null")
16339 }
16340 return graphql.Null
16341 }
16342 res := resTmp.(*time.Time)
16343 fc.Result = res
16344 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
16345 }
16346
16347 func (ec *executionContext) _PodIOChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16348 defer func() {
16349 if r := recover(); r != nil {
16350 ec.Error(ctx, ec.Recover(ctx, r))
16351 ret = graphql.Null
16352 }
16353 }()
16354 fc := &graphql.FieldContext{
16355 Object: "PodIOChaos",
16356 Field: field,
16357 Args: nil,
16358 IsMethod: true,
16359 IsResolver: true,
16360 }
16361
16362 ctx = graphql.WithFieldContext(ctx, fc)
16363 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16364 ctx = rctx
16365 return ec.resolvers.PodIOChaos().DeletionTimestamp(rctx, obj)
16366 })
16367 if err != nil {
16368 ec.Error(ctx, err)
16369 return graphql.Null
16370 }
16371 if resTmp == nil {
16372 return graphql.Null
16373 }
16374 res := resTmp.(*time.Time)
16375 fc.Result = res
16376 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
16377 }
16378
16379 func (ec *executionContext) _PodIOChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16380 defer func() {
16381 if r := recover(); r != nil {
16382 ec.Error(ctx, ec.Recover(ctx, r))
16383 ret = graphql.Null
16384 }
16385 }()
16386 fc := &graphql.FieldContext{
16387 Object: "PodIOChaos",
16388 Field: field,
16389 Args: nil,
16390 IsMethod: false,
16391 IsResolver: false,
16392 }
16393
16394 ctx = graphql.WithFieldContext(ctx, fc)
16395 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16396 ctx = rctx
16397 return obj.DeletionGracePeriodSeconds, nil
16398 })
16399 if err != nil {
16400 ec.Error(ctx, err)
16401 return graphql.Null
16402 }
16403 if resTmp == nil {
16404 return graphql.Null
16405 }
16406 res := resTmp.(*int64)
16407 fc.Result = res
16408 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
16409 }
16410
16411 func (ec *executionContext) _PodIOChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16412 defer func() {
16413 if r := recover(); r != nil {
16414 ec.Error(ctx, ec.Recover(ctx, r))
16415 ret = graphql.Null
16416 }
16417 }()
16418 fc := &graphql.FieldContext{
16419 Object: "PodIOChaos",
16420 Field: field,
16421 Args: nil,
16422 IsMethod: true,
16423 IsResolver: true,
16424 }
16425
16426 ctx = graphql.WithFieldContext(ctx, fc)
16427 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16428 ctx = rctx
16429 return ec.resolvers.PodIOChaos().Labels(rctx, obj)
16430 })
16431 if err != nil {
16432 ec.Error(ctx, err)
16433 return graphql.Null
16434 }
16435 if resTmp == nil {
16436 return graphql.Null
16437 }
16438 res := resTmp.(map[string]interface{})
16439 fc.Result = res
16440 return ec.marshalOMap2map(ctx, field.Selections, res)
16441 }
16442
16443 func (ec *executionContext) _PodIOChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16444 defer func() {
16445 if r := recover(); r != nil {
16446 ec.Error(ctx, ec.Recover(ctx, r))
16447 ret = graphql.Null
16448 }
16449 }()
16450 fc := &graphql.FieldContext{
16451 Object: "PodIOChaos",
16452 Field: field,
16453 Args: nil,
16454 IsMethod: true,
16455 IsResolver: true,
16456 }
16457
16458 ctx = graphql.WithFieldContext(ctx, fc)
16459 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16460 ctx = rctx
16461 return ec.resolvers.PodIOChaos().Annotations(rctx, obj)
16462 })
16463 if err != nil {
16464 ec.Error(ctx, err)
16465 return graphql.Null
16466 }
16467 if resTmp == nil {
16468 return graphql.Null
16469 }
16470 res := resTmp.(map[string]interface{})
16471 fc.Result = res
16472 return ec.marshalOMap2map(ctx, field.Selections, res)
16473 }
16474
16475 func (ec *executionContext) _PodIOChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16476 defer func() {
16477 if r := recover(); r != nil {
16478 ec.Error(ctx, ec.Recover(ctx, r))
16479 ret = graphql.Null
16480 }
16481 }()
16482 fc := &graphql.FieldContext{
16483 Object: "PodIOChaos",
16484 Field: field,
16485 Args: nil,
16486 IsMethod: false,
16487 IsResolver: false,
16488 }
16489
16490 ctx = graphql.WithFieldContext(ctx, fc)
16491 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16492 ctx = rctx
16493 return obj.OwnerReferences, nil
16494 })
16495 if err != nil {
16496 ec.Error(ctx, err)
16497 return graphql.Null
16498 }
16499 if resTmp == nil {
16500 return graphql.Null
16501 }
16502 res := resTmp.([]v11.OwnerReference)
16503 fc.Result = res
16504 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
16505 }
16506
16507 func (ec *executionContext) _PodIOChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16508 defer func() {
16509 if r := recover(); r != nil {
16510 ec.Error(ctx, ec.Recover(ctx, r))
16511 ret = graphql.Null
16512 }
16513 }()
16514 fc := &graphql.FieldContext{
16515 Object: "PodIOChaos",
16516 Field: field,
16517 Args: nil,
16518 IsMethod: false,
16519 IsResolver: false,
16520 }
16521
16522 ctx = graphql.WithFieldContext(ctx, fc)
16523 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16524 ctx = rctx
16525 return obj.Finalizers, nil
16526 })
16527 if err != nil {
16528 ec.Error(ctx, err)
16529 return graphql.Null
16530 }
16531 if resTmp == nil {
16532 return graphql.Null
16533 }
16534 res := resTmp.([]string)
16535 fc.Result = res
16536 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
16537 }
16538
16539 func (ec *executionContext) _PodIOChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16540 defer func() {
16541 if r := recover(); r != nil {
16542 ec.Error(ctx, ec.Recover(ctx, r))
16543 ret = graphql.Null
16544 }
16545 }()
16546 fc := &graphql.FieldContext{
16547 Object: "PodIOChaos",
16548 Field: field,
16549 Args: nil,
16550 IsMethod: false,
16551 IsResolver: false,
16552 }
16553
16554 ctx = graphql.WithFieldContext(ctx, fc)
16555 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16556 ctx = rctx
16557 return obj.Spec, nil
16558 })
16559 if err != nil {
16560 ec.Error(ctx, err)
16561 return graphql.Null
16562 }
16563 if resTmp == nil {
16564 if !graphql.HasFieldError(ctx, fc) {
16565 ec.Errorf(ctx, "must not be null")
16566 }
16567 return graphql.Null
16568 }
16569 res := resTmp.(v1alpha1.PodIOChaosSpec)
16570 fc.Result = res
16571 return ec.marshalNPodIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosSpec(ctx, field.Selections, res)
16572 }
16573
16574 func (ec *executionContext) _PodIOChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16575 defer func() {
16576 if r := recover(); r != nil {
16577 ec.Error(ctx, ec.Recover(ctx, r))
16578 ret = graphql.Null
16579 }
16580 }()
16581 fc := &graphql.FieldContext{
16582 Object: "PodIOChaos",
16583 Field: field,
16584 Args: nil,
16585 IsMethod: false,
16586 IsResolver: false,
16587 }
16588
16589 ctx = graphql.WithFieldContext(ctx, fc)
16590 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16591 ctx = rctx
16592 return obj.Status, nil
16593 })
16594 if err != nil {
16595 ec.Error(ctx, err)
16596 return graphql.Null
16597 }
16598 if resTmp == nil {
16599 if !graphql.HasFieldError(ctx, fc) {
16600 ec.Errorf(ctx, "must not be null")
16601 }
16602 return graphql.Null
16603 }
16604 res := resTmp.(v1alpha1.PodIOChaosStatus)
16605 fc.Result = res
16606 return ec.marshalNPodIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosStatus(ctx, field.Selections, res)
16607 }
16608
16609 func (ec *executionContext) _PodIOChaos_pod(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16610 defer func() {
16611 if r := recover(); r != nil {
16612 ec.Error(ctx, ec.Recover(ctx, r))
16613 ret = graphql.Null
16614 }
16615 }()
16616 fc := &graphql.FieldContext{
16617 Object: "PodIOChaos",
16618 Field: field,
16619 Args: nil,
16620 IsMethod: true,
16621 IsResolver: true,
16622 }
16623
16624 ctx = graphql.WithFieldContext(ctx, fc)
16625 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16626 ctx = rctx
16627 return ec.resolvers.PodIOChaos().Pod(rctx, obj)
16628 })
16629 if err != nil {
16630 ec.Error(ctx, err)
16631 return graphql.Null
16632 }
16633 if resTmp == nil {
16634 if !graphql.HasFieldError(ctx, fc) {
16635 ec.Errorf(ctx, "must not be null")
16636 }
16637 return graphql.Null
16638 }
16639 res := resTmp.(*v1.Pod)
16640 fc.Result = res
16641 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
16642 }
16643
16644 func (ec *executionContext) _PodIOChaos_ios(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
16645 defer func() {
16646 if r := recover(); r != nil {
16647 ec.Error(ctx, ec.Recover(ctx, r))
16648 ret = graphql.Null
16649 }
16650 }()
16651 fc := &graphql.FieldContext{
16652 Object: "PodIOChaos",
16653 Field: field,
16654 Args: nil,
16655 IsMethod: true,
16656 IsResolver: true,
16657 }
16658
16659 ctx = graphql.WithFieldContext(ctx, fc)
16660 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16661 ctx = rctx
16662 return ec.resolvers.PodIOChaos().Ios(rctx, obj)
16663 })
16664 if err != nil {
16665 ec.Error(ctx, err)
16666 return graphql.Null
16667 }
16668 if resTmp == nil {
16669 return graphql.Null
16670 }
16671 res := resTmp.([]*v1alpha1.IOChaos)
16672 fc.Result = res
16673 return ec.marshalOIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosᚄ(ctx, field.Selections, res)
16674 }
16675
16676 func (ec *executionContext) _PodIOChaosSpec_volumeMountPath(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosSpec) (ret graphql.Marshaler) {
16677 defer func() {
16678 if r := recover(); r != nil {
16679 ec.Error(ctx, ec.Recover(ctx, r))
16680 ret = graphql.Null
16681 }
16682 }()
16683 fc := &graphql.FieldContext{
16684 Object: "PodIOChaosSpec",
16685 Field: field,
16686 Args: nil,
16687 IsMethod: false,
16688 IsResolver: false,
16689 }
16690
16691 ctx = graphql.WithFieldContext(ctx, fc)
16692 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16693 ctx = rctx
16694 return obj.VolumeMountPath, nil
16695 })
16696 if err != nil {
16697 ec.Error(ctx, err)
16698 return graphql.Null
16699 }
16700 if resTmp == nil {
16701 if !graphql.HasFieldError(ctx, fc) {
16702 ec.Errorf(ctx, "must not be null")
16703 }
16704 return graphql.Null
16705 }
16706 res := resTmp.(string)
16707 fc.Result = res
16708 return ec.marshalNString2string(ctx, field.Selections, res)
16709 }
16710
16711 func (ec *executionContext) _PodIOChaosSpec_container(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosSpec) (ret graphql.Marshaler) {
16712 defer func() {
16713 if r := recover(); r != nil {
16714 ec.Error(ctx, ec.Recover(ctx, r))
16715 ret = graphql.Null
16716 }
16717 }()
16718 fc := &graphql.FieldContext{
16719 Object: "PodIOChaosSpec",
16720 Field: field,
16721 Args: nil,
16722 IsMethod: false,
16723 IsResolver: false,
16724 }
16725
16726 ctx = graphql.WithFieldContext(ctx, fc)
16727 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16728 ctx = rctx
16729 return obj.Container, nil
16730 })
16731 if err != nil {
16732 ec.Error(ctx, err)
16733 return graphql.Null
16734 }
16735 if resTmp == nil {
16736 return graphql.Null
16737 }
16738 res := resTmp.(*string)
16739 fc.Result = res
16740 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
16741 }
16742
16743 func (ec *executionContext) _PodIOChaosSpec_actions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosSpec) (ret graphql.Marshaler) {
16744 defer func() {
16745 if r := recover(); r != nil {
16746 ec.Error(ctx, ec.Recover(ctx, r))
16747 ret = graphql.Null
16748 }
16749 }()
16750 fc := &graphql.FieldContext{
16751 Object: "PodIOChaosSpec",
16752 Field: field,
16753 Args: nil,
16754 IsMethod: false,
16755 IsResolver: false,
16756 }
16757
16758 ctx = graphql.WithFieldContext(ctx, fc)
16759 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16760 ctx = rctx
16761 return obj.Actions, nil
16762 })
16763 if err != nil {
16764 ec.Error(ctx, err)
16765 return graphql.Null
16766 }
16767 if resTmp == nil {
16768 return graphql.Null
16769 }
16770 res := resTmp.([]v1alpha1.IOChaosAction)
16771 fc.Result = res
16772 return ec.marshalOIOChaosAction2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosActionᚄ(ctx, field.Selections, res)
16773 }
16774
16775 func (ec *executionContext) _PodIOChaosStatus_pid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
16776 defer func() {
16777 if r := recover(); r != nil {
16778 ec.Error(ctx, ec.Recover(ctx, r))
16779 ret = graphql.Null
16780 }
16781 }()
16782 fc := &graphql.FieldContext{
16783 Object: "PodIOChaosStatus",
16784 Field: field,
16785 Args: nil,
16786 IsMethod: false,
16787 IsResolver: false,
16788 }
16789
16790 ctx = graphql.WithFieldContext(ctx, fc)
16791 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16792 ctx = rctx
16793 return obj.Pid, nil
16794 })
16795 if err != nil {
16796 ec.Error(ctx, err)
16797 return graphql.Null
16798 }
16799 if resTmp == nil {
16800 return graphql.Null
16801 }
16802 res := resTmp.(int64)
16803 fc.Result = res
16804 return ec.marshalOInt2int64(ctx, field.Selections, res)
16805 }
16806
16807 func (ec *executionContext) _PodIOChaosStatus_startTime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
16808 defer func() {
16809 if r := recover(); r != nil {
16810 ec.Error(ctx, ec.Recover(ctx, r))
16811 ret = graphql.Null
16812 }
16813 }()
16814 fc := &graphql.FieldContext{
16815 Object: "PodIOChaosStatus",
16816 Field: field,
16817 Args: nil,
16818 IsMethod: false,
16819 IsResolver: false,
16820 }
16821
16822 ctx = graphql.WithFieldContext(ctx, fc)
16823 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16824 ctx = rctx
16825 return obj.StartTime, nil
16826 })
16827 if err != nil {
16828 ec.Error(ctx, err)
16829 return graphql.Null
16830 }
16831 if resTmp == nil {
16832 return graphql.Null
16833 }
16834 res := resTmp.(int64)
16835 fc.Result = res
16836 return ec.marshalOInt2int64(ctx, field.Selections, res)
16837 }
16838
16839 func (ec *executionContext) _PodIOChaosStatus_failedMessage(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
16840 defer func() {
16841 if r := recover(); r != nil {
16842 ec.Error(ctx, ec.Recover(ctx, r))
16843 ret = graphql.Null
16844 }
16845 }()
16846 fc := &graphql.FieldContext{
16847 Object: "PodIOChaosStatus",
16848 Field: field,
16849 Args: nil,
16850 IsMethod: false,
16851 IsResolver: false,
16852 }
16853
16854 ctx = graphql.WithFieldContext(ctx, fc)
16855 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16856 ctx = rctx
16857 return obj.FailedMessage, nil
16858 })
16859 if err != nil {
16860 ec.Error(ctx, err)
16861 return graphql.Null
16862 }
16863 if resTmp == nil {
16864 return graphql.Null
16865 }
16866 res := resTmp.(string)
16867 fc.Result = res
16868 return ec.marshalOString2string(ctx, field.Selections, res)
16869 }
16870
16871 func (ec *executionContext) _PodIOChaosStatus_observedGeneration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
16872 defer func() {
16873 if r := recover(); r != nil {
16874 ec.Error(ctx, ec.Recover(ctx, r))
16875 ret = graphql.Null
16876 }
16877 }()
16878 fc := &graphql.FieldContext{
16879 Object: "PodIOChaosStatus",
16880 Field: field,
16881 Args: nil,
16882 IsMethod: false,
16883 IsResolver: false,
16884 }
16885
16886 ctx = graphql.WithFieldContext(ctx, fc)
16887 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16888 ctx = rctx
16889 return obj.ObservedGeneration, nil
16890 })
16891 if err != nil {
16892 ec.Error(ctx, err)
16893 return graphql.Null
16894 }
16895 if resTmp == nil {
16896 return graphql.Null
16897 }
16898 res := resTmp.(int64)
16899 fc.Result = res
16900 return ec.marshalOInt2int64(ctx, field.Selections, res)
16901 }
16902
16903 func (ec *executionContext) _PodIP_ip(ctx context.Context, field graphql.CollectedField, obj *v1.PodIP) (ret graphql.Marshaler) {
16904 defer func() {
16905 if r := recover(); r != nil {
16906 ec.Error(ctx, ec.Recover(ctx, r))
16907 ret = graphql.Null
16908 }
16909 }()
16910 fc := &graphql.FieldContext{
16911 Object: "PodIP",
16912 Field: field,
16913 Args: nil,
16914 IsMethod: false,
16915 IsResolver: false,
16916 }
16917
16918 ctx = graphql.WithFieldContext(ctx, fc)
16919 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16920 ctx = rctx
16921 return obj.IP, nil
16922 })
16923 if err != nil {
16924 ec.Error(ctx, err)
16925 return graphql.Null
16926 }
16927 if resTmp == nil {
16928 if !graphql.HasFieldError(ctx, fc) {
16929 ec.Errorf(ctx, "must not be null")
16930 }
16931 return graphql.Null
16932 }
16933 res := resTmp.(string)
16934 fc.Result = res
16935 return ec.marshalNString2string(ctx, field.Selections, res)
16936 }
16937
16938 func (ec *executionContext) _PodNetworkChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
16939 defer func() {
16940 if r := recover(); r != nil {
16941 ec.Error(ctx, ec.Recover(ctx, r))
16942 ret = graphql.Null
16943 }
16944 }()
16945 fc := &graphql.FieldContext{
16946 Object: "PodNetworkChaos",
16947 Field: field,
16948 Args: nil,
16949 IsMethod: false,
16950 IsResolver: false,
16951 }
16952
16953 ctx = graphql.WithFieldContext(ctx, fc)
16954 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16955 ctx = rctx
16956 return obj.Kind, nil
16957 })
16958 if err != nil {
16959 ec.Error(ctx, err)
16960 return graphql.Null
16961 }
16962 if resTmp == nil {
16963 if !graphql.HasFieldError(ctx, fc) {
16964 ec.Errorf(ctx, "must not be null")
16965 }
16966 return graphql.Null
16967 }
16968 res := resTmp.(string)
16969 fc.Result = res
16970 return ec.marshalNString2string(ctx, field.Selections, res)
16971 }
16972
16973 func (ec *executionContext) _PodNetworkChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
16974 defer func() {
16975 if r := recover(); r != nil {
16976 ec.Error(ctx, ec.Recover(ctx, r))
16977 ret = graphql.Null
16978 }
16979 }()
16980 fc := &graphql.FieldContext{
16981 Object: "PodNetworkChaos",
16982 Field: field,
16983 Args: nil,
16984 IsMethod: false,
16985 IsResolver: false,
16986 }
16987
16988 ctx = graphql.WithFieldContext(ctx, fc)
16989 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16990 ctx = rctx
16991 return obj.APIVersion, nil
16992 })
16993 if err != nil {
16994 ec.Error(ctx, err)
16995 return graphql.Null
16996 }
16997 if resTmp == nil {
16998 if !graphql.HasFieldError(ctx, fc) {
16999 ec.Errorf(ctx, "must not be null")
17000 }
17001 return graphql.Null
17002 }
17003 res := resTmp.(string)
17004 fc.Result = res
17005 return ec.marshalNString2string(ctx, field.Selections, res)
17006 }
17007
17008 func (ec *executionContext) _PodNetworkChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17009 defer func() {
17010 if r := recover(); r != nil {
17011 ec.Error(ctx, ec.Recover(ctx, r))
17012 ret = graphql.Null
17013 }
17014 }()
17015 fc := &graphql.FieldContext{
17016 Object: "PodNetworkChaos",
17017 Field: field,
17018 Args: nil,
17019 IsMethod: false,
17020 IsResolver: false,
17021 }
17022
17023 ctx = graphql.WithFieldContext(ctx, fc)
17024 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17025 ctx = rctx
17026 return obj.Name, nil
17027 })
17028 if err != nil {
17029 ec.Error(ctx, err)
17030 return graphql.Null
17031 }
17032 if resTmp == nil {
17033 if !graphql.HasFieldError(ctx, fc) {
17034 ec.Errorf(ctx, "must not be null")
17035 }
17036 return graphql.Null
17037 }
17038 res := resTmp.(string)
17039 fc.Result = res
17040 return ec.marshalNString2string(ctx, field.Selections, res)
17041 }
17042
17043 func (ec *executionContext) _PodNetworkChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17044 defer func() {
17045 if r := recover(); r != nil {
17046 ec.Error(ctx, ec.Recover(ctx, r))
17047 ret = graphql.Null
17048 }
17049 }()
17050 fc := &graphql.FieldContext{
17051 Object: "PodNetworkChaos",
17052 Field: field,
17053 Args: nil,
17054 IsMethod: false,
17055 IsResolver: false,
17056 }
17057
17058 ctx = graphql.WithFieldContext(ctx, fc)
17059 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17060 ctx = rctx
17061 return obj.GenerateName, nil
17062 })
17063 if err != nil {
17064 ec.Error(ctx, err)
17065 return graphql.Null
17066 }
17067 if resTmp == nil {
17068 if !graphql.HasFieldError(ctx, fc) {
17069 ec.Errorf(ctx, "must not be null")
17070 }
17071 return graphql.Null
17072 }
17073 res := resTmp.(string)
17074 fc.Result = res
17075 return ec.marshalNString2string(ctx, field.Selections, res)
17076 }
17077
17078 func (ec *executionContext) _PodNetworkChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17079 defer func() {
17080 if r := recover(); r != nil {
17081 ec.Error(ctx, ec.Recover(ctx, r))
17082 ret = graphql.Null
17083 }
17084 }()
17085 fc := &graphql.FieldContext{
17086 Object: "PodNetworkChaos",
17087 Field: field,
17088 Args: nil,
17089 IsMethod: false,
17090 IsResolver: false,
17091 }
17092
17093 ctx = graphql.WithFieldContext(ctx, fc)
17094 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17095 ctx = rctx
17096 return obj.Namespace, nil
17097 })
17098 if err != nil {
17099 ec.Error(ctx, err)
17100 return graphql.Null
17101 }
17102 if resTmp == nil {
17103 if !graphql.HasFieldError(ctx, fc) {
17104 ec.Errorf(ctx, "must not be null")
17105 }
17106 return graphql.Null
17107 }
17108 res := resTmp.(string)
17109 fc.Result = res
17110 return ec.marshalNString2string(ctx, field.Selections, res)
17111 }
17112
17113 func (ec *executionContext) _PodNetworkChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17114 defer func() {
17115 if r := recover(); r != nil {
17116 ec.Error(ctx, ec.Recover(ctx, r))
17117 ret = graphql.Null
17118 }
17119 }()
17120 fc := &graphql.FieldContext{
17121 Object: "PodNetworkChaos",
17122 Field: field,
17123 Args: nil,
17124 IsMethod: false,
17125 IsResolver: false,
17126 }
17127
17128 ctx = graphql.WithFieldContext(ctx, fc)
17129 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17130 ctx = rctx
17131 return obj.SelfLink, nil
17132 })
17133 if err != nil {
17134 ec.Error(ctx, err)
17135 return graphql.Null
17136 }
17137 if resTmp == nil {
17138 if !graphql.HasFieldError(ctx, fc) {
17139 ec.Errorf(ctx, "must not be null")
17140 }
17141 return graphql.Null
17142 }
17143 res := resTmp.(string)
17144 fc.Result = res
17145 return ec.marshalNString2string(ctx, field.Selections, res)
17146 }
17147
17148 func (ec *executionContext) _PodNetworkChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17149 defer func() {
17150 if r := recover(); r != nil {
17151 ec.Error(ctx, ec.Recover(ctx, r))
17152 ret = graphql.Null
17153 }
17154 }()
17155 fc := &graphql.FieldContext{
17156 Object: "PodNetworkChaos",
17157 Field: field,
17158 Args: nil,
17159 IsMethod: true,
17160 IsResolver: true,
17161 }
17162
17163 ctx = graphql.WithFieldContext(ctx, fc)
17164 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17165 ctx = rctx
17166 return ec.resolvers.PodNetworkChaos().UID(rctx, obj)
17167 })
17168 if err != nil {
17169 ec.Error(ctx, err)
17170 return graphql.Null
17171 }
17172 if resTmp == nil {
17173 if !graphql.HasFieldError(ctx, fc) {
17174 ec.Errorf(ctx, "must not be null")
17175 }
17176 return graphql.Null
17177 }
17178 res := resTmp.(string)
17179 fc.Result = res
17180 return ec.marshalNString2string(ctx, field.Selections, res)
17181 }
17182
17183 func (ec *executionContext) _PodNetworkChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17184 defer func() {
17185 if r := recover(); r != nil {
17186 ec.Error(ctx, ec.Recover(ctx, r))
17187 ret = graphql.Null
17188 }
17189 }()
17190 fc := &graphql.FieldContext{
17191 Object: "PodNetworkChaos",
17192 Field: field,
17193 Args: nil,
17194 IsMethod: false,
17195 IsResolver: false,
17196 }
17197
17198 ctx = graphql.WithFieldContext(ctx, fc)
17199 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17200 ctx = rctx
17201 return obj.ResourceVersion, nil
17202 })
17203 if err != nil {
17204 ec.Error(ctx, err)
17205 return graphql.Null
17206 }
17207 if resTmp == nil {
17208 if !graphql.HasFieldError(ctx, fc) {
17209 ec.Errorf(ctx, "must not be null")
17210 }
17211 return graphql.Null
17212 }
17213 res := resTmp.(string)
17214 fc.Result = res
17215 return ec.marshalNString2string(ctx, field.Selections, res)
17216 }
17217
17218 func (ec *executionContext) _PodNetworkChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17219 defer func() {
17220 if r := recover(); r != nil {
17221 ec.Error(ctx, ec.Recover(ctx, r))
17222 ret = graphql.Null
17223 }
17224 }()
17225 fc := &graphql.FieldContext{
17226 Object: "PodNetworkChaos",
17227 Field: field,
17228 Args: nil,
17229 IsMethod: false,
17230 IsResolver: false,
17231 }
17232
17233 ctx = graphql.WithFieldContext(ctx, fc)
17234 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17235 ctx = rctx
17236 return obj.Generation, nil
17237 })
17238 if err != nil {
17239 ec.Error(ctx, err)
17240 return graphql.Null
17241 }
17242 if resTmp == nil {
17243 if !graphql.HasFieldError(ctx, fc) {
17244 ec.Errorf(ctx, "must not be null")
17245 }
17246 return graphql.Null
17247 }
17248 res := resTmp.(int64)
17249 fc.Result = res
17250 return ec.marshalNInt2int64(ctx, field.Selections, res)
17251 }
17252
17253 func (ec *executionContext) _PodNetworkChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17254 defer func() {
17255 if r := recover(); r != nil {
17256 ec.Error(ctx, ec.Recover(ctx, r))
17257 ret = graphql.Null
17258 }
17259 }()
17260 fc := &graphql.FieldContext{
17261 Object: "PodNetworkChaos",
17262 Field: field,
17263 Args: nil,
17264 IsMethod: true,
17265 IsResolver: true,
17266 }
17267
17268 ctx = graphql.WithFieldContext(ctx, fc)
17269 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17270 ctx = rctx
17271 return ec.resolvers.PodNetworkChaos().CreationTimestamp(rctx, obj)
17272 })
17273 if err != nil {
17274 ec.Error(ctx, err)
17275 return graphql.Null
17276 }
17277 if resTmp == nil {
17278 if !graphql.HasFieldError(ctx, fc) {
17279 ec.Errorf(ctx, "must not be null")
17280 }
17281 return graphql.Null
17282 }
17283 res := resTmp.(*time.Time)
17284 fc.Result = res
17285 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
17286 }
17287
17288 func (ec *executionContext) _PodNetworkChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17289 defer func() {
17290 if r := recover(); r != nil {
17291 ec.Error(ctx, ec.Recover(ctx, r))
17292 ret = graphql.Null
17293 }
17294 }()
17295 fc := &graphql.FieldContext{
17296 Object: "PodNetworkChaos",
17297 Field: field,
17298 Args: nil,
17299 IsMethod: true,
17300 IsResolver: true,
17301 }
17302
17303 ctx = graphql.WithFieldContext(ctx, fc)
17304 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17305 ctx = rctx
17306 return ec.resolvers.PodNetworkChaos().DeletionTimestamp(rctx, obj)
17307 })
17308 if err != nil {
17309 ec.Error(ctx, err)
17310 return graphql.Null
17311 }
17312 if resTmp == nil {
17313 return graphql.Null
17314 }
17315 res := resTmp.(*time.Time)
17316 fc.Result = res
17317 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
17318 }
17319
17320 func (ec *executionContext) _PodNetworkChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17321 defer func() {
17322 if r := recover(); r != nil {
17323 ec.Error(ctx, ec.Recover(ctx, r))
17324 ret = graphql.Null
17325 }
17326 }()
17327 fc := &graphql.FieldContext{
17328 Object: "PodNetworkChaos",
17329 Field: field,
17330 Args: nil,
17331 IsMethod: false,
17332 IsResolver: false,
17333 }
17334
17335 ctx = graphql.WithFieldContext(ctx, fc)
17336 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17337 ctx = rctx
17338 return obj.DeletionGracePeriodSeconds, nil
17339 })
17340 if err != nil {
17341 ec.Error(ctx, err)
17342 return graphql.Null
17343 }
17344 if resTmp == nil {
17345 return graphql.Null
17346 }
17347 res := resTmp.(*int64)
17348 fc.Result = res
17349 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
17350 }
17351
17352 func (ec *executionContext) _PodNetworkChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17353 defer func() {
17354 if r := recover(); r != nil {
17355 ec.Error(ctx, ec.Recover(ctx, r))
17356 ret = graphql.Null
17357 }
17358 }()
17359 fc := &graphql.FieldContext{
17360 Object: "PodNetworkChaos",
17361 Field: field,
17362 Args: nil,
17363 IsMethod: true,
17364 IsResolver: true,
17365 }
17366
17367 ctx = graphql.WithFieldContext(ctx, fc)
17368 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17369 ctx = rctx
17370 return ec.resolvers.PodNetworkChaos().Labels(rctx, obj)
17371 })
17372 if err != nil {
17373 ec.Error(ctx, err)
17374 return graphql.Null
17375 }
17376 if resTmp == nil {
17377 return graphql.Null
17378 }
17379 res := resTmp.(map[string]interface{})
17380 fc.Result = res
17381 return ec.marshalOMap2map(ctx, field.Selections, res)
17382 }
17383
17384 func (ec *executionContext) _PodNetworkChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17385 defer func() {
17386 if r := recover(); r != nil {
17387 ec.Error(ctx, ec.Recover(ctx, r))
17388 ret = graphql.Null
17389 }
17390 }()
17391 fc := &graphql.FieldContext{
17392 Object: "PodNetworkChaos",
17393 Field: field,
17394 Args: nil,
17395 IsMethod: true,
17396 IsResolver: true,
17397 }
17398
17399 ctx = graphql.WithFieldContext(ctx, fc)
17400 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17401 ctx = rctx
17402 return ec.resolvers.PodNetworkChaos().Annotations(rctx, obj)
17403 })
17404 if err != nil {
17405 ec.Error(ctx, err)
17406 return graphql.Null
17407 }
17408 if resTmp == nil {
17409 return graphql.Null
17410 }
17411 res := resTmp.(map[string]interface{})
17412 fc.Result = res
17413 return ec.marshalOMap2map(ctx, field.Selections, res)
17414 }
17415
17416 func (ec *executionContext) _PodNetworkChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17417 defer func() {
17418 if r := recover(); r != nil {
17419 ec.Error(ctx, ec.Recover(ctx, r))
17420 ret = graphql.Null
17421 }
17422 }()
17423 fc := &graphql.FieldContext{
17424 Object: "PodNetworkChaos",
17425 Field: field,
17426 Args: nil,
17427 IsMethod: false,
17428 IsResolver: false,
17429 }
17430
17431 ctx = graphql.WithFieldContext(ctx, fc)
17432 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17433 ctx = rctx
17434 return obj.OwnerReferences, nil
17435 })
17436 if err != nil {
17437 ec.Error(ctx, err)
17438 return graphql.Null
17439 }
17440 if resTmp == nil {
17441 return graphql.Null
17442 }
17443 res := resTmp.([]v11.OwnerReference)
17444 fc.Result = res
17445 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
17446 }
17447
17448 func (ec *executionContext) _PodNetworkChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17449 defer func() {
17450 if r := recover(); r != nil {
17451 ec.Error(ctx, ec.Recover(ctx, r))
17452 ret = graphql.Null
17453 }
17454 }()
17455 fc := &graphql.FieldContext{
17456 Object: "PodNetworkChaos",
17457 Field: field,
17458 Args: nil,
17459 IsMethod: false,
17460 IsResolver: false,
17461 }
17462
17463 ctx = graphql.WithFieldContext(ctx, fc)
17464 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17465 ctx = rctx
17466 return obj.Finalizers, nil
17467 })
17468 if err != nil {
17469 ec.Error(ctx, err)
17470 return graphql.Null
17471 }
17472 if resTmp == nil {
17473 return graphql.Null
17474 }
17475 res := resTmp.([]string)
17476 fc.Result = res
17477 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
17478 }
17479
17480 func (ec *executionContext) _PodNetworkChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17481 defer func() {
17482 if r := recover(); r != nil {
17483 ec.Error(ctx, ec.Recover(ctx, r))
17484 ret = graphql.Null
17485 }
17486 }()
17487 fc := &graphql.FieldContext{
17488 Object: "PodNetworkChaos",
17489 Field: field,
17490 Args: nil,
17491 IsMethod: false,
17492 IsResolver: false,
17493 }
17494
17495 ctx = graphql.WithFieldContext(ctx, fc)
17496 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17497 ctx = rctx
17498 return obj.Spec, nil
17499 })
17500 if err != nil {
17501 ec.Error(ctx, err)
17502 return graphql.Null
17503 }
17504 if resTmp == nil {
17505 if !graphql.HasFieldError(ctx, fc) {
17506 ec.Errorf(ctx, "must not be null")
17507 }
17508 return graphql.Null
17509 }
17510 res := resTmp.(v1alpha1.PodNetworkChaosSpec)
17511 fc.Result = res
17512 return ec.marshalNPodNetworkChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosSpec(ctx, field.Selections, res)
17513 }
17514
17515 func (ec *executionContext) _PodNetworkChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17516 defer func() {
17517 if r := recover(); r != nil {
17518 ec.Error(ctx, ec.Recover(ctx, r))
17519 ret = graphql.Null
17520 }
17521 }()
17522 fc := &graphql.FieldContext{
17523 Object: "PodNetworkChaos",
17524 Field: field,
17525 Args: nil,
17526 IsMethod: false,
17527 IsResolver: false,
17528 }
17529
17530 ctx = graphql.WithFieldContext(ctx, fc)
17531 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17532 ctx = rctx
17533 return obj.Status, nil
17534 })
17535 if err != nil {
17536 ec.Error(ctx, err)
17537 return graphql.Null
17538 }
17539 if resTmp == nil {
17540 if !graphql.HasFieldError(ctx, fc) {
17541 ec.Errorf(ctx, "must not be null")
17542 }
17543 return graphql.Null
17544 }
17545 res := resTmp.(v1alpha1.PodNetworkChaosStatus)
17546 fc.Result = res
17547 return ec.marshalNPodNetworkChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosStatus(ctx, field.Selections, res)
17548 }
17549
17550 func (ec *executionContext) _PodNetworkChaos_pod(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
17551 defer func() {
17552 if r := recover(); r != nil {
17553 ec.Error(ctx, ec.Recover(ctx, r))
17554 ret = graphql.Null
17555 }
17556 }()
17557 fc := &graphql.FieldContext{
17558 Object: "PodNetworkChaos",
17559 Field: field,
17560 Args: nil,
17561 IsMethod: true,
17562 IsResolver: true,
17563 }
17564
17565 ctx = graphql.WithFieldContext(ctx, fc)
17566 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17567 ctx = rctx
17568 return ec.resolvers.PodNetworkChaos().Pod(rctx, obj)
17569 })
17570 if err != nil {
17571 ec.Error(ctx, err)
17572 return graphql.Null
17573 }
17574 if resTmp == nil {
17575 if !graphql.HasFieldError(ctx, fc) {
17576 ec.Errorf(ctx, "must not be null")
17577 }
17578 return graphql.Null
17579 }
17580 res := resTmp.(*v1.Pod)
17581 fc.Result = res
17582 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
17583 }
17584
17585 func (ec *executionContext) _PodNetworkChaosSpec_ipSets(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosSpec) (ret graphql.Marshaler) {
17586 defer func() {
17587 if r := recover(); r != nil {
17588 ec.Error(ctx, ec.Recover(ctx, r))
17589 ret = graphql.Null
17590 }
17591 }()
17592 fc := &graphql.FieldContext{
17593 Object: "PodNetworkChaosSpec",
17594 Field: field,
17595 Args: nil,
17596 IsMethod: false,
17597 IsResolver: false,
17598 }
17599
17600 ctx = graphql.WithFieldContext(ctx, fc)
17601 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17602 ctx = rctx
17603 return obj.IPSets, nil
17604 })
17605 if err != nil {
17606 ec.Error(ctx, err)
17607 return graphql.Null
17608 }
17609 if resTmp == nil {
17610 return graphql.Null
17611 }
17612 res := resTmp.([]v1alpha1.RawIPSet)
17613 fc.Result = res
17614 return ec.marshalORawIPSet2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSetᚄ(ctx, field.Selections, res)
17615 }
17616
17617 func (ec *executionContext) _PodNetworkChaosSpec_iptables(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosSpec) (ret graphql.Marshaler) {
17618 defer func() {
17619 if r := recover(); r != nil {
17620 ec.Error(ctx, ec.Recover(ctx, r))
17621 ret = graphql.Null
17622 }
17623 }()
17624 fc := &graphql.FieldContext{
17625 Object: "PodNetworkChaosSpec",
17626 Field: field,
17627 Args: nil,
17628 IsMethod: false,
17629 IsResolver: false,
17630 }
17631
17632 ctx = graphql.WithFieldContext(ctx, fc)
17633 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17634 ctx = rctx
17635 return obj.Iptables, nil
17636 })
17637 if err != nil {
17638 ec.Error(ctx, err)
17639 return graphql.Null
17640 }
17641 if resTmp == nil {
17642 return graphql.Null
17643 }
17644 res := resTmp.([]v1alpha1.RawIptables)
17645 fc.Result = res
17646 return ec.marshalORawIptables2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptablesᚄ(ctx, field.Selections, res)
17647 }
17648
17649 func (ec *executionContext) _PodNetworkChaosSpec_trafficControls(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosSpec) (ret graphql.Marshaler) {
17650 defer func() {
17651 if r := recover(); r != nil {
17652 ec.Error(ctx, ec.Recover(ctx, r))
17653 ret = graphql.Null
17654 }
17655 }()
17656 fc := &graphql.FieldContext{
17657 Object: "PodNetworkChaosSpec",
17658 Field: field,
17659 Args: nil,
17660 IsMethod: false,
17661 IsResolver: false,
17662 }
17663
17664 ctx = graphql.WithFieldContext(ctx, fc)
17665 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17666 ctx = rctx
17667 return obj.TrafficControls, nil
17668 })
17669 if err != nil {
17670 ec.Error(ctx, err)
17671 return graphql.Null
17672 }
17673 if resTmp == nil {
17674 return graphql.Null
17675 }
17676 res := resTmp.([]v1alpha1.RawTrafficControl)
17677 fc.Result = res
17678 return ec.marshalORawTrafficControl2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControlᚄ(ctx, field.Selections, res)
17679 }
17680
17681 func (ec *executionContext) _PodNetworkChaosStatus_failedMessage(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosStatus) (ret graphql.Marshaler) {
17682 defer func() {
17683 if r := recover(); r != nil {
17684 ec.Error(ctx, ec.Recover(ctx, r))
17685 ret = graphql.Null
17686 }
17687 }()
17688 fc := &graphql.FieldContext{
17689 Object: "PodNetworkChaosStatus",
17690 Field: field,
17691 Args: nil,
17692 IsMethod: false,
17693 IsResolver: false,
17694 }
17695
17696 ctx = graphql.WithFieldContext(ctx, fc)
17697 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17698 ctx = rctx
17699 return obj.FailedMessage, nil
17700 })
17701 if err != nil {
17702 ec.Error(ctx, err)
17703 return graphql.Null
17704 }
17705 if resTmp == nil {
17706 if !graphql.HasFieldError(ctx, fc) {
17707 ec.Errorf(ctx, "must not be null")
17708 }
17709 return graphql.Null
17710 }
17711 res := resTmp.(string)
17712 fc.Result = res
17713 return ec.marshalNString2string(ctx, field.Selections, res)
17714 }
17715
17716 func (ec *executionContext) _PodNetworkChaosStatus_observedGeneration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosStatus) (ret graphql.Marshaler) {
17717 defer func() {
17718 if r := recover(); r != nil {
17719 ec.Error(ctx, ec.Recover(ctx, r))
17720 ret = graphql.Null
17721 }
17722 }()
17723 fc := &graphql.FieldContext{
17724 Object: "PodNetworkChaosStatus",
17725 Field: field,
17726 Args: nil,
17727 IsMethod: false,
17728 IsResolver: false,
17729 }
17730
17731 ctx = graphql.WithFieldContext(ctx, fc)
17732 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17733 ctx = rctx
17734 return obj.ObservedGeneration, nil
17735 })
17736 if err != nil {
17737 ec.Error(ctx, err)
17738 return graphql.Null
17739 }
17740 if resTmp == nil {
17741 if !graphql.HasFieldError(ctx, fc) {
17742 ec.Errorf(ctx, "must not be null")
17743 }
17744 return graphql.Null
17745 }
17746 res := resTmp.(int64)
17747 fc.Result = res
17748 return ec.marshalNInt2int64(ctx, field.Selections, res)
17749 }
17750
17751 func (ec *executionContext) _PodSelectorSpec_namespaces(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17752 defer func() {
17753 if r := recover(); r != nil {
17754 ec.Error(ctx, ec.Recover(ctx, r))
17755 ret = graphql.Null
17756 }
17757 }()
17758 fc := &graphql.FieldContext{
17759 Object: "PodSelectorSpec",
17760 Field: field,
17761 Args: nil,
17762 IsMethod: false,
17763 IsResolver: false,
17764 }
17765
17766 ctx = graphql.WithFieldContext(ctx, fc)
17767 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17768 ctx = rctx
17769 return obj.Namespaces, nil
17770 })
17771 if err != nil {
17772 ec.Error(ctx, err)
17773 return graphql.Null
17774 }
17775 if resTmp == nil {
17776 return graphql.Null
17777 }
17778 res := resTmp.([]string)
17779 fc.Result = res
17780 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
17781 }
17782
17783 func (ec *executionContext) _PodSelectorSpec_nodes(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17784 defer func() {
17785 if r := recover(); r != nil {
17786 ec.Error(ctx, ec.Recover(ctx, r))
17787 ret = graphql.Null
17788 }
17789 }()
17790 fc := &graphql.FieldContext{
17791 Object: "PodSelectorSpec",
17792 Field: field,
17793 Args: nil,
17794 IsMethod: false,
17795 IsResolver: false,
17796 }
17797
17798 ctx = graphql.WithFieldContext(ctx, fc)
17799 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17800 ctx = rctx
17801 return obj.Nodes, nil
17802 })
17803 if err != nil {
17804 ec.Error(ctx, err)
17805 return graphql.Null
17806 }
17807 if resTmp == nil {
17808 return graphql.Null
17809 }
17810 res := resTmp.([]string)
17811 fc.Result = res
17812 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
17813 }
17814
17815 func (ec *executionContext) _PodSelectorSpec_pods(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17816 defer func() {
17817 if r := recover(); r != nil {
17818 ec.Error(ctx, ec.Recover(ctx, r))
17819 ret = graphql.Null
17820 }
17821 }()
17822 fc := &graphql.FieldContext{
17823 Object: "PodSelectorSpec",
17824 Field: field,
17825 Args: nil,
17826 IsMethod: true,
17827 IsResolver: true,
17828 }
17829
17830 ctx = graphql.WithFieldContext(ctx, fc)
17831 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17832 ctx = rctx
17833 return ec.resolvers.PodSelectorSpec().Pods(rctx, obj)
17834 })
17835 if err != nil {
17836 ec.Error(ctx, err)
17837 return graphql.Null
17838 }
17839 if resTmp == nil {
17840 return graphql.Null
17841 }
17842 res := resTmp.(map[string]interface{})
17843 fc.Result = res
17844 return ec.marshalOMap2map(ctx, field.Selections, res)
17845 }
17846
17847 func (ec *executionContext) _PodSelectorSpec_nodeSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17848 defer func() {
17849 if r := recover(); r != nil {
17850 ec.Error(ctx, ec.Recover(ctx, r))
17851 ret = graphql.Null
17852 }
17853 }()
17854 fc := &graphql.FieldContext{
17855 Object: "PodSelectorSpec",
17856 Field: field,
17857 Args: nil,
17858 IsMethod: true,
17859 IsResolver: true,
17860 }
17861
17862 ctx = graphql.WithFieldContext(ctx, fc)
17863 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17864 ctx = rctx
17865 return ec.resolvers.PodSelectorSpec().NodeSelectors(rctx, obj)
17866 })
17867 if err != nil {
17868 ec.Error(ctx, err)
17869 return graphql.Null
17870 }
17871 if resTmp == nil {
17872 return graphql.Null
17873 }
17874 res := resTmp.(map[string]interface{})
17875 fc.Result = res
17876 return ec.marshalOMap2map(ctx, field.Selections, res)
17877 }
17878
17879 func (ec *executionContext) _PodSelectorSpec_fieldSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17880 defer func() {
17881 if r := recover(); r != nil {
17882 ec.Error(ctx, ec.Recover(ctx, r))
17883 ret = graphql.Null
17884 }
17885 }()
17886 fc := &graphql.FieldContext{
17887 Object: "PodSelectorSpec",
17888 Field: field,
17889 Args: nil,
17890 IsMethod: true,
17891 IsResolver: true,
17892 }
17893
17894 ctx = graphql.WithFieldContext(ctx, fc)
17895 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17896 ctx = rctx
17897 return ec.resolvers.PodSelectorSpec().FieldSelectors(rctx, obj)
17898 })
17899 if err != nil {
17900 ec.Error(ctx, err)
17901 return graphql.Null
17902 }
17903 if resTmp == nil {
17904 return graphql.Null
17905 }
17906 res := resTmp.(map[string]interface{})
17907 fc.Result = res
17908 return ec.marshalOMap2map(ctx, field.Selections, res)
17909 }
17910
17911 func (ec *executionContext) _PodSelectorSpec_labelSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17912 defer func() {
17913 if r := recover(); r != nil {
17914 ec.Error(ctx, ec.Recover(ctx, r))
17915 ret = graphql.Null
17916 }
17917 }()
17918 fc := &graphql.FieldContext{
17919 Object: "PodSelectorSpec",
17920 Field: field,
17921 Args: nil,
17922 IsMethod: true,
17923 IsResolver: true,
17924 }
17925
17926 ctx = graphql.WithFieldContext(ctx, fc)
17927 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17928 ctx = rctx
17929 return ec.resolvers.PodSelectorSpec().LabelSelectors(rctx, obj)
17930 })
17931 if err != nil {
17932 ec.Error(ctx, err)
17933 return graphql.Null
17934 }
17935 if resTmp == nil {
17936 return graphql.Null
17937 }
17938 res := resTmp.(map[string]interface{})
17939 fc.Result = res
17940 return ec.marshalOMap2map(ctx, field.Selections, res)
17941 }
17942
17943 func (ec *executionContext) _PodSelectorSpec_annotationSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17944 defer func() {
17945 if r := recover(); r != nil {
17946 ec.Error(ctx, ec.Recover(ctx, r))
17947 ret = graphql.Null
17948 }
17949 }()
17950 fc := &graphql.FieldContext{
17951 Object: "PodSelectorSpec",
17952 Field: field,
17953 Args: nil,
17954 IsMethod: true,
17955 IsResolver: true,
17956 }
17957
17958 ctx = graphql.WithFieldContext(ctx, fc)
17959 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17960 ctx = rctx
17961 return ec.resolvers.PodSelectorSpec().AnnotationSelectors(rctx, obj)
17962 })
17963 if err != nil {
17964 ec.Error(ctx, err)
17965 return graphql.Null
17966 }
17967 if resTmp == nil {
17968 return graphql.Null
17969 }
17970 res := resTmp.(map[string]interface{})
17971 fc.Result = res
17972 return ec.marshalOMap2map(ctx, field.Selections, res)
17973 }
17974
17975 func (ec *executionContext) _PodSelectorSpec_podPhaseSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
17976 defer func() {
17977 if r := recover(); r != nil {
17978 ec.Error(ctx, ec.Recover(ctx, r))
17979 ret = graphql.Null
17980 }
17981 }()
17982 fc := &graphql.FieldContext{
17983 Object: "PodSelectorSpec",
17984 Field: field,
17985 Args: nil,
17986 IsMethod: false,
17987 IsResolver: false,
17988 }
17989
17990 ctx = graphql.WithFieldContext(ctx, fc)
17991 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17992 ctx = rctx
17993 return obj.PodPhaseSelectors, nil
17994 })
17995 if err != nil {
17996 ec.Error(ctx, err)
17997 return graphql.Null
17998 }
17999 if resTmp == nil {
18000 return graphql.Null
18001 }
18002 res := resTmp.([]string)
18003 fc.Result = res
18004 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
18005 }
18006
18007 func (ec *executionContext) _PodSpec_nodeName(ctx context.Context, field graphql.CollectedField, obj *v1.PodSpec) (ret graphql.Marshaler) {
18008 defer func() {
18009 if r := recover(); r != nil {
18010 ec.Error(ctx, ec.Recover(ctx, r))
18011 ret = graphql.Null
18012 }
18013 }()
18014 fc := &graphql.FieldContext{
18015 Object: "PodSpec",
18016 Field: field,
18017 Args: nil,
18018 IsMethod: false,
18019 IsResolver: false,
18020 }
18021
18022 ctx = graphql.WithFieldContext(ctx, fc)
18023 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18024 ctx = rctx
18025 return obj.NodeName, nil
18026 })
18027 if err != nil {
18028 ec.Error(ctx, err)
18029 return graphql.Null
18030 }
18031 if resTmp == nil {
18032 if !graphql.HasFieldError(ctx, fc) {
18033 ec.Errorf(ctx, "must not be null")
18034 }
18035 return graphql.Null
18036 }
18037 res := resTmp.(string)
18038 fc.Result = res
18039 return ec.marshalNString2string(ctx, field.Selections, res)
18040 }
18041
18042 func (ec *executionContext) _PodStatus_phase(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18043 defer func() {
18044 if r := recover(); r != nil {
18045 ec.Error(ctx, ec.Recover(ctx, r))
18046 ret = graphql.Null
18047 }
18048 }()
18049 fc := &graphql.FieldContext{
18050 Object: "PodStatus",
18051 Field: field,
18052 Args: nil,
18053 IsMethod: true,
18054 IsResolver: true,
18055 }
18056
18057 ctx = graphql.WithFieldContext(ctx, fc)
18058 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18059 ctx = rctx
18060 return ec.resolvers.PodStatus().Phase(rctx, obj)
18061 })
18062 if err != nil {
18063 ec.Error(ctx, err)
18064 return graphql.Null
18065 }
18066 if resTmp == nil {
18067 if !graphql.HasFieldError(ctx, fc) {
18068 ec.Errorf(ctx, "must not be null")
18069 }
18070 return graphql.Null
18071 }
18072 res := resTmp.(string)
18073 fc.Result = res
18074 return ec.marshalNString2string(ctx, field.Selections, res)
18075 }
18076
18077 func (ec *executionContext) _PodStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18078 defer func() {
18079 if r := recover(); r != nil {
18080 ec.Error(ctx, ec.Recover(ctx, r))
18081 ret = graphql.Null
18082 }
18083 }()
18084 fc := &graphql.FieldContext{
18085 Object: "PodStatus",
18086 Field: field,
18087 Args: nil,
18088 IsMethod: false,
18089 IsResolver: false,
18090 }
18091
18092 ctx = graphql.WithFieldContext(ctx, fc)
18093 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18094 ctx = rctx
18095 return obj.Conditions, nil
18096 })
18097 if err != nil {
18098 ec.Error(ctx, err)
18099 return graphql.Null
18100 }
18101 if resTmp == nil {
18102 return graphql.Null
18103 }
18104 res := resTmp.([]v1.PodCondition)
18105 fc.Result = res
18106 return ec.marshalOPodCondition2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodConditionᚄ(ctx, field.Selections, res)
18107 }
18108
18109 func (ec *executionContext) _PodStatus_message(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18110 defer func() {
18111 if r := recover(); r != nil {
18112 ec.Error(ctx, ec.Recover(ctx, r))
18113 ret = graphql.Null
18114 }
18115 }()
18116 fc := &graphql.FieldContext{
18117 Object: "PodStatus",
18118 Field: field,
18119 Args: nil,
18120 IsMethod: false,
18121 IsResolver: false,
18122 }
18123
18124 ctx = graphql.WithFieldContext(ctx, fc)
18125 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18126 ctx = rctx
18127 return obj.Message, nil
18128 })
18129 if err != nil {
18130 ec.Error(ctx, err)
18131 return graphql.Null
18132 }
18133 if resTmp == nil {
18134 if !graphql.HasFieldError(ctx, fc) {
18135 ec.Errorf(ctx, "must not be null")
18136 }
18137 return graphql.Null
18138 }
18139 res := resTmp.(string)
18140 fc.Result = res
18141 return ec.marshalNString2string(ctx, field.Selections, res)
18142 }
18143
18144 func (ec *executionContext) _PodStatus_reason(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18145 defer func() {
18146 if r := recover(); r != nil {
18147 ec.Error(ctx, ec.Recover(ctx, r))
18148 ret = graphql.Null
18149 }
18150 }()
18151 fc := &graphql.FieldContext{
18152 Object: "PodStatus",
18153 Field: field,
18154 Args: nil,
18155 IsMethod: false,
18156 IsResolver: false,
18157 }
18158
18159 ctx = graphql.WithFieldContext(ctx, fc)
18160 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18161 ctx = rctx
18162 return obj.Reason, nil
18163 })
18164 if err != nil {
18165 ec.Error(ctx, err)
18166 return graphql.Null
18167 }
18168 if resTmp == nil {
18169 if !graphql.HasFieldError(ctx, fc) {
18170 ec.Errorf(ctx, "must not be null")
18171 }
18172 return graphql.Null
18173 }
18174 res := resTmp.(string)
18175 fc.Result = res
18176 return ec.marshalNString2string(ctx, field.Selections, res)
18177 }
18178
18179 func (ec *executionContext) _PodStatus_nominatedNodeName(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18180 defer func() {
18181 if r := recover(); r != nil {
18182 ec.Error(ctx, ec.Recover(ctx, r))
18183 ret = graphql.Null
18184 }
18185 }()
18186 fc := &graphql.FieldContext{
18187 Object: "PodStatus",
18188 Field: field,
18189 Args: nil,
18190 IsMethod: false,
18191 IsResolver: false,
18192 }
18193
18194 ctx = graphql.WithFieldContext(ctx, fc)
18195 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18196 ctx = rctx
18197 return obj.NominatedNodeName, nil
18198 })
18199 if err != nil {
18200 ec.Error(ctx, err)
18201 return graphql.Null
18202 }
18203 if resTmp == nil {
18204 if !graphql.HasFieldError(ctx, fc) {
18205 ec.Errorf(ctx, "must not be null")
18206 }
18207 return graphql.Null
18208 }
18209 res := resTmp.(string)
18210 fc.Result = res
18211 return ec.marshalNString2string(ctx, field.Selections, res)
18212 }
18213
18214 func (ec *executionContext) _PodStatus_hostIP(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18215 defer func() {
18216 if r := recover(); r != nil {
18217 ec.Error(ctx, ec.Recover(ctx, r))
18218 ret = graphql.Null
18219 }
18220 }()
18221 fc := &graphql.FieldContext{
18222 Object: "PodStatus",
18223 Field: field,
18224 Args: nil,
18225 IsMethod: false,
18226 IsResolver: false,
18227 }
18228
18229 ctx = graphql.WithFieldContext(ctx, fc)
18230 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18231 ctx = rctx
18232 return obj.HostIP, nil
18233 })
18234 if err != nil {
18235 ec.Error(ctx, err)
18236 return graphql.Null
18237 }
18238 if resTmp == nil {
18239 if !graphql.HasFieldError(ctx, fc) {
18240 ec.Errorf(ctx, "must not be null")
18241 }
18242 return graphql.Null
18243 }
18244 res := resTmp.(string)
18245 fc.Result = res
18246 return ec.marshalNString2string(ctx, field.Selections, res)
18247 }
18248
18249 func (ec *executionContext) _PodStatus_podIP(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18250 defer func() {
18251 if r := recover(); r != nil {
18252 ec.Error(ctx, ec.Recover(ctx, r))
18253 ret = graphql.Null
18254 }
18255 }()
18256 fc := &graphql.FieldContext{
18257 Object: "PodStatus",
18258 Field: field,
18259 Args: nil,
18260 IsMethod: false,
18261 IsResolver: false,
18262 }
18263
18264 ctx = graphql.WithFieldContext(ctx, fc)
18265 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18266 ctx = rctx
18267 return obj.PodIP, nil
18268 })
18269 if err != nil {
18270 ec.Error(ctx, err)
18271 return graphql.Null
18272 }
18273 if resTmp == nil {
18274 if !graphql.HasFieldError(ctx, fc) {
18275 ec.Errorf(ctx, "must not be null")
18276 }
18277 return graphql.Null
18278 }
18279 res := resTmp.(string)
18280 fc.Result = res
18281 return ec.marshalNString2string(ctx, field.Selections, res)
18282 }
18283
18284 func (ec *executionContext) _PodStatus_podIPs(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18285 defer func() {
18286 if r := recover(); r != nil {
18287 ec.Error(ctx, ec.Recover(ctx, r))
18288 ret = graphql.Null
18289 }
18290 }()
18291 fc := &graphql.FieldContext{
18292 Object: "PodStatus",
18293 Field: field,
18294 Args: nil,
18295 IsMethod: false,
18296 IsResolver: false,
18297 }
18298
18299 ctx = graphql.WithFieldContext(ctx, fc)
18300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18301 ctx = rctx
18302 return obj.PodIPs, nil
18303 })
18304 if err != nil {
18305 ec.Error(ctx, err)
18306 return graphql.Null
18307 }
18308 if resTmp == nil {
18309 return graphql.Null
18310 }
18311 res := resTmp.([]v1.PodIP)
18312 fc.Result = res
18313 return ec.marshalOPodIP2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodIPᚄ(ctx, field.Selections, res)
18314 }
18315
18316 func (ec *executionContext) _PodStatus_startTime(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18317 defer func() {
18318 if r := recover(); r != nil {
18319 ec.Error(ctx, ec.Recover(ctx, r))
18320 ret = graphql.Null
18321 }
18322 }()
18323 fc := &graphql.FieldContext{
18324 Object: "PodStatus",
18325 Field: field,
18326 Args: nil,
18327 IsMethod: true,
18328 IsResolver: true,
18329 }
18330
18331 ctx = graphql.WithFieldContext(ctx, fc)
18332 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18333 ctx = rctx
18334 return ec.resolvers.PodStatus().StartTime(rctx, obj)
18335 })
18336 if err != nil {
18337 ec.Error(ctx, err)
18338 return graphql.Null
18339 }
18340 if resTmp == nil {
18341 return graphql.Null
18342 }
18343 res := resTmp.(*time.Time)
18344 fc.Result = res
18345 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
18346 }
18347
18348 func (ec *executionContext) _PodStatus_initContainerStatuses(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18349 defer func() {
18350 if r := recover(); r != nil {
18351 ec.Error(ctx, ec.Recover(ctx, r))
18352 ret = graphql.Null
18353 }
18354 }()
18355 fc := &graphql.FieldContext{
18356 Object: "PodStatus",
18357 Field: field,
18358 Args: nil,
18359 IsMethod: false,
18360 IsResolver: false,
18361 }
18362
18363 ctx = graphql.WithFieldContext(ctx, fc)
18364 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18365 ctx = rctx
18366 return obj.InitContainerStatuses, nil
18367 })
18368 if err != nil {
18369 ec.Error(ctx, err)
18370 return graphql.Null
18371 }
18372 if resTmp == nil {
18373 return graphql.Null
18374 }
18375 res := resTmp.([]v1.ContainerStatus)
18376 fc.Result = res
18377 return ec.marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx, field.Selections, res)
18378 }
18379
18380 func (ec *executionContext) _PodStatus_containerStatuses(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18381 defer func() {
18382 if r := recover(); r != nil {
18383 ec.Error(ctx, ec.Recover(ctx, r))
18384 ret = graphql.Null
18385 }
18386 }()
18387 fc := &graphql.FieldContext{
18388 Object: "PodStatus",
18389 Field: field,
18390 Args: nil,
18391 IsMethod: false,
18392 IsResolver: false,
18393 }
18394
18395 ctx = graphql.WithFieldContext(ctx, fc)
18396 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18397 ctx = rctx
18398 return obj.ContainerStatuses, nil
18399 })
18400 if err != nil {
18401 ec.Error(ctx, err)
18402 return graphql.Null
18403 }
18404 if resTmp == nil {
18405 return graphql.Null
18406 }
18407 res := resTmp.([]v1.ContainerStatus)
18408 fc.Result = res
18409 return ec.marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx, field.Selections, res)
18410 }
18411
18412 func (ec *executionContext) _PodStatus_qosClass(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18413 defer func() {
18414 if r := recover(); r != nil {
18415 ec.Error(ctx, ec.Recover(ctx, r))
18416 ret = graphql.Null
18417 }
18418 }()
18419 fc := &graphql.FieldContext{
18420 Object: "PodStatus",
18421 Field: field,
18422 Args: nil,
18423 IsMethod: true,
18424 IsResolver: true,
18425 }
18426
18427 ctx = graphql.WithFieldContext(ctx, fc)
18428 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18429 ctx = rctx
18430 return ec.resolvers.PodStatus().QosClass(rctx, obj)
18431 })
18432 if err != nil {
18433 ec.Error(ctx, err)
18434 return graphql.Null
18435 }
18436 if resTmp == nil {
18437 if !graphql.HasFieldError(ctx, fc) {
18438 ec.Errorf(ctx, "must not be null")
18439 }
18440 return graphql.Null
18441 }
18442 res := resTmp.(string)
18443 fc.Result = res
18444 return ec.marshalNString2string(ctx, field.Selections, res)
18445 }
18446
18447 func (ec *executionContext) _PodStatus_ephemeralContainerStatuses(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
18448 defer func() {
18449 if r := recover(); r != nil {
18450 ec.Error(ctx, ec.Recover(ctx, r))
18451 ret = graphql.Null
18452 }
18453 }()
18454 fc := &graphql.FieldContext{
18455 Object: "PodStatus",
18456 Field: field,
18457 Args: nil,
18458 IsMethod: false,
18459 IsResolver: false,
18460 }
18461
18462 ctx = graphql.WithFieldContext(ctx, fc)
18463 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18464 ctx = rctx
18465 return obj.EphemeralContainerStatuses, nil
18466 })
18467 if err != nil {
18468 ec.Error(ctx, err)
18469 return graphql.Null
18470 }
18471 if resTmp == nil {
18472 return graphql.Null
18473 }
18474 res := resTmp.([]v1.ContainerStatus)
18475 fc.Result = res
18476 return ec.marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx, field.Selections, res)
18477 }
18478
18479 func (ec *executionContext) _PodStressChaos_stressChaos(ctx context.Context, field graphql.CollectedField, obj *model.PodStressChaos) (ret graphql.Marshaler) {
18480 defer func() {
18481 if r := recover(); r != nil {
18482 ec.Error(ctx, ec.Recover(ctx, r))
18483 ret = graphql.Null
18484 }
18485 }()
18486 fc := &graphql.FieldContext{
18487 Object: "PodStressChaos",
18488 Field: field,
18489 Args: nil,
18490 IsMethod: false,
18491 IsResolver: false,
18492 }
18493
18494 ctx = graphql.WithFieldContext(ctx, fc)
18495 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18496 ctx = rctx
18497 return obj.StressChaos, nil
18498 })
18499 if err != nil {
18500 ec.Error(ctx, err)
18501 return graphql.Null
18502 }
18503 if resTmp == nil {
18504 if !graphql.HasFieldError(ctx, fc) {
18505 ec.Errorf(ctx, "must not be null")
18506 }
18507 return graphql.Null
18508 }
18509 res := resTmp.(*v1alpha1.StressChaos)
18510 fc.Result = res
18511 return ec.marshalNStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaos(ctx, field.Selections, res)
18512 }
18513
18514 func (ec *executionContext) _PodStressChaos_pod(ctx context.Context, field graphql.CollectedField, obj *model.PodStressChaos) (ret graphql.Marshaler) {
18515 defer func() {
18516 if r := recover(); r != nil {
18517 ec.Error(ctx, ec.Recover(ctx, r))
18518 ret = graphql.Null
18519 }
18520 }()
18521 fc := &graphql.FieldContext{
18522 Object: "PodStressChaos",
18523 Field: field,
18524 Args: nil,
18525 IsMethod: false,
18526 IsResolver: false,
18527 }
18528
18529 ctx = graphql.WithFieldContext(ctx, fc)
18530 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18531 ctx = rctx
18532 return obj.Pod, nil
18533 })
18534 if err != nil {
18535 ec.Error(ctx, err)
18536 return graphql.Null
18537 }
18538 if resTmp == nil {
18539 if !graphql.HasFieldError(ctx, fc) {
18540 ec.Errorf(ctx, "must not be null")
18541 }
18542 return graphql.Null
18543 }
18544 res := resTmp.(*v1.Pod)
18545 fc.Result = res
18546 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
18547 }
18548
18549 func (ec *executionContext) _PodStressChaos_cgroups(ctx context.Context, field graphql.CollectedField, obj *model.PodStressChaos) (ret graphql.Marshaler) {
18550 defer func() {
18551 if r := recover(); r != nil {
18552 ec.Error(ctx, ec.Recover(ctx, r))
18553 ret = graphql.Null
18554 }
18555 }()
18556 fc := &graphql.FieldContext{
18557 Object: "PodStressChaos",
18558 Field: field,
18559 Args: nil,
18560 IsMethod: true,
18561 IsResolver: true,
18562 }
18563
18564 ctx = graphql.WithFieldContext(ctx, fc)
18565 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18566 ctx = rctx
18567 return ec.resolvers.PodStressChaos().Cgroups(rctx, obj)
18568 })
18569 if err != nil {
18570 ec.Error(ctx, err)
18571 return graphql.Null
18572 }
18573 if resTmp == nil {
18574 if !graphql.HasFieldError(ctx, fc) {
18575 ec.Errorf(ctx, "must not be null")
18576 }
18577 return graphql.Null
18578 }
18579 res := resTmp.(*model.Cgroups)
18580 fc.Result = res
18581 return ec.marshalNCgroups2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroups(ctx, field.Selections, res)
18582 }
18583
18584 func (ec *executionContext) _PodStressChaos_processStress(ctx context.Context, field graphql.CollectedField, obj *model.PodStressChaos) (ret graphql.Marshaler) {
18585 defer func() {
18586 if r := recover(); r != nil {
18587 ec.Error(ctx, ec.Recover(ctx, r))
18588 ret = graphql.Null
18589 }
18590 }()
18591 fc := &graphql.FieldContext{
18592 Object: "PodStressChaos",
18593 Field: field,
18594 Args: nil,
18595 IsMethod: true,
18596 IsResolver: true,
18597 }
18598
18599 ctx = graphql.WithFieldContext(ctx, fc)
18600 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18601 ctx = rctx
18602 return ec.resolvers.PodStressChaos().ProcessStress(rctx, obj)
18603 })
18604 if err != nil {
18605 ec.Error(ctx, err)
18606 return graphql.Null
18607 }
18608 if resTmp == nil {
18609 return graphql.Null
18610 }
18611 res := resTmp.([]*model.ProcessStress)
18612 fc.Result = res
18613 return ec.marshalOProcessStress2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcessStressᚄ(ctx, field.Selections, res)
18614 }
18615
18616 func (ec *executionContext) _Process_pod(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
18617 defer func() {
18618 if r := recover(); r != nil {
18619 ec.Error(ctx, ec.Recover(ctx, r))
18620 ret = graphql.Null
18621 }
18622 }()
18623 fc := &graphql.FieldContext{
18624 Object: "Process",
18625 Field: field,
18626 Args: nil,
18627 IsMethod: false,
18628 IsResolver: false,
18629 }
18630
18631 ctx = graphql.WithFieldContext(ctx, fc)
18632 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18633 ctx = rctx
18634 return obj.Pod, nil
18635 })
18636 if err != nil {
18637 ec.Error(ctx, err)
18638 return graphql.Null
18639 }
18640 if resTmp == nil {
18641 if !graphql.HasFieldError(ctx, fc) {
18642 ec.Errorf(ctx, "must not be null")
18643 }
18644 return graphql.Null
18645 }
18646 res := resTmp.(*v1.Pod)
18647 fc.Result = res
18648 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
18649 }
18650
18651 func (ec *executionContext) _Process_pid(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
18652 defer func() {
18653 if r := recover(); r != nil {
18654 ec.Error(ctx, ec.Recover(ctx, r))
18655 ret = graphql.Null
18656 }
18657 }()
18658 fc := &graphql.FieldContext{
18659 Object: "Process",
18660 Field: field,
18661 Args: nil,
18662 IsMethod: false,
18663 IsResolver: false,
18664 }
18665
18666 ctx = graphql.WithFieldContext(ctx, fc)
18667 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18668 ctx = rctx
18669 return obj.Pid, nil
18670 })
18671 if err != nil {
18672 ec.Error(ctx, err)
18673 return graphql.Null
18674 }
18675 if resTmp == nil {
18676 if !graphql.HasFieldError(ctx, fc) {
18677 ec.Errorf(ctx, "must not be null")
18678 }
18679 return graphql.Null
18680 }
18681 res := resTmp.(string)
18682 fc.Result = res
18683 return ec.marshalNString2string(ctx, field.Selections, res)
18684 }
18685
18686 func (ec *executionContext) _Process_command(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
18687 defer func() {
18688 if r := recover(); r != nil {
18689 ec.Error(ctx, ec.Recover(ctx, r))
18690 ret = graphql.Null
18691 }
18692 }()
18693 fc := &graphql.FieldContext{
18694 Object: "Process",
18695 Field: field,
18696 Args: nil,
18697 IsMethod: false,
18698 IsResolver: false,
18699 }
18700
18701 ctx = graphql.WithFieldContext(ctx, fc)
18702 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18703 ctx = rctx
18704 return obj.Command, nil
18705 })
18706 if err != nil {
18707 ec.Error(ctx, err)
18708 return graphql.Null
18709 }
18710 if resTmp == nil {
18711 if !graphql.HasFieldError(ctx, fc) {
18712 ec.Errorf(ctx, "must not be null")
18713 }
18714 return graphql.Null
18715 }
18716 res := resTmp.(string)
18717 fc.Result = res
18718 return ec.marshalNString2string(ctx, field.Selections, res)
18719 }
18720
18721 func (ec *executionContext) _Process_fds(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
18722 defer func() {
18723 if r := recover(); r != nil {
18724 ec.Error(ctx, ec.Recover(ctx, r))
18725 ret = graphql.Null
18726 }
18727 }()
18728 fc := &graphql.FieldContext{
18729 Object: "Process",
18730 Field: field,
18731 Args: nil,
18732 IsMethod: true,
18733 IsResolver: true,
18734 }
18735
18736 ctx = graphql.WithFieldContext(ctx, fc)
18737 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18738 ctx = rctx
18739 return ec.resolvers.Process().Fds(rctx, obj)
18740 })
18741 if err != nil {
18742 ec.Error(ctx, err)
18743 return graphql.Null
18744 }
18745 if resTmp == nil {
18746 return graphql.Null
18747 }
18748 res := resTmp.([]*model.Fd)
18749 fc.Result = res
18750 return ec.marshalOFd2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐFdᚄ(ctx, field.Selections, res)
18751 }
18752
18753 func (ec *executionContext) _ProcessStress_process(ctx context.Context, field graphql.CollectedField, obj *model.ProcessStress) (ret graphql.Marshaler) {
18754 defer func() {
18755 if r := recover(); r != nil {
18756 ec.Error(ctx, ec.Recover(ctx, r))
18757 ret = graphql.Null
18758 }
18759 }()
18760 fc := &graphql.FieldContext{
18761 Object: "ProcessStress",
18762 Field: field,
18763 Args: nil,
18764 IsMethod: false,
18765 IsResolver: false,
18766 }
18767
18768 ctx = graphql.WithFieldContext(ctx, fc)
18769 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18770 ctx = rctx
18771 return obj.Process, nil
18772 })
18773 if err != nil {
18774 ec.Error(ctx, err)
18775 return graphql.Null
18776 }
18777 if resTmp == nil {
18778 if !graphql.HasFieldError(ctx, fc) {
18779 ec.Errorf(ctx, "must not be null")
18780 }
18781 return graphql.Null
18782 }
18783 res := resTmp.(*model.Process)
18784 fc.Result = res
18785 return ec.marshalNProcess2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcess(ctx, field.Selections, res)
18786 }
18787
18788 func (ec *executionContext) _ProcessStress_cgroup(ctx context.Context, field graphql.CollectedField, obj *model.ProcessStress) (ret graphql.Marshaler) {
18789 defer func() {
18790 if r := recover(); r != nil {
18791 ec.Error(ctx, ec.Recover(ctx, r))
18792 ret = graphql.Null
18793 }
18794 }()
18795 fc := &graphql.FieldContext{
18796 Object: "ProcessStress",
18797 Field: field,
18798 Args: nil,
18799 IsMethod: false,
18800 IsResolver: false,
18801 }
18802
18803 ctx = graphql.WithFieldContext(ctx, fc)
18804 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18805 ctx = rctx
18806 return obj.Cgroup, nil
18807 })
18808 if err != nil {
18809 ec.Error(ctx, err)
18810 return graphql.Null
18811 }
18812 if resTmp == nil {
18813 if !graphql.HasFieldError(ctx, fc) {
18814 ec.Errorf(ctx, "must not be null")
18815 }
18816 return graphql.Null
18817 }
18818 res := resTmp.(string)
18819 fc.Result = res
18820 return ec.marshalNString2string(ctx, field.Selections, res)
18821 }
18822
18823 func (ec *executionContext) _Query_namespace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
18824 defer func() {
18825 if r := recover(); r != nil {
18826 ec.Error(ctx, ec.Recover(ctx, r))
18827 ret = graphql.Null
18828 }
18829 }()
18830 fc := &graphql.FieldContext{
18831 Object: "Query",
18832 Field: field,
18833 Args: nil,
18834 IsMethod: true,
18835 IsResolver: true,
18836 }
18837
18838 ctx = graphql.WithFieldContext(ctx, fc)
18839 rawArgs := field.ArgumentMap(ec.Variables)
18840 args, err := ec.field_Query_namespace_args(ctx, rawArgs)
18841 if err != nil {
18842 ec.Error(ctx, err)
18843 return graphql.Null
18844 }
18845 fc.Args = args
18846 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18847 ctx = rctx
18848 return ec.resolvers.Query().Namespace(rctx, args["ns"].(*string))
18849 })
18850 if err != nil {
18851 ec.Error(ctx, err)
18852 return graphql.Null
18853 }
18854 if resTmp == nil {
18855 return graphql.Null
18856 }
18857 res := resTmp.([]*model.Namespace)
18858 fc.Result = res
18859 return ec.marshalONamespace2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐNamespaceᚄ(ctx, field.Selections, res)
18860 }
18861
18862 func (ec *executionContext) _Query_pods(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
18863 defer func() {
18864 if r := recover(); r != nil {
18865 ec.Error(ctx, ec.Recover(ctx, r))
18866 ret = graphql.Null
18867 }
18868 }()
18869 fc := &graphql.FieldContext{
18870 Object: "Query",
18871 Field: field,
18872 Args: nil,
18873 IsMethod: true,
18874 IsResolver: true,
18875 }
18876
18877 ctx = graphql.WithFieldContext(ctx, fc)
18878 rawArgs := field.ArgumentMap(ec.Variables)
18879 args, err := ec.field_Query_pods_args(ctx, rawArgs)
18880 if err != nil {
18881 ec.Error(ctx, err)
18882 return graphql.Null
18883 }
18884 fc.Args = args
18885 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18886 ctx = rctx
18887 return ec.resolvers.Query().Pods(rctx, args["selector"].(model.PodSelectorInput))
18888 })
18889 if err != nil {
18890 ec.Error(ctx, err)
18891 return graphql.Null
18892 }
18893 if resTmp == nil {
18894 return graphql.Null
18895 }
18896 res := resTmp.([]*v1.Pod)
18897 fc.Result = res
18898 return ec.marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx, field.Selections, res)
18899 }
18900
18901 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
18902 defer func() {
18903 if r := recover(); r != nil {
18904 ec.Error(ctx, ec.Recover(ctx, r))
18905 ret = graphql.Null
18906 }
18907 }()
18908 fc := &graphql.FieldContext{
18909 Object: "Query",
18910 Field: field,
18911 Args: nil,
18912 IsMethod: true,
18913 IsResolver: false,
18914 }
18915
18916 ctx = graphql.WithFieldContext(ctx, fc)
18917 rawArgs := field.ArgumentMap(ec.Variables)
18918 args, err := ec.field_Query___type_args(ctx, rawArgs)
18919 if err != nil {
18920 ec.Error(ctx, err)
18921 return graphql.Null
18922 }
18923 fc.Args = args
18924 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18925 ctx = rctx
18926 return ec.introspectType(args["name"].(string))
18927 })
18928 if err != nil {
18929 ec.Error(ctx, err)
18930 return graphql.Null
18931 }
18932 if resTmp == nil {
18933 return graphql.Null
18934 }
18935 res := resTmp.(*introspection.Type)
18936 fc.Result = res
18937 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
18938 }
18939
18940 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
18941 defer func() {
18942 if r := recover(); r != nil {
18943 ec.Error(ctx, ec.Recover(ctx, r))
18944 ret = graphql.Null
18945 }
18946 }()
18947 fc := &graphql.FieldContext{
18948 Object: "Query",
18949 Field: field,
18950 Args: nil,
18951 IsMethod: true,
18952 IsResolver: false,
18953 }
18954
18955 ctx = graphql.WithFieldContext(ctx, fc)
18956 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18957 ctx = rctx
18958 return ec.introspectSchema()
18959 })
18960 if err != nil {
18961 ec.Error(ctx, err)
18962 return graphql.Null
18963 }
18964 if resTmp == nil {
18965 return graphql.Null
18966 }
18967 res := resTmp.(*introspection.Schema)
18968 fc.Result = res
18969 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
18970 }
18971
18972 func (ec *executionContext) _RateSpec_rate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RateSpec) (ret graphql.Marshaler) {
18973 defer func() {
18974 if r := recover(); r != nil {
18975 ec.Error(ctx, ec.Recover(ctx, r))
18976 ret = graphql.Null
18977 }
18978 }()
18979 fc := &graphql.FieldContext{
18980 Object: "RateSpec",
18981 Field: field,
18982 Args: nil,
18983 IsMethod: false,
18984 IsResolver: false,
18985 }
18986
18987 ctx = graphql.WithFieldContext(ctx, fc)
18988 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18989 ctx = rctx
18990 return obj.Rate, nil
18991 })
18992 if err != nil {
18993 ec.Error(ctx, err)
18994 return graphql.Null
18995 }
18996 if resTmp == nil {
18997 if !graphql.HasFieldError(ctx, fc) {
18998 ec.Errorf(ctx, "must not be null")
18999 }
19000 return graphql.Null
19001 }
19002 res := resTmp.(string)
19003 fc.Result = res
19004 return ec.marshalNString2string(ctx, field.Selections, res)
19005 }
19006
19007 func (ec *executionContext) _RawIPSet_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
19008 defer func() {
19009 if r := recover(); r != nil {
19010 ec.Error(ctx, ec.Recover(ctx, r))
19011 ret = graphql.Null
19012 }
19013 }()
19014 fc := &graphql.FieldContext{
19015 Object: "RawIPSet",
19016 Field: field,
19017 Args: nil,
19018 IsMethod: false,
19019 IsResolver: false,
19020 }
19021
19022 ctx = graphql.WithFieldContext(ctx, fc)
19023 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19024 ctx = rctx
19025 return obj.Name, nil
19026 })
19027 if err != nil {
19028 ec.Error(ctx, err)
19029 return graphql.Null
19030 }
19031 if resTmp == nil {
19032 if !graphql.HasFieldError(ctx, fc) {
19033 ec.Errorf(ctx, "must not be null")
19034 }
19035 return graphql.Null
19036 }
19037 res := resTmp.(string)
19038 fc.Result = res
19039 return ec.marshalNString2string(ctx, field.Selections, res)
19040 }
19041
19042 func (ec *executionContext) _RawIPSet_ipSetType(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
19043 defer func() {
19044 if r := recover(); r != nil {
19045 ec.Error(ctx, ec.Recover(ctx, r))
19046 ret = graphql.Null
19047 }
19048 }()
19049 fc := &graphql.FieldContext{
19050 Object: "RawIPSet",
19051 Field: field,
19052 Args: nil,
19053 IsMethod: true,
19054 IsResolver: true,
19055 }
19056
19057 ctx = graphql.WithFieldContext(ctx, fc)
19058 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19059 ctx = rctx
19060 return ec.resolvers.RawIPSet().IPSetType(rctx, obj)
19061 })
19062 if err != nil {
19063 ec.Error(ctx, err)
19064 return graphql.Null
19065 }
19066 if resTmp == nil {
19067 if !graphql.HasFieldError(ctx, fc) {
19068 ec.Errorf(ctx, "must not be null")
19069 }
19070 return graphql.Null
19071 }
19072 res := resTmp.(string)
19073 fc.Result = res
19074 return ec.marshalNString2string(ctx, field.Selections, res)
19075 }
19076
19077 func (ec *executionContext) _RawIPSet_cidrs(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
19078 defer func() {
19079 if r := recover(); r != nil {
19080 ec.Error(ctx, ec.Recover(ctx, r))
19081 ret = graphql.Null
19082 }
19083 }()
19084 fc := &graphql.FieldContext{
19085 Object: "RawIPSet",
19086 Field: field,
19087 Args: nil,
19088 IsMethod: false,
19089 IsResolver: false,
19090 }
19091
19092 ctx = graphql.WithFieldContext(ctx, fc)
19093 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19094 ctx = rctx
19095 return obj.Cidrs, nil
19096 })
19097 if err != nil {
19098 ec.Error(ctx, err)
19099 return graphql.Null
19100 }
19101 if resTmp == nil {
19102 if !graphql.HasFieldError(ctx, fc) {
19103 ec.Errorf(ctx, "must not be null")
19104 }
19105 return graphql.Null
19106 }
19107 res := resTmp.([]string)
19108 fc.Result = res
19109 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
19110 }
19111
19112 func (ec *executionContext) _RawIPSet_cidrAndPorts(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
19113 defer func() {
19114 if r := recover(); r != nil {
19115 ec.Error(ctx, ec.Recover(ctx, r))
19116 ret = graphql.Null
19117 }
19118 }()
19119 fc := &graphql.FieldContext{
19120 Object: "RawIPSet",
19121 Field: field,
19122 Args: nil,
19123 IsMethod: false,
19124 IsResolver: false,
19125 }
19126
19127 ctx = graphql.WithFieldContext(ctx, fc)
19128 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19129 ctx = rctx
19130 return obj.CidrAndPorts, nil
19131 })
19132 if err != nil {
19133 ec.Error(ctx, err)
19134 return graphql.Null
19135 }
19136 if resTmp == nil {
19137 return graphql.Null
19138 }
19139 res := resTmp.([]v1alpha1.CidrAndPort)
19140 fc.Result = res
19141 return ec.marshalOCidrAndPort2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCidrAndPortᚄ(ctx, field.Selections, res)
19142 }
19143
19144 func (ec *executionContext) _RawIPSet_setNames(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
19145 defer func() {
19146 if r := recover(); r != nil {
19147 ec.Error(ctx, ec.Recover(ctx, r))
19148 ret = graphql.Null
19149 }
19150 }()
19151 fc := &graphql.FieldContext{
19152 Object: "RawIPSet",
19153 Field: field,
19154 Args: nil,
19155 IsMethod: false,
19156 IsResolver: false,
19157 }
19158
19159 ctx = graphql.WithFieldContext(ctx, fc)
19160 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19161 ctx = rctx
19162 return obj.SetNames, nil
19163 })
19164 if err != nil {
19165 ec.Error(ctx, err)
19166 return graphql.Null
19167 }
19168 if resTmp == nil {
19169 if !graphql.HasFieldError(ctx, fc) {
19170 ec.Errorf(ctx, "must not be null")
19171 }
19172 return graphql.Null
19173 }
19174 res := resTmp.([]string)
19175 fc.Result = res
19176 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
19177 }
19178
19179 func (ec *executionContext) _RawIPSet_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
19180 defer func() {
19181 if r := recover(); r != nil {
19182 ec.Error(ctx, ec.Recover(ctx, r))
19183 ret = graphql.Null
19184 }
19185 }()
19186 fc := &graphql.FieldContext{
19187 Object: "RawIPSet",
19188 Field: field,
19189 Args: nil,
19190 IsMethod: false,
19191 IsResolver: false,
19192 }
19193
19194 ctx = graphql.WithFieldContext(ctx, fc)
19195 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19196 ctx = rctx
19197 return obj.Source, nil
19198 })
19199 if err != nil {
19200 ec.Error(ctx, err)
19201 return graphql.Null
19202 }
19203 if resTmp == nil {
19204 if !graphql.HasFieldError(ctx, fc) {
19205 ec.Errorf(ctx, "must not be null")
19206 }
19207 return graphql.Null
19208 }
19209 res := resTmp.(string)
19210 fc.Result = res
19211 return ec.marshalNString2string(ctx, field.Selections, res)
19212 }
19213
19214 func (ec *executionContext) _RawIptables_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
19215 defer func() {
19216 if r := recover(); r != nil {
19217 ec.Error(ctx, ec.Recover(ctx, r))
19218 ret = graphql.Null
19219 }
19220 }()
19221 fc := &graphql.FieldContext{
19222 Object: "RawIptables",
19223 Field: field,
19224 Args: nil,
19225 IsMethod: false,
19226 IsResolver: false,
19227 }
19228
19229 ctx = graphql.WithFieldContext(ctx, fc)
19230 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19231 ctx = rctx
19232 return obj.Name, nil
19233 })
19234 if err != nil {
19235 ec.Error(ctx, err)
19236 return graphql.Null
19237 }
19238 if resTmp == nil {
19239 if !graphql.HasFieldError(ctx, fc) {
19240 ec.Errorf(ctx, "must not be null")
19241 }
19242 return graphql.Null
19243 }
19244 res := resTmp.(string)
19245 fc.Result = res
19246 return ec.marshalNString2string(ctx, field.Selections, res)
19247 }
19248
19249 func (ec *executionContext) _RawIptables_ipSets(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
19250 defer func() {
19251 if r := recover(); r != nil {
19252 ec.Error(ctx, ec.Recover(ctx, r))
19253 ret = graphql.Null
19254 }
19255 }()
19256 fc := &graphql.FieldContext{
19257 Object: "RawIptables",
19258 Field: field,
19259 Args: nil,
19260 IsMethod: false,
19261 IsResolver: false,
19262 }
19263
19264 ctx = graphql.WithFieldContext(ctx, fc)
19265 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19266 ctx = rctx
19267 return obj.IPSets, nil
19268 })
19269 if err != nil {
19270 ec.Error(ctx, err)
19271 return graphql.Null
19272 }
19273 if resTmp == nil {
19274 if !graphql.HasFieldError(ctx, fc) {
19275 ec.Errorf(ctx, "must not be null")
19276 }
19277 return graphql.Null
19278 }
19279 res := resTmp.([]string)
19280 fc.Result = res
19281 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
19282 }
19283
19284 func (ec *executionContext) _RawIptables_direction(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
19285 defer func() {
19286 if r := recover(); r != nil {
19287 ec.Error(ctx, ec.Recover(ctx, r))
19288 ret = graphql.Null
19289 }
19290 }()
19291 fc := &graphql.FieldContext{
19292 Object: "RawIptables",
19293 Field: field,
19294 Args: nil,
19295 IsMethod: true,
19296 IsResolver: true,
19297 }
19298
19299 ctx = graphql.WithFieldContext(ctx, fc)
19300 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19301 ctx = rctx
19302 return ec.resolvers.RawIptables().Direction(rctx, obj)
19303 })
19304 if err != nil {
19305 ec.Error(ctx, err)
19306 return graphql.Null
19307 }
19308 if resTmp == nil {
19309 if !graphql.HasFieldError(ctx, fc) {
19310 ec.Errorf(ctx, "must not be null")
19311 }
19312 return graphql.Null
19313 }
19314 res := resTmp.(string)
19315 fc.Result = res
19316 return ec.marshalNString2string(ctx, field.Selections, res)
19317 }
19318
19319 func (ec *executionContext) _RawIptables_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
19320 defer func() {
19321 if r := recover(); r != nil {
19322 ec.Error(ctx, ec.Recover(ctx, r))
19323 ret = graphql.Null
19324 }
19325 }()
19326 fc := &graphql.FieldContext{
19327 Object: "RawIptables",
19328 Field: field,
19329 Args: nil,
19330 IsMethod: false,
19331 IsResolver: false,
19332 }
19333
19334 ctx = graphql.WithFieldContext(ctx, fc)
19335 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19336 ctx = rctx
19337 return obj.Source, nil
19338 })
19339 if err != nil {
19340 ec.Error(ctx, err)
19341 return graphql.Null
19342 }
19343 if resTmp == nil {
19344 if !graphql.HasFieldError(ctx, fc) {
19345 ec.Errorf(ctx, "must not be null")
19346 }
19347 return graphql.Null
19348 }
19349 res := resTmp.(string)
19350 fc.Result = res
19351 return ec.marshalNString2string(ctx, field.Selections, res)
19352 }
19353
19354 func (ec *executionContext) _RawIptables_device(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
19355 defer func() {
19356 if r := recover(); r != nil {
19357 ec.Error(ctx, ec.Recover(ctx, r))
19358 ret = graphql.Null
19359 }
19360 }()
19361 fc := &graphql.FieldContext{
19362 Object: "RawIptables",
19363 Field: field,
19364 Args: nil,
19365 IsMethod: false,
19366 IsResolver: false,
19367 }
19368
19369 ctx = graphql.WithFieldContext(ctx, fc)
19370 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19371 ctx = rctx
19372 return obj.Device, nil
19373 })
19374 if err != nil {
19375 ec.Error(ctx, err)
19376 return graphql.Null
19377 }
19378 if resTmp == nil {
19379 return graphql.Null
19380 }
19381 res := resTmp.(string)
19382 fc.Result = res
19383 return ec.marshalOString2string(ctx, field.Selections, res)
19384 }
19385
19386 func (ec *executionContext) _RawTrafficControl_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19387 defer func() {
19388 if r := recover(); r != nil {
19389 ec.Error(ctx, ec.Recover(ctx, r))
19390 ret = graphql.Null
19391 }
19392 }()
19393 fc := &graphql.FieldContext{
19394 Object: "RawTrafficControl",
19395 Field: field,
19396 Args: nil,
19397 IsMethod: true,
19398 IsResolver: true,
19399 }
19400
19401 ctx = graphql.WithFieldContext(ctx, fc)
19402 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19403 ctx = rctx
19404 return ec.resolvers.RawTrafficControl().Type(rctx, obj)
19405 })
19406 if err != nil {
19407 ec.Error(ctx, err)
19408 return graphql.Null
19409 }
19410 if resTmp == nil {
19411 if !graphql.HasFieldError(ctx, fc) {
19412 ec.Errorf(ctx, "must not be null")
19413 }
19414 return graphql.Null
19415 }
19416 res := resTmp.(string)
19417 fc.Result = res
19418 return ec.marshalNString2string(ctx, field.Selections, res)
19419 }
19420
19421 func (ec *executionContext) _RawTrafficControl_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19422 defer func() {
19423 if r := recover(); r != nil {
19424 ec.Error(ctx, ec.Recover(ctx, r))
19425 ret = graphql.Null
19426 }
19427 }()
19428 fc := &graphql.FieldContext{
19429 Object: "RawTrafficControl",
19430 Field: field,
19431 Args: nil,
19432 IsMethod: false,
19433 IsResolver: false,
19434 }
19435
19436 ctx = graphql.WithFieldContext(ctx, fc)
19437 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19438 ctx = rctx
19439 return obj.Delay, nil
19440 })
19441 if err != nil {
19442 ec.Error(ctx, err)
19443 return graphql.Null
19444 }
19445 if resTmp == nil {
19446 return graphql.Null
19447 }
19448 res := resTmp.(*v1alpha1.DelaySpec)
19449 fc.Result = res
19450 return ec.marshalODelaySpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDelaySpec(ctx, field.Selections, res)
19451 }
19452
19453 func (ec *executionContext) _RawTrafficControl_loss(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19454 defer func() {
19455 if r := recover(); r != nil {
19456 ec.Error(ctx, ec.Recover(ctx, r))
19457 ret = graphql.Null
19458 }
19459 }()
19460 fc := &graphql.FieldContext{
19461 Object: "RawTrafficControl",
19462 Field: field,
19463 Args: nil,
19464 IsMethod: false,
19465 IsResolver: false,
19466 }
19467
19468 ctx = graphql.WithFieldContext(ctx, fc)
19469 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19470 ctx = rctx
19471 return obj.Loss, nil
19472 })
19473 if err != nil {
19474 ec.Error(ctx, err)
19475 return graphql.Null
19476 }
19477 if resTmp == nil {
19478 return graphql.Null
19479 }
19480 res := resTmp.(*v1alpha1.LossSpec)
19481 fc.Result = res
19482 return ec.marshalOLossSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐLossSpec(ctx, field.Selections, res)
19483 }
19484
19485 func (ec *executionContext) _RawTrafficControl_duplicate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19486 defer func() {
19487 if r := recover(); r != nil {
19488 ec.Error(ctx, ec.Recover(ctx, r))
19489 ret = graphql.Null
19490 }
19491 }()
19492 fc := &graphql.FieldContext{
19493 Object: "RawTrafficControl",
19494 Field: field,
19495 Args: nil,
19496 IsMethod: false,
19497 IsResolver: false,
19498 }
19499
19500 ctx = graphql.WithFieldContext(ctx, fc)
19501 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19502 ctx = rctx
19503 return obj.Duplicate, nil
19504 })
19505 if err != nil {
19506 ec.Error(ctx, err)
19507 return graphql.Null
19508 }
19509 if resTmp == nil {
19510 return graphql.Null
19511 }
19512 res := resTmp.(*v1alpha1.DuplicateSpec)
19513 fc.Result = res
19514 return ec.marshalODuplicateSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDuplicateSpec(ctx, field.Selections, res)
19515 }
19516
19517 func (ec *executionContext) _RawTrafficControl_corrupt(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19518 defer func() {
19519 if r := recover(); r != nil {
19520 ec.Error(ctx, ec.Recover(ctx, r))
19521 ret = graphql.Null
19522 }
19523 }()
19524 fc := &graphql.FieldContext{
19525 Object: "RawTrafficControl",
19526 Field: field,
19527 Args: nil,
19528 IsMethod: false,
19529 IsResolver: false,
19530 }
19531
19532 ctx = graphql.WithFieldContext(ctx, fc)
19533 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19534 ctx = rctx
19535 return obj.Corrupt, nil
19536 })
19537 if err != nil {
19538 ec.Error(ctx, err)
19539 return graphql.Null
19540 }
19541 if resTmp == nil {
19542 return graphql.Null
19543 }
19544 res := resTmp.(*v1alpha1.CorruptSpec)
19545 fc.Result = res
19546 return ec.marshalOCorruptSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCorruptSpec(ctx, field.Selections, res)
19547 }
19548
19549 func (ec *executionContext) _RawTrafficControl_bandwidth(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19550 defer func() {
19551 if r := recover(); r != nil {
19552 ec.Error(ctx, ec.Recover(ctx, r))
19553 ret = graphql.Null
19554 }
19555 }()
19556 fc := &graphql.FieldContext{
19557 Object: "RawTrafficControl",
19558 Field: field,
19559 Args: nil,
19560 IsMethod: false,
19561 IsResolver: false,
19562 }
19563
19564 ctx = graphql.WithFieldContext(ctx, fc)
19565 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19566 ctx = rctx
19567 return obj.Bandwidth, nil
19568 })
19569 if err != nil {
19570 ec.Error(ctx, err)
19571 return graphql.Null
19572 }
19573 if resTmp == nil {
19574 return graphql.Null
19575 }
19576 res := resTmp.(*v1alpha1.BandwidthSpec)
19577 fc.Result = res
19578 return ec.marshalOBandwidthSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐBandwidthSpec(ctx, field.Selections, res)
19579 }
19580
19581 func (ec *executionContext) _RawTrafficControl_rate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19582 defer func() {
19583 if r := recover(); r != nil {
19584 ec.Error(ctx, ec.Recover(ctx, r))
19585 ret = graphql.Null
19586 }
19587 }()
19588 fc := &graphql.FieldContext{
19589 Object: "RawTrafficControl",
19590 Field: field,
19591 Args: nil,
19592 IsMethod: false,
19593 IsResolver: false,
19594 }
19595
19596 ctx = graphql.WithFieldContext(ctx, fc)
19597 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19598 ctx = rctx
19599 return obj.Rate, nil
19600 })
19601 if err != nil {
19602 ec.Error(ctx, err)
19603 return graphql.Null
19604 }
19605 if resTmp == nil {
19606 return graphql.Null
19607 }
19608 res := resTmp.(*v1alpha1.RateSpec)
19609 fc.Result = res
19610 return ec.marshalORateSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRateSpec(ctx, field.Selections, res)
19611 }
19612
19613 func (ec *executionContext) _RawTrafficControl_ipSet(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19614 defer func() {
19615 if r := recover(); r != nil {
19616 ec.Error(ctx, ec.Recover(ctx, r))
19617 ret = graphql.Null
19618 }
19619 }()
19620 fc := &graphql.FieldContext{
19621 Object: "RawTrafficControl",
19622 Field: field,
19623 Args: nil,
19624 IsMethod: false,
19625 IsResolver: false,
19626 }
19627
19628 ctx = graphql.WithFieldContext(ctx, fc)
19629 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19630 ctx = rctx
19631 return obj.IPSet, nil
19632 })
19633 if err != nil {
19634 ec.Error(ctx, err)
19635 return graphql.Null
19636 }
19637 if resTmp == nil {
19638 return graphql.Null
19639 }
19640 res := resTmp.(string)
19641 fc.Result = res
19642 return ec.marshalOString2string(ctx, field.Selections, res)
19643 }
19644
19645 func (ec *executionContext) _RawTrafficControl_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19646 defer func() {
19647 if r := recover(); r != nil {
19648 ec.Error(ctx, ec.Recover(ctx, r))
19649 ret = graphql.Null
19650 }
19651 }()
19652 fc := &graphql.FieldContext{
19653 Object: "RawTrafficControl",
19654 Field: field,
19655 Args: nil,
19656 IsMethod: false,
19657 IsResolver: false,
19658 }
19659
19660 ctx = graphql.WithFieldContext(ctx, fc)
19661 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19662 ctx = rctx
19663 return obj.Source, nil
19664 })
19665 if err != nil {
19666 ec.Error(ctx, err)
19667 return graphql.Null
19668 }
19669 if resTmp == nil {
19670 return graphql.Null
19671 }
19672 res := resTmp.(string)
19673 fc.Result = res
19674 return ec.marshalOString2string(ctx, field.Selections, res)
19675 }
19676
19677 func (ec *executionContext) _RawTrafficControl_device(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
19678 defer func() {
19679 if r := recover(); r != nil {
19680 ec.Error(ctx, ec.Recover(ctx, r))
19681 ret = graphql.Null
19682 }
19683 }()
19684 fc := &graphql.FieldContext{
19685 Object: "RawTrafficControl",
19686 Field: field,
19687 Args: nil,
19688 IsMethod: false,
19689 IsResolver: false,
19690 }
19691
19692 ctx = graphql.WithFieldContext(ctx, fc)
19693 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19694 ctx = rctx
19695 return obj.Device, nil
19696 })
19697 if err != nil {
19698 ec.Error(ctx, err)
19699 return graphql.Null
19700 }
19701 if resTmp == nil {
19702 return graphql.Null
19703 }
19704 res := resTmp.(string)
19705 fc.Result = res
19706 return ec.marshalOString2string(ctx, field.Selections, res)
19707 }
19708
19709 func (ec *executionContext) _Record_id(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Record) (ret graphql.Marshaler) {
19710 defer func() {
19711 if r := recover(); r != nil {
19712 ec.Error(ctx, ec.Recover(ctx, r))
19713 ret = graphql.Null
19714 }
19715 }()
19716 fc := &graphql.FieldContext{
19717 Object: "Record",
19718 Field: field,
19719 Args: nil,
19720 IsMethod: false,
19721 IsResolver: false,
19722 }
19723
19724 ctx = graphql.WithFieldContext(ctx, fc)
19725 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19726 ctx = rctx
19727 return obj.Id, nil
19728 })
19729 if err != nil {
19730 ec.Error(ctx, err)
19731 return graphql.Null
19732 }
19733 if resTmp == nil {
19734 if !graphql.HasFieldError(ctx, fc) {
19735 ec.Errorf(ctx, "must not be null")
19736 }
19737 return graphql.Null
19738 }
19739 res := resTmp.(string)
19740 fc.Result = res
19741 return ec.marshalNString2string(ctx, field.Selections, res)
19742 }
19743
19744 func (ec *executionContext) _Record_selectorKey(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Record) (ret graphql.Marshaler) {
19745 defer func() {
19746 if r := recover(); r != nil {
19747 ec.Error(ctx, ec.Recover(ctx, r))
19748 ret = graphql.Null
19749 }
19750 }()
19751 fc := &graphql.FieldContext{
19752 Object: "Record",
19753 Field: field,
19754 Args: nil,
19755 IsMethod: false,
19756 IsResolver: false,
19757 }
19758
19759 ctx = graphql.WithFieldContext(ctx, fc)
19760 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19761 ctx = rctx
19762 return obj.SelectorKey, nil
19763 })
19764 if err != nil {
19765 ec.Error(ctx, err)
19766 return graphql.Null
19767 }
19768 if resTmp == nil {
19769 if !graphql.HasFieldError(ctx, fc) {
19770 ec.Errorf(ctx, "must not be null")
19771 }
19772 return graphql.Null
19773 }
19774 res := resTmp.(string)
19775 fc.Result = res
19776 return ec.marshalNString2string(ctx, field.Selections, res)
19777 }
19778
19779 func (ec *executionContext) _Record_phase(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Record) (ret graphql.Marshaler) {
19780 defer func() {
19781 if r := recover(); r != nil {
19782 ec.Error(ctx, ec.Recover(ctx, r))
19783 ret = graphql.Null
19784 }
19785 }()
19786 fc := &graphql.FieldContext{
19787 Object: "Record",
19788 Field: field,
19789 Args: nil,
19790 IsMethod: true,
19791 IsResolver: true,
19792 }
19793
19794 ctx = graphql.WithFieldContext(ctx, fc)
19795 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19796 ctx = rctx
19797 return ec.resolvers.Record().Phase(rctx, obj)
19798 })
19799 if err != nil {
19800 ec.Error(ctx, err)
19801 return graphql.Null
19802 }
19803 if resTmp == nil {
19804 if !graphql.HasFieldError(ctx, fc) {
19805 ec.Errorf(ctx, "must not be null")
19806 }
19807 return graphql.Null
19808 }
19809 res := resTmp.(string)
19810 fc.Result = res
19811 return ec.marshalNString2string(ctx, field.Selections, res)
19812 }
19813
19814 func (ec *executionContext) _ReorderSpec_reorder(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ReorderSpec) (ret graphql.Marshaler) {
19815 defer func() {
19816 if r := recover(); r != nil {
19817 ec.Error(ctx, ec.Recover(ctx, r))
19818 ret = graphql.Null
19819 }
19820 }()
19821 fc := &graphql.FieldContext{
19822 Object: "ReorderSpec",
19823 Field: field,
19824 Args: nil,
19825 IsMethod: false,
19826 IsResolver: false,
19827 }
19828
19829 ctx = graphql.WithFieldContext(ctx, fc)
19830 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19831 ctx = rctx
19832 return obj.Reorder, nil
19833 })
19834 if err != nil {
19835 ec.Error(ctx, err)
19836 return graphql.Null
19837 }
19838 if resTmp == nil {
19839 if !graphql.HasFieldError(ctx, fc) {
19840 ec.Errorf(ctx, "must not be null")
19841 }
19842 return graphql.Null
19843 }
19844 res := resTmp.(string)
19845 fc.Result = res
19846 return ec.marshalNString2string(ctx, field.Selections, res)
19847 }
19848
19849 func (ec *executionContext) _ReorderSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ReorderSpec) (ret graphql.Marshaler) {
19850 defer func() {
19851 if r := recover(); r != nil {
19852 ec.Error(ctx, ec.Recover(ctx, r))
19853 ret = graphql.Null
19854 }
19855 }()
19856 fc := &graphql.FieldContext{
19857 Object: "ReorderSpec",
19858 Field: field,
19859 Args: nil,
19860 IsMethod: false,
19861 IsResolver: false,
19862 }
19863
19864 ctx = graphql.WithFieldContext(ctx, fc)
19865 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19866 ctx = rctx
19867 return obj.Correlation, nil
19868 })
19869 if err != nil {
19870 ec.Error(ctx, err)
19871 return graphql.Null
19872 }
19873 if resTmp == nil {
19874 return graphql.Null
19875 }
19876 res := resTmp.(string)
19877 fc.Result = res
19878 return ec.marshalOString2string(ctx, field.Selections, res)
19879 }
19880
19881 func (ec *executionContext) _ReorderSpec_gap(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ReorderSpec) (ret graphql.Marshaler) {
19882 defer func() {
19883 if r := recover(); r != nil {
19884 ec.Error(ctx, ec.Recover(ctx, r))
19885 ret = graphql.Null
19886 }
19887 }()
19888 fc := &graphql.FieldContext{
19889 Object: "ReorderSpec",
19890 Field: field,
19891 Args: nil,
19892 IsMethod: false,
19893 IsResolver: false,
19894 }
19895
19896 ctx = graphql.WithFieldContext(ctx, fc)
19897 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19898 ctx = rctx
19899 return obj.Gap, nil
19900 })
19901 if err != nil {
19902 ec.Error(ctx, err)
19903 return graphql.Null
19904 }
19905 if resTmp == nil {
19906 return graphql.Null
19907 }
19908 res := resTmp.(int)
19909 fc.Result = res
19910 return ec.marshalOInt2int(ctx, field.Selections, res)
19911 }
19912
19913 func (ec *executionContext) _StressChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
19914 defer func() {
19915 if r := recover(); r != nil {
19916 ec.Error(ctx, ec.Recover(ctx, r))
19917 ret = graphql.Null
19918 }
19919 }()
19920 fc := &graphql.FieldContext{
19921 Object: "StressChaos",
19922 Field: field,
19923 Args: nil,
19924 IsMethod: false,
19925 IsResolver: false,
19926 }
19927
19928 ctx = graphql.WithFieldContext(ctx, fc)
19929 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19930 ctx = rctx
19931 return obj.Kind, nil
19932 })
19933 if err != nil {
19934 ec.Error(ctx, err)
19935 return graphql.Null
19936 }
19937 if resTmp == nil {
19938 if !graphql.HasFieldError(ctx, fc) {
19939 ec.Errorf(ctx, "must not be null")
19940 }
19941 return graphql.Null
19942 }
19943 res := resTmp.(string)
19944 fc.Result = res
19945 return ec.marshalNString2string(ctx, field.Selections, res)
19946 }
19947
19948 func (ec *executionContext) _StressChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
19949 defer func() {
19950 if r := recover(); r != nil {
19951 ec.Error(ctx, ec.Recover(ctx, r))
19952 ret = graphql.Null
19953 }
19954 }()
19955 fc := &graphql.FieldContext{
19956 Object: "StressChaos",
19957 Field: field,
19958 Args: nil,
19959 IsMethod: false,
19960 IsResolver: false,
19961 }
19962
19963 ctx = graphql.WithFieldContext(ctx, fc)
19964 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19965 ctx = rctx
19966 return obj.APIVersion, nil
19967 })
19968 if err != nil {
19969 ec.Error(ctx, err)
19970 return graphql.Null
19971 }
19972 if resTmp == nil {
19973 if !graphql.HasFieldError(ctx, fc) {
19974 ec.Errorf(ctx, "must not be null")
19975 }
19976 return graphql.Null
19977 }
19978 res := resTmp.(string)
19979 fc.Result = res
19980 return ec.marshalNString2string(ctx, field.Selections, res)
19981 }
19982
19983 func (ec *executionContext) _StressChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
19984 defer func() {
19985 if r := recover(); r != nil {
19986 ec.Error(ctx, ec.Recover(ctx, r))
19987 ret = graphql.Null
19988 }
19989 }()
19990 fc := &graphql.FieldContext{
19991 Object: "StressChaos",
19992 Field: field,
19993 Args: nil,
19994 IsMethod: false,
19995 IsResolver: false,
19996 }
19997
19998 ctx = graphql.WithFieldContext(ctx, fc)
19999 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20000 ctx = rctx
20001 return obj.Name, nil
20002 })
20003 if err != nil {
20004 ec.Error(ctx, err)
20005 return graphql.Null
20006 }
20007 if resTmp == nil {
20008 if !graphql.HasFieldError(ctx, fc) {
20009 ec.Errorf(ctx, "must not be null")
20010 }
20011 return graphql.Null
20012 }
20013 res := resTmp.(string)
20014 fc.Result = res
20015 return ec.marshalNString2string(ctx, field.Selections, res)
20016 }
20017
20018 func (ec *executionContext) _StressChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20019 defer func() {
20020 if r := recover(); r != nil {
20021 ec.Error(ctx, ec.Recover(ctx, r))
20022 ret = graphql.Null
20023 }
20024 }()
20025 fc := &graphql.FieldContext{
20026 Object: "StressChaos",
20027 Field: field,
20028 Args: nil,
20029 IsMethod: false,
20030 IsResolver: false,
20031 }
20032
20033 ctx = graphql.WithFieldContext(ctx, fc)
20034 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20035 ctx = rctx
20036 return obj.GenerateName, nil
20037 })
20038 if err != nil {
20039 ec.Error(ctx, err)
20040 return graphql.Null
20041 }
20042 if resTmp == nil {
20043 if !graphql.HasFieldError(ctx, fc) {
20044 ec.Errorf(ctx, "must not be null")
20045 }
20046 return graphql.Null
20047 }
20048 res := resTmp.(string)
20049 fc.Result = res
20050 return ec.marshalNString2string(ctx, field.Selections, res)
20051 }
20052
20053 func (ec *executionContext) _StressChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20054 defer func() {
20055 if r := recover(); r != nil {
20056 ec.Error(ctx, ec.Recover(ctx, r))
20057 ret = graphql.Null
20058 }
20059 }()
20060 fc := &graphql.FieldContext{
20061 Object: "StressChaos",
20062 Field: field,
20063 Args: nil,
20064 IsMethod: false,
20065 IsResolver: false,
20066 }
20067
20068 ctx = graphql.WithFieldContext(ctx, fc)
20069 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20070 ctx = rctx
20071 return obj.Namespace, nil
20072 })
20073 if err != nil {
20074 ec.Error(ctx, err)
20075 return graphql.Null
20076 }
20077 if resTmp == nil {
20078 if !graphql.HasFieldError(ctx, fc) {
20079 ec.Errorf(ctx, "must not be null")
20080 }
20081 return graphql.Null
20082 }
20083 res := resTmp.(string)
20084 fc.Result = res
20085 return ec.marshalNString2string(ctx, field.Selections, res)
20086 }
20087
20088 func (ec *executionContext) _StressChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20089 defer func() {
20090 if r := recover(); r != nil {
20091 ec.Error(ctx, ec.Recover(ctx, r))
20092 ret = graphql.Null
20093 }
20094 }()
20095 fc := &graphql.FieldContext{
20096 Object: "StressChaos",
20097 Field: field,
20098 Args: nil,
20099 IsMethod: false,
20100 IsResolver: false,
20101 }
20102
20103 ctx = graphql.WithFieldContext(ctx, fc)
20104 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20105 ctx = rctx
20106 return obj.SelfLink, nil
20107 })
20108 if err != nil {
20109 ec.Error(ctx, err)
20110 return graphql.Null
20111 }
20112 if resTmp == nil {
20113 if !graphql.HasFieldError(ctx, fc) {
20114 ec.Errorf(ctx, "must not be null")
20115 }
20116 return graphql.Null
20117 }
20118 res := resTmp.(string)
20119 fc.Result = res
20120 return ec.marshalNString2string(ctx, field.Selections, res)
20121 }
20122
20123 func (ec *executionContext) _StressChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20124 defer func() {
20125 if r := recover(); r != nil {
20126 ec.Error(ctx, ec.Recover(ctx, r))
20127 ret = graphql.Null
20128 }
20129 }()
20130 fc := &graphql.FieldContext{
20131 Object: "StressChaos",
20132 Field: field,
20133 Args: nil,
20134 IsMethod: true,
20135 IsResolver: true,
20136 }
20137
20138 ctx = graphql.WithFieldContext(ctx, fc)
20139 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20140 ctx = rctx
20141 return ec.resolvers.StressChaos().UID(rctx, obj)
20142 })
20143 if err != nil {
20144 ec.Error(ctx, err)
20145 return graphql.Null
20146 }
20147 if resTmp == nil {
20148 if !graphql.HasFieldError(ctx, fc) {
20149 ec.Errorf(ctx, "must not be null")
20150 }
20151 return graphql.Null
20152 }
20153 res := resTmp.(string)
20154 fc.Result = res
20155 return ec.marshalNString2string(ctx, field.Selections, res)
20156 }
20157
20158 func (ec *executionContext) _StressChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20159 defer func() {
20160 if r := recover(); r != nil {
20161 ec.Error(ctx, ec.Recover(ctx, r))
20162 ret = graphql.Null
20163 }
20164 }()
20165 fc := &graphql.FieldContext{
20166 Object: "StressChaos",
20167 Field: field,
20168 Args: nil,
20169 IsMethod: false,
20170 IsResolver: false,
20171 }
20172
20173 ctx = graphql.WithFieldContext(ctx, fc)
20174 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20175 ctx = rctx
20176 return obj.ResourceVersion, nil
20177 })
20178 if err != nil {
20179 ec.Error(ctx, err)
20180 return graphql.Null
20181 }
20182 if resTmp == nil {
20183 if !graphql.HasFieldError(ctx, fc) {
20184 ec.Errorf(ctx, "must not be null")
20185 }
20186 return graphql.Null
20187 }
20188 res := resTmp.(string)
20189 fc.Result = res
20190 return ec.marshalNString2string(ctx, field.Selections, res)
20191 }
20192
20193 func (ec *executionContext) _StressChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20194 defer func() {
20195 if r := recover(); r != nil {
20196 ec.Error(ctx, ec.Recover(ctx, r))
20197 ret = graphql.Null
20198 }
20199 }()
20200 fc := &graphql.FieldContext{
20201 Object: "StressChaos",
20202 Field: field,
20203 Args: nil,
20204 IsMethod: false,
20205 IsResolver: false,
20206 }
20207
20208 ctx = graphql.WithFieldContext(ctx, fc)
20209 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20210 ctx = rctx
20211 return obj.Generation, nil
20212 })
20213 if err != nil {
20214 ec.Error(ctx, err)
20215 return graphql.Null
20216 }
20217 if resTmp == nil {
20218 if !graphql.HasFieldError(ctx, fc) {
20219 ec.Errorf(ctx, "must not be null")
20220 }
20221 return graphql.Null
20222 }
20223 res := resTmp.(int64)
20224 fc.Result = res
20225 return ec.marshalNInt2int64(ctx, field.Selections, res)
20226 }
20227
20228 func (ec *executionContext) _StressChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20229 defer func() {
20230 if r := recover(); r != nil {
20231 ec.Error(ctx, ec.Recover(ctx, r))
20232 ret = graphql.Null
20233 }
20234 }()
20235 fc := &graphql.FieldContext{
20236 Object: "StressChaos",
20237 Field: field,
20238 Args: nil,
20239 IsMethod: true,
20240 IsResolver: true,
20241 }
20242
20243 ctx = graphql.WithFieldContext(ctx, fc)
20244 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20245 ctx = rctx
20246 return ec.resolvers.StressChaos().CreationTimestamp(rctx, obj)
20247 })
20248 if err != nil {
20249 ec.Error(ctx, err)
20250 return graphql.Null
20251 }
20252 if resTmp == nil {
20253 if !graphql.HasFieldError(ctx, fc) {
20254 ec.Errorf(ctx, "must not be null")
20255 }
20256 return graphql.Null
20257 }
20258 res := resTmp.(*time.Time)
20259 fc.Result = res
20260 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
20261 }
20262
20263 func (ec *executionContext) _StressChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20264 defer func() {
20265 if r := recover(); r != nil {
20266 ec.Error(ctx, ec.Recover(ctx, r))
20267 ret = graphql.Null
20268 }
20269 }()
20270 fc := &graphql.FieldContext{
20271 Object: "StressChaos",
20272 Field: field,
20273 Args: nil,
20274 IsMethod: true,
20275 IsResolver: true,
20276 }
20277
20278 ctx = graphql.WithFieldContext(ctx, fc)
20279 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20280 ctx = rctx
20281 return ec.resolvers.StressChaos().DeletionTimestamp(rctx, obj)
20282 })
20283 if err != nil {
20284 ec.Error(ctx, err)
20285 return graphql.Null
20286 }
20287 if resTmp == nil {
20288 return graphql.Null
20289 }
20290 res := resTmp.(*time.Time)
20291 fc.Result = res
20292 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
20293 }
20294
20295 func (ec *executionContext) _StressChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20296 defer func() {
20297 if r := recover(); r != nil {
20298 ec.Error(ctx, ec.Recover(ctx, r))
20299 ret = graphql.Null
20300 }
20301 }()
20302 fc := &graphql.FieldContext{
20303 Object: "StressChaos",
20304 Field: field,
20305 Args: nil,
20306 IsMethod: false,
20307 IsResolver: false,
20308 }
20309
20310 ctx = graphql.WithFieldContext(ctx, fc)
20311 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20312 ctx = rctx
20313 return obj.DeletionGracePeriodSeconds, nil
20314 })
20315 if err != nil {
20316 ec.Error(ctx, err)
20317 return graphql.Null
20318 }
20319 if resTmp == nil {
20320 return graphql.Null
20321 }
20322 res := resTmp.(*int64)
20323 fc.Result = res
20324 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
20325 }
20326
20327 func (ec *executionContext) _StressChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20328 defer func() {
20329 if r := recover(); r != nil {
20330 ec.Error(ctx, ec.Recover(ctx, r))
20331 ret = graphql.Null
20332 }
20333 }()
20334 fc := &graphql.FieldContext{
20335 Object: "StressChaos",
20336 Field: field,
20337 Args: nil,
20338 IsMethod: true,
20339 IsResolver: true,
20340 }
20341
20342 ctx = graphql.WithFieldContext(ctx, fc)
20343 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20344 ctx = rctx
20345 return ec.resolvers.StressChaos().Labels(rctx, obj)
20346 })
20347 if err != nil {
20348 ec.Error(ctx, err)
20349 return graphql.Null
20350 }
20351 if resTmp == nil {
20352 return graphql.Null
20353 }
20354 res := resTmp.(map[string]interface{})
20355 fc.Result = res
20356 return ec.marshalOMap2map(ctx, field.Selections, res)
20357 }
20358
20359 func (ec *executionContext) _StressChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20360 defer func() {
20361 if r := recover(); r != nil {
20362 ec.Error(ctx, ec.Recover(ctx, r))
20363 ret = graphql.Null
20364 }
20365 }()
20366 fc := &graphql.FieldContext{
20367 Object: "StressChaos",
20368 Field: field,
20369 Args: nil,
20370 IsMethod: true,
20371 IsResolver: true,
20372 }
20373
20374 ctx = graphql.WithFieldContext(ctx, fc)
20375 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20376 ctx = rctx
20377 return ec.resolvers.StressChaos().Annotations(rctx, obj)
20378 })
20379 if err != nil {
20380 ec.Error(ctx, err)
20381 return graphql.Null
20382 }
20383 if resTmp == nil {
20384 return graphql.Null
20385 }
20386 res := resTmp.(map[string]interface{})
20387 fc.Result = res
20388 return ec.marshalOMap2map(ctx, field.Selections, res)
20389 }
20390
20391 func (ec *executionContext) _StressChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20392 defer func() {
20393 if r := recover(); r != nil {
20394 ec.Error(ctx, ec.Recover(ctx, r))
20395 ret = graphql.Null
20396 }
20397 }()
20398 fc := &graphql.FieldContext{
20399 Object: "StressChaos",
20400 Field: field,
20401 Args: nil,
20402 IsMethod: false,
20403 IsResolver: false,
20404 }
20405
20406 ctx = graphql.WithFieldContext(ctx, fc)
20407 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20408 ctx = rctx
20409 return obj.OwnerReferences, nil
20410 })
20411 if err != nil {
20412 ec.Error(ctx, err)
20413 return graphql.Null
20414 }
20415 if resTmp == nil {
20416 return graphql.Null
20417 }
20418 res := resTmp.([]v11.OwnerReference)
20419 fc.Result = res
20420 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
20421 }
20422
20423 func (ec *executionContext) _StressChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20424 defer func() {
20425 if r := recover(); r != nil {
20426 ec.Error(ctx, ec.Recover(ctx, r))
20427 ret = graphql.Null
20428 }
20429 }()
20430 fc := &graphql.FieldContext{
20431 Object: "StressChaos",
20432 Field: field,
20433 Args: nil,
20434 IsMethod: false,
20435 IsResolver: false,
20436 }
20437
20438 ctx = graphql.WithFieldContext(ctx, fc)
20439 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20440 ctx = rctx
20441 return obj.Finalizers, nil
20442 })
20443 if err != nil {
20444 ec.Error(ctx, err)
20445 return graphql.Null
20446 }
20447 if resTmp == nil {
20448 return graphql.Null
20449 }
20450 res := resTmp.([]string)
20451 fc.Result = res
20452 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
20453 }
20454
20455 func (ec *executionContext) _StressChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20456 defer func() {
20457 if r := recover(); r != nil {
20458 ec.Error(ctx, ec.Recover(ctx, r))
20459 ret = graphql.Null
20460 }
20461 }()
20462 fc := &graphql.FieldContext{
20463 Object: "StressChaos",
20464 Field: field,
20465 Args: nil,
20466 IsMethod: false,
20467 IsResolver: false,
20468 }
20469
20470 ctx = graphql.WithFieldContext(ctx, fc)
20471 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20472 ctx = rctx
20473 return obj.Spec, nil
20474 })
20475 if err != nil {
20476 ec.Error(ctx, err)
20477 return graphql.Null
20478 }
20479 if resTmp == nil {
20480 if !graphql.HasFieldError(ctx, fc) {
20481 ec.Errorf(ctx, "must not be null")
20482 }
20483 return graphql.Null
20484 }
20485 res := resTmp.(v1alpha1.StressChaosSpec)
20486 fc.Result = res
20487 return ec.marshalNStressChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaosSpec(ctx, field.Selections, res)
20488 }
20489
20490 func (ec *executionContext) _StressChaos_podstress(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
20491 defer func() {
20492 if r := recover(); r != nil {
20493 ec.Error(ctx, ec.Recover(ctx, r))
20494 ret = graphql.Null
20495 }
20496 }()
20497 fc := &graphql.FieldContext{
20498 Object: "StressChaos",
20499 Field: field,
20500 Args: nil,
20501 IsMethod: true,
20502 IsResolver: true,
20503 }
20504
20505 ctx = graphql.WithFieldContext(ctx, fc)
20506 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20507 ctx = rctx
20508 return ec.resolvers.StressChaos().Podstress(rctx, obj)
20509 })
20510 if err != nil {
20511 ec.Error(ctx, err)
20512 return graphql.Null
20513 }
20514 if resTmp == nil {
20515 return graphql.Null
20516 }
20517 res := resTmp.([]*model.PodStressChaos)
20518 fc.Result = res
20519 return ec.marshalOPodStressChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐPodStressChaosᚄ(ctx, field.Selections, res)
20520 }
20521
20522 func (ec *executionContext) _StressChaosSpec_containerNames(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20523 defer func() {
20524 if r := recover(); r != nil {
20525 ec.Error(ctx, ec.Recover(ctx, r))
20526 ret = graphql.Null
20527 }
20528 }()
20529 fc := &graphql.FieldContext{
20530 Object: "StressChaosSpec",
20531 Field: field,
20532 Args: nil,
20533 IsMethod: false,
20534 IsResolver: false,
20535 }
20536
20537 ctx = graphql.WithFieldContext(ctx, fc)
20538 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20539 ctx = rctx
20540 return obj.ContainerNames, nil
20541 })
20542 if err != nil {
20543 ec.Error(ctx, err)
20544 return graphql.Null
20545 }
20546 if resTmp == nil {
20547 return graphql.Null
20548 }
20549 res := resTmp.([]string)
20550 fc.Result = res
20551 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
20552 }
20553
20554 func (ec *executionContext) _StressChaosSpec_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20555 defer func() {
20556 if r := recover(); r != nil {
20557 ec.Error(ctx, ec.Recover(ctx, r))
20558 ret = graphql.Null
20559 }
20560 }()
20561 fc := &graphql.FieldContext{
20562 Object: "StressChaosSpec",
20563 Field: field,
20564 Args: nil,
20565 IsMethod: false,
20566 IsResolver: false,
20567 }
20568
20569 ctx = graphql.WithFieldContext(ctx, fc)
20570 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20571 ctx = rctx
20572 return obj.Selector, nil
20573 })
20574 if err != nil {
20575 ec.Error(ctx, err)
20576 return graphql.Null
20577 }
20578 if resTmp == nil {
20579 if !graphql.HasFieldError(ctx, fc) {
20580 ec.Errorf(ctx, "must not be null")
20581 }
20582 return graphql.Null
20583 }
20584 res := resTmp.(v1alpha1.PodSelectorSpec)
20585 fc.Result = res
20586 return ec.marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx, field.Selections, res)
20587 }
20588
20589 func (ec *executionContext) _StressChaosSpec_mode(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20590 defer func() {
20591 if r := recover(); r != nil {
20592 ec.Error(ctx, ec.Recover(ctx, r))
20593 ret = graphql.Null
20594 }
20595 }()
20596 fc := &graphql.FieldContext{
20597 Object: "StressChaosSpec",
20598 Field: field,
20599 Args: nil,
20600 IsMethod: true,
20601 IsResolver: true,
20602 }
20603
20604 ctx = graphql.WithFieldContext(ctx, fc)
20605 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20606 ctx = rctx
20607 return ec.resolvers.StressChaosSpec().Mode(rctx, obj)
20608 })
20609 if err != nil {
20610 ec.Error(ctx, err)
20611 return graphql.Null
20612 }
20613 if resTmp == nil {
20614 if !graphql.HasFieldError(ctx, fc) {
20615 ec.Errorf(ctx, "must not be null")
20616 }
20617 return graphql.Null
20618 }
20619 res := resTmp.(string)
20620 fc.Result = res
20621 return ec.marshalNString2string(ctx, field.Selections, res)
20622 }
20623
20624 func (ec *executionContext) _StressChaosSpec_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20625 defer func() {
20626 if r := recover(); r != nil {
20627 ec.Error(ctx, ec.Recover(ctx, r))
20628 ret = graphql.Null
20629 }
20630 }()
20631 fc := &graphql.FieldContext{
20632 Object: "StressChaosSpec",
20633 Field: field,
20634 Args: nil,
20635 IsMethod: false,
20636 IsResolver: false,
20637 }
20638
20639 ctx = graphql.WithFieldContext(ctx, fc)
20640 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20641 ctx = rctx
20642 return obj.Value, nil
20643 })
20644 if err != nil {
20645 ec.Error(ctx, err)
20646 return graphql.Null
20647 }
20648 if resTmp == nil {
20649 return graphql.Null
20650 }
20651 res := resTmp.(string)
20652 fc.Result = res
20653 return ec.marshalOString2string(ctx, field.Selections, res)
20654 }
20655
20656 func (ec *executionContext) _StressChaosSpec_stressors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20657 defer func() {
20658 if r := recover(); r != nil {
20659 ec.Error(ctx, ec.Recover(ctx, r))
20660 ret = graphql.Null
20661 }
20662 }()
20663 fc := &graphql.FieldContext{
20664 Object: "StressChaosSpec",
20665 Field: field,
20666 Args: nil,
20667 IsMethod: false,
20668 IsResolver: false,
20669 }
20670
20671 ctx = graphql.WithFieldContext(ctx, fc)
20672 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20673 ctx = rctx
20674 return obj.Stressors, nil
20675 })
20676 if err != nil {
20677 ec.Error(ctx, err)
20678 return graphql.Null
20679 }
20680 if resTmp == nil {
20681 return graphql.Null
20682 }
20683 res := resTmp.(*v1alpha1.Stressors)
20684 fc.Result = res
20685 return ec.marshalOStressors2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressors(ctx, field.Selections, res)
20686 }
20687
20688 func (ec *executionContext) _StressChaosSpec_stressngStressors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20689 defer func() {
20690 if r := recover(); r != nil {
20691 ec.Error(ctx, ec.Recover(ctx, r))
20692 ret = graphql.Null
20693 }
20694 }()
20695 fc := &graphql.FieldContext{
20696 Object: "StressChaosSpec",
20697 Field: field,
20698 Args: nil,
20699 IsMethod: false,
20700 IsResolver: false,
20701 }
20702
20703 ctx = graphql.WithFieldContext(ctx, fc)
20704 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20705 ctx = rctx
20706 return obj.StressngStressors, nil
20707 })
20708 if err != nil {
20709 ec.Error(ctx, err)
20710 return graphql.Null
20711 }
20712 if resTmp == nil {
20713 return graphql.Null
20714 }
20715 res := resTmp.(string)
20716 fc.Result = res
20717 return ec.marshalOString2string(ctx, field.Selections, res)
20718 }
20719
20720 func (ec *executionContext) _StressChaosSpec_duration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosSpec) (ret graphql.Marshaler) {
20721 defer func() {
20722 if r := recover(); r != nil {
20723 ec.Error(ctx, ec.Recover(ctx, r))
20724 ret = graphql.Null
20725 }
20726 }()
20727 fc := &graphql.FieldContext{
20728 Object: "StressChaosSpec",
20729 Field: field,
20730 Args: nil,
20731 IsMethod: false,
20732 IsResolver: false,
20733 }
20734
20735 ctx = graphql.WithFieldContext(ctx, fc)
20736 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20737 ctx = rctx
20738 return obj.Duration, nil
20739 })
20740 if err != nil {
20741 ec.Error(ctx, err)
20742 return graphql.Null
20743 }
20744 if resTmp == nil {
20745 return graphql.Null
20746 }
20747 res := resTmp.(*string)
20748 fc.Result = res
20749 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
20750 }
20751
20752 func (ec *executionContext) _StressChaosStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosStatus) (ret graphql.Marshaler) {
20753 defer func() {
20754 if r := recover(); r != nil {
20755 ec.Error(ctx, ec.Recover(ctx, r))
20756 ret = graphql.Null
20757 }
20758 }()
20759 fc := &graphql.FieldContext{
20760 Object: "StressChaosStatus",
20761 Field: field,
20762 Args: nil,
20763 IsMethod: false,
20764 IsResolver: false,
20765 }
20766
20767 ctx = graphql.WithFieldContext(ctx, fc)
20768 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20769 ctx = rctx
20770 return obj.Conditions, nil
20771 })
20772 if err != nil {
20773 ec.Error(ctx, err)
20774 return graphql.Null
20775 }
20776 if resTmp == nil {
20777 return graphql.Null
20778 }
20779 res := resTmp.([]v1alpha1.ChaosCondition)
20780 fc.Result = res
20781 return ec.marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx, field.Selections, res)
20782 }
20783
20784 func (ec *executionContext) _StressChaosStatus_experiment(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosStatus) (ret graphql.Marshaler) {
20785 defer func() {
20786 if r := recover(); r != nil {
20787 ec.Error(ctx, ec.Recover(ctx, r))
20788 ret = graphql.Null
20789 }
20790 }()
20791 fc := &graphql.FieldContext{
20792 Object: "StressChaosStatus",
20793 Field: field,
20794 Args: nil,
20795 IsMethod: false,
20796 IsResolver: false,
20797 }
20798
20799 ctx = graphql.WithFieldContext(ctx, fc)
20800 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20801 ctx = rctx
20802 return obj.Experiment, nil
20803 })
20804 if err != nil {
20805 ec.Error(ctx, err)
20806 return graphql.Null
20807 }
20808 if resTmp == nil {
20809 return graphql.Null
20810 }
20811 res := resTmp.(v1alpha1.ExperimentStatus)
20812 fc.Result = res
20813 return ec.marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx, field.Selections, res)
20814 }
20815
20816 func (ec *executionContext) _StressChaosStatus_instances(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaosStatus) (ret graphql.Marshaler) {
20817 defer func() {
20818 if r := recover(); r != nil {
20819 ec.Error(ctx, ec.Recover(ctx, r))
20820 ret = graphql.Null
20821 }
20822 }()
20823 fc := &graphql.FieldContext{
20824 Object: "StressChaosStatus",
20825 Field: field,
20826 Args: nil,
20827 IsMethod: true,
20828 IsResolver: true,
20829 }
20830
20831 ctx = graphql.WithFieldContext(ctx, fc)
20832 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20833 ctx = rctx
20834 return ec.resolvers.StressChaosStatus().Instances(rctx, obj)
20835 })
20836 if err != nil {
20837 ec.Error(ctx, err)
20838 return graphql.Null
20839 }
20840 if resTmp == nil {
20841 return graphql.Null
20842 }
20843 res := resTmp.(map[string]interface{})
20844 fc.Result = res
20845 return ec.marshalOMap2map(ctx, field.Selections, res)
20846 }
20847
20848 func (ec *executionContext) _Stressors_memoryStressor(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Stressors) (ret graphql.Marshaler) {
20849 defer func() {
20850 if r := recover(); r != nil {
20851 ec.Error(ctx, ec.Recover(ctx, r))
20852 ret = graphql.Null
20853 }
20854 }()
20855 fc := &graphql.FieldContext{
20856 Object: "Stressors",
20857 Field: field,
20858 Args: nil,
20859 IsMethod: false,
20860 IsResolver: false,
20861 }
20862
20863 ctx = graphql.WithFieldContext(ctx, fc)
20864 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20865 ctx = rctx
20866 return obj.MemoryStressor, nil
20867 })
20868 if err != nil {
20869 ec.Error(ctx, err)
20870 return graphql.Null
20871 }
20872 if resTmp == nil {
20873 return graphql.Null
20874 }
20875 res := resTmp.(*v1alpha1.MemoryStressor)
20876 fc.Result = res
20877 return ec.marshalOMemoryStressor2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐMemoryStressor(ctx, field.Selections, res)
20878 }
20879
20880 func (ec *executionContext) _Stressors_cpuStressor(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Stressors) (ret graphql.Marshaler) {
20881 defer func() {
20882 if r := recover(); r != nil {
20883 ec.Error(ctx, ec.Recover(ctx, r))
20884 ret = graphql.Null
20885 }
20886 }()
20887 fc := &graphql.FieldContext{
20888 Object: "Stressors",
20889 Field: field,
20890 Args: nil,
20891 IsMethod: false,
20892 IsResolver: false,
20893 }
20894
20895 ctx = graphql.WithFieldContext(ctx, fc)
20896 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20897 ctx = rctx
20898 return obj.CPUStressor, nil
20899 })
20900 if err != nil {
20901 ec.Error(ctx, err)
20902 return graphql.Null
20903 }
20904 if resTmp == nil {
20905 return graphql.Null
20906 }
20907 res := resTmp.(*v1alpha1.CPUStressor)
20908 fc.Result = res
20909 return ec.marshalOCPUStressor2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCPUStressor(ctx, field.Selections, res)
20910 }
20911
20912 func (ec *executionContext) _Timespec_sec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Timespec) (ret graphql.Marshaler) {
20913 defer func() {
20914 if r := recover(); r != nil {
20915 ec.Error(ctx, ec.Recover(ctx, r))
20916 ret = graphql.Null
20917 }
20918 }()
20919 fc := &graphql.FieldContext{
20920 Object: "Timespec",
20921 Field: field,
20922 Args: nil,
20923 IsMethod: false,
20924 IsResolver: false,
20925 }
20926
20927 ctx = graphql.WithFieldContext(ctx, fc)
20928 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20929 ctx = rctx
20930 return obj.Sec, nil
20931 })
20932 if err != nil {
20933 ec.Error(ctx, err)
20934 return graphql.Null
20935 }
20936 if resTmp == nil {
20937 if !graphql.HasFieldError(ctx, fc) {
20938 ec.Errorf(ctx, "must not be null")
20939 }
20940 return graphql.Null
20941 }
20942 res := resTmp.(int64)
20943 fc.Result = res
20944 return ec.marshalNInt2int64(ctx, field.Selections, res)
20945 }
20946
20947 func (ec *executionContext) _Timespec_nsec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Timespec) (ret graphql.Marshaler) {
20948 defer func() {
20949 if r := recover(); r != nil {
20950 ec.Error(ctx, ec.Recover(ctx, r))
20951 ret = graphql.Null
20952 }
20953 }()
20954 fc := &graphql.FieldContext{
20955 Object: "Timespec",
20956 Field: field,
20957 Args: nil,
20958 IsMethod: false,
20959 IsResolver: false,
20960 }
20961
20962 ctx = graphql.WithFieldContext(ctx, fc)
20963 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20964 ctx = rctx
20965 return obj.Nsec, nil
20966 })
20967 if err != nil {
20968 ec.Error(ctx, err)
20969 return graphql.Null
20970 }
20971 if resTmp == nil {
20972 if !graphql.HasFieldError(ctx, fc) {
20973 ec.Errorf(ctx, "must not be null")
20974 }
20975 return graphql.Null
20976 }
20977 res := resTmp.(int64)
20978 fc.Result = res
20979 return ec.marshalNInt2int64(ctx, field.Selections, res)
20980 }
20981
20982 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
20983 defer func() {
20984 if r := recover(); r != nil {
20985 ec.Error(ctx, ec.Recover(ctx, r))
20986 ret = graphql.Null
20987 }
20988 }()
20989 fc := &graphql.FieldContext{
20990 Object: "__Directive",
20991 Field: field,
20992 Args: nil,
20993 IsMethod: false,
20994 IsResolver: false,
20995 }
20996
20997 ctx = graphql.WithFieldContext(ctx, fc)
20998 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
20999 ctx = rctx
21000 return obj.Name, nil
21001 })
21002 if err != nil {
21003 ec.Error(ctx, err)
21004 return graphql.Null
21005 }
21006 if resTmp == nil {
21007 if !graphql.HasFieldError(ctx, fc) {
21008 ec.Errorf(ctx, "must not be null")
21009 }
21010 return graphql.Null
21011 }
21012 res := resTmp.(string)
21013 fc.Result = res
21014 return ec.marshalNString2string(ctx, field.Selections, res)
21015 }
21016
21017 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
21018 defer func() {
21019 if r := recover(); r != nil {
21020 ec.Error(ctx, ec.Recover(ctx, r))
21021 ret = graphql.Null
21022 }
21023 }()
21024 fc := &graphql.FieldContext{
21025 Object: "__Directive",
21026 Field: field,
21027 Args: nil,
21028 IsMethod: true,
21029 IsResolver: false,
21030 }
21031
21032 ctx = graphql.WithFieldContext(ctx, fc)
21033 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21034 ctx = rctx
21035 return obj.Description(), nil
21036 })
21037 if err != nil {
21038 ec.Error(ctx, err)
21039 return graphql.Null
21040 }
21041 if resTmp == nil {
21042 return graphql.Null
21043 }
21044 res := resTmp.(*string)
21045 fc.Result = res
21046 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21047 }
21048
21049 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
21050 defer func() {
21051 if r := recover(); r != nil {
21052 ec.Error(ctx, ec.Recover(ctx, r))
21053 ret = graphql.Null
21054 }
21055 }()
21056 fc := &graphql.FieldContext{
21057 Object: "__Directive",
21058 Field: field,
21059 Args: nil,
21060 IsMethod: false,
21061 IsResolver: false,
21062 }
21063
21064 ctx = graphql.WithFieldContext(ctx, fc)
21065 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21066 ctx = rctx
21067 return obj.Locations, nil
21068 })
21069 if err != nil {
21070 ec.Error(ctx, err)
21071 return graphql.Null
21072 }
21073 if resTmp == nil {
21074 if !graphql.HasFieldError(ctx, fc) {
21075 ec.Errorf(ctx, "must not be null")
21076 }
21077 return graphql.Null
21078 }
21079 res := resTmp.([]string)
21080 fc.Result = res
21081 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
21082 }
21083
21084 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
21085 defer func() {
21086 if r := recover(); r != nil {
21087 ec.Error(ctx, ec.Recover(ctx, r))
21088 ret = graphql.Null
21089 }
21090 }()
21091 fc := &graphql.FieldContext{
21092 Object: "__Directive",
21093 Field: field,
21094 Args: nil,
21095 IsMethod: false,
21096 IsResolver: false,
21097 }
21098
21099 ctx = graphql.WithFieldContext(ctx, fc)
21100 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21101 ctx = rctx
21102 return obj.Args, nil
21103 })
21104 if err != nil {
21105 ec.Error(ctx, err)
21106 return graphql.Null
21107 }
21108 if resTmp == nil {
21109 if !graphql.HasFieldError(ctx, fc) {
21110 ec.Errorf(ctx, "must not be null")
21111 }
21112 return graphql.Null
21113 }
21114 res := resTmp.([]introspection.InputValue)
21115 fc.Result = res
21116 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
21117 }
21118
21119 func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
21120 defer func() {
21121 if r := recover(); r != nil {
21122 ec.Error(ctx, ec.Recover(ctx, r))
21123 ret = graphql.Null
21124 }
21125 }()
21126 fc := &graphql.FieldContext{
21127 Object: "__Directive",
21128 Field: field,
21129 Args: nil,
21130 IsMethod: false,
21131 IsResolver: false,
21132 }
21133
21134 ctx = graphql.WithFieldContext(ctx, fc)
21135 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21136 ctx = rctx
21137 return obj.IsRepeatable, nil
21138 })
21139 if err != nil {
21140 ec.Error(ctx, err)
21141 return graphql.Null
21142 }
21143 if resTmp == nil {
21144 if !graphql.HasFieldError(ctx, fc) {
21145 ec.Errorf(ctx, "must not be null")
21146 }
21147 return graphql.Null
21148 }
21149 res := resTmp.(bool)
21150 fc.Result = res
21151 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
21152 }
21153
21154 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
21155 defer func() {
21156 if r := recover(); r != nil {
21157 ec.Error(ctx, ec.Recover(ctx, r))
21158 ret = graphql.Null
21159 }
21160 }()
21161 fc := &graphql.FieldContext{
21162 Object: "__EnumValue",
21163 Field: field,
21164 Args: nil,
21165 IsMethod: false,
21166 IsResolver: false,
21167 }
21168
21169 ctx = graphql.WithFieldContext(ctx, fc)
21170 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21171 ctx = rctx
21172 return obj.Name, nil
21173 })
21174 if err != nil {
21175 ec.Error(ctx, err)
21176 return graphql.Null
21177 }
21178 if resTmp == nil {
21179 if !graphql.HasFieldError(ctx, fc) {
21180 ec.Errorf(ctx, "must not be null")
21181 }
21182 return graphql.Null
21183 }
21184 res := resTmp.(string)
21185 fc.Result = res
21186 return ec.marshalNString2string(ctx, field.Selections, res)
21187 }
21188
21189 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
21190 defer func() {
21191 if r := recover(); r != nil {
21192 ec.Error(ctx, ec.Recover(ctx, r))
21193 ret = graphql.Null
21194 }
21195 }()
21196 fc := &graphql.FieldContext{
21197 Object: "__EnumValue",
21198 Field: field,
21199 Args: nil,
21200 IsMethod: true,
21201 IsResolver: false,
21202 }
21203
21204 ctx = graphql.WithFieldContext(ctx, fc)
21205 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21206 ctx = rctx
21207 return obj.Description(), nil
21208 })
21209 if err != nil {
21210 ec.Error(ctx, err)
21211 return graphql.Null
21212 }
21213 if resTmp == nil {
21214 return graphql.Null
21215 }
21216 res := resTmp.(*string)
21217 fc.Result = res
21218 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21219 }
21220
21221 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
21222 defer func() {
21223 if r := recover(); r != nil {
21224 ec.Error(ctx, ec.Recover(ctx, r))
21225 ret = graphql.Null
21226 }
21227 }()
21228 fc := &graphql.FieldContext{
21229 Object: "__EnumValue",
21230 Field: field,
21231 Args: nil,
21232 IsMethod: true,
21233 IsResolver: false,
21234 }
21235
21236 ctx = graphql.WithFieldContext(ctx, fc)
21237 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21238 ctx = rctx
21239 return obj.IsDeprecated(), nil
21240 })
21241 if err != nil {
21242 ec.Error(ctx, err)
21243 return graphql.Null
21244 }
21245 if resTmp == nil {
21246 if !graphql.HasFieldError(ctx, fc) {
21247 ec.Errorf(ctx, "must not be null")
21248 }
21249 return graphql.Null
21250 }
21251 res := resTmp.(bool)
21252 fc.Result = res
21253 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
21254 }
21255
21256 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
21257 defer func() {
21258 if r := recover(); r != nil {
21259 ec.Error(ctx, ec.Recover(ctx, r))
21260 ret = graphql.Null
21261 }
21262 }()
21263 fc := &graphql.FieldContext{
21264 Object: "__EnumValue",
21265 Field: field,
21266 Args: nil,
21267 IsMethod: true,
21268 IsResolver: false,
21269 }
21270
21271 ctx = graphql.WithFieldContext(ctx, fc)
21272 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21273 ctx = rctx
21274 return obj.DeprecationReason(), nil
21275 })
21276 if err != nil {
21277 ec.Error(ctx, err)
21278 return graphql.Null
21279 }
21280 if resTmp == nil {
21281 return graphql.Null
21282 }
21283 res := resTmp.(*string)
21284 fc.Result = res
21285 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21286 }
21287
21288 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
21289 defer func() {
21290 if r := recover(); r != nil {
21291 ec.Error(ctx, ec.Recover(ctx, r))
21292 ret = graphql.Null
21293 }
21294 }()
21295 fc := &graphql.FieldContext{
21296 Object: "__Field",
21297 Field: field,
21298 Args: nil,
21299 IsMethod: false,
21300 IsResolver: false,
21301 }
21302
21303 ctx = graphql.WithFieldContext(ctx, fc)
21304 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21305 ctx = rctx
21306 return obj.Name, nil
21307 })
21308 if err != nil {
21309 ec.Error(ctx, err)
21310 return graphql.Null
21311 }
21312 if resTmp == nil {
21313 if !graphql.HasFieldError(ctx, fc) {
21314 ec.Errorf(ctx, "must not be null")
21315 }
21316 return graphql.Null
21317 }
21318 res := resTmp.(string)
21319 fc.Result = res
21320 return ec.marshalNString2string(ctx, field.Selections, res)
21321 }
21322
21323 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
21324 defer func() {
21325 if r := recover(); r != nil {
21326 ec.Error(ctx, ec.Recover(ctx, r))
21327 ret = graphql.Null
21328 }
21329 }()
21330 fc := &graphql.FieldContext{
21331 Object: "__Field",
21332 Field: field,
21333 Args: nil,
21334 IsMethod: true,
21335 IsResolver: false,
21336 }
21337
21338 ctx = graphql.WithFieldContext(ctx, fc)
21339 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21340 ctx = rctx
21341 return obj.Description(), nil
21342 })
21343 if err != nil {
21344 ec.Error(ctx, err)
21345 return graphql.Null
21346 }
21347 if resTmp == nil {
21348 return graphql.Null
21349 }
21350 res := resTmp.(*string)
21351 fc.Result = res
21352 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21353 }
21354
21355 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
21356 defer func() {
21357 if r := recover(); r != nil {
21358 ec.Error(ctx, ec.Recover(ctx, r))
21359 ret = graphql.Null
21360 }
21361 }()
21362 fc := &graphql.FieldContext{
21363 Object: "__Field",
21364 Field: field,
21365 Args: nil,
21366 IsMethod: false,
21367 IsResolver: false,
21368 }
21369
21370 ctx = graphql.WithFieldContext(ctx, fc)
21371 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21372 ctx = rctx
21373 return obj.Args, nil
21374 })
21375 if err != nil {
21376 ec.Error(ctx, err)
21377 return graphql.Null
21378 }
21379 if resTmp == nil {
21380 if !graphql.HasFieldError(ctx, fc) {
21381 ec.Errorf(ctx, "must not be null")
21382 }
21383 return graphql.Null
21384 }
21385 res := resTmp.([]introspection.InputValue)
21386 fc.Result = res
21387 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
21388 }
21389
21390 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
21391 defer func() {
21392 if r := recover(); r != nil {
21393 ec.Error(ctx, ec.Recover(ctx, r))
21394 ret = graphql.Null
21395 }
21396 }()
21397 fc := &graphql.FieldContext{
21398 Object: "__Field",
21399 Field: field,
21400 Args: nil,
21401 IsMethod: false,
21402 IsResolver: false,
21403 }
21404
21405 ctx = graphql.WithFieldContext(ctx, fc)
21406 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21407 ctx = rctx
21408 return obj.Type, nil
21409 })
21410 if err != nil {
21411 ec.Error(ctx, err)
21412 return graphql.Null
21413 }
21414 if resTmp == nil {
21415 if !graphql.HasFieldError(ctx, fc) {
21416 ec.Errorf(ctx, "must not be null")
21417 }
21418 return graphql.Null
21419 }
21420 res := resTmp.(*introspection.Type)
21421 fc.Result = res
21422 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
21423 }
21424
21425 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
21426 defer func() {
21427 if r := recover(); r != nil {
21428 ec.Error(ctx, ec.Recover(ctx, r))
21429 ret = graphql.Null
21430 }
21431 }()
21432 fc := &graphql.FieldContext{
21433 Object: "__Field",
21434 Field: field,
21435 Args: nil,
21436 IsMethod: true,
21437 IsResolver: false,
21438 }
21439
21440 ctx = graphql.WithFieldContext(ctx, fc)
21441 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21442 ctx = rctx
21443 return obj.IsDeprecated(), nil
21444 })
21445 if err != nil {
21446 ec.Error(ctx, err)
21447 return graphql.Null
21448 }
21449 if resTmp == nil {
21450 if !graphql.HasFieldError(ctx, fc) {
21451 ec.Errorf(ctx, "must not be null")
21452 }
21453 return graphql.Null
21454 }
21455 res := resTmp.(bool)
21456 fc.Result = res
21457 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
21458 }
21459
21460 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
21461 defer func() {
21462 if r := recover(); r != nil {
21463 ec.Error(ctx, ec.Recover(ctx, r))
21464 ret = graphql.Null
21465 }
21466 }()
21467 fc := &graphql.FieldContext{
21468 Object: "__Field",
21469 Field: field,
21470 Args: nil,
21471 IsMethod: true,
21472 IsResolver: false,
21473 }
21474
21475 ctx = graphql.WithFieldContext(ctx, fc)
21476 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21477 ctx = rctx
21478 return obj.DeprecationReason(), nil
21479 })
21480 if err != nil {
21481 ec.Error(ctx, err)
21482 return graphql.Null
21483 }
21484 if resTmp == nil {
21485 return graphql.Null
21486 }
21487 res := resTmp.(*string)
21488 fc.Result = res
21489 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21490 }
21491
21492 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
21493 defer func() {
21494 if r := recover(); r != nil {
21495 ec.Error(ctx, ec.Recover(ctx, r))
21496 ret = graphql.Null
21497 }
21498 }()
21499 fc := &graphql.FieldContext{
21500 Object: "__InputValue",
21501 Field: field,
21502 Args: nil,
21503 IsMethod: false,
21504 IsResolver: false,
21505 }
21506
21507 ctx = graphql.WithFieldContext(ctx, fc)
21508 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21509 ctx = rctx
21510 return obj.Name, nil
21511 })
21512 if err != nil {
21513 ec.Error(ctx, err)
21514 return graphql.Null
21515 }
21516 if resTmp == nil {
21517 if !graphql.HasFieldError(ctx, fc) {
21518 ec.Errorf(ctx, "must not be null")
21519 }
21520 return graphql.Null
21521 }
21522 res := resTmp.(string)
21523 fc.Result = res
21524 return ec.marshalNString2string(ctx, field.Selections, res)
21525 }
21526
21527 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
21528 defer func() {
21529 if r := recover(); r != nil {
21530 ec.Error(ctx, ec.Recover(ctx, r))
21531 ret = graphql.Null
21532 }
21533 }()
21534 fc := &graphql.FieldContext{
21535 Object: "__InputValue",
21536 Field: field,
21537 Args: nil,
21538 IsMethod: true,
21539 IsResolver: false,
21540 }
21541
21542 ctx = graphql.WithFieldContext(ctx, fc)
21543 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21544 ctx = rctx
21545 return obj.Description(), nil
21546 })
21547 if err != nil {
21548 ec.Error(ctx, err)
21549 return graphql.Null
21550 }
21551 if resTmp == nil {
21552 return graphql.Null
21553 }
21554 res := resTmp.(*string)
21555 fc.Result = res
21556 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21557 }
21558
21559 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
21560 defer func() {
21561 if r := recover(); r != nil {
21562 ec.Error(ctx, ec.Recover(ctx, r))
21563 ret = graphql.Null
21564 }
21565 }()
21566 fc := &graphql.FieldContext{
21567 Object: "__InputValue",
21568 Field: field,
21569 Args: nil,
21570 IsMethod: false,
21571 IsResolver: false,
21572 }
21573
21574 ctx = graphql.WithFieldContext(ctx, fc)
21575 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21576 ctx = rctx
21577 return obj.Type, nil
21578 })
21579 if err != nil {
21580 ec.Error(ctx, err)
21581 return graphql.Null
21582 }
21583 if resTmp == nil {
21584 if !graphql.HasFieldError(ctx, fc) {
21585 ec.Errorf(ctx, "must not be null")
21586 }
21587 return graphql.Null
21588 }
21589 res := resTmp.(*introspection.Type)
21590 fc.Result = res
21591 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
21592 }
21593
21594 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (ret graphql.Marshaler) {
21595 defer func() {
21596 if r := recover(); r != nil {
21597 ec.Error(ctx, ec.Recover(ctx, r))
21598 ret = graphql.Null
21599 }
21600 }()
21601 fc := &graphql.FieldContext{
21602 Object: "__InputValue",
21603 Field: field,
21604 Args: nil,
21605 IsMethod: false,
21606 IsResolver: false,
21607 }
21608
21609 ctx = graphql.WithFieldContext(ctx, fc)
21610 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21611 ctx = rctx
21612 return obj.DefaultValue, nil
21613 })
21614 if err != nil {
21615 ec.Error(ctx, err)
21616 return graphql.Null
21617 }
21618 if resTmp == nil {
21619 return graphql.Null
21620 }
21621 res := resTmp.(*string)
21622 fc.Result = res
21623 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21624 }
21625
21626 func (ec *executionContext) ___Schema_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
21627 defer func() {
21628 if r := recover(); r != nil {
21629 ec.Error(ctx, ec.Recover(ctx, r))
21630 ret = graphql.Null
21631 }
21632 }()
21633 fc := &graphql.FieldContext{
21634 Object: "__Schema",
21635 Field: field,
21636 Args: nil,
21637 IsMethod: true,
21638 IsResolver: false,
21639 }
21640
21641 ctx = graphql.WithFieldContext(ctx, fc)
21642 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21643 ctx = rctx
21644 return obj.Description(), nil
21645 })
21646 if err != nil {
21647 ec.Error(ctx, err)
21648 return graphql.Null
21649 }
21650 if resTmp == nil {
21651 return graphql.Null
21652 }
21653 res := resTmp.(*string)
21654 fc.Result = res
21655 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21656 }
21657
21658 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
21659 defer func() {
21660 if r := recover(); r != nil {
21661 ec.Error(ctx, ec.Recover(ctx, r))
21662 ret = graphql.Null
21663 }
21664 }()
21665 fc := &graphql.FieldContext{
21666 Object: "__Schema",
21667 Field: field,
21668 Args: nil,
21669 IsMethod: true,
21670 IsResolver: false,
21671 }
21672
21673 ctx = graphql.WithFieldContext(ctx, fc)
21674 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21675 ctx = rctx
21676 return obj.Types(), nil
21677 })
21678 if err != nil {
21679 ec.Error(ctx, err)
21680 return graphql.Null
21681 }
21682 if resTmp == nil {
21683 if !graphql.HasFieldError(ctx, fc) {
21684 ec.Errorf(ctx, "must not be null")
21685 }
21686 return graphql.Null
21687 }
21688 res := resTmp.([]introspection.Type)
21689 fc.Result = res
21690 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
21691 }
21692
21693 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
21694 defer func() {
21695 if r := recover(); r != nil {
21696 ec.Error(ctx, ec.Recover(ctx, r))
21697 ret = graphql.Null
21698 }
21699 }()
21700 fc := &graphql.FieldContext{
21701 Object: "__Schema",
21702 Field: field,
21703 Args: nil,
21704 IsMethod: true,
21705 IsResolver: false,
21706 }
21707
21708 ctx = graphql.WithFieldContext(ctx, fc)
21709 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21710 ctx = rctx
21711 return obj.QueryType(), nil
21712 })
21713 if err != nil {
21714 ec.Error(ctx, err)
21715 return graphql.Null
21716 }
21717 if resTmp == nil {
21718 if !graphql.HasFieldError(ctx, fc) {
21719 ec.Errorf(ctx, "must not be null")
21720 }
21721 return graphql.Null
21722 }
21723 res := resTmp.(*introspection.Type)
21724 fc.Result = res
21725 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
21726 }
21727
21728 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
21729 defer func() {
21730 if r := recover(); r != nil {
21731 ec.Error(ctx, ec.Recover(ctx, r))
21732 ret = graphql.Null
21733 }
21734 }()
21735 fc := &graphql.FieldContext{
21736 Object: "__Schema",
21737 Field: field,
21738 Args: nil,
21739 IsMethod: true,
21740 IsResolver: false,
21741 }
21742
21743 ctx = graphql.WithFieldContext(ctx, fc)
21744 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21745 ctx = rctx
21746 return obj.MutationType(), nil
21747 })
21748 if err != nil {
21749 ec.Error(ctx, err)
21750 return graphql.Null
21751 }
21752 if resTmp == nil {
21753 return graphql.Null
21754 }
21755 res := resTmp.(*introspection.Type)
21756 fc.Result = res
21757 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
21758 }
21759
21760 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
21761 defer func() {
21762 if r := recover(); r != nil {
21763 ec.Error(ctx, ec.Recover(ctx, r))
21764 ret = graphql.Null
21765 }
21766 }()
21767 fc := &graphql.FieldContext{
21768 Object: "__Schema",
21769 Field: field,
21770 Args: nil,
21771 IsMethod: true,
21772 IsResolver: false,
21773 }
21774
21775 ctx = graphql.WithFieldContext(ctx, fc)
21776 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21777 ctx = rctx
21778 return obj.SubscriptionType(), nil
21779 })
21780 if err != nil {
21781 ec.Error(ctx, err)
21782 return graphql.Null
21783 }
21784 if resTmp == nil {
21785 return graphql.Null
21786 }
21787 res := resTmp.(*introspection.Type)
21788 fc.Result = res
21789 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
21790 }
21791
21792 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
21793 defer func() {
21794 if r := recover(); r != nil {
21795 ec.Error(ctx, ec.Recover(ctx, r))
21796 ret = graphql.Null
21797 }
21798 }()
21799 fc := &graphql.FieldContext{
21800 Object: "__Schema",
21801 Field: field,
21802 Args: nil,
21803 IsMethod: true,
21804 IsResolver: false,
21805 }
21806
21807 ctx = graphql.WithFieldContext(ctx, fc)
21808 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21809 ctx = rctx
21810 return obj.Directives(), nil
21811 })
21812 if err != nil {
21813 ec.Error(ctx, err)
21814 return graphql.Null
21815 }
21816 if resTmp == nil {
21817 if !graphql.HasFieldError(ctx, fc) {
21818 ec.Errorf(ctx, "must not be null")
21819 }
21820 return graphql.Null
21821 }
21822 res := resTmp.([]introspection.Directive)
21823 fc.Result = res
21824 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
21825 }
21826
21827 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
21828 defer func() {
21829 if r := recover(); r != nil {
21830 ec.Error(ctx, ec.Recover(ctx, r))
21831 ret = graphql.Null
21832 }
21833 }()
21834 fc := &graphql.FieldContext{
21835 Object: "__Type",
21836 Field: field,
21837 Args: nil,
21838 IsMethod: true,
21839 IsResolver: false,
21840 }
21841
21842 ctx = graphql.WithFieldContext(ctx, fc)
21843 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21844 ctx = rctx
21845 return obj.Kind(), nil
21846 })
21847 if err != nil {
21848 ec.Error(ctx, err)
21849 return graphql.Null
21850 }
21851 if resTmp == nil {
21852 if !graphql.HasFieldError(ctx, fc) {
21853 ec.Errorf(ctx, "must not be null")
21854 }
21855 return graphql.Null
21856 }
21857 res := resTmp.(string)
21858 fc.Result = res
21859 return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
21860 }
21861
21862 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
21863 defer func() {
21864 if r := recover(); r != nil {
21865 ec.Error(ctx, ec.Recover(ctx, r))
21866 ret = graphql.Null
21867 }
21868 }()
21869 fc := &graphql.FieldContext{
21870 Object: "__Type",
21871 Field: field,
21872 Args: nil,
21873 IsMethod: true,
21874 IsResolver: false,
21875 }
21876
21877 ctx = graphql.WithFieldContext(ctx, fc)
21878 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21879 ctx = rctx
21880 return obj.Name(), nil
21881 })
21882 if err != nil {
21883 ec.Error(ctx, err)
21884 return graphql.Null
21885 }
21886 if resTmp == nil {
21887 return graphql.Null
21888 }
21889 res := resTmp.(*string)
21890 fc.Result = res
21891 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21892 }
21893
21894 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
21895 defer func() {
21896 if r := recover(); r != nil {
21897 ec.Error(ctx, ec.Recover(ctx, r))
21898 ret = graphql.Null
21899 }
21900 }()
21901 fc := &graphql.FieldContext{
21902 Object: "__Type",
21903 Field: field,
21904 Args: nil,
21905 IsMethod: true,
21906 IsResolver: false,
21907 }
21908
21909 ctx = graphql.WithFieldContext(ctx, fc)
21910 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21911 ctx = rctx
21912 return obj.Description(), nil
21913 })
21914 if err != nil {
21915 ec.Error(ctx, err)
21916 return graphql.Null
21917 }
21918 if resTmp == nil {
21919 return graphql.Null
21920 }
21921 res := resTmp.(*string)
21922 fc.Result = res
21923 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
21924 }
21925
21926 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
21927 defer func() {
21928 if r := recover(); r != nil {
21929 ec.Error(ctx, ec.Recover(ctx, r))
21930 ret = graphql.Null
21931 }
21932 }()
21933 fc := &graphql.FieldContext{
21934 Object: "__Type",
21935 Field: field,
21936 Args: nil,
21937 IsMethod: true,
21938 IsResolver: false,
21939 }
21940
21941 ctx = graphql.WithFieldContext(ctx, fc)
21942 rawArgs := field.ArgumentMap(ec.Variables)
21943 args, err := ec.field___Type_fields_args(ctx, rawArgs)
21944 if err != nil {
21945 ec.Error(ctx, err)
21946 return graphql.Null
21947 }
21948 fc.Args = args
21949 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21950 ctx = rctx
21951 return obj.Fields(args["includeDeprecated"].(bool)), nil
21952 })
21953 if err != nil {
21954 ec.Error(ctx, err)
21955 return graphql.Null
21956 }
21957 if resTmp == nil {
21958 return graphql.Null
21959 }
21960 res := resTmp.([]introspection.Field)
21961 fc.Result = res
21962 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
21963 }
21964
21965 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
21966 defer func() {
21967 if r := recover(); r != nil {
21968 ec.Error(ctx, ec.Recover(ctx, r))
21969 ret = graphql.Null
21970 }
21971 }()
21972 fc := &graphql.FieldContext{
21973 Object: "__Type",
21974 Field: field,
21975 Args: nil,
21976 IsMethod: true,
21977 IsResolver: false,
21978 }
21979
21980 ctx = graphql.WithFieldContext(ctx, fc)
21981 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
21982 ctx = rctx
21983 return obj.Interfaces(), nil
21984 })
21985 if err != nil {
21986 ec.Error(ctx, err)
21987 return graphql.Null
21988 }
21989 if resTmp == nil {
21990 return graphql.Null
21991 }
21992 res := resTmp.([]introspection.Type)
21993 fc.Result = res
21994 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
21995 }
21996
21997 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
21998 defer func() {
21999 if r := recover(); r != nil {
22000 ec.Error(ctx, ec.Recover(ctx, r))
22001 ret = graphql.Null
22002 }
22003 }()
22004 fc := &graphql.FieldContext{
22005 Object: "__Type",
22006 Field: field,
22007 Args: nil,
22008 IsMethod: true,
22009 IsResolver: false,
22010 }
22011
22012 ctx = graphql.WithFieldContext(ctx, fc)
22013 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
22014 ctx = rctx
22015 return obj.PossibleTypes(), nil
22016 })
22017 if err != nil {
22018 ec.Error(ctx, err)
22019 return graphql.Null
22020 }
22021 if resTmp == nil {
22022 return graphql.Null
22023 }
22024 res := resTmp.([]introspection.Type)
22025 fc.Result = res
22026 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
22027 }
22028
22029 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
22030 defer func() {
22031 if r := recover(); r != nil {
22032 ec.Error(ctx, ec.Recover(ctx, r))
22033 ret = graphql.Null
22034 }
22035 }()
22036 fc := &graphql.FieldContext{
22037 Object: "__Type",
22038 Field: field,
22039 Args: nil,
22040 IsMethod: true,
22041 IsResolver: false,
22042 }
22043
22044 ctx = graphql.WithFieldContext(ctx, fc)
22045 rawArgs := field.ArgumentMap(ec.Variables)
22046 args, err := ec.field___Type_enumValues_args(ctx, rawArgs)
22047 if err != nil {
22048 ec.Error(ctx, err)
22049 return graphql.Null
22050 }
22051 fc.Args = args
22052 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
22053 ctx = rctx
22054 return obj.EnumValues(args["includeDeprecated"].(bool)), nil
22055 })
22056 if err != nil {
22057 ec.Error(ctx, err)
22058 return graphql.Null
22059 }
22060 if resTmp == nil {
22061 return graphql.Null
22062 }
22063 res := resTmp.([]introspection.EnumValue)
22064 fc.Result = res
22065 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
22066 }
22067
22068 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
22069 defer func() {
22070 if r := recover(); r != nil {
22071 ec.Error(ctx, ec.Recover(ctx, r))
22072 ret = graphql.Null
22073 }
22074 }()
22075 fc := &graphql.FieldContext{
22076 Object: "__Type",
22077 Field: field,
22078 Args: nil,
22079 IsMethod: true,
22080 IsResolver: false,
22081 }
22082
22083 ctx = graphql.WithFieldContext(ctx, fc)
22084 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
22085 ctx = rctx
22086 return obj.InputFields(), nil
22087 })
22088 if err != nil {
22089 ec.Error(ctx, err)
22090 return graphql.Null
22091 }
22092 if resTmp == nil {
22093 return graphql.Null
22094 }
22095 res := resTmp.([]introspection.InputValue)
22096 fc.Result = res
22097 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
22098 }
22099
22100 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
22101 defer func() {
22102 if r := recover(); r != nil {
22103 ec.Error(ctx, ec.Recover(ctx, r))
22104 ret = graphql.Null
22105 }
22106 }()
22107 fc := &graphql.FieldContext{
22108 Object: "__Type",
22109 Field: field,
22110 Args: nil,
22111 IsMethod: true,
22112 IsResolver: false,
22113 }
22114
22115 ctx = graphql.WithFieldContext(ctx, fc)
22116 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
22117 ctx = rctx
22118 return obj.OfType(), nil
22119 })
22120 if err != nil {
22121 ec.Error(ctx, err)
22122 return graphql.Null
22123 }
22124 if resTmp == nil {
22125 return graphql.Null
22126 }
22127 res := resTmp.(*introspection.Type)
22128 fc.Result = res
22129 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
22130 }
22131
22132 func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
22133 defer func() {
22134 if r := recover(); r != nil {
22135 ec.Error(ctx, ec.Recover(ctx, r))
22136 ret = graphql.Null
22137 }
22138 }()
22139 fc := &graphql.FieldContext{
22140 Object: "__Type",
22141 Field: field,
22142 Args: nil,
22143 IsMethod: true,
22144 IsResolver: false,
22145 }
22146
22147 ctx = graphql.WithFieldContext(ctx, fc)
22148 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
22149 ctx = rctx
22150 return obj.SpecifiedByURL(), nil
22151 })
22152 if err != nil {
22153 ec.Error(ctx, err)
22154 return graphql.Null
22155 }
22156 if resTmp == nil {
22157 return graphql.Null
22158 }
22159 res := resTmp.(*string)
22160 fc.Result = res
22161 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
22162 }
22163
22164
22165
22166
22167
22168 func (ec *executionContext) unmarshalInputPodSelectorInput(ctx context.Context, obj interface{}) (model.PodSelectorInput, error) {
22169 var it model.PodSelectorInput
22170 asMap := map[string]interface{}{}
22171 for k, v := range obj.(map[string]interface{}) {
22172 asMap[k] = v
22173 }
22174
22175 for k, v := range asMap {
22176 switch k {
22177 case "namespaces":
22178 var err error
22179
22180 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("namespaces"))
22181 it.Namespaces, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
22182 if err != nil {
22183 return it, err
22184 }
22185 case "nodes":
22186 var err error
22187
22188 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodes"))
22189 it.Nodes, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
22190 if err != nil {
22191 return it, err
22192 }
22193 case "pods":
22194 var err error
22195
22196 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("pods"))
22197 it.Pods, err = ec.unmarshalOMap2map(ctx, v)
22198 if err != nil {
22199 return it, err
22200 }
22201 case "nodeSelectors":
22202 var err error
22203
22204 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("nodeSelectors"))
22205 it.NodeSelectors, err = ec.unmarshalOMap2map(ctx, v)
22206 if err != nil {
22207 return it, err
22208 }
22209 case "fieldSelectors":
22210 var err error
22211
22212 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("fieldSelectors"))
22213 it.FieldSelectors, err = ec.unmarshalOMap2map(ctx, v)
22214 if err != nil {
22215 return it, err
22216 }
22217 case "labelSelectors":
22218 var err error
22219
22220 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("labelSelectors"))
22221 it.LabelSelectors, err = ec.unmarshalOMap2map(ctx, v)
22222 if err != nil {
22223 return it, err
22224 }
22225 case "annotationSelectors":
22226 var err error
22227
22228 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("annotationSelectors"))
22229 it.AnnotationSelectors, err = ec.unmarshalOMap2map(ctx, v)
22230 if err != nil {
22231 return it, err
22232 }
22233 case "podPhaseSelectors":
22234 var err error
22235
22236 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("podPhaseSelectors"))
22237 it.PodPhaseSelectors, err = ec.unmarshalOString2ᚕstringᚄ(ctx, v)
22238 if err != nil {
22239 return it, err
22240 }
22241 }
22242 }
22243
22244 return it, nil
22245 }
22246
22247
22248
22249
22250
22251
22252
22253
22254
22255 var attrOverrideSpecImplementors = []string{"AttrOverrideSpec"}
22256
22257 func (ec *executionContext) _AttrOverrideSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.AttrOverrideSpec) graphql.Marshaler {
22258 fields := graphql.CollectFields(ec.OperationContext, sel, attrOverrideSpecImplementors)
22259 out := graphql.NewFieldSet(fields)
22260 var invalids uint32
22261 for i, field := range fields {
22262 switch field.Name {
22263 case "__typename":
22264 out.Values[i] = graphql.MarshalString("AttrOverrideSpec")
22265 case "ino":
22266 field := field
22267
22268 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22269 defer func() {
22270 if r := recover(); r != nil {
22271 ec.Error(ctx, ec.Recover(ctx, r))
22272 }
22273 }()
22274 res = ec._AttrOverrideSpec_ino(ctx, field, obj)
22275 return res
22276 }
22277
22278 out.Concurrently(i, func() graphql.Marshaler {
22279 return innerFunc(ctx)
22280
22281 })
22282 case "size":
22283 field := field
22284
22285 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22286 defer func() {
22287 if r := recover(); r != nil {
22288 ec.Error(ctx, ec.Recover(ctx, r))
22289 }
22290 }()
22291 res = ec._AttrOverrideSpec_size(ctx, field, obj)
22292 return res
22293 }
22294
22295 out.Concurrently(i, func() graphql.Marshaler {
22296 return innerFunc(ctx)
22297
22298 })
22299 case "blocks":
22300 field := field
22301
22302 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22303 defer func() {
22304 if r := recover(); r != nil {
22305 ec.Error(ctx, ec.Recover(ctx, r))
22306 }
22307 }()
22308 res = ec._AttrOverrideSpec_blocks(ctx, field, obj)
22309 return res
22310 }
22311
22312 out.Concurrently(i, func() graphql.Marshaler {
22313 return innerFunc(ctx)
22314
22315 })
22316 case "atime":
22317 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22318 return ec._AttrOverrideSpec_atime(ctx, field, obj)
22319 }
22320
22321 out.Values[i] = innerFunc(ctx)
22322
22323 case "mtime":
22324 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22325 return ec._AttrOverrideSpec_mtime(ctx, field, obj)
22326 }
22327
22328 out.Values[i] = innerFunc(ctx)
22329
22330 case "ctime":
22331 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22332 return ec._AttrOverrideSpec_ctime(ctx, field, obj)
22333 }
22334
22335 out.Values[i] = innerFunc(ctx)
22336
22337 case "kind":
22338 field := field
22339
22340 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22341 defer func() {
22342 if r := recover(); r != nil {
22343 ec.Error(ctx, ec.Recover(ctx, r))
22344 }
22345 }()
22346 res = ec._AttrOverrideSpec_kind(ctx, field, obj)
22347 return res
22348 }
22349
22350 out.Concurrently(i, func() graphql.Marshaler {
22351 return innerFunc(ctx)
22352
22353 })
22354 case "perm":
22355 field := field
22356
22357 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22358 defer func() {
22359 if r := recover(); r != nil {
22360 ec.Error(ctx, ec.Recover(ctx, r))
22361 }
22362 }()
22363 res = ec._AttrOverrideSpec_perm(ctx, field, obj)
22364 return res
22365 }
22366
22367 out.Concurrently(i, func() graphql.Marshaler {
22368 return innerFunc(ctx)
22369
22370 })
22371 case "nlink":
22372 field := field
22373
22374 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22375 defer func() {
22376 if r := recover(); r != nil {
22377 ec.Error(ctx, ec.Recover(ctx, r))
22378 }
22379 }()
22380 res = ec._AttrOverrideSpec_nlink(ctx, field, obj)
22381 return res
22382 }
22383
22384 out.Concurrently(i, func() graphql.Marshaler {
22385 return innerFunc(ctx)
22386
22387 })
22388 case "uid":
22389 field := field
22390
22391 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22392 defer func() {
22393 if r := recover(); r != nil {
22394 ec.Error(ctx, ec.Recover(ctx, r))
22395 }
22396 }()
22397 res = ec._AttrOverrideSpec_uid(ctx, field, obj)
22398 return res
22399 }
22400
22401 out.Concurrently(i, func() graphql.Marshaler {
22402 return innerFunc(ctx)
22403
22404 })
22405 case "gid":
22406 field := field
22407
22408 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22409 defer func() {
22410 if r := recover(); r != nil {
22411 ec.Error(ctx, ec.Recover(ctx, r))
22412 }
22413 }()
22414 res = ec._AttrOverrideSpec_gid(ctx, field, obj)
22415 return res
22416 }
22417
22418 out.Concurrently(i, func() graphql.Marshaler {
22419 return innerFunc(ctx)
22420
22421 })
22422 case "rdev":
22423 field := field
22424
22425 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22426 defer func() {
22427 if r := recover(); r != nil {
22428 ec.Error(ctx, ec.Recover(ctx, r))
22429 }
22430 }()
22431 res = ec._AttrOverrideSpec_rdev(ctx, field, obj)
22432 return res
22433 }
22434
22435 out.Concurrently(i, func() graphql.Marshaler {
22436 return innerFunc(ctx)
22437
22438 })
22439 default:
22440 panic("unknown field " + strconv.Quote(field.Name))
22441 }
22442 }
22443 out.Dispatch()
22444 if invalids > 0 {
22445 return graphql.Null
22446 }
22447 return out
22448 }
22449
22450 var bandwidthSpecImplementors = []string{"BandwidthSpec"}
22451
22452 func (ec *executionContext) _BandwidthSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.BandwidthSpec) graphql.Marshaler {
22453 fields := graphql.CollectFields(ec.OperationContext, sel, bandwidthSpecImplementors)
22454 out := graphql.NewFieldSet(fields)
22455 var invalids uint32
22456 for i, field := range fields {
22457 switch field.Name {
22458 case "__typename":
22459 out.Values[i] = graphql.MarshalString("BandwidthSpec")
22460 case "rate":
22461 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22462 return ec._BandwidthSpec_rate(ctx, field, obj)
22463 }
22464
22465 out.Values[i] = innerFunc(ctx)
22466
22467 if out.Values[i] == graphql.Null {
22468 atomic.AddUint32(&invalids, 1)
22469 }
22470 case "limit":
22471 field := field
22472
22473 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22474 defer func() {
22475 if r := recover(); r != nil {
22476 ec.Error(ctx, ec.Recover(ctx, r))
22477 }
22478 }()
22479 res = ec._BandwidthSpec_limit(ctx, field, obj)
22480 if res == graphql.Null {
22481 atomic.AddUint32(&invalids, 1)
22482 }
22483 return res
22484 }
22485
22486 out.Concurrently(i, func() graphql.Marshaler {
22487 return innerFunc(ctx)
22488
22489 })
22490 case "buffer":
22491 field := field
22492
22493 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22494 defer func() {
22495 if r := recover(); r != nil {
22496 ec.Error(ctx, ec.Recover(ctx, r))
22497 }
22498 }()
22499 res = ec._BandwidthSpec_buffer(ctx, field, obj)
22500 if res == graphql.Null {
22501 atomic.AddUint32(&invalids, 1)
22502 }
22503 return res
22504 }
22505
22506 out.Concurrently(i, func() graphql.Marshaler {
22507 return innerFunc(ctx)
22508
22509 })
22510 case "peakrate":
22511 field := field
22512
22513 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22514 defer func() {
22515 if r := recover(); r != nil {
22516 ec.Error(ctx, ec.Recover(ctx, r))
22517 }
22518 }()
22519 res = ec._BandwidthSpec_peakrate(ctx, field, obj)
22520 return res
22521 }
22522
22523 out.Concurrently(i, func() graphql.Marshaler {
22524 return innerFunc(ctx)
22525
22526 })
22527 case "minburst":
22528 field := field
22529
22530 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22531 defer func() {
22532 if r := recover(); r != nil {
22533 ec.Error(ctx, ec.Recover(ctx, r))
22534 }
22535 }()
22536 res = ec._BandwidthSpec_minburst(ctx, field, obj)
22537 return res
22538 }
22539
22540 out.Concurrently(i, func() graphql.Marshaler {
22541 return innerFunc(ctx)
22542
22543 })
22544 default:
22545 panic("unknown field " + strconv.Quote(field.Name))
22546 }
22547 }
22548 out.Dispatch()
22549 if invalids > 0 {
22550 return graphql.Null
22551 }
22552 return out
22553 }
22554
22555 var cPUStressorImplementors = []string{"CPUStressor"}
22556
22557 func (ec *executionContext) _CPUStressor(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.CPUStressor) graphql.Marshaler {
22558 fields := graphql.CollectFields(ec.OperationContext, sel, cPUStressorImplementors)
22559 out := graphql.NewFieldSet(fields)
22560 var invalids uint32
22561 for i, field := range fields {
22562 switch field.Name {
22563 case "__typename":
22564 out.Values[i] = graphql.MarshalString("CPUStressor")
22565 case "workers":
22566 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22567 return ec._CPUStressor_workers(ctx, field, obj)
22568 }
22569
22570 out.Values[i] = innerFunc(ctx)
22571
22572 if out.Values[i] == graphql.Null {
22573 invalids++
22574 }
22575 case "load":
22576 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22577 return ec._CPUStressor_load(ctx, field, obj)
22578 }
22579
22580 out.Values[i] = innerFunc(ctx)
22581
22582 case "options":
22583 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22584 return ec._CPUStressor_options(ctx, field, obj)
22585 }
22586
22587 out.Values[i] = innerFunc(ctx)
22588
22589 default:
22590 panic("unknown field " + strconv.Quote(field.Name))
22591 }
22592 }
22593 out.Dispatch()
22594 if invalids > 0 {
22595 return graphql.Null
22596 }
22597 return out
22598 }
22599
22600 var cgroupsImplementors = []string{"Cgroups"}
22601
22602 func (ec *executionContext) _Cgroups(ctx context.Context, sel ast.SelectionSet, obj *model.Cgroups) graphql.Marshaler {
22603 fields := graphql.CollectFields(ec.OperationContext, sel, cgroupsImplementors)
22604 out := graphql.NewFieldSet(fields)
22605 var invalids uint32
22606 for i, field := range fields {
22607 switch field.Name {
22608 case "__typename":
22609 out.Values[i] = graphql.MarshalString("Cgroups")
22610 case "raw":
22611 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22612 return ec._Cgroups_raw(ctx, field, obj)
22613 }
22614
22615 out.Values[i] = innerFunc(ctx)
22616
22617 if out.Values[i] == graphql.Null {
22618 invalids++
22619 }
22620 case "cpu":
22621 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22622 return ec._Cgroups_cpu(ctx, field, obj)
22623 }
22624
22625 out.Values[i] = innerFunc(ctx)
22626
22627 case "memory":
22628 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22629 return ec._Cgroups_memory(ctx, field, obj)
22630 }
22631
22632 out.Values[i] = innerFunc(ctx)
22633
22634 default:
22635 panic("unknown field " + strconv.Quote(field.Name))
22636 }
22637 }
22638 out.Dispatch()
22639 if invalids > 0 {
22640 return graphql.Null
22641 }
22642 return out
22643 }
22644
22645 var cgroupsCpuImplementors = []string{"CgroupsCpu"}
22646
22647 func (ec *executionContext) _CgroupsCpu(ctx context.Context, sel ast.SelectionSet, obj *model.CgroupsCPU) graphql.Marshaler {
22648 fields := graphql.CollectFields(ec.OperationContext, sel, cgroupsCpuImplementors)
22649 out := graphql.NewFieldSet(fields)
22650 var invalids uint32
22651 for i, field := range fields {
22652 switch field.Name {
22653 case "__typename":
22654 out.Values[i] = graphql.MarshalString("CgroupsCpu")
22655 case "quota":
22656 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22657 return ec._CgroupsCpu_quota(ctx, field, obj)
22658 }
22659
22660 out.Values[i] = innerFunc(ctx)
22661
22662 if out.Values[i] == graphql.Null {
22663 invalids++
22664 }
22665 case "period":
22666 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22667 return ec._CgroupsCpu_period(ctx, field, obj)
22668 }
22669
22670 out.Values[i] = innerFunc(ctx)
22671
22672 if out.Values[i] == graphql.Null {
22673 invalids++
22674 }
22675 default:
22676 panic("unknown field " + strconv.Quote(field.Name))
22677 }
22678 }
22679 out.Dispatch()
22680 if invalids > 0 {
22681 return graphql.Null
22682 }
22683 return out
22684 }
22685
22686 var cgroupsMemoryImplementors = []string{"CgroupsMemory"}
22687
22688 func (ec *executionContext) _CgroupsMemory(ctx context.Context, sel ast.SelectionSet, obj *model.CgroupsMemory) graphql.Marshaler {
22689 fields := graphql.CollectFields(ec.OperationContext, sel, cgroupsMemoryImplementors)
22690 out := graphql.NewFieldSet(fields)
22691 var invalids uint32
22692 for i, field := range fields {
22693 switch field.Name {
22694 case "__typename":
22695 out.Values[i] = graphql.MarshalString("CgroupsMemory")
22696 case "limit":
22697 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22698 return ec._CgroupsMemory_limit(ctx, field, obj)
22699 }
22700
22701 out.Values[i] = innerFunc(ctx)
22702
22703 if out.Values[i] == graphql.Null {
22704 invalids++
22705 }
22706 default:
22707 panic("unknown field " + strconv.Quote(field.Name))
22708 }
22709 }
22710 out.Dispatch()
22711 if invalids > 0 {
22712 return graphql.Null
22713 }
22714 return out
22715 }
22716
22717 var chaosConditionImplementors = []string{"ChaosCondition"}
22718
22719 func (ec *executionContext) _ChaosCondition(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.ChaosCondition) graphql.Marshaler {
22720 fields := graphql.CollectFields(ec.OperationContext, sel, chaosConditionImplementors)
22721 out := graphql.NewFieldSet(fields)
22722 var invalids uint32
22723 for i, field := range fields {
22724 switch field.Name {
22725 case "__typename":
22726 out.Values[i] = graphql.MarshalString("ChaosCondition")
22727 case "type":
22728 field := field
22729
22730 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22731 defer func() {
22732 if r := recover(); r != nil {
22733 ec.Error(ctx, ec.Recover(ctx, r))
22734 }
22735 }()
22736 res = ec._ChaosCondition_type(ctx, field, obj)
22737 if res == graphql.Null {
22738 atomic.AddUint32(&invalids, 1)
22739 }
22740 return res
22741 }
22742
22743 out.Concurrently(i, func() graphql.Marshaler {
22744 return innerFunc(ctx)
22745
22746 })
22747 case "status":
22748 field := field
22749
22750 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22751 defer func() {
22752 if r := recover(); r != nil {
22753 ec.Error(ctx, ec.Recover(ctx, r))
22754 }
22755 }()
22756 res = ec._ChaosCondition_status(ctx, field, obj)
22757 if res == graphql.Null {
22758 atomic.AddUint32(&invalids, 1)
22759 }
22760 return res
22761 }
22762
22763 out.Concurrently(i, func() graphql.Marshaler {
22764 return innerFunc(ctx)
22765
22766 })
22767 case "reason":
22768 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22769 return ec._ChaosCondition_reason(ctx, field, obj)
22770 }
22771
22772 out.Values[i] = innerFunc(ctx)
22773
22774 default:
22775 panic("unknown field " + strconv.Quote(field.Name))
22776 }
22777 }
22778 out.Dispatch()
22779 if invalids > 0 {
22780 return graphql.Null
22781 }
22782 return out
22783 }
22784
22785 var cidrAndPortImplementors = []string{"CidrAndPort"}
22786
22787 func (ec *executionContext) _CidrAndPort(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.CidrAndPort) graphql.Marshaler {
22788 fields := graphql.CollectFields(ec.OperationContext, sel, cidrAndPortImplementors)
22789 out := graphql.NewFieldSet(fields)
22790 var invalids uint32
22791 for i, field := range fields {
22792 switch field.Name {
22793 case "__typename":
22794 out.Values[i] = graphql.MarshalString("CidrAndPort")
22795 case "cidr":
22796 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22797 return ec._CidrAndPort_cidr(ctx, field, obj)
22798 }
22799
22800 out.Values[i] = innerFunc(ctx)
22801
22802 if out.Values[i] == graphql.Null {
22803 atomic.AddUint32(&invalids, 1)
22804 }
22805 case "port":
22806 field := field
22807
22808 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22809 defer func() {
22810 if r := recover(); r != nil {
22811 ec.Error(ctx, ec.Recover(ctx, r))
22812 }
22813 }()
22814 res = ec._CidrAndPort_port(ctx, field, obj)
22815 if res == graphql.Null {
22816 atomic.AddUint32(&invalids, 1)
22817 }
22818 return res
22819 }
22820
22821 out.Concurrently(i, func() graphql.Marshaler {
22822 return innerFunc(ctx)
22823
22824 })
22825 default:
22826 panic("unknown field " + strconv.Quote(field.Name))
22827 }
22828 }
22829 out.Dispatch()
22830 if invalids > 0 {
22831 return graphql.Null
22832 }
22833 return out
22834 }
22835
22836 var containerStateImplementors = []string{"ContainerState"}
22837
22838 func (ec *executionContext) _ContainerState(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerState) graphql.Marshaler {
22839 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateImplementors)
22840 out := graphql.NewFieldSet(fields)
22841 var invalids uint32
22842 for i, field := range fields {
22843 switch field.Name {
22844 case "__typename":
22845 out.Values[i] = graphql.MarshalString("ContainerState")
22846 case "waiting":
22847 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22848 return ec._ContainerState_waiting(ctx, field, obj)
22849 }
22850
22851 out.Values[i] = innerFunc(ctx)
22852
22853 case "running":
22854 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22855 return ec._ContainerState_running(ctx, field, obj)
22856 }
22857
22858 out.Values[i] = innerFunc(ctx)
22859
22860 case "terminated":
22861 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22862 return ec._ContainerState_terminated(ctx, field, obj)
22863 }
22864
22865 out.Values[i] = innerFunc(ctx)
22866
22867 default:
22868 panic("unknown field " + strconv.Quote(field.Name))
22869 }
22870 }
22871 out.Dispatch()
22872 if invalids > 0 {
22873 return graphql.Null
22874 }
22875 return out
22876 }
22877
22878 var containerStateRunningImplementors = []string{"ContainerStateRunning"}
22879
22880 func (ec *executionContext) _ContainerStateRunning(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStateRunning) graphql.Marshaler {
22881 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateRunningImplementors)
22882 out := graphql.NewFieldSet(fields)
22883 var invalids uint32
22884 for i, field := range fields {
22885 switch field.Name {
22886 case "__typename":
22887 out.Values[i] = graphql.MarshalString("ContainerStateRunning")
22888 case "startedAt":
22889 field := field
22890
22891 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22892 defer func() {
22893 if r := recover(); r != nil {
22894 ec.Error(ctx, ec.Recover(ctx, r))
22895 }
22896 }()
22897 res = ec._ContainerStateRunning_startedAt(ctx, field, obj)
22898 return res
22899 }
22900
22901 out.Concurrently(i, func() graphql.Marshaler {
22902 return innerFunc(ctx)
22903
22904 })
22905 default:
22906 panic("unknown field " + strconv.Quote(field.Name))
22907 }
22908 }
22909 out.Dispatch()
22910 if invalids > 0 {
22911 return graphql.Null
22912 }
22913 return out
22914 }
22915
22916 var containerStateTerminatedImplementors = []string{"ContainerStateTerminated"}
22917
22918 func (ec *executionContext) _ContainerStateTerminated(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStateTerminated) graphql.Marshaler {
22919 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateTerminatedImplementors)
22920 out := graphql.NewFieldSet(fields)
22921 var invalids uint32
22922 for i, field := range fields {
22923 switch field.Name {
22924 case "__typename":
22925 out.Values[i] = graphql.MarshalString("ContainerStateTerminated")
22926 case "exitCode":
22927 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22928 return ec._ContainerStateTerminated_exitCode(ctx, field, obj)
22929 }
22930
22931 out.Values[i] = innerFunc(ctx)
22932
22933 if out.Values[i] == graphql.Null {
22934 atomic.AddUint32(&invalids, 1)
22935 }
22936 case "signal":
22937 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22938 return ec._ContainerStateTerminated_signal(ctx, field, obj)
22939 }
22940
22941 out.Values[i] = innerFunc(ctx)
22942
22943 case "reason":
22944 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22945 return ec._ContainerStateTerminated_reason(ctx, field, obj)
22946 }
22947
22948 out.Values[i] = innerFunc(ctx)
22949
22950 case "message":
22951 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22952 return ec._ContainerStateTerminated_message(ctx, field, obj)
22953 }
22954
22955 out.Values[i] = innerFunc(ctx)
22956
22957 case "startedAt":
22958 field := field
22959
22960 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22961 defer func() {
22962 if r := recover(); r != nil {
22963 ec.Error(ctx, ec.Recover(ctx, r))
22964 }
22965 }()
22966 res = ec._ContainerStateTerminated_startedAt(ctx, field, obj)
22967 return res
22968 }
22969
22970 out.Concurrently(i, func() graphql.Marshaler {
22971 return innerFunc(ctx)
22972
22973 })
22974 case "finishedAt":
22975 field := field
22976
22977 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22978 defer func() {
22979 if r := recover(); r != nil {
22980 ec.Error(ctx, ec.Recover(ctx, r))
22981 }
22982 }()
22983 res = ec._ContainerStateTerminated_finishedAt(ctx, field, obj)
22984 return res
22985 }
22986
22987 out.Concurrently(i, func() graphql.Marshaler {
22988 return innerFunc(ctx)
22989
22990 })
22991 case "containerID":
22992 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
22993 return ec._ContainerStateTerminated_containerID(ctx, field, obj)
22994 }
22995
22996 out.Values[i] = innerFunc(ctx)
22997
22998 default:
22999 panic("unknown field " + strconv.Quote(field.Name))
23000 }
23001 }
23002 out.Dispatch()
23003 if invalids > 0 {
23004 return graphql.Null
23005 }
23006 return out
23007 }
23008
23009 var containerStateWaitingImplementors = []string{"ContainerStateWaiting"}
23010
23011 func (ec *executionContext) _ContainerStateWaiting(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStateWaiting) graphql.Marshaler {
23012 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateWaitingImplementors)
23013 out := graphql.NewFieldSet(fields)
23014 var invalids uint32
23015 for i, field := range fields {
23016 switch field.Name {
23017 case "__typename":
23018 out.Values[i] = graphql.MarshalString("ContainerStateWaiting")
23019 case "reason":
23020 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23021 return ec._ContainerStateWaiting_reason(ctx, field, obj)
23022 }
23023
23024 out.Values[i] = innerFunc(ctx)
23025
23026 case "message":
23027 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23028 return ec._ContainerStateWaiting_message(ctx, field, obj)
23029 }
23030
23031 out.Values[i] = innerFunc(ctx)
23032
23033 default:
23034 panic("unknown field " + strconv.Quote(field.Name))
23035 }
23036 }
23037 out.Dispatch()
23038 if invalids > 0 {
23039 return graphql.Null
23040 }
23041 return out
23042 }
23043
23044 var containerStatusImplementors = []string{"ContainerStatus"}
23045
23046 func (ec *executionContext) _ContainerStatus(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStatus) graphql.Marshaler {
23047 fields := graphql.CollectFields(ec.OperationContext, sel, containerStatusImplementors)
23048 out := graphql.NewFieldSet(fields)
23049 var invalids uint32
23050 for i, field := range fields {
23051 switch field.Name {
23052 case "__typename":
23053 out.Values[i] = graphql.MarshalString("ContainerStatus")
23054 case "name":
23055 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23056 return ec._ContainerStatus_name(ctx, field, obj)
23057 }
23058
23059 out.Values[i] = innerFunc(ctx)
23060
23061 if out.Values[i] == graphql.Null {
23062 invalids++
23063 }
23064 case "State":
23065 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23066 return ec._ContainerStatus_State(ctx, field, obj)
23067 }
23068
23069 out.Values[i] = innerFunc(ctx)
23070
23071 case "lastTerminationState":
23072 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23073 return ec._ContainerStatus_lastTerminationState(ctx, field, obj)
23074 }
23075
23076 out.Values[i] = innerFunc(ctx)
23077
23078 case "ready":
23079 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23080 return ec._ContainerStatus_ready(ctx, field, obj)
23081 }
23082
23083 out.Values[i] = innerFunc(ctx)
23084
23085 if out.Values[i] == graphql.Null {
23086 invalids++
23087 }
23088 case "restartCount":
23089 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23090 return ec._ContainerStatus_restartCount(ctx, field, obj)
23091 }
23092
23093 out.Values[i] = innerFunc(ctx)
23094
23095 if out.Values[i] == graphql.Null {
23096 invalids++
23097 }
23098 case "image":
23099 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23100 return ec._ContainerStatus_image(ctx, field, obj)
23101 }
23102
23103 out.Values[i] = innerFunc(ctx)
23104
23105 if out.Values[i] == graphql.Null {
23106 invalids++
23107 }
23108 case "imageID":
23109 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23110 return ec._ContainerStatus_imageID(ctx, field, obj)
23111 }
23112
23113 out.Values[i] = innerFunc(ctx)
23114
23115 if out.Values[i] == graphql.Null {
23116 invalids++
23117 }
23118 case "containerID":
23119 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23120 return ec._ContainerStatus_containerID(ctx, field, obj)
23121 }
23122
23123 out.Values[i] = innerFunc(ctx)
23124
23125 if out.Values[i] == graphql.Null {
23126 invalids++
23127 }
23128 case "started":
23129 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23130 return ec._ContainerStatus_started(ctx, field, obj)
23131 }
23132
23133 out.Values[i] = innerFunc(ctx)
23134
23135 default:
23136 panic("unknown field " + strconv.Quote(field.Name))
23137 }
23138 }
23139 out.Dispatch()
23140 if invalids > 0 {
23141 return graphql.Null
23142 }
23143 return out
23144 }
23145
23146 var corruptSpecImplementors = []string{"CorruptSpec"}
23147
23148 func (ec *executionContext) _CorruptSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.CorruptSpec) graphql.Marshaler {
23149 fields := graphql.CollectFields(ec.OperationContext, sel, corruptSpecImplementors)
23150 out := graphql.NewFieldSet(fields)
23151 var invalids uint32
23152 for i, field := range fields {
23153 switch field.Name {
23154 case "__typename":
23155 out.Values[i] = graphql.MarshalString("CorruptSpec")
23156 case "corrupt":
23157 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23158 return ec._CorruptSpec_corrupt(ctx, field, obj)
23159 }
23160
23161 out.Values[i] = innerFunc(ctx)
23162
23163 if out.Values[i] == graphql.Null {
23164 invalids++
23165 }
23166 case "correlation":
23167 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23168 return ec._CorruptSpec_correlation(ctx, field, obj)
23169 }
23170
23171 out.Values[i] = innerFunc(ctx)
23172
23173 default:
23174 panic("unknown field " + strconv.Quote(field.Name))
23175 }
23176 }
23177 out.Dispatch()
23178 if invalids > 0 {
23179 return graphql.Null
23180 }
23181 return out
23182 }
23183
23184 var delaySpecImplementors = []string{"DelaySpec"}
23185
23186 func (ec *executionContext) _DelaySpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.DelaySpec) graphql.Marshaler {
23187 fields := graphql.CollectFields(ec.OperationContext, sel, delaySpecImplementors)
23188 out := graphql.NewFieldSet(fields)
23189 var invalids uint32
23190 for i, field := range fields {
23191 switch field.Name {
23192 case "__typename":
23193 out.Values[i] = graphql.MarshalString("DelaySpec")
23194 case "latency":
23195 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23196 return ec._DelaySpec_latency(ctx, field, obj)
23197 }
23198
23199 out.Values[i] = innerFunc(ctx)
23200
23201 if out.Values[i] == graphql.Null {
23202 invalids++
23203 }
23204 case "correlation":
23205 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23206 return ec._DelaySpec_correlation(ctx, field, obj)
23207 }
23208
23209 out.Values[i] = innerFunc(ctx)
23210
23211 case "jitter":
23212 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23213 return ec._DelaySpec_jitter(ctx, field, obj)
23214 }
23215
23216 out.Values[i] = innerFunc(ctx)
23217
23218 case "reorder":
23219 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23220 return ec._DelaySpec_reorder(ctx, field, obj)
23221 }
23222
23223 out.Values[i] = innerFunc(ctx)
23224
23225 default:
23226 panic("unknown field " + strconv.Quote(field.Name))
23227 }
23228 }
23229 out.Dispatch()
23230 if invalids > 0 {
23231 return graphql.Null
23232 }
23233 return out
23234 }
23235
23236 var duplicateSpecImplementors = []string{"DuplicateSpec"}
23237
23238 func (ec *executionContext) _DuplicateSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.DuplicateSpec) graphql.Marshaler {
23239 fields := graphql.CollectFields(ec.OperationContext, sel, duplicateSpecImplementors)
23240 out := graphql.NewFieldSet(fields)
23241 var invalids uint32
23242 for i, field := range fields {
23243 switch field.Name {
23244 case "__typename":
23245 out.Values[i] = graphql.MarshalString("DuplicateSpec")
23246 case "duplicate":
23247 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23248 return ec._DuplicateSpec_duplicate(ctx, field, obj)
23249 }
23250
23251 out.Values[i] = innerFunc(ctx)
23252
23253 if out.Values[i] == graphql.Null {
23254 invalids++
23255 }
23256 case "correlation":
23257 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23258 return ec._DuplicateSpec_correlation(ctx, field, obj)
23259 }
23260
23261 out.Values[i] = innerFunc(ctx)
23262
23263 default:
23264 panic("unknown field " + strconv.Quote(field.Name))
23265 }
23266 }
23267 out.Dispatch()
23268 if invalids > 0 {
23269 return graphql.Null
23270 }
23271 return out
23272 }
23273
23274 var experimentStatusImplementors = []string{"ExperimentStatus"}
23275
23276 func (ec *executionContext) _ExperimentStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.ExperimentStatus) graphql.Marshaler {
23277 fields := graphql.CollectFields(ec.OperationContext, sel, experimentStatusImplementors)
23278 out := graphql.NewFieldSet(fields)
23279 var invalids uint32
23280 for i, field := range fields {
23281 switch field.Name {
23282 case "__typename":
23283 out.Values[i] = graphql.MarshalString("ExperimentStatus")
23284 case "desiredPhase":
23285 field := field
23286
23287 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23288 defer func() {
23289 if r := recover(); r != nil {
23290 ec.Error(ctx, ec.Recover(ctx, r))
23291 }
23292 }()
23293 res = ec._ExperimentStatus_desiredPhase(ctx, field, obj)
23294 if res == graphql.Null {
23295 atomic.AddUint32(&invalids, 1)
23296 }
23297 return res
23298 }
23299
23300 out.Concurrently(i, func() graphql.Marshaler {
23301 return innerFunc(ctx)
23302
23303 })
23304 case "Records":
23305 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23306 return ec._ExperimentStatus_Records(ctx, field, obj)
23307 }
23308
23309 out.Values[i] = innerFunc(ctx)
23310
23311 default:
23312 panic("unknown field " + strconv.Quote(field.Name))
23313 }
23314 }
23315 out.Dispatch()
23316 if invalids > 0 {
23317 return graphql.Null
23318 }
23319 return out
23320 }
23321
23322 var fdImplementors = []string{"Fd"}
23323
23324 func (ec *executionContext) _Fd(ctx context.Context, sel ast.SelectionSet, obj *model.Fd) graphql.Marshaler {
23325 fields := graphql.CollectFields(ec.OperationContext, sel, fdImplementors)
23326 out := graphql.NewFieldSet(fields)
23327 var invalids uint32
23328 for i, field := range fields {
23329 switch field.Name {
23330 case "__typename":
23331 out.Values[i] = graphql.MarshalString("Fd")
23332 case "fd":
23333 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23334 return ec._Fd_fd(ctx, field, obj)
23335 }
23336
23337 out.Values[i] = innerFunc(ctx)
23338
23339 if out.Values[i] == graphql.Null {
23340 invalids++
23341 }
23342 case "target":
23343 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23344 return ec._Fd_target(ctx, field, obj)
23345 }
23346
23347 out.Values[i] = innerFunc(ctx)
23348
23349 if out.Values[i] == graphql.Null {
23350 invalids++
23351 }
23352 default:
23353 panic("unknown field " + strconv.Quote(field.Name))
23354 }
23355 }
23356 out.Dispatch()
23357 if invalids > 0 {
23358 return graphql.Null
23359 }
23360 return out
23361 }
23362
23363 var hTTPChaosImplementors = []string{"HTTPChaos"}
23364
23365 func (ec *executionContext) _HTTPChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.HTTPChaos) graphql.Marshaler {
23366 fields := graphql.CollectFields(ec.OperationContext, sel, hTTPChaosImplementors)
23367 out := graphql.NewFieldSet(fields)
23368 var invalids uint32
23369 for i, field := range fields {
23370 switch field.Name {
23371 case "__typename":
23372 out.Values[i] = graphql.MarshalString("HTTPChaos")
23373 case "kind":
23374 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23375 return ec._HTTPChaos_kind(ctx, field, obj)
23376 }
23377
23378 out.Values[i] = innerFunc(ctx)
23379
23380 if out.Values[i] == graphql.Null {
23381 atomic.AddUint32(&invalids, 1)
23382 }
23383 case "apiVersion":
23384 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23385 return ec._HTTPChaos_apiVersion(ctx, field, obj)
23386 }
23387
23388 out.Values[i] = innerFunc(ctx)
23389
23390 if out.Values[i] == graphql.Null {
23391 atomic.AddUint32(&invalids, 1)
23392 }
23393 case "name":
23394 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23395 return ec._HTTPChaos_name(ctx, field, obj)
23396 }
23397
23398 out.Values[i] = innerFunc(ctx)
23399
23400 if out.Values[i] == graphql.Null {
23401 atomic.AddUint32(&invalids, 1)
23402 }
23403 case "generateName":
23404 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23405 return ec._HTTPChaos_generateName(ctx, field, obj)
23406 }
23407
23408 out.Values[i] = innerFunc(ctx)
23409
23410 if out.Values[i] == graphql.Null {
23411 atomic.AddUint32(&invalids, 1)
23412 }
23413 case "namespace":
23414 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23415 return ec._HTTPChaos_namespace(ctx, field, obj)
23416 }
23417
23418 out.Values[i] = innerFunc(ctx)
23419
23420 if out.Values[i] == graphql.Null {
23421 atomic.AddUint32(&invalids, 1)
23422 }
23423 case "selfLink":
23424 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23425 return ec._HTTPChaos_selfLink(ctx, field, obj)
23426 }
23427
23428 out.Values[i] = innerFunc(ctx)
23429
23430 if out.Values[i] == graphql.Null {
23431 atomic.AddUint32(&invalids, 1)
23432 }
23433 case "uid":
23434 field := field
23435
23436 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23437 defer func() {
23438 if r := recover(); r != nil {
23439 ec.Error(ctx, ec.Recover(ctx, r))
23440 }
23441 }()
23442 res = ec._HTTPChaos_uid(ctx, field, obj)
23443 if res == graphql.Null {
23444 atomic.AddUint32(&invalids, 1)
23445 }
23446 return res
23447 }
23448
23449 out.Concurrently(i, func() graphql.Marshaler {
23450 return innerFunc(ctx)
23451
23452 })
23453 case "resourceVersion":
23454 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23455 return ec._HTTPChaos_resourceVersion(ctx, field, obj)
23456 }
23457
23458 out.Values[i] = innerFunc(ctx)
23459
23460 if out.Values[i] == graphql.Null {
23461 atomic.AddUint32(&invalids, 1)
23462 }
23463 case "generation":
23464 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23465 return ec._HTTPChaos_generation(ctx, field, obj)
23466 }
23467
23468 out.Values[i] = innerFunc(ctx)
23469
23470 if out.Values[i] == graphql.Null {
23471 atomic.AddUint32(&invalids, 1)
23472 }
23473 case "creationTimestamp":
23474 field := field
23475
23476 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23477 defer func() {
23478 if r := recover(); r != nil {
23479 ec.Error(ctx, ec.Recover(ctx, r))
23480 }
23481 }()
23482 res = ec._HTTPChaos_creationTimestamp(ctx, field, obj)
23483 if res == graphql.Null {
23484 atomic.AddUint32(&invalids, 1)
23485 }
23486 return res
23487 }
23488
23489 out.Concurrently(i, func() graphql.Marshaler {
23490 return innerFunc(ctx)
23491
23492 })
23493 case "deletionTimestamp":
23494 field := field
23495
23496 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23497 defer func() {
23498 if r := recover(); r != nil {
23499 ec.Error(ctx, ec.Recover(ctx, r))
23500 }
23501 }()
23502 res = ec._HTTPChaos_deletionTimestamp(ctx, field, obj)
23503 return res
23504 }
23505
23506 out.Concurrently(i, func() graphql.Marshaler {
23507 return innerFunc(ctx)
23508
23509 })
23510 case "deletionGracePeriodSeconds":
23511 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23512 return ec._HTTPChaos_deletionGracePeriodSeconds(ctx, field, obj)
23513 }
23514
23515 out.Values[i] = innerFunc(ctx)
23516
23517 case "labels":
23518 field := field
23519
23520 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23521 defer func() {
23522 if r := recover(); r != nil {
23523 ec.Error(ctx, ec.Recover(ctx, r))
23524 }
23525 }()
23526 res = ec._HTTPChaos_labels(ctx, field, obj)
23527 return res
23528 }
23529
23530 out.Concurrently(i, func() graphql.Marshaler {
23531 return innerFunc(ctx)
23532
23533 })
23534 case "annotations":
23535 field := field
23536
23537 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23538 defer func() {
23539 if r := recover(); r != nil {
23540 ec.Error(ctx, ec.Recover(ctx, r))
23541 }
23542 }()
23543 res = ec._HTTPChaos_annotations(ctx, field, obj)
23544 return res
23545 }
23546
23547 out.Concurrently(i, func() graphql.Marshaler {
23548 return innerFunc(ctx)
23549
23550 })
23551 case "ownerReferences":
23552 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23553 return ec._HTTPChaos_ownerReferences(ctx, field, obj)
23554 }
23555
23556 out.Values[i] = innerFunc(ctx)
23557
23558 case "finalizers":
23559 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23560 return ec._HTTPChaos_finalizers(ctx, field, obj)
23561 }
23562
23563 out.Values[i] = innerFunc(ctx)
23564
23565 case "spec":
23566 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23567 return ec._HTTPChaos_spec(ctx, field, obj)
23568 }
23569
23570 out.Values[i] = innerFunc(ctx)
23571
23572 if out.Values[i] == graphql.Null {
23573 atomic.AddUint32(&invalids, 1)
23574 }
23575 case "status":
23576 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23577 return ec._HTTPChaos_status(ctx, field, obj)
23578 }
23579
23580 out.Values[i] = innerFunc(ctx)
23581
23582 if out.Values[i] == graphql.Null {
23583 atomic.AddUint32(&invalids, 1)
23584 }
23585 case "podhttp":
23586 field := field
23587
23588 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23589 defer func() {
23590 if r := recover(); r != nil {
23591 ec.Error(ctx, ec.Recover(ctx, r))
23592 }
23593 }()
23594 res = ec._HTTPChaos_podhttp(ctx, field, obj)
23595 return res
23596 }
23597
23598 out.Concurrently(i, func() graphql.Marshaler {
23599 return innerFunc(ctx)
23600
23601 })
23602 default:
23603 panic("unknown field " + strconv.Quote(field.Name))
23604 }
23605 }
23606 out.Dispatch()
23607 if invalids > 0 {
23608 return graphql.Null
23609 }
23610 return out
23611 }
23612
23613 var hTTPChaosSpecImplementors = []string{"HTTPChaosSpec"}
23614
23615 func (ec *executionContext) _HTTPChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.HTTPChaosSpec) graphql.Marshaler {
23616 fields := graphql.CollectFields(ec.OperationContext, sel, hTTPChaosSpecImplementors)
23617 out := graphql.NewFieldSet(fields)
23618 var invalids uint32
23619 for i, field := range fields {
23620 switch field.Name {
23621 case "__typename":
23622 out.Values[i] = graphql.MarshalString("HTTPChaosSpec")
23623 case "selector":
23624 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23625 return ec._HTTPChaosSpec_selector(ctx, field, obj)
23626 }
23627
23628 out.Values[i] = innerFunc(ctx)
23629
23630 if out.Values[i] == graphql.Null {
23631 atomic.AddUint32(&invalids, 1)
23632 }
23633 case "mode":
23634 field := field
23635
23636 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23637 defer func() {
23638 if r := recover(); r != nil {
23639 ec.Error(ctx, ec.Recover(ctx, r))
23640 }
23641 }()
23642 res = ec._HTTPChaosSpec_mode(ctx, field, obj)
23643 if res == graphql.Null {
23644 atomic.AddUint32(&invalids, 1)
23645 }
23646 return res
23647 }
23648
23649 out.Concurrently(i, func() graphql.Marshaler {
23650 return innerFunc(ctx)
23651
23652 })
23653 case "value":
23654 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23655 return ec._HTTPChaosSpec_value(ctx, field, obj)
23656 }
23657
23658 out.Values[i] = innerFunc(ctx)
23659
23660 case "target":
23661 field := field
23662
23663 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23664 defer func() {
23665 if r := recover(); r != nil {
23666 ec.Error(ctx, ec.Recover(ctx, r))
23667 }
23668 }()
23669 res = ec._HTTPChaosSpec_target(ctx, field, obj)
23670 if res == graphql.Null {
23671 atomic.AddUint32(&invalids, 1)
23672 }
23673 return res
23674 }
23675
23676 out.Concurrently(i, func() graphql.Marshaler {
23677 return innerFunc(ctx)
23678
23679 })
23680 case "abort":
23681 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23682 return ec._HTTPChaosSpec_abort(ctx, field, obj)
23683 }
23684
23685 out.Values[i] = innerFunc(ctx)
23686
23687 case "delay":
23688 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23689 return ec._HTTPChaosSpec_delay(ctx, field, obj)
23690 }
23691
23692 out.Values[i] = innerFunc(ctx)
23693
23694 case "replace":
23695 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23696 return ec._HTTPChaosSpec_replace(ctx, field, obj)
23697 }
23698
23699 out.Values[i] = innerFunc(ctx)
23700
23701 case "patch":
23702 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23703 return ec._HTTPChaosSpec_patch(ctx, field, obj)
23704 }
23705
23706 out.Values[i] = innerFunc(ctx)
23707
23708 case "port":
23709 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23710 return ec._HTTPChaosSpec_port(ctx, field, obj)
23711 }
23712
23713 out.Values[i] = innerFunc(ctx)
23714
23715 case "path":
23716 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23717 return ec._HTTPChaosSpec_path(ctx, field, obj)
23718 }
23719
23720 out.Values[i] = innerFunc(ctx)
23721
23722 case "method":
23723 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23724 return ec._HTTPChaosSpec_method(ctx, field, obj)
23725 }
23726
23727 out.Values[i] = innerFunc(ctx)
23728
23729 case "code":
23730 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23731 return ec._HTTPChaosSpec_code(ctx, field, obj)
23732 }
23733
23734 out.Values[i] = innerFunc(ctx)
23735
23736 case "requestHeaders":
23737 field := field
23738
23739 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23740 defer func() {
23741 if r := recover(); r != nil {
23742 ec.Error(ctx, ec.Recover(ctx, r))
23743 }
23744 }()
23745 res = ec._HTTPChaosSpec_requestHeaders(ctx, field, obj)
23746 return res
23747 }
23748
23749 out.Concurrently(i, func() graphql.Marshaler {
23750 return innerFunc(ctx)
23751
23752 })
23753 case "responseHeaders":
23754 field := field
23755
23756 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23757 defer func() {
23758 if r := recover(); r != nil {
23759 ec.Error(ctx, ec.Recover(ctx, r))
23760 }
23761 }()
23762 res = ec._HTTPChaosSpec_responseHeaders(ctx, field, obj)
23763 return res
23764 }
23765
23766 out.Concurrently(i, func() graphql.Marshaler {
23767 return innerFunc(ctx)
23768
23769 })
23770 case "duration":
23771 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23772 return ec._HTTPChaosSpec_duration(ctx, field, obj)
23773 }
23774
23775 out.Values[i] = innerFunc(ctx)
23776
23777 default:
23778 panic("unknown field " + strconv.Quote(field.Name))
23779 }
23780 }
23781 out.Dispatch()
23782 if invalids > 0 {
23783 return graphql.Null
23784 }
23785 return out
23786 }
23787
23788 var hTTPChaosStatusImplementors = []string{"HTTPChaosStatus"}
23789
23790 func (ec *executionContext) _HTTPChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.HTTPChaosStatus) graphql.Marshaler {
23791 fields := graphql.CollectFields(ec.OperationContext, sel, hTTPChaosStatusImplementors)
23792 out := graphql.NewFieldSet(fields)
23793 var invalids uint32
23794 for i, field := range fields {
23795 switch field.Name {
23796 case "__typename":
23797 out.Values[i] = graphql.MarshalString("HTTPChaosStatus")
23798 case "conditions":
23799 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23800 return ec._HTTPChaosStatus_conditions(ctx, field, obj)
23801 }
23802
23803 out.Values[i] = innerFunc(ctx)
23804
23805 case "experiment":
23806 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23807 return ec._HTTPChaosStatus_experiment(ctx, field, obj)
23808 }
23809
23810 out.Values[i] = innerFunc(ctx)
23811
23812 case "instances":
23813 field := field
23814
23815 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23816 defer func() {
23817 if r := recover(); r != nil {
23818 ec.Error(ctx, ec.Recover(ctx, r))
23819 }
23820 }()
23821 res = ec._HTTPChaosStatus_instances(ctx, field, obj)
23822 return res
23823 }
23824
23825 out.Concurrently(i, func() graphql.Marshaler {
23826 return innerFunc(ctx)
23827
23828 })
23829 default:
23830 panic("unknown field " + strconv.Quote(field.Name))
23831 }
23832 }
23833 out.Dispatch()
23834 if invalids > 0 {
23835 return graphql.Null
23836 }
23837 return out
23838 }
23839
23840 var iOChaosImplementors = []string{"IOChaos"}
23841
23842 func (ec *executionContext) _IOChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaos) graphql.Marshaler {
23843 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosImplementors)
23844 out := graphql.NewFieldSet(fields)
23845 var invalids uint32
23846 for i, field := range fields {
23847 switch field.Name {
23848 case "__typename":
23849 out.Values[i] = graphql.MarshalString("IOChaos")
23850 case "kind":
23851 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23852 return ec._IOChaos_kind(ctx, field, obj)
23853 }
23854
23855 out.Values[i] = innerFunc(ctx)
23856
23857 if out.Values[i] == graphql.Null {
23858 atomic.AddUint32(&invalids, 1)
23859 }
23860 case "apiVersion":
23861 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23862 return ec._IOChaos_apiVersion(ctx, field, obj)
23863 }
23864
23865 out.Values[i] = innerFunc(ctx)
23866
23867 if out.Values[i] == graphql.Null {
23868 atomic.AddUint32(&invalids, 1)
23869 }
23870 case "name":
23871 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23872 return ec._IOChaos_name(ctx, field, obj)
23873 }
23874
23875 out.Values[i] = innerFunc(ctx)
23876
23877 if out.Values[i] == graphql.Null {
23878 atomic.AddUint32(&invalids, 1)
23879 }
23880 case "generateName":
23881 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23882 return ec._IOChaos_generateName(ctx, field, obj)
23883 }
23884
23885 out.Values[i] = innerFunc(ctx)
23886
23887 if out.Values[i] == graphql.Null {
23888 atomic.AddUint32(&invalids, 1)
23889 }
23890 case "namespace":
23891 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23892 return ec._IOChaos_namespace(ctx, field, obj)
23893 }
23894
23895 out.Values[i] = innerFunc(ctx)
23896
23897 if out.Values[i] == graphql.Null {
23898 atomic.AddUint32(&invalids, 1)
23899 }
23900 case "selfLink":
23901 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23902 return ec._IOChaos_selfLink(ctx, field, obj)
23903 }
23904
23905 out.Values[i] = innerFunc(ctx)
23906
23907 if out.Values[i] == graphql.Null {
23908 atomic.AddUint32(&invalids, 1)
23909 }
23910 case "uid":
23911 field := field
23912
23913 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23914 defer func() {
23915 if r := recover(); r != nil {
23916 ec.Error(ctx, ec.Recover(ctx, r))
23917 }
23918 }()
23919 res = ec._IOChaos_uid(ctx, field, obj)
23920 if res == graphql.Null {
23921 atomic.AddUint32(&invalids, 1)
23922 }
23923 return res
23924 }
23925
23926 out.Concurrently(i, func() graphql.Marshaler {
23927 return innerFunc(ctx)
23928
23929 })
23930 case "resourceVersion":
23931 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23932 return ec._IOChaos_resourceVersion(ctx, field, obj)
23933 }
23934
23935 out.Values[i] = innerFunc(ctx)
23936
23937 if out.Values[i] == graphql.Null {
23938 atomic.AddUint32(&invalids, 1)
23939 }
23940 case "generation":
23941 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23942 return ec._IOChaos_generation(ctx, field, obj)
23943 }
23944
23945 out.Values[i] = innerFunc(ctx)
23946
23947 if out.Values[i] == graphql.Null {
23948 atomic.AddUint32(&invalids, 1)
23949 }
23950 case "creationTimestamp":
23951 field := field
23952
23953 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23954 defer func() {
23955 if r := recover(); r != nil {
23956 ec.Error(ctx, ec.Recover(ctx, r))
23957 }
23958 }()
23959 res = ec._IOChaos_creationTimestamp(ctx, field, obj)
23960 if res == graphql.Null {
23961 atomic.AddUint32(&invalids, 1)
23962 }
23963 return res
23964 }
23965
23966 out.Concurrently(i, func() graphql.Marshaler {
23967 return innerFunc(ctx)
23968
23969 })
23970 case "deletionTimestamp":
23971 field := field
23972
23973 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23974 defer func() {
23975 if r := recover(); r != nil {
23976 ec.Error(ctx, ec.Recover(ctx, r))
23977 }
23978 }()
23979 res = ec._IOChaos_deletionTimestamp(ctx, field, obj)
23980 return res
23981 }
23982
23983 out.Concurrently(i, func() graphql.Marshaler {
23984 return innerFunc(ctx)
23985
23986 })
23987 case "deletionGracePeriodSeconds":
23988 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23989 return ec._IOChaos_deletionGracePeriodSeconds(ctx, field, obj)
23990 }
23991
23992 out.Values[i] = innerFunc(ctx)
23993
23994 case "labels":
23995 field := field
23996
23997 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
23998 defer func() {
23999 if r := recover(); r != nil {
24000 ec.Error(ctx, ec.Recover(ctx, r))
24001 }
24002 }()
24003 res = ec._IOChaos_labels(ctx, field, obj)
24004 return res
24005 }
24006
24007 out.Concurrently(i, func() graphql.Marshaler {
24008 return innerFunc(ctx)
24009
24010 })
24011 case "annotations":
24012 field := field
24013
24014 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24015 defer func() {
24016 if r := recover(); r != nil {
24017 ec.Error(ctx, ec.Recover(ctx, r))
24018 }
24019 }()
24020 res = ec._IOChaos_annotations(ctx, field, obj)
24021 return res
24022 }
24023
24024 out.Concurrently(i, func() graphql.Marshaler {
24025 return innerFunc(ctx)
24026
24027 })
24028 case "ownerReferences":
24029 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24030 return ec._IOChaos_ownerReferences(ctx, field, obj)
24031 }
24032
24033 out.Values[i] = innerFunc(ctx)
24034
24035 case "finalizers":
24036 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24037 return ec._IOChaos_finalizers(ctx, field, obj)
24038 }
24039
24040 out.Values[i] = innerFunc(ctx)
24041
24042 case "spec":
24043 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24044 return ec._IOChaos_spec(ctx, field, obj)
24045 }
24046
24047 out.Values[i] = innerFunc(ctx)
24048
24049 if out.Values[i] == graphql.Null {
24050 atomic.AddUint32(&invalids, 1)
24051 }
24052 case "status":
24053 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24054 return ec._IOChaos_status(ctx, field, obj)
24055 }
24056
24057 out.Values[i] = innerFunc(ctx)
24058
24059 if out.Values[i] == graphql.Null {
24060 atomic.AddUint32(&invalids, 1)
24061 }
24062 case "podios":
24063 field := field
24064
24065 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24066 defer func() {
24067 if r := recover(); r != nil {
24068 ec.Error(ctx, ec.Recover(ctx, r))
24069 }
24070 }()
24071 res = ec._IOChaos_podios(ctx, field, obj)
24072 return res
24073 }
24074
24075 out.Concurrently(i, func() graphql.Marshaler {
24076 return innerFunc(ctx)
24077
24078 })
24079 default:
24080 panic("unknown field " + strconv.Quote(field.Name))
24081 }
24082 }
24083 out.Dispatch()
24084 if invalids > 0 {
24085 return graphql.Null
24086 }
24087 return out
24088 }
24089
24090 var iOChaosActionImplementors = []string{"IOChaosAction"}
24091
24092 func (ec *executionContext) _IOChaosAction(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaosAction) graphql.Marshaler {
24093 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosActionImplementors)
24094 out := graphql.NewFieldSet(fields)
24095 var invalids uint32
24096 for i, field := range fields {
24097 switch field.Name {
24098 case "__typename":
24099 out.Values[i] = graphql.MarshalString("IOChaosAction")
24100 case "type":
24101 field := field
24102
24103 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24104 defer func() {
24105 if r := recover(); r != nil {
24106 ec.Error(ctx, ec.Recover(ctx, r))
24107 }
24108 }()
24109 res = ec._IOChaosAction_type(ctx, field, obj)
24110 if res == graphql.Null {
24111 atomic.AddUint32(&invalids, 1)
24112 }
24113 return res
24114 }
24115
24116 out.Concurrently(i, func() graphql.Marshaler {
24117 return innerFunc(ctx)
24118
24119 })
24120 case "path":
24121 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24122 return ec._IOChaosAction_path(ctx, field, obj)
24123 }
24124
24125 out.Values[i] = innerFunc(ctx)
24126
24127 if out.Values[i] == graphql.Null {
24128 atomic.AddUint32(&invalids, 1)
24129 }
24130 case "methods":
24131 field := field
24132
24133 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24134 defer func() {
24135 if r := recover(); r != nil {
24136 ec.Error(ctx, ec.Recover(ctx, r))
24137 }
24138 }()
24139 res = ec._IOChaosAction_methods(ctx, field, obj)
24140 return res
24141 }
24142
24143 out.Concurrently(i, func() graphql.Marshaler {
24144 return innerFunc(ctx)
24145
24146 })
24147 case "percent":
24148 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24149 return ec._IOChaosAction_percent(ctx, field, obj)
24150 }
24151
24152 out.Values[i] = innerFunc(ctx)
24153
24154 case "faults":
24155 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24156 return ec._IOChaosAction_faults(ctx, field, obj)
24157 }
24158
24159 out.Values[i] = innerFunc(ctx)
24160
24161 case "latency":
24162 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24163 return ec._IOChaosAction_latency(ctx, field, obj)
24164 }
24165
24166 out.Values[i] = innerFunc(ctx)
24167
24168 case "ino":
24169 field := field
24170
24171 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24172 defer func() {
24173 if r := recover(); r != nil {
24174 ec.Error(ctx, ec.Recover(ctx, r))
24175 }
24176 }()
24177 res = ec._IOChaosAction_ino(ctx, field, obj)
24178 return res
24179 }
24180
24181 out.Concurrently(i, func() graphql.Marshaler {
24182 return innerFunc(ctx)
24183
24184 })
24185 case "size":
24186 field := field
24187
24188 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24189 defer func() {
24190 if r := recover(); r != nil {
24191 ec.Error(ctx, ec.Recover(ctx, r))
24192 }
24193 }()
24194 res = ec._IOChaosAction_size(ctx, field, obj)
24195 return res
24196 }
24197
24198 out.Concurrently(i, func() graphql.Marshaler {
24199 return innerFunc(ctx)
24200
24201 })
24202 case "blocks":
24203 field := field
24204
24205 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24206 defer func() {
24207 if r := recover(); r != nil {
24208 ec.Error(ctx, ec.Recover(ctx, r))
24209 }
24210 }()
24211 res = ec._IOChaosAction_blocks(ctx, field, obj)
24212 return res
24213 }
24214
24215 out.Concurrently(i, func() graphql.Marshaler {
24216 return innerFunc(ctx)
24217
24218 })
24219 case "atime":
24220 field := field
24221
24222 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24223 defer func() {
24224 if r := recover(); r != nil {
24225 ec.Error(ctx, ec.Recover(ctx, r))
24226 }
24227 }()
24228 res = ec._IOChaosAction_atime(ctx, field, obj)
24229 return res
24230 }
24231
24232 out.Concurrently(i, func() graphql.Marshaler {
24233 return innerFunc(ctx)
24234
24235 })
24236 case "mtime":
24237 field := field
24238
24239 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24240 defer func() {
24241 if r := recover(); r != nil {
24242 ec.Error(ctx, ec.Recover(ctx, r))
24243 }
24244 }()
24245 res = ec._IOChaosAction_mtime(ctx, field, obj)
24246 return res
24247 }
24248
24249 out.Concurrently(i, func() graphql.Marshaler {
24250 return innerFunc(ctx)
24251
24252 })
24253 case "ctime":
24254 field := field
24255
24256 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24257 defer func() {
24258 if r := recover(); r != nil {
24259 ec.Error(ctx, ec.Recover(ctx, r))
24260 }
24261 }()
24262 res = ec._IOChaosAction_ctime(ctx, field, obj)
24263 return res
24264 }
24265
24266 out.Concurrently(i, func() graphql.Marshaler {
24267 return innerFunc(ctx)
24268
24269 })
24270 case "kind":
24271 field := field
24272
24273 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24274 defer func() {
24275 if r := recover(); r != nil {
24276 ec.Error(ctx, ec.Recover(ctx, r))
24277 }
24278 }()
24279 res = ec._IOChaosAction_kind(ctx, field, obj)
24280 return res
24281 }
24282
24283 out.Concurrently(i, func() graphql.Marshaler {
24284 return innerFunc(ctx)
24285
24286 })
24287 case "perm":
24288 field := field
24289
24290 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24291 defer func() {
24292 if r := recover(); r != nil {
24293 ec.Error(ctx, ec.Recover(ctx, r))
24294 }
24295 }()
24296 res = ec._IOChaosAction_perm(ctx, field, obj)
24297 return res
24298 }
24299
24300 out.Concurrently(i, func() graphql.Marshaler {
24301 return innerFunc(ctx)
24302
24303 })
24304 case "nlink":
24305 field := field
24306
24307 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24308 defer func() {
24309 if r := recover(); r != nil {
24310 ec.Error(ctx, ec.Recover(ctx, r))
24311 }
24312 }()
24313 res = ec._IOChaosAction_nlink(ctx, field, obj)
24314 return res
24315 }
24316
24317 out.Concurrently(i, func() graphql.Marshaler {
24318 return innerFunc(ctx)
24319
24320 })
24321 case "uid":
24322 field := field
24323
24324 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24325 defer func() {
24326 if r := recover(); r != nil {
24327 ec.Error(ctx, ec.Recover(ctx, r))
24328 }
24329 }()
24330 res = ec._IOChaosAction_uid(ctx, field, obj)
24331 return res
24332 }
24333
24334 out.Concurrently(i, func() graphql.Marshaler {
24335 return innerFunc(ctx)
24336
24337 })
24338 case "gid":
24339 field := field
24340
24341 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24342 defer func() {
24343 if r := recover(); r != nil {
24344 ec.Error(ctx, ec.Recover(ctx, r))
24345 }
24346 }()
24347 res = ec._IOChaosAction_gid(ctx, field, obj)
24348 return res
24349 }
24350
24351 out.Concurrently(i, func() graphql.Marshaler {
24352 return innerFunc(ctx)
24353
24354 })
24355 case "rdev":
24356 field := field
24357
24358 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24359 defer func() {
24360 if r := recover(); r != nil {
24361 ec.Error(ctx, ec.Recover(ctx, r))
24362 }
24363 }()
24364 res = ec._IOChaosAction_rdev(ctx, field, obj)
24365 return res
24366 }
24367
24368 out.Concurrently(i, func() graphql.Marshaler {
24369 return innerFunc(ctx)
24370
24371 })
24372 case "filling":
24373 field := field
24374
24375 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24376 defer func() {
24377 if r := recover(); r != nil {
24378 ec.Error(ctx, ec.Recover(ctx, r))
24379 }
24380 }()
24381 res = ec._IOChaosAction_filling(ctx, field, obj)
24382 return res
24383 }
24384
24385 out.Concurrently(i, func() graphql.Marshaler {
24386 return innerFunc(ctx)
24387
24388 })
24389 case "maxOccurrences":
24390 field := field
24391
24392 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24393 defer func() {
24394 if r := recover(); r != nil {
24395 ec.Error(ctx, ec.Recover(ctx, r))
24396 }
24397 }()
24398 res = ec._IOChaosAction_maxOccurrences(ctx, field, obj)
24399 return res
24400 }
24401
24402 out.Concurrently(i, func() graphql.Marshaler {
24403 return innerFunc(ctx)
24404
24405 })
24406 case "maxLength":
24407 field := field
24408
24409 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24410 defer func() {
24411 if r := recover(); r != nil {
24412 ec.Error(ctx, ec.Recover(ctx, r))
24413 }
24414 }()
24415 res = ec._IOChaosAction_maxLength(ctx, field, obj)
24416 return res
24417 }
24418
24419 out.Concurrently(i, func() graphql.Marshaler {
24420 return innerFunc(ctx)
24421
24422 })
24423 case "source":
24424 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24425 return ec._IOChaosAction_source(ctx, field, obj)
24426 }
24427
24428 out.Values[i] = innerFunc(ctx)
24429
24430 if out.Values[i] == graphql.Null {
24431 atomic.AddUint32(&invalids, 1)
24432 }
24433 default:
24434 panic("unknown field " + strconv.Quote(field.Name))
24435 }
24436 }
24437 out.Dispatch()
24438 if invalids > 0 {
24439 return graphql.Null
24440 }
24441 return out
24442 }
24443
24444 var iOChaosSpecImplementors = []string{"IOChaosSpec"}
24445
24446 func (ec *executionContext) _IOChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaosSpec) graphql.Marshaler {
24447 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosSpecImplementors)
24448 out := graphql.NewFieldSet(fields)
24449 var invalids uint32
24450 for i, field := range fields {
24451 switch field.Name {
24452 case "__typename":
24453 out.Values[i] = graphql.MarshalString("IOChaosSpec")
24454 case "containerNames":
24455 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24456 return ec._IOChaosSpec_containerNames(ctx, field, obj)
24457 }
24458
24459 out.Values[i] = innerFunc(ctx)
24460
24461 case "selector":
24462 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24463 return ec._IOChaosSpec_selector(ctx, field, obj)
24464 }
24465
24466 out.Values[i] = innerFunc(ctx)
24467
24468 if out.Values[i] == graphql.Null {
24469 atomic.AddUint32(&invalids, 1)
24470 }
24471 case "mode":
24472 field := field
24473
24474 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24475 defer func() {
24476 if r := recover(); r != nil {
24477 ec.Error(ctx, ec.Recover(ctx, r))
24478 }
24479 }()
24480 res = ec._IOChaosSpec_mode(ctx, field, obj)
24481 if res == graphql.Null {
24482 atomic.AddUint32(&invalids, 1)
24483 }
24484 return res
24485 }
24486
24487 out.Concurrently(i, func() graphql.Marshaler {
24488 return innerFunc(ctx)
24489
24490 })
24491 case "value":
24492 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24493 return ec._IOChaosSpec_value(ctx, field, obj)
24494 }
24495
24496 out.Values[i] = innerFunc(ctx)
24497
24498 case "action":
24499 field := field
24500
24501 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24502 defer func() {
24503 if r := recover(); r != nil {
24504 ec.Error(ctx, ec.Recover(ctx, r))
24505 }
24506 }()
24507 res = ec._IOChaosSpec_action(ctx, field, obj)
24508 if res == graphql.Null {
24509 atomic.AddUint32(&invalids, 1)
24510 }
24511 return res
24512 }
24513
24514 out.Concurrently(i, func() graphql.Marshaler {
24515 return innerFunc(ctx)
24516
24517 })
24518 case "delay":
24519 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24520 return ec._IOChaosSpec_delay(ctx, field, obj)
24521 }
24522
24523 out.Values[i] = innerFunc(ctx)
24524
24525 case "errno":
24526 field := field
24527
24528 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24529 defer func() {
24530 if r := recover(); r != nil {
24531 ec.Error(ctx, ec.Recover(ctx, r))
24532 }
24533 }()
24534 res = ec._IOChaosSpec_errno(ctx, field, obj)
24535 return res
24536 }
24537
24538 out.Concurrently(i, func() graphql.Marshaler {
24539 return innerFunc(ctx)
24540
24541 })
24542 case "attr":
24543 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24544 return ec._IOChaosSpec_attr(ctx, field, obj)
24545 }
24546
24547 out.Values[i] = innerFunc(ctx)
24548
24549 case "mistake":
24550 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24551 return ec._IOChaosSpec_mistake(ctx, field, obj)
24552 }
24553
24554 out.Values[i] = innerFunc(ctx)
24555
24556 case "path":
24557 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24558 return ec._IOChaosSpec_path(ctx, field, obj)
24559 }
24560
24561 out.Values[i] = innerFunc(ctx)
24562
24563 case "methods":
24564 field := field
24565
24566 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24567 defer func() {
24568 if r := recover(); r != nil {
24569 ec.Error(ctx, ec.Recover(ctx, r))
24570 }
24571 }()
24572 res = ec._IOChaosSpec_methods(ctx, field, obj)
24573 return res
24574 }
24575
24576 out.Concurrently(i, func() graphql.Marshaler {
24577 return innerFunc(ctx)
24578
24579 })
24580 case "percent":
24581 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24582 return ec._IOChaosSpec_percent(ctx, field, obj)
24583 }
24584
24585 out.Values[i] = innerFunc(ctx)
24586
24587 case "volumePath":
24588 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24589 return ec._IOChaosSpec_volumePath(ctx, field, obj)
24590 }
24591
24592 out.Values[i] = innerFunc(ctx)
24593
24594 if out.Values[i] == graphql.Null {
24595 atomic.AddUint32(&invalids, 1)
24596 }
24597 case "duration":
24598 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24599 return ec._IOChaosSpec_duration(ctx, field, obj)
24600 }
24601
24602 out.Values[i] = innerFunc(ctx)
24603
24604 default:
24605 panic("unknown field " + strconv.Quote(field.Name))
24606 }
24607 }
24608 out.Dispatch()
24609 if invalids > 0 {
24610 return graphql.Null
24611 }
24612 return out
24613 }
24614
24615 var iOChaosStatusImplementors = []string{"IOChaosStatus"}
24616
24617 func (ec *executionContext) _IOChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaosStatus) graphql.Marshaler {
24618 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosStatusImplementors)
24619 out := graphql.NewFieldSet(fields)
24620 var invalids uint32
24621 for i, field := range fields {
24622 switch field.Name {
24623 case "__typename":
24624 out.Values[i] = graphql.MarshalString("IOChaosStatus")
24625 case "conditions":
24626 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24627 return ec._IOChaosStatus_conditions(ctx, field, obj)
24628 }
24629
24630 out.Values[i] = innerFunc(ctx)
24631
24632 case "experiment":
24633 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24634 return ec._IOChaosStatus_experiment(ctx, field, obj)
24635 }
24636
24637 out.Values[i] = innerFunc(ctx)
24638
24639 case "instances":
24640 field := field
24641
24642 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24643 defer func() {
24644 if r := recover(); r != nil {
24645 ec.Error(ctx, ec.Recover(ctx, r))
24646 }
24647 }()
24648 res = ec._IOChaosStatus_instances(ctx, field, obj)
24649 return res
24650 }
24651
24652 out.Concurrently(i, func() graphql.Marshaler {
24653 return innerFunc(ctx)
24654
24655 })
24656 default:
24657 panic("unknown field " + strconv.Quote(field.Name))
24658 }
24659 }
24660 out.Dispatch()
24661 if invalids > 0 {
24662 return graphql.Null
24663 }
24664 return out
24665 }
24666
24667 var ioFaultImplementors = []string{"IoFault"}
24668
24669 func (ec *executionContext) _IoFault(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IoFault) graphql.Marshaler {
24670 fields := graphql.CollectFields(ec.OperationContext, sel, ioFaultImplementors)
24671 out := graphql.NewFieldSet(fields)
24672 var invalids uint32
24673 for i, field := range fields {
24674 switch field.Name {
24675 case "__typename":
24676 out.Values[i] = graphql.MarshalString("IoFault")
24677 case "errno":
24678 field := field
24679
24680 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24681 defer func() {
24682 if r := recover(); r != nil {
24683 ec.Error(ctx, ec.Recover(ctx, r))
24684 }
24685 }()
24686 res = ec._IoFault_errno(ctx, field, obj)
24687 if res == graphql.Null {
24688 atomic.AddUint32(&invalids, 1)
24689 }
24690 return res
24691 }
24692
24693 out.Concurrently(i, func() graphql.Marshaler {
24694 return innerFunc(ctx)
24695
24696 })
24697 case "weight":
24698 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24699 return ec._IoFault_weight(ctx, field, obj)
24700 }
24701
24702 out.Values[i] = innerFunc(ctx)
24703
24704 if out.Values[i] == graphql.Null {
24705 atomic.AddUint32(&invalids, 1)
24706 }
24707 default:
24708 panic("unknown field " + strconv.Quote(field.Name))
24709 }
24710 }
24711 out.Dispatch()
24712 if invalids > 0 {
24713 return graphql.Null
24714 }
24715 return out
24716 }
24717
24718 var killProcessResultImplementors = []string{"KillProcessResult"}
24719
24720 func (ec *executionContext) _KillProcessResult(ctx context.Context, sel ast.SelectionSet, obj *model.KillProcessResult) graphql.Marshaler {
24721 fields := graphql.CollectFields(ec.OperationContext, sel, killProcessResultImplementors)
24722 out := graphql.NewFieldSet(fields)
24723 var invalids uint32
24724 for i, field := range fields {
24725 switch field.Name {
24726 case "__typename":
24727 out.Values[i] = graphql.MarshalString("KillProcessResult")
24728 case "pid":
24729 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24730 return ec._KillProcessResult_pid(ctx, field, obj)
24731 }
24732
24733 out.Values[i] = innerFunc(ctx)
24734
24735 if out.Values[i] == graphql.Null {
24736 invalids++
24737 }
24738 case "command":
24739 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24740 return ec._KillProcessResult_command(ctx, field, obj)
24741 }
24742
24743 out.Values[i] = innerFunc(ctx)
24744
24745 if out.Values[i] == graphql.Null {
24746 invalids++
24747 }
24748 default:
24749 panic("unknown field " + strconv.Quote(field.Name))
24750 }
24751 }
24752 out.Dispatch()
24753 if invalids > 0 {
24754 return graphql.Null
24755 }
24756 return out
24757 }
24758
24759 var loggerImplementors = []string{"Logger"}
24760
24761 func (ec *executionContext) _Logger(ctx context.Context, sel ast.SelectionSet) func() graphql.Marshaler {
24762 fields := graphql.CollectFields(ec.OperationContext, sel, loggerImplementors)
24763 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
24764 Object: "Logger",
24765 })
24766 if len(fields) != 1 {
24767 ec.Errorf(ctx, "must subscribe to exactly one stream")
24768 return nil
24769 }
24770
24771 switch fields[0].Name {
24772 case "component":
24773 return ec._Logger_component(ctx, fields[0])
24774 case "pod":
24775 return ec._Logger_pod(ctx, fields[0])
24776 default:
24777 panic("unknown field " + strconv.Quote(fields[0].Name))
24778 }
24779 }
24780
24781 var lossSpecImplementors = []string{"LossSpec"}
24782
24783 func (ec *executionContext) _LossSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.LossSpec) graphql.Marshaler {
24784 fields := graphql.CollectFields(ec.OperationContext, sel, lossSpecImplementors)
24785 out := graphql.NewFieldSet(fields)
24786 var invalids uint32
24787 for i, field := range fields {
24788 switch field.Name {
24789 case "__typename":
24790 out.Values[i] = graphql.MarshalString("LossSpec")
24791 case "loss":
24792 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24793 return ec._LossSpec_loss(ctx, field, obj)
24794 }
24795
24796 out.Values[i] = innerFunc(ctx)
24797
24798 if out.Values[i] == graphql.Null {
24799 invalids++
24800 }
24801 case "correlation":
24802 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24803 return ec._LossSpec_correlation(ctx, field, obj)
24804 }
24805
24806 out.Values[i] = innerFunc(ctx)
24807
24808 default:
24809 panic("unknown field " + strconv.Quote(field.Name))
24810 }
24811 }
24812 out.Dispatch()
24813 if invalids > 0 {
24814 return graphql.Null
24815 }
24816 return out
24817 }
24818
24819 var memoryStressorImplementors = []string{"MemoryStressor"}
24820
24821 func (ec *executionContext) _MemoryStressor(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.MemoryStressor) graphql.Marshaler {
24822 fields := graphql.CollectFields(ec.OperationContext, sel, memoryStressorImplementors)
24823 out := graphql.NewFieldSet(fields)
24824 var invalids uint32
24825 for i, field := range fields {
24826 switch field.Name {
24827 case "__typename":
24828 out.Values[i] = graphql.MarshalString("MemoryStressor")
24829 case "workers":
24830 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24831 return ec._MemoryStressor_workers(ctx, field, obj)
24832 }
24833
24834 out.Values[i] = innerFunc(ctx)
24835
24836 if out.Values[i] == graphql.Null {
24837 invalids++
24838 }
24839 case "size":
24840 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24841 return ec._MemoryStressor_size(ctx, field, obj)
24842 }
24843
24844 out.Values[i] = innerFunc(ctx)
24845
24846 case "options":
24847 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24848 return ec._MemoryStressor_options(ctx, field, obj)
24849 }
24850
24851 out.Values[i] = innerFunc(ctx)
24852
24853 default:
24854 panic("unknown field " + strconv.Quote(field.Name))
24855 }
24856 }
24857 out.Dispatch()
24858 if invalids > 0 {
24859 return graphql.Null
24860 }
24861 return out
24862 }
24863
24864 var mistakeSpecImplementors = []string{"MistakeSpec"}
24865
24866 func (ec *executionContext) _MistakeSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.MistakeSpec) graphql.Marshaler {
24867 fields := graphql.CollectFields(ec.OperationContext, sel, mistakeSpecImplementors)
24868 out := graphql.NewFieldSet(fields)
24869 var invalids uint32
24870 for i, field := range fields {
24871 switch field.Name {
24872 case "__typename":
24873 out.Values[i] = graphql.MarshalString("MistakeSpec")
24874 case "filling":
24875 field := field
24876
24877 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24878 defer func() {
24879 if r := recover(); r != nil {
24880 ec.Error(ctx, ec.Recover(ctx, r))
24881 }
24882 }()
24883 res = ec._MistakeSpec_filling(ctx, field, obj)
24884 return res
24885 }
24886
24887 out.Concurrently(i, func() graphql.Marshaler {
24888 return innerFunc(ctx)
24889
24890 })
24891 case "maxOccurrences":
24892 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24893 return ec._MistakeSpec_maxOccurrences(ctx, field, obj)
24894 }
24895
24896 out.Values[i] = innerFunc(ctx)
24897
24898 case "maxLength":
24899 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24900 return ec._MistakeSpec_maxLength(ctx, field, obj)
24901 }
24902
24903 out.Values[i] = innerFunc(ctx)
24904
24905 default:
24906 panic("unknown field " + strconv.Quote(field.Name))
24907 }
24908 }
24909 out.Dispatch()
24910 if invalids > 0 {
24911 return graphql.Null
24912 }
24913 return out
24914 }
24915
24916 var mutablePodImplementors = []string{"MutablePod"}
24917
24918 func (ec *executionContext) _MutablePod(ctx context.Context, sel ast.SelectionSet, obj *model.MutablePod) graphql.Marshaler {
24919 fields := graphql.CollectFields(ec.OperationContext, sel, mutablePodImplementors)
24920 out := graphql.NewFieldSet(fields)
24921 var invalids uint32
24922 for i, field := range fields {
24923 switch field.Name {
24924 case "__typename":
24925 out.Values[i] = graphql.MarshalString("MutablePod")
24926 case "pod":
24927 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24928 return ec._MutablePod_pod(ctx, field, obj)
24929 }
24930
24931 out.Values[i] = innerFunc(ctx)
24932
24933 if out.Values[i] == graphql.Null {
24934 atomic.AddUint32(&invalids, 1)
24935 }
24936 case "killProcesses":
24937 field := field
24938
24939 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24940 defer func() {
24941 if r := recover(); r != nil {
24942 ec.Error(ctx, ec.Recover(ctx, r))
24943 }
24944 }()
24945 res = ec._MutablePod_killProcesses(ctx, field, obj)
24946 return res
24947 }
24948
24949 out.Concurrently(i, func() graphql.Marshaler {
24950 return innerFunc(ctx)
24951
24952 })
24953 case "cleanTcs":
24954 field := field
24955
24956 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24957 defer func() {
24958 if r := recover(); r != nil {
24959 ec.Error(ctx, ec.Recover(ctx, r))
24960 }
24961 }()
24962 res = ec._MutablePod_cleanTcs(ctx, field, obj)
24963 return res
24964 }
24965
24966 out.Concurrently(i, func() graphql.Marshaler {
24967 return innerFunc(ctx)
24968
24969 })
24970 case "cleanIptables":
24971 field := field
24972
24973 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
24974 defer func() {
24975 if r := recover(); r != nil {
24976 ec.Error(ctx, ec.Recover(ctx, r))
24977 }
24978 }()
24979 res = ec._MutablePod_cleanIptables(ctx, field, obj)
24980 return res
24981 }
24982
24983 out.Concurrently(i, func() graphql.Marshaler {
24984 return innerFunc(ctx)
24985
24986 })
24987 default:
24988 panic("unknown field " + strconv.Quote(field.Name))
24989 }
24990 }
24991 out.Dispatch()
24992 if invalids > 0 {
24993 return graphql.Null
24994 }
24995 return out
24996 }
24997
24998 var mutationImplementors = []string{"Mutation"}
24999
25000 func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
25001 fields := graphql.CollectFields(ec.OperationContext, sel, mutationImplementors)
25002 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
25003 Object: "Mutation",
25004 })
25005
25006 out := graphql.NewFieldSet(fields)
25007 var invalids uint32
25008 for i, field := range fields {
25009 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
25010 Object: field.Name,
25011 Field: field,
25012 })
25013
25014 switch field.Name {
25015 case "__typename":
25016 out.Values[i] = graphql.MarshalString("Mutation")
25017 case "pod":
25018 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25019 return ec._Mutation_pod(ctx, field)
25020 }
25021
25022 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
25023
25024 default:
25025 panic("unknown field " + strconv.Quote(field.Name))
25026 }
25027 }
25028 out.Dispatch()
25029 if invalids > 0 {
25030 return graphql.Null
25031 }
25032 return out
25033 }
25034
25035 var namespaceImplementors = []string{"Namespace"}
25036
25037 func (ec *executionContext) _Namespace(ctx context.Context, sel ast.SelectionSet, obj *model.Namespace) graphql.Marshaler {
25038 fields := graphql.CollectFields(ec.OperationContext, sel, namespaceImplementors)
25039 out := graphql.NewFieldSet(fields)
25040 var invalids uint32
25041 for i, field := range fields {
25042 switch field.Name {
25043 case "__typename":
25044 out.Values[i] = graphql.MarshalString("Namespace")
25045 case "ns":
25046 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25047 return ec._Namespace_ns(ctx, field, obj)
25048 }
25049
25050 out.Values[i] = innerFunc(ctx)
25051
25052 if out.Values[i] == graphql.Null {
25053 atomic.AddUint32(&invalids, 1)
25054 }
25055 case "component":
25056 field := field
25057
25058 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25059 defer func() {
25060 if r := recover(); r != nil {
25061 ec.Error(ctx, ec.Recover(ctx, r))
25062 }
25063 }()
25064 res = ec._Namespace_component(ctx, field, obj)
25065 return res
25066 }
25067
25068 out.Concurrently(i, func() graphql.Marshaler {
25069 return innerFunc(ctx)
25070
25071 })
25072 case "pod":
25073 field := field
25074
25075 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25076 defer func() {
25077 if r := recover(); r != nil {
25078 ec.Error(ctx, ec.Recover(ctx, r))
25079 }
25080 }()
25081 res = ec._Namespace_pod(ctx, field, obj)
25082 return res
25083 }
25084
25085 out.Concurrently(i, func() graphql.Marshaler {
25086 return innerFunc(ctx)
25087
25088 })
25089 case "stresschaos":
25090 field := field
25091
25092 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25093 defer func() {
25094 if r := recover(); r != nil {
25095 ec.Error(ctx, ec.Recover(ctx, r))
25096 }
25097 }()
25098 res = ec._Namespace_stresschaos(ctx, field, obj)
25099 return res
25100 }
25101
25102 out.Concurrently(i, func() graphql.Marshaler {
25103 return innerFunc(ctx)
25104
25105 })
25106 case "iochaos":
25107 field := field
25108
25109 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25110 defer func() {
25111 if r := recover(); r != nil {
25112 ec.Error(ctx, ec.Recover(ctx, r))
25113 }
25114 }()
25115 res = ec._Namespace_iochaos(ctx, field, obj)
25116 return res
25117 }
25118
25119 out.Concurrently(i, func() graphql.Marshaler {
25120 return innerFunc(ctx)
25121
25122 })
25123 case "podiochaos":
25124 field := field
25125
25126 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25127 defer func() {
25128 if r := recover(); r != nil {
25129 ec.Error(ctx, ec.Recover(ctx, r))
25130 }
25131 }()
25132 res = ec._Namespace_podiochaos(ctx, field, obj)
25133 return res
25134 }
25135
25136 out.Concurrently(i, func() graphql.Marshaler {
25137 return innerFunc(ctx)
25138
25139 })
25140 case "httpchaos":
25141 field := field
25142
25143 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25144 defer func() {
25145 if r := recover(); r != nil {
25146 ec.Error(ctx, ec.Recover(ctx, r))
25147 }
25148 }()
25149 res = ec._Namespace_httpchaos(ctx, field, obj)
25150 return res
25151 }
25152
25153 out.Concurrently(i, func() graphql.Marshaler {
25154 return innerFunc(ctx)
25155
25156 })
25157 case "podhttpchaos":
25158 field := field
25159
25160 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25161 defer func() {
25162 if r := recover(); r != nil {
25163 ec.Error(ctx, ec.Recover(ctx, r))
25164 }
25165 }()
25166 res = ec._Namespace_podhttpchaos(ctx, field, obj)
25167 return res
25168 }
25169
25170 out.Concurrently(i, func() graphql.Marshaler {
25171 return innerFunc(ctx)
25172
25173 })
25174 case "networkchaos":
25175 field := field
25176
25177 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25178 defer func() {
25179 if r := recover(); r != nil {
25180 ec.Error(ctx, ec.Recover(ctx, r))
25181 }
25182 }()
25183 res = ec._Namespace_networkchaos(ctx, field, obj)
25184 return res
25185 }
25186
25187 out.Concurrently(i, func() graphql.Marshaler {
25188 return innerFunc(ctx)
25189
25190 })
25191 case "podnetworkchaos":
25192 field := field
25193
25194 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25195 defer func() {
25196 if r := recover(); r != nil {
25197 ec.Error(ctx, ec.Recover(ctx, r))
25198 }
25199 }()
25200 res = ec._Namespace_podnetworkchaos(ctx, field, obj)
25201 return res
25202 }
25203
25204 out.Concurrently(i, func() graphql.Marshaler {
25205 return innerFunc(ctx)
25206
25207 })
25208 default:
25209 panic("unknown field " + strconv.Quote(field.Name))
25210 }
25211 }
25212 out.Dispatch()
25213 if invalids > 0 {
25214 return graphql.Null
25215 }
25216 return out
25217 }
25218
25219 var networkChaosImplementors = []string{"NetworkChaos"}
25220
25221 func (ec *executionContext) _NetworkChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.NetworkChaos) graphql.Marshaler {
25222 fields := graphql.CollectFields(ec.OperationContext, sel, networkChaosImplementors)
25223 out := graphql.NewFieldSet(fields)
25224 var invalids uint32
25225 for i, field := range fields {
25226 switch field.Name {
25227 case "__typename":
25228 out.Values[i] = graphql.MarshalString("NetworkChaos")
25229 case "kind":
25230 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25231 return ec._NetworkChaos_kind(ctx, field, obj)
25232 }
25233
25234 out.Values[i] = innerFunc(ctx)
25235
25236 if out.Values[i] == graphql.Null {
25237 atomic.AddUint32(&invalids, 1)
25238 }
25239 case "apiVersion":
25240 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25241 return ec._NetworkChaos_apiVersion(ctx, field, obj)
25242 }
25243
25244 out.Values[i] = innerFunc(ctx)
25245
25246 if out.Values[i] == graphql.Null {
25247 atomic.AddUint32(&invalids, 1)
25248 }
25249 case "name":
25250 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25251 return ec._NetworkChaos_name(ctx, field, obj)
25252 }
25253
25254 out.Values[i] = innerFunc(ctx)
25255
25256 if out.Values[i] == graphql.Null {
25257 atomic.AddUint32(&invalids, 1)
25258 }
25259 case "generateName":
25260 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25261 return ec._NetworkChaos_generateName(ctx, field, obj)
25262 }
25263
25264 out.Values[i] = innerFunc(ctx)
25265
25266 if out.Values[i] == graphql.Null {
25267 atomic.AddUint32(&invalids, 1)
25268 }
25269 case "namespace":
25270 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25271 return ec._NetworkChaos_namespace(ctx, field, obj)
25272 }
25273
25274 out.Values[i] = innerFunc(ctx)
25275
25276 if out.Values[i] == graphql.Null {
25277 atomic.AddUint32(&invalids, 1)
25278 }
25279 case "selfLink":
25280 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25281 return ec._NetworkChaos_selfLink(ctx, field, obj)
25282 }
25283
25284 out.Values[i] = innerFunc(ctx)
25285
25286 if out.Values[i] == graphql.Null {
25287 atomic.AddUint32(&invalids, 1)
25288 }
25289 case "uid":
25290 field := field
25291
25292 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25293 defer func() {
25294 if r := recover(); r != nil {
25295 ec.Error(ctx, ec.Recover(ctx, r))
25296 }
25297 }()
25298 res = ec._NetworkChaos_uid(ctx, field, obj)
25299 if res == graphql.Null {
25300 atomic.AddUint32(&invalids, 1)
25301 }
25302 return res
25303 }
25304
25305 out.Concurrently(i, func() graphql.Marshaler {
25306 return innerFunc(ctx)
25307
25308 })
25309 case "resourceVersion":
25310 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25311 return ec._NetworkChaos_resourceVersion(ctx, field, obj)
25312 }
25313
25314 out.Values[i] = innerFunc(ctx)
25315
25316 if out.Values[i] == graphql.Null {
25317 atomic.AddUint32(&invalids, 1)
25318 }
25319 case "generation":
25320 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25321 return ec._NetworkChaos_generation(ctx, field, obj)
25322 }
25323
25324 out.Values[i] = innerFunc(ctx)
25325
25326 if out.Values[i] == graphql.Null {
25327 atomic.AddUint32(&invalids, 1)
25328 }
25329 case "creationTimestamp":
25330 field := field
25331
25332 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25333 defer func() {
25334 if r := recover(); r != nil {
25335 ec.Error(ctx, ec.Recover(ctx, r))
25336 }
25337 }()
25338 res = ec._NetworkChaos_creationTimestamp(ctx, field, obj)
25339 if res == graphql.Null {
25340 atomic.AddUint32(&invalids, 1)
25341 }
25342 return res
25343 }
25344
25345 out.Concurrently(i, func() graphql.Marshaler {
25346 return innerFunc(ctx)
25347
25348 })
25349 case "deletionTimestamp":
25350 field := field
25351
25352 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25353 defer func() {
25354 if r := recover(); r != nil {
25355 ec.Error(ctx, ec.Recover(ctx, r))
25356 }
25357 }()
25358 res = ec._NetworkChaos_deletionTimestamp(ctx, field, obj)
25359 return res
25360 }
25361
25362 out.Concurrently(i, func() graphql.Marshaler {
25363 return innerFunc(ctx)
25364
25365 })
25366 case "deletionGracePeriodSeconds":
25367 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25368 return ec._NetworkChaos_deletionGracePeriodSeconds(ctx, field, obj)
25369 }
25370
25371 out.Values[i] = innerFunc(ctx)
25372
25373 case "labels":
25374 field := field
25375
25376 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25377 defer func() {
25378 if r := recover(); r != nil {
25379 ec.Error(ctx, ec.Recover(ctx, r))
25380 }
25381 }()
25382 res = ec._NetworkChaos_labels(ctx, field, obj)
25383 return res
25384 }
25385
25386 out.Concurrently(i, func() graphql.Marshaler {
25387 return innerFunc(ctx)
25388
25389 })
25390 case "annotations":
25391 field := field
25392
25393 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25394 defer func() {
25395 if r := recover(); r != nil {
25396 ec.Error(ctx, ec.Recover(ctx, r))
25397 }
25398 }()
25399 res = ec._NetworkChaos_annotations(ctx, field, obj)
25400 return res
25401 }
25402
25403 out.Concurrently(i, func() graphql.Marshaler {
25404 return innerFunc(ctx)
25405
25406 })
25407 case "ownerReferences":
25408 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25409 return ec._NetworkChaos_ownerReferences(ctx, field, obj)
25410 }
25411
25412 out.Values[i] = innerFunc(ctx)
25413
25414 case "finalizers":
25415 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25416 return ec._NetworkChaos_finalizers(ctx, field, obj)
25417 }
25418
25419 out.Values[i] = innerFunc(ctx)
25420
25421 case "podnetwork":
25422 field := field
25423
25424 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25425 defer func() {
25426 if r := recover(); r != nil {
25427 ec.Error(ctx, ec.Recover(ctx, r))
25428 }
25429 }()
25430 res = ec._NetworkChaos_podnetwork(ctx, field, obj)
25431 return res
25432 }
25433
25434 out.Concurrently(i, func() graphql.Marshaler {
25435 return innerFunc(ctx)
25436
25437 })
25438 default:
25439 panic("unknown field " + strconv.Quote(field.Name))
25440 }
25441 }
25442 out.Dispatch()
25443 if invalids > 0 {
25444 return graphql.Null
25445 }
25446 return out
25447 }
25448
25449 var ownerReferenceImplementors = []string{"OwnerReference"}
25450
25451 func (ec *executionContext) _OwnerReference(ctx context.Context, sel ast.SelectionSet, obj *v11.OwnerReference) graphql.Marshaler {
25452 fields := graphql.CollectFields(ec.OperationContext, sel, ownerReferenceImplementors)
25453 out := graphql.NewFieldSet(fields)
25454 var invalids uint32
25455 for i, field := range fields {
25456 switch field.Name {
25457 case "__typename":
25458 out.Values[i] = graphql.MarshalString("OwnerReference")
25459 case "kind":
25460 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25461 return ec._OwnerReference_kind(ctx, field, obj)
25462 }
25463
25464 out.Values[i] = innerFunc(ctx)
25465
25466 if out.Values[i] == graphql.Null {
25467 atomic.AddUint32(&invalids, 1)
25468 }
25469 case "apiVersion":
25470 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25471 return ec._OwnerReference_apiVersion(ctx, field, obj)
25472 }
25473
25474 out.Values[i] = innerFunc(ctx)
25475
25476 if out.Values[i] == graphql.Null {
25477 atomic.AddUint32(&invalids, 1)
25478 }
25479 case "name":
25480 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25481 return ec._OwnerReference_name(ctx, field, obj)
25482 }
25483
25484 out.Values[i] = innerFunc(ctx)
25485
25486 if out.Values[i] == graphql.Null {
25487 atomic.AddUint32(&invalids, 1)
25488 }
25489 case "uid":
25490 field := field
25491
25492 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25493 defer func() {
25494 if r := recover(); r != nil {
25495 ec.Error(ctx, ec.Recover(ctx, r))
25496 }
25497 }()
25498 res = ec._OwnerReference_uid(ctx, field, obj)
25499 if res == graphql.Null {
25500 atomic.AddUint32(&invalids, 1)
25501 }
25502 return res
25503 }
25504
25505 out.Concurrently(i, func() graphql.Marshaler {
25506 return innerFunc(ctx)
25507
25508 })
25509 case "controller":
25510 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25511 return ec._OwnerReference_controller(ctx, field, obj)
25512 }
25513
25514 out.Values[i] = innerFunc(ctx)
25515
25516 case "blockOwnerDeletion":
25517 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25518 return ec._OwnerReference_blockOwnerDeletion(ctx, field, obj)
25519 }
25520
25521 out.Values[i] = innerFunc(ctx)
25522
25523 default:
25524 panic("unknown field " + strconv.Quote(field.Name))
25525 }
25526 }
25527 out.Dispatch()
25528 if invalids > 0 {
25529 return graphql.Null
25530 }
25531 return out
25532 }
25533
25534 var podImplementors = []string{"Pod"}
25535
25536 func (ec *executionContext) _Pod(ctx context.Context, sel ast.SelectionSet, obj *v1.Pod) graphql.Marshaler {
25537 fields := graphql.CollectFields(ec.OperationContext, sel, podImplementors)
25538 out := graphql.NewFieldSet(fields)
25539 var invalids uint32
25540 for i, field := range fields {
25541 switch field.Name {
25542 case "__typename":
25543 out.Values[i] = graphql.MarshalString("Pod")
25544 case "kind":
25545 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25546 return ec._Pod_kind(ctx, field, obj)
25547 }
25548
25549 out.Values[i] = innerFunc(ctx)
25550
25551 if out.Values[i] == graphql.Null {
25552 atomic.AddUint32(&invalids, 1)
25553 }
25554 case "apiVersion":
25555 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25556 return ec._Pod_apiVersion(ctx, field, obj)
25557 }
25558
25559 out.Values[i] = innerFunc(ctx)
25560
25561 if out.Values[i] == graphql.Null {
25562 atomic.AddUint32(&invalids, 1)
25563 }
25564 case "name":
25565 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25566 return ec._Pod_name(ctx, field, obj)
25567 }
25568
25569 out.Values[i] = innerFunc(ctx)
25570
25571 if out.Values[i] == graphql.Null {
25572 atomic.AddUint32(&invalids, 1)
25573 }
25574 case "generateName":
25575 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25576 return ec._Pod_generateName(ctx, field, obj)
25577 }
25578
25579 out.Values[i] = innerFunc(ctx)
25580
25581 if out.Values[i] == graphql.Null {
25582 atomic.AddUint32(&invalids, 1)
25583 }
25584 case "namespace":
25585 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25586 return ec._Pod_namespace(ctx, field, obj)
25587 }
25588
25589 out.Values[i] = innerFunc(ctx)
25590
25591 if out.Values[i] == graphql.Null {
25592 atomic.AddUint32(&invalids, 1)
25593 }
25594 case "selfLink":
25595 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25596 return ec._Pod_selfLink(ctx, field, obj)
25597 }
25598
25599 out.Values[i] = innerFunc(ctx)
25600
25601 if out.Values[i] == graphql.Null {
25602 atomic.AddUint32(&invalids, 1)
25603 }
25604 case "uid":
25605 field := field
25606
25607 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25608 defer func() {
25609 if r := recover(); r != nil {
25610 ec.Error(ctx, ec.Recover(ctx, r))
25611 }
25612 }()
25613 res = ec._Pod_uid(ctx, field, obj)
25614 if res == graphql.Null {
25615 atomic.AddUint32(&invalids, 1)
25616 }
25617 return res
25618 }
25619
25620 out.Concurrently(i, func() graphql.Marshaler {
25621 return innerFunc(ctx)
25622
25623 })
25624 case "resourceVersion":
25625 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25626 return ec._Pod_resourceVersion(ctx, field, obj)
25627 }
25628
25629 out.Values[i] = innerFunc(ctx)
25630
25631 if out.Values[i] == graphql.Null {
25632 atomic.AddUint32(&invalids, 1)
25633 }
25634 case "generation":
25635 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25636 return ec._Pod_generation(ctx, field, obj)
25637 }
25638
25639 out.Values[i] = innerFunc(ctx)
25640
25641 if out.Values[i] == graphql.Null {
25642 atomic.AddUint32(&invalids, 1)
25643 }
25644 case "creationTimestamp":
25645 field := field
25646
25647 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25648 defer func() {
25649 if r := recover(); r != nil {
25650 ec.Error(ctx, ec.Recover(ctx, r))
25651 }
25652 }()
25653 res = ec._Pod_creationTimestamp(ctx, field, obj)
25654 if res == graphql.Null {
25655 atomic.AddUint32(&invalids, 1)
25656 }
25657 return res
25658 }
25659
25660 out.Concurrently(i, func() graphql.Marshaler {
25661 return innerFunc(ctx)
25662
25663 })
25664 case "deletionTimestamp":
25665 field := field
25666
25667 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25668 defer func() {
25669 if r := recover(); r != nil {
25670 ec.Error(ctx, ec.Recover(ctx, r))
25671 }
25672 }()
25673 res = ec._Pod_deletionTimestamp(ctx, field, obj)
25674 return res
25675 }
25676
25677 out.Concurrently(i, func() graphql.Marshaler {
25678 return innerFunc(ctx)
25679
25680 })
25681 case "deletionGracePeriodSeconds":
25682 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25683 return ec._Pod_deletionGracePeriodSeconds(ctx, field, obj)
25684 }
25685
25686 out.Values[i] = innerFunc(ctx)
25687
25688 case "labels":
25689 field := field
25690
25691 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25692 defer func() {
25693 if r := recover(); r != nil {
25694 ec.Error(ctx, ec.Recover(ctx, r))
25695 }
25696 }()
25697 res = ec._Pod_labels(ctx, field, obj)
25698 return res
25699 }
25700
25701 out.Concurrently(i, func() graphql.Marshaler {
25702 return innerFunc(ctx)
25703
25704 })
25705 case "annotations":
25706 field := field
25707
25708 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25709 defer func() {
25710 if r := recover(); r != nil {
25711 ec.Error(ctx, ec.Recover(ctx, r))
25712 }
25713 }()
25714 res = ec._Pod_annotations(ctx, field, obj)
25715 return res
25716 }
25717
25718 out.Concurrently(i, func() graphql.Marshaler {
25719 return innerFunc(ctx)
25720
25721 })
25722 case "ownerReferences":
25723 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25724 return ec._Pod_ownerReferences(ctx, field, obj)
25725 }
25726
25727 out.Values[i] = innerFunc(ctx)
25728
25729 case "finalizers":
25730 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25731 return ec._Pod_finalizers(ctx, field, obj)
25732 }
25733
25734 out.Values[i] = innerFunc(ctx)
25735
25736 case "spec":
25737 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25738 return ec._Pod_spec(ctx, field, obj)
25739 }
25740
25741 out.Values[i] = innerFunc(ctx)
25742
25743 if out.Values[i] == graphql.Null {
25744 atomic.AddUint32(&invalids, 1)
25745 }
25746 case "status":
25747 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25748 return ec._Pod_status(ctx, field, obj)
25749 }
25750
25751 out.Values[i] = innerFunc(ctx)
25752
25753 if out.Values[i] == graphql.Null {
25754 atomic.AddUint32(&invalids, 1)
25755 }
25756 case "logs":
25757 field := field
25758
25759 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25760 defer func() {
25761 if r := recover(); r != nil {
25762 ec.Error(ctx, ec.Recover(ctx, r))
25763 }
25764 }()
25765 res = ec._Pod_logs(ctx, field, obj)
25766 if res == graphql.Null {
25767 atomic.AddUint32(&invalids, 1)
25768 }
25769 return res
25770 }
25771
25772 out.Concurrently(i, func() graphql.Marshaler {
25773 return innerFunc(ctx)
25774
25775 })
25776 case "daemon":
25777 field := field
25778
25779 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25780 defer func() {
25781 if r := recover(); r != nil {
25782 ec.Error(ctx, ec.Recover(ctx, r))
25783 }
25784 }()
25785 res = ec._Pod_daemon(ctx, field, obj)
25786 return res
25787 }
25788
25789 out.Concurrently(i, func() graphql.Marshaler {
25790 return innerFunc(ctx)
25791
25792 })
25793 case "processes":
25794 field := field
25795
25796 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25797 defer func() {
25798 if r := recover(); r != nil {
25799 ec.Error(ctx, ec.Recover(ctx, r))
25800 }
25801 }()
25802 res = ec._Pod_processes(ctx, field, obj)
25803 return res
25804 }
25805
25806 out.Concurrently(i, func() graphql.Marshaler {
25807 return innerFunc(ctx)
25808
25809 })
25810 case "mounts":
25811 field := field
25812
25813 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25814 defer func() {
25815 if r := recover(); r != nil {
25816 ec.Error(ctx, ec.Recover(ctx, r))
25817 }
25818 }()
25819 res = ec._Pod_mounts(ctx, field, obj)
25820 return res
25821 }
25822
25823 out.Concurrently(i, func() graphql.Marshaler {
25824 return innerFunc(ctx)
25825
25826 })
25827 case "ipset":
25828 field := field
25829
25830 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25831 defer func() {
25832 if r := recover(); r != nil {
25833 ec.Error(ctx, ec.Recover(ctx, r))
25834 }
25835 }()
25836 res = ec._Pod_ipset(ctx, field, obj)
25837 if res == graphql.Null {
25838 atomic.AddUint32(&invalids, 1)
25839 }
25840 return res
25841 }
25842
25843 out.Concurrently(i, func() graphql.Marshaler {
25844 return innerFunc(ctx)
25845
25846 })
25847 case "tcQdisc":
25848 field := field
25849
25850 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25851 defer func() {
25852 if r := recover(); r != nil {
25853 ec.Error(ctx, ec.Recover(ctx, r))
25854 }
25855 }()
25856 res = ec._Pod_tcQdisc(ctx, field, obj)
25857 return res
25858 }
25859
25860 out.Concurrently(i, func() graphql.Marshaler {
25861 return innerFunc(ctx)
25862
25863 })
25864 case "iptables":
25865 field := field
25866
25867 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25868 defer func() {
25869 if r := recover(); r != nil {
25870 ec.Error(ctx, ec.Recover(ctx, r))
25871 }
25872 }()
25873 res = ec._Pod_iptables(ctx, field, obj)
25874 return res
25875 }
25876
25877 out.Concurrently(i, func() graphql.Marshaler {
25878 return innerFunc(ctx)
25879
25880 })
25881 default:
25882 panic("unknown field " + strconv.Quote(field.Name))
25883 }
25884 }
25885 out.Dispatch()
25886 if invalids > 0 {
25887 return graphql.Null
25888 }
25889 return out
25890 }
25891
25892 var podConditionImplementors = []string{"PodCondition"}
25893
25894 func (ec *executionContext) _PodCondition(ctx context.Context, sel ast.SelectionSet, obj *v1.PodCondition) graphql.Marshaler {
25895 fields := graphql.CollectFields(ec.OperationContext, sel, podConditionImplementors)
25896 out := graphql.NewFieldSet(fields)
25897 var invalids uint32
25898 for i, field := range fields {
25899 switch field.Name {
25900 case "__typename":
25901 out.Values[i] = graphql.MarshalString("PodCondition")
25902 case "type":
25903 field := field
25904
25905 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25906 defer func() {
25907 if r := recover(); r != nil {
25908 ec.Error(ctx, ec.Recover(ctx, r))
25909 }
25910 }()
25911 res = ec._PodCondition_type(ctx, field, obj)
25912 if res == graphql.Null {
25913 atomic.AddUint32(&invalids, 1)
25914 }
25915 return res
25916 }
25917
25918 out.Concurrently(i, func() graphql.Marshaler {
25919 return innerFunc(ctx)
25920
25921 })
25922 case "status":
25923 field := field
25924
25925 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25926 defer func() {
25927 if r := recover(); r != nil {
25928 ec.Error(ctx, ec.Recover(ctx, r))
25929 }
25930 }()
25931 res = ec._PodCondition_status(ctx, field, obj)
25932 if res == graphql.Null {
25933 atomic.AddUint32(&invalids, 1)
25934 }
25935 return res
25936 }
25937
25938 out.Concurrently(i, func() graphql.Marshaler {
25939 return innerFunc(ctx)
25940
25941 })
25942 case "lastProbeTime":
25943 field := field
25944
25945 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25946 defer func() {
25947 if r := recover(); r != nil {
25948 ec.Error(ctx, ec.Recover(ctx, r))
25949 }
25950 }()
25951 res = ec._PodCondition_lastProbeTime(ctx, field, obj)
25952 return res
25953 }
25954
25955 out.Concurrently(i, func() graphql.Marshaler {
25956 return innerFunc(ctx)
25957
25958 })
25959 case "lastTransitionTime":
25960 field := field
25961
25962 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25963 defer func() {
25964 if r := recover(); r != nil {
25965 ec.Error(ctx, ec.Recover(ctx, r))
25966 }
25967 }()
25968 res = ec._PodCondition_lastTransitionTime(ctx, field, obj)
25969 return res
25970 }
25971
25972 out.Concurrently(i, func() graphql.Marshaler {
25973 return innerFunc(ctx)
25974
25975 })
25976 case "reason":
25977 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25978 return ec._PodCondition_reason(ctx, field, obj)
25979 }
25980
25981 out.Values[i] = innerFunc(ctx)
25982
25983 case "message":
25984 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
25985 return ec._PodCondition_message(ctx, field, obj)
25986 }
25987
25988 out.Values[i] = innerFunc(ctx)
25989
25990 default:
25991 panic("unknown field " + strconv.Quote(field.Name))
25992 }
25993 }
25994 out.Dispatch()
25995 if invalids > 0 {
25996 return graphql.Null
25997 }
25998 return out
25999 }
26000
26001 var podHTTPChaosImplementors = []string{"PodHTTPChaos"}
26002
26003 func (ec *executionContext) _PodHTTPChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaos) graphql.Marshaler {
26004 fields := graphql.CollectFields(ec.OperationContext, sel, podHTTPChaosImplementors)
26005 out := graphql.NewFieldSet(fields)
26006 var invalids uint32
26007 for i, field := range fields {
26008 switch field.Name {
26009 case "__typename":
26010 out.Values[i] = graphql.MarshalString("PodHTTPChaos")
26011 case "kind":
26012 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26013 return ec._PodHTTPChaos_kind(ctx, field, obj)
26014 }
26015
26016 out.Values[i] = innerFunc(ctx)
26017
26018 if out.Values[i] == graphql.Null {
26019 atomic.AddUint32(&invalids, 1)
26020 }
26021 case "apiVersion":
26022 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26023 return ec._PodHTTPChaos_apiVersion(ctx, field, obj)
26024 }
26025
26026 out.Values[i] = innerFunc(ctx)
26027
26028 if out.Values[i] == graphql.Null {
26029 atomic.AddUint32(&invalids, 1)
26030 }
26031 case "name":
26032 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26033 return ec._PodHTTPChaos_name(ctx, field, obj)
26034 }
26035
26036 out.Values[i] = innerFunc(ctx)
26037
26038 if out.Values[i] == graphql.Null {
26039 atomic.AddUint32(&invalids, 1)
26040 }
26041 case "generateName":
26042 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26043 return ec._PodHTTPChaos_generateName(ctx, field, obj)
26044 }
26045
26046 out.Values[i] = innerFunc(ctx)
26047
26048 if out.Values[i] == graphql.Null {
26049 atomic.AddUint32(&invalids, 1)
26050 }
26051 case "namespace":
26052 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26053 return ec._PodHTTPChaos_namespace(ctx, field, obj)
26054 }
26055
26056 out.Values[i] = innerFunc(ctx)
26057
26058 if out.Values[i] == graphql.Null {
26059 atomic.AddUint32(&invalids, 1)
26060 }
26061 case "selfLink":
26062 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26063 return ec._PodHTTPChaos_selfLink(ctx, field, obj)
26064 }
26065
26066 out.Values[i] = innerFunc(ctx)
26067
26068 if out.Values[i] == graphql.Null {
26069 atomic.AddUint32(&invalids, 1)
26070 }
26071 case "uid":
26072 field := field
26073
26074 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26075 defer func() {
26076 if r := recover(); r != nil {
26077 ec.Error(ctx, ec.Recover(ctx, r))
26078 }
26079 }()
26080 res = ec._PodHTTPChaos_uid(ctx, field, obj)
26081 if res == graphql.Null {
26082 atomic.AddUint32(&invalids, 1)
26083 }
26084 return res
26085 }
26086
26087 out.Concurrently(i, func() graphql.Marshaler {
26088 return innerFunc(ctx)
26089
26090 })
26091 case "resourceVersion":
26092 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26093 return ec._PodHTTPChaos_resourceVersion(ctx, field, obj)
26094 }
26095
26096 out.Values[i] = innerFunc(ctx)
26097
26098 if out.Values[i] == graphql.Null {
26099 atomic.AddUint32(&invalids, 1)
26100 }
26101 case "generation":
26102 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26103 return ec._PodHTTPChaos_generation(ctx, field, obj)
26104 }
26105
26106 out.Values[i] = innerFunc(ctx)
26107
26108 if out.Values[i] == graphql.Null {
26109 atomic.AddUint32(&invalids, 1)
26110 }
26111 case "creationTimestamp":
26112 field := field
26113
26114 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26115 defer func() {
26116 if r := recover(); r != nil {
26117 ec.Error(ctx, ec.Recover(ctx, r))
26118 }
26119 }()
26120 res = ec._PodHTTPChaos_creationTimestamp(ctx, field, obj)
26121 if res == graphql.Null {
26122 atomic.AddUint32(&invalids, 1)
26123 }
26124 return res
26125 }
26126
26127 out.Concurrently(i, func() graphql.Marshaler {
26128 return innerFunc(ctx)
26129
26130 })
26131 case "deletionTimestamp":
26132 field := field
26133
26134 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26135 defer func() {
26136 if r := recover(); r != nil {
26137 ec.Error(ctx, ec.Recover(ctx, r))
26138 }
26139 }()
26140 res = ec._PodHTTPChaos_deletionTimestamp(ctx, field, obj)
26141 return res
26142 }
26143
26144 out.Concurrently(i, func() graphql.Marshaler {
26145 return innerFunc(ctx)
26146
26147 })
26148 case "deletionGracePeriodSeconds":
26149 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26150 return ec._PodHTTPChaos_deletionGracePeriodSeconds(ctx, field, obj)
26151 }
26152
26153 out.Values[i] = innerFunc(ctx)
26154
26155 case "labels":
26156 field := field
26157
26158 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26159 defer func() {
26160 if r := recover(); r != nil {
26161 ec.Error(ctx, ec.Recover(ctx, r))
26162 }
26163 }()
26164 res = ec._PodHTTPChaos_labels(ctx, field, obj)
26165 return res
26166 }
26167
26168 out.Concurrently(i, func() graphql.Marshaler {
26169 return innerFunc(ctx)
26170
26171 })
26172 case "annotations":
26173 field := field
26174
26175 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26176 defer func() {
26177 if r := recover(); r != nil {
26178 ec.Error(ctx, ec.Recover(ctx, r))
26179 }
26180 }()
26181 res = ec._PodHTTPChaos_annotations(ctx, field, obj)
26182 return res
26183 }
26184
26185 out.Concurrently(i, func() graphql.Marshaler {
26186 return innerFunc(ctx)
26187
26188 })
26189 case "ownerReferences":
26190 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26191 return ec._PodHTTPChaos_ownerReferences(ctx, field, obj)
26192 }
26193
26194 out.Values[i] = innerFunc(ctx)
26195
26196 case "finalizers":
26197 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26198 return ec._PodHTTPChaos_finalizers(ctx, field, obj)
26199 }
26200
26201 out.Values[i] = innerFunc(ctx)
26202
26203 case "spec":
26204 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26205 return ec._PodHTTPChaos_spec(ctx, field, obj)
26206 }
26207
26208 out.Values[i] = innerFunc(ctx)
26209
26210 if out.Values[i] == graphql.Null {
26211 atomic.AddUint32(&invalids, 1)
26212 }
26213 case "status":
26214 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26215 return ec._PodHTTPChaos_status(ctx, field, obj)
26216 }
26217
26218 out.Values[i] = innerFunc(ctx)
26219
26220 if out.Values[i] == graphql.Null {
26221 atomic.AddUint32(&invalids, 1)
26222 }
26223 case "pod":
26224 field := field
26225
26226 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26227 defer func() {
26228 if r := recover(); r != nil {
26229 ec.Error(ctx, ec.Recover(ctx, r))
26230 }
26231 }()
26232 res = ec._PodHTTPChaos_pod(ctx, field, obj)
26233 if res == graphql.Null {
26234 atomic.AddUint32(&invalids, 1)
26235 }
26236 return res
26237 }
26238
26239 out.Concurrently(i, func() graphql.Marshaler {
26240 return innerFunc(ctx)
26241
26242 })
26243 default:
26244 panic("unknown field " + strconv.Quote(field.Name))
26245 }
26246 }
26247 out.Dispatch()
26248 if invalids > 0 {
26249 return graphql.Null
26250 }
26251 return out
26252 }
26253
26254 var podHttpChaosActionsImplementors = []string{"PodHttpChaosActions"}
26255
26256 func (ec *executionContext) _PodHttpChaosActions(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosActions) graphql.Marshaler {
26257 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosActionsImplementors)
26258 out := graphql.NewFieldSet(fields)
26259 var invalids uint32
26260 for i, field := range fields {
26261 switch field.Name {
26262 case "__typename":
26263 out.Values[i] = graphql.MarshalString("PodHttpChaosActions")
26264 case "abort":
26265 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26266 return ec._PodHttpChaosActions_abort(ctx, field, obj)
26267 }
26268
26269 out.Values[i] = innerFunc(ctx)
26270
26271 case "delay":
26272 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26273 return ec._PodHttpChaosActions_delay(ctx, field, obj)
26274 }
26275
26276 out.Values[i] = innerFunc(ctx)
26277
26278 case "replace":
26279 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26280 return ec._PodHttpChaosActions_replace(ctx, field, obj)
26281 }
26282
26283 out.Values[i] = innerFunc(ctx)
26284
26285 case "patch":
26286 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26287 return ec._PodHttpChaosActions_patch(ctx, field, obj)
26288 }
26289
26290 out.Values[i] = innerFunc(ctx)
26291
26292 default:
26293 panic("unknown field " + strconv.Quote(field.Name))
26294 }
26295 }
26296 out.Dispatch()
26297 if invalids > 0 {
26298 return graphql.Null
26299 }
26300 return out
26301 }
26302
26303 var podHttpChaosPatchActionsImplementors = []string{"PodHttpChaosPatchActions"}
26304
26305 func (ec *executionContext) _PodHttpChaosPatchActions(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosPatchActions) graphql.Marshaler {
26306 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosPatchActionsImplementors)
26307 out := graphql.NewFieldSet(fields)
26308 var invalids uint32
26309 for i, field := range fields {
26310 switch field.Name {
26311 case "__typename":
26312 out.Values[i] = graphql.MarshalString("PodHttpChaosPatchActions")
26313 case "body":
26314 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26315 return ec._PodHttpChaosPatchActions_body(ctx, field, obj)
26316 }
26317
26318 out.Values[i] = innerFunc(ctx)
26319
26320 case "queries":
26321 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26322 return ec._PodHttpChaosPatchActions_queries(ctx, field, obj)
26323 }
26324
26325 out.Values[i] = innerFunc(ctx)
26326
26327 case "headers":
26328 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26329 return ec._PodHttpChaosPatchActions_headers(ctx, field, obj)
26330 }
26331
26332 out.Values[i] = innerFunc(ctx)
26333
26334 default:
26335 panic("unknown field " + strconv.Quote(field.Name))
26336 }
26337 }
26338 out.Dispatch()
26339 if invalids > 0 {
26340 return graphql.Null
26341 }
26342 return out
26343 }
26344
26345 var podHttpChaosPatchBodyActionImplementors = []string{"PodHttpChaosPatchBodyAction"}
26346
26347 func (ec *executionContext) _PodHttpChaosPatchBodyAction(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosPatchBodyAction) graphql.Marshaler {
26348 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosPatchBodyActionImplementors)
26349 out := graphql.NewFieldSet(fields)
26350 var invalids uint32
26351 for i, field := range fields {
26352 switch field.Name {
26353 case "__typename":
26354 out.Values[i] = graphql.MarshalString("PodHttpChaosPatchBodyAction")
26355 case "type":
26356 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26357 return ec._PodHttpChaosPatchBodyAction_type(ctx, field, obj)
26358 }
26359
26360 out.Values[i] = innerFunc(ctx)
26361
26362 if out.Values[i] == graphql.Null {
26363 invalids++
26364 }
26365 case "value":
26366 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26367 return ec._PodHttpChaosPatchBodyAction_value(ctx, field, obj)
26368 }
26369
26370 out.Values[i] = innerFunc(ctx)
26371
26372 if out.Values[i] == graphql.Null {
26373 invalids++
26374 }
26375 default:
26376 panic("unknown field " + strconv.Quote(field.Name))
26377 }
26378 }
26379 out.Dispatch()
26380 if invalids > 0 {
26381 return graphql.Null
26382 }
26383 return out
26384 }
26385
26386 var podHttpChaosReplaceActionsImplementors = []string{"PodHttpChaosReplaceActions"}
26387
26388 func (ec *executionContext) _PodHttpChaosReplaceActions(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosReplaceActions) graphql.Marshaler {
26389 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosReplaceActionsImplementors)
26390 out := graphql.NewFieldSet(fields)
26391 var invalids uint32
26392 for i, field := range fields {
26393 switch field.Name {
26394 case "__typename":
26395 out.Values[i] = graphql.MarshalString("PodHttpChaosReplaceActions")
26396 case "path":
26397 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26398 return ec._PodHttpChaosReplaceActions_path(ctx, field, obj)
26399 }
26400
26401 out.Values[i] = innerFunc(ctx)
26402
26403 case "method":
26404 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26405 return ec._PodHttpChaosReplaceActions_method(ctx, field, obj)
26406 }
26407
26408 out.Values[i] = innerFunc(ctx)
26409
26410 case "code":
26411 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26412 return ec._PodHttpChaosReplaceActions_code(ctx, field, obj)
26413 }
26414
26415 out.Values[i] = innerFunc(ctx)
26416
26417 case "body":
26418 field := field
26419
26420 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26421 defer func() {
26422 if r := recover(); r != nil {
26423 ec.Error(ctx, ec.Recover(ctx, r))
26424 }
26425 }()
26426 res = ec._PodHttpChaosReplaceActions_body(ctx, field, obj)
26427 return res
26428 }
26429
26430 out.Concurrently(i, func() graphql.Marshaler {
26431 return innerFunc(ctx)
26432
26433 })
26434 case "queries":
26435 field := field
26436
26437 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26438 defer func() {
26439 if r := recover(); r != nil {
26440 ec.Error(ctx, ec.Recover(ctx, r))
26441 }
26442 }()
26443 res = ec._PodHttpChaosReplaceActions_queries(ctx, field, obj)
26444 return res
26445 }
26446
26447 out.Concurrently(i, func() graphql.Marshaler {
26448 return innerFunc(ctx)
26449
26450 })
26451 case "headers":
26452 field := field
26453
26454 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26455 defer func() {
26456 if r := recover(); r != nil {
26457 ec.Error(ctx, ec.Recover(ctx, r))
26458 }
26459 }()
26460 res = ec._PodHttpChaosReplaceActions_headers(ctx, field, obj)
26461 return res
26462 }
26463
26464 out.Concurrently(i, func() graphql.Marshaler {
26465 return innerFunc(ctx)
26466
26467 })
26468 default:
26469 panic("unknown field " + strconv.Quote(field.Name))
26470 }
26471 }
26472 out.Dispatch()
26473 if invalids > 0 {
26474 return graphql.Null
26475 }
26476 return out
26477 }
26478
26479 var podHttpChaosRuleImplementors = []string{"PodHttpChaosRule"}
26480
26481 func (ec *executionContext) _PodHttpChaosRule(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosRule) graphql.Marshaler {
26482 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosRuleImplementors)
26483 out := graphql.NewFieldSet(fields)
26484 var invalids uint32
26485 for i, field := range fields {
26486 switch field.Name {
26487 case "__typename":
26488 out.Values[i] = graphql.MarshalString("PodHttpChaosRule")
26489 case "target":
26490 field := field
26491
26492 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26493 defer func() {
26494 if r := recover(); r != nil {
26495 ec.Error(ctx, ec.Recover(ctx, r))
26496 }
26497 }()
26498 res = ec._PodHttpChaosRule_target(ctx, field, obj)
26499 if res == graphql.Null {
26500 atomic.AddUint32(&invalids, 1)
26501 }
26502 return res
26503 }
26504
26505 out.Concurrently(i, func() graphql.Marshaler {
26506 return innerFunc(ctx)
26507
26508 })
26509 case "selector":
26510 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26511 return ec._PodHttpChaosRule_selector(ctx, field, obj)
26512 }
26513
26514 out.Values[i] = innerFunc(ctx)
26515
26516 if out.Values[i] == graphql.Null {
26517 atomic.AddUint32(&invalids, 1)
26518 }
26519 case "actions":
26520 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26521 return ec._PodHttpChaosRule_actions(ctx, field, obj)
26522 }
26523
26524 out.Values[i] = innerFunc(ctx)
26525
26526 if out.Values[i] == graphql.Null {
26527 atomic.AddUint32(&invalids, 1)
26528 }
26529 case "source":
26530 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26531 return ec._PodHttpChaosRule_source(ctx, field, obj)
26532 }
26533
26534 out.Values[i] = innerFunc(ctx)
26535
26536 if out.Values[i] == graphql.Null {
26537 atomic.AddUint32(&invalids, 1)
26538 }
26539 case "port":
26540 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26541 return ec._PodHttpChaosRule_port(ctx, field, obj)
26542 }
26543
26544 out.Values[i] = innerFunc(ctx)
26545
26546 if out.Values[i] == graphql.Null {
26547 atomic.AddUint32(&invalids, 1)
26548 }
26549 default:
26550 panic("unknown field " + strconv.Quote(field.Name))
26551 }
26552 }
26553 out.Dispatch()
26554 if invalids > 0 {
26555 return graphql.Null
26556 }
26557 return out
26558 }
26559
26560 var podHttpChaosSelectorImplementors = []string{"PodHttpChaosSelector"}
26561
26562 func (ec *executionContext) _PodHttpChaosSelector(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosSelector) graphql.Marshaler {
26563 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosSelectorImplementors)
26564 out := graphql.NewFieldSet(fields)
26565 var invalids uint32
26566 for i, field := range fields {
26567 switch field.Name {
26568 case "__typename":
26569 out.Values[i] = graphql.MarshalString("PodHttpChaosSelector")
26570 case "port":
26571 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26572 return ec._PodHttpChaosSelector_port(ctx, field, obj)
26573 }
26574
26575 out.Values[i] = innerFunc(ctx)
26576
26577 case "path":
26578 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26579 return ec._PodHttpChaosSelector_path(ctx, field, obj)
26580 }
26581
26582 out.Values[i] = innerFunc(ctx)
26583
26584 case "method":
26585 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26586 return ec._PodHttpChaosSelector_method(ctx, field, obj)
26587 }
26588
26589 out.Values[i] = innerFunc(ctx)
26590
26591 case "code":
26592 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26593 return ec._PodHttpChaosSelector_code(ctx, field, obj)
26594 }
26595
26596 out.Values[i] = innerFunc(ctx)
26597
26598 case "requestHeaders":
26599 field := field
26600
26601 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26602 defer func() {
26603 if r := recover(); r != nil {
26604 ec.Error(ctx, ec.Recover(ctx, r))
26605 }
26606 }()
26607 res = ec._PodHttpChaosSelector_requestHeaders(ctx, field, obj)
26608 return res
26609 }
26610
26611 out.Concurrently(i, func() graphql.Marshaler {
26612 return innerFunc(ctx)
26613
26614 })
26615 case "responseHeaders":
26616 field := field
26617
26618 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26619 defer func() {
26620 if r := recover(); r != nil {
26621 ec.Error(ctx, ec.Recover(ctx, r))
26622 }
26623 }()
26624 res = ec._PodHttpChaosSelector_responseHeaders(ctx, field, obj)
26625 return res
26626 }
26627
26628 out.Concurrently(i, func() graphql.Marshaler {
26629 return innerFunc(ctx)
26630
26631 })
26632 default:
26633 panic("unknown field " + strconv.Quote(field.Name))
26634 }
26635 }
26636 out.Dispatch()
26637 if invalids > 0 {
26638 return graphql.Null
26639 }
26640 return out
26641 }
26642
26643 var podHttpChaosSpecImplementors = []string{"PodHttpChaosSpec"}
26644
26645 func (ec *executionContext) _PodHttpChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosSpec) graphql.Marshaler {
26646 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosSpecImplementors)
26647 out := graphql.NewFieldSet(fields)
26648 var invalids uint32
26649 for i, field := range fields {
26650 switch field.Name {
26651 case "__typename":
26652 out.Values[i] = graphql.MarshalString("PodHttpChaosSpec")
26653 case "rules":
26654 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26655 return ec._PodHttpChaosSpec_rules(ctx, field, obj)
26656 }
26657
26658 out.Values[i] = innerFunc(ctx)
26659
26660 if out.Values[i] == graphql.Null {
26661 invalids++
26662 }
26663 case "tls":
26664 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26665 return ec._PodHttpChaosSpec_tls(ctx, field, obj)
26666 }
26667
26668 out.Values[i] = innerFunc(ctx)
26669
26670 default:
26671 panic("unknown field " + strconv.Quote(field.Name))
26672 }
26673 }
26674 out.Dispatch()
26675 if invalids > 0 {
26676 return graphql.Null
26677 }
26678 return out
26679 }
26680
26681 var podHttpChaosStatusImplementors = []string{"PodHttpChaosStatus"}
26682
26683 func (ec *executionContext) _PodHttpChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosStatus) graphql.Marshaler {
26684 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosStatusImplementors)
26685 out := graphql.NewFieldSet(fields)
26686 var invalids uint32
26687 for i, field := range fields {
26688 switch field.Name {
26689 case "__typename":
26690 out.Values[i] = graphql.MarshalString("PodHttpChaosStatus")
26691 case "pid":
26692 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26693 return ec._PodHttpChaosStatus_pid(ctx, field, obj)
26694 }
26695
26696 out.Values[i] = innerFunc(ctx)
26697
26698 case "startTime":
26699 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26700 return ec._PodHttpChaosStatus_startTime(ctx, field, obj)
26701 }
26702
26703 out.Values[i] = innerFunc(ctx)
26704
26705 case "failedMessage":
26706 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26707 return ec._PodHttpChaosStatus_failedMessage(ctx, field, obj)
26708 }
26709
26710 out.Values[i] = innerFunc(ctx)
26711
26712 case "observedGeneration":
26713 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26714 return ec._PodHttpChaosStatus_observedGeneration(ctx, field, obj)
26715 }
26716
26717 out.Values[i] = innerFunc(ctx)
26718
26719 default:
26720 panic("unknown field " + strconv.Quote(field.Name))
26721 }
26722 }
26723 out.Dispatch()
26724 if invalids > 0 {
26725 return graphql.Null
26726 }
26727 return out
26728 }
26729
26730 var podHttpChaosTLSImplementors = []string{"PodHttpChaosTLS"}
26731
26732 func (ec *executionContext) _PodHttpChaosTLS(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosTLS) graphql.Marshaler {
26733 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosTLSImplementors)
26734 out := graphql.NewFieldSet(fields)
26735 var invalids uint32
26736 for i, field := range fields {
26737 switch field.Name {
26738 case "__typename":
26739 out.Values[i] = graphql.MarshalString("PodHttpChaosTLS")
26740 case "secretName":
26741 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26742 return ec._PodHttpChaosTLS_secretName(ctx, field, obj)
26743 }
26744
26745 out.Values[i] = innerFunc(ctx)
26746
26747 if out.Values[i] == graphql.Null {
26748 invalids++
26749 }
26750 case "secretNamespace":
26751 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26752 return ec._PodHttpChaosTLS_secretNamespace(ctx, field, obj)
26753 }
26754
26755 out.Values[i] = innerFunc(ctx)
26756
26757 if out.Values[i] == graphql.Null {
26758 invalids++
26759 }
26760 case "certName":
26761 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26762 return ec._PodHttpChaosTLS_certName(ctx, field, obj)
26763 }
26764
26765 out.Values[i] = innerFunc(ctx)
26766
26767 if out.Values[i] == graphql.Null {
26768 invalids++
26769 }
26770 case "keyName":
26771 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26772 return ec._PodHttpChaosTLS_keyName(ctx, field, obj)
26773 }
26774
26775 out.Values[i] = innerFunc(ctx)
26776
26777 if out.Values[i] == graphql.Null {
26778 invalids++
26779 }
26780 case "caName":
26781 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26782 return ec._PodHttpChaosTLS_caName(ctx, field, obj)
26783 }
26784
26785 out.Values[i] = innerFunc(ctx)
26786
26787 default:
26788 panic("unknown field " + strconv.Quote(field.Name))
26789 }
26790 }
26791 out.Dispatch()
26792 if invalids > 0 {
26793 return graphql.Null
26794 }
26795 return out
26796 }
26797
26798 var podIOChaosImplementors = []string{"PodIOChaos"}
26799
26800 func (ec *executionContext) _PodIOChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodIOChaos) graphql.Marshaler {
26801 fields := graphql.CollectFields(ec.OperationContext, sel, podIOChaosImplementors)
26802 out := graphql.NewFieldSet(fields)
26803 var invalids uint32
26804 for i, field := range fields {
26805 switch field.Name {
26806 case "__typename":
26807 out.Values[i] = graphql.MarshalString("PodIOChaos")
26808 case "kind":
26809 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26810 return ec._PodIOChaos_kind(ctx, field, obj)
26811 }
26812
26813 out.Values[i] = innerFunc(ctx)
26814
26815 if out.Values[i] == graphql.Null {
26816 atomic.AddUint32(&invalids, 1)
26817 }
26818 case "apiVersion":
26819 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26820 return ec._PodIOChaos_apiVersion(ctx, field, obj)
26821 }
26822
26823 out.Values[i] = innerFunc(ctx)
26824
26825 if out.Values[i] == graphql.Null {
26826 atomic.AddUint32(&invalids, 1)
26827 }
26828 case "name":
26829 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26830 return ec._PodIOChaos_name(ctx, field, obj)
26831 }
26832
26833 out.Values[i] = innerFunc(ctx)
26834
26835 if out.Values[i] == graphql.Null {
26836 atomic.AddUint32(&invalids, 1)
26837 }
26838 case "generateName":
26839 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26840 return ec._PodIOChaos_generateName(ctx, field, obj)
26841 }
26842
26843 out.Values[i] = innerFunc(ctx)
26844
26845 if out.Values[i] == graphql.Null {
26846 atomic.AddUint32(&invalids, 1)
26847 }
26848 case "namespace":
26849 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26850 return ec._PodIOChaos_namespace(ctx, field, obj)
26851 }
26852
26853 out.Values[i] = innerFunc(ctx)
26854
26855 if out.Values[i] == graphql.Null {
26856 atomic.AddUint32(&invalids, 1)
26857 }
26858 case "selfLink":
26859 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26860 return ec._PodIOChaos_selfLink(ctx, field, obj)
26861 }
26862
26863 out.Values[i] = innerFunc(ctx)
26864
26865 if out.Values[i] == graphql.Null {
26866 atomic.AddUint32(&invalids, 1)
26867 }
26868 case "uid":
26869 field := field
26870
26871 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26872 defer func() {
26873 if r := recover(); r != nil {
26874 ec.Error(ctx, ec.Recover(ctx, r))
26875 }
26876 }()
26877 res = ec._PodIOChaos_uid(ctx, field, obj)
26878 if res == graphql.Null {
26879 atomic.AddUint32(&invalids, 1)
26880 }
26881 return res
26882 }
26883
26884 out.Concurrently(i, func() graphql.Marshaler {
26885 return innerFunc(ctx)
26886
26887 })
26888 case "resourceVersion":
26889 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26890 return ec._PodIOChaos_resourceVersion(ctx, field, obj)
26891 }
26892
26893 out.Values[i] = innerFunc(ctx)
26894
26895 if out.Values[i] == graphql.Null {
26896 atomic.AddUint32(&invalids, 1)
26897 }
26898 case "generation":
26899 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26900 return ec._PodIOChaos_generation(ctx, field, obj)
26901 }
26902
26903 out.Values[i] = innerFunc(ctx)
26904
26905 if out.Values[i] == graphql.Null {
26906 atomic.AddUint32(&invalids, 1)
26907 }
26908 case "creationTimestamp":
26909 field := field
26910
26911 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26912 defer func() {
26913 if r := recover(); r != nil {
26914 ec.Error(ctx, ec.Recover(ctx, r))
26915 }
26916 }()
26917 res = ec._PodIOChaos_creationTimestamp(ctx, field, obj)
26918 if res == graphql.Null {
26919 atomic.AddUint32(&invalids, 1)
26920 }
26921 return res
26922 }
26923
26924 out.Concurrently(i, func() graphql.Marshaler {
26925 return innerFunc(ctx)
26926
26927 })
26928 case "deletionTimestamp":
26929 field := field
26930
26931 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26932 defer func() {
26933 if r := recover(); r != nil {
26934 ec.Error(ctx, ec.Recover(ctx, r))
26935 }
26936 }()
26937 res = ec._PodIOChaos_deletionTimestamp(ctx, field, obj)
26938 return res
26939 }
26940
26941 out.Concurrently(i, func() graphql.Marshaler {
26942 return innerFunc(ctx)
26943
26944 })
26945 case "deletionGracePeriodSeconds":
26946 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26947 return ec._PodIOChaos_deletionGracePeriodSeconds(ctx, field, obj)
26948 }
26949
26950 out.Values[i] = innerFunc(ctx)
26951
26952 case "labels":
26953 field := field
26954
26955 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26956 defer func() {
26957 if r := recover(); r != nil {
26958 ec.Error(ctx, ec.Recover(ctx, r))
26959 }
26960 }()
26961 res = ec._PodIOChaos_labels(ctx, field, obj)
26962 return res
26963 }
26964
26965 out.Concurrently(i, func() graphql.Marshaler {
26966 return innerFunc(ctx)
26967
26968 })
26969 case "annotations":
26970 field := field
26971
26972 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26973 defer func() {
26974 if r := recover(); r != nil {
26975 ec.Error(ctx, ec.Recover(ctx, r))
26976 }
26977 }()
26978 res = ec._PodIOChaos_annotations(ctx, field, obj)
26979 return res
26980 }
26981
26982 out.Concurrently(i, func() graphql.Marshaler {
26983 return innerFunc(ctx)
26984
26985 })
26986 case "ownerReferences":
26987 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26988 return ec._PodIOChaos_ownerReferences(ctx, field, obj)
26989 }
26990
26991 out.Values[i] = innerFunc(ctx)
26992
26993 case "finalizers":
26994 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
26995 return ec._PodIOChaos_finalizers(ctx, field, obj)
26996 }
26997
26998 out.Values[i] = innerFunc(ctx)
26999
27000 case "spec":
27001 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27002 return ec._PodIOChaos_spec(ctx, field, obj)
27003 }
27004
27005 out.Values[i] = innerFunc(ctx)
27006
27007 if out.Values[i] == graphql.Null {
27008 atomic.AddUint32(&invalids, 1)
27009 }
27010 case "status":
27011 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27012 return ec._PodIOChaos_status(ctx, field, obj)
27013 }
27014
27015 out.Values[i] = innerFunc(ctx)
27016
27017 if out.Values[i] == graphql.Null {
27018 atomic.AddUint32(&invalids, 1)
27019 }
27020 case "pod":
27021 field := field
27022
27023 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27024 defer func() {
27025 if r := recover(); r != nil {
27026 ec.Error(ctx, ec.Recover(ctx, r))
27027 }
27028 }()
27029 res = ec._PodIOChaos_pod(ctx, field, obj)
27030 if res == graphql.Null {
27031 atomic.AddUint32(&invalids, 1)
27032 }
27033 return res
27034 }
27035
27036 out.Concurrently(i, func() graphql.Marshaler {
27037 return innerFunc(ctx)
27038
27039 })
27040 case "ios":
27041 field := field
27042
27043 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27044 defer func() {
27045 if r := recover(); r != nil {
27046 ec.Error(ctx, ec.Recover(ctx, r))
27047 }
27048 }()
27049 res = ec._PodIOChaos_ios(ctx, field, obj)
27050 return res
27051 }
27052
27053 out.Concurrently(i, func() graphql.Marshaler {
27054 return innerFunc(ctx)
27055
27056 })
27057 default:
27058 panic("unknown field " + strconv.Quote(field.Name))
27059 }
27060 }
27061 out.Dispatch()
27062 if invalids > 0 {
27063 return graphql.Null
27064 }
27065 return out
27066 }
27067
27068 var podIOChaosSpecImplementors = []string{"PodIOChaosSpec"}
27069
27070 func (ec *executionContext) _PodIOChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodIOChaosSpec) graphql.Marshaler {
27071 fields := graphql.CollectFields(ec.OperationContext, sel, podIOChaosSpecImplementors)
27072 out := graphql.NewFieldSet(fields)
27073 var invalids uint32
27074 for i, field := range fields {
27075 switch field.Name {
27076 case "__typename":
27077 out.Values[i] = graphql.MarshalString("PodIOChaosSpec")
27078 case "volumeMountPath":
27079 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27080 return ec._PodIOChaosSpec_volumeMountPath(ctx, field, obj)
27081 }
27082
27083 out.Values[i] = innerFunc(ctx)
27084
27085 if out.Values[i] == graphql.Null {
27086 invalids++
27087 }
27088 case "container":
27089 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27090 return ec._PodIOChaosSpec_container(ctx, field, obj)
27091 }
27092
27093 out.Values[i] = innerFunc(ctx)
27094
27095 case "actions":
27096 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27097 return ec._PodIOChaosSpec_actions(ctx, field, obj)
27098 }
27099
27100 out.Values[i] = innerFunc(ctx)
27101
27102 default:
27103 panic("unknown field " + strconv.Quote(field.Name))
27104 }
27105 }
27106 out.Dispatch()
27107 if invalids > 0 {
27108 return graphql.Null
27109 }
27110 return out
27111 }
27112
27113 var podIOChaosStatusImplementors = []string{"PodIOChaosStatus"}
27114
27115 func (ec *executionContext) _PodIOChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodIOChaosStatus) graphql.Marshaler {
27116 fields := graphql.CollectFields(ec.OperationContext, sel, podIOChaosStatusImplementors)
27117 out := graphql.NewFieldSet(fields)
27118 var invalids uint32
27119 for i, field := range fields {
27120 switch field.Name {
27121 case "__typename":
27122 out.Values[i] = graphql.MarshalString("PodIOChaosStatus")
27123 case "pid":
27124 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27125 return ec._PodIOChaosStatus_pid(ctx, field, obj)
27126 }
27127
27128 out.Values[i] = innerFunc(ctx)
27129
27130 case "startTime":
27131 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27132 return ec._PodIOChaosStatus_startTime(ctx, field, obj)
27133 }
27134
27135 out.Values[i] = innerFunc(ctx)
27136
27137 case "failedMessage":
27138 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27139 return ec._PodIOChaosStatus_failedMessage(ctx, field, obj)
27140 }
27141
27142 out.Values[i] = innerFunc(ctx)
27143
27144 case "observedGeneration":
27145 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27146 return ec._PodIOChaosStatus_observedGeneration(ctx, field, obj)
27147 }
27148
27149 out.Values[i] = innerFunc(ctx)
27150
27151 default:
27152 panic("unknown field " + strconv.Quote(field.Name))
27153 }
27154 }
27155 out.Dispatch()
27156 if invalids > 0 {
27157 return graphql.Null
27158 }
27159 return out
27160 }
27161
27162 var podIPImplementors = []string{"PodIP"}
27163
27164 func (ec *executionContext) _PodIP(ctx context.Context, sel ast.SelectionSet, obj *v1.PodIP) graphql.Marshaler {
27165 fields := graphql.CollectFields(ec.OperationContext, sel, podIPImplementors)
27166 out := graphql.NewFieldSet(fields)
27167 var invalids uint32
27168 for i, field := range fields {
27169 switch field.Name {
27170 case "__typename":
27171 out.Values[i] = graphql.MarshalString("PodIP")
27172 case "ip":
27173 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27174 return ec._PodIP_ip(ctx, field, obj)
27175 }
27176
27177 out.Values[i] = innerFunc(ctx)
27178
27179 if out.Values[i] == graphql.Null {
27180 invalids++
27181 }
27182 default:
27183 panic("unknown field " + strconv.Quote(field.Name))
27184 }
27185 }
27186 out.Dispatch()
27187 if invalids > 0 {
27188 return graphql.Null
27189 }
27190 return out
27191 }
27192
27193 var podNetworkChaosImplementors = []string{"PodNetworkChaos"}
27194
27195 func (ec *executionContext) _PodNetworkChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodNetworkChaos) graphql.Marshaler {
27196 fields := graphql.CollectFields(ec.OperationContext, sel, podNetworkChaosImplementors)
27197 out := graphql.NewFieldSet(fields)
27198 var invalids uint32
27199 for i, field := range fields {
27200 switch field.Name {
27201 case "__typename":
27202 out.Values[i] = graphql.MarshalString("PodNetworkChaos")
27203 case "kind":
27204 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27205 return ec._PodNetworkChaos_kind(ctx, field, obj)
27206 }
27207
27208 out.Values[i] = innerFunc(ctx)
27209
27210 if out.Values[i] == graphql.Null {
27211 atomic.AddUint32(&invalids, 1)
27212 }
27213 case "apiVersion":
27214 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27215 return ec._PodNetworkChaos_apiVersion(ctx, field, obj)
27216 }
27217
27218 out.Values[i] = innerFunc(ctx)
27219
27220 if out.Values[i] == graphql.Null {
27221 atomic.AddUint32(&invalids, 1)
27222 }
27223 case "name":
27224 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27225 return ec._PodNetworkChaos_name(ctx, field, obj)
27226 }
27227
27228 out.Values[i] = innerFunc(ctx)
27229
27230 if out.Values[i] == graphql.Null {
27231 atomic.AddUint32(&invalids, 1)
27232 }
27233 case "generateName":
27234 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27235 return ec._PodNetworkChaos_generateName(ctx, field, obj)
27236 }
27237
27238 out.Values[i] = innerFunc(ctx)
27239
27240 if out.Values[i] == graphql.Null {
27241 atomic.AddUint32(&invalids, 1)
27242 }
27243 case "namespace":
27244 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27245 return ec._PodNetworkChaos_namespace(ctx, field, obj)
27246 }
27247
27248 out.Values[i] = innerFunc(ctx)
27249
27250 if out.Values[i] == graphql.Null {
27251 atomic.AddUint32(&invalids, 1)
27252 }
27253 case "selfLink":
27254 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27255 return ec._PodNetworkChaos_selfLink(ctx, field, obj)
27256 }
27257
27258 out.Values[i] = innerFunc(ctx)
27259
27260 if out.Values[i] == graphql.Null {
27261 atomic.AddUint32(&invalids, 1)
27262 }
27263 case "uid":
27264 field := field
27265
27266 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27267 defer func() {
27268 if r := recover(); r != nil {
27269 ec.Error(ctx, ec.Recover(ctx, r))
27270 }
27271 }()
27272 res = ec._PodNetworkChaos_uid(ctx, field, obj)
27273 if res == graphql.Null {
27274 atomic.AddUint32(&invalids, 1)
27275 }
27276 return res
27277 }
27278
27279 out.Concurrently(i, func() graphql.Marshaler {
27280 return innerFunc(ctx)
27281
27282 })
27283 case "resourceVersion":
27284 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27285 return ec._PodNetworkChaos_resourceVersion(ctx, field, obj)
27286 }
27287
27288 out.Values[i] = innerFunc(ctx)
27289
27290 if out.Values[i] == graphql.Null {
27291 atomic.AddUint32(&invalids, 1)
27292 }
27293 case "generation":
27294 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27295 return ec._PodNetworkChaos_generation(ctx, field, obj)
27296 }
27297
27298 out.Values[i] = innerFunc(ctx)
27299
27300 if out.Values[i] == graphql.Null {
27301 atomic.AddUint32(&invalids, 1)
27302 }
27303 case "creationTimestamp":
27304 field := field
27305
27306 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27307 defer func() {
27308 if r := recover(); r != nil {
27309 ec.Error(ctx, ec.Recover(ctx, r))
27310 }
27311 }()
27312 res = ec._PodNetworkChaos_creationTimestamp(ctx, field, obj)
27313 if res == graphql.Null {
27314 atomic.AddUint32(&invalids, 1)
27315 }
27316 return res
27317 }
27318
27319 out.Concurrently(i, func() graphql.Marshaler {
27320 return innerFunc(ctx)
27321
27322 })
27323 case "deletionTimestamp":
27324 field := field
27325
27326 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27327 defer func() {
27328 if r := recover(); r != nil {
27329 ec.Error(ctx, ec.Recover(ctx, r))
27330 }
27331 }()
27332 res = ec._PodNetworkChaos_deletionTimestamp(ctx, field, obj)
27333 return res
27334 }
27335
27336 out.Concurrently(i, func() graphql.Marshaler {
27337 return innerFunc(ctx)
27338
27339 })
27340 case "deletionGracePeriodSeconds":
27341 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27342 return ec._PodNetworkChaos_deletionGracePeriodSeconds(ctx, field, obj)
27343 }
27344
27345 out.Values[i] = innerFunc(ctx)
27346
27347 case "labels":
27348 field := field
27349
27350 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27351 defer func() {
27352 if r := recover(); r != nil {
27353 ec.Error(ctx, ec.Recover(ctx, r))
27354 }
27355 }()
27356 res = ec._PodNetworkChaos_labels(ctx, field, obj)
27357 return res
27358 }
27359
27360 out.Concurrently(i, func() graphql.Marshaler {
27361 return innerFunc(ctx)
27362
27363 })
27364 case "annotations":
27365 field := field
27366
27367 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27368 defer func() {
27369 if r := recover(); r != nil {
27370 ec.Error(ctx, ec.Recover(ctx, r))
27371 }
27372 }()
27373 res = ec._PodNetworkChaos_annotations(ctx, field, obj)
27374 return res
27375 }
27376
27377 out.Concurrently(i, func() graphql.Marshaler {
27378 return innerFunc(ctx)
27379
27380 })
27381 case "ownerReferences":
27382 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27383 return ec._PodNetworkChaos_ownerReferences(ctx, field, obj)
27384 }
27385
27386 out.Values[i] = innerFunc(ctx)
27387
27388 case "finalizers":
27389 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27390 return ec._PodNetworkChaos_finalizers(ctx, field, obj)
27391 }
27392
27393 out.Values[i] = innerFunc(ctx)
27394
27395 case "spec":
27396 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27397 return ec._PodNetworkChaos_spec(ctx, field, obj)
27398 }
27399
27400 out.Values[i] = innerFunc(ctx)
27401
27402 if out.Values[i] == graphql.Null {
27403 atomic.AddUint32(&invalids, 1)
27404 }
27405 case "status":
27406 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27407 return ec._PodNetworkChaos_status(ctx, field, obj)
27408 }
27409
27410 out.Values[i] = innerFunc(ctx)
27411
27412 if out.Values[i] == graphql.Null {
27413 atomic.AddUint32(&invalids, 1)
27414 }
27415 case "pod":
27416 field := field
27417
27418 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27419 defer func() {
27420 if r := recover(); r != nil {
27421 ec.Error(ctx, ec.Recover(ctx, r))
27422 }
27423 }()
27424 res = ec._PodNetworkChaos_pod(ctx, field, obj)
27425 if res == graphql.Null {
27426 atomic.AddUint32(&invalids, 1)
27427 }
27428 return res
27429 }
27430
27431 out.Concurrently(i, func() graphql.Marshaler {
27432 return innerFunc(ctx)
27433
27434 })
27435 default:
27436 panic("unknown field " + strconv.Quote(field.Name))
27437 }
27438 }
27439 out.Dispatch()
27440 if invalids > 0 {
27441 return graphql.Null
27442 }
27443 return out
27444 }
27445
27446 var podNetworkChaosSpecImplementors = []string{"PodNetworkChaosSpec"}
27447
27448 func (ec *executionContext) _PodNetworkChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodNetworkChaosSpec) graphql.Marshaler {
27449 fields := graphql.CollectFields(ec.OperationContext, sel, podNetworkChaosSpecImplementors)
27450 out := graphql.NewFieldSet(fields)
27451 var invalids uint32
27452 for i, field := range fields {
27453 switch field.Name {
27454 case "__typename":
27455 out.Values[i] = graphql.MarshalString("PodNetworkChaosSpec")
27456 case "ipSets":
27457 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27458 return ec._PodNetworkChaosSpec_ipSets(ctx, field, obj)
27459 }
27460
27461 out.Values[i] = innerFunc(ctx)
27462
27463 case "iptables":
27464 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27465 return ec._PodNetworkChaosSpec_iptables(ctx, field, obj)
27466 }
27467
27468 out.Values[i] = innerFunc(ctx)
27469
27470 case "trafficControls":
27471 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27472 return ec._PodNetworkChaosSpec_trafficControls(ctx, field, obj)
27473 }
27474
27475 out.Values[i] = innerFunc(ctx)
27476
27477 default:
27478 panic("unknown field " + strconv.Quote(field.Name))
27479 }
27480 }
27481 out.Dispatch()
27482 if invalids > 0 {
27483 return graphql.Null
27484 }
27485 return out
27486 }
27487
27488 var podNetworkChaosStatusImplementors = []string{"PodNetworkChaosStatus"}
27489
27490 func (ec *executionContext) _PodNetworkChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodNetworkChaosStatus) graphql.Marshaler {
27491 fields := graphql.CollectFields(ec.OperationContext, sel, podNetworkChaosStatusImplementors)
27492 out := graphql.NewFieldSet(fields)
27493 var invalids uint32
27494 for i, field := range fields {
27495 switch field.Name {
27496 case "__typename":
27497 out.Values[i] = graphql.MarshalString("PodNetworkChaosStatus")
27498 case "failedMessage":
27499 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27500 return ec._PodNetworkChaosStatus_failedMessage(ctx, field, obj)
27501 }
27502
27503 out.Values[i] = innerFunc(ctx)
27504
27505 if out.Values[i] == graphql.Null {
27506 invalids++
27507 }
27508 case "observedGeneration":
27509 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27510 return ec._PodNetworkChaosStatus_observedGeneration(ctx, field, obj)
27511 }
27512
27513 out.Values[i] = innerFunc(ctx)
27514
27515 if out.Values[i] == graphql.Null {
27516 invalids++
27517 }
27518 default:
27519 panic("unknown field " + strconv.Quote(field.Name))
27520 }
27521 }
27522 out.Dispatch()
27523 if invalids > 0 {
27524 return graphql.Null
27525 }
27526 return out
27527 }
27528
27529 var podSelectorSpecImplementors = []string{"PodSelectorSpec"}
27530
27531 func (ec *executionContext) _PodSelectorSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodSelectorSpec) graphql.Marshaler {
27532 fields := graphql.CollectFields(ec.OperationContext, sel, podSelectorSpecImplementors)
27533 out := graphql.NewFieldSet(fields)
27534 var invalids uint32
27535 for i, field := range fields {
27536 switch field.Name {
27537 case "__typename":
27538 out.Values[i] = graphql.MarshalString("PodSelectorSpec")
27539 case "namespaces":
27540 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27541 return ec._PodSelectorSpec_namespaces(ctx, field, obj)
27542 }
27543
27544 out.Values[i] = innerFunc(ctx)
27545
27546 case "nodes":
27547 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27548 return ec._PodSelectorSpec_nodes(ctx, field, obj)
27549 }
27550
27551 out.Values[i] = innerFunc(ctx)
27552
27553 case "pods":
27554 field := field
27555
27556 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27557 defer func() {
27558 if r := recover(); r != nil {
27559 ec.Error(ctx, ec.Recover(ctx, r))
27560 }
27561 }()
27562 res = ec._PodSelectorSpec_pods(ctx, field, obj)
27563 return res
27564 }
27565
27566 out.Concurrently(i, func() graphql.Marshaler {
27567 return innerFunc(ctx)
27568
27569 })
27570 case "nodeSelectors":
27571 field := field
27572
27573 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27574 defer func() {
27575 if r := recover(); r != nil {
27576 ec.Error(ctx, ec.Recover(ctx, r))
27577 }
27578 }()
27579 res = ec._PodSelectorSpec_nodeSelectors(ctx, field, obj)
27580 return res
27581 }
27582
27583 out.Concurrently(i, func() graphql.Marshaler {
27584 return innerFunc(ctx)
27585
27586 })
27587 case "fieldSelectors":
27588 field := field
27589
27590 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27591 defer func() {
27592 if r := recover(); r != nil {
27593 ec.Error(ctx, ec.Recover(ctx, r))
27594 }
27595 }()
27596 res = ec._PodSelectorSpec_fieldSelectors(ctx, field, obj)
27597 return res
27598 }
27599
27600 out.Concurrently(i, func() graphql.Marshaler {
27601 return innerFunc(ctx)
27602
27603 })
27604 case "labelSelectors":
27605 field := field
27606
27607 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27608 defer func() {
27609 if r := recover(); r != nil {
27610 ec.Error(ctx, ec.Recover(ctx, r))
27611 }
27612 }()
27613 res = ec._PodSelectorSpec_labelSelectors(ctx, field, obj)
27614 return res
27615 }
27616
27617 out.Concurrently(i, func() graphql.Marshaler {
27618 return innerFunc(ctx)
27619
27620 })
27621 case "annotationSelectors":
27622 field := field
27623
27624 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27625 defer func() {
27626 if r := recover(); r != nil {
27627 ec.Error(ctx, ec.Recover(ctx, r))
27628 }
27629 }()
27630 res = ec._PodSelectorSpec_annotationSelectors(ctx, field, obj)
27631 return res
27632 }
27633
27634 out.Concurrently(i, func() graphql.Marshaler {
27635 return innerFunc(ctx)
27636
27637 })
27638 case "podPhaseSelectors":
27639 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27640 return ec._PodSelectorSpec_podPhaseSelectors(ctx, field, obj)
27641 }
27642
27643 out.Values[i] = innerFunc(ctx)
27644
27645 default:
27646 panic("unknown field " + strconv.Quote(field.Name))
27647 }
27648 }
27649 out.Dispatch()
27650 if invalids > 0 {
27651 return graphql.Null
27652 }
27653 return out
27654 }
27655
27656 var podSpecImplementors = []string{"PodSpec"}
27657
27658 func (ec *executionContext) _PodSpec(ctx context.Context, sel ast.SelectionSet, obj *v1.PodSpec) graphql.Marshaler {
27659 fields := graphql.CollectFields(ec.OperationContext, sel, podSpecImplementors)
27660 out := graphql.NewFieldSet(fields)
27661 var invalids uint32
27662 for i, field := range fields {
27663 switch field.Name {
27664 case "__typename":
27665 out.Values[i] = graphql.MarshalString("PodSpec")
27666 case "nodeName":
27667 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27668 return ec._PodSpec_nodeName(ctx, field, obj)
27669 }
27670
27671 out.Values[i] = innerFunc(ctx)
27672
27673 if out.Values[i] == graphql.Null {
27674 invalids++
27675 }
27676 default:
27677 panic("unknown field " + strconv.Quote(field.Name))
27678 }
27679 }
27680 out.Dispatch()
27681 if invalids > 0 {
27682 return graphql.Null
27683 }
27684 return out
27685 }
27686
27687 var podStatusImplementors = []string{"PodStatus"}
27688
27689 func (ec *executionContext) _PodStatus(ctx context.Context, sel ast.SelectionSet, obj *v1.PodStatus) graphql.Marshaler {
27690 fields := graphql.CollectFields(ec.OperationContext, sel, podStatusImplementors)
27691 out := graphql.NewFieldSet(fields)
27692 var invalids uint32
27693 for i, field := range fields {
27694 switch field.Name {
27695 case "__typename":
27696 out.Values[i] = graphql.MarshalString("PodStatus")
27697 case "phase":
27698 field := field
27699
27700 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27701 defer func() {
27702 if r := recover(); r != nil {
27703 ec.Error(ctx, ec.Recover(ctx, r))
27704 }
27705 }()
27706 res = ec._PodStatus_phase(ctx, field, obj)
27707 if res == graphql.Null {
27708 atomic.AddUint32(&invalids, 1)
27709 }
27710 return res
27711 }
27712
27713 out.Concurrently(i, func() graphql.Marshaler {
27714 return innerFunc(ctx)
27715
27716 })
27717 case "conditions":
27718 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27719 return ec._PodStatus_conditions(ctx, field, obj)
27720 }
27721
27722 out.Values[i] = innerFunc(ctx)
27723
27724 case "message":
27725 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27726 return ec._PodStatus_message(ctx, field, obj)
27727 }
27728
27729 out.Values[i] = innerFunc(ctx)
27730
27731 if out.Values[i] == graphql.Null {
27732 atomic.AddUint32(&invalids, 1)
27733 }
27734 case "reason":
27735 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27736 return ec._PodStatus_reason(ctx, field, obj)
27737 }
27738
27739 out.Values[i] = innerFunc(ctx)
27740
27741 if out.Values[i] == graphql.Null {
27742 atomic.AddUint32(&invalids, 1)
27743 }
27744 case "nominatedNodeName":
27745 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27746 return ec._PodStatus_nominatedNodeName(ctx, field, obj)
27747 }
27748
27749 out.Values[i] = innerFunc(ctx)
27750
27751 if out.Values[i] == graphql.Null {
27752 atomic.AddUint32(&invalids, 1)
27753 }
27754 case "hostIP":
27755 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27756 return ec._PodStatus_hostIP(ctx, field, obj)
27757 }
27758
27759 out.Values[i] = innerFunc(ctx)
27760
27761 if out.Values[i] == graphql.Null {
27762 atomic.AddUint32(&invalids, 1)
27763 }
27764 case "podIP":
27765 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27766 return ec._PodStatus_podIP(ctx, field, obj)
27767 }
27768
27769 out.Values[i] = innerFunc(ctx)
27770
27771 if out.Values[i] == graphql.Null {
27772 atomic.AddUint32(&invalids, 1)
27773 }
27774 case "podIPs":
27775 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27776 return ec._PodStatus_podIPs(ctx, field, obj)
27777 }
27778
27779 out.Values[i] = innerFunc(ctx)
27780
27781 case "startTime":
27782 field := field
27783
27784 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27785 defer func() {
27786 if r := recover(); r != nil {
27787 ec.Error(ctx, ec.Recover(ctx, r))
27788 }
27789 }()
27790 res = ec._PodStatus_startTime(ctx, field, obj)
27791 return res
27792 }
27793
27794 out.Concurrently(i, func() graphql.Marshaler {
27795 return innerFunc(ctx)
27796
27797 })
27798 case "initContainerStatuses":
27799 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27800 return ec._PodStatus_initContainerStatuses(ctx, field, obj)
27801 }
27802
27803 out.Values[i] = innerFunc(ctx)
27804
27805 case "containerStatuses":
27806 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27807 return ec._PodStatus_containerStatuses(ctx, field, obj)
27808 }
27809
27810 out.Values[i] = innerFunc(ctx)
27811
27812 case "qosClass":
27813 field := field
27814
27815 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27816 defer func() {
27817 if r := recover(); r != nil {
27818 ec.Error(ctx, ec.Recover(ctx, r))
27819 }
27820 }()
27821 res = ec._PodStatus_qosClass(ctx, field, obj)
27822 if res == graphql.Null {
27823 atomic.AddUint32(&invalids, 1)
27824 }
27825 return res
27826 }
27827
27828 out.Concurrently(i, func() graphql.Marshaler {
27829 return innerFunc(ctx)
27830
27831 })
27832 case "ephemeralContainerStatuses":
27833 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27834 return ec._PodStatus_ephemeralContainerStatuses(ctx, field, obj)
27835 }
27836
27837 out.Values[i] = innerFunc(ctx)
27838
27839 default:
27840 panic("unknown field " + strconv.Quote(field.Name))
27841 }
27842 }
27843 out.Dispatch()
27844 if invalids > 0 {
27845 return graphql.Null
27846 }
27847 return out
27848 }
27849
27850 var podStressChaosImplementors = []string{"PodStressChaos"}
27851
27852 func (ec *executionContext) _PodStressChaos(ctx context.Context, sel ast.SelectionSet, obj *model.PodStressChaos) graphql.Marshaler {
27853 fields := graphql.CollectFields(ec.OperationContext, sel, podStressChaosImplementors)
27854 out := graphql.NewFieldSet(fields)
27855 var invalids uint32
27856 for i, field := range fields {
27857 switch field.Name {
27858 case "__typename":
27859 out.Values[i] = graphql.MarshalString("PodStressChaos")
27860 case "stressChaos":
27861 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27862 return ec._PodStressChaos_stressChaos(ctx, field, obj)
27863 }
27864
27865 out.Values[i] = innerFunc(ctx)
27866
27867 if out.Values[i] == graphql.Null {
27868 atomic.AddUint32(&invalids, 1)
27869 }
27870 case "pod":
27871 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27872 return ec._PodStressChaos_pod(ctx, field, obj)
27873 }
27874
27875 out.Values[i] = innerFunc(ctx)
27876
27877 if out.Values[i] == graphql.Null {
27878 atomic.AddUint32(&invalids, 1)
27879 }
27880 case "cgroups":
27881 field := field
27882
27883 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27884 defer func() {
27885 if r := recover(); r != nil {
27886 ec.Error(ctx, ec.Recover(ctx, r))
27887 }
27888 }()
27889 res = ec._PodStressChaos_cgroups(ctx, field, obj)
27890 if res == graphql.Null {
27891 atomic.AddUint32(&invalids, 1)
27892 }
27893 return res
27894 }
27895
27896 out.Concurrently(i, func() graphql.Marshaler {
27897 return innerFunc(ctx)
27898
27899 })
27900 case "processStress":
27901 field := field
27902
27903 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27904 defer func() {
27905 if r := recover(); r != nil {
27906 ec.Error(ctx, ec.Recover(ctx, r))
27907 }
27908 }()
27909 res = ec._PodStressChaos_processStress(ctx, field, obj)
27910 return res
27911 }
27912
27913 out.Concurrently(i, func() graphql.Marshaler {
27914 return innerFunc(ctx)
27915
27916 })
27917 default:
27918 panic("unknown field " + strconv.Quote(field.Name))
27919 }
27920 }
27921 out.Dispatch()
27922 if invalids > 0 {
27923 return graphql.Null
27924 }
27925 return out
27926 }
27927
27928 var processImplementors = []string{"Process"}
27929
27930 func (ec *executionContext) _Process(ctx context.Context, sel ast.SelectionSet, obj *model.Process) graphql.Marshaler {
27931 fields := graphql.CollectFields(ec.OperationContext, sel, processImplementors)
27932 out := graphql.NewFieldSet(fields)
27933 var invalids uint32
27934 for i, field := range fields {
27935 switch field.Name {
27936 case "__typename":
27937 out.Values[i] = graphql.MarshalString("Process")
27938 case "pod":
27939 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27940 return ec._Process_pod(ctx, field, obj)
27941 }
27942
27943 out.Values[i] = innerFunc(ctx)
27944
27945 if out.Values[i] == graphql.Null {
27946 atomic.AddUint32(&invalids, 1)
27947 }
27948 case "pid":
27949 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27950 return ec._Process_pid(ctx, field, obj)
27951 }
27952
27953 out.Values[i] = innerFunc(ctx)
27954
27955 if out.Values[i] == graphql.Null {
27956 atomic.AddUint32(&invalids, 1)
27957 }
27958 case "command":
27959 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27960 return ec._Process_command(ctx, field, obj)
27961 }
27962
27963 out.Values[i] = innerFunc(ctx)
27964
27965 if out.Values[i] == graphql.Null {
27966 atomic.AddUint32(&invalids, 1)
27967 }
27968 case "fds":
27969 field := field
27970
27971 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
27972 defer func() {
27973 if r := recover(); r != nil {
27974 ec.Error(ctx, ec.Recover(ctx, r))
27975 }
27976 }()
27977 res = ec._Process_fds(ctx, field, obj)
27978 return res
27979 }
27980
27981 out.Concurrently(i, func() graphql.Marshaler {
27982 return innerFunc(ctx)
27983
27984 })
27985 default:
27986 panic("unknown field " + strconv.Quote(field.Name))
27987 }
27988 }
27989 out.Dispatch()
27990 if invalids > 0 {
27991 return graphql.Null
27992 }
27993 return out
27994 }
27995
27996 var processStressImplementors = []string{"ProcessStress"}
27997
27998 func (ec *executionContext) _ProcessStress(ctx context.Context, sel ast.SelectionSet, obj *model.ProcessStress) graphql.Marshaler {
27999 fields := graphql.CollectFields(ec.OperationContext, sel, processStressImplementors)
28000 out := graphql.NewFieldSet(fields)
28001 var invalids uint32
28002 for i, field := range fields {
28003 switch field.Name {
28004 case "__typename":
28005 out.Values[i] = graphql.MarshalString("ProcessStress")
28006 case "process":
28007 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28008 return ec._ProcessStress_process(ctx, field, obj)
28009 }
28010
28011 out.Values[i] = innerFunc(ctx)
28012
28013 if out.Values[i] == graphql.Null {
28014 invalids++
28015 }
28016 case "cgroup":
28017 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28018 return ec._ProcessStress_cgroup(ctx, field, obj)
28019 }
28020
28021 out.Values[i] = innerFunc(ctx)
28022
28023 if out.Values[i] == graphql.Null {
28024 invalids++
28025 }
28026 default:
28027 panic("unknown field " + strconv.Quote(field.Name))
28028 }
28029 }
28030 out.Dispatch()
28031 if invalids > 0 {
28032 return graphql.Null
28033 }
28034 return out
28035 }
28036
28037 var queryImplementors = []string{"Query"}
28038
28039 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
28040 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
28041 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
28042 Object: "Query",
28043 })
28044
28045 out := graphql.NewFieldSet(fields)
28046 var invalids uint32
28047 for i, field := range fields {
28048 innerCtx := graphql.WithRootFieldContext(ctx, &graphql.RootFieldContext{
28049 Object: field.Name,
28050 Field: field,
28051 })
28052
28053 switch field.Name {
28054 case "__typename":
28055 out.Values[i] = graphql.MarshalString("Query")
28056 case "namespace":
28057 field := field
28058
28059 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28060 defer func() {
28061 if r := recover(); r != nil {
28062 ec.Error(ctx, ec.Recover(ctx, r))
28063 }
28064 }()
28065 res = ec._Query_namespace(ctx, field)
28066 return res
28067 }
28068
28069 rrm := func(ctx context.Context) graphql.Marshaler {
28070 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
28071 }
28072
28073 out.Concurrently(i, func() graphql.Marshaler {
28074 return rrm(innerCtx)
28075 })
28076 case "pods":
28077 field := field
28078
28079 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28080 defer func() {
28081 if r := recover(); r != nil {
28082 ec.Error(ctx, ec.Recover(ctx, r))
28083 }
28084 }()
28085 res = ec._Query_pods(ctx, field)
28086 return res
28087 }
28088
28089 rrm := func(ctx context.Context) graphql.Marshaler {
28090 return ec.OperationContext.RootResolverMiddleware(ctx, innerFunc)
28091 }
28092
28093 out.Concurrently(i, func() graphql.Marshaler {
28094 return rrm(innerCtx)
28095 })
28096 case "__type":
28097 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28098 return ec._Query___type(ctx, field)
28099 }
28100
28101 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
28102
28103 case "__schema":
28104 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28105 return ec._Query___schema(ctx, field)
28106 }
28107
28108 out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, innerFunc)
28109
28110 default:
28111 panic("unknown field " + strconv.Quote(field.Name))
28112 }
28113 }
28114 out.Dispatch()
28115 if invalids > 0 {
28116 return graphql.Null
28117 }
28118 return out
28119 }
28120
28121 var rateSpecImplementors = []string{"RateSpec"}
28122
28123 func (ec *executionContext) _RateSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RateSpec) graphql.Marshaler {
28124 fields := graphql.CollectFields(ec.OperationContext, sel, rateSpecImplementors)
28125 out := graphql.NewFieldSet(fields)
28126 var invalids uint32
28127 for i, field := range fields {
28128 switch field.Name {
28129 case "__typename":
28130 out.Values[i] = graphql.MarshalString("RateSpec")
28131 case "rate":
28132 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28133 return ec._RateSpec_rate(ctx, field, obj)
28134 }
28135
28136 out.Values[i] = innerFunc(ctx)
28137
28138 if out.Values[i] == graphql.Null {
28139 invalids++
28140 }
28141 default:
28142 panic("unknown field " + strconv.Quote(field.Name))
28143 }
28144 }
28145 out.Dispatch()
28146 if invalids > 0 {
28147 return graphql.Null
28148 }
28149 return out
28150 }
28151
28152 var rawIPSetImplementors = []string{"RawIPSet"}
28153
28154 func (ec *executionContext) _RawIPSet(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RawIPSet) graphql.Marshaler {
28155 fields := graphql.CollectFields(ec.OperationContext, sel, rawIPSetImplementors)
28156 out := graphql.NewFieldSet(fields)
28157 var invalids uint32
28158 for i, field := range fields {
28159 switch field.Name {
28160 case "__typename":
28161 out.Values[i] = graphql.MarshalString("RawIPSet")
28162 case "name":
28163 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28164 return ec._RawIPSet_name(ctx, field, obj)
28165 }
28166
28167 out.Values[i] = innerFunc(ctx)
28168
28169 if out.Values[i] == graphql.Null {
28170 atomic.AddUint32(&invalids, 1)
28171 }
28172 case "ipSetType":
28173 field := field
28174
28175 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28176 defer func() {
28177 if r := recover(); r != nil {
28178 ec.Error(ctx, ec.Recover(ctx, r))
28179 }
28180 }()
28181 res = ec._RawIPSet_ipSetType(ctx, field, obj)
28182 if res == graphql.Null {
28183 atomic.AddUint32(&invalids, 1)
28184 }
28185 return res
28186 }
28187
28188 out.Concurrently(i, func() graphql.Marshaler {
28189 return innerFunc(ctx)
28190
28191 })
28192 case "cidrs":
28193 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28194 return ec._RawIPSet_cidrs(ctx, field, obj)
28195 }
28196
28197 out.Values[i] = innerFunc(ctx)
28198
28199 if out.Values[i] == graphql.Null {
28200 atomic.AddUint32(&invalids, 1)
28201 }
28202 case "cidrAndPorts":
28203 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28204 return ec._RawIPSet_cidrAndPorts(ctx, field, obj)
28205 }
28206
28207 out.Values[i] = innerFunc(ctx)
28208
28209 case "setNames":
28210 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28211 return ec._RawIPSet_setNames(ctx, field, obj)
28212 }
28213
28214 out.Values[i] = innerFunc(ctx)
28215
28216 if out.Values[i] == graphql.Null {
28217 atomic.AddUint32(&invalids, 1)
28218 }
28219 case "source":
28220 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28221 return ec._RawIPSet_source(ctx, field, obj)
28222 }
28223
28224 out.Values[i] = innerFunc(ctx)
28225
28226 if out.Values[i] == graphql.Null {
28227 atomic.AddUint32(&invalids, 1)
28228 }
28229 default:
28230 panic("unknown field " + strconv.Quote(field.Name))
28231 }
28232 }
28233 out.Dispatch()
28234 if invalids > 0 {
28235 return graphql.Null
28236 }
28237 return out
28238 }
28239
28240 var rawIptablesImplementors = []string{"RawIptables"}
28241
28242 func (ec *executionContext) _RawIptables(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RawIptables) graphql.Marshaler {
28243 fields := graphql.CollectFields(ec.OperationContext, sel, rawIptablesImplementors)
28244 out := graphql.NewFieldSet(fields)
28245 var invalids uint32
28246 for i, field := range fields {
28247 switch field.Name {
28248 case "__typename":
28249 out.Values[i] = graphql.MarshalString("RawIptables")
28250 case "name":
28251 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28252 return ec._RawIptables_name(ctx, field, obj)
28253 }
28254
28255 out.Values[i] = innerFunc(ctx)
28256
28257 if out.Values[i] == graphql.Null {
28258 atomic.AddUint32(&invalids, 1)
28259 }
28260 case "ipSets":
28261 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28262 return ec._RawIptables_ipSets(ctx, field, obj)
28263 }
28264
28265 out.Values[i] = innerFunc(ctx)
28266
28267 if out.Values[i] == graphql.Null {
28268 atomic.AddUint32(&invalids, 1)
28269 }
28270 case "direction":
28271 field := field
28272
28273 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28274 defer func() {
28275 if r := recover(); r != nil {
28276 ec.Error(ctx, ec.Recover(ctx, r))
28277 }
28278 }()
28279 res = ec._RawIptables_direction(ctx, field, obj)
28280 if res == graphql.Null {
28281 atomic.AddUint32(&invalids, 1)
28282 }
28283 return res
28284 }
28285
28286 out.Concurrently(i, func() graphql.Marshaler {
28287 return innerFunc(ctx)
28288
28289 })
28290 case "source":
28291 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28292 return ec._RawIptables_source(ctx, field, obj)
28293 }
28294
28295 out.Values[i] = innerFunc(ctx)
28296
28297 if out.Values[i] == graphql.Null {
28298 atomic.AddUint32(&invalids, 1)
28299 }
28300 case "device":
28301 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28302 return ec._RawIptables_device(ctx, field, obj)
28303 }
28304
28305 out.Values[i] = innerFunc(ctx)
28306
28307 default:
28308 panic("unknown field " + strconv.Quote(field.Name))
28309 }
28310 }
28311 out.Dispatch()
28312 if invalids > 0 {
28313 return graphql.Null
28314 }
28315 return out
28316 }
28317
28318 var rawTrafficControlImplementors = []string{"RawTrafficControl"}
28319
28320 func (ec *executionContext) _RawTrafficControl(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RawTrafficControl) graphql.Marshaler {
28321 fields := graphql.CollectFields(ec.OperationContext, sel, rawTrafficControlImplementors)
28322 out := graphql.NewFieldSet(fields)
28323 var invalids uint32
28324 for i, field := range fields {
28325 switch field.Name {
28326 case "__typename":
28327 out.Values[i] = graphql.MarshalString("RawTrafficControl")
28328 case "type":
28329 field := field
28330
28331 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28332 defer func() {
28333 if r := recover(); r != nil {
28334 ec.Error(ctx, ec.Recover(ctx, r))
28335 }
28336 }()
28337 res = ec._RawTrafficControl_type(ctx, field, obj)
28338 if res == graphql.Null {
28339 atomic.AddUint32(&invalids, 1)
28340 }
28341 return res
28342 }
28343
28344 out.Concurrently(i, func() graphql.Marshaler {
28345 return innerFunc(ctx)
28346
28347 })
28348 case "delay":
28349 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28350 return ec._RawTrafficControl_delay(ctx, field, obj)
28351 }
28352
28353 out.Values[i] = innerFunc(ctx)
28354
28355 case "loss":
28356 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28357 return ec._RawTrafficControl_loss(ctx, field, obj)
28358 }
28359
28360 out.Values[i] = innerFunc(ctx)
28361
28362 case "duplicate":
28363 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28364 return ec._RawTrafficControl_duplicate(ctx, field, obj)
28365 }
28366
28367 out.Values[i] = innerFunc(ctx)
28368
28369 case "corrupt":
28370 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28371 return ec._RawTrafficControl_corrupt(ctx, field, obj)
28372 }
28373
28374 out.Values[i] = innerFunc(ctx)
28375
28376 case "bandwidth":
28377 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28378 return ec._RawTrafficControl_bandwidth(ctx, field, obj)
28379 }
28380
28381 out.Values[i] = innerFunc(ctx)
28382
28383 case "rate":
28384 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28385 return ec._RawTrafficControl_rate(ctx, field, obj)
28386 }
28387
28388 out.Values[i] = innerFunc(ctx)
28389
28390 case "ipSet":
28391 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28392 return ec._RawTrafficControl_ipSet(ctx, field, obj)
28393 }
28394
28395 out.Values[i] = innerFunc(ctx)
28396
28397 case "source":
28398 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28399 return ec._RawTrafficControl_source(ctx, field, obj)
28400 }
28401
28402 out.Values[i] = innerFunc(ctx)
28403
28404 case "device":
28405 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28406 return ec._RawTrafficControl_device(ctx, field, obj)
28407 }
28408
28409 out.Values[i] = innerFunc(ctx)
28410
28411 default:
28412 panic("unknown field " + strconv.Quote(field.Name))
28413 }
28414 }
28415 out.Dispatch()
28416 if invalids > 0 {
28417 return graphql.Null
28418 }
28419 return out
28420 }
28421
28422 var recordImplementors = []string{"Record"}
28423
28424 func (ec *executionContext) _Record(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.Record) graphql.Marshaler {
28425 fields := graphql.CollectFields(ec.OperationContext, sel, recordImplementors)
28426 out := graphql.NewFieldSet(fields)
28427 var invalids uint32
28428 for i, field := range fields {
28429 switch field.Name {
28430 case "__typename":
28431 out.Values[i] = graphql.MarshalString("Record")
28432 case "id":
28433 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28434 return ec._Record_id(ctx, field, obj)
28435 }
28436
28437 out.Values[i] = innerFunc(ctx)
28438
28439 if out.Values[i] == graphql.Null {
28440 atomic.AddUint32(&invalids, 1)
28441 }
28442 case "selectorKey":
28443 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28444 return ec._Record_selectorKey(ctx, field, obj)
28445 }
28446
28447 out.Values[i] = innerFunc(ctx)
28448
28449 if out.Values[i] == graphql.Null {
28450 atomic.AddUint32(&invalids, 1)
28451 }
28452 case "phase":
28453 field := field
28454
28455 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28456 defer func() {
28457 if r := recover(); r != nil {
28458 ec.Error(ctx, ec.Recover(ctx, r))
28459 }
28460 }()
28461 res = ec._Record_phase(ctx, field, obj)
28462 if res == graphql.Null {
28463 atomic.AddUint32(&invalids, 1)
28464 }
28465 return res
28466 }
28467
28468 out.Concurrently(i, func() graphql.Marshaler {
28469 return innerFunc(ctx)
28470
28471 })
28472 default:
28473 panic("unknown field " + strconv.Quote(field.Name))
28474 }
28475 }
28476 out.Dispatch()
28477 if invalids > 0 {
28478 return graphql.Null
28479 }
28480 return out
28481 }
28482
28483 var reorderSpecImplementors = []string{"ReorderSpec"}
28484
28485 func (ec *executionContext) _ReorderSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.ReorderSpec) graphql.Marshaler {
28486 fields := graphql.CollectFields(ec.OperationContext, sel, reorderSpecImplementors)
28487 out := graphql.NewFieldSet(fields)
28488 var invalids uint32
28489 for i, field := range fields {
28490 switch field.Name {
28491 case "__typename":
28492 out.Values[i] = graphql.MarshalString("ReorderSpec")
28493 case "reorder":
28494 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28495 return ec._ReorderSpec_reorder(ctx, field, obj)
28496 }
28497
28498 out.Values[i] = innerFunc(ctx)
28499
28500 if out.Values[i] == graphql.Null {
28501 invalids++
28502 }
28503 case "correlation":
28504 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28505 return ec._ReorderSpec_correlation(ctx, field, obj)
28506 }
28507
28508 out.Values[i] = innerFunc(ctx)
28509
28510 case "gap":
28511 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28512 return ec._ReorderSpec_gap(ctx, field, obj)
28513 }
28514
28515 out.Values[i] = innerFunc(ctx)
28516
28517 default:
28518 panic("unknown field " + strconv.Quote(field.Name))
28519 }
28520 }
28521 out.Dispatch()
28522 if invalids > 0 {
28523 return graphql.Null
28524 }
28525 return out
28526 }
28527
28528 var stressChaosImplementors = []string{"StressChaos"}
28529
28530 func (ec *executionContext) _StressChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.StressChaos) graphql.Marshaler {
28531 fields := graphql.CollectFields(ec.OperationContext, sel, stressChaosImplementors)
28532 out := graphql.NewFieldSet(fields)
28533 var invalids uint32
28534 for i, field := range fields {
28535 switch field.Name {
28536 case "__typename":
28537 out.Values[i] = graphql.MarshalString("StressChaos")
28538 case "kind":
28539 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28540 return ec._StressChaos_kind(ctx, field, obj)
28541 }
28542
28543 out.Values[i] = innerFunc(ctx)
28544
28545 if out.Values[i] == graphql.Null {
28546 atomic.AddUint32(&invalids, 1)
28547 }
28548 case "apiVersion":
28549 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28550 return ec._StressChaos_apiVersion(ctx, field, obj)
28551 }
28552
28553 out.Values[i] = innerFunc(ctx)
28554
28555 if out.Values[i] == graphql.Null {
28556 atomic.AddUint32(&invalids, 1)
28557 }
28558 case "name":
28559 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28560 return ec._StressChaos_name(ctx, field, obj)
28561 }
28562
28563 out.Values[i] = innerFunc(ctx)
28564
28565 if out.Values[i] == graphql.Null {
28566 atomic.AddUint32(&invalids, 1)
28567 }
28568 case "generateName":
28569 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28570 return ec._StressChaos_generateName(ctx, field, obj)
28571 }
28572
28573 out.Values[i] = innerFunc(ctx)
28574
28575 if out.Values[i] == graphql.Null {
28576 atomic.AddUint32(&invalids, 1)
28577 }
28578 case "namespace":
28579 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28580 return ec._StressChaos_namespace(ctx, field, obj)
28581 }
28582
28583 out.Values[i] = innerFunc(ctx)
28584
28585 if out.Values[i] == graphql.Null {
28586 atomic.AddUint32(&invalids, 1)
28587 }
28588 case "selfLink":
28589 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28590 return ec._StressChaos_selfLink(ctx, field, obj)
28591 }
28592
28593 out.Values[i] = innerFunc(ctx)
28594
28595 if out.Values[i] == graphql.Null {
28596 atomic.AddUint32(&invalids, 1)
28597 }
28598 case "uid":
28599 field := field
28600
28601 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28602 defer func() {
28603 if r := recover(); r != nil {
28604 ec.Error(ctx, ec.Recover(ctx, r))
28605 }
28606 }()
28607 res = ec._StressChaos_uid(ctx, field, obj)
28608 if res == graphql.Null {
28609 atomic.AddUint32(&invalids, 1)
28610 }
28611 return res
28612 }
28613
28614 out.Concurrently(i, func() graphql.Marshaler {
28615 return innerFunc(ctx)
28616
28617 })
28618 case "resourceVersion":
28619 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28620 return ec._StressChaos_resourceVersion(ctx, field, obj)
28621 }
28622
28623 out.Values[i] = innerFunc(ctx)
28624
28625 if out.Values[i] == graphql.Null {
28626 atomic.AddUint32(&invalids, 1)
28627 }
28628 case "generation":
28629 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28630 return ec._StressChaos_generation(ctx, field, obj)
28631 }
28632
28633 out.Values[i] = innerFunc(ctx)
28634
28635 if out.Values[i] == graphql.Null {
28636 atomic.AddUint32(&invalids, 1)
28637 }
28638 case "creationTimestamp":
28639 field := field
28640
28641 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28642 defer func() {
28643 if r := recover(); r != nil {
28644 ec.Error(ctx, ec.Recover(ctx, r))
28645 }
28646 }()
28647 res = ec._StressChaos_creationTimestamp(ctx, field, obj)
28648 if res == graphql.Null {
28649 atomic.AddUint32(&invalids, 1)
28650 }
28651 return res
28652 }
28653
28654 out.Concurrently(i, func() graphql.Marshaler {
28655 return innerFunc(ctx)
28656
28657 })
28658 case "deletionTimestamp":
28659 field := field
28660
28661 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28662 defer func() {
28663 if r := recover(); r != nil {
28664 ec.Error(ctx, ec.Recover(ctx, r))
28665 }
28666 }()
28667 res = ec._StressChaos_deletionTimestamp(ctx, field, obj)
28668 return res
28669 }
28670
28671 out.Concurrently(i, func() graphql.Marshaler {
28672 return innerFunc(ctx)
28673
28674 })
28675 case "deletionGracePeriodSeconds":
28676 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28677 return ec._StressChaos_deletionGracePeriodSeconds(ctx, field, obj)
28678 }
28679
28680 out.Values[i] = innerFunc(ctx)
28681
28682 case "labels":
28683 field := field
28684
28685 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28686 defer func() {
28687 if r := recover(); r != nil {
28688 ec.Error(ctx, ec.Recover(ctx, r))
28689 }
28690 }()
28691 res = ec._StressChaos_labels(ctx, field, obj)
28692 return res
28693 }
28694
28695 out.Concurrently(i, func() graphql.Marshaler {
28696 return innerFunc(ctx)
28697
28698 })
28699 case "annotations":
28700 field := field
28701
28702 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28703 defer func() {
28704 if r := recover(); r != nil {
28705 ec.Error(ctx, ec.Recover(ctx, r))
28706 }
28707 }()
28708 res = ec._StressChaos_annotations(ctx, field, obj)
28709 return res
28710 }
28711
28712 out.Concurrently(i, func() graphql.Marshaler {
28713 return innerFunc(ctx)
28714
28715 })
28716 case "ownerReferences":
28717 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28718 return ec._StressChaos_ownerReferences(ctx, field, obj)
28719 }
28720
28721 out.Values[i] = innerFunc(ctx)
28722
28723 case "finalizers":
28724 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28725 return ec._StressChaos_finalizers(ctx, field, obj)
28726 }
28727
28728 out.Values[i] = innerFunc(ctx)
28729
28730 case "spec":
28731 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28732 return ec._StressChaos_spec(ctx, field, obj)
28733 }
28734
28735 out.Values[i] = innerFunc(ctx)
28736
28737 if out.Values[i] == graphql.Null {
28738 atomic.AddUint32(&invalids, 1)
28739 }
28740 case "podstress":
28741 field := field
28742
28743 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28744 defer func() {
28745 if r := recover(); r != nil {
28746 ec.Error(ctx, ec.Recover(ctx, r))
28747 }
28748 }()
28749 res = ec._StressChaos_podstress(ctx, field, obj)
28750 return res
28751 }
28752
28753 out.Concurrently(i, func() graphql.Marshaler {
28754 return innerFunc(ctx)
28755
28756 })
28757 default:
28758 panic("unknown field " + strconv.Quote(field.Name))
28759 }
28760 }
28761 out.Dispatch()
28762 if invalids > 0 {
28763 return graphql.Null
28764 }
28765 return out
28766 }
28767
28768 var stressChaosSpecImplementors = []string{"StressChaosSpec"}
28769
28770 func (ec *executionContext) _StressChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.StressChaosSpec) graphql.Marshaler {
28771 fields := graphql.CollectFields(ec.OperationContext, sel, stressChaosSpecImplementors)
28772 out := graphql.NewFieldSet(fields)
28773 var invalids uint32
28774 for i, field := range fields {
28775 switch field.Name {
28776 case "__typename":
28777 out.Values[i] = graphql.MarshalString("StressChaosSpec")
28778 case "containerNames":
28779 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28780 return ec._StressChaosSpec_containerNames(ctx, field, obj)
28781 }
28782
28783 out.Values[i] = innerFunc(ctx)
28784
28785 case "selector":
28786 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28787 return ec._StressChaosSpec_selector(ctx, field, obj)
28788 }
28789
28790 out.Values[i] = innerFunc(ctx)
28791
28792 if out.Values[i] == graphql.Null {
28793 atomic.AddUint32(&invalids, 1)
28794 }
28795 case "mode":
28796 field := field
28797
28798 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28799 defer func() {
28800 if r := recover(); r != nil {
28801 ec.Error(ctx, ec.Recover(ctx, r))
28802 }
28803 }()
28804 res = ec._StressChaosSpec_mode(ctx, field, obj)
28805 if res == graphql.Null {
28806 atomic.AddUint32(&invalids, 1)
28807 }
28808 return res
28809 }
28810
28811 out.Concurrently(i, func() graphql.Marshaler {
28812 return innerFunc(ctx)
28813
28814 })
28815 case "value":
28816 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28817 return ec._StressChaosSpec_value(ctx, field, obj)
28818 }
28819
28820 out.Values[i] = innerFunc(ctx)
28821
28822 case "stressors":
28823 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28824 return ec._StressChaosSpec_stressors(ctx, field, obj)
28825 }
28826
28827 out.Values[i] = innerFunc(ctx)
28828
28829 case "stressngStressors":
28830 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28831 return ec._StressChaosSpec_stressngStressors(ctx, field, obj)
28832 }
28833
28834 out.Values[i] = innerFunc(ctx)
28835
28836 case "duration":
28837 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28838 return ec._StressChaosSpec_duration(ctx, field, obj)
28839 }
28840
28841 out.Values[i] = innerFunc(ctx)
28842
28843 default:
28844 panic("unknown field " + strconv.Quote(field.Name))
28845 }
28846 }
28847 out.Dispatch()
28848 if invalids > 0 {
28849 return graphql.Null
28850 }
28851 return out
28852 }
28853
28854 var stressChaosStatusImplementors = []string{"StressChaosStatus"}
28855
28856 func (ec *executionContext) _StressChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.StressChaosStatus) graphql.Marshaler {
28857 fields := graphql.CollectFields(ec.OperationContext, sel, stressChaosStatusImplementors)
28858 out := graphql.NewFieldSet(fields)
28859 var invalids uint32
28860 for i, field := range fields {
28861 switch field.Name {
28862 case "__typename":
28863 out.Values[i] = graphql.MarshalString("StressChaosStatus")
28864 case "conditions":
28865 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28866 return ec._StressChaosStatus_conditions(ctx, field, obj)
28867 }
28868
28869 out.Values[i] = innerFunc(ctx)
28870
28871 case "experiment":
28872 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28873 return ec._StressChaosStatus_experiment(ctx, field, obj)
28874 }
28875
28876 out.Values[i] = innerFunc(ctx)
28877
28878 case "instances":
28879 field := field
28880
28881 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28882 defer func() {
28883 if r := recover(); r != nil {
28884 ec.Error(ctx, ec.Recover(ctx, r))
28885 }
28886 }()
28887 res = ec._StressChaosStatus_instances(ctx, field, obj)
28888 return res
28889 }
28890
28891 out.Concurrently(i, func() graphql.Marshaler {
28892 return innerFunc(ctx)
28893
28894 })
28895 default:
28896 panic("unknown field " + strconv.Quote(field.Name))
28897 }
28898 }
28899 out.Dispatch()
28900 if invalids > 0 {
28901 return graphql.Null
28902 }
28903 return out
28904 }
28905
28906 var stressorsImplementors = []string{"Stressors"}
28907
28908 func (ec *executionContext) _Stressors(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.Stressors) graphql.Marshaler {
28909 fields := graphql.CollectFields(ec.OperationContext, sel, stressorsImplementors)
28910 out := graphql.NewFieldSet(fields)
28911 var invalids uint32
28912 for i, field := range fields {
28913 switch field.Name {
28914 case "__typename":
28915 out.Values[i] = graphql.MarshalString("Stressors")
28916 case "memoryStressor":
28917 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28918 return ec._Stressors_memoryStressor(ctx, field, obj)
28919 }
28920
28921 out.Values[i] = innerFunc(ctx)
28922
28923 case "cpuStressor":
28924 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28925 return ec._Stressors_cpuStressor(ctx, field, obj)
28926 }
28927
28928 out.Values[i] = innerFunc(ctx)
28929
28930 default:
28931 panic("unknown field " + strconv.Quote(field.Name))
28932 }
28933 }
28934 out.Dispatch()
28935 if invalids > 0 {
28936 return graphql.Null
28937 }
28938 return out
28939 }
28940
28941 var timespecImplementors = []string{"Timespec"}
28942
28943 func (ec *executionContext) _Timespec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.Timespec) graphql.Marshaler {
28944 fields := graphql.CollectFields(ec.OperationContext, sel, timespecImplementors)
28945 out := graphql.NewFieldSet(fields)
28946 var invalids uint32
28947 for i, field := range fields {
28948 switch field.Name {
28949 case "__typename":
28950 out.Values[i] = graphql.MarshalString("Timespec")
28951 case "sec":
28952 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28953 return ec._Timespec_sec(ctx, field, obj)
28954 }
28955
28956 out.Values[i] = innerFunc(ctx)
28957
28958 if out.Values[i] == graphql.Null {
28959 invalids++
28960 }
28961 case "nsec":
28962 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28963 return ec._Timespec_nsec(ctx, field, obj)
28964 }
28965
28966 out.Values[i] = innerFunc(ctx)
28967
28968 if out.Values[i] == graphql.Null {
28969 invalids++
28970 }
28971 default:
28972 panic("unknown field " + strconv.Quote(field.Name))
28973 }
28974 }
28975 out.Dispatch()
28976 if invalids > 0 {
28977 return graphql.Null
28978 }
28979 return out
28980 }
28981
28982 var __DirectiveImplementors = []string{"__Directive"}
28983
28984 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
28985 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
28986 out := graphql.NewFieldSet(fields)
28987 var invalids uint32
28988 for i, field := range fields {
28989 switch field.Name {
28990 case "__typename":
28991 out.Values[i] = graphql.MarshalString("__Directive")
28992 case "name":
28993 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
28994 return ec.___Directive_name(ctx, field, obj)
28995 }
28996
28997 out.Values[i] = innerFunc(ctx)
28998
28999 if out.Values[i] == graphql.Null {
29000 invalids++
29001 }
29002 case "description":
29003 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29004 return ec.___Directive_description(ctx, field, obj)
29005 }
29006
29007 out.Values[i] = innerFunc(ctx)
29008
29009 case "locations":
29010 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29011 return ec.___Directive_locations(ctx, field, obj)
29012 }
29013
29014 out.Values[i] = innerFunc(ctx)
29015
29016 if out.Values[i] == graphql.Null {
29017 invalids++
29018 }
29019 case "args":
29020 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29021 return ec.___Directive_args(ctx, field, obj)
29022 }
29023
29024 out.Values[i] = innerFunc(ctx)
29025
29026 if out.Values[i] == graphql.Null {
29027 invalids++
29028 }
29029 case "isRepeatable":
29030 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29031 return ec.___Directive_isRepeatable(ctx, field, obj)
29032 }
29033
29034 out.Values[i] = innerFunc(ctx)
29035
29036 if out.Values[i] == graphql.Null {
29037 invalids++
29038 }
29039 default:
29040 panic("unknown field " + strconv.Quote(field.Name))
29041 }
29042 }
29043 out.Dispatch()
29044 if invalids > 0 {
29045 return graphql.Null
29046 }
29047 return out
29048 }
29049
29050 var __EnumValueImplementors = []string{"__EnumValue"}
29051
29052 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
29053 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
29054 out := graphql.NewFieldSet(fields)
29055 var invalids uint32
29056 for i, field := range fields {
29057 switch field.Name {
29058 case "__typename":
29059 out.Values[i] = graphql.MarshalString("__EnumValue")
29060 case "name":
29061 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29062 return ec.___EnumValue_name(ctx, field, obj)
29063 }
29064
29065 out.Values[i] = innerFunc(ctx)
29066
29067 if out.Values[i] == graphql.Null {
29068 invalids++
29069 }
29070 case "description":
29071 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29072 return ec.___EnumValue_description(ctx, field, obj)
29073 }
29074
29075 out.Values[i] = innerFunc(ctx)
29076
29077 case "isDeprecated":
29078 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29079 return ec.___EnumValue_isDeprecated(ctx, field, obj)
29080 }
29081
29082 out.Values[i] = innerFunc(ctx)
29083
29084 if out.Values[i] == graphql.Null {
29085 invalids++
29086 }
29087 case "deprecationReason":
29088 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29089 return ec.___EnumValue_deprecationReason(ctx, field, obj)
29090 }
29091
29092 out.Values[i] = innerFunc(ctx)
29093
29094 default:
29095 panic("unknown field " + strconv.Quote(field.Name))
29096 }
29097 }
29098 out.Dispatch()
29099 if invalids > 0 {
29100 return graphql.Null
29101 }
29102 return out
29103 }
29104
29105 var __FieldImplementors = []string{"__Field"}
29106
29107 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
29108 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
29109 out := graphql.NewFieldSet(fields)
29110 var invalids uint32
29111 for i, field := range fields {
29112 switch field.Name {
29113 case "__typename":
29114 out.Values[i] = graphql.MarshalString("__Field")
29115 case "name":
29116 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29117 return ec.___Field_name(ctx, field, obj)
29118 }
29119
29120 out.Values[i] = innerFunc(ctx)
29121
29122 if out.Values[i] == graphql.Null {
29123 invalids++
29124 }
29125 case "description":
29126 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29127 return ec.___Field_description(ctx, field, obj)
29128 }
29129
29130 out.Values[i] = innerFunc(ctx)
29131
29132 case "args":
29133 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29134 return ec.___Field_args(ctx, field, obj)
29135 }
29136
29137 out.Values[i] = innerFunc(ctx)
29138
29139 if out.Values[i] == graphql.Null {
29140 invalids++
29141 }
29142 case "type":
29143 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29144 return ec.___Field_type(ctx, field, obj)
29145 }
29146
29147 out.Values[i] = innerFunc(ctx)
29148
29149 if out.Values[i] == graphql.Null {
29150 invalids++
29151 }
29152 case "isDeprecated":
29153 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29154 return ec.___Field_isDeprecated(ctx, field, obj)
29155 }
29156
29157 out.Values[i] = innerFunc(ctx)
29158
29159 if out.Values[i] == graphql.Null {
29160 invalids++
29161 }
29162 case "deprecationReason":
29163 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29164 return ec.___Field_deprecationReason(ctx, field, obj)
29165 }
29166
29167 out.Values[i] = innerFunc(ctx)
29168
29169 default:
29170 panic("unknown field " + strconv.Quote(field.Name))
29171 }
29172 }
29173 out.Dispatch()
29174 if invalids > 0 {
29175 return graphql.Null
29176 }
29177 return out
29178 }
29179
29180 var __InputValueImplementors = []string{"__InputValue"}
29181
29182 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
29183 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
29184 out := graphql.NewFieldSet(fields)
29185 var invalids uint32
29186 for i, field := range fields {
29187 switch field.Name {
29188 case "__typename":
29189 out.Values[i] = graphql.MarshalString("__InputValue")
29190 case "name":
29191 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29192 return ec.___InputValue_name(ctx, field, obj)
29193 }
29194
29195 out.Values[i] = innerFunc(ctx)
29196
29197 if out.Values[i] == graphql.Null {
29198 invalids++
29199 }
29200 case "description":
29201 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29202 return ec.___InputValue_description(ctx, field, obj)
29203 }
29204
29205 out.Values[i] = innerFunc(ctx)
29206
29207 case "type":
29208 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29209 return ec.___InputValue_type(ctx, field, obj)
29210 }
29211
29212 out.Values[i] = innerFunc(ctx)
29213
29214 if out.Values[i] == graphql.Null {
29215 invalids++
29216 }
29217 case "defaultValue":
29218 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29219 return ec.___InputValue_defaultValue(ctx, field, obj)
29220 }
29221
29222 out.Values[i] = innerFunc(ctx)
29223
29224 default:
29225 panic("unknown field " + strconv.Quote(field.Name))
29226 }
29227 }
29228 out.Dispatch()
29229 if invalids > 0 {
29230 return graphql.Null
29231 }
29232 return out
29233 }
29234
29235 var __SchemaImplementors = []string{"__Schema"}
29236
29237 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
29238 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
29239 out := graphql.NewFieldSet(fields)
29240 var invalids uint32
29241 for i, field := range fields {
29242 switch field.Name {
29243 case "__typename":
29244 out.Values[i] = graphql.MarshalString("__Schema")
29245 case "description":
29246 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29247 return ec.___Schema_description(ctx, field, obj)
29248 }
29249
29250 out.Values[i] = innerFunc(ctx)
29251
29252 case "types":
29253 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29254 return ec.___Schema_types(ctx, field, obj)
29255 }
29256
29257 out.Values[i] = innerFunc(ctx)
29258
29259 if out.Values[i] == graphql.Null {
29260 invalids++
29261 }
29262 case "queryType":
29263 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29264 return ec.___Schema_queryType(ctx, field, obj)
29265 }
29266
29267 out.Values[i] = innerFunc(ctx)
29268
29269 if out.Values[i] == graphql.Null {
29270 invalids++
29271 }
29272 case "mutationType":
29273 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29274 return ec.___Schema_mutationType(ctx, field, obj)
29275 }
29276
29277 out.Values[i] = innerFunc(ctx)
29278
29279 case "subscriptionType":
29280 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29281 return ec.___Schema_subscriptionType(ctx, field, obj)
29282 }
29283
29284 out.Values[i] = innerFunc(ctx)
29285
29286 case "directives":
29287 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29288 return ec.___Schema_directives(ctx, field, obj)
29289 }
29290
29291 out.Values[i] = innerFunc(ctx)
29292
29293 if out.Values[i] == graphql.Null {
29294 invalids++
29295 }
29296 default:
29297 panic("unknown field " + strconv.Quote(field.Name))
29298 }
29299 }
29300 out.Dispatch()
29301 if invalids > 0 {
29302 return graphql.Null
29303 }
29304 return out
29305 }
29306
29307 var __TypeImplementors = []string{"__Type"}
29308
29309 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
29310 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
29311 out := graphql.NewFieldSet(fields)
29312 var invalids uint32
29313 for i, field := range fields {
29314 switch field.Name {
29315 case "__typename":
29316 out.Values[i] = graphql.MarshalString("__Type")
29317 case "kind":
29318 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29319 return ec.___Type_kind(ctx, field, obj)
29320 }
29321
29322 out.Values[i] = innerFunc(ctx)
29323
29324 if out.Values[i] == graphql.Null {
29325 invalids++
29326 }
29327 case "name":
29328 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29329 return ec.___Type_name(ctx, field, obj)
29330 }
29331
29332 out.Values[i] = innerFunc(ctx)
29333
29334 case "description":
29335 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29336 return ec.___Type_description(ctx, field, obj)
29337 }
29338
29339 out.Values[i] = innerFunc(ctx)
29340
29341 case "fields":
29342 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29343 return ec.___Type_fields(ctx, field, obj)
29344 }
29345
29346 out.Values[i] = innerFunc(ctx)
29347
29348 case "interfaces":
29349 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29350 return ec.___Type_interfaces(ctx, field, obj)
29351 }
29352
29353 out.Values[i] = innerFunc(ctx)
29354
29355 case "possibleTypes":
29356 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29357 return ec.___Type_possibleTypes(ctx, field, obj)
29358 }
29359
29360 out.Values[i] = innerFunc(ctx)
29361
29362 case "enumValues":
29363 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29364 return ec.___Type_enumValues(ctx, field, obj)
29365 }
29366
29367 out.Values[i] = innerFunc(ctx)
29368
29369 case "inputFields":
29370 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29371 return ec.___Type_inputFields(ctx, field, obj)
29372 }
29373
29374 out.Values[i] = innerFunc(ctx)
29375
29376 case "ofType":
29377 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29378 return ec.___Type_ofType(ctx, field, obj)
29379 }
29380
29381 out.Values[i] = innerFunc(ctx)
29382
29383 case "specifiedByURL":
29384 innerFunc := func(ctx context.Context) (res graphql.Marshaler) {
29385 return ec.___Type_specifiedByURL(ctx, field, obj)
29386 }
29387
29388 out.Values[i] = innerFunc(ctx)
29389
29390 default:
29391 panic("unknown field " + strconv.Quote(field.Name))
29392 }
29393 }
29394 out.Dispatch()
29395 if invalids > 0 {
29396 return graphql.Null
29397 }
29398 return out
29399 }
29400
29401
29402
29403
29404
29405 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
29406 res, err := graphql.UnmarshalBoolean(v)
29407 return res, graphql.ErrorOnPath(ctx, err)
29408 }
29409
29410 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
29411 res := graphql.MarshalBoolean(v)
29412 if res == graphql.Null {
29413 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29414 ec.Errorf(ctx, "must not be null")
29415 }
29416 }
29417 return res
29418 }
29419
29420 func (ec *executionContext) marshalNCgroups2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroups(ctx context.Context, sel ast.SelectionSet, v model.Cgroups) graphql.Marshaler {
29421 return ec._Cgroups(ctx, sel, &v)
29422 }
29423
29424 func (ec *executionContext) marshalNCgroups2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroups(ctx context.Context, sel ast.SelectionSet, v *model.Cgroups) graphql.Marshaler {
29425 if v == nil {
29426 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29427 ec.Errorf(ctx, "must not be null")
29428 }
29429 return graphql.Null
29430 }
29431 return ec._Cgroups(ctx, sel, v)
29432 }
29433
29434 func (ec *executionContext) marshalNChaosCondition2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosCondition(ctx context.Context, sel ast.SelectionSet, v v1alpha1.ChaosCondition) graphql.Marshaler {
29435 return ec._ChaosCondition(ctx, sel, &v)
29436 }
29437
29438 func (ec *executionContext) marshalNCidrAndPort2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCidrAndPort(ctx context.Context, sel ast.SelectionSet, v v1alpha1.CidrAndPort) graphql.Marshaler {
29439 return ec._CidrAndPort(ctx, sel, &v)
29440 }
29441
29442 func (ec *executionContext) unmarshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐComponent(ctx context.Context, v interface{}) (model.Component, error) {
29443 var res model.Component
29444 err := res.UnmarshalGQL(v)
29445 return res, graphql.ErrorOnPath(ctx, err)
29446 }
29447
29448 func (ec *executionContext) marshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐComponent(ctx context.Context, sel ast.SelectionSet, v model.Component) graphql.Marshaler {
29449 return v
29450 }
29451
29452 func (ec *executionContext) marshalNContainerStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatus(ctx context.Context, sel ast.SelectionSet, v v1.ContainerStatus) graphql.Marshaler {
29453 return ec._ContainerStatus(ctx, sel, &v)
29454 }
29455
29456 func (ec *executionContext) marshalNFd2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐFd(ctx context.Context, sel ast.SelectionSet, v *model.Fd) graphql.Marshaler {
29457 if v == nil {
29458 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29459 ec.Errorf(ctx, "must not be null")
29460 }
29461 return graphql.Null
29462 }
29463 return ec._Fd(ctx, sel, v)
29464 }
29465
29466 func (ec *executionContext) marshalNHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.HTTPChaos) graphql.Marshaler {
29467 if v == nil {
29468 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29469 ec.Errorf(ctx, "must not be null")
29470 }
29471 return graphql.Null
29472 }
29473 return ec._HTTPChaos(ctx, sel, v)
29474 }
29475
29476 func (ec *executionContext) marshalNHTTPChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.HTTPChaosSpec) graphql.Marshaler {
29477 return ec._HTTPChaosSpec(ctx, sel, &v)
29478 }
29479
29480 func (ec *executionContext) marshalNHTTPChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.HTTPChaosStatus) graphql.Marshaler {
29481 return ec._HTTPChaosStatus(ctx, sel, &v)
29482 }
29483
29484 func (ec *executionContext) marshalNIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.IOChaos) graphql.Marshaler {
29485 if v == nil {
29486 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29487 ec.Errorf(ctx, "must not be null")
29488 }
29489 return graphql.Null
29490 }
29491 return ec._IOChaos(ctx, sel, v)
29492 }
29493
29494 func (ec *executionContext) marshalNIOChaosAction2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosAction(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IOChaosAction) graphql.Marshaler {
29495 return ec._IOChaosAction(ctx, sel, &v)
29496 }
29497
29498 func (ec *executionContext) marshalNIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IOChaosSpec) graphql.Marshaler {
29499 return ec._IOChaosSpec(ctx, sel, &v)
29500 }
29501
29502 func (ec *executionContext) marshalNIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IOChaosStatus) graphql.Marshaler {
29503 return ec._IOChaosStatus(ctx, sel, &v)
29504 }
29505
29506 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
29507 res, err := graphql.UnmarshalInt(v)
29508 return res, graphql.ErrorOnPath(ctx, err)
29509 }
29510
29511 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
29512 res := graphql.MarshalInt(v)
29513 if res == graphql.Null {
29514 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29515 ec.Errorf(ctx, "must not be null")
29516 }
29517 }
29518 return res
29519 }
29520
29521 func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) {
29522 res, err := graphql.UnmarshalInt32(v)
29523 return res, graphql.ErrorOnPath(ctx, err)
29524 }
29525
29526 func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.SelectionSet, v int32) graphql.Marshaler {
29527 res := graphql.MarshalInt32(v)
29528 if res == graphql.Null {
29529 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29530 ec.Errorf(ctx, "must not be null")
29531 }
29532 }
29533 return res
29534 }
29535
29536 func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) {
29537 res, err := graphql.UnmarshalInt64(v)
29538 return res, graphql.ErrorOnPath(ctx, err)
29539 }
29540
29541 func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
29542 res := graphql.MarshalInt64(v)
29543 if res == graphql.Null {
29544 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29545 ec.Errorf(ctx, "must not be null")
29546 }
29547 }
29548 return res
29549 }
29550
29551 func (ec *executionContext) unmarshalNInt642int64(ctx context.Context, v interface{}) (int64, error) {
29552 res, err := graphql.UnmarshalInt64(v)
29553 return res, graphql.ErrorOnPath(ctx, err)
29554 }
29555
29556 func (ec *executionContext) marshalNInt642int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
29557 res := graphql.MarshalInt64(v)
29558 if res == graphql.Null {
29559 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29560 ec.Errorf(ctx, "must not be null")
29561 }
29562 }
29563 return res
29564 }
29565
29566 func (ec *executionContext) marshalNIoFault2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFault(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IoFault) graphql.Marshaler {
29567 return ec._IoFault(ctx, sel, &v)
29568 }
29569
29570 func (ec *executionContext) marshalNKillProcessResult2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐKillProcessResult(ctx context.Context, sel ast.SelectionSet, v *model.KillProcessResult) graphql.Marshaler {
29571 if v == nil {
29572 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29573 ec.Errorf(ctx, "must not be null")
29574 }
29575 return graphql.Null
29576 }
29577 return ec._KillProcessResult(ctx, sel, v)
29578 }
29579
29580 func (ec *executionContext) marshalNNamespace2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐNamespace(ctx context.Context, sel ast.SelectionSet, v *model.Namespace) graphql.Marshaler {
29581 if v == nil {
29582 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29583 ec.Errorf(ctx, "must not be null")
29584 }
29585 return graphql.Null
29586 }
29587 return ec._Namespace(ctx, sel, v)
29588 }
29589
29590 func (ec *executionContext) marshalNNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.NetworkChaos) graphql.Marshaler {
29591 if v == nil {
29592 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29593 ec.Errorf(ctx, "must not be null")
29594 }
29595 return graphql.Null
29596 }
29597 return ec._NetworkChaos(ctx, sel, v)
29598 }
29599
29600 func (ec *executionContext) marshalNOwnerReference2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReference(ctx context.Context, sel ast.SelectionSet, v v11.OwnerReference) graphql.Marshaler {
29601 return ec._OwnerReference(ctx, sel, &v)
29602 }
29603
29604 func (ec *executionContext) marshalNPod2k8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx context.Context, sel ast.SelectionSet, v v1.Pod) graphql.Marshaler {
29605 return ec._Pod(ctx, sel, &v)
29606 }
29607
29608 func (ec *executionContext) marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx context.Context, sel ast.SelectionSet, v *v1.Pod) graphql.Marshaler {
29609 if v == nil {
29610 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29611 ec.Errorf(ctx, "must not be null")
29612 }
29613 return graphql.Null
29614 }
29615 return ec._Pod(ctx, sel, v)
29616 }
29617
29618 func (ec *executionContext) marshalNPodCondition2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodCondition(ctx context.Context, sel ast.SelectionSet, v v1.PodCondition) graphql.Marshaler {
29619 return ec._PodCondition(ctx, sel, &v)
29620 }
29621
29622 func (ec *executionContext) marshalNPodHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaos) graphql.Marshaler {
29623 if v == nil {
29624 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29625 ec.Errorf(ctx, "must not be null")
29626 }
29627 return graphql.Null
29628 }
29629 return ec._PodHTTPChaos(ctx, sel, v)
29630 }
29631
29632 func (ec *executionContext) marshalNPodHttpChaosActions2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosActions(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosActions) graphql.Marshaler {
29633 return ec._PodHttpChaosActions(ctx, sel, &v)
29634 }
29635
29636 func (ec *executionContext) marshalNPodHttpChaosRule2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRule(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosRule) graphql.Marshaler {
29637 return ec._PodHttpChaosRule(ctx, sel, &v)
29638 }
29639
29640 func (ec *executionContext) marshalNPodHttpChaosRule2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRuleᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.PodHttpChaosRule) graphql.Marshaler {
29641 ret := make(graphql.Array, len(v))
29642 var wg sync.WaitGroup
29643 isLen1 := len(v) == 1
29644 if !isLen1 {
29645 wg.Add(len(v))
29646 }
29647 for i := range v {
29648 i := i
29649 fc := &graphql.FieldContext{
29650 Index: &i,
29651 Result: &v[i],
29652 }
29653 ctx := graphql.WithFieldContext(ctx, fc)
29654 f := func(i int) {
29655 defer func() {
29656 if r := recover(); r != nil {
29657 ec.Error(ctx, ec.Recover(ctx, r))
29658 ret = nil
29659 }
29660 }()
29661 if !isLen1 {
29662 defer wg.Done()
29663 }
29664 ret[i] = ec.marshalNPodHttpChaosRule2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRule(ctx, sel, v[i])
29665 }
29666 if isLen1 {
29667 f(i)
29668 } else {
29669 go f(i)
29670 }
29671
29672 }
29673 wg.Wait()
29674
29675 for _, e := range ret {
29676 if e == graphql.Null {
29677 return graphql.Null
29678 }
29679 }
29680
29681 return ret
29682 }
29683
29684 func (ec *executionContext) marshalNPodHttpChaosSelector2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSelector(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosSelector) graphql.Marshaler {
29685 return ec._PodHttpChaosSelector(ctx, sel, &v)
29686 }
29687
29688 func (ec *executionContext) marshalNPodHttpChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosSpec) graphql.Marshaler {
29689 return ec._PodHttpChaosSpec(ctx, sel, &v)
29690 }
29691
29692 func (ec *executionContext) marshalNPodHttpChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosStatus) graphql.Marshaler {
29693 return ec._PodHttpChaosStatus(ctx, sel, &v)
29694 }
29695
29696 func (ec *executionContext) marshalNPodIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodIOChaos) graphql.Marshaler {
29697 if v == nil {
29698 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29699 ec.Errorf(ctx, "must not be null")
29700 }
29701 return graphql.Null
29702 }
29703 return ec._PodIOChaos(ctx, sel, v)
29704 }
29705
29706 func (ec *executionContext) marshalNPodIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodIOChaosSpec) graphql.Marshaler {
29707 return ec._PodIOChaosSpec(ctx, sel, &v)
29708 }
29709
29710 func (ec *executionContext) marshalNPodIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodIOChaosStatus) graphql.Marshaler {
29711 return ec._PodIOChaosStatus(ctx, sel, &v)
29712 }
29713
29714 func (ec *executionContext) marshalNPodIP2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodIP(ctx context.Context, sel ast.SelectionSet, v v1.PodIP) graphql.Marshaler {
29715 return ec._PodIP(ctx, sel, &v)
29716 }
29717
29718 func (ec *executionContext) marshalNPodNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodNetworkChaos) graphql.Marshaler {
29719 if v == nil {
29720 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29721 ec.Errorf(ctx, "must not be null")
29722 }
29723 return graphql.Null
29724 }
29725 return ec._PodNetworkChaos(ctx, sel, v)
29726 }
29727
29728 func (ec *executionContext) marshalNPodNetworkChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodNetworkChaosSpec) graphql.Marshaler {
29729 return ec._PodNetworkChaosSpec(ctx, sel, &v)
29730 }
29731
29732 func (ec *executionContext) marshalNPodNetworkChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodNetworkChaosStatus) graphql.Marshaler {
29733 return ec._PodNetworkChaosStatus(ctx, sel, &v)
29734 }
29735
29736 func (ec *executionContext) unmarshalNPodSelectorInput2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐPodSelectorInput(ctx context.Context, v interface{}) (model.PodSelectorInput, error) {
29737 res, err := ec.unmarshalInputPodSelectorInput(ctx, v)
29738 return res, graphql.ErrorOnPath(ctx, err)
29739 }
29740
29741 func (ec *executionContext) marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodSelectorSpec) graphql.Marshaler {
29742 return ec._PodSelectorSpec(ctx, sel, &v)
29743 }
29744
29745 func (ec *executionContext) marshalNPodSpec2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodSpec(ctx context.Context, sel ast.SelectionSet, v v1.PodSpec) graphql.Marshaler {
29746 return ec._PodSpec(ctx, sel, &v)
29747 }
29748
29749 func (ec *executionContext) marshalNPodStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodStatus(ctx context.Context, sel ast.SelectionSet, v v1.PodStatus) graphql.Marshaler {
29750 return ec._PodStatus(ctx, sel, &v)
29751 }
29752
29753 func (ec *executionContext) marshalNPodStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐPodStressChaos(ctx context.Context, sel ast.SelectionSet, v *model.PodStressChaos) graphql.Marshaler {
29754 if v == nil {
29755 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29756 ec.Errorf(ctx, "must not be null")
29757 }
29758 return graphql.Null
29759 }
29760 return ec._PodStressChaos(ctx, sel, v)
29761 }
29762
29763 func (ec *executionContext) marshalNProcess2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcess(ctx context.Context, sel ast.SelectionSet, v *model.Process) graphql.Marshaler {
29764 if v == nil {
29765 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29766 ec.Errorf(ctx, "must not be null")
29767 }
29768 return graphql.Null
29769 }
29770 return ec._Process(ctx, sel, v)
29771 }
29772
29773 func (ec *executionContext) marshalNProcessStress2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcessStress(ctx context.Context, sel ast.SelectionSet, v *model.ProcessStress) graphql.Marshaler {
29774 if v == nil {
29775 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29776 ec.Errorf(ctx, "must not be null")
29777 }
29778 return graphql.Null
29779 }
29780 return ec._ProcessStress(ctx, sel, v)
29781 }
29782
29783 func (ec *executionContext) marshalNRawIPSet2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSet(ctx context.Context, sel ast.SelectionSet, v v1alpha1.RawIPSet) graphql.Marshaler {
29784 return ec._RawIPSet(ctx, sel, &v)
29785 }
29786
29787 func (ec *executionContext) marshalNRawIptables2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptables(ctx context.Context, sel ast.SelectionSet, v v1alpha1.RawIptables) graphql.Marshaler {
29788 return ec._RawIptables(ctx, sel, &v)
29789 }
29790
29791 func (ec *executionContext) marshalNRawTrafficControl2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControl(ctx context.Context, sel ast.SelectionSet, v v1alpha1.RawTrafficControl) graphql.Marshaler {
29792 return ec._RawTrafficControl(ctx, sel, &v)
29793 }
29794
29795 func (ec *executionContext) marshalNRecord2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecord(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.Record) graphql.Marshaler {
29796 if v == nil {
29797 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29798 ec.Errorf(ctx, "must not be null")
29799 }
29800 return graphql.Null
29801 }
29802 return ec._Record(ctx, sel, v)
29803 }
29804
29805 func (ec *executionContext) marshalNStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.StressChaos) graphql.Marshaler {
29806 if v == nil {
29807 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29808 ec.Errorf(ctx, "must not be null")
29809 }
29810 return graphql.Null
29811 }
29812 return ec._StressChaos(ctx, sel, v)
29813 }
29814
29815 func (ec *executionContext) marshalNStressChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.StressChaosSpec) graphql.Marshaler {
29816 return ec._StressChaosSpec(ctx, sel, &v)
29817 }
29818
29819 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
29820 res, err := graphql.UnmarshalString(v)
29821 return res, graphql.ErrorOnPath(ctx, err)
29822 }
29823
29824 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
29825 res := graphql.MarshalString(v)
29826 if res == graphql.Null {
29827 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29828 ec.Errorf(ctx, "must not be null")
29829 }
29830 }
29831 return res
29832 }
29833
29834 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
29835 var vSlice []interface{}
29836 if v != nil {
29837 vSlice = graphql.CoerceList(v)
29838 }
29839 var err error
29840 res := make([]string, len(vSlice))
29841 for i := range vSlice {
29842 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
29843 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
29844 if err != nil {
29845 return nil, err
29846 }
29847 }
29848 return res, nil
29849 }
29850
29851 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
29852 ret := make(graphql.Array, len(v))
29853 for i := range v {
29854 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
29855 }
29856
29857 for _, e := range ret {
29858 if e == graphql.Null {
29859 return graphql.Null
29860 }
29861 }
29862
29863 return ret
29864 }
29865
29866 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
29867 res, err := graphql.UnmarshalTime(v)
29868 return res, graphql.ErrorOnPath(ctx, err)
29869 }
29870
29871 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
29872 res := graphql.MarshalTime(v)
29873 if res == graphql.Null {
29874 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29875 ec.Errorf(ctx, "must not be null")
29876 }
29877 }
29878 return res
29879 }
29880
29881 func (ec *executionContext) unmarshalNTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
29882 res, err := graphql.UnmarshalTime(v)
29883 return &res, graphql.ErrorOnPath(ctx, err)
29884 }
29885
29886 func (ec *executionContext) marshalNTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
29887 if v == nil {
29888 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29889 ec.Errorf(ctx, "must not be null")
29890 }
29891 return graphql.Null
29892 }
29893 res := graphql.MarshalTime(*v)
29894 if res == graphql.Null {
29895 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29896 ec.Errorf(ctx, "must not be null")
29897 }
29898 }
29899 return res
29900 }
29901
29902 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
29903 return ec.___Directive(ctx, sel, &v)
29904 }
29905
29906 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
29907 ret := make(graphql.Array, len(v))
29908 var wg sync.WaitGroup
29909 isLen1 := len(v) == 1
29910 if !isLen1 {
29911 wg.Add(len(v))
29912 }
29913 for i := range v {
29914 i := i
29915 fc := &graphql.FieldContext{
29916 Index: &i,
29917 Result: &v[i],
29918 }
29919 ctx := graphql.WithFieldContext(ctx, fc)
29920 f := func(i int) {
29921 defer func() {
29922 if r := recover(); r != nil {
29923 ec.Error(ctx, ec.Recover(ctx, r))
29924 ret = nil
29925 }
29926 }()
29927 if !isLen1 {
29928 defer wg.Done()
29929 }
29930 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
29931 }
29932 if isLen1 {
29933 f(i)
29934 } else {
29935 go f(i)
29936 }
29937
29938 }
29939 wg.Wait()
29940
29941 for _, e := range ret {
29942 if e == graphql.Null {
29943 return graphql.Null
29944 }
29945 }
29946
29947 return ret
29948 }
29949
29950 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
29951 res, err := graphql.UnmarshalString(v)
29952 return res, graphql.ErrorOnPath(ctx, err)
29953 }
29954
29955 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
29956 res := graphql.MarshalString(v)
29957 if res == graphql.Null {
29958 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
29959 ec.Errorf(ctx, "must not be null")
29960 }
29961 }
29962 return res
29963 }
29964
29965 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
29966 var vSlice []interface{}
29967 if v != nil {
29968 vSlice = graphql.CoerceList(v)
29969 }
29970 var err error
29971 res := make([]string, len(vSlice))
29972 for i := range vSlice {
29973 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
29974 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
29975 if err != nil {
29976 return nil, err
29977 }
29978 }
29979 return res, nil
29980 }
29981
29982 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
29983 ret := make(graphql.Array, len(v))
29984 var wg sync.WaitGroup
29985 isLen1 := len(v) == 1
29986 if !isLen1 {
29987 wg.Add(len(v))
29988 }
29989 for i := range v {
29990 i := i
29991 fc := &graphql.FieldContext{
29992 Index: &i,
29993 Result: &v[i],
29994 }
29995 ctx := graphql.WithFieldContext(ctx, fc)
29996 f := func(i int) {
29997 defer func() {
29998 if r := recover(); r != nil {
29999 ec.Error(ctx, ec.Recover(ctx, r))
30000 ret = nil
30001 }
30002 }()
30003 if !isLen1 {
30004 defer wg.Done()
30005 }
30006 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
30007 }
30008 if isLen1 {
30009 f(i)
30010 } else {
30011 go f(i)
30012 }
30013
30014 }
30015 wg.Wait()
30016
30017 for _, e := range ret {
30018 if e == graphql.Null {
30019 return graphql.Null
30020 }
30021 }
30022
30023 return ret
30024 }
30025
30026 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
30027 return ec.___EnumValue(ctx, sel, &v)
30028 }
30029
30030 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
30031 return ec.___Field(ctx, sel, &v)
30032 }
30033
30034 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
30035 return ec.___InputValue(ctx, sel, &v)
30036 }
30037
30038 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
30039 ret := make(graphql.Array, len(v))
30040 var wg sync.WaitGroup
30041 isLen1 := len(v) == 1
30042 if !isLen1 {
30043 wg.Add(len(v))
30044 }
30045 for i := range v {
30046 i := i
30047 fc := &graphql.FieldContext{
30048 Index: &i,
30049 Result: &v[i],
30050 }
30051 ctx := graphql.WithFieldContext(ctx, fc)
30052 f := func(i int) {
30053 defer func() {
30054 if r := recover(); r != nil {
30055 ec.Error(ctx, ec.Recover(ctx, r))
30056 ret = nil
30057 }
30058 }()
30059 if !isLen1 {
30060 defer wg.Done()
30061 }
30062 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
30063 }
30064 if isLen1 {
30065 f(i)
30066 } else {
30067 go f(i)
30068 }
30069
30070 }
30071 wg.Wait()
30072
30073 for _, e := range ret {
30074 if e == graphql.Null {
30075 return graphql.Null
30076 }
30077 }
30078
30079 return ret
30080 }
30081
30082 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
30083 return ec.___Type(ctx, sel, &v)
30084 }
30085
30086 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
30087 ret := make(graphql.Array, len(v))
30088 var wg sync.WaitGroup
30089 isLen1 := len(v) == 1
30090 if !isLen1 {
30091 wg.Add(len(v))
30092 }
30093 for i := range v {
30094 i := i
30095 fc := &graphql.FieldContext{
30096 Index: &i,
30097 Result: &v[i],
30098 }
30099 ctx := graphql.WithFieldContext(ctx, fc)
30100 f := func(i int) {
30101 defer func() {
30102 if r := recover(); r != nil {
30103 ec.Error(ctx, ec.Recover(ctx, r))
30104 ret = nil
30105 }
30106 }()
30107 if !isLen1 {
30108 defer wg.Done()
30109 }
30110 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
30111 }
30112 if isLen1 {
30113 f(i)
30114 } else {
30115 go f(i)
30116 }
30117
30118 }
30119 wg.Wait()
30120
30121 for _, e := range ret {
30122 if e == graphql.Null {
30123 return graphql.Null
30124 }
30125 }
30126
30127 return ret
30128 }
30129
30130 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
30131 if v == nil {
30132 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
30133 ec.Errorf(ctx, "must not be null")
30134 }
30135 return graphql.Null
30136 }
30137 return ec.___Type(ctx, sel, v)
30138 }
30139
30140 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
30141 res, err := graphql.UnmarshalString(v)
30142 return res, graphql.ErrorOnPath(ctx, err)
30143 }
30144
30145 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
30146 res := graphql.MarshalString(v)
30147 if res == graphql.Null {
30148 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
30149 ec.Errorf(ctx, "must not be null")
30150 }
30151 }
30152 return res
30153 }
30154
30155 func (ec *executionContext) marshalOAttrOverrideSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐAttrOverrideSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.AttrOverrideSpec) graphql.Marshaler {
30156 if v == nil {
30157 return graphql.Null
30158 }
30159 return ec._AttrOverrideSpec(ctx, sel, v)
30160 }
30161
30162 func (ec *executionContext) marshalOBandwidthSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐBandwidthSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.BandwidthSpec) graphql.Marshaler {
30163 if v == nil {
30164 return graphql.Null
30165 }
30166 return ec._BandwidthSpec(ctx, sel, v)
30167 }
30168
30169 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
30170 res, err := graphql.UnmarshalBoolean(v)
30171 return res, graphql.ErrorOnPath(ctx, err)
30172 }
30173
30174 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
30175 res := graphql.MarshalBoolean(v)
30176 return res
30177 }
30178
30179 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
30180 if v == nil {
30181 return nil, nil
30182 }
30183 res, err := graphql.UnmarshalBoolean(v)
30184 return &res, graphql.ErrorOnPath(ctx, err)
30185 }
30186
30187 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
30188 if v == nil {
30189 return graphql.Null
30190 }
30191 res := graphql.MarshalBoolean(*v)
30192 return res
30193 }
30194
30195 func (ec *executionContext) marshalOCPUStressor2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCPUStressor(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.CPUStressor) graphql.Marshaler {
30196 if v == nil {
30197 return graphql.Null
30198 }
30199 return ec._CPUStressor(ctx, sel, v)
30200 }
30201
30202 func (ec *executionContext) marshalOCgroupsCpu2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroupsCPU(ctx context.Context, sel ast.SelectionSet, v *model.CgroupsCPU) graphql.Marshaler {
30203 if v == nil {
30204 return graphql.Null
30205 }
30206 return ec._CgroupsCpu(ctx, sel, v)
30207 }
30208
30209 func (ec *executionContext) marshalOCgroupsMemory2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐCgroupsMemory(ctx context.Context, sel ast.SelectionSet, v *model.CgroupsMemory) graphql.Marshaler {
30210 if v == nil {
30211 return graphql.Null
30212 }
30213 return ec._CgroupsMemory(ctx, sel, v)
30214 }
30215
30216 func (ec *executionContext) marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.ChaosCondition) graphql.Marshaler {
30217 if v == nil {
30218 return graphql.Null
30219 }
30220 ret := make(graphql.Array, len(v))
30221 var wg sync.WaitGroup
30222 isLen1 := len(v) == 1
30223 if !isLen1 {
30224 wg.Add(len(v))
30225 }
30226 for i := range v {
30227 i := i
30228 fc := &graphql.FieldContext{
30229 Index: &i,
30230 Result: &v[i],
30231 }
30232 ctx := graphql.WithFieldContext(ctx, fc)
30233 f := func(i int) {
30234 defer func() {
30235 if r := recover(); r != nil {
30236 ec.Error(ctx, ec.Recover(ctx, r))
30237 ret = nil
30238 }
30239 }()
30240 if !isLen1 {
30241 defer wg.Done()
30242 }
30243 ret[i] = ec.marshalNChaosCondition2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosCondition(ctx, sel, v[i])
30244 }
30245 if isLen1 {
30246 f(i)
30247 } else {
30248 go f(i)
30249 }
30250
30251 }
30252 wg.Wait()
30253
30254 for _, e := range ret {
30255 if e == graphql.Null {
30256 return graphql.Null
30257 }
30258 }
30259
30260 return ret
30261 }
30262
30263 func (ec *executionContext) marshalOCidrAndPort2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCidrAndPortᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.CidrAndPort) graphql.Marshaler {
30264 if v == nil {
30265 return graphql.Null
30266 }
30267 ret := make(graphql.Array, len(v))
30268 var wg sync.WaitGroup
30269 isLen1 := len(v) == 1
30270 if !isLen1 {
30271 wg.Add(len(v))
30272 }
30273 for i := range v {
30274 i := i
30275 fc := &graphql.FieldContext{
30276 Index: &i,
30277 Result: &v[i],
30278 }
30279 ctx := graphql.WithFieldContext(ctx, fc)
30280 f := func(i int) {
30281 defer func() {
30282 if r := recover(); r != nil {
30283 ec.Error(ctx, ec.Recover(ctx, r))
30284 ret = nil
30285 }
30286 }()
30287 if !isLen1 {
30288 defer wg.Done()
30289 }
30290 ret[i] = ec.marshalNCidrAndPort2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCidrAndPort(ctx, sel, v[i])
30291 }
30292 if isLen1 {
30293 f(i)
30294 } else {
30295 go f(i)
30296 }
30297
30298 }
30299 wg.Wait()
30300
30301 for _, e := range ret {
30302 if e == graphql.Null {
30303 return graphql.Null
30304 }
30305 }
30306
30307 return ret
30308 }
30309
30310 func (ec *executionContext) marshalOContainerState2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerState(ctx context.Context, sel ast.SelectionSet, v v1.ContainerState) graphql.Marshaler {
30311 return ec._ContainerState(ctx, sel, &v)
30312 }
30313
30314 func (ec *executionContext) marshalOContainerStateRunning2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateRunning(ctx context.Context, sel ast.SelectionSet, v *v1.ContainerStateRunning) graphql.Marshaler {
30315 if v == nil {
30316 return graphql.Null
30317 }
30318 return ec._ContainerStateRunning(ctx, sel, v)
30319 }
30320
30321 func (ec *executionContext) marshalOContainerStateTerminated2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateTerminated(ctx context.Context, sel ast.SelectionSet, v *v1.ContainerStateTerminated) graphql.Marshaler {
30322 if v == nil {
30323 return graphql.Null
30324 }
30325 return ec._ContainerStateTerminated(ctx, sel, v)
30326 }
30327
30328 func (ec *executionContext) marshalOContainerStateWaiting2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateWaiting(ctx context.Context, sel ast.SelectionSet, v *v1.ContainerStateWaiting) graphql.Marshaler {
30329 if v == nil {
30330 return graphql.Null
30331 }
30332 return ec._ContainerStateWaiting(ctx, sel, v)
30333 }
30334
30335 func (ec *executionContext) marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []v1.ContainerStatus) graphql.Marshaler {
30336 if v == nil {
30337 return graphql.Null
30338 }
30339 ret := make(graphql.Array, len(v))
30340 var wg sync.WaitGroup
30341 isLen1 := len(v) == 1
30342 if !isLen1 {
30343 wg.Add(len(v))
30344 }
30345 for i := range v {
30346 i := i
30347 fc := &graphql.FieldContext{
30348 Index: &i,
30349 Result: &v[i],
30350 }
30351 ctx := graphql.WithFieldContext(ctx, fc)
30352 f := func(i int) {
30353 defer func() {
30354 if r := recover(); r != nil {
30355 ec.Error(ctx, ec.Recover(ctx, r))
30356 ret = nil
30357 }
30358 }()
30359 if !isLen1 {
30360 defer wg.Done()
30361 }
30362 ret[i] = ec.marshalNContainerStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatus(ctx, sel, v[i])
30363 }
30364 if isLen1 {
30365 f(i)
30366 } else {
30367 go f(i)
30368 }
30369
30370 }
30371 wg.Wait()
30372
30373 for _, e := range ret {
30374 if e == graphql.Null {
30375 return graphql.Null
30376 }
30377 }
30378
30379 return ret
30380 }
30381
30382 func (ec *executionContext) marshalOCorruptSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCorruptSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.CorruptSpec) graphql.Marshaler {
30383 if v == nil {
30384 return graphql.Null
30385 }
30386 return ec._CorruptSpec(ctx, sel, v)
30387 }
30388
30389 func (ec *executionContext) marshalODelaySpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDelaySpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.DelaySpec) graphql.Marshaler {
30390 if v == nil {
30391 return graphql.Null
30392 }
30393 return ec._DelaySpec(ctx, sel, v)
30394 }
30395
30396 func (ec *executionContext) marshalODuplicateSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDuplicateSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.DuplicateSpec) graphql.Marshaler {
30397 if v == nil {
30398 return graphql.Null
30399 }
30400 return ec._DuplicateSpec(ctx, sel, v)
30401 }
30402
30403 func (ec *executionContext) marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.ExperimentStatus) graphql.Marshaler {
30404 return ec._ExperimentStatus(ctx, sel, &v)
30405 }
30406
30407 func (ec *executionContext) marshalOFd2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐFdᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Fd) graphql.Marshaler {
30408 if v == nil {
30409 return graphql.Null
30410 }
30411 ret := make(graphql.Array, len(v))
30412 var wg sync.WaitGroup
30413 isLen1 := len(v) == 1
30414 if !isLen1 {
30415 wg.Add(len(v))
30416 }
30417 for i := range v {
30418 i := i
30419 fc := &graphql.FieldContext{
30420 Index: &i,
30421 Result: &v[i],
30422 }
30423 ctx := graphql.WithFieldContext(ctx, fc)
30424 f := func(i int) {
30425 defer func() {
30426 if r := recover(); r != nil {
30427 ec.Error(ctx, ec.Recover(ctx, r))
30428 ret = nil
30429 }
30430 }()
30431 if !isLen1 {
30432 defer wg.Done()
30433 }
30434 ret[i] = ec.marshalNFd2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐFd(ctx, sel, v[i])
30435 }
30436 if isLen1 {
30437 f(i)
30438 } else {
30439 go f(i)
30440 }
30441
30442 }
30443 wg.Wait()
30444
30445 for _, e := range ret {
30446 if e == graphql.Null {
30447 return graphql.Null
30448 }
30449 }
30450
30451 return ret
30452 }
30453
30454 func (ec *executionContext) marshalOHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.HTTPChaos) graphql.Marshaler {
30455 if v == nil {
30456 return graphql.Null
30457 }
30458 ret := make(graphql.Array, len(v))
30459 var wg sync.WaitGroup
30460 isLen1 := len(v) == 1
30461 if !isLen1 {
30462 wg.Add(len(v))
30463 }
30464 for i := range v {
30465 i := i
30466 fc := &graphql.FieldContext{
30467 Index: &i,
30468 Result: &v[i],
30469 }
30470 ctx := graphql.WithFieldContext(ctx, fc)
30471 f := func(i int) {
30472 defer func() {
30473 if r := recover(); r != nil {
30474 ec.Error(ctx, ec.Recover(ctx, r))
30475 ret = nil
30476 }
30477 }()
30478 if !isLen1 {
30479 defer wg.Done()
30480 }
30481 ret[i] = ec.marshalNHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaos(ctx, sel, v[i])
30482 }
30483 if isLen1 {
30484 f(i)
30485 } else {
30486 go f(i)
30487 }
30488
30489 }
30490 wg.Wait()
30491
30492 for _, e := range ret {
30493 if e == graphql.Null {
30494 return graphql.Null
30495 }
30496 }
30497
30498 return ret
30499 }
30500
30501 func (ec *executionContext) marshalOIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.IOChaos) graphql.Marshaler {
30502 if v == nil {
30503 return graphql.Null
30504 }
30505 ret := make(graphql.Array, len(v))
30506 var wg sync.WaitGroup
30507 isLen1 := len(v) == 1
30508 if !isLen1 {
30509 wg.Add(len(v))
30510 }
30511 for i := range v {
30512 i := i
30513 fc := &graphql.FieldContext{
30514 Index: &i,
30515 Result: &v[i],
30516 }
30517 ctx := graphql.WithFieldContext(ctx, fc)
30518 f := func(i int) {
30519 defer func() {
30520 if r := recover(); r != nil {
30521 ec.Error(ctx, ec.Recover(ctx, r))
30522 ret = nil
30523 }
30524 }()
30525 if !isLen1 {
30526 defer wg.Done()
30527 }
30528 ret[i] = ec.marshalNIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaos(ctx, sel, v[i])
30529 }
30530 if isLen1 {
30531 f(i)
30532 } else {
30533 go f(i)
30534 }
30535
30536 }
30537 wg.Wait()
30538
30539 for _, e := range ret {
30540 if e == graphql.Null {
30541 return graphql.Null
30542 }
30543 }
30544
30545 return ret
30546 }
30547
30548 func (ec *executionContext) marshalOIOChaosAction2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosActionᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.IOChaosAction) graphql.Marshaler {
30549 if v == nil {
30550 return graphql.Null
30551 }
30552 ret := make(graphql.Array, len(v))
30553 var wg sync.WaitGroup
30554 isLen1 := len(v) == 1
30555 if !isLen1 {
30556 wg.Add(len(v))
30557 }
30558 for i := range v {
30559 i := i
30560 fc := &graphql.FieldContext{
30561 Index: &i,
30562 Result: &v[i],
30563 }
30564 ctx := graphql.WithFieldContext(ctx, fc)
30565 f := func(i int) {
30566 defer func() {
30567 if r := recover(); r != nil {
30568 ec.Error(ctx, ec.Recover(ctx, r))
30569 ret = nil
30570 }
30571 }()
30572 if !isLen1 {
30573 defer wg.Done()
30574 }
30575 ret[i] = ec.marshalNIOChaosAction2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosAction(ctx, sel, v[i])
30576 }
30577 if isLen1 {
30578 f(i)
30579 } else {
30580 go f(i)
30581 }
30582
30583 }
30584 wg.Wait()
30585
30586 for _, e := range ret {
30587 if e == graphql.Null {
30588 return graphql.Null
30589 }
30590 }
30591
30592 return ret
30593 }
30594
30595 func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) {
30596 res, err := graphql.UnmarshalInt(v)
30597 return res, graphql.ErrorOnPath(ctx, err)
30598 }
30599
30600 func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
30601 res := graphql.MarshalInt(v)
30602 return res
30603 }
30604
30605 func (ec *executionContext) unmarshalOInt2int32(ctx context.Context, v interface{}) (int32, error) {
30606 res, err := graphql.UnmarshalInt32(v)
30607 return res, graphql.ErrorOnPath(ctx, err)
30608 }
30609
30610 func (ec *executionContext) marshalOInt2int32(ctx context.Context, sel ast.SelectionSet, v int32) graphql.Marshaler {
30611 res := graphql.MarshalInt32(v)
30612 return res
30613 }
30614
30615 func (ec *executionContext) unmarshalOInt2int64(ctx context.Context, v interface{}) (int64, error) {
30616 res, err := graphql.UnmarshalInt64(v)
30617 return res, graphql.ErrorOnPath(ctx, err)
30618 }
30619
30620 func (ec *executionContext) marshalOInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
30621 res := graphql.MarshalInt64(v)
30622 return res
30623 }
30624
30625 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
30626 if v == nil {
30627 return nil, nil
30628 }
30629 res, err := graphql.UnmarshalInt(v)
30630 return &res, graphql.ErrorOnPath(ctx, err)
30631 }
30632
30633 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
30634 if v == nil {
30635 return graphql.Null
30636 }
30637 res := graphql.MarshalInt(*v)
30638 return res
30639 }
30640
30641 func (ec *executionContext) unmarshalOInt2ᚖint32(ctx context.Context, v interface{}) (*int32, error) {
30642 if v == nil {
30643 return nil, nil
30644 }
30645 res, err := graphql.UnmarshalInt32(v)
30646 return &res, graphql.ErrorOnPath(ctx, err)
30647 }
30648
30649 func (ec *executionContext) marshalOInt2ᚖint32(ctx context.Context, sel ast.SelectionSet, v *int32) graphql.Marshaler {
30650 if v == nil {
30651 return graphql.Null
30652 }
30653 res := graphql.MarshalInt32(*v)
30654 return res
30655 }
30656
30657 func (ec *executionContext) unmarshalOInt2ᚖint64(ctx context.Context, v interface{}) (*int64, error) {
30658 if v == nil {
30659 return nil, nil
30660 }
30661 res, err := graphql.UnmarshalInt64(v)
30662 return &res, graphql.ErrorOnPath(ctx, err)
30663 }
30664
30665 func (ec *executionContext) marshalOInt2ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler {
30666 if v == nil {
30667 return graphql.Null
30668 }
30669 res := graphql.MarshalInt64(*v)
30670 return res
30671 }
30672
30673 func (ec *executionContext) unmarshalOInt642ᚖint64(ctx context.Context, v interface{}) (*int64, error) {
30674 if v == nil {
30675 return nil, nil
30676 }
30677 res, err := graphql.UnmarshalInt64(v)
30678 return &res, graphql.ErrorOnPath(ctx, err)
30679 }
30680
30681 func (ec *executionContext) marshalOInt642ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler {
30682 if v == nil {
30683 return graphql.Null
30684 }
30685 res := graphql.MarshalInt64(*v)
30686 return res
30687 }
30688
30689 func (ec *executionContext) marshalOIoFault2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFaultᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.IoFault) graphql.Marshaler {
30690 if v == nil {
30691 return graphql.Null
30692 }
30693 ret := make(graphql.Array, len(v))
30694 var wg sync.WaitGroup
30695 isLen1 := len(v) == 1
30696 if !isLen1 {
30697 wg.Add(len(v))
30698 }
30699 for i := range v {
30700 i := i
30701 fc := &graphql.FieldContext{
30702 Index: &i,
30703 Result: &v[i],
30704 }
30705 ctx := graphql.WithFieldContext(ctx, fc)
30706 f := func(i int) {
30707 defer func() {
30708 if r := recover(); r != nil {
30709 ec.Error(ctx, ec.Recover(ctx, r))
30710 ret = nil
30711 }
30712 }()
30713 if !isLen1 {
30714 defer wg.Done()
30715 }
30716 ret[i] = ec.marshalNIoFault2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFault(ctx, sel, v[i])
30717 }
30718 if isLen1 {
30719 f(i)
30720 } else {
30721 go f(i)
30722 }
30723
30724 }
30725 wg.Wait()
30726
30727 for _, e := range ret {
30728 if e == graphql.Null {
30729 return graphql.Null
30730 }
30731 }
30732
30733 return ret
30734 }
30735
30736 func (ec *executionContext) marshalOKillProcessResult2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐKillProcessResultᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.KillProcessResult) graphql.Marshaler {
30737 if v == nil {
30738 return graphql.Null
30739 }
30740 ret := make(graphql.Array, len(v))
30741 var wg sync.WaitGroup
30742 isLen1 := len(v) == 1
30743 if !isLen1 {
30744 wg.Add(len(v))
30745 }
30746 for i := range v {
30747 i := i
30748 fc := &graphql.FieldContext{
30749 Index: &i,
30750 Result: &v[i],
30751 }
30752 ctx := graphql.WithFieldContext(ctx, fc)
30753 f := func(i int) {
30754 defer func() {
30755 if r := recover(); r != nil {
30756 ec.Error(ctx, ec.Recover(ctx, r))
30757 ret = nil
30758 }
30759 }()
30760 if !isLen1 {
30761 defer wg.Done()
30762 }
30763 ret[i] = ec.marshalNKillProcessResult2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐKillProcessResult(ctx, sel, v[i])
30764 }
30765 if isLen1 {
30766 f(i)
30767 } else {
30768 go f(i)
30769 }
30770
30771 }
30772 wg.Wait()
30773
30774 for _, e := range ret {
30775 if e == graphql.Null {
30776 return graphql.Null
30777 }
30778 }
30779
30780 return ret
30781 }
30782
30783 func (ec *executionContext) marshalOLossSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐLossSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.LossSpec) graphql.Marshaler {
30784 if v == nil {
30785 return graphql.Null
30786 }
30787 return ec._LossSpec(ctx, sel, v)
30788 }
30789
30790 func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) {
30791 if v == nil {
30792 return nil, nil
30793 }
30794 res, err := graphql.UnmarshalMap(v)
30795 return res, graphql.ErrorOnPath(ctx, err)
30796 }
30797
30798 func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler {
30799 if v == nil {
30800 return graphql.Null
30801 }
30802 res := graphql.MarshalMap(v)
30803 return res
30804 }
30805
30806 func (ec *executionContext) marshalOMemoryStressor2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐMemoryStressor(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.MemoryStressor) graphql.Marshaler {
30807 if v == nil {
30808 return graphql.Null
30809 }
30810 return ec._MemoryStressor(ctx, sel, v)
30811 }
30812
30813 func (ec *executionContext) marshalOMistakeSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐMistakeSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.MistakeSpec) graphql.Marshaler {
30814 if v == nil {
30815 return graphql.Null
30816 }
30817 return ec._MistakeSpec(ctx, sel, v)
30818 }
30819
30820 func (ec *executionContext) marshalOMutablePod2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐMutablePod(ctx context.Context, sel ast.SelectionSet, v *model.MutablePod) graphql.Marshaler {
30821 if v == nil {
30822 return graphql.Null
30823 }
30824 return ec._MutablePod(ctx, sel, v)
30825 }
30826
30827 func (ec *executionContext) marshalONamespace2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐNamespaceᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Namespace) graphql.Marshaler {
30828 if v == nil {
30829 return graphql.Null
30830 }
30831 ret := make(graphql.Array, len(v))
30832 var wg sync.WaitGroup
30833 isLen1 := len(v) == 1
30834 if !isLen1 {
30835 wg.Add(len(v))
30836 }
30837 for i := range v {
30838 i := i
30839 fc := &graphql.FieldContext{
30840 Index: &i,
30841 Result: &v[i],
30842 }
30843 ctx := graphql.WithFieldContext(ctx, fc)
30844 f := func(i int) {
30845 defer func() {
30846 if r := recover(); r != nil {
30847 ec.Error(ctx, ec.Recover(ctx, r))
30848 ret = nil
30849 }
30850 }()
30851 if !isLen1 {
30852 defer wg.Done()
30853 }
30854 ret[i] = ec.marshalNNamespace2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐNamespace(ctx, sel, v[i])
30855 }
30856 if isLen1 {
30857 f(i)
30858 } else {
30859 go f(i)
30860 }
30861
30862 }
30863 wg.Wait()
30864
30865 for _, e := range ret {
30866 if e == graphql.Null {
30867 return graphql.Null
30868 }
30869 }
30870
30871 return ret
30872 }
30873
30874 func (ec *executionContext) marshalONetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.NetworkChaos) graphql.Marshaler {
30875 if v == nil {
30876 return graphql.Null
30877 }
30878 ret := make(graphql.Array, len(v))
30879 var wg sync.WaitGroup
30880 isLen1 := len(v) == 1
30881 if !isLen1 {
30882 wg.Add(len(v))
30883 }
30884 for i := range v {
30885 i := i
30886 fc := &graphql.FieldContext{
30887 Index: &i,
30888 Result: &v[i],
30889 }
30890 ctx := graphql.WithFieldContext(ctx, fc)
30891 f := func(i int) {
30892 defer func() {
30893 if r := recover(); r != nil {
30894 ec.Error(ctx, ec.Recover(ctx, r))
30895 ret = nil
30896 }
30897 }()
30898 if !isLen1 {
30899 defer wg.Done()
30900 }
30901 ret[i] = ec.marshalNNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaos(ctx, sel, v[i])
30902 }
30903 if isLen1 {
30904 f(i)
30905 } else {
30906 go f(i)
30907 }
30908
30909 }
30910 wg.Wait()
30911
30912 for _, e := range ret {
30913 if e == graphql.Null {
30914 return graphql.Null
30915 }
30916 }
30917
30918 return ret
30919 }
30920
30921 func (ec *executionContext) marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx context.Context, sel ast.SelectionSet, v []v11.OwnerReference) graphql.Marshaler {
30922 if v == nil {
30923 return graphql.Null
30924 }
30925 ret := make(graphql.Array, len(v))
30926 var wg sync.WaitGroup
30927 isLen1 := len(v) == 1
30928 if !isLen1 {
30929 wg.Add(len(v))
30930 }
30931 for i := range v {
30932 i := i
30933 fc := &graphql.FieldContext{
30934 Index: &i,
30935 Result: &v[i],
30936 }
30937 ctx := graphql.WithFieldContext(ctx, fc)
30938 f := func(i int) {
30939 defer func() {
30940 if r := recover(); r != nil {
30941 ec.Error(ctx, ec.Recover(ctx, r))
30942 ret = nil
30943 }
30944 }()
30945 if !isLen1 {
30946 defer wg.Done()
30947 }
30948 ret[i] = ec.marshalNOwnerReference2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReference(ctx, sel, v[i])
30949 }
30950 if isLen1 {
30951 f(i)
30952 } else {
30953 go f(i)
30954 }
30955
30956 }
30957 wg.Wait()
30958
30959 for _, e := range ret {
30960 if e == graphql.Null {
30961 return graphql.Null
30962 }
30963 }
30964
30965 return ret
30966 }
30967
30968 func (ec *executionContext) marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1.Pod) graphql.Marshaler {
30969 if v == nil {
30970 return graphql.Null
30971 }
30972 ret := make(graphql.Array, len(v))
30973 var wg sync.WaitGroup
30974 isLen1 := len(v) == 1
30975 if !isLen1 {
30976 wg.Add(len(v))
30977 }
30978 for i := range v {
30979 i := i
30980 fc := &graphql.FieldContext{
30981 Index: &i,
30982 Result: &v[i],
30983 }
30984 ctx := graphql.WithFieldContext(ctx, fc)
30985 f := func(i int) {
30986 defer func() {
30987 if r := recover(); r != nil {
30988 ec.Error(ctx, ec.Recover(ctx, r))
30989 ret = nil
30990 }
30991 }()
30992 if !isLen1 {
30993 defer wg.Done()
30994 }
30995 ret[i] = ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, sel, v[i])
30996 }
30997 if isLen1 {
30998 f(i)
30999 } else {
31000 go f(i)
31001 }
31002
31003 }
31004 wg.Wait()
31005
31006 for _, e := range ret {
31007 if e == graphql.Null {
31008 return graphql.Null
31009 }
31010 }
31011
31012 return ret
31013 }
31014
31015 func (ec *executionContext) marshalOPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx context.Context, sel ast.SelectionSet, v *v1.Pod) graphql.Marshaler {
31016 if v == nil {
31017 return graphql.Null
31018 }
31019 return ec._Pod(ctx, sel, v)
31020 }
31021
31022 func (ec *executionContext) marshalOPodCondition2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodConditionᚄ(ctx context.Context, sel ast.SelectionSet, v []v1.PodCondition) graphql.Marshaler {
31023 if v == nil {
31024 return graphql.Null
31025 }
31026 ret := make(graphql.Array, len(v))
31027 var wg sync.WaitGroup
31028 isLen1 := len(v) == 1
31029 if !isLen1 {
31030 wg.Add(len(v))
31031 }
31032 for i := range v {
31033 i := i
31034 fc := &graphql.FieldContext{
31035 Index: &i,
31036 Result: &v[i],
31037 }
31038 ctx := graphql.WithFieldContext(ctx, fc)
31039 f := func(i int) {
31040 defer func() {
31041 if r := recover(); r != nil {
31042 ec.Error(ctx, ec.Recover(ctx, r))
31043 ret = nil
31044 }
31045 }()
31046 if !isLen1 {
31047 defer wg.Done()
31048 }
31049 ret[i] = ec.marshalNPodCondition2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodCondition(ctx, sel, v[i])
31050 }
31051 if isLen1 {
31052 f(i)
31053 } else {
31054 go f(i)
31055 }
31056
31057 }
31058 wg.Wait()
31059
31060 for _, e := range ret {
31061 if e == graphql.Null {
31062 return graphql.Null
31063 }
31064 }
31065
31066 return ret
31067 }
31068
31069 func (ec *executionContext) marshalOPodHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.PodHttpChaos) graphql.Marshaler {
31070 if v == nil {
31071 return graphql.Null
31072 }
31073 ret := make(graphql.Array, len(v))
31074 var wg sync.WaitGroup
31075 isLen1 := len(v) == 1
31076 if !isLen1 {
31077 wg.Add(len(v))
31078 }
31079 for i := range v {
31080 i := i
31081 fc := &graphql.FieldContext{
31082 Index: &i,
31083 Result: &v[i],
31084 }
31085 ctx := graphql.WithFieldContext(ctx, fc)
31086 f := func(i int) {
31087 defer func() {
31088 if r := recover(); r != nil {
31089 ec.Error(ctx, ec.Recover(ctx, r))
31090 ret = nil
31091 }
31092 }()
31093 if !isLen1 {
31094 defer wg.Done()
31095 }
31096 ret[i] = ec.marshalNPodHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaos(ctx, sel, v[i])
31097 }
31098 if isLen1 {
31099 f(i)
31100 } else {
31101 go f(i)
31102 }
31103
31104 }
31105 wg.Wait()
31106
31107 for _, e := range ret {
31108 if e == graphql.Null {
31109 return graphql.Null
31110 }
31111 }
31112
31113 return ret
31114 }
31115
31116 func (ec *executionContext) marshalOPodHttpChaosPatchActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchActions(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosPatchActions) graphql.Marshaler {
31117 if v == nil {
31118 return graphql.Null
31119 }
31120 return ec._PodHttpChaosPatchActions(ctx, sel, v)
31121 }
31122
31123 func (ec *executionContext) marshalOPodHttpChaosPatchBodyAction2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchBodyAction(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosPatchBodyAction) graphql.Marshaler {
31124 if v == nil {
31125 return graphql.Null
31126 }
31127 return ec._PodHttpChaosPatchBodyAction(ctx, sel, v)
31128 }
31129
31130 func (ec *executionContext) marshalOPodHttpChaosReplaceActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosReplaceActions(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosReplaceActions) graphql.Marshaler {
31131 if v == nil {
31132 return graphql.Null
31133 }
31134 return ec._PodHttpChaosReplaceActions(ctx, sel, v)
31135 }
31136
31137 func (ec *executionContext) marshalOPodHttpChaosTLS2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosTLS(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosTLS) graphql.Marshaler {
31138 if v == nil {
31139 return graphql.Null
31140 }
31141 return ec._PodHttpChaosTLS(ctx, sel, v)
31142 }
31143
31144 func (ec *executionContext) marshalOPodIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.PodIOChaos) graphql.Marshaler {
31145 if v == nil {
31146 return graphql.Null
31147 }
31148 ret := make(graphql.Array, len(v))
31149 var wg sync.WaitGroup
31150 isLen1 := len(v) == 1
31151 if !isLen1 {
31152 wg.Add(len(v))
31153 }
31154 for i := range v {
31155 i := i
31156 fc := &graphql.FieldContext{
31157 Index: &i,
31158 Result: &v[i],
31159 }
31160 ctx := graphql.WithFieldContext(ctx, fc)
31161 f := func(i int) {
31162 defer func() {
31163 if r := recover(); r != nil {
31164 ec.Error(ctx, ec.Recover(ctx, r))
31165 ret = nil
31166 }
31167 }()
31168 if !isLen1 {
31169 defer wg.Done()
31170 }
31171 ret[i] = ec.marshalNPodIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaos(ctx, sel, v[i])
31172 }
31173 if isLen1 {
31174 f(i)
31175 } else {
31176 go f(i)
31177 }
31178
31179 }
31180 wg.Wait()
31181
31182 for _, e := range ret {
31183 if e == graphql.Null {
31184 return graphql.Null
31185 }
31186 }
31187
31188 return ret
31189 }
31190
31191 func (ec *executionContext) marshalOPodIP2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodIPᚄ(ctx context.Context, sel ast.SelectionSet, v []v1.PodIP) graphql.Marshaler {
31192 if v == nil {
31193 return graphql.Null
31194 }
31195 ret := make(graphql.Array, len(v))
31196 var wg sync.WaitGroup
31197 isLen1 := len(v) == 1
31198 if !isLen1 {
31199 wg.Add(len(v))
31200 }
31201 for i := range v {
31202 i := i
31203 fc := &graphql.FieldContext{
31204 Index: &i,
31205 Result: &v[i],
31206 }
31207 ctx := graphql.WithFieldContext(ctx, fc)
31208 f := func(i int) {
31209 defer func() {
31210 if r := recover(); r != nil {
31211 ec.Error(ctx, ec.Recover(ctx, r))
31212 ret = nil
31213 }
31214 }()
31215 if !isLen1 {
31216 defer wg.Done()
31217 }
31218 ret[i] = ec.marshalNPodIP2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodIP(ctx, sel, v[i])
31219 }
31220 if isLen1 {
31221 f(i)
31222 } else {
31223 go f(i)
31224 }
31225
31226 }
31227 wg.Wait()
31228
31229 for _, e := range ret {
31230 if e == graphql.Null {
31231 return graphql.Null
31232 }
31233 }
31234
31235 return ret
31236 }
31237
31238 func (ec *executionContext) marshalOPodNetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.PodNetworkChaos) graphql.Marshaler {
31239 if v == nil {
31240 return graphql.Null
31241 }
31242 ret := make(graphql.Array, len(v))
31243 var wg sync.WaitGroup
31244 isLen1 := len(v) == 1
31245 if !isLen1 {
31246 wg.Add(len(v))
31247 }
31248 for i := range v {
31249 i := i
31250 fc := &graphql.FieldContext{
31251 Index: &i,
31252 Result: &v[i],
31253 }
31254 ctx := graphql.WithFieldContext(ctx, fc)
31255 f := func(i int) {
31256 defer func() {
31257 if r := recover(); r != nil {
31258 ec.Error(ctx, ec.Recover(ctx, r))
31259 ret = nil
31260 }
31261 }()
31262 if !isLen1 {
31263 defer wg.Done()
31264 }
31265 ret[i] = ec.marshalNPodNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaos(ctx, sel, v[i])
31266 }
31267 if isLen1 {
31268 f(i)
31269 } else {
31270 go f(i)
31271 }
31272
31273 }
31274 wg.Wait()
31275
31276 for _, e := range ret {
31277 if e == graphql.Null {
31278 return graphql.Null
31279 }
31280 }
31281
31282 return ret
31283 }
31284
31285 func (ec *executionContext) marshalOPodStressChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐPodStressChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.PodStressChaos) graphql.Marshaler {
31286 if v == nil {
31287 return graphql.Null
31288 }
31289 ret := make(graphql.Array, len(v))
31290 var wg sync.WaitGroup
31291 isLen1 := len(v) == 1
31292 if !isLen1 {
31293 wg.Add(len(v))
31294 }
31295 for i := range v {
31296 i := i
31297 fc := &graphql.FieldContext{
31298 Index: &i,
31299 Result: &v[i],
31300 }
31301 ctx := graphql.WithFieldContext(ctx, fc)
31302 f := func(i int) {
31303 defer func() {
31304 if r := recover(); r != nil {
31305 ec.Error(ctx, ec.Recover(ctx, r))
31306 ret = nil
31307 }
31308 }()
31309 if !isLen1 {
31310 defer wg.Done()
31311 }
31312 ret[i] = ec.marshalNPodStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐPodStressChaos(ctx, sel, v[i])
31313 }
31314 if isLen1 {
31315 f(i)
31316 } else {
31317 go f(i)
31318 }
31319
31320 }
31321 wg.Wait()
31322
31323 for _, e := range ret {
31324 if e == graphql.Null {
31325 return graphql.Null
31326 }
31327 }
31328
31329 return ret
31330 }
31331
31332 func (ec *executionContext) marshalOProcess2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcessᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Process) graphql.Marshaler {
31333 if v == nil {
31334 return graphql.Null
31335 }
31336 ret := make(graphql.Array, len(v))
31337 var wg sync.WaitGroup
31338 isLen1 := len(v) == 1
31339 if !isLen1 {
31340 wg.Add(len(v))
31341 }
31342 for i := range v {
31343 i := i
31344 fc := &graphql.FieldContext{
31345 Index: &i,
31346 Result: &v[i],
31347 }
31348 ctx := graphql.WithFieldContext(ctx, fc)
31349 f := func(i int) {
31350 defer func() {
31351 if r := recover(); r != nil {
31352 ec.Error(ctx, ec.Recover(ctx, r))
31353 ret = nil
31354 }
31355 }()
31356 if !isLen1 {
31357 defer wg.Done()
31358 }
31359 ret[i] = ec.marshalNProcess2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcess(ctx, sel, v[i])
31360 }
31361 if isLen1 {
31362 f(i)
31363 } else {
31364 go f(i)
31365 }
31366
31367 }
31368 wg.Wait()
31369
31370 for _, e := range ret {
31371 if e == graphql.Null {
31372 return graphql.Null
31373 }
31374 }
31375
31376 return ret
31377 }
31378
31379 func (ec *executionContext) marshalOProcessStress2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcessStressᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.ProcessStress) graphql.Marshaler {
31380 if v == nil {
31381 return graphql.Null
31382 }
31383 ret := make(graphql.Array, len(v))
31384 var wg sync.WaitGroup
31385 isLen1 := len(v) == 1
31386 if !isLen1 {
31387 wg.Add(len(v))
31388 }
31389 for i := range v {
31390 i := i
31391 fc := &graphql.FieldContext{
31392 Index: &i,
31393 Result: &v[i],
31394 }
31395 ctx := graphql.WithFieldContext(ctx, fc)
31396 f := func(i int) {
31397 defer func() {
31398 if r := recover(); r != nil {
31399 ec.Error(ctx, ec.Recover(ctx, r))
31400 ret = nil
31401 }
31402 }()
31403 if !isLen1 {
31404 defer wg.Done()
31405 }
31406 ret[i] = ec.marshalNProcessStress2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlᚋserverᚋmodelᚐProcessStress(ctx, sel, v[i])
31407 }
31408 if isLen1 {
31409 f(i)
31410 } else {
31411 go f(i)
31412 }
31413
31414 }
31415 wg.Wait()
31416
31417 for _, e := range ret {
31418 if e == graphql.Null {
31419 return graphql.Null
31420 }
31421 }
31422
31423 return ret
31424 }
31425
31426 func (ec *executionContext) marshalORateSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRateSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.RateSpec) graphql.Marshaler {
31427 if v == nil {
31428 return graphql.Null
31429 }
31430 return ec._RateSpec(ctx, sel, v)
31431 }
31432
31433 func (ec *executionContext) marshalORawIPSet2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSetᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.RawIPSet) graphql.Marshaler {
31434 if v == nil {
31435 return graphql.Null
31436 }
31437 ret := make(graphql.Array, len(v))
31438 var wg sync.WaitGroup
31439 isLen1 := len(v) == 1
31440 if !isLen1 {
31441 wg.Add(len(v))
31442 }
31443 for i := range v {
31444 i := i
31445 fc := &graphql.FieldContext{
31446 Index: &i,
31447 Result: &v[i],
31448 }
31449 ctx := graphql.WithFieldContext(ctx, fc)
31450 f := func(i int) {
31451 defer func() {
31452 if r := recover(); r != nil {
31453 ec.Error(ctx, ec.Recover(ctx, r))
31454 ret = nil
31455 }
31456 }()
31457 if !isLen1 {
31458 defer wg.Done()
31459 }
31460 ret[i] = ec.marshalNRawIPSet2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSet(ctx, sel, v[i])
31461 }
31462 if isLen1 {
31463 f(i)
31464 } else {
31465 go f(i)
31466 }
31467
31468 }
31469 wg.Wait()
31470
31471 for _, e := range ret {
31472 if e == graphql.Null {
31473 return graphql.Null
31474 }
31475 }
31476
31477 return ret
31478 }
31479
31480 func (ec *executionContext) marshalORawIptables2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptablesᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.RawIptables) graphql.Marshaler {
31481 if v == nil {
31482 return graphql.Null
31483 }
31484 ret := make(graphql.Array, len(v))
31485 var wg sync.WaitGroup
31486 isLen1 := len(v) == 1
31487 if !isLen1 {
31488 wg.Add(len(v))
31489 }
31490 for i := range v {
31491 i := i
31492 fc := &graphql.FieldContext{
31493 Index: &i,
31494 Result: &v[i],
31495 }
31496 ctx := graphql.WithFieldContext(ctx, fc)
31497 f := func(i int) {
31498 defer func() {
31499 if r := recover(); r != nil {
31500 ec.Error(ctx, ec.Recover(ctx, r))
31501 ret = nil
31502 }
31503 }()
31504 if !isLen1 {
31505 defer wg.Done()
31506 }
31507 ret[i] = ec.marshalNRawIptables2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptables(ctx, sel, v[i])
31508 }
31509 if isLen1 {
31510 f(i)
31511 } else {
31512 go f(i)
31513 }
31514
31515 }
31516 wg.Wait()
31517
31518 for _, e := range ret {
31519 if e == graphql.Null {
31520 return graphql.Null
31521 }
31522 }
31523
31524 return ret
31525 }
31526
31527 func (ec *executionContext) marshalORawTrafficControl2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControlᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.RawTrafficControl) graphql.Marshaler {
31528 if v == nil {
31529 return graphql.Null
31530 }
31531 ret := make(graphql.Array, len(v))
31532 var wg sync.WaitGroup
31533 isLen1 := len(v) == 1
31534 if !isLen1 {
31535 wg.Add(len(v))
31536 }
31537 for i := range v {
31538 i := i
31539 fc := &graphql.FieldContext{
31540 Index: &i,
31541 Result: &v[i],
31542 }
31543 ctx := graphql.WithFieldContext(ctx, fc)
31544 f := func(i int) {
31545 defer func() {
31546 if r := recover(); r != nil {
31547 ec.Error(ctx, ec.Recover(ctx, r))
31548 ret = nil
31549 }
31550 }()
31551 if !isLen1 {
31552 defer wg.Done()
31553 }
31554 ret[i] = ec.marshalNRawTrafficControl2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControl(ctx, sel, v[i])
31555 }
31556 if isLen1 {
31557 f(i)
31558 } else {
31559 go f(i)
31560 }
31561
31562 }
31563 wg.Wait()
31564
31565 for _, e := range ret {
31566 if e == graphql.Null {
31567 return graphql.Null
31568 }
31569 }
31570
31571 return ret
31572 }
31573
31574 func (ec *executionContext) marshalORecord2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecordᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.Record) graphql.Marshaler {
31575 if v == nil {
31576 return graphql.Null
31577 }
31578 ret := make(graphql.Array, len(v))
31579 var wg sync.WaitGroup
31580 isLen1 := len(v) == 1
31581 if !isLen1 {
31582 wg.Add(len(v))
31583 }
31584 for i := range v {
31585 i := i
31586 fc := &graphql.FieldContext{
31587 Index: &i,
31588 Result: &v[i],
31589 }
31590 ctx := graphql.WithFieldContext(ctx, fc)
31591 f := func(i int) {
31592 defer func() {
31593 if r := recover(); r != nil {
31594 ec.Error(ctx, ec.Recover(ctx, r))
31595 ret = nil
31596 }
31597 }()
31598 if !isLen1 {
31599 defer wg.Done()
31600 }
31601 ret[i] = ec.marshalNRecord2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecord(ctx, sel, v[i])
31602 }
31603 if isLen1 {
31604 f(i)
31605 } else {
31606 go f(i)
31607 }
31608
31609 }
31610 wg.Wait()
31611
31612 for _, e := range ret {
31613 if e == graphql.Null {
31614 return graphql.Null
31615 }
31616 }
31617
31618 return ret
31619 }
31620
31621 func (ec *executionContext) marshalOReorderSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐReorderSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.ReorderSpec) graphql.Marshaler {
31622 if v == nil {
31623 return graphql.Null
31624 }
31625 return ec._ReorderSpec(ctx, sel, v)
31626 }
31627
31628 func (ec *executionContext) marshalOStressChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.StressChaos) graphql.Marshaler {
31629 if v == nil {
31630 return graphql.Null
31631 }
31632 ret := make(graphql.Array, len(v))
31633 var wg sync.WaitGroup
31634 isLen1 := len(v) == 1
31635 if !isLen1 {
31636 wg.Add(len(v))
31637 }
31638 for i := range v {
31639 i := i
31640 fc := &graphql.FieldContext{
31641 Index: &i,
31642 Result: &v[i],
31643 }
31644 ctx := graphql.WithFieldContext(ctx, fc)
31645 f := func(i int) {
31646 defer func() {
31647 if r := recover(); r != nil {
31648 ec.Error(ctx, ec.Recover(ctx, r))
31649 ret = nil
31650 }
31651 }()
31652 if !isLen1 {
31653 defer wg.Done()
31654 }
31655 ret[i] = ec.marshalNStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaos(ctx, sel, v[i])
31656 }
31657 if isLen1 {
31658 f(i)
31659 } else {
31660 go f(i)
31661 }
31662
31663 }
31664 wg.Wait()
31665
31666 for _, e := range ret {
31667 if e == graphql.Null {
31668 return graphql.Null
31669 }
31670 }
31671
31672 return ret
31673 }
31674
31675 func (ec *executionContext) marshalOStressors2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressors(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.Stressors) graphql.Marshaler {
31676 if v == nil {
31677 return graphql.Null
31678 }
31679 return ec._Stressors(ctx, sel, v)
31680 }
31681
31682 func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
31683 res, err := graphql.UnmarshalString(v)
31684 return res, graphql.ErrorOnPath(ctx, err)
31685 }
31686
31687 func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
31688 res := graphql.MarshalString(v)
31689 return res
31690 }
31691
31692 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
31693 if v == nil {
31694 return nil, nil
31695 }
31696 var vSlice []interface{}
31697 if v != nil {
31698 vSlice = graphql.CoerceList(v)
31699 }
31700 var err error
31701 res := make([]string, len(vSlice))
31702 for i := range vSlice {
31703 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
31704 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
31705 if err != nil {
31706 return nil, err
31707 }
31708 }
31709 return res, nil
31710 }
31711
31712 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
31713 if v == nil {
31714 return graphql.Null
31715 }
31716 ret := make(graphql.Array, len(v))
31717 for i := range v {
31718 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
31719 }
31720
31721 for _, e := range ret {
31722 if e == graphql.Null {
31723 return graphql.Null
31724 }
31725 }
31726
31727 return ret
31728 }
31729
31730 func (ec *executionContext) unmarshalOString2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) {
31731 if v == nil {
31732 return nil, nil
31733 }
31734 var vSlice []interface{}
31735 if v != nil {
31736 vSlice = graphql.CoerceList(v)
31737 }
31738 var err error
31739 res := make([][]string, len(vSlice))
31740 for i := range vSlice {
31741 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
31742 res[i], err = ec.unmarshalNString2ᚕstringᚄ(ctx, vSlice[i])
31743 if err != nil {
31744 return nil, err
31745 }
31746 }
31747 return res, nil
31748 }
31749
31750 func (ec *executionContext) marshalOString2ᚕᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v [][]string) graphql.Marshaler {
31751 if v == nil {
31752 return graphql.Null
31753 }
31754 ret := make(graphql.Array, len(v))
31755 for i := range v {
31756 ret[i] = ec.marshalNString2ᚕstringᚄ(ctx, sel, v[i])
31757 }
31758
31759 for _, e := range ret {
31760 if e == graphql.Null {
31761 return graphql.Null
31762 }
31763 }
31764
31765 return ret
31766 }
31767
31768 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
31769 if v == nil {
31770 return nil, nil
31771 }
31772 res, err := graphql.UnmarshalString(v)
31773 return &res, graphql.ErrorOnPath(ctx, err)
31774 }
31775
31776 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
31777 if v == nil {
31778 return graphql.Null
31779 }
31780 res := graphql.MarshalString(*v)
31781 return res
31782 }
31783
31784 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
31785 if v == nil {
31786 return nil, nil
31787 }
31788 res, err := graphql.UnmarshalTime(v)
31789 return &res, graphql.ErrorOnPath(ctx, err)
31790 }
31791
31792 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
31793 if v == nil {
31794 return graphql.Null
31795 }
31796 res := graphql.MarshalTime(*v)
31797 return res
31798 }
31799
31800 func (ec *executionContext) marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.Timespec) graphql.Marshaler {
31801 if v == nil {
31802 return graphql.Null
31803 }
31804 return ec._Timespec(ctx, sel, v)
31805 }
31806
31807 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
31808 if v == nil {
31809 return graphql.Null
31810 }
31811 ret := make(graphql.Array, len(v))
31812 var wg sync.WaitGroup
31813 isLen1 := len(v) == 1
31814 if !isLen1 {
31815 wg.Add(len(v))
31816 }
31817 for i := range v {
31818 i := i
31819 fc := &graphql.FieldContext{
31820 Index: &i,
31821 Result: &v[i],
31822 }
31823 ctx := graphql.WithFieldContext(ctx, fc)
31824 f := func(i int) {
31825 defer func() {
31826 if r := recover(); r != nil {
31827 ec.Error(ctx, ec.Recover(ctx, r))
31828 ret = nil
31829 }
31830 }()
31831 if !isLen1 {
31832 defer wg.Done()
31833 }
31834 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
31835 }
31836 if isLen1 {
31837 f(i)
31838 } else {
31839 go f(i)
31840 }
31841
31842 }
31843 wg.Wait()
31844
31845 for _, e := range ret {
31846 if e == graphql.Null {
31847 return graphql.Null
31848 }
31849 }
31850
31851 return ret
31852 }
31853
31854 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
31855 if v == nil {
31856 return graphql.Null
31857 }
31858 ret := make(graphql.Array, len(v))
31859 var wg sync.WaitGroup
31860 isLen1 := len(v) == 1
31861 if !isLen1 {
31862 wg.Add(len(v))
31863 }
31864 for i := range v {
31865 i := i
31866 fc := &graphql.FieldContext{
31867 Index: &i,
31868 Result: &v[i],
31869 }
31870 ctx := graphql.WithFieldContext(ctx, fc)
31871 f := func(i int) {
31872 defer func() {
31873 if r := recover(); r != nil {
31874 ec.Error(ctx, ec.Recover(ctx, r))
31875 ret = nil
31876 }
31877 }()
31878 if !isLen1 {
31879 defer wg.Done()
31880 }
31881 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
31882 }
31883 if isLen1 {
31884 f(i)
31885 } else {
31886 go f(i)
31887 }
31888
31889 }
31890 wg.Wait()
31891
31892 for _, e := range ret {
31893 if e == graphql.Null {
31894 return graphql.Null
31895 }
31896 }
31897
31898 return ret
31899 }
31900
31901 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
31902 if v == nil {
31903 return graphql.Null
31904 }
31905 ret := make(graphql.Array, len(v))
31906 var wg sync.WaitGroup
31907 isLen1 := len(v) == 1
31908 if !isLen1 {
31909 wg.Add(len(v))
31910 }
31911 for i := range v {
31912 i := i
31913 fc := &graphql.FieldContext{
31914 Index: &i,
31915 Result: &v[i],
31916 }
31917 ctx := graphql.WithFieldContext(ctx, fc)
31918 f := func(i int) {
31919 defer func() {
31920 if r := recover(); r != nil {
31921 ec.Error(ctx, ec.Recover(ctx, r))
31922 ret = nil
31923 }
31924 }()
31925 if !isLen1 {
31926 defer wg.Done()
31927 }
31928 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
31929 }
31930 if isLen1 {
31931 f(i)
31932 } else {
31933 go f(i)
31934 }
31935
31936 }
31937 wg.Wait()
31938
31939 for _, e := range ret {
31940 if e == graphql.Null {
31941 return graphql.Null
31942 }
31943 }
31944
31945 return ret
31946 }
31947
31948 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
31949 if v == nil {
31950 return graphql.Null
31951 }
31952 return ec.___Schema(ctx, sel, v)
31953 }
31954
31955 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
31956 if v == nil {
31957 return graphql.Null
31958 }
31959 ret := make(graphql.Array, len(v))
31960 var wg sync.WaitGroup
31961 isLen1 := len(v) == 1
31962 if !isLen1 {
31963 wg.Add(len(v))
31964 }
31965 for i := range v {
31966 i := i
31967 fc := &graphql.FieldContext{
31968 Index: &i,
31969 Result: &v[i],
31970 }
31971 ctx := graphql.WithFieldContext(ctx, fc)
31972 f := func(i int) {
31973 defer func() {
31974 if r := recover(); r != nil {
31975 ec.Error(ctx, ec.Recover(ctx, r))
31976 ret = nil
31977 }
31978 }()
31979 if !isLen1 {
31980 defer wg.Done()
31981 }
31982 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
31983 }
31984 if isLen1 {
31985 f(i)
31986 } else {
31987 go f(i)
31988 }
31989
31990 }
31991 wg.Wait()
31992
31993 for _, e := range ret {
31994 if e == graphql.Null {
31995 return graphql.Null
31996 }
31997 }
31998
31999 return ret
32000 }
32001
32002 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
32003 if v == nil {
32004 return graphql.Null
32005 }
32006 return ec.___Type(ctx, sel, v)
32007 }
32008
32009
32010