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/ctrlserver/graph/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 ContainerStateRunning() ContainerStateRunningResolver
48 ContainerStateTerminated() ContainerStateTerminatedResolver
49 CorruptSpec() CorruptSpecResolver
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 Namespace() NamespaceResolver
62 NetworkChaos() NetworkChaosResolver
63 OwnerReference() OwnerReferenceResolver
64 Pod() PodResolver
65 PodCondition() PodConditionResolver
66 PodHTTPChaos() PodHTTPChaosResolver
67 PodHttpChaosReplaceActions() PodHttpChaosReplaceActionsResolver
68 PodHttpChaosRule() PodHttpChaosRuleResolver
69 PodHttpChaosSelector() PodHttpChaosSelectorResolver
70 PodIOChaos() PodIOChaosResolver
71 PodNetworkChaos() PodNetworkChaosResolver
72 PodSelectorSpec() PodSelectorSpecResolver
73 PodStatus() PodStatusResolver
74 Process() ProcessResolver
75 Query() QueryResolver
76 RawIptables() RawIptablesResolver
77 RawTrafficControl() RawTrafficControlResolver
78 Record() RecordResolver
79 StressChaos() StressChaosResolver
80 }
81
82 type DirectiveRoot struct {
83 }
84
85 type ComplexityRoot struct {
86 AttrOverrideSpec struct {
87 Atime func(childComplexity int) int
88 Blocks func(childComplexity int) int
89 Ctime func(childComplexity int) int
90 Gid func(childComplexity int) int
91 Ino func(childComplexity int) int
92 Kind func(childComplexity int) int
93 Mtime func(childComplexity int) int
94 Nlink func(childComplexity int) int
95 Perm func(childComplexity int) int
96 Rdev func(childComplexity int) int
97 Size func(childComplexity int) int
98 UID func(childComplexity int) int
99 }
100
101 BandwidthSpec struct {
102 Buffer func(childComplexity int) int
103 Limit func(childComplexity int) int
104 Minburst func(childComplexity int) int
105 Peakrate func(childComplexity int) int
106 Rate func(childComplexity int) int
107 }
108
109 ChaosCondition struct {
110 Reason func(childComplexity int) int
111 Status func(childComplexity int) int
112 Type func(childComplexity int) int
113 }
114
115 ContainerState struct {
116 Running func(childComplexity int) int
117 Terminated func(childComplexity int) int
118 Waiting func(childComplexity int) int
119 }
120
121 ContainerStateRunning struct {
122 StartedAt func(childComplexity int) int
123 }
124
125 ContainerStateTerminated struct {
126 ContainerID func(childComplexity int) int
127 ExitCode func(childComplexity int) int
128 FinishedAt func(childComplexity int) int
129 Message func(childComplexity int) int
130 Reason func(childComplexity int) int
131 Signal func(childComplexity int) int
132 StartedAt func(childComplexity int) int
133 }
134
135 ContainerStateWaiting struct {
136 Message func(childComplexity int) int
137 Reason func(childComplexity int) int
138 }
139
140 ContainerStatus struct {
141 ContainerID func(childComplexity int) int
142 Image func(childComplexity int) int
143 ImageID func(childComplexity int) int
144 LastTerminationState func(childComplexity int) int
145 Name func(childComplexity int) int
146 Ready func(childComplexity int) int
147 RestartCount func(childComplexity int) int
148 Started func(childComplexity int) int
149 State func(childComplexity int) int
150 }
151
152 CorruptSpec struct {
153 Correlation func(childComplexity int) int
154 Corrup func(childComplexity int) int
155 }
156
157 DelaySpec struct {
158 Correlation func(childComplexity int) int
159 Jitter func(childComplexity int) int
160 Latency func(childComplexity int) int
161 Reorder func(childComplexity int) int
162 }
163
164 DuplicateSpec struct {
165 Correlation func(childComplexity int) int
166 Duplicate func(childComplexity int) int
167 }
168
169 ExperimentStatus struct {
170 DesiredPhase func(childComplexity int) int
171 Records func(childComplexity int) int
172 }
173
174 Fd struct {
175 Fd func(childComplexity int) int
176 Target func(childComplexity int) int
177 }
178
179 HTTPChaos struct {
180 APIVersion func(childComplexity int) int
181 Annotations func(childComplexity int) int
182 ClusterName func(childComplexity int) int
183 CreationTimestamp func(childComplexity int) int
184 DeletionGracePeriodSeconds func(childComplexity int) int
185 DeletionTimestamp func(childComplexity int) int
186 Finalizers func(childComplexity int) int
187 GenerateName func(childComplexity int) int
188 Generation func(childComplexity int) int
189 Kind func(childComplexity int) int
190 Labels func(childComplexity int) int
191 Name func(childComplexity int) int
192 Namespace func(childComplexity int) int
193 OwnerReferences func(childComplexity int) int
194 Podhttp func(childComplexity int) int
195 ResourceVersion func(childComplexity int) int
196 SelfLink func(childComplexity int) int
197 Spec func(childComplexity int) int
198 Status func(childComplexity int) int
199 UID func(childComplexity int) int
200 }
201
202 HTTPChaosSpec struct {
203 Abort func(childComplexity int) int
204 Code func(childComplexity int) int
205 Delay func(childComplexity int) int
206 Duration func(childComplexity int) int
207 Method func(childComplexity int) int
208 Mode func(childComplexity int) int
209 Patch func(childComplexity int) int
210 Path func(childComplexity int) int
211 Port func(childComplexity int) int
212 Replace func(childComplexity int) int
213 RequestHeaders func(childComplexity int) int
214 ResponseHeaders func(childComplexity int) int
215 Selector func(childComplexity int) int
216 Target func(childComplexity int) int
217 Value func(childComplexity int) int
218 }
219
220 HTTPChaosStatus struct {
221 Conditions func(childComplexity int) int
222 Experiment func(childComplexity int) int
223 Instances func(childComplexity int) int
224 }
225
226 IOChaos struct {
227 APIVersion func(childComplexity int) int
228 Annotations func(childComplexity int) int
229 ClusterName func(childComplexity int) int
230 CreationTimestamp func(childComplexity int) int
231 DeletionGracePeriodSeconds func(childComplexity int) int
232 DeletionTimestamp func(childComplexity int) int
233 Finalizers func(childComplexity int) int
234 GenerateName func(childComplexity int) int
235 Generation func(childComplexity int) int
236 Kind func(childComplexity int) int
237 Labels func(childComplexity int) int
238 Name func(childComplexity int) int
239 Namespace func(childComplexity int) int
240 OwnerReferences func(childComplexity int) int
241 Podios func(childComplexity int) int
242 ResourceVersion func(childComplexity int) int
243 SelfLink func(childComplexity int) int
244 Spec func(childComplexity int) int
245 Status func(childComplexity int) int
246 UID func(childComplexity int) int
247 }
248
249 IOChaosAction struct {
250 Atime func(childComplexity int) int
251 Blocks func(childComplexity int) int
252 Ctime func(childComplexity int) int
253 Faults func(childComplexity int) int
254 Filling func(childComplexity int) int
255 Gid func(childComplexity int) int
256 Ino func(childComplexity int) int
257 Kind func(childComplexity int) int
258 Latency func(childComplexity int) int
259 MaxLength func(childComplexity int) int
260 MaxOccurrences func(childComplexity int) int
261 Methods func(childComplexity int) int
262 Mtime func(childComplexity int) int
263 Nlink func(childComplexity int) int
264 Path func(childComplexity int) int
265 Percent func(childComplexity int) int
266 Perm func(childComplexity int) int
267 Rdev func(childComplexity int) int
268 Size func(childComplexity int) int
269 Source func(childComplexity int) int
270 Type func(childComplexity int) int
271 UID func(childComplexity int) int
272 }
273
274 IOChaosSpec struct {
275 Action func(childComplexity int) int
276 Attr func(childComplexity int) int
277 ContainerNames func(childComplexity int) int
278 Delay func(childComplexity int) int
279 Duration func(childComplexity int) int
280 Errno func(childComplexity int) int
281 Methods func(childComplexity int) int
282 Mistake func(childComplexity int) int
283 Mode func(childComplexity int) int
284 Path func(childComplexity int) int
285 Percent func(childComplexity int) int
286 Selector func(childComplexity int) int
287 Value func(childComplexity int) int
288 VolumePath func(childComplexity int) int
289 }
290
291 IOChaosStatus struct {
292 Conditions func(childComplexity int) int
293 Experiment func(childComplexity int) int
294 Instances func(childComplexity int) int
295 }
296
297 IoFault struct {
298 Errno func(childComplexity int) int
299 Weight func(childComplexity int) int
300 }
301
302 Logger struct {
303 Component func(childComplexity int, ns string, component model.Component) int
304 Pod func(childComplexity int, ns string, name string) int
305 }
306
307 LossSpec struct {
308 Correlation func(childComplexity int) int
309 Loss func(childComplexity int) int
310 }
311
312 MistakeSpec struct {
313 Filling func(childComplexity int) int
314 MaxLength func(childComplexity int) int
315 MaxOccurrences func(childComplexity int) int
316 }
317
318 Namespace struct {
319 Component func(childComplexity int, component model.Component) int
320 Httpchaos func(childComplexity int, name *string) int
321 Iochaos func(childComplexity int, name *string) int
322 Networkchaos func(childComplexity int, name *string) int
323 Ns func(childComplexity int) int
324 Pod func(childComplexity int, name *string) int
325 Podhttpchaos func(childComplexity int, name *string) int
326 Podiochaos func(childComplexity int, name *string) int
327 Podnetworkchaos func(childComplexity int, name *string) int
328 Stresschaos func(childComplexity int, name *string) int
329 }
330
331 NetworkChaos struct {
332 APIVersion func(childComplexity int) int
333 Annotations func(childComplexity int) int
334 ClusterName func(childComplexity int) int
335 CreationTimestamp func(childComplexity int) int
336 DeletionGracePeriodSeconds func(childComplexity int) int
337 DeletionTimestamp func(childComplexity int) int
338 Finalizers func(childComplexity int) int
339 GenerateName func(childComplexity int) int
340 Generation func(childComplexity int) int
341 Kind func(childComplexity int) int
342 Labels func(childComplexity int) int
343 Name func(childComplexity int) int
344 Namespace func(childComplexity int) int
345 OwnerReferences func(childComplexity int) int
346 Podnetwork func(childComplexity int) int
347 ResourceVersion func(childComplexity int) int
348 SelfLink func(childComplexity int) int
349 UID func(childComplexity int) int
350 }
351
352 OwnerReference struct {
353 APIVersion func(childComplexity int) int
354 BlockOwnerDeletion func(childComplexity int) int
355 Controller func(childComplexity int) int
356 Kind func(childComplexity int) int
357 Name func(childComplexity int) int
358 UID func(childComplexity int) int
359 }
360
361 Pod struct {
362 APIVersion func(childComplexity int) int
363 Annotations func(childComplexity int) int
364 ClusterName func(childComplexity int) int
365 CreationTimestamp func(childComplexity int) int
366 Daemon func(childComplexity int) int
367 DeletionGracePeriodSeconds func(childComplexity int) int
368 DeletionTimestamp func(childComplexity int) int
369 Finalizers func(childComplexity int) int
370 GenerateName func(childComplexity int) int
371 Generation func(childComplexity int) int
372 Ipset func(childComplexity int) int
373 Iptables func(childComplexity int) int
374 Kind func(childComplexity int) int
375 Labels func(childComplexity int) int
376 Logs func(childComplexity int) int
377 Mounts func(childComplexity int) int
378 Name func(childComplexity int) int
379 Namespace func(childComplexity int) int
380 OwnerReferences func(childComplexity int) int
381 Processes func(childComplexity int) int
382 ResourceVersion func(childComplexity int) int
383 SelfLink func(childComplexity int) int
384 Spec func(childComplexity int) int
385 Status func(childComplexity int) int
386 TcQdisc func(childComplexity int) int
387 UID func(childComplexity int) int
388 }
389
390 PodCondition struct {
391 LastProbeTime func(childComplexity int) int
392 LastTransitionTime func(childComplexity int) int
393 Message func(childComplexity int) int
394 Reason func(childComplexity int) int
395 Status func(childComplexity int) int
396 Type func(childComplexity int) int
397 }
398
399 PodHTTPChaos struct {
400 APIVersion func(childComplexity int) int
401 Annotations func(childComplexity int) int
402 ClusterName func(childComplexity int) int
403 CreationTimestamp func(childComplexity int) int
404 DeletionGracePeriodSeconds func(childComplexity int) int
405 DeletionTimestamp func(childComplexity int) int
406 Finalizers func(childComplexity int) int
407 GenerateName func(childComplexity int) int
408 Generation func(childComplexity int) int
409 Kind func(childComplexity int) int
410 Labels func(childComplexity int) int
411 Name func(childComplexity int) int
412 Namespace func(childComplexity int) int
413 OwnerReferences func(childComplexity int) int
414 Pod func(childComplexity int) int
415 ResourceVersion func(childComplexity int) int
416 SelfLink func(childComplexity int) int
417 Spec func(childComplexity int) int
418 Status func(childComplexity int) int
419 UID func(childComplexity int) int
420 }
421
422 PodHTTPChaosActions struct {
423 Abort func(childComplexity int) int
424 Delay func(childComplexity int) int
425 Patch func(childComplexity int) int
426 Replace func(childComplexity int) int
427 }
428
429 PodHTTPChaosPatchActions struct {
430 Body func(childComplexity int) int
431 Headers func(childComplexity int) int
432 Queries func(childComplexity int) int
433 }
434
435 PodHTTPChaosPatchBodyAction struct {
436 Type func(childComplexity int) int
437 Value func(childComplexity int) int
438 }
439
440 PodHTTPChaosReplaceActions struct {
441 Body func(childComplexity int) int
442 Code func(childComplexity int) int
443 Headers func(childComplexity int) int
444 Method func(childComplexity int) int
445 Path func(childComplexity int) int
446 Queries func(childComplexity int) int
447 }
448
449 PodHTTPChaosRule struct {
450 Actions func(childComplexity int) int
451 Port func(childComplexity int) int
452 Selector func(childComplexity int) int
453 Source func(childComplexity int) int
454 Target func(childComplexity int) int
455 }
456
457 PodHTTPChaosSelector struct {
458 Code func(childComplexity int) int
459 Method func(childComplexity int) int
460 Path func(childComplexity int) int
461 Port func(childComplexity int) int
462 RequestHeaders func(childComplexity int) int
463 ResponseHeaders func(childComplexity int) int
464 }
465
466 PodHTTPChaosSpec struct {
467 Rules func(childComplexity int) int
468 }
469
470 PodHTTPChaosStatus struct {
471 FailedMessage func(childComplexity int) int
472 ObservedGeneration func(childComplexity int) int
473 Pid func(childComplexity int) int
474 StartTime func(childComplexity int) int
475 }
476
477 PodIOChaos struct {
478 APIVersion func(childComplexity int) int
479 Annotations func(childComplexity int) int
480 ClusterName func(childComplexity int) int
481 CreationTimestamp func(childComplexity int) int
482 DeletionGracePeriodSeconds func(childComplexity int) int
483 DeletionTimestamp func(childComplexity int) int
484 Finalizers func(childComplexity int) int
485 GenerateName func(childComplexity int) int
486 Generation func(childComplexity int) int
487 Ios func(childComplexity int) int
488 Kind func(childComplexity int) int
489 Labels func(childComplexity int) int
490 Name func(childComplexity int) int
491 Namespace func(childComplexity int) int
492 OwnerReferences func(childComplexity int) int
493 Pod func(childComplexity int) int
494 ResourceVersion func(childComplexity int) int
495 SelfLink func(childComplexity int) int
496 Spec func(childComplexity int) int
497 Status func(childComplexity int) int
498 UID func(childComplexity int) int
499 }
500
501 PodIOChaosSpec struct {
502 Actions func(childComplexity int) int
503 Container func(childComplexity int) int
504 VolumeMountPath func(childComplexity int) int
505 }
506
507 PodIOChaosStatus struct {
508 FailedMessage func(childComplexity int) int
509 ObservedGeneration func(childComplexity int) int
510 Pid func(childComplexity int) int
511 StartTime func(childComplexity int) int
512 }
513
514 PodIP struct {
515 IP func(childComplexity int) int
516 }
517
518 PodNetworkChaos struct {
519 APIVersion func(childComplexity int) int
520 Annotations func(childComplexity int) int
521 ClusterName func(childComplexity int) int
522 CreationTimestamp func(childComplexity int) int
523 DeletionGracePeriodSeconds func(childComplexity int) int
524 DeletionTimestamp func(childComplexity int) int
525 Finalizers func(childComplexity int) int
526 GenerateName func(childComplexity int) int
527 Generation func(childComplexity int) int
528 Kind func(childComplexity int) int
529 Labels func(childComplexity int) int
530 Name func(childComplexity int) int
531 Namespace func(childComplexity int) int
532 OwnerReferences func(childComplexity int) int
533 Pod func(childComplexity int) int
534 ResourceVersion func(childComplexity int) int
535 SelfLink func(childComplexity int) int
536 Spec func(childComplexity int) int
537 Status func(childComplexity int) int
538 UID func(childComplexity int) int
539 }
540
541 PodNetworkChaosSpec struct {
542 IPSets func(childComplexity int) int
543 Iptables func(childComplexity int) int
544 TrafficControls func(childComplexity int) int
545 }
546
547 PodNetworkChaosStatus struct {
548 FailedMessage func(childComplexity int) int
549 ObservedGeneration func(childComplexity int) int
550 }
551
552 PodSelectorSpec struct {
553 AnnotationSelectors func(childComplexity int) int
554 FieldSelectors func(childComplexity int) int
555 LabelSelectors func(childComplexity int) int
556 Namespaces func(childComplexity int) int
557 NodeSelectors func(childComplexity int) int
558 Nodes func(childComplexity int) int
559 PodPhaseSelectors func(childComplexity int) int
560 Pods func(childComplexity int) int
561 }
562
563 PodSpec struct {
564 NodeName func(childComplexity int) int
565 }
566
567 PodStatus struct {
568 Conditions func(childComplexity int) int
569 ContainerStatuses func(childComplexity int) int
570 EphemeralContainerStatuses func(childComplexity int) int
571 HostIP func(childComplexity int) int
572 InitContainerStatuses func(childComplexity int) int
573 Message func(childComplexity int) int
574 NominatedNodeName func(childComplexity int) int
575 Phase func(childComplexity int) int
576 PodIP func(childComplexity int) int
577 PodIPs func(childComplexity int) int
578 QosClass func(childComplexity int) int
579 Reason func(childComplexity int) int
580 StartTime func(childComplexity int) int
581 }
582
583 Process struct {
584 Command func(childComplexity int) int
585 Fds func(childComplexity int) int
586 Pid func(childComplexity int) int
587 Pod func(childComplexity int) int
588 }
589
590 Query struct {
591 Namespace func(childComplexity int, ns *string) int
592 }
593
594 RawIPSet struct {
595 Cidrs func(childComplexity int) int
596 Name func(childComplexity int) int
597 Source func(childComplexity int) int
598 }
599
600 RawIptables struct {
601 Direction func(childComplexity int) int
602 IPSets func(childComplexity int) int
603 Name func(childComplexity int) int
604 Source func(childComplexity int) int
605 }
606
607 RawTrafficControl struct {
608 Bandwidth func(childComplexity int) int
609 Corrupt func(childComplexity int) int
610 Delay func(childComplexity int) int
611 Duplicate func(childComplexity int) int
612 IPSet func(childComplexity int) int
613 Loss func(childComplexity int) int
614 Source func(childComplexity int) int
615 Type func(childComplexity int) int
616 }
617
618 Record struct {
619 Id func(childComplexity int) int
620 Phase func(childComplexity int) int
621 SelectorKey func(childComplexity int) int
622 }
623
624 ReorderSpec struct {
625 Correlation func(childComplexity int) int
626 Gap func(childComplexity int) int
627 Reorder func(childComplexity int) int
628 }
629
630 StressChaos struct {
631 APIVersion func(childComplexity int) int
632 Annotations func(childComplexity int) int
633 ClusterName func(childComplexity int) int
634 CreationTimestamp func(childComplexity int) int
635 DeletionGracePeriodSeconds func(childComplexity int) int
636 DeletionTimestamp func(childComplexity int) int
637 Finalizers func(childComplexity int) int
638 GenerateName func(childComplexity int) int
639 Generation func(childComplexity int) int
640 Kind func(childComplexity int) int
641 Labels func(childComplexity int) int
642 Name func(childComplexity int) int
643 Namespace func(childComplexity int) int
644 OwnerReferences func(childComplexity int) int
645 ResourceVersion func(childComplexity int) int
646 SelfLink func(childComplexity int) int
647 UID func(childComplexity int) int
648 }
649
650 Timespec struct {
651 Nsec func(childComplexity int) int
652 Sec func(childComplexity int) int
653 }
654 }
655
656 type AttrOverrideSpecResolver interface {
657 Ino(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
658 Size(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
659 Blocks(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
660
661 Kind(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*string, error)
662 Perm(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
663 Nlink(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
664 UID(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
665 Gid(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
666 Rdev(ctx context.Context, obj *v1alpha1.AttrOverrideSpec) (*int, error)
667 }
668 type BandwidthSpecResolver interface {
669 Limit(ctx context.Context, obj *v1alpha1.BandwidthSpec) (int, error)
670 Buffer(ctx context.Context, obj *v1alpha1.BandwidthSpec) (int, error)
671 Peakrate(ctx context.Context, obj *v1alpha1.BandwidthSpec) (*int, error)
672 Minburst(ctx context.Context, obj *v1alpha1.BandwidthSpec) (*int, error)
673 }
674 type ChaosConditionResolver interface {
675 Type(ctx context.Context, obj *v1alpha1.ChaosCondition) (string, error)
676 Status(ctx context.Context, obj *v1alpha1.ChaosCondition) (string, error)
677 }
678 type ContainerStateRunningResolver interface {
679 StartedAt(ctx context.Context, obj *v1.ContainerStateRunning) (*time.Time, error)
680 }
681 type ContainerStateTerminatedResolver interface {
682 StartedAt(ctx context.Context, obj *v1.ContainerStateTerminated) (*time.Time, error)
683 FinishedAt(ctx context.Context, obj *v1.ContainerStateTerminated) (*time.Time, error)
684 }
685 type CorruptSpecResolver interface {
686 Corrup(ctx context.Context, obj *v1alpha1.CorruptSpec) (string, error)
687 }
688 type ExperimentStatusResolver interface {
689 DesiredPhase(ctx context.Context, obj *v1alpha1.ExperimentStatus) (string, error)
690 }
691 type HTTPChaosResolver interface {
692 UID(ctx context.Context, obj *v1alpha1.HTTPChaos) (string, error)
693
694 CreationTimestamp(ctx context.Context, obj *v1alpha1.HTTPChaos) (*time.Time, error)
695 DeletionTimestamp(ctx context.Context, obj *v1alpha1.HTTPChaos) (*time.Time, error)
696
697 Labels(ctx context.Context, obj *v1alpha1.HTTPChaos) (map[string]interface{}, error)
698 Annotations(ctx context.Context, obj *v1alpha1.HTTPChaos) (map[string]interface{}, error)
699
700 Podhttp(ctx context.Context, obj *v1alpha1.HTTPChaos) ([]*v1alpha1.PodHttpChaos, error)
701 }
702 type HTTPChaosSpecResolver interface {
703 Mode(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (string, error)
704
705 Target(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (string, error)
706
707 RequestHeaders(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (map[string]interface{}, error)
708 ResponseHeaders(ctx context.Context, obj *v1alpha1.HTTPChaosSpec) (map[string]interface{}, error)
709 }
710 type HTTPChaosStatusResolver interface {
711 Instances(ctx context.Context, obj *v1alpha1.HTTPChaosStatus) (map[string]interface{}, error)
712 }
713 type IOChaosResolver interface {
714 UID(ctx context.Context, obj *v1alpha1.IOChaos) (string, error)
715
716 CreationTimestamp(ctx context.Context, obj *v1alpha1.IOChaos) (*time.Time, error)
717 DeletionTimestamp(ctx context.Context, obj *v1alpha1.IOChaos) (*time.Time, error)
718
719 Labels(ctx context.Context, obj *v1alpha1.IOChaos) (map[string]interface{}, error)
720 Annotations(ctx context.Context, obj *v1alpha1.IOChaos) (map[string]interface{}, error)
721
722 Podios(ctx context.Context, obj *v1alpha1.IOChaos) ([]*v1alpha1.PodIOChaos, error)
723 }
724 type IOChaosActionResolver interface {
725 Type(ctx context.Context, obj *v1alpha1.IOChaosAction) (string, error)
726
727 Methods(ctx context.Context, obj *v1alpha1.IOChaosAction) ([]string, error)
728
729 Ino(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
730 Size(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
731 Blocks(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
732
733 Kind(ctx context.Context, obj *v1alpha1.IOChaosAction) (*string, error)
734 Perm(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
735 Nlink(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
736 UID(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
737 Gid(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
738 Rdev(ctx context.Context, obj *v1alpha1.IOChaosAction) (*int, error)
739 Filling(ctx context.Context, obj *v1alpha1.IOChaosAction) (*string, error)
740 }
741 type IOChaosSpecResolver interface {
742 Mode(ctx context.Context, obj *v1alpha1.IOChaosSpec) (string, error)
743
744 Action(ctx context.Context, obj *v1alpha1.IOChaosSpec) (string, error)
745
746 Errno(ctx context.Context, obj *v1alpha1.IOChaosSpec) (*int, error)
747
748 Methods(ctx context.Context, obj *v1alpha1.IOChaosSpec) ([]string, error)
749 }
750 type IOChaosStatusResolver interface {
751 Instances(ctx context.Context, obj *v1alpha1.IOChaosStatus) (map[string]interface{}, error)
752 }
753 type IoFaultResolver interface {
754 Errno(ctx context.Context, obj *v1alpha1.IoFault) (int, error)
755 }
756 type LoggerResolver interface {
757 Component(ctx context.Context, ns string, component model.Component) (<-chan string, error)
758 Pod(ctx context.Context, ns string, name string) (<-chan string, error)
759 }
760 type MistakeSpecResolver interface {
761 Filling(ctx context.Context, obj *v1alpha1.MistakeSpec) (*string, error)
762 }
763 type NamespaceResolver interface {
764 Component(ctx context.Context, obj *model.Namespace, component model.Component) ([]*v1.Pod, error)
765 Pod(ctx context.Context, obj *model.Namespace, name *string) ([]*v1.Pod, error)
766 Stresschaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.StressChaos, error)
767 Iochaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.IOChaos, error)
768 Podiochaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.PodIOChaos, error)
769 Httpchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.HTTPChaos, error)
770 Podhttpchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.PodHttpChaos, error)
771 Networkchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.NetworkChaos, error)
772 Podnetworkchaos(ctx context.Context, obj *model.Namespace, name *string) ([]*v1alpha1.PodNetworkChaos, error)
773 }
774 type NetworkChaosResolver interface {
775 UID(ctx context.Context, obj *v1alpha1.NetworkChaos) (string, error)
776
777 CreationTimestamp(ctx context.Context, obj *v1alpha1.NetworkChaos) (*time.Time, error)
778 DeletionTimestamp(ctx context.Context, obj *v1alpha1.NetworkChaos) (*time.Time, error)
779
780 Labels(ctx context.Context, obj *v1alpha1.NetworkChaos) (map[string]interface{}, error)
781 Annotations(ctx context.Context, obj *v1alpha1.NetworkChaos) (map[string]interface{}, error)
782
783 Podnetwork(ctx context.Context, obj *v1alpha1.NetworkChaos) ([]*v1alpha1.PodNetworkChaos, error)
784 }
785 type OwnerReferenceResolver interface {
786 UID(ctx context.Context, obj *v11.OwnerReference) (string, error)
787 }
788 type PodResolver interface {
789 UID(ctx context.Context, obj *v1.Pod) (string, error)
790
791 CreationTimestamp(ctx context.Context, obj *v1.Pod) (*time.Time, error)
792 DeletionTimestamp(ctx context.Context, obj *v1.Pod) (*time.Time, error)
793
794 Labels(ctx context.Context, obj *v1.Pod) (map[string]interface{}, error)
795 Annotations(ctx context.Context, obj *v1.Pod) (map[string]interface{}, error)
796
797 Logs(ctx context.Context, obj *v1.Pod) (string, error)
798 Daemon(ctx context.Context, obj *v1.Pod) (*v1.Pod, error)
799 Processes(ctx context.Context, obj *v1.Pod) ([]*model.Process, error)
800 Mounts(ctx context.Context, obj *v1.Pod) ([]string, error)
801 Ipset(ctx context.Context, obj *v1.Pod) (string, error)
802 TcQdisc(ctx context.Context, obj *v1.Pod) (string, error)
803 Iptables(ctx context.Context, obj *v1.Pod) (string, error)
804 }
805 type PodConditionResolver interface {
806 Type(ctx context.Context, obj *v1.PodCondition) (string, error)
807 Status(ctx context.Context, obj *v1.PodCondition) (string, error)
808 LastProbeTime(ctx context.Context, obj *v1.PodCondition) (*time.Time, error)
809 LastTransitionTime(ctx context.Context, obj *v1.PodCondition) (*time.Time, error)
810 }
811 type PodHTTPChaosResolver interface {
812 UID(ctx context.Context, obj *v1alpha1.PodHttpChaos) (string, error)
813
814 CreationTimestamp(ctx context.Context, obj *v1alpha1.PodHttpChaos) (*time.Time, error)
815 DeletionTimestamp(ctx context.Context, obj *v1alpha1.PodHttpChaos) (*time.Time, error)
816
817 Labels(ctx context.Context, obj *v1alpha1.PodHttpChaos) (map[string]interface{}, error)
818 Annotations(ctx context.Context, obj *v1alpha1.PodHttpChaos) (map[string]interface{}, error)
819
820 Pod(ctx context.Context, obj *v1alpha1.PodHttpChaos) (*v1.Pod, error)
821 }
822 type PodHttpChaosReplaceActionsResolver interface {
823 Body(ctx context.Context, obj *v1alpha1.PodHttpChaosReplaceActions) (*string, error)
824 Queries(ctx context.Context, obj *v1alpha1.PodHttpChaosReplaceActions) (map[string]interface{}, error)
825 Headers(ctx context.Context, obj *v1alpha1.PodHttpChaosReplaceActions) (map[string]interface{}, error)
826 }
827 type PodHttpChaosRuleResolver interface {
828 Target(ctx context.Context, obj *v1alpha1.PodHttpChaosRule) (string, error)
829 }
830 type PodHttpChaosSelectorResolver interface {
831 RequestHeaders(ctx context.Context, obj *v1alpha1.PodHttpChaosSelector) (map[string]interface{}, error)
832 ResponseHeaders(ctx context.Context, obj *v1alpha1.PodHttpChaosSelector) (map[string]interface{}, error)
833 }
834 type PodIOChaosResolver interface {
835 UID(ctx context.Context, obj *v1alpha1.PodIOChaos) (string, error)
836
837 CreationTimestamp(ctx context.Context, obj *v1alpha1.PodIOChaos) (*time.Time, error)
838 DeletionTimestamp(ctx context.Context, obj *v1alpha1.PodIOChaos) (*time.Time, error)
839
840 Labels(ctx context.Context, obj *v1alpha1.PodIOChaos) (map[string]interface{}, error)
841 Annotations(ctx context.Context, obj *v1alpha1.PodIOChaos) (map[string]interface{}, error)
842
843 Pod(ctx context.Context, obj *v1alpha1.PodIOChaos) (*v1.Pod, error)
844 Ios(ctx context.Context, obj *v1alpha1.PodIOChaos) ([]*v1alpha1.IOChaos, error)
845 }
846 type PodNetworkChaosResolver interface {
847 UID(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (string, error)
848
849 CreationTimestamp(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (*time.Time, error)
850 DeletionTimestamp(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (*time.Time, error)
851
852 Labels(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (map[string]interface{}, error)
853 Annotations(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (map[string]interface{}, error)
854
855 Pod(ctx context.Context, obj *v1alpha1.PodNetworkChaos) (*v1.Pod, error)
856 }
857 type PodSelectorSpecResolver interface {
858 Pods(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
859 NodeSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
860 FieldSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
861 LabelSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
862 AnnotationSelectors(ctx context.Context, obj *v1alpha1.PodSelectorSpec) (map[string]interface{}, error)
863 }
864 type PodStatusResolver interface {
865 Phase(ctx context.Context, obj *v1.PodStatus) (string, error)
866
867 StartTime(ctx context.Context, obj *v1.PodStatus) (*time.Time, error)
868
869 QosClass(ctx context.Context, obj *v1.PodStatus) (string, error)
870 }
871 type ProcessResolver interface {
872 Fds(ctx context.Context, obj *model.Process) ([]*model.Fd, error)
873 }
874 type QueryResolver interface {
875 Namespace(ctx context.Context, ns *string) ([]*model.Namespace, error)
876 }
877 type RawIptablesResolver interface {
878 Direction(ctx context.Context, obj *v1alpha1.RawIptables) (string, error)
879 }
880 type RawTrafficControlResolver interface {
881 Type(ctx context.Context, obj *v1alpha1.RawTrafficControl) (string, error)
882 }
883 type RecordResolver interface {
884 Phase(ctx context.Context, obj *v1alpha1.Record) (string, error)
885 }
886 type StressChaosResolver interface {
887 UID(ctx context.Context, obj *v1alpha1.StressChaos) (string, error)
888
889 CreationTimestamp(ctx context.Context, obj *v1alpha1.StressChaos) (*time.Time, error)
890 DeletionTimestamp(ctx context.Context, obj *v1alpha1.StressChaos) (*time.Time, error)
891
892 Labels(ctx context.Context, obj *v1alpha1.StressChaos) (map[string]interface{}, error)
893 Annotations(ctx context.Context, obj *v1alpha1.StressChaos) (map[string]interface{}, error)
894 }
895
896 type executableSchema struct {
897 resolvers ResolverRoot
898 directives DirectiveRoot
899 complexity ComplexityRoot
900 }
901
902 func (e *executableSchema) Schema() *ast.Schema {
903 return parsedSchema
904 }
905
906 func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {
907 ec := executionContext{nil, e}
908 _ = ec
909 switch typeName + "." + field {
910
911 case "AttrOverrideSpec.atime":
912 if e.complexity.AttrOverrideSpec.Atime == nil {
913 break
914 }
915
916 return e.complexity.AttrOverrideSpec.Atime(childComplexity), true
917
918 case "AttrOverrideSpec.blocks":
919 if e.complexity.AttrOverrideSpec.Blocks == nil {
920 break
921 }
922
923 return e.complexity.AttrOverrideSpec.Blocks(childComplexity), true
924
925 case "AttrOverrideSpec.ctime":
926 if e.complexity.AttrOverrideSpec.Ctime == nil {
927 break
928 }
929
930 return e.complexity.AttrOverrideSpec.Ctime(childComplexity), true
931
932 case "AttrOverrideSpec.gid":
933 if e.complexity.AttrOverrideSpec.Gid == nil {
934 break
935 }
936
937 return e.complexity.AttrOverrideSpec.Gid(childComplexity), true
938
939 case "AttrOverrideSpec.ino":
940 if e.complexity.AttrOverrideSpec.Ino == nil {
941 break
942 }
943
944 return e.complexity.AttrOverrideSpec.Ino(childComplexity), true
945
946 case "AttrOverrideSpec.kind":
947 if e.complexity.AttrOverrideSpec.Kind == nil {
948 break
949 }
950
951 return e.complexity.AttrOverrideSpec.Kind(childComplexity), true
952
953 case "AttrOverrideSpec.mtime":
954 if e.complexity.AttrOverrideSpec.Mtime == nil {
955 break
956 }
957
958 return e.complexity.AttrOverrideSpec.Mtime(childComplexity), true
959
960 case "AttrOverrideSpec.nlink":
961 if e.complexity.AttrOverrideSpec.Nlink == nil {
962 break
963 }
964
965 return e.complexity.AttrOverrideSpec.Nlink(childComplexity), true
966
967 case "AttrOverrideSpec.perm":
968 if e.complexity.AttrOverrideSpec.Perm == nil {
969 break
970 }
971
972 return e.complexity.AttrOverrideSpec.Perm(childComplexity), true
973
974 case "AttrOverrideSpec.rdev":
975 if e.complexity.AttrOverrideSpec.Rdev == nil {
976 break
977 }
978
979 return e.complexity.AttrOverrideSpec.Rdev(childComplexity), true
980
981 case "AttrOverrideSpec.size":
982 if e.complexity.AttrOverrideSpec.Size == nil {
983 break
984 }
985
986 return e.complexity.AttrOverrideSpec.Size(childComplexity), true
987
988 case "AttrOverrideSpec.uid":
989 if e.complexity.AttrOverrideSpec.UID == nil {
990 break
991 }
992
993 return e.complexity.AttrOverrideSpec.UID(childComplexity), true
994
995 case "BandwidthSpec.buffer":
996 if e.complexity.BandwidthSpec.Buffer == nil {
997 break
998 }
999
1000 return e.complexity.BandwidthSpec.Buffer(childComplexity), true
1001
1002 case "BandwidthSpec.limit":
1003 if e.complexity.BandwidthSpec.Limit == nil {
1004 break
1005 }
1006
1007 return e.complexity.BandwidthSpec.Limit(childComplexity), true
1008
1009 case "BandwidthSpec.minburst":
1010 if e.complexity.BandwidthSpec.Minburst == nil {
1011 break
1012 }
1013
1014 return e.complexity.BandwidthSpec.Minburst(childComplexity), true
1015
1016 case "BandwidthSpec.peakrate":
1017 if e.complexity.BandwidthSpec.Peakrate == nil {
1018 break
1019 }
1020
1021 return e.complexity.BandwidthSpec.Peakrate(childComplexity), true
1022
1023 case "BandwidthSpec.rate":
1024 if e.complexity.BandwidthSpec.Rate == nil {
1025 break
1026 }
1027
1028 return e.complexity.BandwidthSpec.Rate(childComplexity), true
1029
1030 case "ChaosCondition.reason":
1031 if e.complexity.ChaosCondition.Reason == nil {
1032 break
1033 }
1034
1035 return e.complexity.ChaosCondition.Reason(childComplexity), true
1036
1037 case "ChaosCondition.status":
1038 if e.complexity.ChaosCondition.Status == nil {
1039 break
1040 }
1041
1042 return e.complexity.ChaosCondition.Status(childComplexity), true
1043
1044 case "ChaosCondition.type":
1045 if e.complexity.ChaosCondition.Type == nil {
1046 break
1047 }
1048
1049 return e.complexity.ChaosCondition.Type(childComplexity), true
1050
1051 case "ContainerState.running":
1052 if e.complexity.ContainerState.Running == nil {
1053 break
1054 }
1055
1056 return e.complexity.ContainerState.Running(childComplexity), true
1057
1058 case "ContainerState.terminated":
1059 if e.complexity.ContainerState.Terminated == nil {
1060 break
1061 }
1062
1063 return e.complexity.ContainerState.Terminated(childComplexity), true
1064
1065 case "ContainerState.waiting":
1066 if e.complexity.ContainerState.Waiting == nil {
1067 break
1068 }
1069
1070 return e.complexity.ContainerState.Waiting(childComplexity), true
1071
1072 case "ContainerStateRunning.startedAt":
1073 if e.complexity.ContainerStateRunning.StartedAt == nil {
1074 break
1075 }
1076
1077 return e.complexity.ContainerStateRunning.StartedAt(childComplexity), true
1078
1079 case "ContainerStateTerminated.containerID":
1080 if e.complexity.ContainerStateTerminated.ContainerID == nil {
1081 break
1082 }
1083
1084 return e.complexity.ContainerStateTerminated.ContainerID(childComplexity), true
1085
1086 case "ContainerStateTerminated.exitCode":
1087 if e.complexity.ContainerStateTerminated.ExitCode == nil {
1088 break
1089 }
1090
1091 return e.complexity.ContainerStateTerminated.ExitCode(childComplexity), true
1092
1093 case "ContainerStateTerminated.finishedAt":
1094 if e.complexity.ContainerStateTerminated.FinishedAt == nil {
1095 break
1096 }
1097
1098 return e.complexity.ContainerStateTerminated.FinishedAt(childComplexity), true
1099
1100 case "ContainerStateTerminated.message":
1101 if e.complexity.ContainerStateTerminated.Message == nil {
1102 break
1103 }
1104
1105 return e.complexity.ContainerStateTerminated.Message(childComplexity), true
1106
1107 case "ContainerStateTerminated.reason":
1108 if e.complexity.ContainerStateTerminated.Reason == nil {
1109 break
1110 }
1111
1112 return e.complexity.ContainerStateTerminated.Reason(childComplexity), true
1113
1114 case "ContainerStateTerminated.signal":
1115 if e.complexity.ContainerStateTerminated.Signal == nil {
1116 break
1117 }
1118
1119 return e.complexity.ContainerStateTerminated.Signal(childComplexity), true
1120
1121 case "ContainerStateTerminated.startedAt":
1122 if e.complexity.ContainerStateTerminated.StartedAt == nil {
1123 break
1124 }
1125
1126 return e.complexity.ContainerStateTerminated.StartedAt(childComplexity), true
1127
1128 case "ContainerStateWaiting.message":
1129 if e.complexity.ContainerStateWaiting.Message == nil {
1130 break
1131 }
1132
1133 return e.complexity.ContainerStateWaiting.Message(childComplexity), true
1134
1135 case "ContainerStateWaiting.reason":
1136 if e.complexity.ContainerStateWaiting.Reason == nil {
1137 break
1138 }
1139
1140 return e.complexity.ContainerStateWaiting.Reason(childComplexity), true
1141
1142 case "ContainerStatus.containerID":
1143 if e.complexity.ContainerStatus.ContainerID == nil {
1144 break
1145 }
1146
1147 return e.complexity.ContainerStatus.ContainerID(childComplexity), true
1148
1149 case "ContainerStatus.image":
1150 if e.complexity.ContainerStatus.Image == nil {
1151 break
1152 }
1153
1154 return e.complexity.ContainerStatus.Image(childComplexity), true
1155
1156 case "ContainerStatus.imageID":
1157 if e.complexity.ContainerStatus.ImageID == nil {
1158 break
1159 }
1160
1161 return e.complexity.ContainerStatus.ImageID(childComplexity), true
1162
1163 case "ContainerStatus.lastTerminationState":
1164 if e.complexity.ContainerStatus.LastTerminationState == nil {
1165 break
1166 }
1167
1168 return e.complexity.ContainerStatus.LastTerminationState(childComplexity), true
1169
1170 case "ContainerStatus.name":
1171 if e.complexity.ContainerStatus.Name == nil {
1172 break
1173 }
1174
1175 return e.complexity.ContainerStatus.Name(childComplexity), true
1176
1177 case "ContainerStatus.ready":
1178 if e.complexity.ContainerStatus.Ready == nil {
1179 break
1180 }
1181
1182 return e.complexity.ContainerStatus.Ready(childComplexity), true
1183
1184 case "ContainerStatus.restartCount":
1185 if e.complexity.ContainerStatus.RestartCount == nil {
1186 break
1187 }
1188
1189 return e.complexity.ContainerStatus.RestartCount(childComplexity), true
1190
1191 case "ContainerStatus.started":
1192 if e.complexity.ContainerStatus.Started == nil {
1193 break
1194 }
1195
1196 return e.complexity.ContainerStatus.Started(childComplexity), true
1197
1198 case "ContainerStatus.State":
1199 if e.complexity.ContainerStatus.State == nil {
1200 break
1201 }
1202
1203 return e.complexity.ContainerStatus.State(childComplexity), true
1204
1205 case "CorruptSpec.correlation":
1206 if e.complexity.CorruptSpec.Correlation == nil {
1207 break
1208 }
1209
1210 return e.complexity.CorruptSpec.Correlation(childComplexity), true
1211
1212 case "CorruptSpec.corrup":
1213 if e.complexity.CorruptSpec.Corrup == nil {
1214 break
1215 }
1216
1217 return e.complexity.CorruptSpec.Corrup(childComplexity), true
1218
1219 case "DelaySpec.correlation":
1220 if e.complexity.DelaySpec.Correlation == nil {
1221 break
1222 }
1223
1224 return e.complexity.DelaySpec.Correlation(childComplexity), true
1225
1226 case "DelaySpec.jitter":
1227 if e.complexity.DelaySpec.Jitter == nil {
1228 break
1229 }
1230
1231 return e.complexity.DelaySpec.Jitter(childComplexity), true
1232
1233 case "DelaySpec.latency":
1234 if e.complexity.DelaySpec.Latency == nil {
1235 break
1236 }
1237
1238 return e.complexity.DelaySpec.Latency(childComplexity), true
1239
1240 case "DelaySpec.reorder":
1241 if e.complexity.DelaySpec.Reorder == nil {
1242 break
1243 }
1244
1245 return e.complexity.DelaySpec.Reorder(childComplexity), true
1246
1247 case "DuplicateSpec.correlation":
1248 if e.complexity.DuplicateSpec.Correlation == nil {
1249 break
1250 }
1251
1252 return e.complexity.DuplicateSpec.Correlation(childComplexity), true
1253
1254 case "DuplicateSpec.duplicate":
1255 if e.complexity.DuplicateSpec.Duplicate == nil {
1256 break
1257 }
1258
1259 return e.complexity.DuplicateSpec.Duplicate(childComplexity), true
1260
1261 case "ExperimentStatus.desiredPhase":
1262 if e.complexity.ExperimentStatus.DesiredPhase == nil {
1263 break
1264 }
1265
1266 return e.complexity.ExperimentStatus.DesiredPhase(childComplexity), true
1267
1268 case "ExperimentStatus.Records":
1269 if e.complexity.ExperimentStatus.Records == nil {
1270 break
1271 }
1272
1273 return e.complexity.ExperimentStatus.Records(childComplexity), true
1274
1275 case "Fd.fd":
1276 if e.complexity.Fd.Fd == nil {
1277 break
1278 }
1279
1280 return e.complexity.Fd.Fd(childComplexity), true
1281
1282 case "Fd.target":
1283 if e.complexity.Fd.Target == nil {
1284 break
1285 }
1286
1287 return e.complexity.Fd.Target(childComplexity), true
1288
1289 case "HTTPChaos.apiVersion":
1290 if e.complexity.HTTPChaos.APIVersion == nil {
1291 break
1292 }
1293
1294 return e.complexity.HTTPChaos.APIVersion(childComplexity), true
1295
1296 case "HTTPChaos.annotations":
1297 if e.complexity.HTTPChaos.Annotations == nil {
1298 break
1299 }
1300
1301 return e.complexity.HTTPChaos.Annotations(childComplexity), true
1302
1303 case "HTTPChaos.clusterName":
1304 if e.complexity.HTTPChaos.ClusterName == nil {
1305 break
1306 }
1307
1308 return e.complexity.HTTPChaos.ClusterName(childComplexity), true
1309
1310 case "HTTPChaos.creationTimestamp":
1311 if e.complexity.HTTPChaos.CreationTimestamp == nil {
1312 break
1313 }
1314
1315 return e.complexity.HTTPChaos.CreationTimestamp(childComplexity), true
1316
1317 case "HTTPChaos.deletionGracePeriodSeconds":
1318 if e.complexity.HTTPChaos.DeletionGracePeriodSeconds == nil {
1319 break
1320 }
1321
1322 return e.complexity.HTTPChaos.DeletionGracePeriodSeconds(childComplexity), true
1323
1324 case "HTTPChaos.deletionTimestamp":
1325 if e.complexity.HTTPChaos.DeletionTimestamp == nil {
1326 break
1327 }
1328
1329 return e.complexity.HTTPChaos.DeletionTimestamp(childComplexity), true
1330
1331 case "HTTPChaos.finalizers":
1332 if e.complexity.HTTPChaos.Finalizers == nil {
1333 break
1334 }
1335
1336 return e.complexity.HTTPChaos.Finalizers(childComplexity), true
1337
1338 case "HTTPChaos.generateName":
1339 if e.complexity.HTTPChaos.GenerateName == nil {
1340 break
1341 }
1342
1343 return e.complexity.HTTPChaos.GenerateName(childComplexity), true
1344
1345 case "HTTPChaos.generation":
1346 if e.complexity.HTTPChaos.Generation == nil {
1347 break
1348 }
1349
1350 return e.complexity.HTTPChaos.Generation(childComplexity), true
1351
1352 case "HTTPChaos.kind":
1353 if e.complexity.HTTPChaos.Kind == nil {
1354 break
1355 }
1356
1357 return e.complexity.HTTPChaos.Kind(childComplexity), true
1358
1359 case "HTTPChaos.labels":
1360 if e.complexity.HTTPChaos.Labels == nil {
1361 break
1362 }
1363
1364 return e.complexity.HTTPChaos.Labels(childComplexity), true
1365
1366 case "HTTPChaos.name":
1367 if e.complexity.HTTPChaos.Name == nil {
1368 break
1369 }
1370
1371 return e.complexity.HTTPChaos.Name(childComplexity), true
1372
1373 case "HTTPChaos.namespace":
1374 if e.complexity.HTTPChaos.Namespace == nil {
1375 break
1376 }
1377
1378 return e.complexity.HTTPChaos.Namespace(childComplexity), true
1379
1380 case "HTTPChaos.ownerReferences":
1381 if e.complexity.HTTPChaos.OwnerReferences == nil {
1382 break
1383 }
1384
1385 return e.complexity.HTTPChaos.OwnerReferences(childComplexity), true
1386
1387 case "HTTPChaos.podhttp":
1388 if e.complexity.HTTPChaos.Podhttp == nil {
1389 break
1390 }
1391
1392 return e.complexity.HTTPChaos.Podhttp(childComplexity), true
1393
1394 case "HTTPChaos.resourceVersion":
1395 if e.complexity.HTTPChaos.ResourceVersion == nil {
1396 break
1397 }
1398
1399 return e.complexity.HTTPChaos.ResourceVersion(childComplexity), true
1400
1401 case "HTTPChaos.selfLink":
1402 if e.complexity.HTTPChaos.SelfLink == nil {
1403 break
1404 }
1405
1406 return e.complexity.HTTPChaos.SelfLink(childComplexity), true
1407
1408 case "HTTPChaos.spec":
1409 if e.complexity.HTTPChaos.Spec == nil {
1410 break
1411 }
1412
1413 return e.complexity.HTTPChaos.Spec(childComplexity), true
1414
1415 case "HTTPChaos.status":
1416 if e.complexity.HTTPChaos.Status == nil {
1417 break
1418 }
1419
1420 return e.complexity.HTTPChaos.Status(childComplexity), true
1421
1422 case "HTTPChaos.uid":
1423 if e.complexity.HTTPChaos.UID == nil {
1424 break
1425 }
1426
1427 return e.complexity.HTTPChaos.UID(childComplexity), true
1428
1429 case "HTTPChaosSpec.abort":
1430 if e.complexity.HTTPChaosSpec.Abort == nil {
1431 break
1432 }
1433
1434 return e.complexity.HTTPChaosSpec.Abort(childComplexity), true
1435
1436 case "HTTPChaosSpec.code":
1437 if e.complexity.HTTPChaosSpec.Code == nil {
1438 break
1439 }
1440
1441 return e.complexity.HTTPChaosSpec.Code(childComplexity), true
1442
1443 case "HTTPChaosSpec.delay":
1444 if e.complexity.HTTPChaosSpec.Delay == nil {
1445 break
1446 }
1447
1448 return e.complexity.HTTPChaosSpec.Delay(childComplexity), true
1449
1450 case "HTTPChaosSpec.duration":
1451 if e.complexity.HTTPChaosSpec.Duration == nil {
1452 break
1453 }
1454
1455 return e.complexity.HTTPChaosSpec.Duration(childComplexity), true
1456
1457 case "HTTPChaosSpec.method":
1458 if e.complexity.HTTPChaosSpec.Method == nil {
1459 break
1460 }
1461
1462 return e.complexity.HTTPChaosSpec.Method(childComplexity), true
1463
1464 case "HTTPChaosSpec.mode":
1465 if e.complexity.HTTPChaosSpec.Mode == nil {
1466 break
1467 }
1468
1469 return e.complexity.HTTPChaosSpec.Mode(childComplexity), true
1470
1471 case "HTTPChaosSpec.patch":
1472 if e.complexity.HTTPChaosSpec.Patch == nil {
1473 break
1474 }
1475
1476 return e.complexity.HTTPChaosSpec.Patch(childComplexity), true
1477
1478 case "HTTPChaosSpec.path":
1479 if e.complexity.HTTPChaosSpec.Path == nil {
1480 break
1481 }
1482
1483 return e.complexity.HTTPChaosSpec.Path(childComplexity), true
1484
1485 case "HTTPChaosSpec.port":
1486 if e.complexity.HTTPChaosSpec.Port == nil {
1487 break
1488 }
1489
1490 return e.complexity.HTTPChaosSpec.Port(childComplexity), true
1491
1492 case "HTTPChaosSpec.replace":
1493 if e.complexity.HTTPChaosSpec.Replace == nil {
1494 break
1495 }
1496
1497 return e.complexity.HTTPChaosSpec.Replace(childComplexity), true
1498
1499 case "HTTPChaosSpec.requestHeaders":
1500 if e.complexity.HTTPChaosSpec.RequestHeaders == nil {
1501 break
1502 }
1503
1504 return e.complexity.HTTPChaosSpec.RequestHeaders(childComplexity), true
1505
1506 case "HTTPChaosSpec.responseHeaders":
1507 if e.complexity.HTTPChaosSpec.ResponseHeaders == nil {
1508 break
1509 }
1510
1511 return e.complexity.HTTPChaosSpec.ResponseHeaders(childComplexity), true
1512
1513 case "HTTPChaosSpec.selector":
1514 if e.complexity.HTTPChaosSpec.Selector == nil {
1515 break
1516 }
1517
1518 return e.complexity.HTTPChaosSpec.Selector(childComplexity), true
1519
1520 case "HTTPChaosSpec.target":
1521 if e.complexity.HTTPChaosSpec.Target == nil {
1522 break
1523 }
1524
1525 return e.complexity.HTTPChaosSpec.Target(childComplexity), true
1526
1527 case "HTTPChaosSpec.value":
1528 if e.complexity.HTTPChaosSpec.Value == nil {
1529 break
1530 }
1531
1532 return e.complexity.HTTPChaosSpec.Value(childComplexity), true
1533
1534 case "HTTPChaosStatus.conditions":
1535 if e.complexity.HTTPChaosStatus.Conditions == nil {
1536 break
1537 }
1538
1539 return e.complexity.HTTPChaosStatus.Conditions(childComplexity), true
1540
1541 case "HTTPChaosStatus.experiment":
1542 if e.complexity.HTTPChaosStatus.Experiment == nil {
1543 break
1544 }
1545
1546 return e.complexity.HTTPChaosStatus.Experiment(childComplexity), true
1547
1548 case "HTTPChaosStatus.instances":
1549 if e.complexity.HTTPChaosStatus.Instances == nil {
1550 break
1551 }
1552
1553 return e.complexity.HTTPChaosStatus.Instances(childComplexity), true
1554
1555 case "IOChaos.apiVersion":
1556 if e.complexity.IOChaos.APIVersion == nil {
1557 break
1558 }
1559
1560 return e.complexity.IOChaos.APIVersion(childComplexity), true
1561
1562 case "IOChaos.annotations":
1563 if e.complexity.IOChaos.Annotations == nil {
1564 break
1565 }
1566
1567 return e.complexity.IOChaos.Annotations(childComplexity), true
1568
1569 case "IOChaos.clusterName":
1570 if e.complexity.IOChaos.ClusterName == nil {
1571 break
1572 }
1573
1574 return e.complexity.IOChaos.ClusterName(childComplexity), true
1575
1576 case "IOChaos.creationTimestamp":
1577 if e.complexity.IOChaos.CreationTimestamp == nil {
1578 break
1579 }
1580
1581 return e.complexity.IOChaos.CreationTimestamp(childComplexity), true
1582
1583 case "IOChaos.deletionGracePeriodSeconds":
1584 if e.complexity.IOChaos.DeletionGracePeriodSeconds == nil {
1585 break
1586 }
1587
1588 return e.complexity.IOChaos.DeletionGracePeriodSeconds(childComplexity), true
1589
1590 case "IOChaos.deletionTimestamp":
1591 if e.complexity.IOChaos.DeletionTimestamp == nil {
1592 break
1593 }
1594
1595 return e.complexity.IOChaos.DeletionTimestamp(childComplexity), true
1596
1597 case "IOChaos.finalizers":
1598 if e.complexity.IOChaos.Finalizers == nil {
1599 break
1600 }
1601
1602 return e.complexity.IOChaos.Finalizers(childComplexity), true
1603
1604 case "IOChaos.generateName":
1605 if e.complexity.IOChaos.GenerateName == nil {
1606 break
1607 }
1608
1609 return e.complexity.IOChaos.GenerateName(childComplexity), true
1610
1611 case "IOChaos.generation":
1612 if e.complexity.IOChaos.Generation == nil {
1613 break
1614 }
1615
1616 return e.complexity.IOChaos.Generation(childComplexity), true
1617
1618 case "IOChaos.kind":
1619 if e.complexity.IOChaos.Kind == nil {
1620 break
1621 }
1622
1623 return e.complexity.IOChaos.Kind(childComplexity), true
1624
1625 case "IOChaos.labels":
1626 if e.complexity.IOChaos.Labels == nil {
1627 break
1628 }
1629
1630 return e.complexity.IOChaos.Labels(childComplexity), true
1631
1632 case "IOChaos.name":
1633 if e.complexity.IOChaos.Name == nil {
1634 break
1635 }
1636
1637 return e.complexity.IOChaos.Name(childComplexity), true
1638
1639 case "IOChaos.namespace":
1640 if e.complexity.IOChaos.Namespace == nil {
1641 break
1642 }
1643
1644 return e.complexity.IOChaos.Namespace(childComplexity), true
1645
1646 case "IOChaos.ownerReferences":
1647 if e.complexity.IOChaos.OwnerReferences == nil {
1648 break
1649 }
1650
1651 return e.complexity.IOChaos.OwnerReferences(childComplexity), true
1652
1653 case "IOChaos.podios":
1654 if e.complexity.IOChaos.Podios == nil {
1655 break
1656 }
1657
1658 return e.complexity.IOChaos.Podios(childComplexity), true
1659
1660 case "IOChaos.resourceVersion":
1661 if e.complexity.IOChaos.ResourceVersion == nil {
1662 break
1663 }
1664
1665 return e.complexity.IOChaos.ResourceVersion(childComplexity), true
1666
1667 case "IOChaos.selfLink":
1668 if e.complexity.IOChaos.SelfLink == nil {
1669 break
1670 }
1671
1672 return e.complexity.IOChaos.SelfLink(childComplexity), true
1673
1674 case "IOChaos.spec":
1675 if e.complexity.IOChaos.Spec == nil {
1676 break
1677 }
1678
1679 return e.complexity.IOChaos.Spec(childComplexity), true
1680
1681 case "IOChaos.status":
1682 if e.complexity.IOChaos.Status == nil {
1683 break
1684 }
1685
1686 return e.complexity.IOChaos.Status(childComplexity), true
1687
1688 case "IOChaos.uid":
1689 if e.complexity.IOChaos.UID == nil {
1690 break
1691 }
1692
1693 return e.complexity.IOChaos.UID(childComplexity), true
1694
1695 case "IOChaosAction.atime":
1696 if e.complexity.IOChaosAction.Atime == nil {
1697 break
1698 }
1699
1700 return e.complexity.IOChaosAction.Atime(childComplexity), true
1701
1702 case "IOChaosAction.blocks":
1703 if e.complexity.IOChaosAction.Blocks == nil {
1704 break
1705 }
1706
1707 return e.complexity.IOChaosAction.Blocks(childComplexity), true
1708
1709 case "IOChaosAction.ctime":
1710 if e.complexity.IOChaosAction.Ctime == nil {
1711 break
1712 }
1713
1714 return e.complexity.IOChaosAction.Ctime(childComplexity), true
1715
1716 case "IOChaosAction.faults":
1717 if e.complexity.IOChaosAction.Faults == nil {
1718 break
1719 }
1720
1721 return e.complexity.IOChaosAction.Faults(childComplexity), true
1722
1723 case "IOChaosAction.filling":
1724 if e.complexity.IOChaosAction.Filling == nil {
1725 break
1726 }
1727
1728 return e.complexity.IOChaosAction.Filling(childComplexity), true
1729
1730 case "IOChaosAction.gid":
1731 if e.complexity.IOChaosAction.Gid == nil {
1732 break
1733 }
1734
1735 return e.complexity.IOChaosAction.Gid(childComplexity), true
1736
1737 case "IOChaosAction.ino":
1738 if e.complexity.IOChaosAction.Ino == nil {
1739 break
1740 }
1741
1742 return e.complexity.IOChaosAction.Ino(childComplexity), true
1743
1744 case "IOChaosAction.kind":
1745 if e.complexity.IOChaosAction.Kind == nil {
1746 break
1747 }
1748
1749 return e.complexity.IOChaosAction.Kind(childComplexity), true
1750
1751 case "IOChaosAction.latency":
1752 if e.complexity.IOChaosAction.Latency == nil {
1753 break
1754 }
1755
1756 return e.complexity.IOChaosAction.Latency(childComplexity), true
1757
1758 case "IOChaosAction.maxLength":
1759 if e.complexity.IOChaosAction.MaxLength == nil {
1760 break
1761 }
1762
1763 return e.complexity.IOChaosAction.MaxLength(childComplexity), true
1764
1765 case "IOChaosAction.maxOccurrences":
1766 if e.complexity.IOChaosAction.MaxOccurrences == nil {
1767 break
1768 }
1769
1770 return e.complexity.IOChaosAction.MaxOccurrences(childComplexity), true
1771
1772 case "IOChaosAction.methods":
1773 if e.complexity.IOChaosAction.Methods == nil {
1774 break
1775 }
1776
1777 return e.complexity.IOChaosAction.Methods(childComplexity), true
1778
1779 case "IOChaosAction.mtime":
1780 if e.complexity.IOChaosAction.Mtime == nil {
1781 break
1782 }
1783
1784 return e.complexity.IOChaosAction.Mtime(childComplexity), true
1785
1786 case "IOChaosAction.nlink":
1787 if e.complexity.IOChaosAction.Nlink == nil {
1788 break
1789 }
1790
1791 return e.complexity.IOChaosAction.Nlink(childComplexity), true
1792
1793 case "IOChaosAction.path":
1794 if e.complexity.IOChaosAction.Path == nil {
1795 break
1796 }
1797
1798 return e.complexity.IOChaosAction.Path(childComplexity), true
1799
1800 case "IOChaosAction.percent":
1801 if e.complexity.IOChaosAction.Percent == nil {
1802 break
1803 }
1804
1805 return e.complexity.IOChaosAction.Percent(childComplexity), true
1806
1807 case "IOChaosAction.perm":
1808 if e.complexity.IOChaosAction.Perm == nil {
1809 break
1810 }
1811
1812 return e.complexity.IOChaosAction.Perm(childComplexity), true
1813
1814 case "IOChaosAction.rdev":
1815 if e.complexity.IOChaosAction.Rdev == nil {
1816 break
1817 }
1818
1819 return e.complexity.IOChaosAction.Rdev(childComplexity), true
1820
1821 case "IOChaosAction.size":
1822 if e.complexity.IOChaosAction.Size == nil {
1823 break
1824 }
1825
1826 return e.complexity.IOChaosAction.Size(childComplexity), true
1827
1828 case "IOChaosAction.source":
1829 if e.complexity.IOChaosAction.Source == nil {
1830 break
1831 }
1832
1833 return e.complexity.IOChaosAction.Source(childComplexity), true
1834
1835 case "IOChaosAction.type":
1836 if e.complexity.IOChaosAction.Type == nil {
1837 break
1838 }
1839
1840 return e.complexity.IOChaosAction.Type(childComplexity), true
1841
1842 case "IOChaosAction.uid":
1843 if e.complexity.IOChaosAction.UID == nil {
1844 break
1845 }
1846
1847 return e.complexity.IOChaosAction.UID(childComplexity), true
1848
1849 case "IOChaosSpec.action":
1850 if e.complexity.IOChaosSpec.Action == nil {
1851 break
1852 }
1853
1854 return e.complexity.IOChaosSpec.Action(childComplexity), true
1855
1856 case "IOChaosSpec.attr":
1857 if e.complexity.IOChaosSpec.Attr == nil {
1858 break
1859 }
1860
1861 return e.complexity.IOChaosSpec.Attr(childComplexity), true
1862
1863 case "IOChaosSpec.containerNames":
1864 if e.complexity.IOChaosSpec.ContainerNames == nil {
1865 break
1866 }
1867
1868 return e.complexity.IOChaosSpec.ContainerNames(childComplexity), true
1869
1870 case "IOChaosSpec.delay":
1871 if e.complexity.IOChaosSpec.Delay == nil {
1872 break
1873 }
1874
1875 return e.complexity.IOChaosSpec.Delay(childComplexity), true
1876
1877 case "IOChaosSpec.duration":
1878 if e.complexity.IOChaosSpec.Duration == nil {
1879 break
1880 }
1881
1882 return e.complexity.IOChaosSpec.Duration(childComplexity), true
1883
1884 case "IOChaosSpec.errno":
1885 if e.complexity.IOChaosSpec.Errno == nil {
1886 break
1887 }
1888
1889 return e.complexity.IOChaosSpec.Errno(childComplexity), true
1890
1891 case "IOChaosSpec.methods":
1892 if e.complexity.IOChaosSpec.Methods == nil {
1893 break
1894 }
1895
1896 return e.complexity.IOChaosSpec.Methods(childComplexity), true
1897
1898 case "IOChaosSpec.mistake":
1899 if e.complexity.IOChaosSpec.Mistake == nil {
1900 break
1901 }
1902
1903 return e.complexity.IOChaosSpec.Mistake(childComplexity), true
1904
1905 case "IOChaosSpec.mode":
1906 if e.complexity.IOChaosSpec.Mode == nil {
1907 break
1908 }
1909
1910 return e.complexity.IOChaosSpec.Mode(childComplexity), true
1911
1912 case "IOChaosSpec.path":
1913 if e.complexity.IOChaosSpec.Path == nil {
1914 break
1915 }
1916
1917 return e.complexity.IOChaosSpec.Path(childComplexity), true
1918
1919 case "IOChaosSpec.percent":
1920 if e.complexity.IOChaosSpec.Percent == nil {
1921 break
1922 }
1923
1924 return e.complexity.IOChaosSpec.Percent(childComplexity), true
1925
1926 case "IOChaosSpec.selector":
1927 if e.complexity.IOChaosSpec.Selector == nil {
1928 break
1929 }
1930
1931 return e.complexity.IOChaosSpec.Selector(childComplexity), true
1932
1933 case "IOChaosSpec.value":
1934 if e.complexity.IOChaosSpec.Value == nil {
1935 break
1936 }
1937
1938 return e.complexity.IOChaosSpec.Value(childComplexity), true
1939
1940 case "IOChaosSpec.volumePath":
1941 if e.complexity.IOChaosSpec.VolumePath == nil {
1942 break
1943 }
1944
1945 return e.complexity.IOChaosSpec.VolumePath(childComplexity), true
1946
1947 case "IOChaosStatus.conditions":
1948 if e.complexity.IOChaosStatus.Conditions == nil {
1949 break
1950 }
1951
1952 return e.complexity.IOChaosStatus.Conditions(childComplexity), true
1953
1954 case "IOChaosStatus.experiment":
1955 if e.complexity.IOChaosStatus.Experiment == nil {
1956 break
1957 }
1958
1959 return e.complexity.IOChaosStatus.Experiment(childComplexity), true
1960
1961 case "IOChaosStatus.instances":
1962 if e.complexity.IOChaosStatus.Instances == nil {
1963 break
1964 }
1965
1966 return e.complexity.IOChaosStatus.Instances(childComplexity), true
1967
1968 case "IoFault.errno":
1969 if e.complexity.IoFault.Errno == nil {
1970 break
1971 }
1972
1973 return e.complexity.IoFault.Errno(childComplexity), true
1974
1975 case "IoFault.weight":
1976 if e.complexity.IoFault.Weight == nil {
1977 break
1978 }
1979
1980 return e.complexity.IoFault.Weight(childComplexity), true
1981
1982 case "Logger.component":
1983 if e.complexity.Logger.Component == nil {
1984 break
1985 }
1986
1987 args, err := ec.field_Logger_component_args(context.TODO(), rawArgs)
1988 if err != nil {
1989 return 0, false
1990 }
1991
1992 return e.complexity.Logger.Component(childComplexity, args["ns"].(string), args["component"].(model.Component)), true
1993
1994 case "Logger.pod":
1995 if e.complexity.Logger.Pod == nil {
1996 break
1997 }
1998
1999 args, err := ec.field_Logger_pod_args(context.TODO(), rawArgs)
2000 if err != nil {
2001 return 0, false
2002 }
2003
2004 return e.complexity.Logger.Pod(childComplexity, args["ns"].(string), args["name"].(string)), true
2005
2006 case "LossSpec.correlation":
2007 if e.complexity.LossSpec.Correlation == nil {
2008 break
2009 }
2010
2011 return e.complexity.LossSpec.Correlation(childComplexity), true
2012
2013 case "LossSpec.loss":
2014 if e.complexity.LossSpec.Loss == nil {
2015 break
2016 }
2017
2018 return e.complexity.LossSpec.Loss(childComplexity), true
2019
2020 case "MistakeSpec.filling":
2021 if e.complexity.MistakeSpec.Filling == nil {
2022 break
2023 }
2024
2025 return e.complexity.MistakeSpec.Filling(childComplexity), true
2026
2027 case "MistakeSpec.maxLength":
2028 if e.complexity.MistakeSpec.MaxLength == nil {
2029 break
2030 }
2031
2032 return e.complexity.MistakeSpec.MaxLength(childComplexity), true
2033
2034 case "MistakeSpec.maxOccurrences":
2035 if e.complexity.MistakeSpec.MaxOccurrences == nil {
2036 break
2037 }
2038
2039 return e.complexity.MistakeSpec.MaxOccurrences(childComplexity), true
2040
2041 case "Namespace.component":
2042 if e.complexity.Namespace.Component == nil {
2043 break
2044 }
2045
2046 args, err := ec.field_Namespace_component_args(context.TODO(), rawArgs)
2047 if err != nil {
2048 return 0, false
2049 }
2050
2051 return e.complexity.Namespace.Component(childComplexity, args["component"].(model.Component)), true
2052
2053 case "Namespace.httpchaos":
2054 if e.complexity.Namespace.Httpchaos == nil {
2055 break
2056 }
2057
2058 args, err := ec.field_Namespace_httpchaos_args(context.TODO(), rawArgs)
2059 if err != nil {
2060 return 0, false
2061 }
2062
2063 return e.complexity.Namespace.Httpchaos(childComplexity, args["name"].(*string)), true
2064
2065 case "Namespace.iochaos":
2066 if e.complexity.Namespace.Iochaos == nil {
2067 break
2068 }
2069
2070 args, err := ec.field_Namespace_iochaos_args(context.TODO(), rawArgs)
2071 if err != nil {
2072 return 0, false
2073 }
2074
2075 return e.complexity.Namespace.Iochaos(childComplexity, args["name"].(*string)), true
2076
2077 case "Namespace.networkchaos":
2078 if e.complexity.Namespace.Networkchaos == nil {
2079 break
2080 }
2081
2082 args, err := ec.field_Namespace_networkchaos_args(context.TODO(), rawArgs)
2083 if err != nil {
2084 return 0, false
2085 }
2086
2087 return e.complexity.Namespace.Networkchaos(childComplexity, args["name"].(*string)), true
2088
2089 case "Namespace.ns":
2090 if e.complexity.Namespace.Ns == nil {
2091 break
2092 }
2093
2094 return e.complexity.Namespace.Ns(childComplexity), true
2095
2096 case "Namespace.pod":
2097 if e.complexity.Namespace.Pod == nil {
2098 break
2099 }
2100
2101 args, err := ec.field_Namespace_pod_args(context.TODO(), rawArgs)
2102 if err != nil {
2103 return 0, false
2104 }
2105
2106 return e.complexity.Namespace.Pod(childComplexity, args["name"].(*string)), true
2107
2108 case "Namespace.podhttpchaos":
2109 if e.complexity.Namespace.Podhttpchaos == nil {
2110 break
2111 }
2112
2113 args, err := ec.field_Namespace_podhttpchaos_args(context.TODO(), rawArgs)
2114 if err != nil {
2115 return 0, false
2116 }
2117
2118 return e.complexity.Namespace.Podhttpchaos(childComplexity, args["name"].(*string)), true
2119
2120 case "Namespace.podiochaos":
2121 if e.complexity.Namespace.Podiochaos == nil {
2122 break
2123 }
2124
2125 args, err := ec.field_Namespace_podiochaos_args(context.TODO(), rawArgs)
2126 if err != nil {
2127 return 0, false
2128 }
2129
2130 return e.complexity.Namespace.Podiochaos(childComplexity, args["name"].(*string)), true
2131
2132 case "Namespace.podnetworkchaos":
2133 if e.complexity.Namespace.Podnetworkchaos == nil {
2134 break
2135 }
2136
2137 args, err := ec.field_Namespace_podnetworkchaos_args(context.TODO(), rawArgs)
2138 if err != nil {
2139 return 0, false
2140 }
2141
2142 return e.complexity.Namespace.Podnetworkchaos(childComplexity, args["name"].(*string)), true
2143
2144 case "Namespace.stresschaos":
2145 if e.complexity.Namespace.Stresschaos == nil {
2146 break
2147 }
2148
2149 args, err := ec.field_Namespace_stresschaos_args(context.TODO(), rawArgs)
2150 if err != nil {
2151 return 0, false
2152 }
2153
2154 return e.complexity.Namespace.Stresschaos(childComplexity, args["name"].(*string)), true
2155
2156 case "NetworkChaos.apiVersion":
2157 if e.complexity.NetworkChaos.APIVersion == nil {
2158 break
2159 }
2160
2161 return e.complexity.NetworkChaos.APIVersion(childComplexity), true
2162
2163 case "NetworkChaos.annotations":
2164 if e.complexity.NetworkChaos.Annotations == nil {
2165 break
2166 }
2167
2168 return e.complexity.NetworkChaos.Annotations(childComplexity), true
2169
2170 case "NetworkChaos.clusterName":
2171 if e.complexity.NetworkChaos.ClusterName == nil {
2172 break
2173 }
2174
2175 return e.complexity.NetworkChaos.ClusterName(childComplexity), true
2176
2177 case "NetworkChaos.creationTimestamp":
2178 if e.complexity.NetworkChaos.CreationTimestamp == nil {
2179 break
2180 }
2181
2182 return e.complexity.NetworkChaos.CreationTimestamp(childComplexity), true
2183
2184 case "NetworkChaos.deletionGracePeriodSeconds":
2185 if e.complexity.NetworkChaos.DeletionGracePeriodSeconds == nil {
2186 break
2187 }
2188
2189 return e.complexity.NetworkChaos.DeletionGracePeriodSeconds(childComplexity), true
2190
2191 case "NetworkChaos.deletionTimestamp":
2192 if e.complexity.NetworkChaos.DeletionTimestamp == nil {
2193 break
2194 }
2195
2196 return e.complexity.NetworkChaos.DeletionTimestamp(childComplexity), true
2197
2198 case "NetworkChaos.finalizers":
2199 if e.complexity.NetworkChaos.Finalizers == nil {
2200 break
2201 }
2202
2203 return e.complexity.NetworkChaos.Finalizers(childComplexity), true
2204
2205 case "NetworkChaos.generateName":
2206 if e.complexity.NetworkChaos.GenerateName == nil {
2207 break
2208 }
2209
2210 return e.complexity.NetworkChaos.GenerateName(childComplexity), true
2211
2212 case "NetworkChaos.generation":
2213 if e.complexity.NetworkChaos.Generation == nil {
2214 break
2215 }
2216
2217 return e.complexity.NetworkChaos.Generation(childComplexity), true
2218
2219 case "NetworkChaos.kind":
2220 if e.complexity.NetworkChaos.Kind == nil {
2221 break
2222 }
2223
2224 return e.complexity.NetworkChaos.Kind(childComplexity), true
2225
2226 case "NetworkChaos.labels":
2227 if e.complexity.NetworkChaos.Labels == nil {
2228 break
2229 }
2230
2231 return e.complexity.NetworkChaos.Labels(childComplexity), true
2232
2233 case "NetworkChaos.name":
2234 if e.complexity.NetworkChaos.Name == nil {
2235 break
2236 }
2237
2238 return e.complexity.NetworkChaos.Name(childComplexity), true
2239
2240 case "NetworkChaos.namespace":
2241 if e.complexity.NetworkChaos.Namespace == nil {
2242 break
2243 }
2244
2245 return e.complexity.NetworkChaos.Namespace(childComplexity), true
2246
2247 case "NetworkChaos.ownerReferences":
2248 if e.complexity.NetworkChaos.OwnerReferences == nil {
2249 break
2250 }
2251
2252 return e.complexity.NetworkChaos.OwnerReferences(childComplexity), true
2253
2254 case "NetworkChaos.podnetwork":
2255 if e.complexity.NetworkChaos.Podnetwork == nil {
2256 break
2257 }
2258
2259 return e.complexity.NetworkChaos.Podnetwork(childComplexity), true
2260
2261 case "NetworkChaos.resourceVersion":
2262 if e.complexity.NetworkChaos.ResourceVersion == nil {
2263 break
2264 }
2265
2266 return e.complexity.NetworkChaos.ResourceVersion(childComplexity), true
2267
2268 case "NetworkChaos.selfLink":
2269 if e.complexity.NetworkChaos.SelfLink == nil {
2270 break
2271 }
2272
2273 return e.complexity.NetworkChaos.SelfLink(childComplexity), true
2274
2275 case "NetworkChaos.uid":
2276 if e.complexity.NetworkChaos.UID == nil {
2277 break
2278 }
2279
2280 return e.complexity.NetworkChaos.UID(childComplexity), true
2281
2282 case "OwnerReference.apiVersion":
2283 if e.complexity.OwnerReference.APIVersion == nil {
2284 break
2285 }
2286
2287 return e.complexity.OwnerReference.APIVersion(childComplexity), true
2288
2289 case "OwnerReference.blockOwnerDeletion":
2290 if e.complexity.OwnerReference.BlockOwnerDeletion == nil {
2291 break
2292 }
2293
2294 return e.complexity.OwnerReference.BlockOwnerDeletion(childComplexity), true
2295
2296 case "OwnerReference.controller":
2297 if e.complexity.OwnerReference.Controller == nil {
2298 break
2299 }
2300
2301 return e.complexity.OwnerReference.Controller(childComplexity), true
2302
2303 case "OwnerReference.kind":
2304 if e.complexity.OwnerReference.Kind == nil {
2305 break
2306 }
2307
2308 return e.complexity.OwnerReference.Kind(childComplexity), true
2309
2310 case "OwnerReference.name":
2311 if e.complexity.OwnerReference.Name == nil {
2312 break
2313 }
2314
2315 return e.complexity.OwnerReference.Name(childComplexity), true
2316
2317 case "OwnerReference.uid":
2318 if e.complexity.OwnerReference.UID == nil {
2319 break
2320 }
2321
2322 return e.complexity.OwnerReference.UID(childComplexity), true
2323
2324 case "Pod.apiVersion":
2325 if e.complexity.Pod.APIVersion == nil {
2326 break
2327 }
2328
2329 return e.complexity.Pod.APIVersion(childComplexity), true
2330
2331 case "Pod.annotations":
2332 if e.complexity.Pod.Annotations == nil {
2333 break
2334 }
2335
2336 return e.complexity.Pod.Annotations(childComplexity), true
2337
2338 case "Pod.clusterName":
2339 if e.complexity.Pod.ClusterName == nil {
2340 break
2341 }
2342
2343 return e.complexity.Pod.ClusterName(childComplexity), true
2344
2345 case "Pod.creationTimestamp":
2346 if e.complexity.Pod.CreationTimestamp == nil {
2347 break
2348 }
2349
2350 return e.complexity.Pod.CreationTimestamp(childComplexity), true
2351
2352 case "Pod.daemon":
2353 if e.complexity.Pod.Daemon == nil {
2354 break
2355 }
2356
2357 return e.complexity.Pod.Daemon(childComplexity), true
2358
2359 case "Pod.deletionGracePeriodSeconds":
2360 if e.complexity.Pod.DeletionGracePeriodSeconds == nil {
2361 break
2362 }
2363
2364 return e.complexity.Pod.DeletionGracePeriodSeconds(childComplexity), true
2365
2366 case "Pod.deletionTimestamp":
2367 if e.complexity.Pod.DeletionTimestamp == nil {
2368 break
2369 }
2370
2371 return e.complexity.Pod.DeletionTimestamp(childComplexity), true
2372
2373 case "Pod.finalizers":
2374 if e.complexity.Pod.Finalizers == nil {
2375 break
2376 }
2377
2378 return e.complexity.Pod.Finalizers(childComplexity), true
2379
2380 case "Pod.generateName":
2381 if e.complexity.Pod.GenerateName == nil {
2382 break
2383 }
2384
2385 return e.complexity.Pod.GenerateName(childComplexity), true
2386
2387 case "Pod.generation":
2388 if e.complexity.Pod.Generation == nil {
2389 break
2390 }
2391
2392 return e.complexity.Pod.Generation(childComplexity), true
2393
2394 case "Pod.ipset":
2395 if e.complexity.Pod.Ipset == nil {
2396 break
2397 }
2398
2399 return e.complexity.Pod.Ipset(childComplexity), true
2400
2401 case "Pod.iptables":
2402 if e.complexity.Pod.Iptables == nil {
2403 break
2404 }
2405
2406 return e.complexity.Pod.Iptables(childComplexity), true
2407
2408 case "Pod.kind":
2409 if e.complexity.Pod.Kind == nil {
2410 break
2411 }
2412
2413 return e.complexity.Pod.Kind(childComplexity), true
2414
2415 case "Pod.labels":
2416 if e.complexity.Pod.Labels == nil {
2417 break
2418 }
2419
2420 return e.complexity.Pod.Labels(childComplexity), true
2421
2422 case "Pod.logs":
2423 if e.complexity.Pod.Logs == nil {
2424 break
2425 }
2426
2427 return e.complexity.Pod.Logs(childComplexity), true
2428
2429 case "Pod.mounts":
2430 if e.complexity.Pod.Mounts == nil {
2431 break
2432 }
2433
2434 return e.complexity.Pod.Mounts(childComplexity), true
2435
2436 case "Pod.name":
2437 if e.complexity.Pod.Name == nil {
2438 break
2439 }
2440
2441 return e.complexity.Pod.Name(childComplexity), true
2442
2443 case "Pod.namespace":
2444 if e.complexity.Pod.Namespace == nil {
2445 break
2446 }
2447
2448 return e.complexity.Pod.Namespace(childComplexity), true
2449
2450 case "Pod.ownerReferences":
2451 if e.complexity.Pod.OwnerReferences == nil {
2452 break
2453 }
2454
2455 return e.complexity.Pod.OwnerReferences(childComplexity), true
2456
2457 case "Pod.processes":
2458 if e.complexity.Pod.Processes == nil {
2459 break
2460 }
2461
2462 return e.complexity.Pod.Processes(childComplexity), true
2463
2464 case "Pod.resourceVersion":
2465 if e.complexity.Pod.ResourceVersion == nil {
2466 break
2467 }
2468
2469 return e.complexity.Pod.ResourceVersion(childComplexity), true
2470
2471 case "Pod.selfLink":
2472 if e.complexity.Pod.SelfLink == nil {
2473 break
2474 }
2475
2476 return e.complexity.Pod.SelfLink(childComplexity), true
2477
2478 case "Pod.spec":
2479 if e.complexity.Pod.Spec == nil {
2480 break
2481 }
2482
2483 return e.complexity.Pod.Spec(childComplexity), true
2484
2485 case "Pod.status":
2486 if e.complexity.Pod.Status == nil {
2487 break
2488 }
2489
2490 return e.complexity.Pod.Status(childComplexity), true
2491
2492 case "Pod.tcQdisc":
2493 if e.complexity.Pod.TcQdisc == nil {
2494 break
2495 }
2496
2497 return e.complexity.Pod.TcQdisc(childComplexity), true
2498
2499 case "Pod.uid":
2500 if e.complexity.Pod.UID == nil {
2501 break
2502 }
2503
2504 return e.complexity.Pod.UID(childComplexity), true
2505
2506 case "PodCondition.lastProbeTime":
2507 if e.complexity.PodCondition.LastProbeTime == nil {
2508 break
2509 }
2510
2511 return e.complexity.PodCondition.LastProbeTime(childComplexity), true
2512
2513 case "PodCondition.lastTransitionTime":
2514 if e.complexity.PodCondition.LastTransitionTime == nil {
2515 break
2516 }
2517
2518 return e.complexity.PodCondition.LastTransitionTime(childComplexity), true
2519
2520 case "PodCondition.message":
2521 if e.complexity.PodCondition.Message == nil {
2522 break
2523 }
2524
2525 return e.complexity.PodCondition.Message(childComplexity), true
2526
2527 case "PodCondition.reason":
2528 if e.complexity.PodCondition.Reason == nil {
2529 break
2530 }
2531
2532 return e.complexity.PodCondition.Reason(childComplexity), true
2533
2534 case "PodCondition.status":
2535 if e.complexity.PodCondition.Status == nil {
2536 break
2537 }
2538
2539 return e.complexity.PodCondition.Status(childComplexity), true
2540
2541 case "PodCondition.type":
2542 if e.complexity.PodCondition.Type == nil {
2543 break
2544 }
2545
2546 return e.complexity.PodCondition.Type(childComplexity), true
2547
2548 case "PodHTTPChaos.apiVersion":
2549 if e.complexity.PodHTTPChaos.APIVersion == nil {
2550 break
2551 }
2552
2553 return e.complexity.PodHTTPChaos.APIVersion(childComplexity), true
2554
2555 case "PodHTTPChaos.annotations":
2556 if e.complexity.PodHTTPChaos.Annotations == nil {
2557 break
2558 }
2559
2560 return e.complexity.PodHTTPChaos.Annotations(childComplexity), true
2561
2562 case "PodHTTPChaos.clusterName":
2563 if e.complexity.PodHTTPChaos.ClusterName == nil {
2564 break
2565 }
2566
2567 return e.complexity.PodHTTPChaos.ClusterName(childComplexity), true
2568
2569 case "PodHTTPChaos.creationTimestamp":
2570 if e.complexity.PodHTTPChaos.CreationTimestamp == nil {
2571 break
2572 }
2573
2574 return e.complexity.PodHTTPChaos.CreationTimestamp(childComplexity), true
2575
2576 case "PodHTTPChaos.deletionGracePeriodSeconds":
2577 if e.complexity.PodHTTPChaos.DeletionGracePeriodSeconds == nil {
2578 break
2579 }
2580
2581 return e.complexity.PodHTTPChaos.DeletionGracePeriodSeconds(childComplexity), true
2582
2583 case "PodHTTPChaos.deletionTimestamp":
2584 if e.complexity.PodHTTPChaos.DeletionTimestamp == nil {
2585 break
2586 }
2587
2588 return e.complexity.PodHTTPChaos.DeletionTimestamp(childComplexity), true
2589
2590 case "PodHTTPChaos.finalizers":
2591 if e.complexity.PodHTTPChaos.Finalizers == nil {
2592 break
2593 }
2594
2595 return e.complexity.PodHTTPChaos.Finalizers(childComplexity), true
2596
2597 case "PodHTTPChaos.generateName":
2598 if e.complexity.PodHTTPChaos.GenerateName == nil {
2599 break
2600 }
2601
2602 return e.complexity.PodHTTPChaos.GenerateName(childComplexity), true
2603
2604 case "PodHTTPChaos.generation":
2605 if e.complexity.PodHTTPChaos.Generation == nil {
2606 break
2607 }
2608
2609 return e.complexity.PodHTTPChaos.Generation(childComplexity), true
2610
2611 case "PodHTTPChaos.kind":
2612 if e.complexity.PodHTTPChaos.Kind == nil {
2613 break
2614 }
2615
2616 return e.complexity.PodHTTPChaos.Kind(childComplexity), true
2617
2618 case "PodHTTPChaos.labels":
2619 if e.complexity.PodHTTPChaos.Labels == nil {
2620 break
2621 }
2622
2623 return e.complexity.PodHTTPChaos.Labels(childComplexity), true
2624
2625 case "PodHTTPChaos.name":
2626 if e.complexity.PodHTTPChaos.Name == nil {
2627 break
2628 }
2629
2630 return e.complexity.PodHTTPChaos.Name(childComplexity), true
2631
2632 case "PodHTTPChaos.namespace":
2633 if e.complexity.PodHTTPChaos.Namespace == nil {
2634 break
2635 }
2636
2637 return e.complexity.PodHTTPChaos.Namespace(childComplexity), true
2638
2639 case "PodHTTPChaos.ownerReferences":
2640 if e.complexity.PodHTTPChaos.OwnerReferences == nil {
2641 break
2642 }
2643
2644 return e.complexity.PodHTTPChaos.OwnerReferences(childComplexity), true
2645
2646 case "PodHTTPChaos.pod":
2647 if e.complexity.PodHTTPChaos.Pod == nil {
2648 break
2649 }
2650
2651 return e.complexity.PodHTTPChaos.Pod(childComplexity), true
2652
2653 case "PodHTTPChaos.resourceVersion":
2654 if e.complexity.PodHTTPChaos.ResourceVersion == nil {
2655 break
2656 }
2657
2658 return e.complexity.PodHTTPChaos.ResourceVersion(childComplexity), true
2659
2660 case "PodHTTPChaos.selfLink":
2661 if e.complexity.PodHTTPChaos.SelfLink == nil {
2662 break
2663 }
2664
2665 return e.complexity.PodHTTPChaos.SelfLink(childComplexity), true
2666
2667 case "PodHTTPChaos.spec":
2668 if e.complexity.PodHTTPChaos.Spec == nil {
2669 break
2670 }
2671
2672 return e.complexity.PodHTTPChaos.Spec(childComplexity), true
2673
2674 case "PodHTTPChaos.status":
2675 if e.complexity.PodHTTPChaos.Status == nil {
2676 break
2677 }
2678
2679 return e.complexity.PodHTTPChaos.Status(childComplexity), true
2680
2681 case "PodHTTPChaos.uid":
2682 if e.complexity.PodHTTPChaos.UID == nil {
2683 break
2684 }
2685
2686 return e.complexity.PodHTTPChaos.UID(childComplexity), true
2687
2688 case "PodHttpChaosActions.abort":
2689 if e.complexity.PodHTTPChaosActions.Abort == nil {
2690 break
2691 }
2692
2693 return e.complexity.PodHTTPChaosActions.Abort(childComplexity), true
2694
2695 case "PodHttpChaosActions.delay":
2696 if e.complexity.PodHTTPChaosActions.Delay == nil {
2697 break
2698 }
2699
2700 return e.complexity.PodHTTPChaosActions.Delay(childComplexity), true
2701
2702 case "PodHttpChaosActions.patch":
2703 if e.complexity.PodHTTPChaosActions.Patch == nil {
2704 break
2705 }
2706
2707 return e.complexity.PodHTTPChaosActions.Patch(childComplexity), true
2708
2709 case "PodHttpChaosActions.replace":
2710 if e.complexity.PodHTTPChaosActions.Replace == nil {
2711 break
2712 }
2713
2714 return e.complexity.PodHTTPChaosActions.Replace(childComplexity), true
2715
2716 case "PodHttpChaosPatchActions.body":
2717 if e.complexity.PodHTTPChaosPatchActions.Body == nil {
2718 break
2719 }
2720
2721 return e.complexity.PodHTTPChaosPatchActions.Body(childComplexity), true
2722
2723 case "PodHttpChaosPatchActions.headers":
2724 if e.complexity.PodHTTPChaosPatchActions.Headers == nil {
2725 break
2726 }
2727
2728 return e.complexity.PodHTTPChaosPatchActions.Headers(childComplexity), true
2729
2730 case "PodHttpChaosPatchActions.queries":
2731 if e.complexity.PodHTTPChaosPatchActions.Queries == nil {
2732 break
2733 }
2734
2735 return e.complexity.PodHTTPChaosPatchActions.Queries(childComplexity), true
2736
2737 case "PodHttpChaosPatchBodyAction.type":
2738 if e.complexity.PodHTTPChaosPatchBodyAction.Type == nil {
2739 break
2740 }
2741
2742 return e.complexity.PodHTTPChaosPatchBodyAction.Type(childComplexity), true
2743
2744 case "PodHttpChaosPatchBodyAction.value":
2745 if e.complexity.PodHTTPChaosPatchBodyAction.Value == nil {
2746 break
2747 }
2748
2749 return e.complexity.PodHTTPChaosPatchBodyAction.Value(childComplexity), true
2750
2751 case "PodHttpChaosReplaceActions.body":
2752 if e.complexity.PodHTTPChaosReplaceActions.Body == nil {
2753 break
2754 }
2755
2756 return e.complexity.PodHTTPChaosReplaceActions.Body(childComplexity), true
2757
2758 case "PodHttpChaosReplaceActions.code":
2759 if e.complexity.PodHTTPChaosReplaceActions.Code == nil {
2760 break
2761 }
2762
2763 return e.complexity.PodHTTPChaosReplaceActions.Code(childComplexity), true
2764
2765 case "PodHttpChaosReplaceActions.headers":
2766 if e.complexity.PodHTTPChaosReplaceActions.Headers == nil {
2767 break
2768 }
2769
2770 return e.complexity.PodHTTPChaosReplaceActions.Headers(childComplexity), true
2771
2772 case "PodHttpChaosReplaceActions.method":
2773 if e.complexity.PodHTTPChaosReplaceActions.Method == nil {
2774 break
2775 }
2776
2777 return e.complexity.PodHTTPChaosReplaceActions.Method(childComplexity), true
2778
2779 case "PodHttpChaosReplaceActions.path":
2780 if e.complexity.PodHTTPChaosReplaceActions.Path == nil {
2781 break
2782 }
2783
2784 return e.complexity.PodHTTPChaosReplaceActions.Path(childComplexity), true
2785
2786 case "PodHttpChaosReplaceActions.queries":
2787 if e.complexity.PodHTTPChaosReplaceActions.Queries == nil {
2788 break
2789 }
2790
2791 return e.complexity.PodHTTPChaosReplaceActions.Queries(childComplexity), true
2792
2793 case "PodHttpChaosRule.actions":
2794 if e.complexity.PodHTTPChaosRule.Actions == nil {
2795 break
2796 }
2797
2798 return e.complexity.PodHTTPChaosRule.Actions(childComplexity), true
2799
2800 case "PodHttpChaosRule.port":
2801 if e.complexity.PodHTTPChaosRule.Port == nil {
2802 break
2803 }
2804
2805 return e.complexity.PodHTTPChaosRule.Port(childComplexity), true
2806
2807 case "PodHttpChaosRule.selector":
2808 if e.complexity.PodHTTPChaosRule.Selector == nil {
2809 break
2810 }
2811
2812 return e.complexity.PodHTTPChaosRule.Selector(childComplexity), true
2813
2814 case "PodHttpChaosRule.source":
2815 if e.complexity.PodHTTPChaosRule.Source == nil {
2816 break
2817 }
2818
2819 return e.complexity.PodHTTPChaosRule.Source(childComplexity), true
2820
2821 case "PodHttpChaosRule.target":
2822 if e.complexity.PodHTTPChaosRule.Target == nil {
2823 break
2824 }
2825
2826 return e.complexity.PodHTTPChaosRule.Target(childComplexity), true
2827
2828 case "PodHttpChaosSelector.code":
2829 if e.complexity.PodHTTPChaosSelector.Code == nil {
2830 break
2831 }
2832
2833 return e.complexity.PodHTTPChaosSelector.Code(childComplexity), true
2834
2835 case "PodHttpChaosSelector.method":
2836 if e.complexity.PodHTTPChaosSelector.Method == nil {
2837 break
2838 }
2839
2840 return e.complexity.PodHTTPChaosSelector.Method(childComplexity), true
2841
2842 case "PodHttpChaosSelector.path":
2843 if e.complexity.PodHTTPChaosSelector.Path == nil {
2844 break
2845 }
2846
2847 return e.complexity.PodHTTPChaosSelector.Path(childComplexity), true
2848
2849 case "PodHttpChaosSelector.port":
2850 if e.complexity.PodHTTPChaosSelector.Port == nil {
2851 break
2852 }
2853
2854 return e.complexity.PodHTTPChaosSelector.Port(childComplexity), true
2855
2856 case "PodHttpChaosSelector.requestHeaders":
2857 if e.complexity.PodHTTPChaosSelector.RequestHeaders == nil {
2858 break
2859 }
2860
2861 return e.complexity.PodHTTPChaosSelector.RequestHeaders(childComplexity), true
2862
2863 case "PodHttpChaosSelector.responseHeaders":
2864 if e.complexity.PodHTTPChaosSelector.ResponseHeaders == nil {
2865 break
2866 }
2867
2868 return e.complexity.PodHTTPChaosSelector.ResponseHeaders(childComplexity), true
2869
2870 case "PodHttpChaosSpec.rules":
2871 if e.complexity.PodHTTPChaosSpec.Rules == nil {
2872 break
2873 }
2874
2875 return e.complexity.PodHTTPChaosSpec.Rules(childComplexity), true
2876
2877 case "PodHttpChaosStatus.failedMessage":
2878 if e.complexity.PodHTTPChaosStatus.FailedMessage == nil {
2879 break
2880 }
2881
2882 return e.complexity.PodHTTPChaosStatus.FailedMessage(childComplexity), true
2883
2884 case "PodHttpChaosStatus.observedGeneration":
2885 if e.complexity.PodHTTPChaosStatus.ObservedGeneration == nil {
2886 break
2887 }
2888
2889 return e.complexity.PodHTTPChaosStatus.ObservedGeneration(childComplexity), true
2890
2891 case "PodHttpChaosStatus.pid":
2892 if e.complexity.PodHTTPChaosStatus.Pid == nil {
2893 break
2894 }
2895
2896 return e.complexity.PodHTTPChaosStatus.Pid(childComplexity), true
2897
2898 case "PodHttpChaosStatus.startTime":
2899 if e.complexity.PodHTTPChaosStatus.StartTime == nil {
2900 break
2901 }
2902
2903 return e.complexity.PodHTTPChaosStatus.StartTime(childComplexity), true
2904
2905 case "PodIOChaos.apiVersion":
2906 if e.complexity.PodIOChaos.APIVersion == nil {
2907 break
2908 }
2909
2910 return e.complexity.PodIOChaos.APIVersion(childComplexity), true
2911
2912 case "PodIOChaos.annotations":
2913 if e.complexity.PodIOChaos.Annotations == nil {
2914 break
2915 }
2916
2917 return e.complexity.PodIOChaos.Annotations(childComplexity), true
2918
2919 case "PodIOChaos.clusterName":
2920 if e.complexity.PodIOChaos.ClusterName == nil {
2921 break
2922 }
2923
2924 return e.complexity.PodIOChaos.ClusterName(childComplexity), true
2925
2926 case "PodIOChaos.creationTimestamp":
2927 if e.complexity.PodIOChaos.CreationTimestamp == nil {
2928 break
2929 }
2930
2931 return e.complexity.PodIOChaos.CreationTimestamp(childComplexity), true
2932
2933 case "PodIOChaos.deletionGracePeriodSeconds":
2934 if e.complexity.PodIOChaos.DeletionGracePeriodSeconds == nil {
2935 break
2936 }
2937
2938 return e.complexity.PodIOChaos.DeletionGracePeriodSeconds(childComplexity), true
2939
2940 case "PodIOChaos.deletionTimestamp":
2941 if e.complexity.PodIOChaos.DeletionTimestamp == nil {
2942 break
2943 }
2944
2945 return e.complexity.PodIOChaos.DeletionTimestamp(childComplexity), true
2946
2947 case "PodIOChaos.finalizers":
2948 if e.complexity.PodIOChaos.Finalizers == nil {
2949 break
2950 }
2951
2952 return e.complexity.PodIOChaos.Finalizers(childComplexity), true
2953
2954 case "PodIOChaos.generateName":
2955 if e.complexity.PodIOChaos.GenerateName == nil {
2956 break
2957 }
2958
2959 return e.complexity.PodIOChaos.GenerateName(childComplexity), true
2960
2961 case "PodIOChaos.generation":
2962 if e.complexity.PodIOChaos.Generation == nil {
2963 break
2964 }
2965
2966 return e.complexity.PodIOChaos.Generation(childComplexity), true
2967
2968 case "PodIOChaos.ios":
2969 if e.complexity.PodIOChaos.Ios == nil {
2970 break
2971 }
2972
2973 return e.complexity.PodIOChaos.Ios(childComplexity), true
2974
2975 case "PodIOChaos.kind":
2976 if e.complexity.PodIOChaos.Kind == nil {
2977 break
2978 }
2979
2980 return e.complexity.PodIOChaos.Kind(childComplexity), true
2981
2982 case "PodIOChaos.labels":
2983 if e.complexity.PodIOChaos.Labels == nil {
2984 break
2985 }
2986
2987 return e.complexity.PodIOChaos.Labels(childComplexity), true
2988
2989 case "PodIOChaos.name":
2990 if e.complexity.PodIOChaos.Name == nil {
2991 break
2992 }
2993
2994 return e.complexity.PodIOChaos.Name(childComplexity), true
2995
2996 case "PodIOChaos.namespace":
2997 if e.complexity.PodIOChaos.Namespace == nil {
2998 break
2999 }
3000
3001 return e.complexity.PodIOChaos.Namespace(childComplexity), true
3002
3003 case "PodIOChaos.ownerReferences":
3004 if e.complexity.PodIOChaos.OwnerReferences == nil {
3005 break
3006 }
3007
3008 return e.complexity.PodIOChaos.OwnerReferences(childComplexity), true
3009
3010 case "PodIOChaos.pod":
3011 if e.complexity.PodIOChaos.Pod == nil {
3012 break
3013 }
3014
3015 return e.complexity.PodIOChaos.Pod(childComplexity), true
3016
3017 case "PodIOChaos.resourceVersion":
3018 if e.complexity.PodIOChaos.ResourceVersion == nil {
3019 break
3020 }
3021
3022 return e.complexity.PodIOChaos.ResourceVersion(childComplexity), true
3023
3024 case "PodIOChaos.selfLink":
3025 if e.complexity.PodIOChaos.SelfLink == nil {
3026 break
3027 }
3028
3029 return e.complexity.PodIOChaos.SelfLink(childComplexity), true
3030
3031 case "PodIOChaos.spec":
3032 if e.complexity.PodIOChaos.Spec == nil {
3033 break
3034 }
3035
3036 return e.complexity.PodIOChaos.Spec(childComplexity), true
3037
3038 case "PodIOChaos.status":
3039 if e.complexity.PodIOChaos.Status == nil {
3040 break
3041 }
3042
3043 return e.complexity.PodIOChaos.Status(childComplexity), true
3044
3045 case "PodIOChaos.uid":
3046 if e.complexity.PodIOChaos.UID == nil {
3047 break
3048 }
3049
3050 return e.complexity.PodIOChaos.UID(childComplexity), true
3051
3052 case "PodIOChaosSpec.actions":
3053 if e.complexity.PodIOChaosSpec.Actions == nil {
3054 break
3055 }
3056
3057 return e.complexity.PodIOChaosSpec.Actions(childComplexity), true
3058
3059 case "PodIOChaosSpec.container":
3060 if e.complexity.PodIOChaosSpec.Container == nil {
3061 break
3062 }
3063
3064 return e.complexity.PodIOChaosSpec.Container(childComplexity), true
3065
3066 case "PodIOChaosSpec.volumeMountPath":
3067 if e.complexity.PodIOChaosSpec.VolumeMountPath == nil {
3068 break
3069 }
3070
3071 return e.complexity.PodIOChaosSpec.VolumeMountPath(childComplexity), true
3072
3073 case "PodIOChaosStatus.failedMessage":
3074 if e.complexity.PodIOChaosStatus.FailedMessage == nil {
3075 break
3076 }
3077
3078 return e.complexity.PodIOChaosStatus.FailedMessage(childComplexity), true
3079
3080 case "PodIOChaosStatus.observedGeneration":
3081 if e.complexity.PodIOChaosStatus.ObservedGeneration == nil {
3082 break
3083 }
3084
3085 return e.complexity.PodIOChaosStatus.ObservedGeneration(childComplexity), true
3086
3087 case "PodIOChaosStatus.pid":
3088 if e.complexity.PodIOChaosStatus.Pid == nil {
3089 break
3090 }
3091
3092 return e.complexity.PodIOChaosStatus.Pid(childComplexity), true
3093
3094 case "PodIOChaosStatus.startTime":
3095 if e.complexity.PodIOChaosStatus.StartTime == nil {
3096 break
3097 }
3098
3099 return e.complexity.PodIOChaosStatus.StartTime(childComplexity), true
3100
3101 case "PodIP.ip":
3102 if e.complexity.PodIP.IP == nil {
3103 break
3104 }
3105
3106 return e.complexity.PodIP.IP(childComplexity), true
3107
3108 case "PodNetworkChaos.apiVersion":
3109 if e.complexity.PodNetworkChaos.APIVersion == nil {
3110 break
3111 }
3112
3113 return e.complexity.PodNetworkChaos.APIVersion(childComplexity), true
3114
3115 case "PodNetworkChaos.annotations":
3116 if e.complexity.PodNetworkChaos.Annotations == nil {
3117 break
3118 }
3119
3120 return e.complexity.PodNetworkChaos.Annotations(childComplexity), true
3121
3122 case "PodNetworkChaos.clusterName":
3123 if e.complexity.PodNetworkChaos.ClusterName == nil {
3124 break
3125 }
3126
3127 return e.complexity.PodNetworkChaos.ClusterName(childComplexity), true
3128
3129 case "PodNetworkChaos.creationTimestamp":
3130 if e.complexity.PodNetworkChaos.CreationTimestamp == nil {
3131 break
3132 }
3133
3134 return e.complexity.PodNetworkChaos.CreationTimestamp(childComplexity), true
3135
3136 case "PodNetworkChaos.deletionGracePeriodSeconds":
3137 if e.complexity.PodNetworkChaos.DeletionGracePeriodSeconds == nil {
3138 break
3139 }
3140
3141 return e.complexity.PodNetworkChaos.DeletionGracePeriodSeconds(childComplexity), true
3142
3143 case "PodNetworkChaos.deletionTimestamp":
3144 if e.complexity.PodNetworkChaos.DeletionTimestamp == nil {
3145 break
3146 }
3147
3148 return e.complexity.PodNetworkChaos.DeletionTimestamp(childComplexity), true
3149
3150 case "PodNetworkChaos.finalizers":
3151 if e.complexity.PodNetworkChaos.Finalizers == nil {
3152 break
3153 }
3154
3155 return e.complexity.PodNetworkChaos.Finalizers(childComplexity), true
3156
3157 case "PodNetworkChaos.generateName":
3158 if e.complexity.PodNetworkChaos.GenerateName == nil {
3159 break
3160 }
3161
3162 return e.complexity.PodNetworkChaos.GenerateName(childComplexity), true
3163
3164 case "PodNetworkChaos.generation":
3165 if e.complexity.PodNetworkChaos.Generation == nil {
3166 break
3167 }
3168
3169 return e.complexity.PodNetworkChaos.Generation(childComplexity), true
3170
3171 case "PodNetworkChaos.kind":
3172 if e.complexity.PodNetworkChaos.Kind == nil {
3173 break
3174 }
3175
3176 return e.complexity.PodNetworkChaos.Kind(childComplexity), true
3177
3178 case "PodNetworkChaos.labels":
3179 if e.complexity.PodNetworkChaos.Labels == nil {
3180 break
3181 }
3182
3183 return e.complexity.PodNetworkChaos.Labels(childComplexity), true
3184
3185 case "PodNetworkChaos.name":
3186 if e.complexity.PodNetworkChaos.Name == nil {
3187 break
3188 }
3189
3190 return e.complexity.PodNetworkChaos.Name(childComplexity), true
3191
3192 case "PodNetworkChaos.namespace":
3193 if e.complexity.PodNetworkChaos.Namespace == nil {
3194 break
3195 }
3196
3197 return e.complexity.PodNetworkChaos.Namespace(childComplexity), true
3198
3199 case "PodNetworkChaos.ownerReferences":
3200 if e.complexity.PodNetworkChaos.OwnerReferences == nil {
3201 break
3202 }
3203
3204 return e.complexity.PodNetworkChaos.OwnerReferences(childComplexity), true
3205
3206 case "PodNetworkChaos.pod":
3207 if e.complexity.PodNetworkChaos.Pod == nil {
3208 break
3209 }
3210
3211 return e.complexity.PodNetworkChaos.Pod(childComplexity), true
3212
3213 case "PodNetworkChaos.resourceVersion":
3214 if e.complexity.PodNetworkChaos.ResourceVersion == nil {
3215 break
3216 }
3217
3218 return e.complexity.PodNetworkChaos.ResourceVersion(childComplexity), true
3219
3220 case "PodNetworkChaos.selfLink":
3221 if e.complexity.PodNetworkChaos.SelfLink == nil {
3222 break
3223 }
3224
3225 return e.complexity.PodNetworkChaos.SelfLink(childComplexity), true
3226
3227 case "PodNetworkChaos.spec":
3228 if e.complexity.PodNetworkChaos.Spec == nil {
3229 break
3230 }
3231
3232 return e.complexity.PodNetworkChaos.Spec(childComplexity), true
3233
3234 case "PodNetworkChaos.status":
3235 if e.complexity.PodNetworkChaos.Status == nil {
3236 break
3237 }
3238
3239 return e.complexity.PodNetworkChaos.Status(childComplexity), true
3240
3241 case "PodNetworkChaos.uid":
3242 if e.complexity.PodNetworkChaos.UID == nil {
3243 break
3244 }
3245
3246 return e.complexity.PodNetworkChaos.UID(childComplexity), true
3247
3248 case "PodNetworkChaosSpec.ipSets":
3249 if e.complexity.PodNetworkChaosSpec.IPSets == nil {
3250 break
3251 }
3252
3253 return e.complexity.PodNetworkChaosSpec.IPSets(childComplexity), true
3254
3255 case "PodNetworkChaosSpec.iptables":
3256 if e.complexity.PodNetworkChaosSpec.Iptables == nil {
3257 break
3258 }
3259
3260 return e.complexity.PodNetworkChaosSpec.Iptables(childComplexity), true
3261
3262 case "PodNetworkChaosSpec.trafficControls":
3263 if e.complexity.PodNetworkChaosSpec.TrafficControls == nil {
3264 break
3265 }
3266
3267 return e.complexity.PodNetworkChaosSpec.TrafficControls(childComplexity), true
3268
3269 case "PodNetworkChaosStatus.failedMessage":
3270 if e.complexity.PodNetworkChaosStatus.FailedMessage == nil {
3271 break
3272 }
3273
3274 return e.complexity.PodNetworkChaosStatus.FailedMessage(childComplexity), true
3275
3276 case "PodNetworkChaosStatus.observedGeneration":
3277 if e.complexity.PodNetworkChaosStatus.ObservedGeneration == nil {
3278 break
3279 }
3280
3281 return e.complexity.PodNetworkChaosStatus.ObservedGeneration(childComplexity), true
3282
3283 case "PodSelectorSpec.annotationSelectors":
3284 if e.complexity.PodSelectorSpec.AnnotationSelectors == nil {
3285 break
3286 }
3287
3288 return e.complexity.PodSelectorSpec.AnnotationSelectors(childComplexity), true
3289
3290 case "PodSelectorSpec.fieldSelectors":
3291 if e.complexity.PodSelectorSpec.FieldSelectors == nil {
3292 break
3293 }
3294
3295 return e.complexity.PodSelectorSpec.FieldSelectors(childComplexity), true
3296
3297 case "PodSelectorSpec.labelSelectors":
3298 if e.complexity.PodSelectorSpec.LabelSelectors == nil {
3299 break
3300 }
3301
3302 return e.complexity.PodSelectorSpec.LabelSelectors(childComplexity), true
3303
3304 case "PodSelectorSpec.namespaces":
3305 if e.complexity.PodSelectorSpec.Namespaces == nil {
3306 break
3307 }
3308
3309 return e.complexity.PodSelectorSpec.Namespaces(childComplexity), true
3310
3311 case "PodSelectorSpec.nodeSelectors":
3312 if e.complexity.PodSelectorSpec.NodeSelectors == nil {
3313 break
3314 }
3315
3316 return e.complexity.PodSelectorSpec.NodeSelectors(childComplexity), true
3317
3318 case "PodSelectorSpec.nodes":
3319 if e.complexity.PodSelectorSpec.Nodes == nil {
3320 break
3321 }
3322
3323 return e.complexity.PodSelectorSpec.Nodes(childComplexity), true
3324
3325 case "PodSelectorSpec.podPhaseSelectors":
3326 if e.complexity.PodSelectorSpec.PodPhaseSelectors == nil {
3327 break
3328 }
3329
3330 return e.complexity.PodSelectorSpec.PodPhaseSelectors(childComplexity), true
3331
3332 case "PodSelectorSpec.pods":
3333 if e.complexity.PodSelectorSpec.Pods == nil {
3334 break
3335 }
3336
3337 return e.complexity.PodSelectorSpec.Pods(childComplexity), true
3338
3339 case "PodSpec.nodeName":
3340 if e.complexity.PodSpec.NodeName == nil {
3341 break
3342 }
3343
3344 return e.complexity.PodSpec.NodeName(childComplexity), true
3345
3346 case "PodStatus.conditions":
3347 if e.complexity.PodStatus.Conditions == nil {
3348 break
3349 }
3350
3351 return e.complexity.PodStatus.Conditions(childComplexity), true
3352
3353 case "PodStatus.containerStatuses":
3354 if e.complexity.PodStatus.ContainerStatuses == nil {
3355 break
3356 }
3357
3358 return e.complexity.PodStatus.ContainerStatuses(childComplexity), true
3359
3360 case "PodStatus.ephemeralContainerStatuses":
3361 if e.complexity.PodStatus.EphemeralContainerStatuses == nil {
3362 break
3363 }
3364
3365 return e.complexity.PodStatus.EphemeralContainerStatuses(childComplexity), true
3366
3367 case "PodStatus.hostIP":
3368 if e.complexity.PodStatus.HostIP == nil {
3369 break
3370 }
3371
3372 return e.complexity.PodStatus.HostIP(childComplexity), true
3373
3374 case "PodStatus.initContainerStatuses":
3375 if e.complexity.PodStatus.InitContainerStatuses == nil {
3376 break
3377 }
3378
3379 return e.complexity.PodStatus.InitContainerStatuses(childComplexity), true
3380
3381 case "PodStatus.message":
3382 if e.complexity.PodStatus.Message == nil {
3383 break
3384 }
3385
3386 return e.complexity.PodStatus.Message(childComplexity), true
3387
3388 case "PodStatus.nominatedNodeName":
3389 if e.complexity.PodStatus.NominatedNodeName == nil {
3390 break
3391 }
3392
3393 return e.complexity.PodStatus.NominatedNodeName(childComplexity), true
3394
3395 case "PodStatus.phase":
3396 if e.complexity.PodStatus.Phase == nil {
3397 break
3398 }
3399
3400 return e.complexity.PodStatus.Phase(childComplexity), true
3401
3402 case "PodStatus.podIP":
3403 if e.complexity.PodStatus.PodIP == nil {
3404 break
3405 }
3406
3407 return e.complexity.PodStatus.PodIP(childComplexity), true
3408
3409 case "PodStatus.podIPs":
3410 if e.complexity.PodStatus.PodIPs == nil {
3411 break
3412 }
3413
3414 return e.complexity.PodStatus.PodIPs(childComplexity), true
3415
3416 case "PodStatus.qosClass":
3417 if e.complexity.PodStatus.QosClass == nil {
3418 break
3419 }
3420
3421 return e.complexity.PodStatus.QosClass(childComplexity), true
3422
3423 case "PodStatus.reason":
3424 if e.complexity.PodStatus.Reason == nil {
3425 break
3426 }
3427
3428 return e.complexity.PodStatus.Reason(childComplexity), true
3429
3430 case "PodStatus.startTime":
3431 if e.complexity.PodStatus.StartTime == nil {
3432 break
3433 }
3434
3435 return e.complexity.PodStatus.StartTime(childComplexity), true
3436
3437 case "Process.command":
3438 if e.complexity.Process.Command == nil {
3439 break
3440 }
3441
3442 return e.complexity.Process.Command(childComplexity), true
3443
3444 case "Process.fds":
3445 if e.complexity.Process.Fds == nil {
3446 break
3447 }
3448
3449 return e.complexity.Process.Fds(childComplexity), true
3450
3451 case "Process.pid":
3452 if e.complexity.Process.Pid == nil {
3453 break
3454 }
3455
3456 return e.complexity.Process.Pid(childComplexity), true
3457
3458 case "Process.pod":
3459 if e.complexity.Process.Pod == nil {
3460 break
3461 }
3462
3463 return e.complexity.Process.Pod(childComplexity), true
3464
3465 case "Query.namespace":
3466 if e.complexity.Query.Namespace == nil {
3467 break
3468 }
3469
3470 args, err := ec.field_Query_namespace_args(context.TODO(), rawArgs)
3471 if err != nil {
3472 return 0, false
3473 }
3474
3475 return e.complexity.Query.Namespace(childComplexity, args["ns"].(*string)), true
3476
3477 case "RawIPSet.cidrs":
3478 if e.complexity.RawIPSet.Cidrs == nil {
3479 break
3480 }
3481
3482 return e.complexity.RawIPSet.Cidrs(childComplexity), true
3483
3484 case "RawIPSet.name":
3485 if e.complexity.RawIPSet.Name == nil {
3486 break
3487 }
3488
3489 return e.complexity.RawIPSet.Name(childComplexity), true
3490
3491 case "RawIPSet.source":
3492 if e.complexity.RawIPSet.Source == nil {
3493 break
3494 }
3495
3496 return e.complexity.RawIPSet.Source(childComplexity), true
3497
3498 case "RawIptables.direction":
3499 if e.complexity.RawIptables.Direction == nil {
3500 break
3501 }
3502
3503 return e.complexity.RawIptables.Direction(childComplexity), true
3504
3505 case "RawIptables.ipSets":
3506 if e.complexity.RawIptables.IPSets == nil {
3507 break
3508 }
3509
3510 return e.complexity.RawIptables.IPSets(childComplexity), true
3511
3512 case "RawIptables.name":
3513 if e.complexity.RawIptables.Name == nil {
3514 break
3515 }
3516
3517 return e.complexity.RawIptables.Name(childComplexity), true
3518
3519 case "RawIptables.source":
3520 if e.complexity.RawIptables.Source == nil {
3521 break
3522 }
3523
3524 return e.complexity.RawIptables.Source(childComplexity), true
3525
3526 case "RawTrafficControl.Bandwidth":
3527 if e.complexity.RawTrafficControl.Bandwidth == nil {
3528 break
3529 }
3530
3531 return e.complexity.RawTrafficControl.Bandwidth(childComplexity), true
3532
3533 case "RawTrafficControl.corrupt":
3534 if e.complexity.RawTrafficControl.Corrupt == nil {
3535 break
3536 }
3537
3538 return e.complexity.RawTrafficControl.Corrupt(childComplexity), true
3539
3540 case "RawTrafficControl.delay":
3541 if e.complexity.RawTrafficControl.Delay == nil {
3542 break
3543 }
3544
3545 return e.complexity.RawTrafficControl.Delay(childComplexity), true
3546
3547 case "RawTrafficControl.duplicate":
3548 if e.complexity.RawTrafficControl.Duplicate == nil {
3549 break
3550 }
3551
3552 return e.complexity.RawTrafficControl.Duplicate(childComplexity), true
3553
3554 case "RawTrafficControl.ipSet":
3555 if e.complexity.RawTrafficControl.IPSet == nil {
3556 break
3557 }
3558
3559 return e.complexity.RawTrafficControl.IPSet(childComplexity), true
3560
3561 case "RawTrafficControl.loss":
3562 if e.complexity.RawTrafficControl.Loss == nil {
3563 break
3564 }
3565
3566 return e.complexity.RawTrafficControl.Loss(childComplexity), true
3567
3568 case "RawTrafficControl.source":
3569 if e.complexity.RawTrafficControl.Source == nil {
3570 break
3571 }
3572
3573 return e.complexity.RawTrafficControl.Source(childComplexity), true
3574
3575 case "RawTrafficControl.type":
3576 if e.complexity.RawTrafficControl.Type == nil {
3577 break
3578 }
3579
3580 return e.complexity.RawTrafficControl.Type(childComplexity), true
3581
3582 case "Record.id":
3583 if e.complexity.Record.Id == nil {
3584 break
3585 }
3586
3587 return e.complexity.Record.Id(childComplexity), true
3588
3589 case "Record.phase":
3590 if e.complexity.Record.Phase == nil {
3591 break
3592 }
3593
3594 return e.complexity.Record.Phase(childComplexity), true
3595
3596 case "Record.selectorKey":
3597 if e.complexity.Record.SelectorKey == nil {
3598 break
3599 }
3600
3601 return e.complexity.Record.SelectorKey(childComplexity), true
3602
3603 case "ReorderSpec.correlation":
3604 if e.complexity.ReorderSpec.Correlation == nil {
3605 break
3606 }
3607
3608 return e.complexity.ReorderSpec.Correlation(childComplexity), true
3609
3610 case "ReorderSpec.gap":
3611 if e.complexity.ReorderSpec.Gap == nil {
3612 break
3613 }
3614
3615 return e.complexity.ReorderSpec.Gap(childComplexity), true
3616
3617 case "ReorderSpec.reorder":
3618 if e.complexity.ReorderSpec.Reorder == nil {
3619 break
3620 }
3621
3622 return e.complexity.ReorderSpec.Reorder(childComplexity), true
3623
3624 case "StressChaos.apiVersion":
3625 if e.complexity.StressChaos.APIVersion == nil {
3626 break
3627 }
3628
3629 return e.complexity.StressChaos.APIVersion(childComplexity), true
3630
3631 case "StressChaos.annotations":
3632 if e.complexity.StressChaos.Annotations == nil {
3633 break
3634 }
3635
3636 return e.complexity.StressChaos.Annotations(childComplexity), true
3637
3638 case "StressChaos.clusterName":
3639 if e.complexity.StressChaos.ClusterName == nil {
3640 break
3641 }
3642
3643 return e.complexity.StressChaos.ClusterName(childComplexity), true
3644
3645 case "StressChaos.creationTimestamp":
3646 if e.complexity.StressChaos.CreationTimestamp == nil {
3647 break
3648 }
3649
3650 return e.complexity.StressChaos.CreationTimestamp(childComplexity), true
3651
3652 case "StressChaos.deletionGracePeriodSeconds":
3653 if e.complexity.StressChaos.DeletionGracePeriodSeconds == nil {
3654 break
3655 }
3656
3657 return e.complexity.StressChaos.DeletionGracePeriodSeconds(childComplexity), true
3658
3659 case "StressChaos.deletionTimestamp":
3660 if e.complexity.StressChaos.DeletionTimestamp == nil {
3661 break
3662 }
3663
3664 return e.complexity.StressChaos.DeletionTimestamp(childComplexity), true
3665
3666 case "StressChaos.finalizers":
3667 if e.complexity.StressChaos.Finalizers == nil {
3668 break
3669 }
3670
3671 return e.complexity.StressChaos.Finalizers(childComplexity), true
3672
3673 case "StressChaos.generateName":
3674 if e.complexity.StressChaos.GenerateName == nil {
3675 break
3676 }
3677
3678 return e.complexity.StressChaos.GenerateName(childComplexity), true
3679
3680 case "StressChaos.generation":
3681 if e.complexity.StressChaos.Generation == nil {
3682 break
3683 }
3684
3685 return e.complexity.StressChaos.Generation(childComplexity), true
3686
3687 case "StressChaos.kind":
3688 if e.complexity.StressChaos.Kind == nil {
3689 break
3690 }
3691
3692 return e.complexity.StressChaos.Kind(childComplexity), true
3693
3694 case "StressChaos.labels":
3695 if e.complexity.StressChaos.Labels == nil {
3696 break
3697 }
3698
3699 return e.complexity.StressChaos.Labels(childComplexity), true
3700
3701 case "StressChaos.name":
3702 if e.complexity.StressChaos.Name == nil {
3703 break
3704 }
3705
3706 return e.complexity.StressChaos.Name(childComplexity), true
3707
3708 case "StressChaos.namespace":
3709 if e.complexity.StressChaos.Namespace == nil {
3710 break
3711 }
3712
3713 return e.complexity.StressChaos.Namespace(childComplexity), true
3714
3715 case "StressChaos.ownerReferences":
3716 if e.complexity.StressChaos.OwnerReferences == nil {
3717 break
3718 }
3719
3720 return e.complexity.StressChaos.OwnerReferences(childComplexity), true
3721
3722 case "StressChaos.resourceVersion":
3723 if e.complexity.StressChaos.ResourceVersion == nil {
3724 break
3725 }
3726
3727 return e.complexity.StressChaos.ResourceVersion(childComplexity), true
3728
3729 case "StressChaos.selfLink":
3730 if e.complexity.StressChaos.SelfLink == nil {
3731 break
3732 }
3733
3734 return e.complexity.StressChaos.SelfLink(childComplexity), true
3735
3736 case "StressChaos.uid":
3737 if e.complexity.StressChaos.UID == nil {
3738 break
3739 }
3740
3741 return e.complexity.StressChaos.UID(childComplexity), true
3742
3743 case "Timespec.nsec":
3744 if e.complexity.Timespec.Nsec == nil {
3745 break
3746 }
3747
3748 return e.complexity.Timespec.Nsec(childComplexity), true
3749
3750 case "Timespec.sec":
3751 if e.complexity.Timespec.Sec == nil {
3752 break
3753 }
3754
3755 return e.complexity.Timespec.Sec(childComplexity), true
3756
3757 }
3758 return 0, false
3759 }
3760
3761 func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
3762 rc := graphql.GetOperationContext(ctx)
3763 ec := executionContext{rc, e}
3764 first := true
3765
3766 switch rc.Operation.Operation {
3767 case ast.Query:
3768 return func(ctx context.Context) *graphql.Response {
3769 if !first {
3770 return nil
3771 }
3772 first = false
3773 data := ec._Query(ctx, rc.Operation.SelectionSet)
3774 var buf bytes.Buffer
3775 data.MarshalGQL(&buf)
3776
3777 return &graphql.Response{
3778 Data: buf.Bytes(),
3779 }
3780 }
3781 case ast.Subscription:
3782 next := ec._Logger(ctx, rc.Operation.SelectionSet)
3783
3784 var buf bytes.Buffer
3785 return func(ctx context.Context) *graphql.Response {
3786 buf.Reset()
3787 data := next()
3788
3789 if data == nil {
3790 return nil
3791 }
3792 data.MarshalGQL(&buf)
3793
3794 return &graphql.Response{
3795 Data: buf.Bytes(),
3796 }
3797 }
3798
3799 default:
3800 return graphql.OneShot(graphql.ErrorResponse(ctx, "unsupported GraphQL operation"))
3801 }
3802 }
3803
3804 type executionContext struct {
3805 *graphql.OperationContext
3806 *executableSchema
3807 }
3808
3809 func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
3810 if ec.DisableIntrospection {
3811 return nil, errors.New("introspection disabled")
3812 }
3813 return introspection.WrapSchema(parsedSchema), nil
3814 }
3815
3816 func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
3817 if ec.DisableIntrospection {
3818 return nil, errors.New("introspection disabled")
3819 }
3820 return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
3821 }
3822
3823 var sources = []*ast.Source{
3824 {Name: "graph/schema.graphqls", Input: `# Copyright 2021 Chaos Mesh Authors.
3825 #
3826 # Licensed under the Apache License, Version 2.0 (the "License");
3827 # you may not use this file except in compliance with the License.
3828 # You may obtain a copy of the License at
3829 #
3830 # http://www.apache.org/licenses/LICENSE-2.0
3831 #
3832 # Unless required by applicable law or agreed to in writing, software
3833 # distributed under the License is distributed on an "AS IS" BASIS,
3834 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3835 # See the License for the specific language governing permissions and
3836 # limitations under the License.
3837 #
3838
3839 directive @goModel(model: String, models: [String!]) on OBJECT
3840 | INPUT_OBJECT
3841 | SCALAR
3842 | ENUM
3843 | INTERFACE
3844 | UNION
3845
3846 directive @goField(forceResolver: Boolean, name: String) on INPUT_FIELD_DEFINITION
3847 | FIELD_DEFINITION
3848
3849 scalar Time
3850 scalar Map
3851
3852 schema {
3853 query: Query
3854 subscription: Logger
3855 }
3856
3857 type Query {
3858 namespace(ns: String): [Namespace!]
3859 }
3860
3861 type Logger {
3862 component(ns: String! = "chaos-testing", component: Component!): String! @goField(forceResolver: true)
3863 pod(ns: String! = "default", name: String!): String! @goField(forceResolver: true)
3864 }
3865
3866 type Namespace {
3867 ns: String!
3868 component(component: Component!): [Pod!] @goField(forceResolver: true)
3869 pod(name: String): [Pod!] @goField(forceResolver: true)
3870 stresschaos(name: String): [StressChaos!] @goField(forceResolver: true)
3871 iochaos(name: String): [IOChaos!] @goField(forceResolver: true)
3872 podiochaos(name: String): [PodIOChaos!] @goField(forceResolver: true)
3873 httpchaos(name: String): [HTTPChaos!] @goField(forceResolver: true)
3874 podhttpchaos(name: String): [PodHTTPChaos!] @goField(forceResolver: true)
3875 networkchaos(name: String): [NetworkChaos!] @goField(forceResolver: true)
3876 podnetworkchaos(name: String): [PodNetworkChaos!] @goField(forceResolver: true)
3877 }
3878
3879 type OwnerReference @goModel(model: "k8s.io/apimachinery/pkg/apis/meta/v1.OwnerReference") {
3880 kind: String!
3881 apiVersion: String!
3882 name: String!
3883 uid: String!
3884 controller: Boolean
3885 blockOwnerDeletion: Boolean
3886 }
3887
3888 enum Component {
3889 MANAGER
3890 DAEMON
3891 DASHBOARD
3892 DNSSERVER
3893 }
3894
3895 type Process {
3896 pod: Pod!
3897
3898 pid: String!
3899 command: String!
3900
3901 fds: [Fd!] @goField(forceResolver: true)
3902 }
3903
3904 type Fd {
3905 fd: String!
3906 target: String!
3907 }
3908
3909 type Pod @goModel(model: "k8s.io/api/core/v1.Pod") {
3910 kind: String!
3911 apiVersion: String!
3912 name: String!
3913 generateName: String!
3914 namespace: String!
3915 selfLink: String!
3916 uid: String!
3917 resourceVersion: String!
3918 generation: Int!
3919 creationTimestamp: Time!
3920 deletionTimestamp: Time
3921 deletionGracePeriodSeconds: Int
3922 labels: Map
3923 annotations: Map
3924 ownerReferences: [OwnerReference!]
3925 finalizers: [String!]
3926 clusterName: String!
3927
3928 spec: PodSpec!
3929 status: PodStatus!
3930
3931 logs: String! @goField(forceResolver: true)
3932 daemon: Pod @goField(forceResolver: true)
3933 processes: [Process!] @goField(forceResolver: true)
3934 mounts: [String!] @goField(forceResolver: true)
3935 ipset: String! @goField(forceResolver: true)
3936 tcQdisc: String! @goField(forceResolver: true)
3937 iptables: String! @goField(forceResolver: true)
3938 }
3939
3940 # PodStatus represents information about the status of a pod. Status may trail the actual
3941 # state of a system, especially if the node that hosts the pod cannot contact the control
3942 # plane.
3943 type PodStatus @goModel(model: "k8s.io/api/core/v1.PodStatus") {
3944 # The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle.
3945 # The conditions array, the reason and message fields, and the individual container status
3946 # arrays contain more detail about the pod's status.
3947 # There are five possible phase values:
3948 #
3949 # Pending: The pod has been accepted by the Kubernetes system, but one or more of the
3950 # container images has not been created. This includes time before being scheduled as
3951 # well as time spent downloading images over the network, which could take a while.
3952 # Running: The pod has been bound to a node, and all of the containers have been created.
3953 # At least one container is still running, or is in the process of starting or restarting.
3954 # Succeeded: All containers in the pod have terminated in success, and will not be restarted.
3955 # Failed: All containers in the pod have terminated, and at least one container has
3956 # terminated in failure. The container either exited with non-zero status or was terminated
3957 # by the system.
3958 # Unknown: For some reason the state of the pod could not be obtained, typically due to an
3959 # error in communicating with the host of the pod.
3960 #
3961 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase
3962 phase: String!
3963
3964 # Current service state of pod.
3965 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
3966 conditions: [PodCondition!]
3967
3968 # A human readable message indicating details about why the pod is in this condition.
3969 message: String!
3970
3971 # A brief CamelCase message indicating details about why the pod is in this state.
3972 # e.g. 'Evicted'
3973 reason: String!
3974
3975 # nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be
3976 # scheduled right away as preemption victims receive their graceful termination periods.
3977 # This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide
3978 # to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to
3979 # give the resources on this node to a higher priority pod that is created after preemption.
3980 # As a result, this field may be different than PodSpec.nodeName when the pod is
3981 # scheduled.
3982 nominatedNodeName: String!
3983
3984 # IP address of the host to which the pod is assigned. Empty if not yet scheduled.
3985 hostIP: String!
3986
3987 # IP address allocated to the pod. Routable at least within the cluster.
3988 # Empty if not yet allocated.
3989 podIP: String!
3990
3991 # podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must
3992 # match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list
3993 # is empty if no IPs have been allocated yet.
3994 podIPs: [PodIP!]
3995
3996 # RFC 3339 date and time at which the object was acknowledged by the Kubelet.
3997 # This is before the Kubelet pulled the container image(s) for the pod.
3998 startTime: Time
3999
4000 # The list has one entry per init container in the manifest. The most recent successful
4001 # init container will have ready = true, the most recently started container will have
4002 # startTime set.
4003 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
4004 initContainerStatuses: [ContainerStatus!]
4005
4006 # The list has one entry per container in the manifest. Each entry is currently the output
4007 # of ` + "`" + `docker inspect` + "`" + `.
4008 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status
4009 containerStatuses: [ContainerStatus!]
4010
4011 # The Quality of Service (QOS) classification assigned to the pod based on resource requirements
4012 # See PodQOSClass type for available QOS classes
4013 # More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md
4014 qosClass: String!
4015
4016 # Status for any ephemeral containers that have run in this pod.
4017 # This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature.
4018 ephemeralContainerStatuses: [ContainerStatus!]
4019 }
4020
4021 # IP address information for entries in the (plural) PodIPs field.
4022 # Each entry includes:
4023 # IP: An IP address allocated to the pod. Routable at least within the cluster.
4024 type PodIP @goModel(model: "k8s.io/api/core/v1.PodIP") {
4025 # ip is an IP address (IPv4 or IPv6) assigned to the pod
4026 ip: String!
4027 }
4028
4029 # PodCondition contains details for the current condition of this pod.
4030 type PodCondition @goModel(model: "k8s.io/api/core/v1.PodCondition") {
4031 # Type is the type of the condition.
4032 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
4033 type: String!
4034
4035 # Status is the status of the condition.
4036 # Can be True, False, Unknown.
4037 # More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions
4038 status: String!
4039
4040 # Last time we probed the condition.
4041 lastProbeTime: Time
4042
4043 # Last time the condition transitioned from one status to another.
4044 lastTransitionTime: Time
4045
4046 # Unique, one-word, CamelCase reason for the condition's last transition.
4047 reason: String
4048
4049 # Human-readable message indicating details about last transition.
4050 message: String
4051 }
4052
4053 # ContainerStatus contains details for the current status of this container.
4054 type ContainerStatus @goModel(model: "k8s.io/api/core/v1.ContainerStatus") {
4055 # This must be a DNS_LABEL. Each container in a pod must have a unique name.
4056 # Cannot be updated.
4057 name: String!
4058
4059 # Details about the container's current condition.
4060 State: ContainerState
4061
4062 # Details about the container's last termination condition.
4063 lastTerminationState: ContainerState
4064
4065 # Specifies whether the container has passed its readiness probe.
4066 ready: Boolean!
4067
4068 # The number of times the container has been restarted, currently based on
4069 # the number of dead containers that have not yet been removed.
4070 # Note that this is calculated from dead containers. But those containers are subject to
4071 # garbage collection. This value will get capped at 5 by GC.
4072 restartCount: Int!
4073
4074 # The image the container is running.
4075 # More info: https://kubernetes.io/docs/concepts/containers/images
4076 # TODO(dchen1107): Which image the container is running with?
4077 image: String!
4078
4079 # ImageID of the container's image.
4080 imageID: String!
4081
4082 # Container's ID in the format 'docker://<container_id>'.
4083 containerID: String!
4084
4085 # Specifies whether the container has passed its startup probe.
4086 # Initialized as false, becomes true after startupProbe is considered successful.
4087 # Resets to false when the container is restarted, or if kubelet loses state temporarily.
4088 # Is always true when no startupProbe is defined.
4089 started: Boolean
4090 }
4091
4092 # ContainerState holds a possible state of container.
4093 # Only one of its members may be specified.
4094 # If none of them is specified, the default one is ContainerStateWaiting.
4095 type ContainerState @goModel(model: "k8s.io/api/core/v1.ContainerState") {
4096 # Details about a waiting container
4097 waiting: ContainerStateWaiting
4098
4099 # Details about a running container
4100 running: ContainerStateRunning
4101
4102 # Details about a terminated container
4103 terminated: ContainerStateTerminated
4104 }
4105
4106 # ContainerStateWaiting is a waiting state of a container.
4107 type ContainerStateWaiting @goModel(model: "k8s.io/api/core/v1.ContainerStateWaiting") {
4108 # (brief) reason the container is not yet running.
4109 reason: String
4110
4111 # Message regarding why the container is not yet running.
4112 message: String
4113 }
4114
4115 # ContainerStateRunning is a running state of a container.
4116 type ContainerStateRunning @goModel(model: "k8s.io/api/core/v1.ContainerStateRunning") {
4117 # Time at which the container was last (re-)started
4118 startedAt: Time
4119 }
4120
4121 # ContainerStateTerminated is a terminated state of a container.
4122 type ContainerStateTerminated @goModel(model: "k8s.io/api/core/v1.ContainerStateTerminated") {
4123 # Exit status from the last termination of the container
4124 exitCode: Int!
4125
4126 # Signal from the last termination of the container
4127 signal: Int
4128
4129 # (brief) reason from the last termination of the container
4130 reason: String
4131
4132 # Message regarding the last termination of the container
4133 message: String
4134
4135 #Time at which previous execution of the container started
4136 startedAt: Time
4137
4138 # Time at which the container last terminated
4139 finishedAt: Time
4140
4141 # Container's ID in the format 'docker://<container_id>'
4142 containerID: String
4143 }
4144
4145
4146 # TODO: add more fields
4147 type PodSpec @goModel(model: "k8s.io/api/core/v1.PodSpec") {
4148 # ndeName is a request to schedule this pod onto a specific node. If it is non-empty,
4149 # the scheduler simply schedules this pod onto that node, assuming that it fits resource
4150 # requirements.
4151 nodeName: String!
4152
4153 }
4154
4155 type PodIOChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodIOChaos") {
4156 kind: String!
4157 apiVersion: String!
4158 name: String!
4159 generateName: String!
4160 namespace: String!
4161 selfLink: String!
4162 uid: String!
4163 resourceVersion: String!
4164 generation: Int!
4165 creationTimestamp: Time!
4166 deletionTimestamp: Time
4167 deletionGracePeriodSeconds: Int
4168 labels: Map
4169 annotations: Map
4170 ownerReferences: [OwnerReference!]
4171 finalizers: [String!]
4172 clusterName: String!
4173
4174 spec: PodIOChaosSpec!
4175 status: PodIOChaosStatus!
4176
4177 pod: Pod! @goField(forceResolver: true)
4178 ios: [IOChaos!] @goField(forceResolver: true)
4179 }
4180
4181 # PodIOChaosSpec defines the desired state of PodIOChaos
4182 type PodIOChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodIOChaosSpec") {
4183 # volumeMountPath represents the target mount path
4184 # It must be a root of mount path now.
4185 volumeMountPath: String!
4186
4187 container: String
4188
4189 # actions are a list of IOChaos actions
4190 actions: [IOChaosAction!]
4191 }
4192
4193 type PodIOChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodIOChaosStatus") {
4194
4195 # pid represents a running toda process id
4196 pid: Int
4197
4198 # startTime represents the start time of a toda process
4199 startTime: Int
4200 failedMessage: String
4201 observedGeneration: Int
4202 }
4203
4204 # IOChaosAction defines an possible action of IOChaos
4205 type IOChaosAction @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaosAction") {
4206 type: String!
4207
4208 # path represents a glob of injecting path
4209 path: String!
4210
4211 # methods represents the method that the action will inject in
4212 methods: [String!]
4213
4214 # percent represents the percent probability of injecting this action
4215 percent: Int
4216
4217 # faults represents the fault to inject
4218 faults: [IoFault!]
4219
4220 # Latency represents the latency to inject
4221 latency: String
4222
4223 # attrOverrides represents the attribution to override
4224 ino: Int
4225 size: Int
4226 blocks: Int
4227 atime: Timespec
4228 mtime: Timespec
4229 ctime: Timespec
4230 kind: String # the file kind
4231 perm: Int
4232 nlink: Int
4233 uid: Int
4234 gid: Int
4235 rdev: Int
4236
4237 # MistakeSpec represents the mistake to inject
4238
4239 # filling determines what is filled in the miskate data.
4240 filling: String
4241
4242 # there will be [1, MaxOccurrences] segments of wrong data.
4243 maxOccurrences: Int
4244
4245 # max length of each wrong data segment in bytes
4246 maxLength: Int
4247
4248 # source represents the source of current rules
4249 source: String!
4250 }
4251
4252 type IoFault @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IoFault") {
4253 errno: Int!
4254 weight: Int!
4255 }
4256
4257 # Timespec represents a time
4258 type Timespec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.Timespec") {
4259 sec: Int!
4260 nsec: Int!
4261 }
4262
4263
4264 type IOChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaos") {
4265 kind: String!
4266 apiVersion: String!
4267 name: String!
4268 generateName: String!
4269 namespace: String!
4270 selfLink: String!
4271 uid: String!
4272 resourceVersion: String!
4273 generation: Int!
4274 creationTimestamp: Time!
4275 deletionTimestamp: Time
4276 deletionGracePeriodSeconds: Int
4277 labels: Map
4278 annotations: Map
4279 ownerReferences: [OwnerReference!]
4280 finalizers: [String!]
4281 clusterName: String!
4282
4283 spec: IOChaosSpec!
4284 status: IOChaosStatus!
4285
4286 podios: [PodIOChaos!] @goField(forceResolver: true)
4287 }
4288
4289 # IOChaosSpec defines the desired state of IOChaos
4290 type IOChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaosSpec") {
4291 # containerNames indicates list of the name of affected container.
4292 # If not set, all containers will be injected
4293 containerNames: [String!]
4294
4295 # selector is used to select pods that are used to inject chaos action.
4296 selector: PodSelectorSpec!
4297
4298 # mode defines the mode to run chaos action.
4299 # supported mode: one / all / fixed / fixed-percent / random-max-percent
4300 mode: String!
4301
4302 # value is required when the mode is set to ` + "`" + `FixedPodMode` + "`" + ` / ` + "`" + `FixedPercentPodMod` + "`" + ` / ` + "`" + `RandomMaxPercentPodMod` + "`" + `.
4303 # If ` + "`" + `FixedPodMode` + "`" + `, provide an integer of pods to do chaos action.
4304 # If ` + "`" + `FixedPercentPodMod` + "`" + `, provide a number from 0-100 to specify the percent of pods the server can do chaos action.
4305 # IF ` + "`" + `RandomMaxPercentPodMod` + "`" + `, provide a number from 0-100 to specify the max percent of pods to do chaos action
4306 value: String
4307
4308
4309 # action defines the specific pod chaos action.
4310 # Supported action: latency / fault / attrOverride / mistake
4311 action: String!
4312
4313 # delay defines the value of I/O chaos action delay.
4314 # A delay string is a possibly signed sequence of
4315 # decimal numbers, each with optional fraction and a unit suffix,
4316 # such as "300ms".
4317 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
4318 delay: String
4319
4320 # errno defines the error code that returned by I/O action.
4321 # refer to: https://www-numi.fnal.gov/offline_software/srt_public_context/WebDocs/Errors/unix_system_errors.html
4322 errno: Int
4323
4324 # attr defines the overrided attribution
4325 attr: AttrOverrideSpec
4326
4327 # mistake defines what types of incorrectness are injected to IO operations
4328 mistake: MistakeSpec
4329
4330 # path defines the path of files for injecting I/O chaos action.
4331 path: String
4332
4333 # methods defines the I/O methods for injecting I/O chaos action.
4334 # default: all I/O methods.
4335 methods: [String!]
4336
4337 # percent defines the percentage of injection errors and provides a number from 0-100.
4338 # default: 100.
4339 percent: Int
4340
4341 # volumePath represents the mount path of injected volume
4342 volumePath: String!
4343
4344 # duration represents the duration of the chaos action.
4345 # It is required when the action is ` + "`" + `PodFailureAction` + "`" + `.
4346 # A duration string is a possibly signed sequence of
4347 # decimal numbers, each with optional fraction and a unit suffix,
4348 # such as "300ms", "-1.5h" or "2h45m".
4349 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
4350 duration: String
4351 }
4352
4353 # AttrOverrideSpec represents an override of attribution
4354 type AttrOverrideSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.AttrOverrideSpec") {
4355 ino: Int
4356 size: Int
4357 blocks: Int
4358 atime: Timespec
4359 mtime: Timespec
4360 ctime: Timespec
4361 kind: String # the file kind
4362 perm: Int
4363 nlink: Int
4364 uid: Int
4365 gid: Int
4366 rdev: Int
4367 }
4368
4369 # MistakeSpec represents one type of mistake
4370 type MistakeSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.MistakeSpec") {
4371 # filling determines what is filled in the miskate data.
4372 filling: String
4373
4374 # there will be [1, MaxOccurrences] segments of wrong data.
4375 maxOccurrences: Int
4376
4377 # max length of each wrong data segment in bytes
4378 maxLength: Int
4379 }
4380
4381 type IOChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.IOChaosStatus") {
4382 # conditions represents the current global condition of the chaos
4383 conditions: [ChaosCondition!]
4384
4385 # experiment records the last experiment state.
4386 experiment: ExperimentStatus
4387
4388 # instances always specifies podhttpchaos generation or empty
4389 instances: Map
4390 }
4391
4392 type PodHTTPChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaos") {
4393 kind: String!
4394 apiVersion: String!
4395 name: String!
4396 generateName: String!
4397 namespace: String!
4398 selfLink: String!
4399 uid: String!
4400 resourceVersion: String!
4401 generation: Int!
4402 creationTimestamp: Time!
4403 deletionTimestamp: Time
4404 deletionGracePeriodSeconds: Int
4405 labels: Map
4406 annotations: Map
4407 ownerReferences: [OwnerReference!]
4408 finalizers: [String!]
4409 clusterName: String!
4410
4411 spec: PodHttpChaosSpec!
4412 status: PodHttpChaosStatus!
4413
4414 pod: Pod! @goField(forceResolver: true)
4415 }
4416
4417 # PodHttpChaosSpec defines the desired state of PodHttpChaos.
4418 type PodHttpChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosSpec") {
4419 # rules are a list of injection rule for http request.
4420 rules: [PodHttpChaosRule!]!
4421 }
4422
4423 # PodHttpChaosStatus defines the actual state of PodHttpChaos.
4424 type PodHttpChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosStatus") {
4425 # pid represents a running tproxy process id.
4426 pid: Int
4427
4428 # startTime represents the start time of a tproxy process.
4429 startTime: Int
4430
4431 failedMessage: String
4432 observedGeneration: Int
4433 }
4434
4435 # PodHttpChaosRule defines the injection rule for http.
4436 type PodHttpChaosRule @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosRule") {
4437 # target is the object to be selected and injected, <Request|Response>.
4438 target: String!
4439
4440 selector: PodHttpChaosSelector!
4441
4442 actions: PodHttpChaosActions!
4443
4444 # source represents the source of current rules
4445 source: String!
4446
4447 # port represents the target port to be proxy of.
4448 port: Int!
4449 }
4450
4451 type PodHttpChaosSelector @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosSelector") {
4452 # port represents the target port to be proxy of.
4453 port: Int
4454
4455 # path is a rule to select target by uri path in http request.
4456 path: String
4457
4458 # method is a rule to select target by http method in request.
4459 method: String
4460
4461 # code is a rule to select target by http status code in response.
4462 code: Int
4463
4464 # requestHeaders is a rule to select target by http headers in request.
4465 # The key-value pairs represent header name and header value pairs.
4466 requestHeaders: Map
4467
4468 # responseHeaders is a rule to select target by http headers in response.
4469 # The key-value pairs represent header name and header value pairs.
4470 responseHeaders: Map
4471 }
4472
4473 # PodHttpChaosAction defines possible actions of HttpChaos.
4474 type PodHttpChaosActions @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosActions") {
4475 # abort is a rule to abort a http session.
4476 abort: Boolean
4477
4478 # delay represents the delay of the target request/response.
4479 # A duration string is a possibly unsigned sequence of
4480 # decimal numbers, each with optional fraction and a unit suffix,
4481 # such as "300ms", "2h45m".
4482 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
4483 delay: String
4484
4485 # replace is a rule to replace some contents in target.
4486 replace: PodHttpChaosReplaceActions
4487
4488 # patch is a rule to patch some contents in target.
4489 patch: PodHttpChaosPatchActions
4490 }
4491
4492 type HTTPChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.HTTPChaos") {
4493 kind: String!
4494 apiVersion: String!
4495 name: String!
4496 generateName: String!
4497 namespace: String!
4498 selfLink: String!
4499 uid: String!
4500 resourceVersion: String!
4501 generation: Int!
4502 creationTimestamp: Time!
4503 deletionTimestamp: Time
4504 deletionGracePeriodSeconds: Int
4505 labels: Map
4506 annotations: Map
4507 ownerReferences: [OwnerReference!]
4508 finalizers: [String!]
4509 clusterName: String!
4510
4511 spec: HTTPChaosSpec!
4512 status: HTTPChaosStatus!
4513
4514 podhttp: [PodHTTPChaos!] @goField(forceResolver: true)
4515 }
4516
4517 type HTTPChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.HTTPChaosSpec") {
4518 # selector is used to select pods that are used to inject chaos action.
4519 selector: PodSelectorSpec!
4520
4521 # mode defines the mode to run chaos action.
4522 # supported mode: one / all / fixed / fixed-percent / random-max-percent
4523 mode: String!
4524
4525 # value is required when the mode is set to ` + "`" + `FixedPodMode` + "`" + ` / ` + "`" + `FixedPercentPodMod` + "`" + ` / ` + "`" + `RandomMaxPercentPodMod` + "`" + `.
4526 # If ` + "`" + `FixedPodMode` + "`" + `, provide an integer of pods to do chaos action.
4527 # If ` + "`" + `FixedPercentPodMod` + "`" + `, provide a number from 0-100 to specify the percent of pods the server can do chaos action.
4528 # IF ` + "`" + `RandomMaxPercentPodMod` + "`" + `, provide a number from 0-100 to specify the max percent of pods to do chaos action
4529 value: String
4530
4531 # target is the object to be selected and injected.
4532 target: String!
4533
4534 # abort is a rule to abort a http session.
4535 abort: Boolean
4536
4537 # delay represents the delay of the target request/response.
4538 # A duration string is a possibly unsigned sequence of
4539 # decimal numbers, each with optional fraction and a unit suffix,
4540 # such as "300ms", "2h45m".
4541 # Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
4542 delay: String
4543
4544 # replace is a rule to replace some contents in target.
4545 replace: PodHttpChaosReplaceActions
4546
4547 # patch is a rule to patch some contents in target.
4548 patch: PodHttpChaosPatchActions
4549
4550 # port represents the target port to be proxy of.
4551 port: Int
4552
4553 # path is a rule to select target by uri path in http request.
4554 path: String
4555
4556 # method is a rule to select target by http method in request.
4557 method: String
4558
4559 # code is a rule to select target by http status code in response.
4560 code: Int
4561
4562 # requestHeaders is a rule to select target by http headers in request.
4563 # The key-value pairs represent header name and header value pairs.
4564 requestHeaders: Map
4565
4566 # responseHeaders is a rule to select target by http headers in response.
4567 # The key-value pairs represent header name and header value pairs.
4568 responseHeaders: Map
4569
4570 # duration represents the duration of the chaos action.
4571 duration: String
4572 }
4573
4574 # PodSelectorSpec defines the some selectors to select objects.
4575 # If the all selectors are empty, all objects will be used in chaos experiment.
4576 type PodSelectorSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodSelectorSpec") {
4577 # namespaces is a set of namespace to which objects belong.
4578 namespaces: [String!]
4579
4580 # nodes is a set of node name and objects must belong to these nodes.
4581 nodes: [String!]
4582
4583 # pods is a map of string keys and a set values that used to select pods.
4584 # The key defines the namespace which pods belong,
4585 # and the each values is a set of pod names.
4586 pods: Map
4587
4588 # map of string keys and values that can be used to select nodes.
4589 # Selector which must match a node's labels,
4590 # and objects must belong to these selected nodes.
4591 nodeSelectors: Map
4592
4593 # map of string keys and values that can be used to select objects.
4594 # A selector based on fields.
4595 fieldSelectors: Map
4596
4597 # map of string keys and values that can be used to select objects.
4598 # A selector based on labels.
4599 labelSelectors: Map
4600
4601 # map of string keys and values that can be used to select objects.
4602 # A selector based on annotations.
4603 annotationSelectors: Map
4604
4605 # podPhaseSelectors is a set of condition of a pod at the current time.
4606 # supported value: Pending / Running / Succeeded / Failed / Unknown
4607 podPhaseSelectors: [String!]
4608 }
4609
4610 type PodHttpChaosReplaceActions @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosReplaceActions") {
4611 # path is rule to to replace uri path in http request.
4612 path: String
4613
4614 # method is a rule to replace http method in request.
4615 method: String
4616
4617 # code is a rule to replace http status code in response.
4618 code: Int
4619
4620 # body is a rule to replace http message body in target.
4621 body: String
4622
4623 # queries is a rule to replace uri queries in http request.
4624 # For example, with value ` + "`" + `{ "foo": "unknown" }` + "`" + `, the ` + "`" + `/?foo=bar` + "`" + ` will be altered to ` + "`" + `/?foo=unknown` + "`" + `,
4625 queries: Map
4626
4627 # headers is a rule to replace http headers of target.
4628 # The key-value pairs represent header name and header value pairs.
4629 headers: Map
4630 }
4631
4632 # PodHttpChaosPatchActions defines possible patch-actions of HttpChaos.
4633 type PodHttpChaosPatchActions @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosPatchActions") {
4634 # body is a rule to patch message body of target.
4635 body: PodHttpChaosPatchBodyAction
4636
4637 # queries is a rule to append uri queries of target(Request only).
4638 # For example: ` + "`" + `[["foo", "bar"], ["foo", "unknown"]]` + "`" + `.
4639 queries: [[String!]!]
4640
4641 # headers is a rule to append http headers of target.
4642 # For example: ` + "`" + `[["Set-Cookie", "<one cookie>"], ["Set-Cookie", "<another cookie>"]]` + "`" + `.
4643 headers: [[String!]!]
4644 }
4645
4646 # PodHttpChaosPatchBodyAction defines patch body action of HttpChaos.
4647 type PodHttpChaosPatchBodyAction @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodHttpChaosPatchBodyAction") {
4648 # type represents the patch type, only support ` + "`" + `JSON` + "`" + ` as [merge patch json](https://tools.ietf.org/html/rfc7396) currently.
4649 type: String!
4650
4651 # value is the patch contents.
4652 value: String!
4653 }
4654
4655 type HTTPChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.HTTPChaosStatus") {
4656 # conditions represents the current global condition of the chaos
4657 conditions: [ChaosCondition!]
4658
4659 # experiment records the last experiment state.
4660 experiment: ExperimentStatus
4661
4662 # instances always specifies podhttpchaos generation or empty
4663 instances: Map
4664 }
4665
4666 type ChaosCondition @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.ChaosCondition") {
4667 type: String!
4668 status: String!
4669 reason: String
4670 }
4671
4672 type ExperimentStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.ExperimentStatus") {
4673 desiredPhase: String!
4674
4675 # Records are used to track the running status
4676 Records: [Record!]
4677 }
4678
4679 type Record @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.Record") {
4680 id: String!
4681 selectorKey: String!
4682 phase: String!
4683 }
4684
4685 type PodNetworkChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodNetworkChaos") {
4686 kind: String!
4687 apiVersion: String!
4688 name: String!
4689 generateName: String!
4690 namespace: String!
4691 selfLink: String!
4692 uid: String!
4693 resourceVersion: String!
4694 generation: Int!
4695 creationTimestamp: Time!
4696 deletionTimestamp: Time
4697 deletionGracePeriodSeconds: Int
4698 labels: Map
4699 annotations: Map
4700 ownerReferences: [OwnerReference!]
4701 finalizers: [String!]
4702 clusterName: String!
4703
4704 spec: PodNetworkChaosSpec!
4705 status: PodNetworkChaosStatus!
4706
4707 pod: Pod! @goField(forceResolver: true)
4708 }
4709
4710 # PodNetworkChaosSpec defines the desired state of PodNetworkChaos
4711 type PodNetworkChaosSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodNetworkChaosSpec") {
4712 # The ipset on the pod
4713 ipSets: [RawIPSet!]
4714
4715 # The iptables rules on the pod
4716 iptables: [RawIptables!]
4717
4718 # The tc rules on the pod
4719 trafficControls: [RawTrafficControl!]
4720 }
4721
4722 # PodNetworkChaosStatus defines the observed state of PodNetworkChaos
4723 type PodNetworkChaosStatus @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.PodNetworkChaosStatus") {
4724 failedMessage: String!
4725 observedGeneration: Int!
4726 }
4727
4728 # RawIPSet represents an ipset on specific pod
4729 type RawIPSet @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RawIPSet") {
4730 # The name of ipset
4731 name: String!
4732
4733 # The contents of ipset
4734 cidrs: [String!]!
4735
4736 # The name and namespace of the source network chaos
4737 source: String!
4738 }
4739
4740 # RawIptables represents the iptables rules on specific pod
4741 type RawIptables @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RawIptables") {
4742 # The name of iptables chain
4743 name: String!
4744
4745 # The name of related ipset
4746 ipSets: [String!]!
4747
4748 # The block direction of this iptables rule
4749 direction: String!
4750
4751 # The name and namespace of the source network chaos
4752 source: String!
4753 }
4754
4755 # RawTrafficControl represents the traffic control chaos on specific pod
4756 type RawTrafficControl @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.RawTrafficControl") {
4757 # The type of traffic control
4758 type: String!
4759
4760 # delay represents the detail about delay action
4761 delay: DelaySpec
4762
4763 # loss represents the detail about loss action
4764 loss: LossSpec
4765
4766 # duplicateSpec represents the detail about loss action
4767 duplicate: DuplicateSpec
4768
4769 # corrupt represents the detail about corrupt action
4770 corrupt: CorruptSpec
4771
4772 # bandwidth represents the detail about bandwidth control action
4773 Bandwidth: BandwidthSpec
4774
4775 # The name of target ipset
4776 ipSet: String
4777
4778 # The name and namespace of the source network chaos
4779 source: String
4780 }
4781
4782 # DelaySpec defines detail of a delay action
4783 type DelaySpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.DelaySpec") {
4784 latency: String!
4785 correlation: String
4786 jitter: String
4787 reorder: ReorderSpec
4788 }
4789
4790 # LossSpec defines detail of a loss action
4791 type LossSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.LossSpec") {
4792 loss: String!
4793 correlation: String
4794 }
4795
4796 # DuplicateSpec defines detail of a duplicate action
4797 type DuplicateSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.DuplicateSpec") {
4798 duplicate: String!
4799 correlation: String
4800 }
4801
4802 # CorruptSpec defines detail of a corrupt action
4803 type CorruptSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.CorruptSpec") {
4804 corrup: String!
4805 correlation: String
4806 }
4807
4808 # BandwidthSpec defines detail of bandwidth limit.
4809 type BandwidthSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.BandwidthSpec") {
4810 # rate is the speed knob. Allows bps, kbps, mbps, gbps, tbps unit. bps means bytes per second.
4811 rate: String!
4812
4813 # limit is the number of bytes that can be queued waiting for tokens to become available.
4814 limit: Int!
4815
4816 # buffer is the maximum amount of bytes that tokens can be available for instantaneously.
4817 buffer: Int!
4818
4819 # peakrate is the maximum depletion rate of the bucket.
4820 # The peakrate does not need to be set, it is only necessary
4821 # if perfect millisecond timescale shaping is required.
4822 peakrate: Int
4823
4824 # minburst specifies the size of the peakrate bucket. For perfect
4825 # accuracy, should be set to the MTU of the interface. If a
4826 # peakrate is needed, but some burstiness is acceptable, this
4827 # size can be raised. A 3000 byte minburst allows around 3mbit/s
4828 # of peakrate, given 1000 byte packets.
4829 minburst: Int
4830 }
4831
4832 # ReorderSpec defines details of packet reorder.
4833 type ReorderSpec @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.ReorderSpec") {
4834 reorder: String!
4835 correlation: String
4836 gap: Int
4837 }
4838
4839 type NetworkChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.NetworkChaos") {
4840 kind: String!
4841 apiVersion: String!
4842 name: String!
4843 generateName: String!
4844 namespace: String!
4845 selfLink: String!
4846 uid: String!
4847 resourceVersion: String!
4848 generation: Int!
4849 creationTimestamp: Time!
4850 deletionTimestamp: Time
4851 deletionGracePeriodSeconds: Int
4852 labels: Map
4853 annotations: Map
4854 ownerReferences: [OwnerReference!]
4855 finalizers: [String!]
4856 clusterName: String!
4857
4858 podnetwork: [PodNetworkChaos!] @goField(forceResolver: true)
4859 }
4860
4861 type StressChaos @goModel(model: "github.com/chaos-mesh/chaos-mesh/api/v1alpha1.StressChaos") {
4862 kind: String!
4863 apiVersion: String!
4864 name: String!
4865 generateName: String!
4866 namespace: String!
4867 selfLink: String!
4868 uid: String!
4869 resourceVersion: String!
4870 generation: Int!
4871 creationTimestamp: Time!
4872 deletionTimestamp: Time
4873 deletionGracePeriodSeconds: Int
4874 labels: Map
4875 annotations: Map
4876 ownerReferences: [OwnerReference!]
4877 finalizers: [String!]
4878 clusterName: String!
4879 }
4880 `, BuiltIn: false},
4881 }
4882 var parsedSchema = gqlparser.MustLoadSchema(sources...)
4883
4884
4885
4886
4887
4888 func (ec *executionContext) field_Logger_component_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4889 var err error
4890 args := map[string]interface{}{}
4891 var arg0 string
4892 if tmp, ok := rawArgs["ns"]; ok {
4893 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
4894 arg0, err = ec.unmarshalNString2string(ctx, tmp)
4895 if err != nil {
4896 return nil, err
4897 }
4898 }
4899 args["ns"] = arg0
4900 var arg1 model.Component
4901 if tmp, ok := rawArgs["component"]; ok {
4902 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("component"))
4903 arg1, err = ec.unmarshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐComponent(ctx, tmp)
4904 if err != nil {
4905 return nil, err
4906 }
4907 }
4908 args["component"] = arg1
4909 return args, nil
4910 }
4911
4912 func (ec *executionContext) field_Logger_pod_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4913 var err error
4914 args := map[string]interface{}{}
4915 var arg0 string
4916 if tmp, ok := rawArgs["ns"]; ok {
4917 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
4918 arg0, err = ec.unmarshalNString2string(ctx, tmp)
4919 if err != nil {
4920 return nil, err
4921 }
4922 }
4923 args["ns"] = arg0
4924 var arg1 string
4925 if tmp, ok := rawArgs["name"]; ok {
4926 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
4927 arg1, err = ec.unmarshalNString2string(ctx, tmp)
4928 if err != nil {
4929 return nil, err
4930 }
4931 }
4932 args["name"] = arg1
4933 return args, nil
4934 }
4935
4936 func (ec *executionContext) field_Namespace_component_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4937 var err error
4938 args := map[string]interface{}{}
4939 var arg0 model.Component
4940 if tmp, ok := rawArgs["component"]; ok {
4941 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("component"))
4942 arg0, err = ec.unmarshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐComponent(ctx, tmp)
4943 if err != nil {
4944 return nil, err
4945 }
4946 }
4947 args["component"] = arg0
4948 return args, nil
4949 }
4950
4951 func (ec *executionContext) field_Namespace_httpchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4952 var err error
4953 args := map[string]interface{}{}
4954 var arg0 *string
4955 if tmp, ok := rawArgs["name"]; ok {
4956 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
4957 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
4958 if err != nil {
4959 return nil, err
4960 }
4961 }
4962 args["name"] = arg0
4963 return args, nil
4964 }
4965
4966 func (ec *executionContext) field_Namespace_iochaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4967 var err error
4968 args := map[string]interface{}{}
4969 var arg0 *string
4970 if tmp, ok := rawArgs["name"]; ok {
4971 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
4972 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
4973 if err != nil {
4974 return nil, err
4975 }
4976 }
4977 args["name"] = arg0
4978 return args, nil
4979 }
4980
4981 func (ec *executionContext) field_Namespace_networkchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4982 var err error
4983 args := map[string]interface{}{}
4984 var arg0 *string
4985 if tmp, ok := rawArgs["name"]; ok {
4986 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
4987 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
4988 if err != nil {
4989 return nil, err
4990 }
4991 }
4992 args["name"] = arg0
4993 return args, nil
4994 }
4995
4996 func (ec *executionContext) field_Namespace_pod_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
4997 var err error
4998 args := map[string]interface{}{}
4999 var arg0 *string
5000 if tmp, ok := rawArgs["name"]; ok {
5001 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5002 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5003 if err != nil {
5004 return nil, err
5005 }
5006 }
5007 args["name"] = arg0
5008 return args, nil
5009 }
5010
5011 func (ec *executionContext) field_Namespace_podhttpchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5012 var err error
5013 args := map[string]interface{}{}
5014 var arg0 *string
5015 if tmp, ok := rawArgs["name"]; ok {
5016 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5017 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5018 if err != nil {
5019 return nil, err
5020 }
5021 }
5022 args["name"] = arg0
5023 return args, nil
5024 }
5025
5026 func (ec *executionContext) field_Namespace_podiochaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5027 var err error
5028 args := map[string]interface{}{}
5029 var arg0 *string
5030 if tmp, ok := rawArgs["name"]; ok {
5031 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5032 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5033 if err != nil {
5034 return nil, err
5035 }
5036 }
5037 args["name"] = arg0
5038 return args, nil
5039 }
5040
5041 func (ec *executionContext) field_Namespace_podnetworkchaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5042 var err error
5043 args := map[string]interface{}{}
5044 var arg0 *string
5045 if tmp, ok := rawArgs["name"]; ok {
5046 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5047 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5048 if err != nil {
5049 return nil, err
5050 }
5051 }
5052 args["name"] = arg0
5053 return args, nil
5054 }
5055
5056 func (ec *executionContext) field_Namespace_stresschaos_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5057 var err error
5058 args := map[string]interface{}{}
5059 var arg0 *string
5060 if tmp, ok := rawArgs["name"]; ok {
5061 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5062 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5063 if err != nil {
5064 return nil, err
5065 }
5066 }
5067 args["name"] = arg0
5068 return args, nil
5069 }
5070
5071 func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5072 var err error
5073 args := map[string]interface{}{}
5074 var arg0 string
5075 if tmp, ok := rawArgs["name"]; ok {
5076 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("name"))
5077 arg0, err = ec.unmarshalNString2string(ctx, tmp)
5078 if err != nil {
5079 return nil, err
5080 }
5081 }
5082 args["name"] = arg0
5083 return args, nil
5084 }
5085
5086 func (ec *executionContext) field_Query_namespace_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5087 var err error
5088 args := map[string]interface{}{}
5089 var arg0 *string
5090 if tmp, ok := rawArgs["ns"]; ok {
5091 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ns"))
5092 arg0, err = ec.unmarshalOString2ᚖstring(ctx, tmp)
5093 if err != nil {
5094 return nil, err
5095 }
5096 }
5097 args["ns"] = arg0
5098 return args, nil
5099 }
5100
5101 func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5102 var err error
5103 args := map[string]interface{}{}
5104 var arg0 bool
5105 if tmp, ok := rawArgs["includeDeprecated"]; ok {
5106 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
5107 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
5108 if err != nil {
5109 return nil, err
5110 }
5111 }
5112 args["includeDeprecated"] = arg0
5113 return args, nil
5114 }
5115
5116 func (ec *executionContext) field___Type_fields_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) {
5117 var err error
5118 args := map[string]interface{}{}
5119 var arg0 bool
5120 if tmp, ok := rawArgs["includeDeprecated"]; ok {
5121 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("includeDeprecated"))
5122 arg0, err = ec.unmarshalOBoolean2bool(ctx, tmp)
5123 if err != nil {
5124 return nil, err
5125 }
5126 }
5127 args["includeDeprecated"] = arg0
5128 return args, nil
5129 }
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139 func (ec *executionContext) _AttrOverrideSpec_ino(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5140 defer func() {
5141 if r := recover(); r != nil {
5142 ec.Error(ctx, ec.Recover(ctx, r))
5143 ret = graphql.Null
5144 }
5145 }()
5146 fc := &graphql.FieldContext{
5147 Object: "AttrOverrideSpec",
5148 Field: field,
5149 Args: nil,
5150 IsMethod: true,
5151 IsResolver: true,
5152 }
5153
5154 ctx = graphql.WithFieldContext(ctx, fc)
5155 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5156 ctx = rctx
5157 return ec.resolvers.AttrOverrideSpec().Ino(rctx, obj)
5158 })
5159 if err != nil {
5160 ec.Error(ctx, err)
5161 return graphql.Null
5162 }
5163 if resTmp == nil {
5164 return graphql.Null
5165 }
5166 res := resTmp.(*int)
5167 fc.Result = res
5168 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5169 }
5170
5171 func (ec *executionContext) _AttrOverrideSpec_size(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5172 defer func() {
5173 if r := recover(); r != nil {
5174 ec.Error(ctx, ec.Recover(ctx, r))
5175 ret = graphql.Null
5176 }
5177 }()
5178 fc := &graphql.FieldContext{
5179 Object: "AttrOverrideSpec",
5180 Field: field,
5181 Args: nil,
5182 IsMethod: true,
5183 IsResolver: true,
5184 }
5185
5186 ctx = graphql.WithFieldContext(ctx, fc)
5187 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5188 ctx = rctx
5189 return ec.resolvers.AttrOverrideSpec().Size(rctx, obj)
5190 })
5191 if err != nil {
5192 ec.Error(ctx, err)
5193 return graphql.Null
5194 }
5195 if resTmp == nil {
5196 return graphql.Null
5197 }
5198 res := resTmp.(*int)
5199 fc.Result = res
5200 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5201 }
5202
5203 func (ec *executionContext) _AttrOverrideSpec_blocks(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5204 defer func() {
5205 if r := recover(); r != nil {
5206 ec.Error(ctx, ec.Recover(ctx, r))
5207 ret = graphql.Null
5208 }
5209 }()
5210 fc := &graphql.FieldContext{
5211 Object: "AttrOverrideSpec",
5212 Field: field,
5213 Args: nil,
5214 IsMethod: true,
5215 IsResolver: true,
5216 }
5217
5218 ctx = graphql.WithFieldContext(ctx, fc)
5219 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5220 ctx = rctx
5221 return ec.resolvers.AttrOverrideSpec().Blocks(rctx, obj)
5222 })
5223 if err != nil {
5224 ec.Error(ctx, err)
5225 return graphql.Null
5226 }
5227 if resTmp == nil {
5228 return graphql.Null
5229 }
5230 res := resTmp.(*int)
5231 fc.Result = res
5232 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5233 }
5234
5235 func (ec *executionContext) _AttrOverrideSpec_atime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5236 defer func() {
5237 if r := recover(); r != nil {
5238 ec.Error(ctx, ec.Recover(ctx, r))
5239 ret = graphql.Null
5240 }
5241 }()
5242 fc := &graphql.FieldContext{
5243 Object: "AttrOverrideSpec",
5244 Field: field,
5245 Args: nil,
5246 IsMethod: false,
5247 IsResolver: false,
5248 }
5249
5250 ctx = graphql.WithFieldContext(ctx, fc)
5251 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5252 ctx = rctx
5253 return obj.Atime, nil
5254 })
5255 if err != nil {
5256 ec.Error(ctx, err)
5257 return graphql.Null
5258 }
5259 if resTmp == nil {
5260 return graphql.Null
5261 }
5262 res := resTmp.(*v1alpha1.Timespec)
5263 fc.Result = res
5264 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
5265 }
5266
5267 func (ec *executionContext) _AttrOverrideSpec_mtime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5268 defer func() {
5269 if r := recover(); r != nil {
5270 ec.Error(ctx, ec.Recover(ctx, r))
5271 ret = graphql.Null
5272 }
5273 }()
5274 fc := &graphql.FieldContext{
5275 Object: "AttrOverrideSpec",
5276 Field: field,
5277 Args: nil,
5278 IsMethod: false,
5279 IsResolver: false,
5280 }
5281
5282 ctx = graphql.WithFieldContext(ctx, fc)
5283 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5284 ctx = rctx
5285 return obj.Mtime, nil
5286 })
5287 if err != nil {
5288 ec.Error(ctx, err)
5289 return graphql.Null
5290 }
5291 if resTmp == nil {
5292 return graphql.Null
5293 }
5294 res := resTmp.(*v1alpha1.Timespec)
5295 fc.Result = res
5296 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
5297 }
5298
5299 func (ec *executionContext) _AttrOverrideSpec_ctime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5300 defer func() {
5301 if r := recover(); r != nil {
5302 ec.Error(ctx, ec.Recover(ctx, r))
5303 ret = graphql.Null
5304 }
5305 }()
5306 fc := &graphql.FieldContext{
5307 Object: "AttrOverrideSpec",
5308 Field: field,
5309 Args: nil,
5310 IsMethod: false,
5311 IsResolver: false,
5312 }
5313
5314 ctx = graphql.WithFieldContext(ctx, fc)
5315 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5316 ctx = rctx
5317 return obj.Ctime, nil
5318 })
5319 if err != nil {
5320 ec.Error(ctx, err)
5321 return graphql.Null
5322 }
5323 if resTmp == nil {
5324 return graphql.Null
5325 }
5326 res := resTmp.(*v1alpha1.Timespec)
5327 fc.Result = res
5328 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
5329 }
5330
5331 func (ec *executionContext) _AttrOverrideSpec_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5332 defer func() {
5333 if r := recover(); r != nil {
5334 ec.Error(ctx, ec.Recover(ctx, r))
5335 ret = graphql.Null
5336 }
5337 }()
5338 fc := &graphql.FieldContext{
5339 Object: "AttrOverrideSpec",
5340 Field: field,
5341 Args: nil,
5342 IsMethod: true,
5343 IsResolver: true,
5344 }
5345
5346 ctx = graphql.WithFieldContext(ctx, fc)
5347 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5348 ctx = rctx
5349 return ec.resolvers.AttrOverrideSpec().Kind(rctx, obj)
5350 })
5351 if err != nil {
5352 ec.Error(ctx, err)
5353 return graphql.Null
5354 }
5355 if resTmp == nil {
5356 return graphql.Null
5357 }
5358 res := resTmp.(*string)
5359 fc.Result = res
5360 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
5361 }
5362
5363 func (ec *executionContext) _AttrOverrideSpec_perm(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5364 defer func() {
5365 if r := recover(); r != nil {
5366 ec.Error(ctx, ec.Recover(ctx, r))
5367 ret = graphql.Null
5368 }
5369 }()
5370 fc := &graphql.FieldContext{
5371 Object: "AttrOverrideSpec",
5372 Field: field,
5373 Args: nil,
5374 IsMethod: true,
5375 IsResolver: true,
5376 }
5377
5378 ctx = graphql.WithFieldContext(ctx, fc)
5379 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5380 ctx = rctx
5381 return ec.resolvers.AttrOverrideSpec().Perm(rctx, obj)
5382 })
5383 if err != nil {
5384 ec.Error(ctx, err)
5385 return graphql.Null
5386 }
5387 if resTmp == nil {
5388 return graphql.Null
5389 }
5390 res := resTmp.(*int)
5391 fc.Result = res
5392 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5393 }
5394
5395 func (ec *executionContext) _AttrOverrideSpec_nlink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5396 defer func() {
5397 if r := recover(); r != nil {
5398 ec.Error(ctx, ec.Recover(ctx, r))
5399 ret = graphql.Null
5400 }
5401 }()
5402 fc := &graphql.FieldContext{
5403 Object: "AttrOverrideSpec",
5404 Field: field,
5405 Args: nil,
5406 IsMethod: true,
5407 IsResolver: true,
5408 }
5409
5410 ctx = graphql.WithFieldContext(ctx, fc)
5411 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5412 ctx = rctx
5413 return ec.resolvers.AttrOverrideSpec().Nlink(rctx, obj)
5414 })
5415 if err != nil {
5416 ec.Error(ctx, err)
5417 return graphql.Null
5418 }
5419 if resTmp == nil {
5420 return graphql.Null
5421 }
5422 res := resTmp.(*int)
5423 fc.Result = res
5424 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5425 }
5426
5427 func (ec *executionContext) _AttrOverrideSpec_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5428 defer func() {
5429 if r := recover(); r != nil {
5430 ec.Error(ctx, ec.Recover(ctx, r))
5431 ret = graphql.Null
5432 }
5433 }()
5434 fc := &graphql.FieldContext{
5435 Object: "AttrOverrideSpec",
5436 Field: field,
5437 Args: nil,
5438 IsMethod: true,
5439 IsResolver: true,
5440 }
5441
5442 ctx = graphql.WithFieldContext(ctx, fc)
5443 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5444 ctx = rctx
5445 return ec.resolvers.AttrOverrideSpec().UID(rctx, obj)
5446 })
5447 if err != nil {
5448 ec.Error(ctx, err)
5449 return graphql.Null
5450 }
5451 if resTmp == nil {
5452 return graphql.Null
5453 }
5454 res := resTmp.(*int)
5455 fc.Result = res
5456 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5457 }
5458
5459 func (ec *executionContext) _AttrOverrideSpec_gid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5460 defer func() {
5461 if r := recover(); r != nil {
5462 ec.Error(ctx, ec.Recover(ctx, r))
5463 ret = graphql.Null
5464 }
5465 }()
5466 fc := &graphql.FieldContext{
5467 Object: "AttrOverrideSpec",
5468 Field: field,
5469 Args: nil,
5470 IsMethod: true,
5471 IsResolver: true,
5472 }
5473
5474 ctx = graphql.WithFieldContext(ctx, fc)
5475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5476 ctx = rctx
5477 return ec.resolvers.AttrOverrideSpec().Gid(rctx, obj)
5478 })
5479 if err != nil {
5480 ec.Error(ctx, err)
5481 return graphql.Null
5482 }
5483 if resTmp == nil {
5484 return graphql.Null
5485 }
5486 res := resTmp.(*int)
5487 fc.Result = res
5488 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5489 }
5490
5491 func (ec *executionContext) _AttrOverrideSpec_rdev(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.AttrOverrideSpec) (ret graphql.Marshaler) {
5492 defer func() {
5493 if r := recover(); r != nil {
5494 ec.Error(ctx, ec.Recover(ctx, r))
5495 ret = graphql.Null
5496 }
5497 }()
5498 fc := &graphql.FieldContext{
5499 Object: "AttrOverrideSpec",
5500 Field: field,
5501 Args: nil,
5502 IsMethod: true,
5503 IsResolver: true,
5504 }
5505
5506 ctx = graphql.WithFieldContext(ctx, fc)
5507 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5508 ctx = rctx
5509 return ec.resolvers.AttrOverrideSpec().Rdev(rctx, obj)
5510 })
5511 if err != nil {
5512 ec.Error(ctx, err)
5513 return graphql.Null
5514 }
5515 if resTmp == nil {
5516 return graphql.Null
5517 }
5518 res := resTmp.(*int)
5519 fc.Result = res
5520 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5521 }
5522
5523 func (ec *executionContext) _BandwidthSpec_rate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
5524 defer func() {
5525 if r := recover(); r != nil {
5526 ec.Error(ctx, ec.Recover(ctx, r))
5527 ret = graphql.Null
5528 }
5529 }()
5530 fc := &graphql.FieldContext{
5531 Object: "BandwidthSpec",
5532 Field: field,
5533 Args: nil,
5534 IsMethod: false,
5535 IsResolver: false,
5536 }
5537
5538 ctx = graphql.WithFieldContext(ctx, fc)
5539 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5540 ctx = rctx
5541 return obj.Rate, nil
5542 })
5543 if err != nil {
5544 ec.Error(ctx, err)
5545 return graphql.Null
5546 }
5547 if resTmp == nil {
5548 if !graphql.HasFieldError(ctx, fc) {
5549 ec.Errorf(ctx, "must not be null")
5550 }
5551 return graphql.Null
5552 }
5553 res := resTmp.(string)
5554 fc.Result = res
5555 return ec.marshalNString2string(ctx, field.Selections, res)
5556 }
5557
5558 func (ec *executionContext) _BandwidthSpec_limit(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
5559 defer func() {
5560 if r := recover(); r != nil {
5561 ec.Error(ctx, ec.Recover(ctx, r))
5562 ret = graphql.Null
5563 }
5564 }()
5565 fc := &graphql.FieldContext{
5566 Object: "BandwidthSpec",
5567 Field: field,
5568 Args: nil,
5569 IsMethod: true,
5570 IsResolver: true,
5571 }
5572
5573 ctx = graphql.WithFieldContext(ctx, fc)
5574 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5575 ctx = rctx
5576 return ec.resolvers.BandwidthSpec().Limit(rctx, obj)
5577 })
5578 if err != nil {
5579 ec.Error(ctx, err)
5580 return graphql.Null
5581 }
5582 if resTmp == nil {
5583 if !graphql.HasFieldError(ctx, fc) {
5584 ec.Errorf(ctx, "must not be null")
5585 }
5586 return graphql.Null
5587 }
5588 res := resTmp.(int)
5589 fc.Result = res
5590 return ec.marshalNInt2int(ctx, field.Selections, res)
5591 }
5592
5593 func (ec *executionContext) _BandwidthSpec_buffer(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
5594 defer func() {
5595 if r := recover(); r != nil {
5596 ec.Error(ctx, ec.Recover(ctx, r))
5597 ret = graphql.Null
5598 }
5599 }()
5600 fc := &graphql.FieldContext{
5601 Object: "BandwidthSpec",
5602 Field: field,
5603 Args: nil,
5604 IsMethod: true,
5605 IsResolver: true,
5606 }
5607
5608 ctx = graphql.WithFieldContext(ctx, fc)
5609 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5610 ctx = rctx
5611 return ec.resolvers.BandwidthSpec().Buffer(rctx, obj)
5612 })
5613 if err != nil {
5614 ec.Error(ctx, err)
5615 return graphql.Null
5616 }
5617 if resTmp == nil {
5618 if !graphql.HasFieldError(ctx, fc) {
5619 ec.Errorf(ctx, "must not be null")
5620 }
5621 return graphql.Null
5622 }
5623 res := resTmp.(int)
5624 fc.Result = res
5625 return ec.marshalNInt2int(ctx, field.Selections, res)
5626 }
5627
5628 func (ec *executionContext) _BandwidthSpec_peakrate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
5629 defer func() {
5630 if r := recover(); r != nil {
5631 ec.Error(ctx, ec.Recover(ctx, r))
5632 ret = graphql.Null
5633 }
5634 }()
5635 fc := &graphql.FieldContext{
5636 Object: "BandwidthSpec",
5637 Field: field,
5638 Args: nil,
5639 IsMethod: true,
5640 IsResolver: true,
5641 }
5642
5643 ctx = graphql.WithFieldContext(ctx, fc)
5644 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5645 ctx = rctx
5646 return ec.resolvers.BandwidthSpec().Peakrate(rctx, obj)
5647 })
5648 if err != nil {
5649 ec.Error(ctx, err)
5650 return graphql.Null
5651 }
5652 if resTmp == nil {
5653 return graphql.Null
5654 }
5655 res := resTmp.(*int)
5656 fc.Result = res
5657 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5658 }
5659
5660 func (ec *executionContext) _BandwidthSpec_minburst(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.BandwidthSpec) (ret graphql.Marshaler) {
5661 defer func() {
5662 if r := recover(); r != nil {
5663 ec.Error(ctx, ec.Recover(ctx, r))
5664 ret = graphql.Null
5665 }
5666 }()
5667 fc := &graphql.FieldContext{
5668 Object: "BandwidthSpec",
5669 Field: field,
5670 Args: nil,
5671 IsMethod: true,
5672 IsResolver: true,
5673 }
5674
5675 ctx = graphql.WithFieldContext(ctx, fc)
5676 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5677 ctx = rctx
5678 return ec.resolvers.BandwidthSpec().Minburst(rctx, obj)
5679 })
5680 if err != nil {
5681 ec.Error(ctx, err)
5682 return graphql.Null
5683 }
5684 if resTmp == nil {
5685 return graphql.Null
5686 }
5687 res := resTmp.(*int)
5688 fc.Result = res
5689 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
5690 }
5691
5692 func (ec *executionContext) _ChaosCondition_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ChaosCondition) (ret graphql.Marshaler) {
5693 defer func() {
5694 if r := recover(); r != nil {
5695 ec.Error(ctx, ec.Recover(ctx, r))
5696 ret = graphql.Null
5697 }
5698 }()
5699 fc := &graphql.FieldContext{
5700 Object: "ChaosCondition",
5701 Field: field,
5702 Args: nil,
5703 IsMethod: true,
5704 IsResolver: true,
5705 }
5706
5707 ctx = graphql.WithFieldContext(ctx, fc)
5708 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5709 ctx = rctx
5710 return ec.resolvers.ChaosCondition().Type(rctx, obj)
5711 })
5712 if err != nil {
5713 ec.Error(ctx, err)
5714 return graphql.Null
5715 }
5716 if resTmp == nil {
5717 if !graphql.HasFieldError(ctx, fc) {
5718 ec.Errorf(ctx, "must not be null")
5719 }
5720 return graphql.Null
5721 }
5722 res := resTmp.(string)
5723 fc.Result = res
5724 return ec.marshalNString2string(ctx, field.Selections, res)
5725 }
5726
5727 func (ec *executionContext) _ChaosCondition_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ChaosCondition) (ret graphql.Marshaler) {
5728 defer func() {
5729 if r := recover(); r != nil {
5730 ec.Error(ctx, ec.Recover(ctx, r))
5731 ret = graphql.Null
5732 }
5733 }()
5734 fc := &graphql.FieldContext{
5735 Object: "ChaosCondition",
5736 Field: field,
5737 Args: nil,
5738 IsMethod: true,
5739 IsResolver: true,
5740 }
5741
5742 ctx = graphql.WithFieldContext(ctx, fc)
5743 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5744 ctx = rctx
5745 return ec.resolvers.ChaosCondition().Status(rctx, obj)
5746 })
5747 if err != nil {
5748 ec.Error(ctx, err)
5749 return graphql.Null
5750 }
5751 if resTmp == nil {
5752 if !graphql.HasFieldError(ctx, fc) {
5753 ec.Errorf(ctx, "must not be null")
5754 }
5755 return graphql.Null
5756 }
5757 res := resTmp.(string)
5758 fc.Result = res
5759 return ec.marshalNString2string(ctx, field.Selections, res)
5760 }
5761
5762 func (ec *executionContext) _ChaosCondition_reason(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ChaosCondition) (ret graphql.Marshaler) {
5763 defer func() {
5764 if r := recover(); r != nil {
5765 ec.Error(ctx, ec.Recover(ctx, r))
5766 ret = graphql.Null
5767 }
5768 }()
5769 fc := &graphql.FieldContext{
5770 Object: "ChaosCondition",
5771 Field: field,
5772 Args: nil,
5773 IsMethod: false,
5774 IsResolver: false,
5775 }
5776
5777 ctx = graphql.WithFieldContext(ctx, fc)
5778 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5779 ctx = rctx
5780 return obj.Reason, nil
5781 })
5782 if err != nil {
5783 ec.Error(ctx, err)
5784 return graphql.Null
5785 }
5786 if resTmp == nil {
5787 return graphql.Null
5788 }
5789 res := resTmp.(string)
5790 fc.Result = res
5791 return ec.marshalOString2string(ctx, field.Selections, res)
5792 }
5793
5794 func (ec *executionContext) _ContainerState_waiting(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerState) (ret graphql.Marshaler) {
5795 defer func() {
5796 if r := recover(); r != nil {
5797 ec.Error(ctx, ec.Recover(ctx, r))
5798 ret = graphql.Null
5799 }
5800 }()
5801 fc := &graphql.FieldContext{
5802 Object: "ContainerState",
5803 Field: field,
5804 Args: nil,
5805 IsMethod: false,
5806 IsResolver: false,
5807 }
5808
5809 ctx = graphql.WithFieldContext(ctx, fc)
5810 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5811 ctx = rctx
5812 return obj.Waiting, nil
5813 })
5814 if err != nil {
5815 ec.Error(ctx, err)
5816 return graphql.Null
5817 }
5818 if resTmp == nil {
5819 return graphql.Null
5820 }
5821 res := resTmp.(*v1.ContainerStateWaiting)
5822 fc.Result = res
5823 return ec.marshalOContainerStateWaiting2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateWaiting(ctx, field.Selections, res)
5824 }
5825
5826 func (ec *executionContext) _ContainerState_running(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerState) (ret graphql.Marshaler) {
5827 defer func() {
5828 if r := recover(); r != nil {
5829 ec.Error(ctx, ec.Recover(ctx, r))
5830 ret = graphql.Null
5831 }
5832 }()
5833 fc := &graphql.FieldContext{
5834 Object: "ContainerState",
5835 Field: field,
5836 Args: nil,
5837 IsMethod: false,
5838 IsResolver: false,
5839 }
5840
5841 ctx = graphql.WithFieldContext(ctx, fc)
5842 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5843 ctx = rctx
5844 return obj.Running, nil
5845 })
5846 if err != nil {
5847 ec.Error(ctx, err)
5848 return graphql.Null
5849 }
5850 if resTmp == nil {
5851 return graphql.Null
5852 }
5853 res := resTmp.(*v1.ContainerStateRunning)
5854 fc.Result = res
5855 return ec.marshalOContainerStateRunning2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateRunning(ctx, field.Selections, res)
5856 }
5857
5858 func (ec *executionContext) _ContainerState_terminated(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerState) (ret graphql.Marshaler) {
5859 defer func() {
5860 if r := recover(); r != nil {
5861 ec.Error(ctx, ec.Recover(ctx, r))
5862 ret = graphql.Null
5863 }
5864 }()
5865 fc := &graphql.FieldContext{
5866 Object: "ContainerState",
5867 Field: field,
5868 Args: nil,
5869 IsMethod: false,
5870 IsResolver: false,
5871 }
5872
5873 ctx = graphql.WithFieldContext(ctx, fc)
5874 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5875 ctx = rctx
5876 return obj.Terminated, nil
5877 })
5878 if err != nil {
5879 ec.Error(ctx, err)
5880 return graphql.Null
5881 }
5882 if resTmp == nil {
5883 return graphql.Null
5884 }
5885 res := resTmp.(*v1.ContainerStateTerminated)
5886 fc.Result = res
5887 return ec.marshalOContainerStateTerminated2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateTerminated(ctx, field.Selections, res)
5888 }
5889
5890 func (ec *executionContext) _ContainerStateRunning_startedAt(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateRunning) (ret graphql.Marshaler) {
5891 defer func() {
5892 if r := recover(); r != nil {
5893 ec.Error(ctx, ec.Recover(ctx, r))
5894 ret = graphql.Null
5895 }
5896 }()
5897 fc := &graphql.FieldContext{
5898 Object: "ContainerStateRunning",
5899 Field: field,
5900 Args: nil,
5901 IsMethod: true,
5902 IsResolver: true,
5903 }
5904
5905 ctx = graphql.WithFieldContext(ctx, fc)
5906 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5907 ctx = rctx
5908 return ec.resolvers.ContainerStateRunning().StartedAt(rctx, obj)
5909 })
5910 if err != nil {
5911 ec.Error(ctx, err)
5912 return graphql.Null
5913 }
5914 if resTmp == nil {
5915 return graphql.Null
5916 }
5917 res := resTmp.(*time.Time)
5918 fc.Result = res
5919 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
5920 }
5921
5922 func (ec *executionContext) _ContainerStateTerminated_exitCode(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
5923 defer func() {
5924 if r := recover(); r != nil {
5925 ec.Error(ctx, ec.Recover(ctx, r))
5926 ret = graphql.Null
5927 }
5928 }()
5929 fc := &graphql.FieldContext{
5930 Object: "ContainerStateTerminated",
5931 Field: field,
5932 Args: nil,
5933 IsMethod: false,
5934 IsResolver: false,
5935 }
5936
5937 ctx = graphql.WithFieldContext(ctx, fc)
5938 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5939 ctx = rctx
5940 return obj.ExitCode, nil
5941 })
5942 if err != nil {
5943 ec.Error(ctx, err)
5944 return graphql.Null
5945 }
5946 if resTmp == nil {
5947 if !graphql.HasFieldError(ctx, fc) {
5948 ec.Errorf(ctx, "must not be null")
5949 }
5950 return graphql.Null
5951 }
5952 res := resTmp.(int32)
5953 fc.Result = res
5954 return ec.marshalNInt2int32(ctx, field.Selections, res)
5955 }
5956
5957 func (ec *executionContext) _ContainerStateTerminated_signal(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
5958 defer func() {
5959 if r := recover(); r != nil {
5960 ec.Error(ctx, ec.Recover(ctx, r))
5961 ret = graphql.Null
5962 }
5963 }()
5964 fc := &graphql.FieldContext{
5965 Object: "ContainerStateTerminated",
5966 Field: field,
5967 Args: nil,
5968 IsMethod: false,
5969 IsResolver: false,
5970 }
5971
5972 ctx = graphql.WithFieldContext(ctx, fc)
5973 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
5974 ctx = rctx
5975 return obj.Signal, nil
5976 })
5977 if err != nil {
5978 ec.Error(ctx, err)
5979 return graphql.Null
5980 }
5981 if resTmp == nil {
5982 return graphql.Null
5983 }
5984 res := resTmp.(int32)
5985 fc.Result = res
5986 return ec.marshalOInt2int32(ctx, field.Selections, res)
5987 }
5988
5989 func (ec *executionContext) _ContainerStateTerminated_reason(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
5990 defer func() {
5991 if r := recover(); r != nil {
5992 ec.Error(ctx, ec.Recover(ctx, r))
5993 ret = graphql.Null
5994 }
5995 }()
5996 fc := &graphql.FieldContext{
5997 Object: "ContainerStateTerminated",
5998 Field: field,
5999 Args: nil,
6000 IsMethod: false,
6001 IsResolver: false,
6002 }
6003
6004 ctx = graphql.WithFieldContext(ctx, fc)
6005 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6006 ctx = rctx
6007 return obj.Reason, nil
6008 })
6009 if err != nil {
6010 ec.Error(ctx, err)
6011 return graphql.Null
6012 }
6013 if resTmp == nil {
6014 return graphql.Null
6015 }
6016 res := resTmp.(string)
6017 fc.Result = res
6018 return ec.marshalOString2string(ctx, field.Selections, res)
6019 }
6020
6021 func (ec *executionContext) _ContainerStateTerminated_message(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
6022 defer func() {
6023 if r := recover(); r != nil {
6024 ec.Error(ctx, ec.Recover(ctx, r))
6025 ret = graphql.Null
6026 }
6027 }()
6028 fc := &graphql.FieldContext{
6029 Object: "ContainerStateTerminated",
6030 Field: field,
6031 Args: nil,
6032 IsMethod: false,
6033 IsResolver: false,
6034 }
6035
6036 ctx = graphql.WithFieldContext(ctx, fc)
6037 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6038 ctx = rctx
6039 return obj.Message, nil
6040 })
6041 if err != nil {
6042 ec.Error(ctx, err)
6043 return graphql.Null
6044 }
6045 if resTmp == nil {
6046 return graphql.Null
6047 }
6048 res := resTmp.(string)
6049 fc.Result = res
6050 return ec.marshalOString2string(ctx, field.Selections, res)
6051 }
6052
6053 func (ec *executionContext) _ContainerStateTerminated_startedAt(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
6054 defer func() {
6055 if r := recover(); r != nil {
6056 ec.Error(ctx, ec.Recover(ctx, r))
6057 ret = graphql.Null
6058 }
6059 }()
6060 fc := &graphql.FieldContext{
6061 Object: "ContainerStateTerminated",
6062 Field: field,
6063 Args: nil,
6064 IsMethod: true,
6065 IsResolver: true,
6066 }
6067
6068 ctx = graphql.WithFieldContext(ctx, fc)
6069 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6070 ctx = rctx
6071 return ec.resolvers.ContainerStateTerminated().StartedAt(rctx, obj)
6072 })
6073 if err != nil {
6074 ec.Error(ctx, err)
6075 return graphql.Null
6076 }
6077 if resTmp == nil {
6078 return graphql.Null
6079 }
6080 res := resTmp.(*time.Time)
6081 fc.Result = res
6082 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
6083 }
6084
6085 func (ec *executionContext) _ContainerStateTerminated_finishedAt(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
6086 defer func() {
6087 if r := recover(); r != nil {
6088 ec.Error(ctx, ec.Recover(ctx, r))
6089 ret = graphql.Null
6090 }
6091 }()
6092 fc := &graphql.FieldContext{
6093 Object: "ContainerStateTerminated",
6094 Field: field,
6095 Args: nil,
6096 IsMethod: true,
6097 IsResolver: true,
6098 }
6099
6100 ctx = graphql.WithFieldContext(ctx, fc)
6101 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6102 ctx = rctx
6103 return ec.resolvers.ContainerStateTerminated().FinishedAt(rctx, obj)
6104 })
6105 if err != nil {
6106 ec.Error(ctx, err)
6107 return graphql.Null
6108 }
6109 if resTmp == nil {
6110 return graphql.Null
6111 }
6112 res := resTmp.(*time.Time)
6113 fc.Result = res
6114 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
6115 }
6116
6117 func (ec *executionContext) _ContainerStateTerminated_containerID(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateTerminated) (ret graphql.Marshaler) {
6118 defer func() {
6119 if r := recover(); r != nil {
6120 ec.Error(ctx, ec.Recover(ctx, r))
6121 ret = graphql.Null
6122 }
6123 }()
6124 fc := &graphql.FieldContext{
6125 Object: "ContainerStateTerminated",
6126 Field: field,
6127 Args: nil,
6128 IsMethod: false,
6129 IsResolver: false,
6130 }
6131
6132 ctx = graphql.WithFieldContext(ctx, fc)
6133 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6134 ctx = rctx
6135 return obj.ContainerID, nil
6136 })
6137 if err != nil {
6138 ec.Error(ctx, err)
6139 return graphql.Null
6140 }
6141 if resTmp == nil {
6142 return graphql.Null
6143 }
6144 res := resTmp.(string)
6145 fc.Result = res
6146 return ec.marshalOString2string(ctx, field.Selections, res)
6147 }
6148
6149 func (ec *executionContext) _ContainerStateWaiting_reason(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateWaiting) (ret graphql.Marshaler) {
6150 defer func() {
6151 if r := recover(); r != nil {
6152 ec.Error(ctx, ec.Recover(ctx, r))
6153 ret = graphql.Null
6154 }
6155 }()
6156 fc := &graphql.FieldContext{
6157 Object: "ContainerStateWaiting",
6158 Field: field,
6159 Args: nil,
6160 IsMethod: false,
6161 IsResolver: false,
6162 }
6163
6164 ctx = graphql.WithFieldContext(ctx, fc)
6165 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6166 ctx = rctx
6167 return obj.Reason, nil
6168 })
6169 if err != nil {
6170 ec.Error(ctx, err)
6171 return graphql.Null
6172 }
6173 if resTmp == nil {
6174 return graphql.Null
6175 }
6176 res := resTmp.(string)
6177 fc.Result = res
6178 return ec.marshalOString2string(ctx, field.Selections, res)
6179 }
6180
6181 func (ec *executionContext) _ContainerStateWaiting_message(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStateWaiting) (ret graphql.Marshaler) {
6182 defer func() {
6183 if r := recover(); r != nil {
6184 ec.Error(ctx, ec.Recover(ctx, r))
6185 ret = graphql.Null
6186 }
6187 }()
6188 fc := &graphql.FieldContext{
6189 Object: "ContainerStateWaiting",
6190 Field: field,
6191 Args: nil,
6192 IsMethod: false,
6193 IsResolver: false,
6194 }
6195
6196 ctx = graphql.WithFieldContext(ctx, fc)
6197 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6198 ctx = rctx
6199 return obj.Message, nil
6200 })
6201 if err != nil {
6202 ec.Error(ctx, err)
6203 return graphql.Null
6204 }
6205 if resTmp == nil {
6206 return graphql.Null
6207 }
6208 res := resTmp.(string)
6209 fc.Result = res
6210 return ec.marshalOString2string(ctx, field.Selections, res)
6211 }
6212
6213 func (ec *executionContext) _ContainerStatus_name(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6214 defer func() {
6215 if r := recover(); r != nil {
6216 ec.Error(ctx, ec.Recover(ctx, r))
6217 ret = graphql.Null
6218 }
6219 }()
6220 fc := &graphql.FieldContext{
6221 Object: "ContainerStatus",
6222 Field: field,
6223 Args: nil,
6224 IsMethod: false,
6225 IsResolver: false,
6226 }
6227
6228 ctx = graphql.WithFieldContext(ctx, fc)
6229 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6230 ctx = rctx
6231 return obj.Name, nil
6232 })
6233 if err != nil {
6234 ec.Error(ctx, err)
6235 return graphql.Null
6236 }
6237 if resTmp == nil {
6238 if !graphql.HasFieldError(ctx, fc) {
6239 ec.Errorf(ctx, "must not be null")
6240 }
6241 return graphql.Null
6242 }
6243 res := resTmp.(string)
6244 fc.Result = res
6245 return ec.marshalNString2string(ctx, field.Selections, res)
6246 }
6247
6248 func (ec *executionContext) _ContainerStatus_State(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6249 defer func() {
6250 if r := recover(); r != nil {
6251 ec.Error(ctx, ec.Recover(ctx, r))
6252 ret = graphql.Null
6253 }
6254 }()
6255 fc := &graphql.FieldContext{
6256 Object: "ContainerStatus",
6257 Field: field,
6258 Args: nil,
6259 IsMethod: false,
6260 IsResolver: false,
6261 }
6262
6263 ctx = graphql.WithFieldContext(ctx, fc)
6264 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6265 ctx = rctx
6266 return obj.State, nil
6267 })
6268 if err != nil {
6269 ec.Error(ctx, err)
6270 return graphql.Null
6271 }
6272 if resTmp == nil {
6273 return graphql.Null
6274 }
6275 res := resTmp.(v1.ContainerState)
6276 fc.Result = res
6277 return ec.marshalOContainerState2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerState(ctx, field.Selections, res)
6278 }
6279
6280 func (ec *executionContext) _ContainerStatus_lastTerminationState(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6281 defer func() {
6282 if r := recover(); r != nil {
6283 ec.Error(ctx, ec.Recover(ctx, r))
6284 ret = graphql.Null
6285 }
6286 }()
6287 fc := &graphql.FieldContext{
6288 Object: "ContainerStatus",
6289 Field: field,
6290 Args: nil,
6291 IsMethod: false,
6292 IsResolver: false,
6293 }
6294
6295 ctx = graphql.WithFieldContext(ctx, fc)
6296 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6297 ctx = rctx
6298 return obj.LastTerminationState, nil
6299 })
6300 if err != nil {
6301 ec.Error(ctx, err)
6302 return graphql.Null
6303 }
6304 if resTmp == nil {
6305 return graphql.Null
6306 }
6307 res := resTmp.(v1.ContainerState)
6308 fc.Result = res
6309 return ec.marshalOContainerState2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerState(ctx, field.Selections, res)
6310 }
6311
6312 func (ec *executionContext) _ContainerStatus_ready(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6313 defer func() {
6314 if r := recover(); r != nil {
6315 ec.Error(ctx, ec.Recover(ctx, r))
6316 ret = graphql.Null
6317 }
6318 }()
6319 fc := &graphql.FieldContext{
6320 Object: "ContainerStatus",
6321 Field: field,
6322 Args: nil,
6323 IsMethod: false,
6324 IsResolver: false,
6325 }
6326
6327 ctx = graphql.WithFieldContext(ctx, fc)
6328 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6329 ctx = rctx
6330 return obj.Ready, nil
6331 })
6332 if err != nil {
6333 ec.Error(ctx, err)
6334 return graphql.Null
6335 }
6336 if resTmp == nil {
6337 if !graphql.HasFieldError(ctx, fc) {
6338 ec.Errorf(ctx, "must not be null")
6339 }
6340 return graphql.Null
6341 }
6342 res := resTmp.(bool)
6343 fc.Result = res
6344 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
6345 }
6346
6347 func (ec *executionContext) _ContainerStatus_restartCount(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6348 defer func() {
6349 if r := recover(); r != nil {
6350 ec.Error(ctx, ec.Recover(ctx, r))
6351 ret = graphql.Null
6352 }
6353 }()
6354 fc := &graphql.FieldContext{
6355 Object: "ContainerStatus",
6356 Field: field,
6357 Args: nil,
6358 IsMethod: false,
6359 IsResolver: false,
6360 }
6361
6362 ctx = graphql.WithFieldContext(ctx, fc)
6363 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6364 ctx = rctx
6365 return obj.RestartCount, nil
6366 })
6367 if err != nil {
6368 ec.Error(ctx, err)
6369 return graphql.Null
6370 }
6371 if resTmp == nil {
6372 if !graphql.HasFieldError(ctx, fc) {
6373 ec.Errorf(ctx, "must not be null")
6374 }
6375 return graphql.Null
6376 }
6377 res := resTmp.(int32)
6378 fc.Result = res
6379 return ec.marshalNInt2int32(ctx, field.Selections, res)
6380 }
6381
6382 func (ec *executionContext) _ContainerStatus_image(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6383 defer func() {
6384 if r := recover(); r != nil {
6385 ec.Error(ctx, ec.Recover(ctx, r))
6386 ret = graphql.Null
6387 }
6388 }()
6389 fc := &graphql.FieldContext{
6390 Object: "ContainerStatus",
6391 Field: field,
6392 Args: nil,
6393 IsMethod: false,
6394 IsResolver: false,
6395 }
6396
6397 ctx = graphql.WithFieldContext(ctx, fc)
6398 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6399 ctx = rctx
6400 return obj.Image, nil
6401 })
6402 if err != nil {
6403 ec.Error(ctx, err)
6404 return graphql.Null
6405 }
6406 if resTmp == nil {
6407 if !graphql.HasFieldError(ctx, fc) {
6408 ec.Errorf(ctx, "must not be null")
6409 }
6410 return graphql.Null
6411 }
6412 res := resTmp.(string)
6413 fc.Result = res
6414 return ec.marshalNString2string(ctx, field.Selections, res)
6415 }
6416
6417 func (ec *executionContext) _ContainerStatus_imageID(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6418 defer func() {
6419 if r := recover(); r != nil {
6420 ec.Error(ctx, ec.Recover(ctx, r))
6421 ret = graphql.Null
6422 }
6423 }()
6424 fc := &graphql.FieldContext{
6425 Object: "ContainerStatus",
6426 Field: field,
6427 Args: nil,
6428 IsMethod: false,
6429 IsResolver: false,
6430 }
6431
6432 ctx = graphql.WithFieldContext(ctx, fc)
6433 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6434 ctx = rctx
6435 return obj.ImageID, nil
6436 })
6437 if err != nil {
6438 ec.Error(ctx, err)
6439 return graphql.Null
6440 }
6441 if resTmp == nil {
6442 if !graphql.HasFieldError(ctx, fc) {
6443 ec.Errorf(ctx, "must not be null")
6444 }
6445 return graphql.Null
6446 }
6447 res := resTmp.(string)
6448 fc.Result = res
6449 return ec.marshalNString2string(ctx, field.Selections, res)
6450 }
6451
6452 func (ec *executionContext) _ContainerStatus_containerID(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6453 defer func() {
6454 if r := recover(); r != nil {
6455 ec.Error(ctx, ec.Recover(ctx, r))
6456 ret = graphql.Null
6457 }
6458 }()
6459 fc := &graphql.FieldContext{
6460 Object: "ContainerStatus",
6461 Field: field,
6462 Args: nil,
6463 IsMethod: false,
6464 IsResolver: false,
6465 }
6466
6467 ctx = graphql.WithFieldContext(ctx, fc)
6468 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6469 ctx = rctx
6470 return obj.ContainerID, nil
6471 })
6472 if err != nil {
6473 ec.Error(ctx, err)
6474 return graphql.Null
6475 }
6476 if resTmp == nil {
6477 if !graphql.HasFieldError(ctx, fc) {
6478 ec.Errorf(ctx, "must not be null")
6479 }
6480 return graphql.Null
6481 }
6482 res := resTmp.(string)
6483 fc.Result = res
6484 return ec.marshalNString2string(ctx, field.Selections, res)
6485 }
6486
6487 func (ec *executionContext) _ContainerStatus_started(ctx context.Context, field graphql.CollectedField, obj *v1.ContainerStatus) (ret graphql.Marshaler) {
6488 defer func() {
6489 if r := recover(); r != nil {
6490 ec.Error(ctx, ec.Recover(ctx, r))
6491 ret = graphql.Null
6492 }
6493 }()
6494 fc := &graphql.FieldContext{
6495 Object: "ContainerStatus",
6496 Field: field,
6497 Args: nil,
6498 IsMethod: false,
6499 IsResolver: false,
6500 }
6501
6502 ctx = graphql.WithFieldContext(ctx, fc)
6503 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6504 ctx = rctx
6505 return obj.Started, nil
6506 })
6507 if err != nil {
6508 ec.Error(ctx, err)
6509 return graphql.Null
6510 }
6511 if resTmp == nil {
6512 return graphql.Null
6513 }
6514 res := resTmp.(*bool)
6515 fc.Result = res
6516 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
6517 }
6518
6519 func (ec *executionContext) _CorruptSpec_corrup(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CorruptSpec) (ret graphql.Marshaler) {
6520 defer func() {
6521 if r := recover(); r != nil {
6522 ec.Error(ctx, ec.Recover(ctx, r))
6523 ret = graphql.Null
6524 }
6525 }()
6526 fc := &graphql.FieldContext{
6527 Object: "CorruptSpec",
6528 Field: field,
6529 Args: nil,
6530 IsMethod: true,
6531 IsResolver: true,
6532 }
6533
6534 ctx = graphql.WithFieldContext(ctx, fc)
6535 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6536 ctx = rctx
6537 return ec.resolvers.CorruptSpec().Corrup(rctx, obj)
6538 })
6539 if err != nil {
6540 ec.Error(ctx, err)
6541 return graphql.Null
6542 }
6543 if resTmp == nil {
6544 if !graphql.HasFieldError(ctx, fc) {
6545 ec.Errorf(ctx, "must not be null")
6546 }
6547 return graphql.Null
6548 }
6549 res := resTmp.(string)
6550 fc.Result = res
6551 return ec.marshalNString2string(ctx, field.Selections, res)
6552 }
6553
6554 func (ec *executionContext) _CorruptSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.CorruptSpec) (ret graphql.Marshaler) {
6555 defer func() {
6556 if r := recover(); r != nil {
6557 ec.Error(ctx, ec.Recover(ctx, r))
6558 ret = graphql.Null
6559 }
6560 }()
6561 fc := &graphql.FieldContext{
6562 Object: "CorruptSpec",
6563 Field: field,
6564 Args: nil,
6565 IsMethod: false,
6566 IsResolver: false,
6567 }
6568
6569 ctx = graphql.WithFieldContext(ctx, fc)
6570 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6571 ctx = rctx
6572 return obj.Correlation, nil
6573 })
6574 if err != nil {
6575 ec.Error(ctx, err)
6576 return graphql.Null
6577 }
6578 if resTmp == nil {
6579 return graphql.Null
6580 }
6581 res := resTmp.(string)
6582 fc.Result = res
6583 return ec.marshalOString2string(ctx, field.Selections, res)
6584 }
6585
6586 func (ec *executionContext) _DelaySpec_latency(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
6587 defer func() {
6588 if r := recover(); r != nil {
6589 ec.Error(ctx, ec.Recover(ctx, r))
6590 ret = graphql.Null
6591 }
6592 }()
6593 fc := &graphql.FieldContext{
6594 Object: "DelaySpec",
6595 Field: field,
6596 Args: nil,
6597 IsMethod: false,
6598 IsResolver: false,
6599 }
6600
6601 ctx = graphql.WithFieldContext(ctx, fc)
6602 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6603 ctx = rctx
6604 return obj.Latency, nil
6605 })
6606 if err != nil {
6607 ec.Error(ctx, err)
6608 return graphql.Null
6609 }
6610 if resTmp == nil {
6611 if !graphql.HasFieldError(ctx, fc) {
6612 ec.Errorf(ctx, "must not be null")
6613 }
6614 return graphql.Null
6615 }
6616 res := resTmp.(string)
6617 fc.Result = res
6618 return ec.marshalNString2string(ctx, field.Selections, res)
6619 }
6620
6621 func (ec *executionContext) _DelaySpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
6622 defer func() {
6623 if r := recover(); r != nil {
6624 ec.Error(ctx, ec.Recover(ctx, r))
6625 ret = graphql.Null
6626 }
6627 }()
6628 fc := &graphql.FieldContext{
6629 Object: "DelaySpec",
6630 Field: field,
6631 Args: nil,
6632 IsMethod: false,
6633 IsResolver: false,
6634 }
6635
6636 ctx = graphql.WithFieldContext(ctx, fc)
6637 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6638 ctx = rctx
6639 return obj.Correlation, nil
6640 })
6641 if err != nil {
6642 ec.Error(ctx, err)
6643 return graphql.Null
6644 }
6645 if resTmp == nil {
6646 return graphql.Null
6647 }
6648 res := resTmp.(string)
6649 fc.Result = res
6650 return ec.marshalOString2string(ctx, field.Selections, res)
6651 }
6652
6653 func (ec *executionContext) _DelaySpec_jitter(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
6654 defer func() {
6655 if r := recover(); r != nil {
6656 ec.Error(ctx, ec.Recover(ctx, r))
6657 ret = graphql.Null
6658 }
6659 }()
6660 fc := &graphql.FieldContext{
6661 Object: "DelaySpec",
6662 Field: field,
6663 Args: nil,
6664 IsMethod: false,
6665 IsResolver: false,
6666 }
6667
6668 ctx = graphql.WithFieldContext(ctx, fc)
6669 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6670 ctx = rctx
6671 return obj.Jitter, nil
6672 })
6673 if err != nil {
6674 ec.Error(ctx, err)
6675 return graphql.Null
6676 }
6677 if resTmp == nil {
6678 return graphql.Null
6679 }
6680 res := resTmp.(string)
6681 fc.Result = res
6682 return ec.marshalOString2string(ctx, field.Selections, res)
6683 }
6684
6685 func (ec *executionContext) _DelaySpec_reorder(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DelaySpec) (ret graphql.Marshaler) {
6686 defer func() {
6687 if r := recover(); r != nil {
6688 ec.Error(ctx, ec.Recover(ctx, r))
6689 ret = graphql.Null
6690 }
6691 }()
6692 fc := &graphql.FieldContext{
6693 Object: "DelaySpec",
6694 Field: field,
6695 Args: nil,
6696 IsMethod: false,
6697 IsResolver: false,
6698 }
6699
6700 ctx = graphql.WithFieldContext(ctx, fc)
6701 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6702 ctx = rctx
6703 return obj.Reorder, nil
6704 })
6705 if err != nil {
6706 ec.Error(ctx, err)
6707 return graphql.Null
6708 }
6709 if resTmp == nil {
6710 return graphql.Null
6711 }
6712 res := resTmp.(*v1alpha1.ReorderSpec)
6713 fc.Result = res
6714 return ec.marshalOReorderSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐReorderSpec(ctx, field.Selections, res)
6715 }
6716
6717 func (ec *executionContext) _DuplicateSpec_duplicate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DuplicateSpec) (ret graphql.Marshaler) {
6718 defer func() {
6719 if r := recover(); r != nil {
6720 ec.Error(ctx, ec.Recover(ctx, r))
6721 ret = graphql.Null
6722 }
6723 }()
6724 fc := &graphql.FieldContext{
6725 Object: "DuplicateSpec",
6726 Field: field,
6727 Args: nil,
6728 IsMethod: false,
6729 IsResolver: false,
6730 }
6731
6732 ctx = graphql.WithFieldContext(ctx, fc)
6733 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6734 ctx = rctx
6735 return obj.Duplicate, nil
6736 })
6737 if err != nil {
6738 ec.Error(ctx, err)
6739 return graphql.Null
6740 }
6741 if resTmp == nil {
6742 if !graphql.HasFieldError(ctx, fc) {
6743 ec.Errorf(ctx, "must not be null")
6744 }
6745 return graphql.Null
6746 }
6747 res := resTmp.(string)
6748 fc.Result = res
6749 return ec.marshalNString2string(ctx, field.Selections, res)
6750 }
6751
6752 func (ec *executionContext) _DuplicateSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.DuplicateSpec) (ret graphql.Marshaler) {
6753 defer func() {
6754 if r := recover(); r != nil {
6755 ec.Error(ctx, ec.Recover(ctx, r))
6756 ret = graphql.Null
6757 }
6758 }()
6759 fc := &graphql.FieldContext{
6760 Object: "DuplicateSpec",
6761 Field: field,
6762 Args: nil,
6763 IsMethod: false,
6764 IsResolver: false,
6765 }
6766
6767 ctx = graphql.WithFieldContext(ctx, fc)
6768 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6769 ctx = rctx
6770 return obj.Correlation, nil
6771 })
6772 if err != nil {
6773 ec.Error(ctx, err)
6774 return graphql.Null
6775 }
6776 if resTmp == nil {
6777 return graphql.Null
6778 }
6779 res := resTmp.(string)
6780 fc.Result = res
6781 return ec.marshalOString2string(ctx, field.Selections, res)
6782 }
6783
6784 func (ec *executionContext) _ExperimentStatus_desiredPhase(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ExperimentStatus) (ret graphql.Marshaler) {
6785 defer func() {
6786 if r := recover(); r != nil {
6787 ec.Error(ctx, ec.Recover(ctx, r))
6788 ret = graphql.Null
6789 }
6790 }()
6791 fc := &graphql.FieldContext{
6792 Object: "ExperimentStatus",
6793 Field: field,
6794 Args: nil,
6795 IsMethod: true,
6796 IsResolver: true,
6797 }
6798
6799 ctx = graphql.WithFieldContext(ctx, fc)
6800 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6801 ctx = rctx
6802 return ec.resolvers.ExperimentStatus().DesiredPhase(rctx, obj)
6803 })
6804 if err != nil {
6805 ec.Error(ctx, err)
6806 return graphql.Null
6807 }
6808 if resTmp == nil {
6809 if !graphql.HasFieldError(ctx, fc) {
6810 ec.Errorf(ctx, "must not be null")
6811 }
6812 return graphql.Null
6813 }
6814 res := resTmp.(string)
6815 fc.Result = res
6816 return ec.marshalNString2string(ctx, field.Selections, res)
6817 }
6818
6819 func (ec *executionContext) _ExperimentStatus_Records(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ExperimentStatus) (ret graphql.Marshaler) {
6820 defer func() {
6821 if r := recover(); r != nil {
6822 ec.Error(ctx, ec.Recover(ctx, r))
6823 ret = graphql.Null
6824 }
6825 }()
6826 fc := &graphql.FieldContext{
6827 Object: "ExperimentStatus",
6828 Field: field,
6829 Args: nil,
6830 IsMethod: false,
6831 IsResolver: false,
6832 }
6833
6834 ctx = graphql.WithFieldContext(ctx, fc)
6835 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6836 ctx = rctx
6837 return obj.Records, nil
6838 })
6839 if err != nil {
6840 ec.Error(ctx, err)
6841 return graphql.Null
6842 }
6843 if resTmp == nil {
6844 return graphql.Null
6845 }
6846 res := resTmp.([]*v1alpha1.Record)
6847 fc.Result = res
6848 return ec.marshalORecord2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecordᚄ(ctx, field.Selections, res)
6849 }
6850
6851 func (ec *executionContext) _Fd_fd(ctx context.Context, field graphql.CollectedField, obj *model.Fd) (ret graphql.Marshaler) {
6852 defer func() {
6853 if r := recover(); r != nil {
6854 ec.Error(ctx, ec.Recover(ctx, r))
6855 ret = graphql.Null
6856 }
6857 }()
6858 fc := &graphql.FieldContext{
6859 Object: "Fd",
6860 Field: field,
6861 Args: nil,
6862 IsMethod: false,
6863 IsResolver: false,
6864 }
6865
6866 ctx = graphql.WithFieldContext(ctx, fc)
6867 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6868 ctx = rctx
6869 return obj.Fd, nil
6870 })
6871 if err != nil {
6872 ec.Error(ctx, err)
6873 return graphql.Null
6874 }
6875 if resTmp == nil {
6876 if !graphql.HasFieldError(ctx, fc) {
6877 ec.Errorf(ctx, "must not be null")
6878 }
6879 return graphql.Null
6880 }
6881 res := resTmp.(string)
6882 fc.Result = res
6883 return ec.marshalNString2string(ctx, field.Selections, res)
6884 }
6885
6886 func (ec *executionContext) _Fd_target(ctx context.Context, field graphql.CollectedField, obj *model.Fd) (ret graphql.Marshaler) {
6887 defer func() {
6888 if r := recover(); r != nil {
6889 ec.Error(ctx, ec.Recover(ctx, r))
6890 ret = graphql.Null
6891 }
6892 }()
6893 fc := &graphql.FieldContext{
6894 Object: "Fd",
6895 Field: field,
6896 Args: nil,
6897 IsMethod: false,
6898 IsResolver: false,
6899 }
6900
6901 ctx = graphql.WithFieldContext(ctx, fc)
6902 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6903 ctx = rctx
6904 return obj.Target, nil
6905 })
6906 if err != nil {
6907 ec.Error(ctx, err)
6908 return graphql.Null
6909 }
6910 if resTmp == nil {
6911 if !graphql.HasFieldError(ctx, fc) {
6912 ec.Errorf(ctx, "must not be null")
6913 }
6914 return graphql.Null
6915 }
6916 res := resTmp.(string)
6917 fc.Result = res
6918 return ec.marshalNString2string(ctx, field.Selections, res)
6919 }
6920
6921 func (ec *executionContext) _HTTPChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
6922 defer func() {
6923 if r := recover(); r != nil {
6924 ec.Error(ctx, ec.Recover(ctx, r))
6925 ret = graphql.Null
6926 }
6927 }()
6928 fc := &graphql.FieldContext{
6929 Object: "HTTPChaos",
6930 Field: field,
6931 Args: nil,
6932 IsMethod: false,
6933 IsResolver: false,
6934 }
6935
6936 ctx = graphql.WithFieldContext(ctx, fc)
6937 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6938 ctx = rctx
6939 return obj.Kind, nil
6940 })
6941 if err != nil {
6942 ec.Error(ctx, err)
6943 return graphql.Null
6944 }
6945 if resTmp == nil {
6946 if !graphql.HasFieldError(ctx, fc) {
6947 ec.Errorf(ctx, "must not be null")
6948 }
6949 return graphql.Null
6950 }
6951 res := resTmp.(string)
6952 fc.Result = res
6953 return ec.marshalNString2string(ctx, field.Selections, res)
6954 }
6955
6956 func (ec *executionContext) _HTTPChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
6957 defer func() {
6958 if r := recover(); r != nil {
6959 ec.Error(ctx, ec.Recover(ctx, r))
6960 ret = graphql.Null
6961 }
6962 }()
6963 fc := &graphql.FieldContext{
6964 Object: "HTTPChaos",
6965 Field: field,
6966 Args: nil,
6967 IsMethod: false,
6968 IsResolver: false,
6969 }
6970
6971 ctx = graphql.WithFieldContext(ctx, fc)
6972 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
6973 ctx = rctx
6974 return obj.APIVersion, nil
6975 })
6976 if err != nil {
6977 ec.Error(ctx, err)
6978 return graphql.Null
6979 }
6980 if resTmp == nil {
6981 if !graphql.HasFieldError(ctx, fc) {
6982 ec.Errorf(ctx, "must not be null")
6983 }
6984 return graphql.Null
6985 }
6986 res := resTmp.(string)
6987 fc.Result = res
6988 return ec.marshalNString2string(ctx, field.Selections, res)
6989 }
6990
6991 func (ec *executionContext) _HTTPChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
6992 defer func() {
6993 if r := recover(); r != nil {
6994 ec.Error(ctx, ec.Recover(ctx, r))
6995 ret = graphql.Null
6996 }
6997 }()
6998 fc := &graphql.FieldContext{
6999 Object: "HTTPChaos",
7000 Field: field,
7001 Args: nil,
7002 IsMethod: false,
7003 IsResolver: false,
7004 }
7005
7006 ctx = graphql.WithFieldContext(ctx, fc)
7007 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7008 ctx = rctx
7009 return obj.Name, nil
7010 })
7011 if err != nil {
7012 ec.Error(ctx, err)
7013 return graphql.Null
7014 }
7015 if resTmp == nil {
7016 if !graphql.HasFieldError(ctx, fc) {
7017 ec.Errorf(ctx, "must not be null")
7018 }
7019 return graphql.Null
7020 }
7021 res := resTmp.(string)
7022 fc.Result = res
7023 return ec.marshalNString2string(ctx, field.Selections, res)
7024 }
7025
7026 func (ec *executionContext) _HTTPChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7027 defer func() {
7028 if r := recover(); r != nil {
7029 ec.Error(ctx, ec.Recover(ctx, r))
7030 ret = graphql.Null
7031 }
7032 }()
7033 fc := &graphql.FieldContext{
7034 Object: "HTTPChaos",
7035 Field: field,
7036 Args: nil,
7037 IsMethod: false,
7038 IsResolver: false,
7039 }
7040
7041 ctx = graphql.WithFieldContext(ctx, fc)
7042 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7043 ctx = rctx
7044 return obj.GenerateName, nil
7045 })
7046 if err != nil {
7047 ec.Error(ctx, err)
7048 return graphql.Null
7049 }
7050 if resTmp == nil {
7051 if !graphql.HasFieldError(ctx, fc) {
7052 ec.Errorf(ctx, "must not be null")
7053 }
7054 return graphql.Null
7055 }
7056 res := resTmp.(string)
7057 fc.Result = res
7058 return ec.marshalNString2string(ctx, field.Selections, res)
7059 }
7060
7061 func (ec *executionContext) _HTTPChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7062 defer func() {
7063 if r := recover(); r != nil {
7064 ec.Error(ctx, ec.Recover(ctx, r))
7065 ret = graphql.Null
7066 }
7067 }()
7068 fc := &graphql.FieldContext{
7069 Object: "HTTPChaos",
7070 Field: field,
7071 Args: nil,
7072 IsMethod: false,
7073 IsResolver: false,
7074 }
7075
7076 ctx = graphql.WithFieldContext(ctx, fc)
7077 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7078 ctx = rctx
7079 return obj.Namespace, nil
7080 })
7081 if err != nil {
7082 ec.Error(ctx, err)
7083 return graphql.Null
7084 }
7085 if resTmp == nil {
7086 if !graphql.HasFieldError(ctx, fc) {
7087 ec.Errorf(ctx, "must not be null")
7088 }
7089 return graphql.Null
7090 }
7091 res := resTmp.(string)
7092 fc.Result = res
7093 return ec.marshalNString2string(ctx, field.Selections, res)
7094 }
7095
7096 func (ec *executionContext) _HTTPChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7097 defer func() {
7098 if r := recover(); r != nil {
7099 ec.Error(ctx, ec.Recover(ctx, r))
7100 ret = graphql.Null
7101 }
7102 }()
7103 fc := &graphql.FieldContext{
7104 Object: "HTTPChaos",
7105 Field: field,
7106 Args: nil,
7107 IsMethod: false,
7108 IsResolver: false,
7109 }
7110
7111 ctx = graphql.WithFieldContext(ctx, fc)
7112 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7113 ctx = rctx
7114 return obj.SelfLink, nil
7115 })
7116 if err != nil {
7117 ec.Error(ctx, err)
7118 return graphql.Null
7119 }
7120 if resTmp == nil {
7121 if !graphql.HasFieldError(ctx, fc) {
7122 ec.Errorf(ctx, "must not be null")
7123 }
7124 return graphql.Null
7125 }
7126 res := resTmp.(string)
7127 fc.Result = res
7128 return ec.marshalNString2string(ctx, field.Selections, res)
7129 }
7130
7131 func (ec *executionContext) _HTTPChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7132 defer func() {
7133 if r := recover(); r != nil {
7134 ec.Error(ctx, ec.Recover(ctx, r))
7135 ret = graphql.Null
7136 }
7137 }()
7138 fc := &graphql.FieldContext{
7139 Object: "HTTPChaos",
7140 Field: field,
7141 Args: nil,
7142 IsMethod: true,
7143 IsResolver: true,
7144 }
7145
7146 ctx = graphql.WithFieldContext(ctx, fc)
7147 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7148 ctx = rctx
7149 return ec.resolvers.HTTPChaos().UID(rctx, obj)
7150 })
7151 if err != nil {
7152 ec.Error(ctx, err)
7153 return graphql.Null
7154 }
7155 if resTmp == nil {
7156 if !graphql.HasFieldError(ctx, fc) {
7157 ec.Errorf(ctx, "must not be null")
7158 }
7159 return graphql.Null
7160 }
7161 res := resTmp.(string)
7162 fc.Result = res
7163 return ec.marshalNString2string(ctx, field.Selections, res)
7164 }
7165
7166 func (ec *executionContext) _HTTPChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7167 defer func() {
7168 if r := recover(); r != nil {
7169 ec.Error(ctx, ec.Recover(ctx, r))
7170 ret = graphql.Null
7171 }
7172 }()
7173 fc := &graphql.FieldContext{
7174 Object: "HTTPChaos",
7175 Field: field,
7176 Args: nil,
7177 IsMethod: false,
7178 IsResolver: false,
7179 }
7180
7181 ctx = graphql.WithFieldContext(ctx, fc)
7182 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7183 ctx = rctx
7184 return obj.ResourceVersion, nil
7185 })
7186 if err != nil {
7187 ec.Error(ctx, err)
7188 return graphql.Null
7189 }
7190 if resTmp == nil {
7191 if !graphql.HasFieldError(ctx, fc) {
7192 ec.Errorf(ctx, "must not be null")
7193 }
7194 return graphql.Null
7195 }
7196 res := resTmp.(string)
7197 fc.Result = res
7198 return ec.marshalNString2string(ctx, field.Selections, res)
7199 }
7200
7201 func (ec *executionContext) _HTTPChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7202 defer func() {
7203 if r := recover(); r != nil {
7204 ec.Error(ctx, ec.Recover(ctx, r))
7205 ret = graphql.Null
7206 }
7207 }()
7208 fc := &graphql.FieldContext{
7209 Object: "HTTPChaos",
7210 Field: field,
7211 Args: nil,
7212 IsMethod: false,
7213 IsResolver: false,
7214 }
7215
7216 ctx = graphql.WithFieldContext(ctx, fc)
7217 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7218 ctx = rctx
7219 return obj.Generation, nil
7220 })
7221 if err != nil {
7222 ec.Error(ctx, err)
7223 return graphql.Null
7224 }
7225 if resTmp == nil {
7226 if !graphql.HasFieldError(ctx, fc) {
7227 ec.Errorf(ctx, "must not be null")
7228 }
7229 return graphql.Null
7230 }
7231 res := resTmp.(int64)
7232 fc.Result = res
7233 return ec.marshalNInt2int64(ctx, field.Selections, res)
7234 }
7235
7236 func (ec *executionContext) _HTTPChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7237 defer func() {
7238 if r := recover(); r != nil {
7239 ec.Error(ctx, ec.Recover(ctx, r))
7240 ret = graphql.Null
7241 }
7242 }()
7243 fc := &graphql.FieldContext{
7244 Object: "HTTPChaos",
7245 Field: field,
7246 Args: nil,
7247 IsMethod: true,
7248 IsResolver: true,
7249 }
7250
7251 ctx = graphql.WithFieldContext(ctx, fc)
7252 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7253 ctx = rctx
7254 return ec.resolvers.HTTPChaos().CreationTimestamp(rctx, obj)
7255 })
7256 if err != nil {
7257 ec.Error(ctx, err)
7258 return graphql.Null
7259 }
7260 if resTmp == nil {
7261 if !graphql.HasFieldError(ctx, fc) {
7262 ec.Errorf(ctx, "must not be null")
7263 }
7264 return graphql.Null
7265 }
7266 res := resTmp.(*time.Time)
7267 fc.Result = res
7268 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
7269 }
7270
7271 func (ec *executionContext) _HTTPChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7272 defer func() {
7273 if r := recover(); r != nil {
7274 ec.Error(ctx, ec.Recover(ctx, r))
7275 ret = graphql.Null
7276 }
7277 }()
7278 fc := &graphql.FieldContext{
7279 Object: "HTTPChaos",
7280 Field: field,
7281 Args: nil,
7282 IsMethod: true,
7283 IsResolver: true,
7284 }
7285
7286 ctx = graphql.WithFieldContext(ctx, fc)
7287 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7288 ctx = rctx
7289 return ec.resolvers.HTTPChaos().DeletionTimestamp(rctx, obj)
7290 })
7291 if err != nil {
7292 ec.Error(ctx, err)
7293 return graphql.Null
7294 }
7295 if resTmp == nil {
7296 return graphql.Null
7297 }
7298 res := resTmp.(*time.Time)
7299 fc.Result = res
7300 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
7301 }
7302
7303 func (ec *executionContext) _HTTPChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7304 defer func() {
7305 if r := recover(); r != nil {
7306 ec.Error(ctx, ec.Recover(ctx, r))
7307 ret = graphql.Null
7308 }
7309 }()
7310 fc := &graphql.FieldContext{
7311 Object: "HTTPChaos",
7312 Field: field,
7313 Args: nil,
7314 IsMethod: false,
7315 IsResolver: false,
7316 }
7317
7318 ctx = graphql.WithFieldContext(ctx, fc)
7319 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7320 ctx = rctx
7321 return obj.DeletionGracePeriodSeconds, nil
7322 })
7323 if err != nil {
7324 ec.Error(ctx, err)
7325 return graphql.Null
7326 }
7327 if resTmp == nil {
7328 return graphql.Null
7329 }
7330 res := resTmp.(*int64)
7331 fc.Result = res
7332 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
7333 }
7334
7335 func (ec *executionContext) _HTTPChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7336 defer func() {
7337 if r := recover(); r != nil {
7338 ec.Error(ctx, ec.Recover(ctx, r))
7339 ret = graphql.Null
7340 }
7341 }()
7342 fc := &graphql.FieldContext{
7343 Object: "HTTPChaos",
7344 Field: field,
7345 Args: nil,
7346 IsMethod: true,
7347 IsResolver: true,
7348 }
7349
7350 ctx = graphql.WithFieldContext(ctx, fc)
7351 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7352 ctx = rctx
7353 return ec.resolvers.HTTPChaos().Labels(rctx, obj)
7354 })
7355 if err != nil {
7356 ec.Error(ctx, err)
7357 return graphql.Null
7358 }
7359 if resTmp == nil {
7360 return graphql.Null
7361 }
7362 res := resTmp.(map[string]interface{})
7363 fc.Result = res
7364 return ec.marshalOMap2map(ctx, field.Selections, res)
7365 }
7366
7367 func (ec *executionContext) _HTTPChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7368 defer func() {
7369 if r := recover(); r != nil {
7370 ec.Error(ctx, ec.Recover(ctx, r))
7371 ret = graphql.Null
7372 }
7373 }()
7374 fc := &graphql.FieldContext{
7375 Object: "HTTPChaos",
7376 Field: field,
7377 Args: nil,
7378 IsMethod: true,
7379 IsResolver: true,
7380 }
7381
7382 ctx = graphql.WithFieldContext(ctx, fc)
7383 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7384 ctx = rctx
7385 return ec.resolvers.HTTPChaos().Annotations(rctx, obj)
7386 })
7387 if err != nil {
7388 ec.Error(ctx, err)
7389 return graphql.Null
7390 }
7391 if resTmp == nil {
7392 return graphql.Null
7393 }
7394 res := resTmp.(map[string]interface{})
7395 fc.Result = res
7396 return ec.marshalOMap2map(ctx, field.Selections, res)
7397 }
7398
7399 func (ec *executionContext) _HTTPChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7400 defer func() {
7401 if r := recover(); r != nil {
7402 ec.Error(ctx, ec.Recover(ctx, r))
7403 ret = graphql.Null
7404 }
7405 }()
7406 fc := &graphql.FieldContext{
7407 Object: "HTTPChaos",
7408 Field: field,
7409 Args: nil,
7410 IsMethod: false,
7411 IsResolver: false,
7412 }
7413
7414 ctx = graphql.WithFieldContext(ctx, fc)
7415 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7416 ctx = rctx
7417 return obj.OwnerReferences, nil
7418 })
7419 if err != nil {
7420 ec.Error(ctx, err)
7421 return graphql.Null
7422 }
7423 if resTmp == nil {
7424 return graphql.Null
7425 }
7426 res := resTmp.([]v11.OwnerReference)
7427 fc.Result = res
7428 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
7429 }
7430
7431 func (ec *executionContext) _HTTPChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7432 defer func() {
7433 if r := recover(); r != nil {
7434 ec.Error(ctx, ec.Recover(ctx, r))
7435 ret = graphql.Null
7436 }
7437 }()
7438 fc := &graphql.FieldContext{
7439 Object: "HTTPChaos",
7440 Field: field,
7441 Args: nil,
7442 IsMethod: false,
7443 IsResolver: false,
7444 }
7445
7446 ctx = graphql.WithFieldContext(ctx, fc)
7447 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7448 ctx = rctx
7449 return obj.Finalizers, nil
7450 })
7451 if err != nil {
7452 ec.Error(ctx, err)
7453 return graphql.Null
7454 }
7455 if resTmp == nil {
7456 return graphql.Null
7457 }
7458 res := resTmp.([]string)
7459 fc.Result = res
7460 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
7461 }
7462
7463 func (ec *executionContext) _HTTPChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7464 defer func() {
7465 if r := recover(); r != nil {
7466 ec.Error(ctx, ec.Recover(ctx, r))
7467 ret = graphql.Null
7468 }
7469 }()
7470 fc := &graphql.FieldContext{
7471 Object: "HTTPChaos",
7472 Field: field,
7473 Args: nil,
7474 IsMethod: false,
7475 IsResolver: false,
7476 }
7477
7478 ctx = graphql.WithFieldContext(ctx, fc)
7479 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7480 ctx = rctx
7481 return obj.ClusterName, nil
7482 })
7483 if err != nil {
7484 ec.Error(ctx, err)
7485 return graphql.Null
7486 }
7487 if resTmp == nil {
7488 if !graphql.HasFieldError(ctx, fc) {
7489 ec.Errorf(ctx, "must not be null")
7490 }
7491 return graphql.Null
7492 }
7493 res := resTmp.(string)
7494 fc.Result = res
7495 return ec.marshalNString2string(ctx, field.Selections, res)
7496 }
7497
7498 func (ec *executionContext) _HTTPChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7499 defer func() {
7500 if r := recover(); r != nil {
7501 ec.Error(ctx, ec.Recover(ctx, r))
7502 ret = graphql.Null
7503 }
7504 }()
7505 fc := &graphql.FieldContext{
7506 Object: "HTTPChaos",
7507 Field: field,
7508 Args: nil,
7509 IsMethod: false,
7510 IsResolver: false,
7511 }
7512
7513 ctx = graphql.WithFieldContext(ctx, fc)
7514 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7515 ctx = rctx
7516 return obj.Spec, nil
7517 })
7518 if err != nil {
7519 ec.Error(ctx, err)
7520 return graphql.Null
7521 }
7522 if resTmp == nil {
7523 if !graphql.HasFieldError(ctx, fc) {
7524 ec.Errorf(ctx, "must not be null")
7525 }
7526 return graphql.Null
7527 }
7528 res := resTmp.(v1alpha1.HTTPChaosSpec)
7529 fc.Result = res
7530 return ec.marshalNHTTPChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosSpec(ctx, field.Selections, res)
7531 }
7532
7533 func (ec *executionContext) _HTTPChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7534 defer func() {
7535 if r := recover(); r != nil {
7536 ec.Error(ctx, ec.Recover(ctx, r))
7537 ret = graphql.Null
7538 }
7539 }()
7540 fc := &graphql.FieldContext{
7541 Object: "HTTPChaos",
7542 Field: field,
7543 Args: nil,
7544 IsMethod: false,
7545 IsResolver: false,
7546 }
7547
7548 ctx = graphql.WithFieldContext(ctx, fc)
7549 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7550 ctx = rctx
7551 return obj.Status, nil
7552 })
7553 if err != nil {
7554 ec.Error(ctx, err)
7555 return graphql.Null
7556 }
7557 if resTmp == nil {
7558 if !graphql.HasFieldError(ctx, fc) {
7559 ec.Errorf(ctx, "must not be null")
7560 }
7561 return graphql.Null
7562 }
7563 res := resTmp.(v1alpha1.HTTPChaosStatus)
7564 fc.Result = res
7565 return ec.marshalNHTTPChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosStatus(ctx, field.Selections, res)
7566 }
7567
7568 func (ec *executionContext) _HTTPChaos_podhttp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaos) (ret graphql.Marshaler) {
7569 defer func() {
7570 if r := recover(); r != nil {
7571 ec.Error(ctx, ec.Recover(ctx, r))
7572 ret = graphql.Null
7573 }
7574 }()
7575 fc := &graphql.FieldContext{
7576 Object: "HTTPChaos",
7577 Field: field,
7578 Args: nil,
7579 IsMethod: true,
7580 IsResolver: true,
7581 }
7582
7583 ctx = graphql.WithFieldContext(ctx, fc)
7584 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7585 ctx = rctx
7586 return ec.resolvers.HTTPChaos().Podhttp(rctx, obj)
7587 })
7588 if err != nil {
7589 ec.Error(ctx, err)
7590 return graphql.Null
7591 }
7592 if resTmp == nil {
7593 return graphql.Null
7594 }
7595 res := resTmp.([]*v1alpha1.PodHttpChaos)
7596 fc.Result = res
7597 return ec.marshalOPodHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosᚄ(ctx, field.Selections, res)
7598 }
7599
7600 func (ec *executionContext) _HTTPChaosSpec_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7601 defer func() {
7602 if r := recover(); r != nil {
7603 ec.Error(ctx, ec.Recover(ctx, r))
7604 ret = graphql.Null
7605 }
7606 }()
7607 fc := &graphql.FieldContext{
7608 Object: "HTTPChaosSpec",
7609 Field: field,
7610 Args: nil,
7611 IsMethod: false,
7612 IsResolver: false,
7613 }
7614
7615 ctx = graphql.WithFieldContext(ctx, fc)
7616 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7617 ctx = rctx
7618 return obj.Selector, nil
7619 })
7620 if err != nil {
7621 ec.Error(ctx, err)
7622 return graphql.Null
7623 }
7624 if resTmp == nil {
7625 if !graphql.HasFieldError(ctx, fc) {
7626 ec.Errorf(ctx, "must not be null")
7627 }
7628 return graphql.Null
7629 }
7630 res := resTmp.(v1alpha1.PodSelectorSpec)
7631 fc.Result = res
7632 return ec.marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx, field.Selections, res)
7633 }
7634
7635 func (ec *executionContext) _HTTPChaosSpec_mode(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7636 defer func() {
7637 if r := recover(); r != nil {
7638 ec.Error(ctx, ec.Recover(ctx, r))
7639 ret = graphql.Null
7640 }
7641 }()
7642 fc := &graphql.FieldContext{
7643 Object: "HTTPChaosSpec",
7644 Field: field,
7645 Args: nil,
7646 IsMethod: true,
7647 IsResolver: true,
7648 }
7649
7650 ctx = graphql.WithFieldContext(ctx, fc)
7651 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7652 ctx = rctx
7653 return ec.resolvers.HTTPChaosSpec().Mode(rctx, obj)
7654 })
7655 if err != nil {
7656 ec.Error(ctx, err)
7657 return graphql.Null
7658 }
7659 if resTmp == nil {
7660 if !graphql.HasFieldError(ctx, fc) {
7661 ec.Errorf(ctx, "must not be null")
7662 }
7663 return graphql.Null
7664 }
7665 res := resTmp.(string)
7666 fc.Result = res
7667 return ec.marshalNString2string(ctx, field.Selections, res)
7668 }
7669
7670 func (ec *executionContext) _HTTPChaosSpec_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7671 defer func() {
7672 if r := recover(); r != nil {
7673 ec.Error(ctx, ec.Recover(ctx, r))
7674 ret = graphql.Null
7675 }
7676 }()
7677 fc := &graphql.FieldContext{
7678 Object: "HTTPChaosSpec",
7679 Field: field,
7680 Args: nil,
7681 IsMethod: false,
7682 IsResolver: false,
7683 }
7684
7685 ctx = graphql.WithFieldContext(ctx, fc)
7686 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7687 ctx = rctx
7688 return obj.Value, nil
7689 })
7690 if err != nil {
7691 ec.Error(ctx, err)
7692 return graphql.Null
7693 }
7694 if resTmp == nil {
7695 return graphql.Null
7696 }
7697 res := resTmp.(string)
7698 fc.Result = res
7699 return ec.marshalOString2string(ctx, field.Selections, res)
7700 }
7701
7702 func (ec *executionContext) _HTTPChaosSpec_target(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7703 defer func() {
7704 if r := recover(); r != nil {
7705 ec.Error(ctx, ec.Recover(ctx, r))
7706 ret = graphql.Null
7707 }
7708 }()
7709 fc := &graphql.FieldContext{
7710 Object: "HTTPChaosSpec",
7711 Field: field,
7712 Args: nil,
7713 IsMethod: true,
7714 IsResolver: true,
7715 }
7716
7717 ctx = graphql.WithFieldContext(ctx, fc)
7718 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7719 ctx = rctx
7720 return ec.resolvers.HTTPChaosSpec().Target(rctx, obj)
7721 })
7722 if err != nil {
7723 ec.Error(ctx, err)
7724 return graphql.Null
7725 }
7726 if resTmp == nil {
7727 if !graphql.HasFieldError(ctx, fc) {
7728 ec.Errorf(ctx, "must not be null")
7729 }
7730 return graphql.Null
7731 }
7732 res := resTmp.(string)
7733 fc.Result = res
7734 return ec.marshalNString2string(ctx, field.Selections, res)
7735 }
7736
7737 func (ec *executionContext) _HTTPChaosSpec_abort(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7738 defer func() {
7739 if r := recover(); r != nil {
7740 ec.Error(ctx, ec.Recover(ctx, r))
7741 ret = graphql.Null
7742 }
7743 }()
7744 fc := &graphql.FieldContext{
7745 Object: "HTTPChaosSpec",
7746 Field: field,
7747 Args: nil,
7748 IsMethod: false,
7749 IsResolver: false,
7750 }
7751
7752 ctx = graphql.WithFieldContext(ctx, fc)
7753 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7754 ctx = rctx
7755 return obj.Abort, nil
7756 })
7757 if err != nil {
7758 ec.Error(ctx, err)
7759 return graphql.Null
7760 }
7761 if resTmp == nil {
7762 return graphql.Null
7763 }
7764 res := resTmp.(*bool)
7765 fc.Result = res
7766 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
7767 }
7768
7769 func (ec *executionContext) _HTTPChaosSpec_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7770 defer func() {
7771 if r := recover(); r != nil {
7772 ec.Error(ctx, ec.Recover(ctx, r))
7773 ret = graphql.Null
7774 }
7775 }()
7776 fc := &graphql.FieldContext{
7777 Object: "HTTPChaosSpec",
7778 Field: field,
7779 Args: nil,
7780 IsMethod: false,
7781 IsResolver: false,
7782 }
7783
7784 ctx = graphql.WithFieldContext(ctx, fc)
7785 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7786 ctx = rctx
7787 return obj.Delay, nil
7788 })
7789 if err != nil {
7790 ec.Error(ctx, err)
7791 return graphql.Null
7792 }
7793 if resTmp == nil {
7794 return graphql.Null
7795 }
7796 res := resTmp.(*string)
7797 fc.Result = res
7798 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
7799 }
7800
7801 func (ec *executionContext) _HTTPChaosSpec_replace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7802 defer func() {
7803 if r := recover(); r != nil {
7804 ec.Error(ctx, ec.Recover(ctx, r))
7805 ret = graphql.Null
7806 }
7807 }()
7808 fc := &graphql.FieldContext{
7809 Object: "HTTPChaosSpec",
7810 Field: field,
7811 Args: nil,
7812 IsMethod: false,
7813 IsResolver: false,
7814 }
7815
7816 ctx = graphql.WithFieldContext(ctx, fc)
7817 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7818 ctx = rctx
7819 return obj.Replace, nil
7820 })
7821 if err != nil {
7822 ec.Error(ctx, err)
7823 return graphql.Null
7824 }
7825 if resTmp == nil {
7826 return graphql.Null
7827 }
7828 res := resTmp.(*v1alpha1.PodHttpChaosReplaceActions)
7829 fc.Result = res
7830 return ec.marshalOPodHttpChaosReplaceActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosReplaceActions(ctx, field.Selections, res)
7831 }
7832
7833 func (ec *executionContext) _HTTPChaosSpec_patch(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7834 defer func() {
7835 if r := recover(); r != nil {
7836 ec.Error(ctx, ec.Recover(ctx, r))
7837 ret = graphql.Null
7838 }
7839 }()
7840 fc := &graphql.FieldContext{
7841 Object: "HTTPChaosSpec",
7842 Field: field,
7843 Args: nil,
7844 IsMethod: false,
7845 IsResolver: false,
7846 }
7847
7848 ctx = graphql.WithFieldContext(ctx, fc)
7849 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7850 ctx = rctx
7851 return obj.Patch, nil
7852 })
7853 if err != nil {
7854 ec.Error(ctx, err)
7855 return graphql.Null
7856 }
7857 if resTmp == nil {
7858 return graphql.Null
7859 }
7860 res := resTmp.(*v1alpha1.PodHttpChaosPatchActions)
7861 fc.Result = res
7862 return ec.marshalOPodHttpChaosPatchActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchActions(ctx, field.Selections, res)
7863 }
7864
7865 func (ec *executionContext) _HTTPChaosSpec_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7866 defer func() {
7867 if r := recover(); r != nil {
7868 ec.Error(ctx, ec.Recover(ctx, r))
7869 ret = graphql.Null
7870 }
7871 }()
7872 fc := &graphql.FieldContext{
7873 Object: "HTTPChaosSpec",
7874 Field: field,
7875 Args: nil,
7876 IsMethod: false,
7877 IsResolver: false,
7878 }
7879
7880 ctx = graphql.WithFieldContext(ctx, fc)
7881 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7882 ctx = rctx
7883 return obj.Port, nil
7884 })
7885 if err != nil {
7886 ec.Error(ctx, err)
7887 return graphql.Null
7888 }
7889 if resTmp == nil {
7890 return graphql.Null
7891 }
7892 res := resTmp.(int32)
7893 fc.Result = res
7894 return ec.marshalOInt2int32(ctx, field.Selections, res)
7895 }
7896
7897 func (ec *executionContext) _HTTPChaosSpec_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7898 defer func() {
7899 if r := recover(); r != nil {
7900 ec.Error(ctx, ec.Recover(ctx, r))
7901 ret = graphql.Null
7902 }
7903 }()
7904 fc := &graphql.FieldContext{
7905 Object: "HTTPChaosSpec",
7906 Field: field,
7907 Args: nil,
7908 IsMethod: false,
7909 IsResolver: false,
7910 }
7911
7912 ctx = graphql.WithFieldContext(ctx, fc)
7913 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7914 ctx = rctx
7915 return obj.Path, nil
7916 })
7917 if err != nil {
7918 ec.Error(ctx, err)
7919 return graphql.Null
7920 }
7921 if resTmp == nil {
7922 return graphql.Null
7923 }
7924 res := resTmp.(*string)
7925 fc.Result = res
7926 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
7927 }
7928
7929 func (ec *executionContext) _HTTPChaosSpec_method(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7930 defer func() {
7931 if r := recover(); r != nil {
7932 ec.Error(ctx, ec.Recover(ctx, r))
7933 ret = graphql.Null
7934 }
7935 }()
7936 fc := &graphql.FieldContext{
7937 Object: "HTTPChaosSpec",
7938 Field: field,
7939 Args: nil,
7940 IsMethod: false,
7941 IsResolver: false,
7942 }
7943
7944 ctx = graphql.WithFieldContext(ctx, fc)
7945 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7946 ctx = rctx
7947 return obj.Method, nil
7948 })
7949 if err != nil {
7950 ec.Error(ctx, err)
7951 return graphql.Null
7952 }
7953 if resTmp == nil {
7954 return graphql.Null
7955 }
7956 res := resTmp.(*string)
7957 fc.Result = res
7958 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
7959 }
7960
7961 func (ec *executionContext) _HTTPChaosSpec_code(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7962 defer func() {
7963 if r := recover(); r != nil {
7964 ec.Error(ctx, ec.Recover(ctx, r))
7965 ret = graphql.Null
7966 }
7967 }()
7968 fc := &graphql.FieldContext{
7969 Object: "HTTPChaosSpec",
7970 Field: field,
7971 Args: nil,
7972 IsMethod: false,
7973 IsResolver: false,
7974 }
7975
7976 ctx = graphql.WithFieldContext(ctx, fc)
7977 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
7978 ctx = rctx
7979 return obj.Code, nil
7980 })
7981 if err != nil {
7982 ec.Error(ctx, err)
7983 return graphql.Null
7984 }
7985 if resTmp == nil {
7986 return graphql.Null
7987 }
7988 res := resTmp.(*int32)
7989 fc.Result = res
7990 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
7991 }
7992
7993 func (ec *executionContext) _HTTPChaosSpec_requestHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
7994 defer func() {
7995 if r := recover(); r != nil {
7996 ec.Error(ctx, ec.Recover(ctx, r))
7997 ret = graphql.Null
7998 }
7999 }()
8000 fc := &graphql.FieldContext{
8001 Object: "HTTPChaosSpec",
8002 Field: field,
8003 Args: nil,
8004 IsMethod: true,
8005 IsResolver: true,
8006 }
8007
8008 ctx = graphql.WithFieldContext(ctx, fc)
8009 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8010 ctx = rctx
8011 return ec.resolvers.HTTPChaosSpec().RequestHeaders(rctx, obj)
8012 })
8013 if err != nil {
8014 ec.Error(ctx, err)
8015 return graphql.Null
8016 }
8017 if resTmp == nil {
8018 return graphql.Null
8019 }
8020 res := resTmp.(map[string]interface{})
8021 fc.Result = res
8022 return ec.marshalOMap2map(ctx, field.Selections, res)
8023 }
8024
8025 func (ec *executionContext) _HTTPChaosSpec_responseHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8026 defer func() {
8027 if r := recover(); r != nil {
8028 ec.Error(ctx, ec.Recover(ctx, r))
8029 ret = graphql.Null
8030 }
8031 }()
8032 fc := &graphql.FieldContext{
8033 Object: "HTTPChaosSpec",
8034 Field: field,
8035 Args: nil,
8036 IsMethod: true,
8037 IsResolver: true,
8038 }
8039
8040 ctx = graphql.WithFieldContext(ctx, fc)
8041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8042 ctx = rctx
8043 return ec.resolvers.HTTPChaosSpec().ResponseHeaders(rctx, obj)
8044 })
8045 if err != nil {
8046 ec.Error(ctx, err)
8047 return graphql.Null
8048 }
8049 if resTmp == nil {
8050 return graphql.Null
8051 }
8052 res := resTmp.(map[string]interface{})
8053 fc.Result = res
8054 return ec.marshalOMap2map(ctx, field.Selections, res)
8055 }
8056
8057 func (ec *executionContext) _HTTPChaosSpec_duration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosSpec) (ret graphql.Marshaler) {
8058 defer func() {
8059 if r := recover(); r != nil {
8060 ec.Error(ctx, ec.Recover(ctx, r))
8061 ret = graphql.Null
8062 }
8063 }()
8064 fc := &graphql.FieldContext{
8065 Object: "HTTPChaosSpec",
8066 Field: field,
8067 Args: nil,
8068 IsMethod: false,
8069 IsResolver: false,
8070 }
8071
8072 ctx = graphql.WithFieldContext(ctx, fc)
8073 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8074 ctx = rctx
8075 return obj.Duration, nil
8076 })
8077 if err != nil {
8078 ec.Error(ctx, err)
8079 return graphql.Null
8080 }
8081 if resTmp == nil {
8082 return graphql.Null
8083 }
8084 res := resTmp.(*string)
8085 fc.Result = res
8086 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
8087 }
8088
8089 func (ec *executionContext) _HTTPChaosStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosStatus) (ret graphql.Marshaler) {
8090 defer func() {
8091 if r := recover(); r != nil {
8092 ec.Error(ctx, ec.Recover(ctx, r))
8093 ret = graphql.Null
8094 }
8095 }()
8096 fc := &graphql.FieldContext{
8097 Object: "HTTPChaosStatus",
8098 Field: field,
8099 Args: nil,
8100 IsMethod: false,
8101 IsResolver: false,
8102 }
8103
8104 ctx = graphql.WithFieldContext(ctx, fc)
8105 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8106 ctx = rctx
8107 return obj.Conditions, nil
8108 })
8109 if err != nil {
8110 ec.Error(ctx, err)
8111 return graphql.Null
8112 }
8113 if resTmp == nil {
8114 return graphql.Null
8115 }
8116 res := resTmp.([]v1alpha1.ChaosCondition)
8117 fc.Result = res
8118 return ec.marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx, field.Selections, res)
8119 }
8120
8121 func (ec *executionContext) _HTTPChaosStatus_experiment(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosStatus) (ret graphql.Marshaler) {
8122 defer func() {
8123 if r := recover(); r != nil {
8124 ec.Error(ctx, ec.Recover(ctx, r))
8125 ret = graphql.Null
8126 }
8127 }()
8128 fc := &graphql.FieldContext{
8129 Object: "HTTPChaosStatus",
8130 Field: field,
8131 Args: nil,
8132 IsMethod: false,
8133 IsResolver: false,
8134 }
8135
8136 ctx = graphql.WithFieldContext(ctx, fc)
8137 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8138 ctx = rctx
8139 return obj.Experiment, nil
8140 })
8141 if err != nil {
8142 ec.Error(ctx, err)
8143 return graphql.Null
8144 }
8145 if resTmp == nil {
8146 return graphql.Null
8147 }
8148 res := resTmp.(v1alpha1.ExperimentStatus)
8149 fc.Result = res
8150 return ec.marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx, field.Selections, res)
8151 }
8152
8153 func (ec *executionContext) _HTTPChaosStatus_instances(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.HTTPChaosStatus) (ret graphql.Marshaler) {
8154 defer func() {
8155 if r := recover(); r != nil {
8156 ec.Error(ctx, ec.Recover(ctx, r))
8157 ret = graphql.Null
8158 }
8159 }()
8160 fc := &graphql.FieldContext{
8161 Object: "HTTPChaosStatus",
8162 Field: field,
8163 Args: nil,
8164 IsMethod: true,
8165 IsResolver: true,
8166 }
8167
8168 ctx = graphql.WithFieldContext(ctx, fc)
8169 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8170 ctx = rctx
8171 return ec.resolvers.HTTPChaosStatus().Instances(rctx, obj)
8172 })
8173 if err != nil {
8174 ec.Error(ctx, err)
8175 return graphql.Null
8176 }
8177 if resTmp == nil {
8178 return graphql.Null
8179 }
8180 res := resTmp.(map[string]interface{})
8181 fc.Result = res
8182 return ec.marshalOMap2map(ctx, field.Selections, res)
8183 }
8184
8185 func (ec *executionContext) _IOChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8186 defer func() {
8187 if r := recover(); r != nil {
8188 ec.Error(ctx, ec.Recover(ctx, r))
8189 ret = graphql.Null
8190 }
8191 }()
8192 fc := &graphql.FieldContext{
8193 Object: "IOChaos",
8194 Field: field,
8195 Args: nil,
8196 IsMethod: false,
8197 IsResolver: false,
8198 }
8199
8200 ctx = graphql.WithFieldContext(ctx, fc)
8201 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8202 ctx = rctx
8203 return obj.Kind, nil
8204 })
8205 if err != nil {
8206 ec.Error(ctx, err)
8207 return graphql.Null
8208 }
8209 if resTmp == nil {
8210 if !graphql.HasFieldError(ctx, fc) {
8211 ec.Errorf(ctx, "must not be null")
8212 }
8213 return graphql.Null
8214 }
8215 res := resTmp.(string)
8216 fc.Result = res
8217 return ec.marshalNString2string(ctx, field.Selections, res)
8218 }
8219
8220 func (ec *executionContext) _IOChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8221 defer func() {
8222 if r := recover(); r != nil {
8223 ec.Error(ctx, ec.Recover(ctx, r))
8224 ret = graphql.Null
8225 }
8226 }()
8227 fc := &graphql.FieldContext{
8228 Object: "IOChaos",
8229 Field: field,
8230 Args: nil,
8231 IsMethod: false,
8232 IsResolver: false,
8233 }
8234
8235 ctx = graphql.WithFieldContext(ctx, fc)
8236 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8237 ctx = rctx
8238 return obj.APIVersion, nil
8239 })
8240 if err != nil {
8241 ec.Error(ctx, err)
8242 return graphql.Null
8243 }
8244 if resTmp == nil {
8245 if !graphql.HasFieldError(ctx, fc) {
8246 ec.Errorf(ctx, "must not be null")
8247 }
8248 return graphql.Null
8249 }
8250 res := resTmp.(string)
8251 fc.Result = res
8252 return ec.marshalNString2string(ctx, field.Selections, res)
8253 }
8254
8255 func (ec *executionContext) _IOChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8256 defer func() {
8257 if r := recover(); r != nil {
8258 ec.Error(ctx, ec.Recover(ctx, r))
8259 ret = graphql.Null
8260 }
8261 }()
8262 fc := &graphql.FieldContext{
8263 Object: "IOChaos",
8264 Field: field,
8265 Args: nil,
8266 IsMethod: false,
8267 IsResolver: false,
8268 }
8269
8270 ctx = graphql.WithFieldContext(ctx, fc)
8271 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8272 ctx = rctx
8273 return obj.Name, nil
8274 })
8275 if err != nil {
8276 ec.Error(ctx, err)
8277 return graphql.Null
8278 }
8279 if resTmp == nil {
8280 if !graphql.HasFieldError(ctx, fc) {
8281 ec.Errorf(ctx, "must not be null")
8282 }
8283 return graphql.Null
8284 }
8285 res := resTmp.(string)
8286 fc.Result = res
8287 return ec.marshalNString2string(ctx, field.Selections, res)
8288 }
8289
8290 func (ec *executionContext) _IOChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8291 defer func() {
8292 if r := recover(); r != nil {
8293 ec.Error(ctx, ec.Recover(ctx, r))
8294 ret = graphql.Null
8295 }
8296 }()
8297 fc := &graphql.FieldContext{
8298 Object: "IOChaos",
8299 Field: field,
8300 Args: nil,
8301 IsMethod: false,
8302 IsResolver: false,
8303 }
8304
8305 ctx = graphql.WithFieldContext(ctx, fc)
8306 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8307 ctx = rctx
8308 return obj.GenerateName, nil
8309 })
8310 if err != nil {
8311 ec.Error(ctx, err)
8312 return graphql.Null
8313 }
8314 if resTmp == nil {
8315 if !graphql.HasFieldError(ctx, fc) {
8316 ec.Errorf(ctx, "must not be null")
8317 }
8318 return graphql.Null
8319 }
8320 res := resTmp.(string)
8321 fc.Result = res
8322 return ec.marshalNString2string(ctx, field.Selections, res)
8323 }
8324
8325 func (ec *executionContext) _IOChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8326 defer func() {
8327 if r := recover(); r != nil {
8328 ec.Error(ctx, ec.Recover(ctx, r))
8329 ret = graphql.Null
8330 }
8331 }()
8332 fc := &graphql.FieldContext{
8333 Object: "IOChaos",
8334 Field: field,
8335 Args: nil,
8336 IsMethod: false,
8337 IsResolver: false,
8338 }
8339
8340 ctx = graphql.WithFieldContext(ctx, fc)
8341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8342 ctx = rctx
8343 return obj.Namespace, nil
8344 })
8345 if err != nil {
8346 ec.Error(ctx, err)
8347 return graphql.Null
8348 }
8349 if resTmp == nil {
8350 if !graphql.HasFieldError(ctx, fc) {
8351 ec.Errorf(ctx, "must not be null")
8352 }
8353 return graphql.Null
8354 }
8355 res := resTmp.(string)
8356 fc.Result = res
8357 return ec.marshalNString2string(ctx, field.Selections, res)
8358 }
8359
8360 func (ec *executionContext) _IOChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8361 defer func() {
8362 if r := recover(); r != nil {
8363 ec.Error(ctx, ec.Recover(ctx, r))
8364 ret = graphql.Null
8365 }
8366 }()
8367 fc := &graphql.FieldContext{
8368 Object: "IOChaos",
8369 Field: field,
8370 Args: nil,
8371 IsMethod: false,
8372 IsResolver: false,
8373 }
8374
8375 ctx = graphql.WithFieldContext(ctx, fc)
8376 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8377 ctx = rctx
8378 return obj.SelfLink, nil
8379 })
8380 if err != nil {
8381 ec.Error(ctx, err)
8382 return graphql.Null
8383 }
8384 if resTmp == nil {
8385 if !graphql.HasFieldError(ctx, fc) {
8386 ec.Errorf(ctx, "must not be null")
8387 }
8388 return graphql.Null
8389 }
8390 res := resTmp.(string)
8391 fc.Result = res
8392 return ec.marshalNString2string(ctx, field.Selections, res)
8393 }
8394
8395 func (ec *executionContext) _IOChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8396 defer func() {
8397 if r := recover(); r != nil {
8398 ec.Error(ctx, ec.Recover(ctx, r))
8399 ret = graphql.Null
8400 }
8401 }()
8402 fc := &graphql.FieldContext{
8403 Object: "IOChaos",
8404 Field: field,
8405 Args: nil,
8406 IsMethod: true,
8407 IsResolver: true,
8408 }
8409
8410 ctx = graphql.WithFieldContext(ctx, fc)
8411 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8412 ctx = rctx
8413 return ec.resolvers.IOChaos().UID(rctx, obj)
8414 })
8415 if err != nil {
8416 ec.Error(ctx, err)
8417 return graphql.Null
8418 }
8419 if resTmp == nil {
8420 if !graphql.HasFieldError(ctx, fc) {
8421 ec.Errorf(ctx, "must not be null")
8422 }
8423 return graphql.Null
8424 }
8425 res := resTmp.(string)
8426 fc.Result = res
8427 return ec.marshalNString2string(ctx, field.Selections, res)
8428 }
8429
8430 func (ec *executionContext) _IOChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8431 defer func() {
8432 if r := recover(); r != nil {
8433 ec.Error(ctx, ec.Recover(ctx, r))
8434 ret = graphql.Null
8435 }
8436 }()
8437 fc := &graphql.FieldContext{
8438 Object: "IOChaos",
8439 Field: field,
8440 Args: nil,
8441 IsMethod: false,
8442 IsResolver: false,
8443 }
8444
8445 ctx = graphql.WithFieldContext(ctx, fc)
8446 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8447 ctx = rctx
8448 return obj.ResourceVersion, nil
8449 })
8450 if err != nil {
8451 ec.Error(ctx, err)
8452 return graphql.Null
8453 }
8454 if resTmp == nil {
8455 if !graphql.HasFieldError(ctx, fc) {
8456 ec.Errorf(ctx, "must not be null")
8457 }
8458 return graphql.Null
8459 }
8460 res := resTmp.(string)
8461 fc.Result = res
8462 return ec.marshalNString2string(ctx, field.Selections, res)
8463 }
8464
8465 func (ec *executionContext) _IOChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8466 defer func() {
8467 if r := recover(); r != nil {
8468 ec.Error(ctx, ec.Recover(ctx, r))
8469 ret = graphql.Null
8470 }
8471 }()
8472 fc := &graphql.FieldContext{
8473 Object: "IOChaos",
8474 Field: field,
8475 Args: nil,
8476 IsMethod: false,
8477 IsResolver: false,
8478 }
8479
8480 ctx = graphql.WithFieldContext(ctx, fc)
8481 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8482 ctx = rctx
8483 return obj.Generation, nil
8484 })
8485 if err != nil {
8486 ec.Error(ctx, err)
8487 return graphql.Null
8488 }
8489 if resTmp == nil {
8490 if !graphql.HasFieldError(ctx, fc) {
8491 ec.Errorf(ctx, "must not be null")
8492 }
8493 return graphql.Null
8494 }
8495 res := resTmp.(int64)
8496 fc.Result = res
8497 return ec.marshalNInt2int64(ctx, field.Selections, res)
8498 }
8499
8500 func (ec *executionContext) _IOChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8501 defer func() {
8502 if r := recover(); r != nil {
8503 ec.Error(ctx, ec.Recover(ctx, r))
8504 ret = graphql.Null
8505 }
8506 }()
8507 fc := &graphql.FieldContext{
8508 Object: "IOChaos",
8509 Field: field,
8510 Args: nil,
8511 IsMethod: true,
8512 IsResolver: true,
8513 }
8514
8515 ctx = graphql.WithFieldContext(ctx, fc)
8516 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8517 ctx = rctx
8518 return ec.resolvers.IOChaos().CreationTimestamp(rctx, obj)
8519 })
8520 if err != nil {
8521 ec.Error(ctx, err)
8522 return graphql.Null
8523 }
8524 if resTmp == nil {
8525 if !graphql.HasFieldError(ctx, fc) {
8526 ec.Errorf(ctx, "must not be null")
8527 }
8528 return graphql.Null
8529 }
8530 res := resTmp.(*time.Time)
8531 fc.Result = res
8532 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
8533 }
8534
8535 func (ec *executionContext) _IOChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8536 defer func() {
8537 if r := recover(); r != nil {
8538 ec.Error(ctx, ec.Recover(ctx, r))
8539 ret = graphql.Null
8540 }
8541 }()
8542 fc := &graphql.FieldContext{
8543 Object: "IOChaos",
8544 Field: field,
8545 Args: nil,
8546 IsMethod: true,
8547 IsResolver: true,
8548 }
8549
8550 ctx = graphql.WithFieldContext(ctx, fc)
8551 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8552 ctx = rctx
8553 return ec.resolvers.IOChaos().DeletionTimestamp(rctx, obj)
8554 })
8555 if err != nil {
8556 ec.Error(ctx, err)
8557 return graphql.Null
8558 }
8559 if resTmp == nil {
8560 return graphql.Null
8561 }
8562 res := resTmp.(*time.Time)
8563 fc.Result = res
8564 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
8565 }
8566
8567 func (ec *executionContext) _IOChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8568 defer func() {
8569 if r := recover(); r != nil {
8570 ec.Error(ctx, ec.Recover(ctx, r))
8571 ret = graphql.Null
8572 }
8573 }()
8574 fc := &graphql.FieldContext{
8575 Object: "IOChaos",
8576 Field: field,
8577 Args: nil,
8578 IsMethod: false,
8579 IsResolver: false,
8580 }
8581
8582 ctx = graphql.WithFieldContext(ctx, fc)
8583 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8584 ctx = rctx
8585 return obj.DeletionGracePeriodSeconds, nil
8586 })
8587 if err != nil {
8588 ec.Error(ctx, err)
8589 return graphql.Null
8590 }
8591 if resTmp == nil {
8592 return graphql.Null
8593 }
8594 res := resTmp.(*int64)
8595 fc.Result = res
8596 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
8597 }
8598
8599 func (ec *executionContext) _IOChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8600 defer func() {
8601 if r := recover(); r != nil {
8602 ec.Error(ctx, ec.Recover(ctx, r))
8603 ret = graphql.Null
8604 }
8605 }()
8606 fc := &graphql.FieldContext{
8607 Object: "IOChaos",
8608 Field: field,
8609 Args: nil,
8610 IsMethod: true,
8611 IsResolver: true,
8612 }
8613
8614 ctx = graphql.WithFieldContext(ctx, fc)
8615 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8616 ctx = rctx
8617 return ec.resolvers.IOChaos().Labels(rctx, obj)
8618 })
8619 if err != nil {
8620 ec.Error(ctx, err)
8621 return graphql.Null
8622 }
8623 if resTmp == nil {
8624 return graphql.Null
8625 }
8626 res := resTmp.(map[string]interface{})
8627 fc.Result = res
8628 return ec.marshalOMap2map(ctx, field.Selections, res)
8629 }
8630
8631 func (ec *executionContext) _IOChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8632 defer func() {
8633 if r := recover(); r != nil {
8634 ec.Error(ctx, ec.Recover(ctx, r))
8635 ret = graphql.Null
8636 }
8637 }()
8638 fc := &graphql.FieldContext{
8639 Object: "IOChaos",
8640 Field: field,
8641 Args: nil,
8642 IsMethod: true,
8643 IsResolver: true,
8644 }
8645
8646 ctx = graphql.WithFieldContext(ctx, fc)
8647 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8648 ctx = rctx
8649 return ec.resolvers.IOChaos().Annotations(rctx, obj)
8650 })
8651 if err != nil {
8652 ec.Error(ctx, err)
8653 return graphql.Null
8654 }
8655 if resTmp == nil {
8656 return graphql.Null
8657 }
8658 res := resTmp.(map[string]interface{})
8659 fc.Result = res
8660 return ec.marshalOMap2map(ctx, field.Selections, res)
8661 }
8662
8663 func (ec *executionContext) _IOChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8664 defer func() {
8665 if r := recover(); r != nil {
8666 ec.Error(ctx, ec.Recover(ctx, r))
8667 ret = graphql.Null
8668 }
8669 }()
8670 fc := &graphql.FieldContext{
8671 Object: "IOChaos",
8672 Field: field,
8673 Args: nil,
8674 IsMethod: false,
8675 IsResolver: false,
8676 }
8677
8678 ctx = graphql.WithFieldContext(ctx, fc)
8679 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8680 ctx = rctx
8681 return obj.OwnerReferences, nil
8682 })
8683 if err != nil {
8684 ec.Error(ctx, err)
8685 return graphql.Null
8686 }
8687 if resTmp == nil {
8688 return graphql.Null
8689 }
8690 res := resTmp.([]v11.OwnerReference)
8691 fc.Result = res
8692 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
8693 }
8694
8695 func (ec *executionContext) _IOChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8696 defer func() {
8697 if r := recover(); r != nil {
8698 ec.Error(ctx, ec.Recover(ctx, r))
8699 ret = graphql.Null
8700 }
8701 }()
8702 fc := &graphql.FieldContext{
8703 Object: "IOChaos",
8704 Field: field,
8705 Args: nil,
8706 IsMethod: false,
8707 IsResolver: false,
8708 }
8709
8710 ctx = graphql.WithFieldContext(ctx, fc)
8711 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8712 ctx = rctx
8713 return obj.Finalizers, nil
8714 })
8715 if err != nil {
8716 ec.Error(ctx, err)
8717 return graphql.Null
8718 }
8719 if resTmp == nil {
8720 return graphql.Null
8721 }
8722 res := resTmp.([]string)
8723 fc.Result = res
8724 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
8725 }
8726
8727 func (ec *executionContext) _IOChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8728 defer func() {
8729 if r := recover(); r != nil {
8730 ec.Error(ctx, ec.Recover(ctx, r))
8731 ret = graphql.Null
8732 }
8733 }()
8734 fc := &graphql.FieldContext{
8735 Object: "IOChaos",
8736 Field: field,
8737 Args: nil,
8738 IsMethod: false,
8739 IsResolver: false,
8740 }
8741
8742 ctx = graphql.WithFieldContext(ctx, fc)
8743 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8744 ctx = rctx
8745 return obj.ClusterName, nil
8746 })
8747 if err != nil {
8748 ec.Error(ctx, err)
8749 return graphql.Null
8750 }
8751 if resTmp == nil {
8752 if !graphql.HasFieldError(ctx, fc) {
8753 ec.Errorf(ctx, "must not be null")
8754 }
8755 return graphql.Null
8756 }
8757 res := resTmp.(string)
8758 fc.Result = res
8759 return ec.marshalNString2string(ctx, field.Selections, res)
8760 }
8761
8762 func (ec *executionContext) _IOChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8763 defer func() {
8764 if r := recover(); r != nil {
8765 ec.Error(ctx, ec.Recover(ctx, r))
8766 ret = graphql.Null
8767 }
8768 }()
8769 fc := &graphql.FieldContext{
8770 Object: "IOChaos",
8771 Field: field,
8772 Args: nil,
8773 IsMethod: false,
8774 IsResolver: false,
8775 }
8776
8777 ctx = graphql.WithFieldContext(ctx, fc)
8778 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8779 ctx = rctx
8780 return obj.Spec, nil
8781 })
8782 if err != nil {
8783 ec.Error(ctx, err)
8784 return graphql.Null
8785 }
8786 if resTmp == nil {
8787 if !graphql.HasFieldError(ctx, fc) {
8788 ec.Errorf(ctx, "must not be null")
8789 }
8790 return graphql.Null
8791 }
8792 res := resTmp.(v1alpha1.IOChaosSpec)
8793 fc.Result = res
8794 return ec.marshalNIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosSpec(ctx, field.Selections, res)
8795 }
8796
8797 func (ec *executionContext) _IOChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8798 defer func() {
8799 if r := recover(); r != nil {
8800 ec.Error(ctx, ec.Recover(ctx, r))
8801 ret = graphql.Null
8802 }
8803 }()
8804 fc := &graphql.FieldContext{
8805 Object: "IOChaos",
8806 Field: field,
8807 Args: nil,
8808 IsMethod: false,
8809 IsResolver: false,
8810 }
8811
8812 ctx = graphql.WithFieldContext(ctx, fc)
8813 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8814 ctx = rctx
8815 return obj.Status, nil
8816 })
8817 if err != nil {
8818 ec.Error(ctx, err)
8819 return graphql.Null
8820 }
8821 if resTmp == nil {
8822 if !graphql.HasFieldError(ctx, fc) {
8823 ec.Errorf(ctx, "must not be null")
8824 }
8825 return graphql.Null
8826 }
8827 res := resTmp.(v1alpha1.IOChaosStatus)
8828 fc.Result = res
8829 return ec.marshalNIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosStatus(ctx, field.Selections, res)
8830 }
8831
8832 func (ec *executionContext) _IOChaos_podios(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaos) (ret graphql.Marshaler) {
8833 defer func() {
8834 if r := recover(); r != nil {
8835 ec.Error(ctx, ec.Recover(ctx, r))
8836 ret = graphql.Null
8837 }
8838 }()
8839 fc := &graphql.FieldContext{
8840 Object: "IOChaos",
8841 Field: field,
8842 Args: nil,
8843 IsMethod: true,
8844 IsResolver: true,
8845 }
8846
8847 ctx = graphql.WithFieldContext(ctx, fc)
8848 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8849 ctx = rctx
8850 return ec.resolvers.IOChaos().Podios(rctx, obj)
8851 })
8852 if err != nil {
8853 ec.Error(ctx, err)
8854 return graphql.Null
8855 }
8856 if resTmp == nil {
8857 return graphql.Null
8858 }
8859 res := resTmp.([]*v1alpha1.PodIOChaos)
8860 fc.Result = res
8861 return ec.marshalOPodIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosᚄ(ctx, field.Selections, res)
8862 }
8863
8864 func (ec *executionContext) _IOChaosAction_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
8865 defer func() {
8866 if r := recover(); r != nil {
8867 ec.Error(ctx, ec.Recover(ctx, r))
8868 ret = graphql.Null
8869 }
8870 }()
8871 fc := &graphql.FieldContext{
8872 Object: "IOChaosAction",
8873 Field: field,
8874 Args: nil,
8875 IsMethod: true,
8876 IsResolver: true,
8877 }
8878
8879 ctx = graphql.WithFieldContext(ctx, fc)
8880 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8881 ctx = rctx
8882 return ec.resolvers.IOChaosAction().Type(rctx, obj)
8883 })
8884 if err != nil {
8885 ec.Error(ctx, err)
8886 return graphql.Null
8887 }
8888 if resTmp == nil {
8889 if !graphql.HasFieldError(ctx, fc) {
8890 ec.Errorf(ctx, "must not be null")
8891 }
8892 return graphql.Null
8893 }
8894 res := resTmp.(string)
8895 fc.Result = res
8896 return ec.marshalNString2string(ctx, field.Selections, res)
8897 }
8898
8899 func (ec *executionContext) _IOChaosAction_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
8900 defer func() {
8901 if r := recover(); r != nil {
8902 ec.Error(ctx, ec.Recover(ctx, r))
8903 ret = graphql.Null
8904 }
8905 }()
8906 fc := &graphql.FieldContext{
8907 Object: "IOChaosAction",
8908 Field: field,
8909 Args: nil,
8910 IsMethod: false,
8911 IsResolver: false,
8912 }
8913
8914 ctx = graphql.WithFieldContext(ctx, fc)
8915 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8916 ctx = rctx
8917 return obj.Path, nil
8918 })
8919 if err != nil {
8920 ec.Error(ctx, err)
8921 return graphql.Null
8922 }
8923 if resTmp == nil {
8924 if !graphql.HasFieldError(ctx, fc) {
8925 ec.Errorf(ctx, "must not be null")
8926 }
8927 return graphql.Null
8928 }
8929 res := resTmp.(string)
8930 fc.Result = res
8931 return ec.marshalNString2string(ctx, field.Selections, res)
8932 }
8933
8934 func (ec *executionContext) _IOChaosAction_methods(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
8935 defer func() {
8936 if r := recover(); r != nil {
8937 ec.Error(ctx, ec.Recover(ctx, r))
8938 ret = graphql.Null
8939 }
8940 }()
8941 fc := &graphql.FieldContext{
8942 Object: "IOChaosAction",
8943 Field: field,
8944 Args: nil,
8945 IsMethod: true,
8946 IsResolver: true,
8947 }
8948
8949 ctx = graphql.WithFieldContext(ctx, fc)
8950 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8951 ctx = rctx
8952 return ec.resolvers.IOChaosAction().Methods(rctx, obj)
8953 })
8954 if err != nil {
8955 ec.Error(ctx, err)
8956 return graphql.Null
8957 }
8958 if resTmp == nil {
8959 return graphql.Null
8960 }
8961 res := resTmp.([]string)
8962 fc.Result = res
8963 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
8964 }
8965
8966 func (ec *executionContext) _IOChaosAction_percent(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
8967 defer func() {
8968 if r := recover(); r != nil {
8969 ec.Error(ctx, ec.Recover(ctx, r))
8970 ret = graphql.Null
8971 }
8972 }()
8973 fc := &graphql.FieldContext{
8974 Object: "IOChaosAction",
8975 Field: field,
8976 Args: nil,
8977 IsMethod: false,
8978 IsResolver: false,
8979 }
8980
8981 ctx = graphql.WithFieldContext(ctx, fc)
8982 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
8983 ctx = rctx
8984 return obj.Percent, nil
8985 })
8986 if err != nil {
8987 ec.Error(ctx, err)
8988 return graphql.Null
8989 }
8990 if resTmp == nil {
8991 return graphql.Null
8992 }
8993 res := resTmp.(int)
8994 fc.Result = res
8995 return ec.marshalOInt2int(ctx, field.Selections, res)
8996 }
8997
8998 func (ec *executionContext) _IOChaosAction_faults(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
8999 defer func() {
9000 if r := recover(); r != nil {
9001 ec.Error(ctx, ec.Recover(ctx, r))
9002 ret = graphql.Null
9003 }
9004 }()
9005 fc := &graphql.FieldContext{
9006 Object: "IOChaosAction",
9007 Field: field,
9008 Args: nil,
9009 IsMethod: false,
9010 IsResolver: false,
9011 }
9012
9013 ctx = graphql.WithFieldContext(ctx, fc)
9014 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9015 ctx = rctx
9016 return obj.Faults, nil
9017 })
9018 if err != nil {
9019 ec.Error(ctx, err)
9020 return graphql.Null
9021 }
9022 if resTmp == nil {
9023 return graphql.Null
9024 }
9025 res := resTmp.([]v1alpha1.IoFault)
9026 fc.Result = res
9027 return ec.marshalOIoFault2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFaultᚄ(ctx, field.Selections, res)
9028 }
9029
9030 func (ec *executionContext) _IOChaosAction_latency(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9031 defer func() {
9032 if r := recover(); r != nil {
9033 ec.Error(ctx, ec.Recover(ctx, r))
9034 ret = graphql.Null
9035 }
9036 }()
9037 fc := &graphql.FieldContext{
9038 Object: "IOChaosAction",
9039 Field: field,
9040 Args: nil,
9041 IsMethod: false,
9042 IsResolver: false,
9043 }
9044
9045 ctx = graphql.WithFieldContext(ctx, fc)
9046 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9047 ctx = rctx
9048 return obj.Latency, nil
9049 })
9050 if err != nil {
9051 ec.Error(ctx, err)
9052 return graphql.Null
9053 }
9054 if resTmp == nil {
9055 return graphql.Null
9056 }
9057 res := resTmp.(string)
9058 fc.Result = res
9059 return ec.marshalOString2string(ctx, field.Selections, res)
9060 }
9061
9062 func (ec *executionContext) _IOChaosAction_ino(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9063 defer func() {
9064 if r := recover(); r != nil {
9065 ec.Error(ctx, ec.Recover(ctx, r))
9066 ret = graphql.Null
9067 }
9068 }()
9069 fc := &graphql.FieldContext{
9070 Object: "IOChaosAction",
9071 Field: field,
9072 Args: nil,
9073 IsMethod: true,
9074 IsResolver: true,
9075 }
9076
9077 ctx = graphql.WithFieldContext(ctx, fc)
9078 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9079 ctx = rctx
9080 return ec.resolvers.IOChaosAction().Ino(rctx, obj)
9081 })
9082 if err != nil {
9083 ec.Error(ctx, err)
9084 return graphql.Null
9085 }
9086 if resTmp == nil {
9087 return graphql.Null
9088 }
9089 res := resTmp.(*int)
9090 fc.Result = res
9091 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9092 }
9093
9094 func (ec *executionContext) _IOChaosAction_size(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9095 defer func() {
9096 if r := recover(); r != nil {
9097 ec.Error(ctx, ec.Recover(ctx, r))
9098 ret = graphql.Null
9099 }
9100 }()
9101 fc := &graphql.FieldContext{
9102 Object: "IOChaosAction",
9103 Field: field,
9104 Args: nil,
9105 IsMethod: true,
9106 IsResolver: true,
9107 }
9108
9109 ctx = graphql.WithFieldContext(ctx, fc)
9110 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9111 ctx = rctx
9112 return ec.resolvers.IOChaosAction().Size(rctx, obj)
9113 })
9114 if err != nil {
9115 ec.Error(ctx, err)
9116 return graphql.Null
9117 }
9118 if resTmp == nil {
9119 return graphql.Null
9120 }
9121 res := resTmp.(*int)
9122 fc.Result = res
9123 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9124 }
9125
9126 func (ec *executionContext) _IOChaosAction_blocks(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9127 defer func() {
9128 if r := recover(); r != nil {
9129 ec.Error(ctx, ec.Recover(ctx, r))
9130 ret = graphql.Null
9131 }
9132 }()
9133 fc := &graphql.FieldContext{
9134 Object: "IOChaosAction",
9135 Field: field,
9136 Args: nil,
9137 IsMethod: true,
9138 IsResolver: true,
9139 }
9140
9141 ctx = graphql.WithFieldContext(ctx, fc)
9142 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9143 ctx = rctx
9144 return ec.resolvers.IOChaosAction().Blocks(rctx, obj)
9145 })
9146 if err != nil {
9147 ec.Error(ctx, err)
9148 return graphql.Null
9149 }
9150 if resTmp == nil {
9151 return graphql.Null
9152 }
9153 res := resTmp.(*int)
9154 fc.Result = res
9155 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9156 }
9157
9158 func (ec *executionContext) _IOChaosAction_atime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9159 defer func() {
9160 if r := recover(); r != nil {
9161 ec.Error(ctx, ec.Recover(ctx, r))
9162 ret = graphql.Null
9163 }
9164 }()
9165 fc := &graphql.FieldContext{
9166 Object: "IOChaosAction",
9167 Field: field,
9168 Args: nil,
9169 IsMethod: false,
9170 IsResolver: false,
9171 }
9172
9173 ctx = graphql.WithFieldContext(ctx, fc)
9174 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9175 ctx = rctx
9176 return obj.Atime, nil
9177 })
9178 if err != nil {
9179 ec.Error(ctx, err)
9180 return graphql.Null
9181 }
9182 if resTmp == nil {
9183 return graphql.Null
9184 }
9185 res := resTmp.(*v1alpha1.Timespec)
9186 fc.Result = res
9187 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
9188 }
9189
9190 func (ec *executionContext) _IOChaosAction_mtime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9191 defer func() {
9192 if r := recover(); r != nil {
9193 ec.Error(ctx, ec.Recover(ctx, r))
9194 ret = graphql.Null
9195 }
9196 }()
9197 fc := &graphql.FieldContext{
9198 Object: "IOChaosAction",
9199 Field: field,
9200 Args: nil,
9201 IsMethod: false,
9202 IsResolver: false,
9203 }
9204
9205 ctx = graphql.WithFieldContext(ctx, fc)
9206 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9207 ctx = rctx
9208 return obj.Mtime, nil
9209 })
9210 if err != nil {
9211 ec.Error(ctx, err)
9212 return graphql.Null
9213 }
9214 if resTmp == nil {
9215 return graphql.Null
9216 }
9217 res := resTmp.(*v1alpha1.Timespec)
9218 fc.Result = res
9219 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
9220 }
9221
9222 func (ec *executionContext) _IOChaosAction_ctime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9223 defer func() {
9224 if r := recover(); r != nil {
9225 ec.Error(ctx, ec.Recover(ctx, r))
9226 ret = graphql.Null
9227 }
9228 }()
9229 fc := &graphql.FieldContext{
9230 Object: "IOChaosAction",
9231 Field: field,
9232 Args: nil,
9233 IsMethod: false,
9234 IsResolver: false,
9235 }
9236
9237 ctx = graphql.WithFieldContext(ctx, fc)
9238 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9239 ctx = rctx
9240 return obj.Ctime, nil
9241 })
9242 if err != nil {
9243 ec.Error(ctx, err)
9244 return graphql.Null
9245 }
9246 if resTmp == nil {
9247 return graphql.Null
9248 }
9249 res := resTmp.(*v1alpha1.Timespec)
9250 fc.Result = res
9251 return ec.marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx, field.Selections, res)
9252 }
9253
9254 func (ec *executionContext) _IOChaosAction_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9255 defer func() {
9256 if r := recover(); r != nil {
9257 ec.Error(ctx, ec.Recover(ctx, r))
9258 ret = graphql.Null
9259 }
9260 }()
9261 fc := &graphql.FieldContext{
9262 Object: "IOChaosAction",
9263 Field: field,
9264 Args: nil,
9265 IsMethod: true,
9266 IsResolver: true,
9267 }
9268
9269 ctx = graphql.WithFieldContext(ctx, fc)
9270 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9271 ctx = rctx
9272 return ec.resolvers.IOChaosAction().Kind(rctx, obj)
9273 })
9274 if err != nil {
9275 ec.Error(ctx, err)
9276 return graphql.Null
9277 }
9278 if resTmp == nil {
9279 return graphql.Null
9280 }
9281 res := resTmp.(*string)
9282 fc.Result = res
9283 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
9284 }
9285
9286 func (ec *executionContext) _IOChaosAction_perm(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9287 defer func() {
9288 if r := recover(); r != nil {
9289 ec.Error(ctx, ec.Recover(ctx, r))
9290 ret = graphql.Null
9291 }
9292 }()
9293 fc := &graphql.FieldContext{
9294 Object: "IOChaosAction",
9295 Field: field,
9296 Args: nil,
9297 IsMethod: true,
9298 IsResolver: true,
9299 }
9300
9301 ctx = graphql.WithFieldContext(ctx, fc)
9302 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9303 ctx = rctx
9304 return ec.resolvers.IOChaosAction().Perm(rctx, obj)
9305 })
9306 if err != nil {
9307 ec.Error(ctx, err)
9308 return graphql.Null
9309 }
9310 if resTmp == nil {
9311 return graphql.Null
9312 }
9313 res := resTmp.(*int)
9314 fc.Result = res
9315 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9316 }
9317
9318 func (ec *executionContext) _IOChaosAction_nlink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9319 defer func() {
9320 if r := recover(); r != nil {
9321 ec.Error(ctx, ec.Recover(ctx, r))
9322 ret = graphql.Null
9323 }
9324 }()
9325 fc := &graphql.FieldContext{
9326 Object: "IOChaosAction",
9327 Field: field,
9328 Args: nil,
9329 IsMethod: true,
9330 IsResolver: true,
9331 }
9332
9333 ctx = graphql.WithFieldContext(ctx, fc)
9334 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9335 ctx = rctx
9336 return ec.resolvers.IOChaosAction().Nlink(rctx, obj)
9337 })
9338 if err != nil {
9339 ec.Error(ctx, err)
9340 return graphql.Null
9341 }
9342 if resTmp == nil {
9343 return graphql.Null
9344 }
9345 res := resTmp.(*int)
9346 fc.Result = res
9347 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9348 }
9349
9350 func (ec *executionContext) _IOChaosAction_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9351 defer func() {
9352 if r := recover(); r != nil {
9353 ec.Error(ctx, ec.Recover(ctx, r))
9354 ret = graphql.Null
9355 }
9356 }()
9357 fc := &graphql.FieldContext{
9358 Object: "IOChaosAction",
9359 Field: field,
9360 Args: nil,
9361 IsMethod: true,
9362 IsResolver: true,
9363 }
9364
9365 ctx = graphql.WithFieldContext(ctx, fc)
9366 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9367 ctx = rctx
9368 return ec.resolvers.IOChaosAction().UID(rctx, obj)
9369 })
9370 if err != nil {
9371 ec.Error(ctx, err)
9372 return graphql.Null
9373 }
9374 if resTmp == nil {
9375 return graphql.Null
9376 }
9377 res := resTmp.(*int)
9378 fc.Result = res
9379 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9380 }
9381
9382 func (ec *executionContext) _IOChaosAction_gid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9383 defer func() {
9384 if r := recover(); r != nil {
9385 ec.Error(ctx, ec.Recover(ctx, r))
9386 ret = graphql.Null
9387 }
9388 }()
9389 fc := &graphql.FieldContext{
9390 Object: "IOChaosAction",
9391 Field: field,
9392 Args: nil,
9393 IsMethod: true,
9394 IsResolver: true,
9395 }
9396
9397 ctx = graphql.WithFieldContext(ctx, fc)
9398 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9399 ctx = rctx
9400 return ec.resolvers.IOChaosAction().Gid(rctx, obj)
9401 })
9402 if err != nil {
9403 ec.Error(ctx, err)
9404 return graphql.Null
9405 }
9406 if resTmp == nil {
9407 return graphql.Null
9408 }
9409 res := resTmp.(*int)
9410 fc.Result = res
9411 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9412 }
9413
9414 func (ec *executionContext) _IOChaosAction_rdev(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9415 defer func() {
9416 if r := recover(); r != nil {
9417 ec.Error(ctx, ec.Recover(ctx, r))
9418 ret = graphql.Null
9419 }
9420 }()
9421 fc := &graphql.FieldContext{
9422 Object: "IOChaosAction",
9423 Field: field,
9424 Args: nil,
9425 IsMethod: true,
9426 IsResolver: true,
9427 }
9428
9429 ctx = graphql.WithFieldContext(ctx, fc)
9430 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9431 ctx = rctx
9432 return ec.resolvers.IOChaosAction().Rdev(rctx, obj)
9433 })
9434 if err != nil {
9435 ec.Error(ctx, err)
9436 return graphql.Null
9437 }
9438 if resTmp == nil {
9439 return graphql.Null
9440 }
9441 res := resTmp.(*int)
9442 fc.Result = res
9443 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9444 }
9445
9446 func (ec *executionContext) _IOChaosAction_filling(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9447 defer func() {
9448 if r := recover(); r != nil {
9449 ec.Error(ctx, ec.Recover(ctx, r))
9450 ret = graphql.Null
9451 }
9452 }()
9453 fc := &graphql.FieldContext{
9454 Object: "IOChaosAction",
9455 Field: field,
9456 Args: nil,
9457 IsMethod: true,
9458 IsResolver: true,
9459 }
9460
9461 ctx = graphql.WithFieldContext(ctx, fc)
9462 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9463 ctx = rctx
9464 return ec.resolvers.IOChaosAction().Filling(rctx, obj)
9465 })
9466 if err != nil {
9467 ec.Error(ctx, err)
9468 return graphql.Null
9469 }
9470 if resTmp == nil {
9471 return graphql.Null
9472 }
9473 res := resTmp.(*string)
9474 fc.Result = res
9475 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
9476 }
9477
9478 func (ec *executionContext) _IOChaosAction_maxOccurrences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9479 defer func() {
9480 if r := recover(); r != nil {
9481 ec.Error(ctx, ec.Recover(ctx, r))
9482 ret = graphql.Null
9483 }
9484 }()
9485 fc := &graphql.FieldContext{
9486 Object: "IOChaosAction",
9487 Field: field,
9488 Args: nil,
9489 IsMethod: false,
9490 IsResolver: false,
9491 }
9492
9493 ctx = graphql.WithFieldContext(ctx, fc)
9494 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9495 ctx = rctx
9496 return obj.MaxOccurrences, nil
9497 })
9498 if err != nil {
9499 ec.Error(ctx, err)
9500 return graphql.Null
9501 }
9502 if resTmp == nil {
9503 return graphql.Null
9504 }
9505 res := resTmp.(int64)
9506 fc.Result = res
9507 return ec.marshalOInt2int64(ctx, field.Selections, res)
9508 }
9509
9510 func (ec *executionContext) _IOChaosAction_maxLength(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9511 defer func() {
9512 if r := recover(); r != nil {
9513 ec.Error(ctx, ec.Recover(ctx, r))
9514 ret = graphql.Null
9515 }
9516 }()
9517 fc := &graphql.FieldContext{
9518 Object: "IOChaosAction",
9519 Field: field,
9520 Args: nil,
9521 IsMethod: false,
9522 IsResolver: false,
9523 }
9524
9525 ctx = graphql.WithFieldContext(ctx, fc)
9526 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9527 ctx = rctx
9528 return obj.MaxLength, nil
9529 })
9530 if err != nil {
9531 ec.Error(ctx, err)
9532 return graphql.Null
9533 }
9534 if resTmp == nil {
9535 return graphql.Null
9536 }
9537 res := resTmp.(int64)
9538 fc.Result = res
9539 return ec.marshalOInt2int64(ctx, field.Selections, res)
9540 }
9541
9542 func (ec *executionContext) _IOChaosAction_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosAction) (ret graphql.Marshaler) {
9543 defer func() {
9544 if r := recover(); r != nil {
9545 ec.Error(ctx, ec.Recover(ctx, r))
9546 ret = graphql.Null
9547 }
9548 }()
9549 fc := &graphql.FieldContext{
9550 Object: "IOChaosAction",
9551 Field: field,
9552 Args: nil,
9553 IsMethod: false,
9554 IsResolver: false,
9555 }
9556
9557 ctx = graphql.WithFieldContext(ctx, fc)
9558 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9559 ctx = rctx
9560 return obj.Source, nil
9561 })
9562 if err != nil {
9563 ec.Error(ctx, err)
9564 return graphql.Null
9565 }
9566 if resTmp == nil {
9567 if !graphql.HasFieldError(ctx, fc) {
9568 ec.Errorf(ctx, "must not be null")
9569 }
9570 return graphql.Null
9571 }
9572 res := resTmp.(string)
9573 fc.Result = res
9574 return ec.marshalNString2string(ctx, field.Selections, res)
9575 }
9576
9577 func (ec *executionContext) _IOChaosSpec_containerNames(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9578 defer func() {
9579 if r := recover(); r != nil {
9580 ec.Error(ctx, ec.Recover(ctx, r))
9581 ret = graphql.Null
9582 }
9583 }()
9584 fc := &graphql.FieldContext{
9585 Object: "IOChaosSpec",
9586 Field: field,
9587 Args: nil,
9588 IsMethod: false,
9589 IsResolver: false,
9590 }
9591
9592 ctx = graphql.WithFieldContext(ctx, fc)
9593 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9594 ctx = rctx
9595 return obj.ContainerNames, nil
9596 })
9597 if err != nil {
9598 ec.Error(ctx, err)
9599 return graphql.Null
9600 }
9601 if resTmp == nil {
9602 return graphql.Null
9603 }
9604 res := resTmp.([]string)
9605 fc.Result = res
9606 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
9607 }
9608
9609 func (ec *executionContext) _IOChaosSpec_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9610 defer func() {
9611 if r := recover(); r != nil {
9612 ec.Error(ctx, ec.Recover(ctx, r))
9613 ret = graphql.Null
9614 }
9615 }()
9616 fc := &graphql.FieldContext{
9617 Object: "IOChaosSpec",
9618 Field: field,
9619 Args: nil,
9620 IsMethod: false,
9621 IsResolver: false,
9622 }
9623
9624 ctx = graphql.WithFieldContext(ctx, fc)
9625 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9626 ctx = rctx
9627 return obj.Selector, nil
9628 })
9629 if err != nil {
9630 ec.Error(ctx, err)
9631 return graphql.Null
9632 }
9633 if resTmp == nil {
9634 if !graphql.HasFieldError(ctx, fc) {
9635 ec.Errorf(ctx, "must not be null")
9636 }
9637 return graphql.Null
9638 }
9639 res := resTmp.(v1alpha1.PodSelectorSpec)
9640 fc.Result = res
9641 return ec.marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx, field.Selections, res)
9642 }
9643
9644 func (ec *executionContext) _IOChaosSpec_mode(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9645 defer func() {
9646 if r := recover(); r != nil {
9647 ec.Error(ctx, ec.Recover(ctx, r))
9648 ret = graphql.Null
9649 }
9650 }()
9651 fc := &graphql.FieldContext{
9652 Object: "IOChaosSpec",
9653 Field: field,
9654 Args: nil,
9655 IsMethod: true,
9656 IsResolver: true,
9657 }
9658
9659 ctx = graphql.WithFieldContext(ctx, fc)
9660 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9661 ctx = rctx
9662 return ec.resolvers.IOChaosSpec().Mode(rctx, obj)
9663 })
9664 if err != nil {
9665 ec.Error(ctx, err)
9666 return graphql.Null
9667 }
9668 if resTmp == nil {
9669 if !graphql.HasFieldError(ctx, fc) {
9670 ec.Errorf(ctx, "must not be null")
9671 }
9672 return graphql.Null
9673 }
9674 res := resTmp.(string)
9675 fc.Result = res
9676 return ec.marshalNString2string(ctx, field.Selections, res)
9677 }
9678
9679 func (ec *executionContext) _IOChaosSpec_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9680 defer func() {
9681 if r := recover(); r != nil {
9682 ec.Error(ctx, ec.Recover(ctx, r))
9683 ret = graphql.Null
9684 }
9685 }()
9686 fc := &graphql.FieldContext{
9687 Object: "IOChaosSpec",
9688 Field: field,
9689 Args: nil,
9690 IsMethod: false,
9691 IsResolver: false,
9692 }
9693
9694 ctx = graphql.WithFieldContext(ctx, fc)
9695 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9696 ctx = rctx
9697 return obj.Value, nil
9698 })
9699 if err != nil {
9700 ec.Error(ctx, err)
9701 return graphql.Null
9702 }
9703 if resTmp == nil {
9704 return graphql.Null
9705 }
9706 res := resTmp.(string)
9707 fc.Result = res
9708 return ec.marshalOString2string(ctx, field.Selections, res)
9709 }
9710
9711 func (ec *executionContext) _IOChaosSpec_action(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9712 defer func() {
9713 if r := recover(); r != nil {
9714 ec.Error(ctx, ec.Recover(ctx, r))
9715 ret = graphql.Null
9716 }
9717 }()
9718 fc := &graphql.FieldContext{
9719 Object: "IOChaosSpec",
9720 Field: field,
9721 Args: nil,
9722 IsMethod: true,
9723 IsResolver: true,
9724 }
9725
9726 ctx = graphql.WithFieldContext(ctx, fc)
9727 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9728 ctx = rctx
9729 return ec.resolvers.IOChaosSpec().Action(rctx, obj)
9730 })
9731 if err != nil {
9732 ec.Error(ctx, err)
9733 return graphql.Null
9734 }
9735 if resTmp == nil {
9736 if !graphql.HasFieldError(ctx, fc) {
9737 ec.Errorf(ctx, "must not be null")
9738 }
9739 return graphql.Null
9740 }
9741 res := resTmp.(string)
9742 fc.Result = res
9743 return ec.marshalNString2string(ctx, field.Selections, res)
9744 }
9745
9746 func (ec *executionContext) _IOChaosSpec_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9747 defer func() {
9748 if r := recover(); r != nil {
9749 ec.Error(ctx, ec.Recover(ctx, r))
9750 ret = graphql.Null
9751 }
9752 }()
9753 fc := &graphql.FieldContext{
9754 Object: "IOChaosSpec",
9755 Field: field,
9756 Args: nil,
9757 IsMethod: false,
9758 IsResolver: false,
9759 }
9760
9761 ctx = graphql.WithFieldContext(ctx, fc)
9762 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9763 ctx = rctx
9764 return obj.Delay, nil
9765 })
9766 if err != nil {
9767 ec.Error(ctx, err)
9768 return graphql.Null
9769 }
9770 if resTmp == nil {
9771 return graphql.Null
9772 }
9773 res := resTmp.(string)
9774 fc.Result = res
9775 return ec.marshalOString2string(ctx, field.Selections, res)
9776 }
9777
9778 func (ec *executionContext) _IOChaosSpec_errno(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9779 defer func() {
9780 if r := recover(); r != nil {
9781 ec.Error(ctx, ec.Recover(ctx, r))
9782 ret = graphql.Null
9783 }
9784 }()
9785 fc := &graphql.FieldContext{
9786 Object: "IOChaosSpec",
9787 Field: field,
9788 Args: nil,
9789 IsMethod: true,
9790 IsResolver: true,
9791 }
9792
9793 ctx = graphql.WithFieldContext(ctx, fc)
9794 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9795 ctx = rctx
9796 return ec.resolvers.IOChaosSpec().Errno(rctx, obj)
9797 })
9798 if err != nil {
9799 ec.Error(ctx, err)
9800 return graphql.Null
9801 }
9802 if resTmp == nil {
9803 return graphql.Null
9804 }
9805 res := resTmp.(*int)
9806 fc.Result = res
9807 return ec.marshalOInt2ᚖint(ctx, field.Selections, res)
9808 }
9809
9810 func (ec *executionContext) _IOChaosSpec_attr(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9811 defer func() {
9812 if r := recover(); r != nil {
9813 ec.Error(ctx, ec.Recover(ctx, r))
9814 ret = graphql.Null
9815 }
9816 }()
9817 fc := &graphql.FieldContext{
9818 Object: "IOChaosSpec",
9819 Field: field,
9820 Args: nil,
9821 IsMethod: false,
9822 IsResolver: false,
9823 }
9824
9825 ctx = graphql.WithFieldContext(ctx, fc)
9826 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9827 ctx = rctx
9828 return obj.Attr, nil
9829 })
9830 if err != nil {
9831 ec.Error(ctx, err)
9832 return graphql.Null
9833 }
9834 if resTmp == nil {
9835 return graphql.Null
9836 }
9837 res := resTmp.(*v1alpha1.AttrOverrideSpec)
9838 fc.Result = res
9839 return ec.marshalOAttrOverrideSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐAttrOverrideSpec(ctx, field.Selections, res)
9840 }
9841
9842 func (ec *executionContext) _IOChaosSpec_mistake(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9843 defer func() {
9844 if r := recover(); r != nil {
9845 ec.Error(ctx, ec.Recover(ctx, r))
9846 ret = graphql.Null
9847 }
9848 }()
9849 fc := &graphql.FieldContext{
9850 Object: "IOChaosSpec",
9851 Field: field,
9852 Args: nil,
9853 IsMethod: false,
9854 IsResolver: false,
9855 }
9856
9857 ctx = graphql.WithFieldContext(ctx, fc)
9858 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9859 ctx = rctx
9860 return obj.Mistake, nil
9861 })
9862 if err != nil {
9863 ec.Error(ctx, err)
9864 return graphql.Null
9865 }
9866 if resTmp == nil {
9867 return graphql.Null
9868 }
9869 res := resTmp.(*v1alpha1.MistakeSpec)
9870 fc.Result = res
9871 return ec.marshalOMistakeSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐMistakeSpec(ctx, field.Selections, res)
9872 }
9873
9874 func (ec *executionContext) _IOChaosSpec_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9875 defer func() {
9876 if r := recover(); r != nil {
9877 ec.Error(ctx, ec.Recover(ctx, r))
9878 ret = graphql.Null
9879 }
9880 }()
9881 fc := &graphql.FieldContext{
9882 Object: "IOChaosSpec",
9883 Field: field,
9884 Args: nil,
9885 IsMethod: false,
9886 IsResolver: false,
9887 }
9888
9889 ctx = graphql.WithFieldContext(ctx, fc)
9890 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9891 ctx = rctx
9892 return obj.Path, nil
9893 })
9894 if err != nil {
9895 ec.Error(ctx, err)
9896 return graphql.Null
9897 }
9898 if resTmp == nil {
9899 return graphql.Null
9900 }
9901 res := resTmp.(string)
9902 fc.Result = res
9903 return ec.marshalOString2string(ctx, field.Selections, res)
9904 }
9905
9906 func (ec *executionContext) _IOChaosSpec_methods(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9907 defer func() {
9908 if r := recover(); r != nil {
9909 ec.Error(ctx, ec.Recover(ctx, r))
9910 ret = graphql.Null
9911 }
9912 }()
9913 fc := &graphql.FieldContext{
9914 Object: "IOChaosSpec",
9915 Field: field,
9916 Args: nil,
9917 IsMethod: true,
9918 IsResolver: true,
9919 }
9920
9921 ctx = graphql.WithFieldContext(ctx, fc)
9922 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9923 ctx = rctx
9924 return ec.resolvers.IOChaosSpec().Methods(rctx, obj)
9925 })
9926 if err != nil {
9927 ec.Error(ctx, err)
9928 return graphql.Null
9929 }
9930 if resTmp == nil {
9931 return graphql.Null
9932 }
9933 res := resTmp.([]string)
9934 fc.Result = res
9935 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
9936 }
9937
9938 func (ec *executionContext) _IOChaosSpec_percent(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9939 defer func() {
9940 if r := recover(); r != nil {
9941 ec.Error(ctx, ec.Recover(ctx, r))
9942 ret = graphql.Null
9943 }
9944 }()
9945 fc := &graphql.FieldContext{
9946 Object: "IOChaosSpec",
9947 Field: field,
9948 Args: nil,
9949 IsMethod: false,
9950 IsResolver: false,
9951 }
9952
9953 ctx = graphql.WithFieldContext(ctx, fc)
9954 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9955 ctx = rctx
9956 return obj.Percent, nil
9957 })
9958 if err != nil {
9959 ec.Error(ctx, err)
9960 return graphql.Null
9961 }
9962 if resTmp == nil {
9963 return graphql.Null
9964 }
9965 res := resTmp.(int)
9966 fc.Result = res
9967 return ec.marshalOInt2int(ctx, field.Selections, res)
9968 }
9969
9970 func (ec *executionContext) _IOChaosSpec_volumePath(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
9971 defer func() {
9972 if r := recover(); r != nil {
9973 ec.Error(ctx, ec.Recover(ctx, r))
9974 ret = graphql.Null
9975 }
9976 }()
9977 fc := &graphql.FieldContext{
9978 Object: "IOChaosSpec",
9979 Field: field,
9980 Args: nil,
9981 IsMethod: false,
9982 IsResolver: false,
9983 }
9984
9985 ctx = graphql.WithFieldContext(ctx, fc)
9986 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
9987 ctx = rctx
9988 return obj.VolumePath, nil
9989 })
9990 if err != nil {
9991 ec.Error(ctx, err)
9992 return graphql.Null
9993 }
9994 if resTmp == nil {
9995 if !graphql.HasFieldError(ctx, fc) {
9996 ec.Errorf(ctx, "must not be null")
9997 }
9998 return graphql.Null
9999 }
10000 res := resTmp.(string)
10001 fc.Result = res
10002 return ec.marshalNString2string(ctx, field.Selections, res)
10003 }
10004
10005 func (ec *executionContext) _IOChaosSpec_duration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosSpec) (ret graphql.Marshaler) {
10006 defer func() {
10007 if r := recover(); r != nil {
10008 ec.Error(ctx, ec.Recover(ctx, r))
10009 ret = graphql.Null
10010 }
10011 }()
10012 fc := &graphql.FieldContext{
10013 Object: "IOChaosSpec",
10014 Field: field,
10015 Args: nil,
10016 IsMethod: false,
10017 IsResolver: false,
10018 }
10019
10020 ctx = graphql.WithFieldContext(ctx, fc)
10021 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10022 ctx = rctx
10023 return obj.Duration, nil
10024 })
10025 if err != nil {
10026 ec.Error(ctx, err)
10027 return graphql.Null
10028 }
10029 if resTmp == nil {
10030 return graphql.Null
10031 }
10032 res := resTmp.(*string)
10033 fc.Result = res
10034 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
10035 }
10036
10037 func (ec *executionContext) _IOChaosStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosStatus) (ret graphql.Marshaler) {
10038 defer func() {
10039 if r := recover(); r != nil {
10040 ec.Error(ctx, ec.Recover(ctx, r))
10041 ret = graphql.Null
10042 }
10043 }()
10044 fc := &graphql.FieldContext{
10045 Object: "IOChaosStatus",
10046 Field: field,
10047 Args: nil,
10048 IsMethod: false,
10049 IsResolver: false,
10050 }
10051
10052 ctx = graphql.WithFieldContext(ctx, fc)
10053 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10054 ctx = rctx
10055 return obj.Conditions, nil
10056 })
10057 if err != nil {
10058 ec.Error(ctx, err)
10059 return graphql.Null
10060 }
10061 if resTmp == nil {
10062 return graphql.Null
10063 }
10064 res := resTmp.([]v1alpha1.ChaosCondition)
10065 fc.Result = res
10066 return ec.marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx, field.Selections, res)
10067 }
10068
10069 func (ec *executionContext) _IOChaosStatus_experiment(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosStatus) (ret graphql.Marshaler) {
10070 defer func() {
10071 if r := recover(); r != nil {
10072 ec.Error(ctx, ec.Recover(ctx, r))
10073 ret = graphql.Null
10074 }
10075 }()
10076 fc := &graphql.FieldContext{
10077 Object: "IOChaosStatus",
10078 Field: field,
10079 Args: nil,
10080 IsMethod: false,
10081 IsResolver: false,
10082 }
10083
10084 ctx = graphql.WithFieldContext(ctx, fc)
10085 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10086 ctx = rctx
10087 return obj.Experiment, nil
10088 })
10089 if err != nil {
10090 ec.Error(ctx, err)
10091 return graphql.Null
10092 }
10093 if resTmp == nil {
10094 return graphql.Null
10095 }
10096 res := resTmp.(v1alpha1.ExperimentStatus)
10097 fc.Result = res
10098 return ec.marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx, field.Selections, res)
10099 }
10100
10101 func (ec *executionContext) _IOChaosStatus_instances(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IOChaosStatus) (ret graphql.Marshaler) {
10102 defer func() {
10103 if r := recover(); r != nil {
10104 ec.Error(ctx, ec.Recover(ctx, r))
10105 ret = graphql.Null
10106 }
10107 }()
10108 fc := &graphql.FieldContext{
10109 Object: "IOChaosStatus",
10110 Field: field,
10111 Args: nil,
10112 IsMethod: true,
10113 IsResolver: true,
10114 }
10115
10116 ctx = graphql.WithFieldContext(ctx, fc)
10117 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10118 ctx = rctx
10119 return ec.resolvers.IOChaosStatus().Instances(rctx, obj)
10120 })
10121 if err != nil {
10122 ec.Error(ctx, err)
10123 return graphql.Null
10124 }
10125 if resTmp == nil {
10126 return graphql.Null
10127 }
10128 res := resTmp.(map[string]interface{})
10129 fc.Result = res
10130 return ec.marshalOMap2map(ctx, field.Selections, res)
10131 }
10132
10133 func (ec *executionContext) _IoFault_errno(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IoFault) (ret graphql.Marshaler) {
10134 defer func() {
10135 if r := recover(); r != nil {
10136 ec.Error(ctx, ec.Recover(ctx, r))
10137 ret = graphql.Null
10138 }
10139 }()
10140 fc := &graphql.FieldContext{
10141 Object: "IoFault",
10142 Field: field,
10143 Args: nil,
10144 IsMethod: true,
10145 IsResolver: true,
10146 }
10147
10148 ctx = graphql.WithFieldContext(ctx, fc)
10149 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10150 ctx = rctx
10151 return ec.resolvers.IoFault().Errno(rctx, obj)
10152 })
10153 if err != nil {
10154 ec.Error(ctx, err)
10155 return graphql.Null
10156 }
10157 if resTmp == nil {
10158 if !graphql.HasFieldError(ctx, fc) {
10159 ec.Errorf(ctx, "must not be null")
10160 }
10161 return graphql.Null
10162 }
10163 res := resTmp.(int)
10164 fc.Result = res
10165 return ec.marshalNInt2int(ctx, field.Selections, res)
10166 }
10167
10168 func (ec *executionContext) _IoFault_weight(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.IoFault) (ret graphql.Marshaler) {
10169 defer func() {
10170 if r := recover(); r != nil {
10171 ec.Error(ctx, ec.Recover(ctx, r))
10172 ret = graphql.Null
10173 }
10174 }()
10175 fc := &graphql.FieldContext{
10176 Object: "IoFault",
10177 Field: field,
10178 Args: nil,
10179 IsMethod: false,
10180 IsResolver: false,
10181 }
10182
10183 ctx = graphql.WithFieldContext(ctx, fc)
10184 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10185 ctx = rctx
10186 return obj.Weight, nil
10187 })
10188 if err != nil {
10189 ec.Error(ctx, err)
10190 return graphql.Null
10191 }
10192 if resTmp == nil {
10193 if !graphql.HasFieldError(ctx, fc) {
10194 ec.Errorf(ctx, "must not be null")
10195 }
10196 return graphql.Null
10197 }
10198 res := resTmp.(int32)
10199 fc.Result = res
10200 return ec.marshalNInt2int32(ctx, field.Selections, res)
10201 }
10202
10203 func (ec *executionContext) _Logger_component(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) {
10204 defer func() {
10205 if r := recover(); r != nil {
10206 ec.Error(ctx, ec.Recover(ctx, r))
10207 ret = nil
10208 }
10209 }()
10210 fc := &graphql.FieldContext{
10211 Object: "Logger",
10212 Field: field,
10213 Args: nil,
10214 IsMethod: true,
10215 IsResolver: true,
10216 }
10217
10218 ctx = graphql.WithFieldContext(ctx, fc)
10219 rawArgs := field.ArgumentMap(ec.Variables)
10220 args, err := ec.field_Logger_component_args(ctx, rawArgs)
10221 if err != nil {
10222 ec.Error(ctx, err)
10223 return nil
10224 }
10225 fc.Args = args
10226 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10227 ctx = rctx
10228 return ec.resolvers.Logger().Component(rctx, args["ns"].(string), args["component"].(model.Component))
10229 })
10230 if err != nil {
10231 ec.Error(ctx, err)
10232 return nil
10233 }
10234 if resTmp == nil {
10235 if !graphql.HasFieldError(ctx, fc) {
10236 ec.Errorf(ctx, "must not be null")
10237 }
10238 return nil
10239 }
10240 return func() graphql.Marshaler {
10241 res, ok := <-resTmp.(<-chan string)
10242 if !ok {
10243 return nil
10244 }
10245 return graphql.WriterFunc(func(w io.Writer) {
10246 w.Write([]byte{'{'})
10247 graphql.MarshalString(field.Alias).MarshalGQL(w)
10248 w.Write([]byte{':'})
10249 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w)
10250 w.Write([]byte{'}'})
10251 })
10252 }
10253 }
10254
10255 func (ec *executionContext) _Logger_pod(ctx context.Context, field graphql.CollectedField) (ret func() graphql.Marshaler) {
10256 defer func() {
10257 if r := recover(); r != nil {
10258 ec.Error(ctx, ec.Recover(ctx, r))
10259 ret = nil
10260 }
10261 }()
10262 fc := &graphql.FieldContext{
10263 Object: "Logger",
10264 Field: field,
10265 Args: nil,
10266 IsMethod: true,
10267 IsResolver: true,
10268 }
10269
10270 ctx = graphql.WithFieldContext(ctx, fc)
10271 rawArgs := field.ArgumentMap(ec.Variables)
10272 args, err := ec.field_Logger_pod_args(ctx, rawArgs)
10273 if err != nil {
10274 ec.Error(ctx, err)
10275 return nil
10276 }
10277 fc.Args = args
10278 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10279 ctx = rctx
10280 return ec.resolvers.Logger().Pod(rctx, args["ns"].(string), args["name"].(string))
10281 })
10282 if err != nil {
10283 ec.Error(ctx, err)
10284 return nil
10285 }
10286 if resTmp == nil {
10287 if !graphql.HasFieldError(ctx, fc) {
10288 ec.Errorf(ctx, "must not be null")
10289 }
10290 return nil
10291 }
10292 return func() graphql.Marshaler {
10293 res, ok := <-resTmp.(<-chan string)
10294 if !ok {
10295 return nil
10296 }
10297 return graphql.WriterFunc(func(w io.Writer) {
10298 w.Write([]byte{'{'})
10299 graphql.MarshalString(field.Alias).MarshalGQL(w)
10300 w.Write([]byte{':'})
10301 ec.marshalNString2string(ctx, field.Selections, res).MarshalGQL(w)
10302 w.Write([]byte{'}'})
10303 })
10304 }
10305 }
10306
10307 func (ec *executionContext) _LossSpec_loss(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.LossSpec) (ret graphql.Marshaler) {
10308 defer func() {
10309 if r := recover(); r != nil {
10310 ec.Error(ctx, ec.Recover(ctx, r))
10311 ret = graphql.Null
10312 }
10313 }()
10314 fc := &graphql.FieldContext{
10315 Object: "LossSpec",
10316 Field: field,
10317 Args: nil,
10318 IsMethod: false,
10319 IsResolver: false,
10320 }
10321
10322 ctx = graphql.WithFieldContext(ctx, fc)
10323 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10324 ctx = rctx
10325 return obj.Loss, nil
10326 })
10327 if err != nil {
10328 ec.Error(ctx, err)
10329 return graphql.Null
10330 }
10331 if resTmp == nil {
10332 if !graphql.HasFieldError(ctx, fc) {
10333 ec.Errorf(ctx, "must not be null")
10334 }
10335 return graphql.Null
10336 }
10337 res := resTmp.(string)
10338 fc.Result = res
10339 return ec.marshalNString2string(ctx, field.Selections, res)
10340 }
10341
10342 func (ec *executionContext) _LossSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.LossSpec) (ret graphql.Marshaler) {
10343 defer func() {
10344 if r := recover(); r != nil {
10345 ec.Error(ctx, ec.Recover(ctx, r))
10346 ret = graphql.Null
10347 }
10348 }()
10349 fc := &graphql.FieldContext{
10350 Object: "LossSpec",
10351 Field: field,
10352 Args: nil,
10353 IsMethod: false,
10354 IsResolver: false,
10355 }
10356
10357 ctx = graphql.WithFieldContext(ctx, fc)
10358 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10359 ctx = rctx
10360 return obj.Correlation, nil
10361 })
10362 if err != nil {
10363 ec.Error(ctx, err)
10364 return graphql.Null
10365 }
10366 if resTmp == nil {
10367 return graphql.Null
10368 }
10369 res := resTmp.(string)
10370 fc.Result = res
10371 return ec.marshalOString2string(ctx, field.Selections, res)
10372 }
10373
10374 func (ec *executionContext) _MistakeSpec_filling(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MistakeSpec) (ret graphql.Marshaler) {
10375 defer func() {
10376 if r := recover(); r != nil {
10377 ec.Error(ctx, ec.Recover(ctx, r))
10378 ret = graphql.Null
10379 }
10380 }()
10381 fc := &graphql.FieldContext{
10382 Object: "MistakeSpec",
10383 Field: field,
10384 Args: nil,
10385 IsMethod: true,
10386 IsResolver: true,
10387 }
10388
10389 ctx = graphql.WithFieldContext(ctx, fc)
10390 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10391 ctx = rctx
10392 return ec.resolvers.MistakeSpec().Filling(rctx, obj)
10393 })
10394 if err != nil {
10395 ec.Error(ctx, err)
10396 return graphql.Null
10397 }
10398 if resTmp == nil {
10399 return graphql.Null
10400 }
10401 res := resTmp.(*string)
10402 fc.Result = res
10403 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
10404 }
10405
10406 func (ec *executionContext) _MistakeSpec_maxOccurrences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MistakeSpec) (ret graphql.Marshaler) {
10407 defer func() {
10408 if r := recover(); r != nil {
10409 ec.Error(ctx, ec.Recover(ctx, r))
10410 ret = graphql.Null
10411 }
10412 }()
10413 fc := &graphql.FieldContext{
10414 Object: "MistakeSpec",
10415 Field: field,
10416 Args: nil,
10417 IsMethod: false,
10418 IsResolver: false,
10419 }
10420
10421 ctx = graphql.WithFieldContext(ctx, fc)
10422 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10423 ctx = rctx
10424 return obj.MaxOccurrences, nil
10425 })
10426 if err != nil {
10427 ec.Error(ctx, err)
10428 return graphql.Null
10429 }
10430 if resTmp == nil {
10431 return graphql.Null
10432 }
10433 res := resTmp.(int64)
10434 fc.Result = res
10435 return ec.marshalOInt2int64(ctx, field.Selections, res)
10436 }
10437
10438 func (ec *executionContext) _MistakeSpec_maxLength(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.MistakeSpec) (ret graphql.Marshaler) {
10439 defer func() {
10440 if r := recover(); r != nil {
10441 ec.Error(ctx, ec.Recover(ctx, r))
10442 ret = graphql.Null
10443 }
10444 }()
10445 fc := &graphql.FieldContext{
10446 Object: "MistakeSpec",
10447 Field: field,
10448 Args: nil,
10449 IsMethod: false,
10450 IsResolver: false,
10451 }
10452
10453 ctx = graphql.WithFieldContext(ctx, fc)
10454 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10455 ctx = rctx
10456 return obj.MaxLength, nil
10457 })
10458 if err != nil {
10459 ec.Error(ctx, err)
10460 return graphql.Null
10461 }
10462 if resTmp == nil {
10463 return graphql.Null
10464 }
10465 res := resTmp.(int64)
10466 fc.Result = res
10467 return ec.marshalOInt2int64(ctx, field.Selections, res)
10468 }
10469
10470 func (ec *executionContext) _Namespace_ns(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10471 defer func() {
10472 if r := recover(); r != nil {
10473 ec.Error(ctx, ec.Recover(ctx, r))
10474 ret = graphql.Null
10475 }
10476 }()
10477 fc := &graphql.FieldContext{
10478 Object: "Namespace",
10479 Field: field,
10480 Args: nil,
10481 IsMethod: false,
10482 IsResolver: false,
10483 }
10484
10485 ctx = graphql.WithFieldContext(ctx, fc)
10486 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10487 ctx = rctx
10488 return obj.Ns, nil
10489 })
10490 if err != nil {
10491 ec.Error(ctx, err)
10492 return graphql.Null
10493 }
10494 if resTmp == nil {
10495 if !graphql.HasFieldError(ctx, fc) {
10496 ec.Errorf(ctx, "must not be null")
10497 }
10498 return graphql.Null
10499 }
10500 res := resTmp.(string)
10501 fc.Result = res
10502 return ec.marshalNString2string(ctx, field.Selections, res)
10503 }
10504
10505 func (ec *executionContext) _Namespace_component(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10506 defer func() {
10507 if r := recover(); r != nil {
10508 ec.Error(ctx, ec.Recover(ctx, r))
10509 ret = graphql.Null
10510 }
10511 }()
10512 fc := &graphql.FieldContext{
10513 Object: "Namespace",
10514 Field: field,
10515 Args: nil,
10516 IsMethod: true,
10517 IsResolver: true,
10518 }
10519
10520 ctx = graphql.WithFieldContext(ctx, fc)
10521 rawArgs := field.ArgumentMap(ec.Variables)
10522 args, err := ec.field_Namespace_component_args(ctx, rawArgs)
10523 if err != nil {
10524 ec.Error(ctx, err)
10525 return graphql.Null
10526 }
10527 fc.Args = args
10528 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10529 ctx = rctx
10530 return ec.resolvers.Namespace().Component(rctx, obj, args["component"].(model.Component))
10531 })
10532 if err != nil {
10533 ec.Error(ctx, err)
10534 return graphql.Null
10535 }
10536 if resTmp == nil {
10537 return graphql.Null
10538 }
10539 res := resTmp.([]*v1.Pod)
10540 fc.Result = res
10541 return ec.marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx, field.Selections, res)
10542 }
10543
10544 func (ec *executionContext) _Namespace_pod(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10545 defer func() {
10546 if r := recover(); r != nil {
10547 ec.Error(ctx, ec.Recover(ctx, r))
10548 ret = graphql.Null
10549 }
10550 }()
10551 fc := &graphql.FieldContext{
10552 Object: "Namespace",
10553 Field: field,
10554 Args: nil,
10555 IsMethod: true,
10556 IsResolver: true,
10557 }
10558
10559 ctx = graphql.WithFieldContext(ctx, fc)
10560 rawArgs := field.ArgumentMap(ec.Variables)
10561 args, err := ec.field_Namespace_pod_args(ctx, rawArgs)
10562 if err != nil {
10563 ec.Error(ctx, err)
10564 return graphql.Null
10565 }
10566 fc.Args = args
10567 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10568 ctx = rctx
10569 return ec.resolvers.Namespace().Pod(rctx, obj, args["name"].(*string))
10570 })
10571 if err != nil {
10572 ec.Error(ctx, err)
10573 return graphql.Null
10574 }
10575 if resTmp == nil {
10576 return graphql.Null
10577 }
10578 res := resTmp.([]*v1.Pod)
10579 fc.Result = res
10580 return ec.marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx, field.Selections, res)
10581 }
10582
10583 func (ec *executionContext) _Namespace_stresschaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10584 defer func() {
10585 if r := recover(); r != nil {
10586 ec.Error(ctx, ec.Recover(ctx, r))
10587 ret = graphql.Null
10588 }
10589 }()
10590 fc := &graphql.FieldContext{
10591 Object: "Namespace",
10592 Field: field,
10593 Args: nil,
10594 IsMethod: true,
10595 IsResolver: true,
10596 }
10597
10598 ctx = graphql.WithFieldContext(ctx, fc)
10599 rawArgs := field.ArgumentMap(ec.Variables)
10600 args, err := ec.field_Namespace_stresschaos_args(ctx, rawArgs)
10601 if err != nil {
10602 ec.Error(ctx, err)
10603 return graphql.Null
10604 }
10605 fc.Args = args
10606 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10607 ctx = rctx
10608 return ec.resolvers.Namespace().Stresschaos(rctx, obj, args["name"].(*string))
10609 })
10610 if err != nil {
10611 ec.Error(ctx, err)
10612 return graphql.Null
10613 }
10614 if resTmp == nil {
10615 return graphql.Null
10616 }
10617 res := resTmp.([]*v1alpha1.StressChaos)
10618 fc.Result = res
10619 return ec.marshalOStressChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaosᚄ(ctx, field.Selections, res)
10620 }
10621
10622 func (ec *executionContext) _Namespace_iochaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10623 defer func() {
10624 if r := recover(); r != nil {
10625 ec.Error(ctx, ec.Recover(ctx, r))
10626 ret = graphql.Null
10627 }
10628 }()
10629 fc := &graphql.FieldContext{
10630 Object: "Namespace",
10631 Field: field,
10632 Args: nil,
10633 IsMethod: true,
10634 IsResolver: true,
10635 }
10636
10637 ctx = graphql.WithFieldContext(ctx, fc)
10638 rawArgs := field.ArgumentMap(ec.Variables)
10639 args, err := ec.field_Namespace_iochaos_args(ctx, rawArgs)
10640 if err != nil {
10641 ec.Error(ctx, err)
10642 return graphql.Null
10643 }
10644 fc.Args = args
10645 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10646 ctx = rctx
10647 return ec.resolvers.Namespace().Iochaos(rctx, obj, args["name"].(*string))
10648 })
10649 if err != nil {
10650 ec.Error(ctx, err)
10651 return graphql.Null
10652 }
10653 if resTmp == nil {
10654 return graphql.Null
10655 }
10656 res := resTmp.([]*v1alpha1.IOChaos)
10657 fc.Result = res
10658 return ec.marshalOIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosᚄ(ctx, field.Selections, res)
10659 }
10660
10661 func (ec *executionContext) _Namespace_podiochaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10662 defer func() {
10663 if r := recover(); r != nil {
10664 ec.Error(ctx, ec.Recover(ctx, r))
10665 ret = graphql.Null
10666 }
10667 }()
10668 fc := &graphql.FieldContext{
10669 Object: "Namespace",
10670 Field: field,
10671 Args: nil,
10672 IsMethod: true,
10673 IsResolver: true,
10674 }
10675
10676 ctx = graphql.WithFieldContext(ctx, fc)
10677 rawArgs := field.ArgumentMap(ec.Variables)
10678 args, err := ec.field_Namespace_podiochaos_args(ctx, rawArgs)
10679 if err != nil {
10680 ec.Error(ctx, err)
10681 return graphql.Null
10682 }
10683 fc.Args = args
10684 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10685 ctx = rctx
10686 return ec.resolvers.Namespace().Podiochaos(rctx, obj, args["name"].(*string))
10687 })
10688 if err != nil {
10689 ec.Error(ctx, err)
10690 return graphql.Null
10691 }
10692 if resTmp == nil {
10693 return graphql.Null
10694 }
10695 res := resTmp.([]*v1alpha1.PodIOChaos)
10696 fc.Result = res
10697 return ec.marshalOPodIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosᚄ(ctx, field.Selections, res)
10698 }
10699
10700 func (ec *executionContext) _Namespace_httpchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10701 defer func() {
10702 if r := recover(); r != nil {
10703 ec.Error(ctx, ec.Recover(ctx, r))
10704 ret = graphql.Null
10705 }
10706 }()
10707 fc := &graphql.FieldContext{
10708 Object: "Namespace",
10709 Field: field,
10710 Args: nil,
10711 IsMethod: true,
10712 IsResolver: true,
10713 }
10714
10715 ctx = graphql.WithFieldContext(ctx, fc)
10716 rawArgs := field.ArgumentMap(ec.Variables)
10717 args, err := ec.field_Namespace_httpchaos_args(ctx, rawArgs)
10718 if err != nil {
10719 ec.Error(ctx, err)
10720 return graphql.Null
10721 }
10722 fc.Args = args
10723 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10724 ctx = rctx
10725 return ec.resolvers.Namespace().Httpchaos(rctx, obj, args["name"].(*string))
10726 })
10727 if err != nil {
10728 ec.Error(ctx, err)
10729 return graphql.Null
10730 }
10731 if resTmp == nil {
10732 return graphql.Null
10733 }
10734 res := resTmp.([]*v1alpha1.HTTPChaos)
10735 fc.Result = res
10736 return ec.marshalOHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosᚄ(ctx, field.Selections, res)
10737 }
10738
10739 func (ec *executionContext) _Namespace_podhttpchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10740 defer func() {
10741 if r := recover(); r != nil {
10742 ec.Error(ctx, ec.Recover(ctx, r))
10743 ret = graphql.Null
10744 }
10745 }()
10746 fc := &graphql.FieldContext{
10747 Object: "Namespace",
10748 Field: field,
10749 Args: nil,
10750 IsMethod: true,
10751 IsResolver: true,
10752 }
10753
10754 ctx = graphql.WithFieldContext(ctx, fc)
10755 rawArgs := field.ArgumentMap(ec.Variables)
10756 args, err := ec.field_Namespace_podhttpchaos_args(ctx, rawArgs)
10757 if err != nil {
10758 ec.Error(ctx, err)
10759 return graphql.Null
10760 }
10761 fc.Args = args
10762 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10763 ctx = rctx
10764 return ec.resolvers.Namespace().Podhttpchaos(rctx, obj, args["name"].(*string))
10765 })
10766 if err != nil {
10767 ec.Error(ctx, err)
10768 return graphql.Null
10769 }
10770 if resTmp == nil {
10771 return graphql.Null
10772 }
10773 res := resTmp.([]*v1alpha1.PodHttpChaos)
10774 fc.Result = res
10775 return ec.marshalOPodHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosᚄ(ctx, field.Selections, res)
10776 }
10777
10778 func (ec *executionContext) _Namespace_networkchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10779 defer func() {
10780 if r := recover(); r != nil {
10781 ec.Error(ctx, ec.Recover(ctx, r))
10782 ret = graphql.Null
10783 }
10784 }()
10785 fc := &graphql.FieldContext{
10786 Object: "Namespace",
10787 Field: field,
10788 Args: nil,
10789 IsMethod: true,
10790 IsResolver: true,
10791 }
10792
10793 ctx = graphql.WithFieldContext(ctx, fc)
10794 rawArgs := field.ArgumentMap(ec.Variables)
10795 args, err := ec.field_Namespace_networkchaos_args(ctx, rawArgs)
10796 if err != nil {
10797 ec.Error(ctx, err)
10798 return graphql.Null
10799 }
10800 fc.Args = args
10801 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10802 ctx = rctx
10803 return ec.resolvers.Namespace().Networkchaos(rctx, obj, args["name"].(*string))
10804 })
10805 if err != nil {
10806 ec.Error(ctx, err)
10807 return graphql.Null
10808 }
10809 if resTmp == nil {
10810 return graphql.Null
10811 }
10812 res := resTmp.([]*v1alpha1.NetworkChaos)
10813 fc.Result = res
10814 return ec.marshalONetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaosᚄ(ctx, field.Selections, res)
10815 }
10816
10817 func (ec *executionContext) _Namespace_podnetworkchaos(ctx context.Context, field graphql.CollectedField, obj *model.Namespace) (ret graphql.Marshaler) {
10818 defer func() {
10819 if r := recover(); r != nil {
10820 ec.Error(ctx, ec.Recover(ctx, r))
10821 ret = graphql.Null
10822 }
10823 }()
10824 fc := &graphql.FieldContext{
10825 Object: "Namespace",
10826 Field: field,
10827 Args: nil,
10828 IsMethod: true,
10829 IsResolver: true,
10830 }
10831
10832 ctx = graphql.WithFieldContext(ctx, fc)
10833 rawArgs := field.ArgumentMap(ec.Variables)
10834 args, err := ec.field_Namespace_podnetworkchaos_args(ctx, rawArgs)
10835 if err != nil {
10836 ec.Error(ctx, err)
10837 return graphql.Null
10838 }
10839 fc.Args = args
10840 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10841 ctx = rctx
10842 return ec.resolvers.Namespace().Podnetworkchaos(rctx, obj, args["name"].(*string))
10843 })
10844 if err != nil {
10845 ec.Error(ctx, err)
10846 return graphql.Null
10847 }
10848 if resTmp == nil {
10849 return graphql.Null
10850 }
10851 res := resTmp.([]*v1alpha1.PodNetworkChaos)
10852 fc.Result = res
10853 return ec.marshalOPodNetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosᚄ(ctx, field.Selections, res)
10854 }
10855
10856 func (ec *executionContext) _NetworkChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
10857 defer func() {
10858 if r := recover(); r != nil {
10859 ec.Error(ctx, ec.Recover(ctx, r))
10860 ret = graphql.Null
10861 }
10862 }()
10863 fc := &graphql.FieldContext{
10864 Object: "NetworkChaos",
10865 Field: field,
10866 Args: nil,
10867 IsMethod: false,
10868 IsResolver: false,
10869 }
10870
10871 ctx = graphql.WithFieldContext(ctx, fc)
10872 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10873 ctx = rctx
10874 return obj.Kind, nil
10875 })
10876 if err != nil {
10877 ec.Error(ctx, err)
10878 return graphql.Null
10879 }
10880 if resTmp == nil {
10881 if !graphql.HasFieldError(ctx, fc) {
10882 ec.Errorf(ctx, "must not be null")
10883 }
10884 return graphql.Null
10885 }
10886 res := resTmp.(string)
10887 fc.Result = res
10888 return ec.marshalNString2string(ctx, field.Selections, res)
10889 }
10890
10891 func (ec *executionContext) _NetworkChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
10892 defer func() {
10893 if r := recover(); r != nil {
10894 ec.Error(ctx, ec.Recover(ctx, r))
10895 ret = graphql.Null
10896 }
10897 }()
10898 fc := &graphql.FieldContext{
10899 Object: "NetworkChaos",
10900 Field: field,
10901 Args: nil,
10902 IsMethod: false,
10903 IsResolver: false,
10904 }
10905
10906 ctx = graphql.WithFieldContext(ctx, fc)
10907 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10908 ctx = rctx
10909 return obj.APIVersion, nil
10910 })
10911 if err != nil {
10912 ec.Error(ctx, err)
10913 return graphql.Null
10914 }
10915 if resTmp == nil {
10916 if !graphql.HasFieldError(ctx, fc) {
10917 ec.Errorf(ctx, "must not be null")
10918 }
10919 return graphql.Null
10920 }
10921 res := resTmp.(string)
10922 fc.Result = res
10923 return ec.marshalNString2string(ctx, field.Selections, res)
10924 }
10925
10926 func (ec *executionContext) _NetworkChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
10927 defer func() {
10928 if r := recover(); r != nil {
10929 ec.Error(ctx, ec.Recover(ctx, r))
10930 ret = graphql.Null
10931 }
10932 }()
10933 fc := &graphql.FieldContext{
10934 Object: "NetworkChaos",
10935 Field: field,
10936 Args: nil,
10937 IsMethod: false,
10938 IsResolver: false,
10939 }
10940
10941 ctx = graphql.WithFieldContext(ctx, fc)
10942 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10943 ctx = rctx
10944 return obj.Name, nil
10945 })
10946 if err != nil {
10947 ec.Error(ctx, err)
10948 return graphql.Null
10949 }
10950 if resTmp == nil {
10951 if !graphql.HasFieldError(ctx, fc) {
10952 ec.Errorf(ctx, "must not be null")
10953 }
10954 return graphql.Null
10955 }
10956 res := resTmp.(string)
10957 fc.Result = res
10958 return ec.marshalNString2string(ctx, field.Selections, res)
10959 }
10960
10961 func (ec *executionContext) _NetworkChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
10962 defer func() {
10963 if r := recover(); r != nil {
10964 ec.Error(ctx, ec.Recover(ctx, r))
10965 ret = graphql.Null
10966 }
10967 }()
10968 fc := &graphql.FieldContext{
10969 Object: "NetworkChaos",
10970 Field: field,
10971 Args: nil,
10972 IsMethod: false,
10973 IsResolver: false,
10974 }
10975
10976 ctx = graphql.WithFieldContext(ctx, fc)
10977 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
10978 ctx = rctx
10979 return obj.GenerateName, nil
10980 })
10981 if err != nil {
10982 ec.Error(ctx, err)
10983 return graphql.Null
10984 }
10985 if resTmp == nil {
10986 if !graphql.HasFieldError(ctx, fc) {
10987 ec.Errorf(ctx, "must not be null")
10988 }
10989 return graphql.Null
10990 }
10991 res := resTmp.(string)
10992 fc.Result = res
10993 return ec.marshalNString2string(ctx, field.Selections, res)
10994 }
10995
10996 func (ec *executionContext) _NetworkChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
10997 defer func() {
10998 if r := recover(); r != nil {
10999 ec.Error(ctx, ec.Recover(ctx, r))
11000 ret = graphql.Null
11001 }
11002 }()
11003 fc := &graphql.FieldContext{
11004 Object: "NetworkChaos",
11005 Field: field,
11006 Args: nil,
11007 IsMethod: false,
11008 IsResolver: false,
11009 }
11010
11011 ctx = graphql.WithFieldContext(ctx, fc)
11012 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11013 ctx = rctx
11014 return obj.Namespace, nil
11015 })
11016 if err != nil {
11017 ec.Error(ctx, err)
11018 return graphql.Null
11019 }
11020 if resTmp == nil {
11021 if !graphql.HasFieldError(ctx, fc) {
11022 ec.Errorf(ctx, "must not be null")
11023 }
11024 return graphql.Null
11025 }
11026 res := resTmp.(string)
11027 fc.Result = res
11028 return ec.marshalNString2string(ctx, field.Selections, res)
11029 }
11030
11031 func (ec *executionContext) _NetworkChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11032 defer func() {
11033 if r := recover(); r != nil {
11034 ec.Error(ctx, ec.Recover(ctx, r))
11035 ret = graphql.Null
11036 }
11037 }()
11038 fc := &graphql.FieldContext{
11039 Object: "NetworkChaos",
11040 Field: field,
11041 Args: nil,
11042 IsMethod: false,
11043 IsResolver: false,
11044 }
11045
11046 ctx = graphql.WithFieldContext(ctx, fc)
11047 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11048 ctx = rctx
11049 return obj.SelfLink, nil
11050 })
11051 if err != nil {
11052 ec.Error(ctx, err)
11053 return graphql.Null
11054 }
11055 if resTmp == nil {
11056 if !graphql.HasFieldError(ctx, fc) {
11057 ec.Errorf(ctx, "must not be null")
11058 }
11059 return graphql.Null
11060 }
11061 res := resTmp.(string)
11062 fc.Result = res
11063 return ec.marshalNString2string(ctx, field.Selections, res)
11064 }
11065
11066 func (ec *executionContext) _NetworkChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (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: "NetworkChaos",
11075 Field: field,
11076 Args: nil,
11077 IsMethod: true,
11078 IsResolver: true,
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 ec.resolvers.NetworkChaos().UID(rctx, obj)
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) _NetworkChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (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: "NetworkChaos",
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.ResourceVersion, nil
11120 })
11121 if err != nil {
11122 ec.Error(ctx, err)
11123 return graphql.Null
11124 }
11125 if resTmp == nil {
11126 if !graphql.HasFieldError(ctx, fc) {
11127 ec.Errorf(ctx, "must not be null")
11128 }
11129 return graphql.Null
11130 }
11131 res := resTmp.(string)
11132 fc.Result = res
11133 return ec.marshalNString2string(ctx, field.Selections, res)
11134 }
11135
11136 func (ec *executionContext) _NetworkChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11137 defer func() {
11138 if r := recover(); r != nil {
11139 ec.Error(ctx, ec.Recover(ctx, r))
11140 ret = graphql.Null
11141 }
11142 }()
11143 fc := &graphql.FieldContext{
11144 Object: "NetworkChaos",
11145 Field: field,
11146 Args: nil,
11147 IsMethod: false,
11148 IsResolver: false,
11149 }
11150
11151 ctx = graphql.WithFieldContext(ctx, fc)
11152 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11153 ctx = rctx
11154 return obj.Generation, nil
11155 })
11156 if err != nil {
11157 ec.Error(ctx, err)
11158 return graphql.Null
11159 }
11160 if resTmp == nil {
11161 if !graphql.HasFieldError(ctx, fc) {
11162 ec.Errorf(ctx, "must not be null")
11163 }
11164 return graphql.Null
11165 }
11166 res := resTmp.(int64)
11167 fc.Result = res
11168 return ec.marshalNInt2int64(ctx, field.Selections, res)
11169 }
11170
11171 func (ec *executionContext) _NetworkChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11172 defer func() {
11173 if r := recover(); r != nil {
11174 ec.Error(ctx, ec.Recover(ctx, r))
11175 ret = graphql.Null
11176 }
11177 }()
11178 fc := &graphql.FieldContext{
11179 Object: "NetworkChaos",
11180 Field: field,
11181 Args: nil,
11182 IsMethod: true,
11183 IsResolver: true,
11184 }
11185
11186 ctx = graphql.WithFieldContext(ctx, fc)
11187 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11188 ctx = rctx
11189 return ec.resolvers.NetworkChaos().CreationTimestamp(rctx, obj)
11190 })
11191 if err != nil {
11192 ec.Error(ctx, err)
11193 return graphql.Null
11194 }
11195 if resTmp == nil {
11196 if !graphql.HasFieldError(ctx, fc) {
11197 ec.Errorf(ctx, "must not be null")
11198 }
11199 return graphql.Null
11200 }
11201 res := resTmp.(*time.Time)
11202 fc.Result = res
11203 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
11204 }
11205
11206 func (ec *executionContext) _NetworkChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11207 defer func() {
11208 if r := recover(); r != nil {
11209 ec.Error(ctx, ec.Recover(ctx, r))
11210 ret = graphql.Null
11211 }
11212 }()
11213 fc := &graphql.FieldContext{
11214 Object: "NetworkChaos",
11215 Field: field,
11216 Args: nil,
11217 IsMethod: true,
11218 IsResolver: true,
11219 }
11220
11221 ctx = graphql.WithFieldContext(ctx, fc)
11222 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11223 ctx = rctx
11224 return ec.resolvers.NetworkChaos().DeletionTimestamp(rctx, obj)
11225 })
11226 if err != nil {
11227 ec.Error(ctx, err)
11228 return graphql.Null
11229 }
11230 if resTmp == nil {
11231 return graphql.Null
11232 }
11233 res := resTmp.(*time.Time)
11234 fc.Result = res
11235 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
11236 }
11237
11238 func (ec *executionContext) _NetworkChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11239 defer func() {
11240 if r := recover(); r != nil {
11241 ec.Error(ctx, ec.Recover(ctx, r))
11242 ret = graphql.Null
11243 }
11244 }()
11245 fc := &graphql.FieldContext{
11246 Object: "NetworkChaos",
11247 Field: field,
11248 Args: nil,
11249 IsMethod: false,
11250 IsResolver: false,
11251 }
11252
11253 ctx = graphql.WithFieldContext(ctx, fc)
11254 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11255 ctx = rctx
11256 return obj.DeletionGracePeriodSeconds, nil
11257 })
11258 if err != nil {
11259 ec.Error(ctx, err)
11260 return graphql.Null
11261 }
11262 if resTmp == nil {
11263 return graphql.Null
11264 }
11265 res := resTmp.(*int64)
11266 fc.Result = res
11267 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
11268 }
11269
11270 func (ec *executionContext) _NetworkChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11271 defer func() {
11272 if r := recover(); r != nil {
11273 ec.Error(ctx, ec.Recover(ctx, r))
11274 ret = graphql.Null
11275 }
11276 }()
11277 fc := &graphql.FieldContext{
11278 Object: "NetworkChaos",
11279 Field: field,
11280 Args: nil,
11281 IsMethod: true,
11282 IsResolver: true,
11283 }
11284
11285 ctx = graphql.WithFieldContext(ctx, fc)
11286 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11287 ctx = rctx
11288 return ec.resolvers.NetworkChaos().Labels(rctx, obj)
11289 })
11290 if err != nil {
11291 ec.Error(ctx, err)
11292 return graphql.Null
11293 }
11294 if resTmp == nil {
11295 return graphql.Null
11296 }
11297 res := resTmp.(map[string]interface{})
11298 fc.Result = res
11299 return ec.marshalOMap2map(ctx, field.Selections, res)
11300 }
11301
11302 func (ec *executionContext) _NetworkChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11303 defer func() {
11304 if r := recover(); r != nil {
11305 ec.Error(ctx, ec.Recover(ctx, r))
11306 ret = graphql.Null
11307 }
11308 }()
11309 fc := &graphql.FieldContext{
11310 Object: "NetworkChaos",
11311 Field: field,
11312 Args: nil,
11313 IsMethod: true,
11314 IsResolver: true,
11315 }
11316
11317 ctx = graphql.WithFieldContext(ctx, fc)
11318 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11319 ctx = rctx
11320 return ec.resolvers.NetworkChaos().Annotations(rctx, obj)
11321 })
11322 if err != nil {
11323 ec.Error(ctx, err)
11324 return graphql.Null
11325 }
11326 if resTmp == nil {
11327 return graphql.Null
11328 }
11329 res := resTmp.(map[string]interface{})
11330 fc.Result = res
11331 return ec.marshalOMap2map(ctx, field.Selections, res)
11332 }
11333
11334 func (ec *executionContext) _NetworkChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (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: "NetworkChaos",
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.OwnerReferences, nil
11353 })
11354 if err != nil {
11355 ec.Error(ctx, err)
11356 return graphql.Null
11357 }
11358 if resTmp == nil {
11359 return graphql.Null
11360 }
11361 res := resTmp.([]v11.OwnerReference)
11362 fc.Result = res
11363 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
11364 }
11365
11366 func (ec *executionContext) _NetworkChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11367 defer func() {
11368 if r := recover(); r != nil {
11369 ec.Error(ctx, ec.Recover(ctx, r))
11370 ret = graphql.Null
11371 }
11372 }()
11373 fc := &graphql.FieldContext{
11374 Object: "NetworkChaos",
11375 Field: field,
11376 Args: nil,
11377 IsMethod: false,
11378 IsResolver: false,
11379 }
11380
11381 ctx = graphql.WithFieldContext(ctx, fc)
11382 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11383 ctx = rctx
11384 return obj.Finalizers, nil
11385 })
11386 if err != nil {
11387 ec.Error(ctx, err)
11388 return graphql.Null
11389 }
11390 if resTmp == nil {
11391 return graphql.Null
11392 }
11393 res := resTmp.([]string)
11394 fc.Result = res
11395 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
11396 }
11397
11398 func (ec *executionContext) _NetworkChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11399 defer func() {
11400 if r := recover(); r != nil {
11401 ec.Error(ctx, ec.Recover(ctx, r))
11402 ret = graphql.Null
11403 }
11404 }()
11405 fc := &graphql.FieldContext{
11406 Object: "NetworkChaos",
11407 Field: field,
11408 Args: nil,
11409 IsMethod: false,
11410 IsResolver: false,
11411 }
11412
11413 ctx = graphql.WithFieldContext(ctx, fc)
11414 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11415 ctx = rctx
11416 return obj.ClusterName, nil
11417 })
11418 if err != nil {
11419 ec.Error(ctx, err)
11420 return graphql.Null
11421 }
11422 if resTmp == nil {
11423 if !graphql.HasFieldError(ctx, fc) {
11424 ec.Errorf(ctx, "must not be null")
11425 }
11426 return graphql.Null
11427 }
11428 res := resTmp.(string)
11429 fc.Result = res
11430 return ec.marshalNString2string(ctx, field.Selections, res)
11431 }
11432
11433 func (ec *executionContext) _NetworkChaos_podnetwork(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.NetworkChaos) (ret graphql.Marshaler) {
11434 defer func() {
11435 if r := recover(); r != nil {
11436 ec.Error(ctx, ec.Recover(ctx, r))
11437 ret = graphql.Null
11438 }
11439 }()
11440 fc := &graphql.FieldContext{
11441 Object: "NetworkChaos",
11442 Field: field,
11443 Args: nil,
11444 IsMethod: true,
11445 IsResolver: true,
11446 }
11447
11448 ctx = graphql.WithFieldContext(ctx, fc)
11449 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11450 ctx = rctx
11451 return ec.resolvers.NetworkChaos().Podnetwork(rctx, obj)
11452 })
11453 if err != nil {
11454 ec.Error(ctx, err)
11455 return graphql.Null
11456 }
11457 if resTmp == nil {
11458 return graphql.Null
11459 }
11460 res := resTmp.([]*v1alpha1.PodNetworkChaos)
11461 fc.Result = res
11462 return ec.marshalOPodNetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosᚄ(ctx, field.Selections, res)
11463 }
11464
11465 func (ec *executionContext) _OwnerReference_kind(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
11466 defer func() {
11467 if r := recover(); r != nil {
11468 ec.Error(ctx, ec.Recover(ctx, r))
11469 ret = graphql.Null
11470 }
11471 }()
11472 fc := &graphql.FieldContext{
11473 Object: "OwnerReference",
11474 Field: field,
11475 Args: nil,
11476 IsMethod: false,
11477 IsResolver: false,
11478 }
11479
11480 ctx = graphql.WithFieldContext(ctx, fc)
11481 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11482 ctx = rctx
11483 return obj.Kind, nil
11484 })
11485 if err != nil {
11486 ec.Error(ctx, err)
11487 return graphql.Null
11488 }
11489 if resTmp == nil {
11490 if !graphql.HasFieldError(ctx, fc) {
11491 ec.Errorf(ctx, "must not be null")
11492 }
11493 return graphql.Null
11494 }
11495 res := resTmp.(string)
11496 fc.Result = res
11497 return ec.marshalNString2string(ctx, field.Selections, res)
11498 }
11499
11500 func (ec *executionContext) _OwnerReference_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
11501 defer func() {
11502 if r := recover(); r != nil {
11503 ec.Error(ctx, ec.Recover(ctx, r))
11504 ret = graphql.Null
11505 }
11506 }()
11507 fc := &graphql.FieldContext{
11508 Object: "OwnerReference",
11509 Field: field,
11510 Args: nil,
11511 IsMethod: false,
11512 IsResolver: false,
11513 }
11514
11515 ctx = graphql.WithFieldContext(ctx, fc)
11516 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11517 ctx = rctx
11518 return obj.APIVersion, nil
11519 })
11520 if err != nil {
11521 ec.Error(ctx, err)
11522 return graphql.Null
11523 }
11524 if resTmp == nil {
11525 if !graphql.HasFieldError(ctx, fc) {
11526 ec.Errorf(ctx, "must not be null")
11527 }
11528 return graphql.Null
11529 }
11530 res := resTmp.(string)
11531 fc.Result = res
11532 return ec.marshalNString2string(ctx, field.Selections, res)
11533 }
11534
11535 func (ec *executionContext) _OwnerReference_name(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
11536 defer func() {
11537 if r := recover(); r != nil {
11538 ec.Error(ctx, ec.Recover(ctx, r))
11539 ret = graphql.Null
11540 }
11541 }()
11542 fc := &graphql.FieldContext{
11543 Object: "OwnerReference",
11544 Field: field,
11545 Args: nil,
11546 IsMethod: false,
11547 IsResolver: false,
11548 }
11549
11550 ctx = graphql.WithFieldContext(ctx, fc)
11551 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11552 ctx = rctx
11553 return obj.Name, nil
11554 })
11555 if err != nil {
11556 ec.Error(ctx, err)
11557 return graphql.Null
11558 }
11559 if resTmp == nil {
11560 if !graphql.HasFieldError(ctx, fc) {
11561 ec.Errorf(ctx, "must not be null")
11562 }
11563 return graphql.Null
11564 }
11565 res := resTmp.(string)
11566 fc.Result = res
11567 return ec.marshalNString2string(ctx, field.Selections, res)
11568 }
11569
11570 func (ec *executionContext) _OwnerReference_uid(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
11571 defer func() {
11572 if r := recover(); r != nil {
11573 ec.Error(ctx, ec.Recover(ctx, r))
11574 ret = graphql.Null
11575 }
11576 }()
11577 fc := &graphql.FieldContext{
11578 Object: "OwnerReference",
11579 Field: field,
11580 Args: nil,
11581 IsMethod: true,
11582 IsResolver: true,
11583 }
11584
11585 ctx = graphql.WithFieldContext(ctx, fc)
11586 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11587 ctx = rctx
11588 return ec.resolvers.OwnerReference().UID(rctx, obj)
11589 })
11590 if err != nil {
11591 ec.Error(ctx, err)
11592 return graphql.Null
11593 }
11594 if resTmp == nil {
11595 if !graphql.HasFieldError(ctx, fc) {
11596 ec.Errorf(ctx, "must not be null")
11597 }
11598 return graphql.Null
11599 }
11600 res := resTmp.(string)
11601 fc.Result = res
11602 return ec.marshalNString2string(ctx, field.Selections, res)
11603 }
11604
11605 func (ec *executionContext) _OwnerReference_controller(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
11606 defer func() {
11607 if r := recover(); r != nil {
11608 ec.Error(ctx, ec.Recover(ctx, r))
11609 ret = graphql.Null
11610 }
11611 }()
11612 fc := &graphql.FieldContext{
11613 Object: "OwnerReference",
11614 Field: field,
11615 Args: nil,
11616 IsMethod: false,
11617 IsResolver: false,
11618 }
11619
11620 ctx = graphql.WithFieldContext(ctx, fc)
11621 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11622 ctx = rctx
11623 return obj.Controller, nil
11624 })
11625 if err != nil {
11626 ec.Error(ctx, err)
11627 return graphql.Null
11628 }
11629 if resTmp == nil {
11630 return graphql.Null
11631 }
11632 res := resTmp.(*bool)
11633 fc.Result = res
11634 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
11635 }
11636
11637 func (ec *executionContext) _OwnerReference_blockOwnerDeletion(ctx context.Context, field graphql.CollectedField, obj *v11.OwnerReference) (ret graphql.Marshaler) {
11638 defer func() {
11639 if r := recover(); r != nil {
11640 ec.Error(ctx, ec.Recover(ctx, r))
11641 ret = graphql.Null
11642 }
11643 }()
11644 fc := &graphql.FieldContext{
11645 Object: "OwnerReference",
11646 Field: field,
11647 Args: nil,
11648 IsMethod: false,
11649 IsResolver: false,
11650 }
11651
11652 ctx = graphql.WithFieldContext(ctx, fc)
11653 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11654 ctx = rctx
11655 return obj.BlockOwnerDeletion, nil
11656 })
11657 if err != nil {
11658 ec.Error(ctx, err)
11659 return graphql.Null
11660 }
11661 if resTmp == nil {
11662 return graphql.Null
11663 }
11664 res := resTmp.(*bool)
11665 fc.Result = res
11666 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
11667 }
11668
11669 func (ec *executionContext) _Pod_kind(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11670 defer func() {
11671 if r := recover(); r != nil {
11672 ec.Error(ctx, ec.Recover(ctx, r))
11673 ret = graphql.Null
11674 }
11675 }()
11676 fc := &graphql.FieldContext{
11677 Object: "Pod",
11678 Field: field,
11679 Args: nil,
11680 IsMethod: false,
11681 IsResolver: false,
11682 }
11683
11684 ctx = graphql.WithFieldContext(ctx, fc)
11685 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11686 ctx = rctx
11687 return obj.Kind, nil
11688 })
11689 if err != nil {
11690 ec.Error(ctx, err)
11691 return graphql.Null
11692 }
11693 if resTmp == nil {
11694 if !graphql.HasFieldError(ctx, fc) {
11695 ec.Errorf(ctx, "must not be null")
11696 }
11697 return graphql.Null
11698 }
11699 res := resTmp.(string)
11700 fc.Result = res
11701 return ec.marshalNString2string(ctx, field.Selections, res)
11702 }
11703
11704 func (ec *executionContext) _Pod_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11705 defer func() {
11706 if r := recover(); r != nil {
11707 ec.Error(ctx, ec.Recover(ctx, r))
11708 ret = graphql.Null
11709 }
11710 }()
11711 fc := &graphql.FieldContext{
11712 Object: "Pod",
11713 Field: field,
11714 Args: nil,
11715 IsMethod: false,
11716 IsResolver: false,
11717 }
11718
11719 ctx = graphql.WithFieldContext(ctx, fc)
11720 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11721 ctx = rctx
11722 return obj.APIVersion, nil
11723 })
11724 if err != nil {
11725 ec.Error(ctx, err)
11726 return graphql.Null
11727 }
11728 if resTmp == nil {
11729 if !graphql.HasFieldError(ctx, fc) {
11730 ec.Errorf(ctx, "must not be null")
11731 }
11732 return graphql.Null
11733 }
11734 res := resTmp.(string)
11735 fc.Result = res
11736 return ec.marshalNString2string(ctx, field.Selections, res)
11737 }
11738
11739 func (ec *executionContext) _Pod_name(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11740 defer func() {
11741 if r := recover(); r != nil {
11742 ec.Error(ctx, ec.Recover(ctx, r))
11743 ret = graphql.Null
11744 }
11745 }()
11746 fc := &graphql.FieldContext{
11747 Object: "Pod",
11748 Field: field,
11749 Args: nil,
11750 IsMethod: false,
11751 IsResolver: false,
11752 }
11753
11754 ctx = graphql.WithFieldContext(ctx, fc)
11755 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11756 ctx = rctx
11757 return obj.Name, nil
11758 })
11759 if err != nil {
11760 ec.Error(ctx, err)
11761 return graphql.Null
11762 }
11763 if resTmp == nil {
11764 if !graphql.HasFieldError(ctx, fc) {
11765 ec.Errorf(ctx, "must not be null")
11766 }
11767 return graphql.Null
11768 }
11769 res := resTmp.(string)
11770 fc.Result = res
11771 return ec.marshalNString2string(ctx, field.Selections, res)
11772 }
11773
11774 func (ec *executionContext) _Pod_generateName(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11775 defer func() {
11776 if r := recover(); r != nil {
11777 ec.Error(ctx, ec.Recover(ctx, r))
11778 ret = graphql.Null
11779 }
11780 }()
11781 fc := &graphql.FieldContext{
11782 Object: "Pod",
11783 Field: field,
11784 Args: nil,
11785 IsMethod: false,
11786 IsResolver: false,
11787 }
11788
11789 ctx = graphql.WithFieldContext(ctx, fc)
11790 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11791 ctx = rctx
11792 return obj.GenerateName, nil
11793 })
11794 if err != nil {
11795 ec.Error(ctx, err)
11796 return graphql.Null
11797 }
11798 if resTmp == nil {
11799 if !graphql.HasFieldError(ctx, fc) {
11800 ec.Errorf(ctx, "must not be null")
11801 }
11802 return graphql.Null
11803 }
11804 res := resTmp.(string)
11805 fc.Result = res
11806 return ec.marshalNString2string(ctx, field.Selections, res)
11807 }
11808
11809 func (ec *executionContext) _Pod_namespace(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (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: "Pod",
11818 Field: field,
11819 Args: nil,
11820 IsMethod: false,
11821 IsResolver: false,
11822 }
11823
11824 ctx = graphql.WithFieldContext(ctx, fc)
11825 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11826 ctx = rctx
11827 return obj.Namespace, nil
11828 })
11829 if err != nil {
11830 ec.Error(ctx, err)
11831 return graphql.Null
11832 }
11833 if resTmp == nil {
11834 if !graphql.HasFieldError(ctx, fc) {
11835 ec.Errorf(ctx, "must not be null")
11836 }
11837 return graphql.Null
11838 }
11839 res := resTmp.(string)
11840 fc.Result = res
11841 return ec.marshalNString2string(ctx, field.Selections, res)
11842 }
11843
11844 func (ec *executionContext) _Pod_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11845 defer func() {
11846 if r := recover(); r != nil {
11847 ec.Error(ctx, ec.Recover(ctx, r))
11848 ret = graphql.Null
11849 }
11850 }()
11851 fc := &graphql.FieldContext{
11852 Object: "Pod",
11853 Field: field,
11854 Args: nil,
11855 IsMethod: false,
11856 IsResolver: false,
11857 }
11858
11859 ctx = graphql.WithFieldContext(ctx, fc)
11860 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11861 ctx = rctx
11862 return obj.SelfLink, nil
11863 })
11864 if err != nil {
11865 ec.Error(ctx, err)
11866 return graphql.Null
11867 }
11868 if resTmp == nil {
11869 if !graphql.HasFieldError(ctx, fc) {
11870 ec.Errorf(ctx, "must not be null")
11871 }
11872 return graphql.Null
11873 }
11874 res := resTmp.(string)
11875 fc.Result = res
11876 return ec.marshalNString2string(ctx, field.Selections, res)
11877 }
11878
11879 func (ec *executionContext) _Pod_uid(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11880 defer func() {
11881 if r := recover(); r != nil {
11882 ec.Error(ctx, ec.Recover(ctx, r))
11883 ret = graphql.Null
11884 }
11885 }()
11886 fc := &graphql.FieldContext{
11887 Object: "Pod",
11888 Field: field,
11889 Args: nil,
11890 IsMethod: true,
11891 IsResolver: true,
11892 }
11893
11894 ctx = graphql.WithFieldContext(ctx, fc)
11895 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11896 ctx = rctx
11897 return ec.resolvers.Pod().UID(rctx, obj)
11898 })
11899 if err != nil {
11900 ec.Error(ctx, err)
11901 return graphql.Null
11902 }
11903 if resTmp == nil {
11904 if !graphql.HasFieldError(ctx, fc) {
11905 ec.Errorf(ctx, "must not be null")
11906 }
11907 return graphql.Null
11908 }
11909 res := resTmp.(string)
11910 fc.Result = res
11911 return ec.marshalNString2string(ctx, field.Selections, res)
11912 }
11913
11914 func (ec *executionContext) _Pod_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11915 defer func() {
11916 if r := recover(); r != nil {
11917 ec.Error(ctx, ec.Recover(ctx, r))
11918 ret = graphql.Null
11919 }
11920 }()
11921 fc := &graphql.FieldContext{
11922 Object: "Pod",
11923 Field: field,
11924 Args: nil,
11925 IsMethod: false,
11926 IsResolver: false,
11927 }
11928
11929 ctx = graphql.WithFieldContext(ctx, fc)
11930 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11931 ctx = rctx
11932 return obj.ResourceVersion, nil
11933 })
11934 if err != nil {
11935 ec.Error(ctx, err)
11936 return graphql.Null
11937 }
11938 if resTmp == nil {
11939 if !graphql.HasFieldError(ctx, fc) {
11940 ec.Errorf(ctx, "must not be null")
11941 }
11942 return graphql.Null
11943 }
11944 res := resTmp.(string)
11945 fc.Result = res
11946 return ec.marshalNString2string(ctx, field.Selections, res)
11947 }
11948
11949 func (ec *executionContext) _Pod_generation(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11950 defer func() {
11951 if r := recover(); r != nil {
11952 ec.Error(ctx, ec.Recover(ctx, r))
11953 ret = graphql.Null
11954 }
11955 }()
11956 fc := &graphql.FieldContext{
11957 Object: "Pod",
11958 Field: field,
11959 Args: nil,
11960 IsMethod: false,
11961 IsResolver: false,
11962 }
11963
11964 ctx = graphql.WithFieldContext(ctx, fc)
11965 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
11966 ctx = rctx
11967 return obj.Generation, nil
11968 })
11969 if err != nil {
11970 ec.Error(ctx, err)
11971 return graphql.Null
11972 }
11973 if resTmp == nil {
11974 if !graphql.HasFieldError(ctx, fc) {
11975 ec.Errorf(ctx, "must not be null")
11976 }
11977 return graphql.Null
11978 }
11979 res := resTmp.(int64)
11980 fc.Result = res
11981 return ec.marshalNInt2int64(ctx, field.Selections, res)
11982 }
11983
11984 func (ec *executionContext) _Pod_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
11985 defer func() {
11986 if r := recover(); r != nil {
11987 ec.Error(ctx, ec.Recover(ctx, r))
11988 ret = graphql.Null
11989 }
11990 }()
11991 fc := &graphql.FieldContext{
11992 Object: "Pod",
11993 Field: field,
11994 Args: nil,
11995 IsMethod: true,
11996 IsResolver: true,
11997 }
11998
11999 ctx = graphql.WithFieldContext(ctx, fc)
12000 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12001 ctx = rctx
12002 return ec.resolvers.Pod().CreationTimestamp(rctx, obj)
12003 })
12004 if err != nil {
12005 ec.Error(ctx, err)
12006 return graphql.Null
12007 }
12008 if resTmp == nil {
12009 if !graphql.HasFieldError(ctx, fc) {
12010 ec.Errorf(ctx, "must not be null")
12011 }
12012 return graphql.Null
12013 }
12014 res := resTmp.(*time.Time)
12015 fc.Result = res
12016 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
12017 }
12018
12019 func (ec *executionContext) _Pod_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12020 defer func() {
12021 if r := recover(); r != nil {
12022 ec.Error(ctx, ec.Recover(ctx, r))
12023 ret = graphql.Null
12024 }
12025 }()
12026 fc := &graphql.FieldContext{
12027 Object: "Pod",
12028 Field: field,
12029 Args: nil,
12030 IsMethod: true,
12031 IsResolver: true,
12032 }
12033
12034 ctx = graphql.WithFieldContext(ctx, fc)
12035 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12036 ctx = rctx
12037 return ec.resolvers.Pod().DeletionTimestamp(rctx, obj)
12038 })
12039 if err != nil {
12040 ec.Error(ctx, err)
12041 return graphql.Null
12042 }
12043 if resTmp == nil {
12044 return graphql.Null
12045 }
12046 res := resTmp.(*time.Time)
12047 fc.Result = res
12048 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
12049 }
12050
12051 func (ec *executionContext) _Pod_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12052 defer func() {
12053 if r := recover(); r != nil {
12054 ec.Error(ctx, ec.Recover(ctx, r))
12055 ret = graphql.Null
12056 }
12057 }()
12058 fc := &graphql.FieldContext{
12059 Object: "Pod",
12060 Field: field,
12061 Args: nil,
12062 IsMethod: false,
12063 IsResolver: false,
12064 }
12065
12066 ctx = graphql.WithFieldContext(ctx, fc)
12067 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12068 ctx = rctx
12069 return obj.DeletionGracePeriodSeconds, nil
12070 })
12071 if err != nil {
12072 ec.Error(ctx, err)
12073 return graphql.Null
12074 }
12075 if resTmp == nil {
12076 return graphql.Null
12077 }
12078 res := resTmp.(*int64)
12079 fc.Result = res
12080 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
12081 }
12082
12083 func (ec *executionContext) _Pod_labels(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12084 defer func() {
12085 if r := recover(); r != nil {
12086 ec.Error(ctx, ec.Recover(ctx, r))
12087 ret = graphql.Null
12088 }
12089 }()
12090 fc := &graphql.FieldContext{
12091 Object: "Pod",
12092 Field: field,
12093 Args: nil,
12094 IsMethod: true,
12095 IsResolver: true,
12096 }
12097
12098 ctx = graphql.WithFieldContext(ctx, fc)
12099 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12100 ctx = rctx
12101 return ec.resolvers.Pod().Labels(rctx, obj)
12102 })
12103 if err != nil {
12104 ec.Error(ctx, err)
12105 return graphql.Null
12106 }
12107 if resTmp == nil {
12108 return graphql.Null
12109 }
12110 res := resTmp.(map[string]interface{})
12111 fc.Result = res
12112 return ec.marshalOMap2map(ctx, field.Selections, res)
12113 }
12114
12115 func (ec *executionContext) _Pod_annotations(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12116 defer func() {
12117 if r := recover(); r != nil {
12118 ec.Error(ctx, ec.Recover(ctx, r))
12119 ret = graphql.Null
12120 }
12121 }()
12122 fc := &graphql.FieldContext{
12123 Object: "Pod",
12124 Field: field,
12125 Args: nil,
12126 IsMethod: true,
12127 IsResolver: true,
12128 }
12129
12130 ctx = graphql.WithFieldContext(ctx, fc)
12131 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12132 ctx = rctx
12133 return ec.resolvers.Pod().Annotations(rctx, obj)
12134 })
12135 if err != nil {
12136 ec.Error(ctx, err)
12137 return graphql.Null
12138 }
12139 if resTmp == nil {
12140 return graphql.Null
12141 }
12142 res := resTmp.(map[string]interface{})
12143 fc.Result = res
12144 return ec.marshalOMap2map(ctx, field.Selections, res)
12145 }
12146
12147 func (ec *executionContext) _Pod_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12148 defer func() {
12149 if r := recover(); r != nil {
12150 ec.Error(ctx, ec.Recover(ctx, r))
12151 ret = graphql.Null
12152 }
12153 }()
12154 fc := &graphql.FieldContext{
12155 Object: "Pod",
12156 Field: field,
12157 Args: nil,
12158 IsMethod: false,
12159 IsResolver: false,
12160 }
12161
12162 ctx = graphql.WithFieldContext(ctx, fc)
12163 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12164 ctx = rctx
12165 return obj.OwnerReferences, nil
12166 })
12167 if err != nil {
12168 ec.Error(ctx, err)
12169 return graphql.Null
12170 }
12171 if resTmp == nil {
12172 return graphql.Null
12173 }
12174 res := resTmp.([]v11.OwnerReference)
12175 fc.Result = res
12176 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
12177 }
12178
12179 func (ec *executionContext) _Pod_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12180 defer func() {
12181 if r := recover(); r != nil {
12182 ec.Error(ctx, ec.Recover(ctx, r))
12183 ret = graphql.Null
12184 }
12185 }()
12186 fc := &graphql.FieldContext{
12187 Object: "Pod",
12188 Field: field,
12189 Args: nil,
12190 IsMethod: false,
12191 IsResolver: false,
12192 }
12193
12194 ctx = graphql.WithFieldContext(ctx, fc)
12195 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12196 ctx = rctx
12197 return obj.Finalizers, nil
12198 })
12199 if err != nil {
12200 ec.Error(ctx, err)
12201 return graphql.Null
12202 }
12203 if resTmp == nil {
12204 return graphql.Null
12205 }
12206 res := resTmp.([]string)
12207 fc.Result = res
12208 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
12209 }
12210
12211 func (ec *executionContext) _Pod_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12212 defer func() {
12213 if r := recover(); r != nil {
12214 ec.Error(ctx, ec.Recover(ctx, r))
12215 ret = graphql.Null
12216 }
12217 }()
12218 fc := &graphql.FieldContext{
12219 Object: "Pod",
12220 Field: field,
12221 Args: nil,
12222 IsMethod: false,
12223 IsResolver: false,
12224 }
12225
12226 ctx = graphql.WithFieldContext(ctx, fc)
12227 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12228 ctx = rctx
12229 return obj.ClusterName, nil
12230 })
12231 if err != nil {
12232 ec.Error(ctx, err)
12233 return graphql.Null
12234 }
12235 if resTmp == nil {
12236 if !graphql.HasFieldError(ctx, fc) {
12237 ec.Errorf(ctx, "must not be null")
12238 }
12239 return graphql.Null
12240 }
12241 res := resTmp.(string)
12242 fc.Result = res
12243 return ec.marshalNString2string(ctx, field.Selections, res)
12244 }
12245
12246 func (ec *executionContext) _Pod_spec(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12247 defer func() {
12248 if r := recover(); r != nil {
12249 ec.Error(ctx, ec.Recover(ctx, r))
12250 ret = graphql.Null
12251 }
12252 }()
12253 fc := &graphql.FieldContext{
12254 Object: "Pod",
12255 Field: field,
12256 Args: nil,
12257 IsMethod: false,
12258 IsResolver: false,
12259 }
12260
12261 ctx = graphql.WithFieldContext(ctx, fc)
12262 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12263 ctx = rctx
12264 return obj.Spec, nil
12265 })
12266 if err != nil {
12267 ec.Error(ctx, err)
12268 return graphql.Null
12269 }
12270 if resTmp == nil {
12271 if !graphql.HasFieldError(ctx, fc) {
12272 ec.Errorf(ctx, "must not be null")
12273 }
12274 return graphql.Null
12275 }
12276 res := resTmp.(v1.PodSpec)
12277 fc.Result = res
12278 return ec.marshalNPodSpec2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodSpec(ctx, field.Selections, res)
12279 }
12280
12281 func (ec *executionContext) _Pod_status(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12282 defer func() {
12283 if r := recover(); r != nil {
12284 ec.Error(ctx, ec.Recover(ctx, r))
12285 ret = graphql.Null
12286 }
12287 }()
12288 fc := &graphql.FieldContext{
12289 Object: "Pod",
12290 Field: field,
12291 Args: nil,
12292 IsMethod: false,
12293 IsResolver: false,
12294 }
12295
12296 ctx = graphql.WithFieldContext(ctx, fc)
12297 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12298 ctx = rctx
12299 return obj.Status, nil
12300 })
12301 if err != nil {
12302 ec.Error(ctx, err)
12303 return graphql.Null
12304 }
12305 if resTmp == nil {
12306 if !graphql.HasFieldError(ctx, fc) {
12307 ec.Errorf(ctx, "must not be null")
12308 }
12309 return graphql.Null
12310 }
12311 res := resTmp.(v1.PodStatus)
12312 fc.Result = res
12313 return ec.marshalNPodStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodStatus(ctx, field.Selections, res)
12314 }
12315
12316 func (ec *executionContext) _Pod_logs(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12317 defer func() {
12318 if r := recover(); r != nil {
12319 ec.Error(ctx, ec.Recover(ctx, r))
12320 ret = graphql.Null
12321 }
12322 }()
12323 fc := &graphql.FieldContext{
12324 Object: "Pod",
12325 Field: field,
12326 Args: nil,
12327 IsMethod: true,
12328 IsResolver: true,
12329 }
12330
12331 ctx = graphql.WithFieldContext(ctx, fc)
12332 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12333 ctx = rctx
12334 return ec.resolvers.Pod().Logs(rctx, obj)
12335 })
12336 if err != nil {
12337 ec.Error(ctx, err)
12338 return graphql.Null
12339 }
12340 if resTmp == nil {
12341 if !graphql.HasFieldError(ctx, fc) {
12342 ec.Errorf(ctx, "must not be null")
12343 }
12344 return graphql.Null
12345 }
12346 res := resTmp.(string)
12347 fc.Result = res
12348 return ec.marshalNString2string(ctx, field.Selections, res)
12349 }
12350
12351 func (ec *executionContext) _Pod_daemon(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12352 defer func() {
12353 if r := recover(); r != nil {
12354 ec.Error(ctx, ec.Recover(ctx, r))
12355 ret = graphql.Null
12356 }
12357 }()
12358 fc := &graphql.FieldContext{
12359 Object: "Pod",
12360 Field: field,
12361 Args: nil,
12362 IsMethod: true,
12363 IsResolver: true,
12364 }
12365
12366 ctx = graphql.WithFieldContext(ctx, fc)
12367 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12368 ctx = rctx
12369 return ec.resolvers.Pod().Daemon(rctx, obj)
12370 })
12371 if err != nil {
12372 ec.Error(ctx, err)
12373 return graphql.Null
12374 }
12375 if resTmp == nil {
12376 return graphql.Null
12377 }
12378 res := resTmp.(*v1.Pod)
12379 fc.Result = res
12380 return ec.marshalOPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
12381 }
12382
12383 func (ec *executionContext) _Pod_processes(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12384 defer func() {
12385 if r := recover(); r != nil {
12386 ec.Error(ctx, ec.Recover(ctx, r))
12387 ret = graphql.Null
12388 }
12389 }()
12390 fc := &graphql.FieldContext{
12391 Object: "Pod",
12392 Field: field,
12393 Args: nil,
12394 IsMethod: true,
12395 IsResolver: true,
12396 }
12397
12398 ctx = graphql.WithFieldContext(ctx, fc)
12399 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12400 ctx = rctx
12401 return ec.resolvers.Pod().Processes(rctx, obj)
12402 })
12403 if err != nil {
12404 ec.Error(ctx, err)
12405 return graphql.Null
12406 }
12407 if resTmp == nil {
12408 return graphql.Null
12409 }
12410 res := resTmp.([]*model.Process)
12411 fc.Result = res
12412 return ec.marshalOProcess2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐProcessᚄ(ctx, field.Selections, res)
12413 }
12414
12415 func (ec *executionContext) _Pod_mounts(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12416 defer func() {
12417 if r := recover(); r != nil {
12418 ec.Error(ctx, ec.Recover(ctx, r))
12419 ret = graphql.Null
12420 }
12421 }()
12422 fc := &graphql.FieldContext{
12423 Object: "Pod",
12424 Field: field,
12425 Args: nil,
12426 IsMethod: true,
12427 IsResolver: true,
12428 }
12429
12430 ctx = graphql.WithFieldContext(ctx, fc)
12431 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12432 ctx = rctx
12433 return ec.resolvers.Pod().Mounts(rctx, obj)
12434 })
12435 if err != nil {
12436 ec.Error(ctx, err)
12437 return graphql.Null
12438 }
12439 if resTmp == nil {
12440 return graphql.Null
12441 }
12442 res := resTmp.([]string)
12443 fc.Result = res
12444 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
12445 }
12446
12447 func (ec *executionContext) _Pod_ipset(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12448 defer func() {
12449 if r := recover(); r != nil {
12450 ec.Error(ctx, ec.Recover(ctx, r))
12451 ret = graphql.Null
12452 }
12453 }()
12454 fc := &graphql.FieldContext{
12455 Object: "Pod",
12456 Field: field,
12457 Args: nil,
12458 IsMethod: true,
12459 IsResolver: true,
12460 }
12461
12462 ctx = graphql.WithFieldContext(ctx, fc)
12463 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12464 ctx = rctx
12465 return ec.resolvers.Pod().Ipset(rctx, obj)
12466 })
12467 if err != nil {
12468 ec.Error(ctx, err)
12469 return graphql.Null
12470 }
12471 if resTmp == nil {
12472 if !graphql.HasFieldError(ctx, fc) {
12473 ec.Errorf(ctx, "must not be null")
12474 }
12475 return graphql.Null
12476 }
12477 res := resTmp.(string)
12478 fc.Result = res
12479 return ec.marshalNString2string(ctx, field.Selections, res)
12480 }
12481
12482 func (ec *executionContext) _Pod_tcQdisc(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12483 defer func() {
12484 if r := recover(); r != nil {
12485 ec.Error(ctx, ec.Recover(ctx, r))
12486 ret = graphql.Null
12487 }
12488 }()
12489 fc := &graphql.FieldContext{
12490 Object: "Pod",
12491 Field: field,
12492 Args: nil,
12493 IsMethod: true,
12494 IsResolver: true,
12495 }
12496
12497 ctx = graphql.WithFieldContext(ctx, fc)
12498 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12499 ctx = rctx
12500 return ec.resolvers.Pod().TcQdisc(rctx, obj)
12501 })
12502 if err != nil {
12503 ec.Error(ctx, err)
12504 return graphql.Null
12505 }
12506 if resTmp == nil {
12507 if !graphql.HasFieldError(ctx, fc) {
12508 ec.Errorf(ctx, "must not be null")
12509 }
12510 return graphql.Null
12511 }
12512 res := resTmp.(string)
12513 fc.Result = res
12514 return ec.marshalNString2string(ctx, field.Selections, res)
12515 }
12516
12517 func (ec *executionContext) _Pod_iptables(ctx context.Context, field graphql.CollectedField, obj *v1.Pod) (ret graphql.Marshaler) {
12518 defer func() {
12519 if r := recover(); r != nil {
12520 ec.Error(ctx, ec.Recover(ctx, r))
12521 ret = graphql.Null
12522 }
12523 }()
12524 fc := &graphql.FieldContext{
12525 Object: "Pod",
12526 Field: field,
12527 Args: nil,
12528 IsMethod: true,
12529 IsResolver: true,
12530 }
12531
12532 ctx = graphql.WithFieldContext(ctx, fc)
12533 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12534 ctx = rctx
12535 return ec.resolvers.Pod().Iptables(rctx, obj)
12536 })
12537 if err != nil {
12538 ec.Error(ctx, err)
12539 return graphql.Null
12540 }
12541 if resTmp == nil {
12542 if !graphql.HasFieldError(ctx, fc) {
12543 ec.Errorf(ctx, "must not be null")
12544 }
12545 return graphql.Null
12546 }
12547 res := resTmp.(string)
12548 fc.Result = res
12549 return ec.marshalNString2string(ctx, field.Selections, res)
12550 }
12551
12552 func (ec *executionContext) _PodCondition_type(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
12553 defer func() {
12554 if r := recover(); r != nil {
12555 ec.Error(ctx, ec.Recover(ctx, r))
12556 ret = graphql.Null
12557 }
12558 }()
12559 fc := &graphql.FieldContext{
12560 Object: "PodCondition",
12561 Field: field,
12562 Args: nil,
12563 IsMethod: true,
12564 IsResolver: true,
12565 }
12566
12567 ctx = graphql.WithFieldContext(ctx, fc)
12568 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12569 ctx = rctx
12570 return ec.resolvers.PodCondition().Type(rctx, obj)
12571 })
12572 if err != nil {
12573 ec.Error(ctx, err)
12574 return graphql.Null
12575 }
12576 if resTmp == nil {
12577 if !graphql.HasFieldError(ctx, fc) {
12578 ec.Errorf(ctx, "must not be null")
12579 }
12580 return graphql.Null
12581 }
12582 res := resTmp.(string)
12583 fc.Result = res
12584 return ec.marshalNString2string(ctx, field.Selections, res)
12585 }
12586
12587 func (ec *executionContext) _PodCondition_status(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
12588 defer func() {
12589 if r := recover(); r != nil {
12590 ec.Error(ctx, ec.Recover(ctx, r))
12591 ret = graphql.Null
12592 }
12593 }()
12594 fc := &graphql.FieldContext{
12595 Object: "PodCondition",
12596 Field: field,
12597 Args: nil,
12598 IsMethod: true,
12599 IsResolver: true,
12600 }
12601
12602 ctx = graphql.WithFieldContext(ctx, fc)
12603 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12604 ctx = rctx
12605 return ec.resolvers.PodCondition().Status(rctx, obj)
12606 })
12607 if err != nil {
12608 ec.Error(ctx, err)
12609 return graphql.Null
12610 }
12611 if resTmp == nil {
12612 if !graphql.HasFieldError(ctx, fc) {
12613 ec.Errorf(ctx, "must not be null")
12614 }
12615 return graphql.Null
12616 }
12617 res := resTmp.(string)
12618 fc.Result = res
12619 return ec.marshalNString2string(ctx, field.Selections, res)
12620 }
12621
12622 func (ec *executionContext) _PodCondition_lastProbeTime(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
12623 defer func() {
12624 if r := recover(); r != nil {
12625 ec.Error(ctx, ec.Recover(ctx, r))
12626 ret = graphql.Null
12627 }
12628 }()
12629 fc := &graphql.FieldContext{
12630 Object: "PodCondition",
12631 Field: field,
12632 Args: nil,
12633 IsMethod: true,
12634 IsResolver: true,
12635 }
12636
12637 ctx = graphql.WithFieldContext(ctx, fc)
12638 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12639 ctx = rctx
12640 return ec.resolvers.PodCondition().LastProbeTime(rctx, obj)
12641 })
12642 if err != nil {
12643 ec.Error(ctx, err)
12644 return graphql.Null
12645 }
12646 if resTmp == nil {
12647 return graphql.Null
12648 }
12649 res := resTmp.(*time.Time)
12650 fc.Result = res
12651 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
12652 }
12653
12654 func (ec *executionContext) _PodCondition_lastTransitionTime(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
12655 defer func() {
12656 if r := recover(); r != nil {
12657 ec.Error(ctx, ec.Recover(ctx, r))
12658 ret = graphql.Null
12659 }
12660 }()
12661 fc := &graphql.FieldContext{
12662 Object: "PodCondition",
12663 Field: field,
12664 Args: nil,
12665 IsMethod: true,
12666 IsResolver: true,
12667 }
12668
12669 ctx = graphql.WithFieldContext(ctx, fc)
12670 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12671 ctx = rctx
12672 return ec.resolvers.PodCondition().LastTransitionTime(rctx, obj)
12673 })
12674 if err != nil {
12675 ec.Error(ctx, err)
12676 return graphql.Null
12677 }
12678 if resTmp == nil {
12679 return graphql.Null
12680 }
12681 res := resTmp.(*time.Time)
12682 fc.Result = res
12683 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
12684 }
12685
12686 func (ec *executionContext) _PodCondition_reason(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
12687 defer func() {
12688 if r := recover(); r != nil {
12689 ec.Error(ctx, ec.Recover(ctx, r))
12690 ret = graphql.Null
12691 }
12692 }()
12693 fc := &graphql.FieldContext{
12694 Object: "PodCondition",
12695 Field: field,
12696 Args: nil,
12697 IsMethod: false,
12698 IsResolver: false,
12699 }
12700
12701 ctx = graphql.WithFieldContext(ctx, fc)
12702 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12703 ctx = rctx
12704 return obj.Reason, nil
12705 })
12706 if err != nil {
12707 ec.Error(ctx, err)
12708 return graphql.Null
12709 }
12710 if resTmp == nil {
12711 return graphql.Null
12712 }
12713 res := resTmp.(string)
12714 fc.Result = res
12715 return ec.marshalOString2string(ctx, field.Selections, res)
12716 }
12717
12718 func (ec *executionContext) _PodCondition_message(ctx context.Context, field graphql.CollectedField, obj *v1.PodCondition) (ret graphql.Marshaler) {
12719 defer func() {
12720 if r := recover(); r != nil {
12721 ec.Error(ctx, ec.Recover(ctx, r))
12722 ret = graphql.Null
12723 }
12724 }()
12725 fc := &graphql.FieldContext{
12726 Object: "PodCondition",
12727 Field: field,
12728 Args: nil,
12729 IsMethod: false,
12730 IsResolver: false,
12731 }
12732
12733 ctx = graphql.WithFieldContext(ctx, fc)
12734 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12735 ctx = rctx
12736 return obj.Message, nil
12737 })
12738 if err != nil {
12739 ec.Error(ctx, err)
12740 return graphql.Null
12741 }
12742 if resTmp == nil {
12743 return graphql.Null
12744 }
12745 res := resTmp.(string)
12746 fc.Result = res
12747 return ec.marshalOString2string(ctx, field.Selections, res)
12748 }
12749
12750 func (ec *executionContext) _PodHTTPChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12751 defer func() {
12752 if r := recover(); r != nil {
12753 ec.Error(ctx, ec.Recover(ctx, r))
12754 ret = graphql.Null
12755 }
12756 }()
12757 fc := &graphql.FieldContext{
12758 Object: "PodHTTPChaos",
12759 Field: field,
12760 Args: nil,
12761 IsMethod: false,
12762 IsResolver: false,
12763 }
12764
12765 ctx = graphql.WithFieldContext(ctx, fc)
12766 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12767 ctx = rctx
12768 return obj.Kind, nil
12769 })
12770 if err != nil {
12771 ec.Error(ctx, err)
12772 return graphql.Null
12773 }
12774 if resTmp == nil {
12775 if !graphql.HasFieldError(ctx, fc) {
12776 ec.Errorf(ctx, "must not be null")
12777 }
12778 return graphql.Null
12779 }
12780 res := resTmp.(string)
12781 fc.Result = res
12782 return ec.marshalNString2string(ctx, field.Selections, res)
12783 }
12784
12785 func (ec *executionContext) _PodHTTPChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12786 defer func() {
12787 if r := recover(); r != nil {
12788 ec.Error(ctx, ec.Recover(ctx, r))
12789 ret = graphql.Null
12790 }
12791 }()
12792 fc := &graphql.FieldContext{
12793 Object: "PodHTTPChaos",
12794 Field: field,
12795 Args: nil,
12796 IsMethod: false,
12797 IsResolver: false,
12798 }
12799
12800 ctx = graphql.WithFieldContext(ctx, fc)
12801 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12802 ctx = rctx
12803 return obj.APIVersion, nil
12804 })
12805 if err != nil {
12806 ec.Error(ctx, err)
12807 return graphql.Null
12808 }
12809 if resTmp == nil {
12810 if !graphql.HasFieldError(ctx, fc) {
12811 ec.Errorf(ctx, "must not be null")
12812 }
12813 return graphql.Null
12814 }
12815 res := resTmp.(string)
12816 fc.Result = res
12817 return ec.marshalNString2string(ctx, field.Selections, res)
12818 }
12819
12820 func (ec *executionContext) _PodHTTPChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12821 defer func() {
12822 if r := recover(); r != nil {
12823 ec.Error(ctx, ec.Recover(ctx, r))
12824 ret = graphql.Null
12825 }
12826 }()
12827 fc := &graphql.FieldContext{
12828 Object: "PodHTTPChaos",
12829 Field: field,
12830 Args: nil,
12831 IsMethod: false,
12832 IsResolver: false,
12833 }
12834
12835 ctx = graphql.WithFieldContext(ctx, fc)
12836 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12837 ctx = rctx
12838 return obj.Name, nil
12839 })
12840 if err != nil {
12841 ec.Error(ctx, err)
12842 return graphql.Null
12843 }
12844 if resTmp == nil {
12845 if !graphql.HasFieldError(ctx, fc) {
12846 ec.Errorf(ctx, "must not be null")
12847 }
12848 return graphql.Null
12849 }
12850 res := resTmp.(string)
12851 fc.Result = res
12852 return ec.marshalNString2string(ctx, field.Selections, res)
12853 }
12854
12855 func (ec *executionContext) _PodHTTPChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12856 defer func() {
12857 if r := recover(); r != nil {
12858 ec.Error(ctx, ec.Recover(ctx, r))
12859 ret = graphql.Null
12860 }
12861 }()
12862 fc := &graphql.FieldContext{
12863 Object: "PodHTTPChaos",
12864 Field: field,
12865 Args: nil,
12866 IsMethod: false,
12867 IsResolver: false,
12868 }
12869
12870 ctx = graphql.WithFieldContext(ctx, fc)
12871 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12872 ctx = rctx
12873 return obj.GenerateName, nil
12874 })
12875 if err != nil {
12876 ec.Error(ctx, err)
12877 return graphql.Null
12878 }
12879 if resTmp == nil {
12880 if !graphql.HasFieldError(ctx, fc) {
12881 ec.Errorf(ctx, "must not be null")
12882 }
12883 return graphql.Null
12884 }
12885 res := resTmp.(string)
12886 fc.Result = res
12887 return ec.marshalNString2string(ctx, field.Selections, res)
12888 }
12889
12890 func (ec *executionContext) _PodHTTPChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12891 defer func() {
12892 if r := recover(); r != nil {
12893 ec.Error(ctx, ec.Recover(ctx, r))
12894 ret = graphql.Null
12895 }
12896 }()
12897 fc := &graphql.FieldContext{
12898 Object: "PodHTTPChaos",
12899 Field: field,
12900 Args: nil,
12901 IsMethod: false,
12902 IsResolver: false,
12903 }
12904
12905 ctx = graphql.WithFieldContext(ctx, fc)
12906 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12907 ctx = rctx
12908 return obj.Namespace, nil
12909 })
12910 if err != nil {
12911 ec.Error(ctx, err)
12912 return graphql.Null
12913 }
12914 if resTmp == nil {
12915 if !graphql.HasFieldError(ctx, fc) {
12916 ec.Errorf(ctx, "must not be null")
12917 }
12918 return graphql.Null
12919 }
12920 res := resTmp.(string)
12921 fc.Result = res
12922 return ec.marshalNString2string(ctx, field.Selections, res)
12923 }
12924
12925 func (ec *executionContext) _PodHTTPChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12926 defer func() {
12927 if r := recover(); r != nil {
12928 ec.Error(ctx, ec.Recover(ctx, r))
12929 ret = graphql.Null
12930 }
12931 }()
12932 fc := &graphql.FieldContext{
12933 Object: "PodHTTPChaos",
12934 Field: field,
12935 Args: nil,
12936 IsMethod: false,
12937 IsResolver: false,
12938 }
12939
12940 ctx = graphql.WithFieldContext(ctx, fc)
12941 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12942 ctx = rctx
12943 return obj.SelfLink, nil
12944 })
12945 if err != nil {
12946 ec.Error(ctx, err)
12947 return graphql.Null
12948 }
12949 if resTmp == nil {
12950 if !graphql.HasFieldError(ctx, fc) {
12951 ec.Errorf(ctx, "must not be null")
12952 }
12953 return graphql.Null
12954 }
12955 res := resTmp.(string)
12956 fc.Result = res
12957 return ec.marshalNString2string(ctx, field.Selections, res)
12958 }
12959
12960 func (ec *executionContext) _PodHTTPChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12961 defer func() {
12962 if r := recover(); r != nil {
12963 ec.Error(ctx, ec.Recover(ctx, r))
12964 ret = graphql.Null
12965 }
12966 }()
12967 fc := &graphql.FieldContext{
12968 Object: "PodHTTPChaos",
12969 Field: field,
12970 Args: nil,
12971 IsMethod: true,
12972 IsResolver: true,
12973 }
12974
12975 ctx = graphql.WithFieldContext(ctx, fc)
12976 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
12977 ctx = rctx
12978 return ec.resolvers.PodHTTPChaos().UID(rctx, obj)
12979 })
12980 if err != nil {
12981 ec.Error(ctx, err)
12982 return graphql.Null
12983 }
12984 if resTmp == nil {
12985 if !graphql.HasFieldError(ctx, fc) {
12986 ec.Errorf(ctx, "must not be null")
12987 }
12988 return graphql.Null
12989 }
12990 res := resTmp.(string)
12991 fc.Result = res
12992 return ec.marshalNString2string(ctx, field.Selections, res)
12993 }
12994
12995 func (ec *executionContext) _PodHTTPChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
12996 defer func() {
12997 if r := recover(); r != nil {
12998 ec.Error(ctx, ec.Recover(ctx, r))
12999 ret = graphql.Null
13000 }
13001 }()
13002 fc := &graphql.FieldContext{
13003 Object: "PodHTTPChaos",
13004 Field: field,
13005 Args: nil,
13006 IsMethod: false,
13007 IsResolver: false,
13008 }
13009
13010 ctx = graphql.WithFieldContext(ctx, fc)
13011 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13012 ctx = rctx
13013 return obj.ResourceVersion, nil
13014 })
13015 if err != nil {
13016 ec.Error(ctx, err)
13017 return graphql.Null
13018 }
13019 if resTmp == nil {
13020 if !graphql.HasFieldError(ctx, fc) {
13021 ec.Errorf(ctx, "must not be null")
13022 }
13023 return graphql.Null
13024 }
13025 res := resTmp.(string)
13026 fc.Result = res
13027 return ec.marshalNString2string(ctx, field.Selections, res)
13028 }
13029
13030 func (ec *executionContext) _PodHTTPChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13031 defer func() {
13032 if r := recover(); r != nil {
13033 ec.Error(ctx, ec.Recover(ctx, r))
13034 ret = graphql.Null
13035 }
13036 }()
13037 fc := &graphql.FieldContext{
13038 Object: "PodHTTPChaos",
13039 Field: field,
13040 Args: nil,
13041 IsMethod: false,
13042 IsResolver: false,
13043 }
13044
13045 ctx = graphql.WithFieldContext(ctx, fc)
13046 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13047 ctx = rctx
13048 return obj.Generation, nil
13049 })
13050 if err != nil {
13051 ec.Error(ctx, err)
13052 return graphql.Null
13053 }
13054 if resTmp == nil {
13055 if !graphql.HasFieldError(ctx, fc) {
13056 ec.Errorf(ctx, "must not be null")
13057 }
13058 return graphql.Null
13059 }
13060 res := resTmp.(int64)
13061 fc.Result = res
13062 return ec.marshalNInt2int64(ctx, field.Selections, res)
13063 }
13064
13065 func (ec *executionContext) _PodHTTPChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13066 defer func() {
13067 if r := recover(); r != nil {
13068 ec.Error(ctx, ec.Recover(ctx, r))
13069 ret = graphql.Null
13070 }
13071 }()
13072 fc := &graphql.FieldContext{
13073 Object: "PodHTTPChaos",
13074 Field: field,
13075 Args: nil,
13076 IsMethod: true,
13077 IsResolver: true,
13078 }
13079
13080 ctx = graphql.WithFieldContext(ctx, fc)
13081 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13082 ctx = rctx
13083 return ec.resolvers.PodHTTPChaos().CreationTimestamp(rctx, obj)
13084 })
13085 if err != nil {
13086 ec.Error(ctx, err)
13087 return graphql.Null
13088 }
13089 if resTmp == nil {
13090 if !graphql.HasFieldError(ctx, fc) {
13091 ec.Errorf(ctx, "must not be null")
13092 }
13093 return graphql.Null
13094 }
13095 res := resTmp.(*time.Time)
13096 fc.Result = res
13097 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
13098 }
13099
13100 func (ec *executionContext) _PodHTTPChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13101 defer func() {
13102 if r := recover(); r != nil {
13103 ec.Error(ctx, ec.Recover(ctx, r))
13104 ret = graphql.Null
13105 }
13106 }()
13107 fc := &graphql.FieldContext{
13108 Object: "PodHTTPChaos",
13109 Field: field,
13110 Args: nil,
13111 IsMethod: true,
13112 IsResolver: true,
13113 }
13114
13115 ctx = graphql.WithFieldContext(ctx, fc)
13116 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13117 ctx = rctx
13118 return ec.resolvers.PodHTTPChaos().DeletionTimestamp(rctx, obj)
13119 })
13120 if err != nil {
13121 ec.Error(ctx, err)
13122 return graphql.Null
13123 }
13124 if resTmp == nil {
13125 return graphql.Null
13126 }
13127 res := resTmp.(*time.Time)
13128 fc.Result = res
13129 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
13130 }
13131
13132 func (ec *executionContext) _PodHTTPChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13133 defer func() {
13134 if r := recover(); r != nil {
13135 ec.Error(ctx, ec.Recover(ctx, r))
13136 ret = graphql.Null
13137 }
13138 }()
13139 fc := &graphql.FieldContext{
13140 Object: "PodHTTPChaos",
13141 Field: field,
13142 Args: nil,
13143 IsMethod: false,
13144 IsResolver: false,
13145 }
13146
13147 ctx = graphql.WithFieldContext(ctx, fc)
13148 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13149 ctx = rctx
13150 return obj.DeletionGracePeriodSeconds, nil
13151 })
13152 if err != nil {
13153 ec.Error(ctx, err)
13154 return graphql.Null
13155 }
13156 if resTmp == nil {
13157 return graphql.Null
13158 }
13159 res := resTmp.(*int64)
13160 fc.Result = res
13161 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
13162 }
13163
13164 func (ec *executionContext) _PodHTTPChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13165 defer func() {
13166 if r := recover(); r != nil {
13167 ec.Error(ctx, ec.Recover(ctx, r))
13168 ret = graphql.Null
13169 }
13170 }()
13171 fc := &graphql.FieldContext{
13172 Object: "PodHTTPChaos",
13173 Field: field,
13174 Args: nil,
13175 IsMethod: true,
13176 IsResolver: true,
13177 }
13178
13179 ctx = graphql.WithFieldContext(ctx, fc)
13180 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13181 ctx = rctx
13182 return ec.resolvers.PodHTTPChaos().Labels(rctx, obj)
13183 })
13184 if err != nil {
13185 ec.Error(ctx, err)
13186 return graphql.Null
13187 }
13188 if resTmp == nil {
13189 return graphql.Null
13190 }
13191 res := resTmp.(map[string]interface{})
13192 fc.Result = res
13193 return ec.marshalOMap2map(ctx, field.Selections, res)
13194 }
13195
13196 func (ec *executionContext) _PodHTTPChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13197 defer func() {
13198 if r := recover(); r != nil {
13199 ec.Error(ctx, ec.Recover(ctx, r))
13200 ret = graphql.Null
13201 }
13202 }()
13203 fc := &graphql.FieldContext{
13204 Object: "PodHTTPChaos",
13205 Field: field,
13206 Args: nil,
13207 IsMethod: true,
13208 IsResolver: true,
13209 }
13210
13211 ctx = graphql.WithFieldContext(ctx, fc)
13212 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13213 ctx = rctx
13214 return ec.resolvers.PodHTTPChaos().Annotations(rctx, obj)
13215 })
13216 if err != nil {
13217 ec.Error(ctx, err)
13218 return graphql.Null
13219 }
13220 if resTmp == nil {
13221 return graphql.Null
13222 }
13223 res := resTmp.(map[string]interface{})
13224 fc.Result = res
13225 return ec.marshalOMap2map(ctx, field.Selections, res)
13226 }
13227
13228 func (ec *executionContext) _PodHTTPChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13229 defer func() {
13230 if r := recover(); r != nil {
13231 ec.Error(ctx, ec.Recover(ctx, r))
13232 ret = graphql.Null
13233 }
13234 }()
13235 fc := &graphql.FieldContext{
13236 Object: "PodHTTPChaos",
13237 Field: field,
13238 Args: nil,
13239 IsMethod: false,
13240 IsResolver: false,
13241 }
13242
13243 ctx = graphql.WithFieldContext(ctx, fc)
13244 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13245 ctx = rctx
13246 return obj.OwnerReferences, nil
13247 })
13248 if err != nil {
13249 ec.Error(ctx, err)
13250 return graphql.Null
13251 }
13252 if resTmp == nil {
13253 return graphql.Null
13254 }
13255 res := resTmp.([]v11.OwnerReference)
13256 fc.Result = res
13257 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
13258 }
13259
13260 func (ec *executionContext) _PodHTTPChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13261 defer func() {
13262 if r := recover(); r != nil {
13263 ec.Error(ctx, ec.Recover(ctx, r))
13264 ret = graphql.Null
13265 }
13266 }()
13267 fc := &graphql.FieldContext{
13268 Object: "PodHTTPChaos",
13269 Field: field,
13270 Args: nil,
13271 IsMethod: false,
13272 IsResolver: false,
13273 }
13274
13275 ctx = graphql.WithFieldContext(ctx, fc)
13276 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13277 ctx = rctx
13278 return obj.Finalizers, nil
13279 })
13280 if err != nil {
13281 ec.Error(ctx, err)
13282 return graphql.Null
13283 }
13284 if resTmp == nil {
13285 return graphql.Null
13286 }
13287 res := resTmp.([]string)
13288 fc.Result = res
13289 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
13290 }
13291
13292 func (ec *executionContext) _PodHTTPChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13293 defer func() {
13294 if r := recover(); r != nil {
13295 ec.Error(ctx, ec.Recover(ctx, r))
13296 ret = graphql.Null
13297 }
13298 }()
13299 fc := &graphql.FieldContext{
13300 Object: "PodHTTPChaos",
13301 Field: field,
13302 Args: nil,
13303 IsMethod: false,
13304 IsResolver: false,
13305 }
13306
13307 ctx = graphql.WithFieldContext(ctx, fc)
13308 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13309 ctx = rctx
13310 return obj.ClusterName, nil
13311 })
13312 if err != nil {
13313 ec.Error(ctx, err)
13314 return graphql.Null
13315 }
13316 if resTmp == nil {
13317 if !graphql.HasFieldError(ctx, fc) {
13318 ec.Errorf(ctx, "must not be null")
13319 }
13320 return graphql.Null
13321 }
13322 res := resTmp.(string)
13323 fc.Result = res
13324 return ec.marshalNString2string(ctx, field.Selections, res)
13325 }
13326
13327 func (ec *executionContext) _PodHTTPChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13328 defer func() {
13329 if r := recover(); r != nil {
13330 ec.Error(ctx, ec.Recover(ctx, r))
13331 ret = graphql.Null
13332 }
13333 }()
13334 fc := &graphql.FieldContext{
13335 Object: "PodHTTPChaos",
13336 Field: field,
13337 Args: nil,
13338 IsMethod: false,
13339 IsResolver: false,
13340 }
13341
13342 ctx = graphql.WithFieldContext(ctx, fc)
13343 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13344 ctx = rctx
13345 return obj.Spec, nil
13346 })
13347 if err != nil {
13348 ec.Error(ctx, err)
13349 return graphql.Null
13350 }
13351 if resTmp == nil {
13352 if !graphql.HasFieldError(ctx, fc) {
13353 ec.Errorf(ctx, "must not be null")
13354 }
13355 return graphql.Null
13356 }
13357 res := resTmp.(v1alpha1.PodHttpChaosSpec)
13358 fc.Result = res
13359 return ec.marshalNPodHttpChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSpec(ctx, field.Selections, res)
13360 }
13361
13362 func (ec *executionContext) _PodHTTPChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13363 defer func() {
13364 if r := recover(); r != nil {
13365 ec.Error(ctx, ec.Recover(ctx, r))
13366 ret = graphql.Null
13367 }
13368 }()
13369 fc := &graphql.FieldContext{
13370 Object: "PodHTTPChaos",
13371 Field: field,
13372 Args: nil,
13373 IsMethod: false,
13374 IsResolver: false,
13375 }
13376
13377 ctx = graphql.WithFieldContext(ctx, fc)
13378 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13379 ctx = rctx
13380 return obj.Status, nil
13381 })
13382 if err != nil {
13383 ec.Error(ctx, err)
13384 return graphql.Null
13385 }
13386 if resTmp == nil {
13387 if !graphql.HasFieldError(ctx, fc) {
13388 ec.Errorf(ctx, "must not be null")
13389 }
13390 return graphql.Null
13391 }
13392 res := resTmp.(v1alpha1.PodHttpChaosStatus)
13393 fc.Result = res
13394 return ec.marshalNPodHttpChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosStatus(ctx, field.Selections, res)
13395 }
13396
13397 func (ec *executionContext) _PodHTTPChaos_pod(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaos) (ret graphql.Marshaler) {
13398 defer func() {
13399 if r := recover(); r != nil {
13400 ec.Error(ctx, ec.Recover(ctx, r))
13401 ret = graphql.Null
13402 }
13403 }()
13404 fc := &graphql.FieldContext{
13405 Object: "PodHTTPChaos",
13406 Field: field,
13407 Args: nil,
13408 IsMethod: true,
13409 IsResolver: true,
13410 }
13411
13412 ctx = graphql.WithFieldContext(ctx, fc)
13413 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13414 ctx = rctx
13415 return ec.resolvers.PodHTTPChaos().Pod(rctx, obj)
13416 })
13417 if err != nil {
13418 ec.Error(ctx, err)
13419 return graphql.Null
13420 }
13421 if resTmp == nil {
13422 if !graphql.HasFieldError(ctx, fc) {
13423 ec.Errorf(ctx, "must not be null")
13424 }
13425 return graphql.Null
13426 }
13427 res := resTmp.(*v1.Pod)
13428 fc.Result = res
13429 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
13430 }
13431
13432 func (ec *executionContext) _PodHttpChaosActions_abort(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
13433 defer func() {
13434 if r := recover(); r != nil {
13435 ec.Error(ctx, ec.Recover(ctx, r))
13436 ret = graphql.Null
13437 }
13438 }()
13439 fc := &graphql.FieldContext{
13440 Object: "PodHttpChaosActions",
13441 Field: field,
13442 Args: nil,
13443 IsMethod: false,
13444 IsResolver: false,
13445 }
13446
13447 ctx = graphql.WithFieldContext(ctx, fc)
13448 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13449 ctx = rctx
13450 return obj.Abort, nil
13451 })
13452 if err != nil {
13453 ec.Error(ctx, err)
13454 return graphql.Null
13455 }
13456 if resTmp == nil {
13457 return graphql.Null
13458 }
13459 res := resTmp.(*bool)
13460 fc.Result = res
13461 return ec.marshalOBoolean2ᚖbool(ctx, field.Selections, res)
13462 }
13463
13464 func (ec *executionContext) _PodHttpChaosActions_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
13465 defer func() {
13466 if r := recover(); r != nil {
13467 ec.Error(ctx, ec.Recover(ctx, r))
13468 ret = graphql.Null
13469 }
13470 }()
13471 fc := &graphql.FieldContext{
13472 Object: "PodHttpChaosActions",
13473 Field: field,
13474 Args: nil,
13475 IsMethod: false,
13476 IsResolver: false,
13477 }
13478
13479 ctx = graphql.WithFieldContext(ctx, fc)
13480 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13481 ctx = rctx
13482 return obj.Delay, nil
13483 })
13484 if err != nil {
13485 ec.Error(ctx, err)
13486 return graphql.Null
13487 }
13488 if resTmp == nil {
13489 return graphql.Null
13490 }
13491 res := resTmp.(*string)
13492 fc.Result = res
13493 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
13494 }
13495
13496 func (ec *executionContext) _PodHttpChaosActions_replace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
13497 defer func() {
13498 if r := recover(); r != nil {
13499 ec.Error(ctx, ec.Recover(ctx, r))
13500 ret = graphql.Null
13501 }
13502 }()
13503 fc := &graphql.FieldContext{
13504 Object: "PodHttpChaosActions",
13505 Field: field,
13506 Args: nil,
13507 IsMethod: false,
13508 IsResolver: false,
13509 }
13510
13511 ctx = graphql.WithFieldContext(ctx, fc)
13512 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13513 ctx = rctx
13514 return obj.Replace, nil
13515 })
13516 if err != nil {
13517 ec.Error(ctx, err)
13518 return graphql.Null
13519 }
13520 if resTmp == nil {
13521 return graphql.Null
13522 }
13523 res := resTmp.(*v1alpha1.PodHttpChaosReplaceActions)
13524 fc.Result = res
13525 return ec.marshalOPodHttpChaosReplaceActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosReplaceActions(ctx, field.Selections, res)
13526 }
13527
13528 func (ec *executionContext) _PodHttpChaosActions_patch(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosActions) (ret graphql.Marshaler) {
13529 defer func() {
13530 if r := recover(); r != nil {
13531 ec.Error(ctx, ec.Recover(ctx, r))
13532 ret = graphql.Null
13533 }
13534 }()
13535 fc := &graphql.FieldContext{
13536 Object: "PodHttpChaosActions",
13537 Field: field,
13538 Args: nil,
13539 IsMethod: false,
13540 IsResolver: false,
13541 }
13542
13543 ctx = graphql.WithFieldContext(ctx, fc)
13544 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13545 ctx = rctx
13546 return obj.Patch, nil
13547 })
13548 if err != nil {
13549 ec.Error(ctx, err)
13550 return graphql.Null
13551 }
13552 if resTmp == nil {
13553 return graphql.Null
13554 }
13555 res := resTmp.(*v1alpha1.PodHttpChaosPatchActions)
13556 fc.Result = res
13557 return ec.marshalOPodHttpChaosPatchActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchActions(ctx, field.Selections, res)
13558 }
13559
13560 func (ec *executionContext) _PodHttpChaosPatchActions_body(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchActions) (ret graphql.Marshaler) {
13561 defer func() {
13562 if r := recover(); r != nil {
13563 ec.Error(ctx, ec.Recover(ctx, r))
13564 ret = graphql.Null
13565 }
13566 }()
13567 fc := &graphql.FieldContext{
13568 Object: "PodHttpChaosPatchActions",
13569 Field: field,
13570 Args: nil,
13571 IsMethod: false,
13572 IsResolver: false,
13573 }
13574
13575 ctx = graphql.WithFieldContext(ctx, fc)
13576 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13577 ctx = rctx
13578 return obj.Body, nil
13579 })
13580 if err != nil {
13581 ec.Error(ctx, err)
13582 return graphql.Null
13583 }
13584 if resTmp == nil {
13585 return graphql.Null
13586 }
13587 res := resTmp.(*v1alpha1.PodHttpChaosPatchBodyAction)
13588 fc.Result = res
13589 return ec.marshalOPodHttpChaosPatchBodyAction2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchBodyAction(ctx, field.Selections, res)
13590 }
13591
13592 func (ec *executionContext) _PodHttpChaosPatchActions_queries(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchActions) (ret graphql.Marshaler) {
13593 defer func() {
13594 if r := recover(); r != nil {
13595 ec.Error(ctx, ec.Recover(ctx, r))
13596 ret = graphql.Null
13597 }
13598 }()
13599 fc := &graphql.FieldContext{
13600 Object: "PodHttpChaosPatchActions",
13601 Field: field,
13602 Args: nil,
13603 IsMethod: false,
13604 IsResolver: false,
13605 }
13606
13607 ctx = graphql.WithFieldContext(ctx, fc)
13608 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13609 ctx = rctx
13610 return obj.Queries, nil
13611 })
13612 if err != nil {
13613 ec.Error(ctx, err)
13614 return graphql.Null
13615 }
13616 if resTmp == nil {
13617 return graphql.Null
13618 }
13619 res := resTmp.([][]string)
13620 fc.Result = res
13621 return ec.marshalOString2ᚕᚕstringᚄ(ctx, field.Selections, res)
13622 }
13623
13624 func (ec *executionContext) _PodHttpChaosPatchActions_headers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchActions) (ret graphql.Marshaler) {
13625 defer func() {
13626 if r := recover(); r != nil {
13627 ec.Error(ctx, ec.Recover(ctx, r))
13628 ret = graphql.Null
13629 }
13630 }()
13631 fc := &graphql.FieldContext{
13632 Object: "PodHttpChaosPatchActions",
13633 Field: field,
13634 Args: nil,
13635 IsMethod: false,
13636 IsResolver: false,
13637 }
13638
13639 ctx = graphql.WithFieldContext(ctx, fc)
13640 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13641 ctx = rctx
13642 return obj.Headers, nil
13643 })
13644 if err != nil {
13645 ec.Error(ctx, err)
13646 return graphql.Null
13647 }
13648 if resTmp == nil {
13649 return graphql.Null
13650 }
13651 res := resTmp.([][]string)
13652 fc.Result = res
13653 return ec.marshalOString2ᚕᚕstringᚄ(ctx, field.Selections, res)
13654 }
13655
13656 func (ec *executionContext) _PodHttpChaosPatchBodyAction_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchBodyAction) (ret graphql.Marshaler) {
13657 defer func() {
13658 if r := recover(); r != nil {
13659 ec.Error(ctx, ec.Recover(ctx, r))
13660 ret = graphql.Null
13661 }
13662 }()
13663 fc := &graphql.FieldContext{
13664 Object: "PodHttpChaosPatchBodyAction",
13665 Field: field,
13666 Args: nil,
13667 IsMethod: false,
13668 IsResolver: false,
13669 }
13670
13671 ctx = graphql.WithFieldContext(ctx, fc)
13672 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13673 ctx = rctx
13674 return obj.Type, nil
13675 })
13676 if err != nil {
13677 ec.Error(ctx, err)
13678 return graphql.Null
13679 }
13680 if resTmp == nil {
13681 if !graphql.HasFieldError(ctx, fc) {
13682 ec.Errorf(ctx, "must not be null")
13683 }
13684 return graphql.Null
13685 }
13686 res := resTmp.(string)
13687 fc.Result = res
13688 return ec.marshalNString2string(ctx, field.Selections, res)
13689 }
13690
13691 func (ec *executionContext) _PodHttpChaosPatchBodyAction_value(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosPatchBodyAction) (ret graphql.Marshaler) {
13692 defer func() {
13693 if r := recover(); r != nil {
13694 ec.Error(ctx, ec.Recover(ctx, r))
13695 ret = graphql.Null
13696 }
13697 }()
13698 fc := &graphql.FieldContext{
13699 Object: "PodHttpChaosPatchBodyAction",
13700 Field: field,
13701 Args: nil,
13702 IsMethod: false,
13703 IsResolver: false,
13704 }
13705
13706 ctx = graphql.WithFieldContext(ctx, fc)
13707 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13708 ctx = rctx
13709 return obj.Value, nil
13710 })
13711 if err != nil {
13712 ec.Error(ctx, err)
13713 return graphql.Null
13714 }
13715 if resTmp == nil {
13716 if !graphql.HasFieldError(ctx, fc) {
13717 ec.Errorf(ctx, "must not be null")
13718 }
13719 return graphql.Null
13720 }
13721 res := resTmp.(string)
13722 fc.Result = res
13723 return ec.marshalNString2string(ctx, field.Selections, res)
13724 }
13725
13726 func (ec *executionContext) _PodHttpChaosReplaceActions_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
13727 defer func() {
13728 if r := recover(); r != nil {
13729 ec.Error(ctx, ec.Recover(ctx, r))
13730 ret = graphql.Null
13731 }
13732 }()
13733 fc := &graphql.FieldContext{
13734 Object: "PodHttpChaosReplaceActions",
13735 Field: field,
13736 Args: nil,
13737 IsMethod: false,
13738 IsResolver: false,
13739 }
13740
13741 ctx = graphql.WithFieldContext(ctx, fc)
13742 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13743 ctx = rctx
13744 return obj.Path, nil
13745 })
13746 if err != nil {
13747 ec.Error(ctx, err)
13748 return graphql.Null
13749 }
13750 if resTmp == nil {
13751 return graphql.Null
13752 }
13753 res := resTmp.(*string)
13754 fc.Result = res
13755 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
13756 }
13757
13758 func (ec *executionContext) _PodHttpChaosReplaceActions_method(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
13759 defer func() {
13760 if r := recover(); r != nil {
13761 ec.Error(ctx, ec.Recover(ctx, r))
13762 ret = graphql.Null
13763 }
13764 }()
13765 fc := &graphql.FieldContext{
13766 Object: "PodHttpChaosReplaceActions",
13767 Field: field,
13768 Args: nil,
13769 IsMethod: false,
13770 IsResolver: false,
13771 }
13772
13773 ctx = graphql.WithFieldContext(ctx, fc)
13774 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13775 ctx = rctx
13776 return obj.Method, nil
13777 })
13778 if err != nil {
13779 ec.Error(ctx, err)
13780 return graphql.Null
13781 }
13782 if resTmp == nil {
13783 return graphql.Null
13784 }
13785 res := resTmp.(*string)
13786 fc.Result = res
13787 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
13788 }
13789
13790 func (ec *executionContext) _PodHttpChaosReplaceActions_code(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
13791 defer func() {
13792 if r := recover(); r != nil {
13793 ec.Error(ctx, ec.Recover(ctx, r))
13794 ret = graphql.Null
13795 }
13796 }()
13797 fc := &graphql.FieldContext{
13798 Object: "PodHttpChaosReplaceActions",
13799 Field: field,
13800 Args: nil,
13801 IsMethod: false,
13802 IsResolver: false,
13803 }
13804
13805 ctx = graphql.WithFieldContext(ctx, fc)
13806 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13807 ctx = rctx
13808 return obj.Code, nil
13809 })
13810 if err != nil {
13811 ec.Error(ctx, err)
13812 return graphql.Null
13813 }
13814 if resTmp == nil {
13815 return graphql.Null
13816 }
13817 res := resTmp.(*int32)
13818 fc.Result = res
13819 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
13820 }
13821
13822 func (ec *executionContext) _PodHttpChaosReplaceActions_body(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
13823 defer func() {
13824 if r := recover(); r != nil {
13825 ec.Error(ctx, ec.Recover(ctx, r))
13826 ret = graphql.Null
13827 }
13828 }()
13829 fc := &graphql.FieldContext{
13830 Object: "PodHttpChaosReplaceActions",
13831 Field: field,
13832 Args: nil,
13833 IsMethod: true,
13834 IsResolver: true,
13835 }
13836
13837 ctx = graphql.WithFieldContext(ctx, fc)
13838 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13839 ctx = rctx
13840 return ec.resolvers.PodHttpChaosReplaceActions().Body(rctx, obj)
13841 })
13842 if err != nil {
13843 ec.Error(ctx, err)
13844 return graphql.Null
13845 }
13846 if resTmp == nil {
13847 return graphql.Null
13848 }
13849 res := resTmp.(*string)
13850 fc.Result = res
13851 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
13852 }
13853
13854 func (ec *executionContext) _PodHttpChaosReplaceActions_queries(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
13855 defer func() {
13856 if r := recover(); r != nil {
13857 ec.Error(ctx, ec.Recover(ctx, r))
13858 ret = graphql.Null
13859 }
13860 }()
13861 fc := &graphql.FieldContext{
13862 Object: "PodHttpChaosReplaceActions",
13863 Field: field,
13864 Args: nil,
13865 IsMethod: true,
13866 IsResolver: true,
13867 }
13868
13869 ctx = graphql.WithFieldContext(ctx, fc)
13870 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13871 ctx = rctx
13872 return ec.resolvers.PodHttpChaosReplaceActions().Queries(rctx, obj)
13873 })
13874 if err != nil {
13875 ec.Error(ctx, err)
13876 return graphql.Null
13877 }
13878 if resTmp == nil {
13879 return graphql.Null
13880 }
13881 res := resTmp.(map[string]interface{})
13882 fc.Result = res
13883 return ec.marshalOMap2map(ctx, field.Selections, res)
13884 }
13885
13886 func (ec *executionContext) _PodHttpChaosReplaceActions_headers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosReplaceActions) (ret graphql.Marshaler) {
13887 defer func() {
13888 if r := recover(); r != nil {
13889 ec.Error(ctx, ec.Recover(ctx, r))
13890 ret = graphql.Null
13891 }
13892 }()
13893 fc := &graphql.FieldContext{
13894 Object: "PodHttpChaosReplaceActions",
13895 Field: field,
13896 Args: nil,
13897 IsMethod: true,
13898 IsResolver: true,
13899 }
13900
13901 ctx = graphql.WithFieldContext(ctx, fc)
13902 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13903 ctx = rctx
13904 return ec.resolvers.PodHttpChaosReplaceActions().Headers(rctx, obj)
13905 })
13906 if err != nil {
13907 ec.Error(ctx, err)
13908 return graphql.Null
13909 }
13910 if resTmp == nil {
13911 return graphql.Null
13912 }
13913 res := resTmp.(map[string]interface{})
13914 fc.Result = res
13915 return ec.marshalOMap2map(ctx, field.Selections, res)
13916 }
13917
13918 func (ec *executionContext) _PodHttpChaosRule_target(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
13919 defer func() {
13920 if r := recover(); r != nil {
13921 ec.Error(ctx, ec.Recover(ctx, r))
13922 ret = graphql.Null
13923 }
13924 }()
13925 fc := &graphql.FieldContext{
13926 Object: "PodHttpChaosRule",
13927 Field: field,
13928 Args: nil,
13929 IsMethod: true,
13930 IsResolver: true,
13931 }
13932
13933 ctx = graphql.WithFieldContext(ctx, fc)
13934 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13935 ctx = rctx
13936 return ec.resolvers.PodHttpChaosRule().Target(rctx, obj)
13937 })
13938 if err != nil {
13939 ec.Error(ctx, err)
13940 return graphql.Null
13941 }
13942 if resTmp == nil {
13943 if !graphql.HasFieldError(ctx, fc) {
13944 ec.Errorf(ctx, "must not be null")
13945 }
13946 return graphql.Null
13947 }
13948 res := resTmp.(string)
13949 fc.Result = res
13950 return ec.marshalNString2string(ctx, field.Selections, res)
13951 }
13952
13953 func (ec *executionContext) _PodHttpChaosRule_selector(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
13954 defer func() {
13955 if r := recover(); r != nil {
13956 ec.Error(ctx, ec.Recover(ctx, r))
13957 ret = graphql.Null
13958 }
13959 }()
13960 fc := &graphql.FieldContext{
13961 Object: "PodHttpChaosRule",
13962 Field: field,
13963 Args: nil,
13964 IsMethod: false,
13965 IsResolver: false,
13966 }
13967
13968 ctx = graphql.WithFieldContext(ctx, fc)
13969 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
13970 ctx = rctx
13971 return obj.Selector, nil
13972 })
13973 if err != nil {
13974 ec.Error(ctx, err)
13975 return graphql.Null
13976 }
13977 if resTmp == nil {
13978 if !graphql.HasFieldError(ctx, fc) {
13979 ec.Errorf(ctx, "must not be null")
13980 }
13981 return graphql.Null
13982 }
13983 res := resTmp.(v1alpha1.PodHttpChaosSelector)
13984 fc.Result = res
13985 return ec.marshalNPodHttpChaosSelector2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSelector(ctx, field.Selections, res)
13986 }
13987
13988 func (ec *executionContext) _PodHttpChaosRule_actions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
13989 defer func() {
13990 if r := recover(); r != nil {
13991 ec.Error(ctx, ec.Recover(ctx, r))
13992 ret = graphql.Null
13993 }
13994 }()
13995 fc := &graphql.FieldContext{
13996 Object: "PodHttpChaosRule",
13997 Field: field,
13998 Args: nil,
13999 IsMethod: false,
14000 IsResolver: false,
14001 }
14002
14003 ctx = graphql.WithFieldContext(ctx, fc)
14004 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14005 ctx = rctx
14006 return obj.Actions, nil
14007 })
14008 if err != nil {
14009 ec.Error(ctx, err)
14010 return graphql.Null
14011 }
14012 if resTmp == nil {
14013 if !graphql.HasFieldError(ctx, fc) {
14014 ec.Errorf(ctx, "must not be null")
14015 }
14016 return graphql.Null
14017 }
14018 res := resTmp.(v1alpha1.PodHttpChaosActions)
14019 fc.Result = res
14020 return ec.marshalNPodHttpChaosActions2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosActions(ctx, field.Selections, res)
14021 }
14022
14023 func (ec *executionContext) _PodHttpChaosRule_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
14024 defer func() {
14025 if r := recover(); r != nil {
14026 ec.Error(ctx, ec.Recover(ctx, r))
14027 ret = graphql.Null
14028 }
14029 }()
14030 fc := &graphql.FieldContext{
14031 Object: "PodHttpChaosRule",
14032 Field: field,
14033 Args: nil,
14034 IsMethod: false,
14035 IsResolver: false,
14036 }
14037
14038 ctx = graphql.WithFieldContext(ctx, fc)
14039 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14040 ctx = rctx
14041 return obj.Source, nil
14042 })
14043 if err != nil {
14044 ec.Error(ctx, err)
14045 return graphql.Null
14046 }
14047 if resTmp == nil {
14048 if !graphql.HasFieldError(ctx, fc) {
14049 ec.Errorf(ctx, "must not be null")
14050 }
14051 return graphql.Null
14052 }
14053 res := resTmp.(string)
14054 fc.Result = res
14055 return ec.marshalNString2string(ctx, field.Selections, res)
14056 }
14057
14058 func (ec *executionContext) _PodHttpChaosRule_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosRule) (ret graphql.Marshaler) {
14059 defer func() {
14060 if r := recover(); r != nil {
14061 ec.Error(ctx, ec.Recover(ctx, r))
14062 ret = graphql.Null
14063 }
14064 }()
14065 fc := &graphql.FieldContext{
14066 Object: "PodHttpChaosRule",
14067 Field: field,
14068 Args: nil,
14069 IsMethod: false,
14070 IsResolver: false,
14071 }
14072
14073 ctx = graphql.WithFieldContext(ctx, fc)
14074 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14075 ctx = rctx
14076 return obj.Port, nil
14077 })
14078 if err != nil {
14079 ec.Error(ctx, err)
14080 return graphql.Null
14081 }
14082 if resTmp == nil {
14083 if !graphql.HasFieldError(ctx, fc) {
14084 ec.Errorf(ctx, "must not be null")
14085 }
14086 return graphql.Null
14087 }
14088 res := resTmp.(int32)
14089 fc.Result = res
14090 return ec.marshalNInt2int32(ctx, field.Selections, res)
14091 }
14092
14093 func (ec *executionContext) _PodHttpChaosSelector_port(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
14094 defer func() {
14095 if r := recover(); r != nil {
14096 ec.Error(ctx, ec.Recover(ctx, r))
14097 ret = graphql.Null
14098 }
14099 }()
14100 fc := &graphql.FieldContext{
14101 Object: "PodHttpChaosSelector",
14102 Field: field,
14103 Args: nil,
14104 IsMethod: false,
14105 IsResolver: false,
14106 }
14107
14108 ctx = graphql.WithFieldContext(ctx, fc)
14109 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14110 ctx = rctx
14111 return obj.Port, nil
14112 })
14113 if err != nil {
14114 ec.Error(ctx, err)
14115 return graphql.Null
14116 }
14117 if resTmp == nil {
14118 return graphql.Null
14119 }
14120 res := resTmp.(*int32)
14121 fc.Result = res
14122 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
14123 }
14124
14125 func (ec *executionContext) _PodHttpChaosSelector_path(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
14126 defer func() {
14127 if r := recover(); r != nil {
14128 ec.Error(ctx, ec.Recover(ctx, r))
14129 ret = graphql.Null
14130 }
14131 }()
14132 fc := &graphql.FieldContext{
14133 Object: "PodHttpChaosSelector",
14134 Field: field,
14135 Args: nil,
14136 IsMethod: false,
14137 IsResolver: false,
14138 }
14139
14140 ctx = graphql.WithFieldContext(ctx, fc)
14141 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14142 ctx = rctx
14143 return obj.Path, nil
14144 })
14145 if err != nil {
14146 ec.Error(ctx, err)
14147 return graphql.Null
14148 }
14149 if resTmp == nil {
14150 return graphql.Null
14151 }
14152 res := resTmp.(*string)
14153 fc.Result = res
14154 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
14155 }
14156
14157 func (ec *executionContext) _PodHttpChaosSelector_method(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
14158 defer func() {
14159 if r := recover(); r != nil {
14160 ec.Error(ctx, ec.Recover(ctx, r))
14161 ret = graphql.Null
14162 }
14163 }()
14164 fc := &graphql.FieldContext{
14165 Object: "PodHttpChaosSelector",
14166 Field: field,
14167 Args: nil,
14168 IsMethod: false,
14169 IsResolver: false,
14170 }
14171
14172 ctx = graphql.WithFieldContext(ctx, fc)
14173 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14174 ctx = rctx
14175 return obj.Method, nil
14176 })
14177 if err != nil {
14178 ec.Error(ctx, err)
14179 return graphql.Null
14180 }
14181 if resTmp == nil {
14182 return graphql.Null
14183 }
14184 res := resTmp.(*string)
14185 fc.Result = res
14186 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
14187 }
14188
14189 func (ec *executionContext) _PodHttpChaosSelector_code(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
14190 defer func() {
14191 if r := recover(); r != nil {
14192 ec.Error(ctx, ec.Recover(ctx, r))
14193 ret = graphql.Null
14194 }
14195 }()
14196 fc := &graphql.FieldContext{
14197 Object: "PodHttpChaosSelector",
14198 Field: field,
14199 Args: nil,
14200 IsMethod: false,
14201 IsResolver: false,
14202 }
14203
14204 ctx = graphql.WithFieldContext(ctx, fc)
14205 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14206 ctx = rctx
14207 return obj.Code, nil
14208 })
14209 if err != nil {
14210 ec.Error(ctx, err)
14211 return graphql.Null
14212 }
14213 if resTmp == nil {
14214 return graphql.Null
14215 }
14216 res := resTmp.(*int32)
14217 fc.Result = res
14218 return ec.marshalOInt2ᚖint32(ctx, field.Selections, res)
14219 }
14220
14221 func (ec *executionContext) _PodHttpChaosSelector_requestHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
14222 defer func() {
14223 if r := recover(); r != nil {
14224 ec.Error(ctx, ec.Recover(ctx, r))
14225 ret = graphql.Null
14226 }
14227 }()
14228 fc := &graphql.FieldContext{
14229 Object: "PodHttpChaosSelector",
14230 Field: field,
14231 Args: nil,
14232 IsMethod: true,
14233 IsResolver: true,
14234 }
14235
14236 ctx = graphql.WithFieldContext(ctx, fc)
14237 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14238 ctx = rctx
14239 return ec.resolvers.PodHttpChaosSelector().RequestHeaders(rctx, obj)
14240 })
14241 if err != nil {
14242 ec.Error(ctx, err)
14243 return graphql.Null
14244 }
14245 if resTmp == nil {
14246 return graphql.Null
14247 }
14248 res := resTmp.(map[string]interface{})
14249 fc.Result = res
14250 return ec.marshalOMap2map(ctx, field.Selections, res)
14251 }
14252
14253 func (ec *executionContext) _PodHttpChaosSelector_responseHeaders(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSelector) (ret graphql.Marshaler) {
14254 defer func() {
14255 if r := recover(); r != nil {
14256 ec.Error(ctx, ec.Recover(ctx, r))
14257 ret = graphql.Null
14258 }
14259 }()
14260 fc := &graphql.FieldContext{
14261 Object: "PodHttpChaosSelector",
14262 Field: field,
14263 Args: nil,
14264 IsMethod: true,
14265 IsResolver: true,
14266 }
14267
14268 ctx = graphql.WithFieldContext(ctx, fc)
14269 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14270 ctx = rctx
14271 return ec.resolvers.PodHttpChaosSelector().ResponseHeaders(rctx, obj)
14272 })
14273 if err != nil {
14274 ec.Error(ctx, err)
14275 return graphql.Null
14276 }
14277 if resTmp == nil {
14278 return graphql.Null
14279 }
14280 res := resTmp.(map[string]interface{})
14281 fc.Result = res
14282 return ec.marshalOMap2map(ctx, field.Selections, res)
14283 }
14284
14285 func (ec *executionContext) _PodHttpChaosSpec_rules(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosSpec) (ret graphql.Marshaler) {
14286 defer func() {
14287 if r := recover(); r != nil {
14288 ec.Error(ctx, ec.Recover(ctx, r))
14289 ret = graphql.Null
14290 }
14291 }()
14292 fc := &graphql.FieldContext{
14293 Object: "PodHttpChaosSpec",
14294 Field: field,
14295 Args: nil,
14296 IsMethod: false,
14297 IsResolver: false,
14298 }
14299
14300 ctx = graphql.WithFieldContext(ctx, fc)
14301 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14302 ctx = rctx
14303 return obj.Rules, nil
14304 })
14305 if err != nil {
14306 ec.Error(ctx, err)
14307 return graphql.Null
14308 }
14309 if resTmp == nil {
14310 if !graphql.HasFieldError(ctx, fc) {
14311 ec.Errorf(ctx, "must not be null")
14312 }
14313 return graphql.Null
14314 }
14315 res := resTmp.([]v1alpha1.PodHttpChaosRule)
14316 fc.Result = res
14317 return ec.marshalNPodHttpChaosRule2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRuleᚄ(ctx, field.Selections, res)
14318 }
14319
14320 func (ec *executionContext) _PodHttpChaosStatus_pid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
14321 defer func() {
14322 if r := recover(); r != nil {
14323 ec.Error(ctx, ec.Recover(ctx, r))
14324 ret = graphql.Null
14325 }
14326 }()
14327 fc := &graphql.FieldContext{
14328 Object: "PodHttpChaosStatus",
14329 Field: field,
14330 Args: nil,
14331 IsMethod: false,
14332 IsResolver: false,
14333 }
14334
14335 ctx = graphql.WithFieldContext(ctx, fc)
14336 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14337 ctx = rctx
14338 return obj.Pid, nil
14339 })
14340 if err != nil {
14341 ec.Error(ctx, err)
14342 return graphql.Null
14343 }
14344 if resTmp == nil {
14345 return graphql.Null
14346 }
14347 res := resTmp.(int64)
14348 fc.Result = res
14349 return ec.marshalOInt2int64(ctx, field.Selections, res)
14350 }
14351
14352 func (ec *executionContext) _PodHttpChaosStatus_startTime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
14353 defer func() {
14354 if r := recover(); r != nil {
14355 ec.Error(ctx, ec.Recover(ctx, r))
14356 ret = graphql.Null
14357 }
14358 }()
14359 fc := &graphql.FieldContext{
14360 Object: "PodHttpChaosStatus",
14361 Field: field,
14362 Args: nil,
14363 IsMethod: false,
14364 IsResolver: false,
14365 }
14366
14367 ctx = graphql.WithFieldContext(ctx, fc)
14368 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14369 ctx = rctx
14370 return obj.StartTime, nil
14371 })
14372 if err != nil {
14373 ec.Error(ctx, err)
14374 return graphql.Null
14375 }
14376 if resTmp == nil {
14377 return graphql.Null
14378 }
14379 res := resTmp.(int64)
14380 fc.Result = res
14381 return ec.marshalOInt2int64(ctx, field.Selections, res)
14382 }
14383
14384 func (ec *executionContext) _PodHttpChaosStatus_failedMessage(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
14385 defer func() {
14386 if r := recover(); r != nil {
14387 ec.Error(ctx, ec.Recover(ctx, r))
14388 ret = graphql.Null
14389 }
14390 }()
14391 fc := &graphql.FieldContext{
14392 Object: "PodHttpChaosStatus",
14393 Field: field,
14394 Args: nil,
14395 IsMethod: false,
14396 IsResolver: false,
14397 }
14398
14399 ctx = graphql.WithFieldContext(ctx, fc)
14400 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14401 ctx = rctx
14402 return obj.FailedMessage, nil
14403 })
14404 if err != nil {
14405 ec.Error(ctx, err)
14406 return graphql.Null
14407 }
14408 if resTmp == nil {
14409 return graphql.Null
14410 }
14411 res := resTmp.(string)
14412 fc.Result = res
14413 return ec.marshalOString2string(ctx, field.Selections, res)
14414 }
14415
14416 func (ec *executionContext) _PodHttpChaosStatus_observedGeneration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodHttpChaosStatus) (ret graphql.Marshaler) {
14417 defer func() {
14418 if r := recover(); r != nil {
14419 ec.Error(ctx, ec.Recover(ctx, r))
14420 ret = graphql.Null
14421 }
14422 }()
14423 fc := &graphql.FieldContext{
14424 Object: "PodHttpChaosStatus",
14425 Field: field,
14426 Args: nil,
14427 IsMethod: false,
14428 IsResolver: false,
14429 }
14430
14431 ctx = graphql.WithFieldContext(ctx, fc)
14432 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14433 ctx = rctx
14434 return obj.ObservedGeneration, nil
14435 })
14436 if err != nil {
14437 ec.Error(ctx, err)
14438 return graphql.Null
14439 }
14440 if resTmp == nil {
14441 return graphql.Null
14442 }
14443 res := resTmp.(int64)
14444 fc.Result = res
14445 return ec.marshalOInt2int64(ctx, field.Selections, res)
14446 }
14447
14448 func (ec *executionContext) _PodIOChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14449 defer func() {
14450 if r := recover(); r != nil {
14451 ec.Error(ctx, ec.Recover(ctx, r))
14452 ret = graphql.Null
14453 }
14454 }()
14455 fc := &graphql.FieldContext{
14456 Object: "PodIOChaos",
14457 Field: field,
14458 Args: nil,
14459 IsMethod: false,
14460 IsResolver: false,
14461 }
14462
14463 ctx = graphql.WithFieldContext(ctx, fc)
14464 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14465 ctx = rctx
14466 return obj.Kind, nil
14467 })
14468 if err != nil {
14469 ec.Error(ctx, err)
14470 return graphql.Null
14471 }
14472 if resTmp == nil {
14473 if !graphql.HasFieldError(ctx, fc) {
14474 ec.Errorf(ctx, "must not be null")
14475 }
14476 return graphql.Null
14477 }
14478 res := resTmp.(string)
14479 fc.Result = res
14480 return ec.marshalNString2string(ctx, field.Selections, res)
14481 }
14482
14483 func (ec *executionContext) _PodIOChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14484 defer func() {
14485 if r := recover(); r != nil {
14486 ec.Error(ctx, ec.Recover(ctx, r))
14487 ret = graphql.Null
14488 }
14489 }()
14490 fc := &graphql.FieldContext{
14491 Object: "PodIOChaos",
14492 Field: field,
14493 Args: nil,
14494 IsMethod: false,
14495 IsResolver: false,
14496 }
14497
14498 ctx = graphql.WithFieldContext(ctx, fc)
14499 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14500 ctx = rctx
14501 return obj.APIVersion, nil
14502 })
14503 if err != nil {
14504 ec.Error(ctx, err)
14505 return graphql.Null
14506 }
14507 if resTmp == nil {
14508 if !graphql.HasFieldError(ctx, fc) {
14509 ec.Errorf(ctx, "must not be null")
14510 }
14511 return graphql.Null
14512 }
14513 res := resTmp.(string)
14514 fc.Result = res
14515 return ec.marshalNString2string(ctx, field.Selections, res)
14516 }
14517
14518 func (ec *executionContext) _PodIOChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14519 defer func() {
14520 if r := recover(); r != nil {
14521 ec.Error(ctx, ec.Recover(ctx, r))
14522 ret = graphql.Null
14523 }
14524 }()
14525 fc := &graphql.FieldContext{
14526 Object: "PodIOChaos",
14527 Field: field,
14528 Args: nil,
14529 IsMethod: false,
14530 IsResolver: false,
14531 }
14532
14533 ctx = graphql.WithFieldContext(ctx, fc)
14534 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14535 ctx = rctx
14536 return obj.Name, nil
14537 })
14538 if err != nil {
14539 ec.Error(ctx, err)
14540 return graphql.Null
14541 }
14542 if resTmp == nil {
14543 if !graphql.HasFieldError(ctx, fc) {
14544 ec.Errorf(ctx, "must not be null")
14545 }
14546 return graphql.Null
14547 }
14548 res := resTmp.(string)
14549 fc.Result = res
14550 return ec.marshalNString2string(ctx, field.Selections, res)
14551 }
14552
14553 func (ec *executionContext) _PodIOChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14554 defer func() {
14555 if r := recover(); r != nil {
14556 ec.Error(ctx, ec.Recover(ctx, r))
14557 ret = graphql.Null
14558 }
14559 }()
14560 fc := &graphql.FieldContext{
14561 Object: "PodIOChaos",
14562 Field: field,
14563 Args: nil,
14564 IsMethod: false,
14565 IsResolver: false,
14566 }
14567
14568 ctx = graphql.WithFieldContext(ctx, fc)
14569 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14570 ctx = rctx
14571 return obj.GenerateName, nil
14572 })
14573 if err != nil {
14574 ec.Error(ctx, err)
14575 return graphql.Null
14576 }
14577 if resTmp == nil {
14578 if !graphql.HasFieldError(ctx, fc) {
14579 ec.Errorf(ctx, "must not be null")
14580 }
14581 return graphql.Null
14582 }
14583 res := resTmp.(string)
14584 fc.Result = res
14585 return ec.marshalNString2string(ctx, field.Selections, res)
14586 }
14587
14588 func (ec *executionContext) _PodIOChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14589 defer func() {
14590 if r := recover(); r != nil {
14591 ec.Error(ctx, ec.Recover(ctx, r))
14592 ret = graphql.Null
14593 }
14594 }()
14595 fc := &graphql.FieldContext{
14596 Object: "PodIOChaos",
14597 Field: field,
14598 Args: nil,
14599 IsMethod: false,
14600 IsResolver: false,
14601 }
14602
14603 ctx = graphql.WithFieldContext(ctx, fc)
14604 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14605 ctx = rctx
14606 return obj.Namespace, nil
14607 })
14608 if err != nil {
14609 ec.Error(ctx, err)
14610 return graphql.Null
14611 }
14612 if resTmp == nil {
14613 if !graphql.HasFieldError(ctx, fc) {
14614 ec.Errorf(ctx, "must not be null")
14615 }
14616 return graphql.Null
14617 }
14618 res := resTmp.(string)
14619 fc.Result = res
14620 return ec.marshalNString2string(ctx, field.Selections, res)
14621 }
14622
14623 func (ec *executionContext) _PodIOChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14624 defer func() {
14625 if r := recover(); r != nil {
14626 ec.Error(ctx, ec.Recover(ctx, r))
14627 ret = graphql.Null
14628 }
14629 }()
14630 fc := &graphql.FieldContext{
14631 Object: "PodIOChaos",
14632 Field: field,
14633 Args: nil,
14634 IsMethod: false,
14635 IsResolver: false,
14636 }
14637
14638 ctx = graphql.WithFieldContext(ctx, fc)
14639 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14640 ctx = rctx
14641 return obj.SelfLink, nil
14642 })
14643 if err != nil {
14644 ec.Error(ctx, err)
14645 return graphql.Null
14646 }
14647 if resTmp == nil {
14648 if !graphql.HasFieldError(ctx, fc) {
14649 ec.Errorf(ctx, "must not be null")
14650 }
14651 return graphql.Null
14652 }
14653 res := resTmp.(string)
14654 fc.Result = res
14655 return ec.marshalNString2string(ctx, field.Selections, res)
14656 }
14657
14658 func (ec *executionContext) _PodIOChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14659 defer func() {
14660 if r := recover(); r != nil {
14661 ec.Error(ctx, ec.Recover(ctx, r))
14662 ret = graphql.Null
14663 }
14664 }()
14665 fc := &graphql.FieldContext{
14666 Object: "PodIOChaos",
14667 Field: field,
14668 Args: nil,
14669 IsMethod: true,
14670 IsResolver: true,
14671 }
14672
14673 ctx = graphql.WithFieldContext(ctx, fc)
14674 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14675 ctx = rctx
14676 return ec.resolvers.PodIOChaos().UID(rctx, obj)
14677 })
14678 if err != nil {
14679 ec.Error(ctx, err)
14680 return graphql.Null
14681 }
14682 if resTmp == nil {
14683 if !graphql.HasFieldError(ctx, fc) {
14684 ec.Errorf(ctx, "must not be null")
14685 }
14686 return graphql.Null
14687 }
14688 res := resTmp.(string)
14689 fc.Result = res
14690 return ec.marshalNString2string(ctx, field.Selections, res)
14691 }
14692
14693 func (ec *executionContext) _PodIOChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14694 defer func() {
14695 if r := recover(); r != nil {
14696 ec.Error(ctx, ec.Recover(ctx, r))
14697 ret = graphql.Null
14698 }
14699 }()
14700 fc := &graphql.FieldContext{
14701 Object: "PodIOChaos",
14702 Field: field,
14703 Args: nil,
14704 IsMethod: false,
14705 IsResolver: false,
14706 }
14707
14708 ctx = graphql.WithFieldContext(ctx, fc)
14709 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14710 ctx = rctx
14711 return obj.ResourceVersion, nil
14712 })
14713 if err != nil {
14714 ec.Error(ctx, err)
14715 return graphql.Null
14716 }
14717 if resTmp == nil {
14718 if !graphql.HasFieldError(ctx, fc) {
14719 ec.Errorf(ctx, "must not be null")
14720 }
14721 return graphql.Null
14722 }
14723 res := resTmp.(string)
14724 fc.Result = res
14725 return ec.marshalNString2string(ctx, field.Selections, res)
14726 }
14727
14728 func (ec *executionContext) _PodIOChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14729 defer func() {
14730 if r := recover(); r != nil {
14731 ec.Error(ctx, ec.Recover(ctx, r))
14732 ret = graphql.Null
14733 }
14734 }()
14735 fc := &graphql.FieldContext{
14736 Object: "PodIOChaos",
14737 Field: field,
14738 Args: nil,
14739 IsMethod: false,
14740 IsResolver: false,
14741 }
14742
14743 ctx = graphql.WithFieldContext(ctx, fc)
14744 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14745 ctx = rctx
14746 return obj.Generation, nil
14747 })
14748 if err != nil {
14749 ec.Error(ctx, err)
14750 return graphql.Null
14751 }
14752 if resTmp == nil {
14753 if !graphql.HasFieldError(ctx, fc) {
14754 ec.Errorf(ctx, "must not be null")
14755 }
14756 return graphql.Null
14757 }
14758 res := resTmp.(int64)
14759 fc.Result = res
14760 return ec.marshalNInt2int64(ctx, field.Selections, res)
14761 }
14762
14763 func (ec *executionContext) _PodIOChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14764 defer func() {
14765 if r := recover(); r != nil {
14766 ec.Error(ctx, ec.Recover(ctx, r))
14767 ret = graphql.Null
14768 }
14769 }()
14770 fc := &graphql.FieldContext{
14771 Object: "PodIOChaos",
14772 Field: field,
14773 Args: nil,
14774 IsMethod: true,
14775 IsResolver: true,
14776 }
14777
14778 ctx = graphql.WithFieldContext(ctx, fc)
14779 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14780 ctx = rctx
14781 return ec.resolvers.PodIOChaos().CreationTimestamp(rctx, obj)
14782 })
14783 if err != nil {
14784 ec.Error(ctx, err)
14785 return graphql.Null
14786 }
14787 if resTmp == nil {
14788 if !graphql.HasFieldError(ctx, fc) {
14789 ec.Errorf(ctx, "must not be null")
14790 }
14791 return graphql.Null
14792 }
14793 res := resTmp.(*time.Time)
14794 fc.Result = res
14795 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
14796 }
14797
14798 func (ec *executionContext) _PodIOChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14799 defer func() {
14800 if r := recover(); r != nil {
14801 ec.Error(ctx, ec.Recover(ctx, r))
14802 ret = graphql.Null
14803 }
14804 }()
14805 fc := &graphql.FieldContext{
14806 Object: "PodIOChaos",
14807 Field: field,
14808 Args: nil,
14809 IsMethod: true,
14810 IsResolver: true,
14811 }
14812
14813 ctx = graphql.WithFieldContext(ctx, fc)
14814 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14815 ctx = rctx
14816 return ec.resolvers.PodIOChaos().DeletionTimestamp(rctx, obj)
14817 })
14818 if err != nil {
14819 ec.Error(ctx, err)
14820 return graphql.Null
14821 }
14822 if resTmp == nil {
14823 return graphql.Null
14824 }
14825 res := resTmp.(*time.Time)
14826 fc.Result = res
14827 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
14828 }
14829
14830 func (ec *executionContext) _PodIOChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14831 defer func() {
14832 if r := recover(); r != nil {
14833 ec.Error(ctx, ec.Recover(ctx, r))
14834 ret = graphql.Null
14835 }
14836 }()
14837 fc := &graphql.FieldContext{
14838 Object: "PodIOChaos",
14839 Field: field,
14840 Args: nil,
14841 IsMethod: false,
14842 IsResolver: false,
14843 }
14844
14845 ctx = graphql.WithFieldContext(ctx, fc)
14846 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14847 ctx = rctx
14848 return obj.DeletionGracePeriodSeconds, nil
14849 })
14850 if err != nil {
14851 ec.Error(ctx, err)
14852 return graphql.Null
14853 }
14854 if resTmp == nil {
14855 return graphql.Null
14856 }
14857 res := resTmp.(*int64)
14858 fc.Result = res
14859 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
14860 }
14861
14862 func (ec *executionContext) _PodIOChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14863 defer func() {
14864 if r := recover(); r != nil {
14865 ec.Error(ctx, ec.Recover(ctx, r))
14866 ret = graphql.Null
14867 }
14868 }()
14869 fc := &graphql.FieldContext{
14870 Object: "PodIOChaos",
14871 Field: field,
14872 Args: nil,
14873 IsMethod: true,
14874 IsResolver: true,
14875 }
14876
14877 ctx = graphql.WithFieldContext(ctx, fc)
14878 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14879 ctx = rctx
14880 return ec.resolvers.PodIOChaos().Labels(rctx, obj)
14881 })
14882 if err != nil {
14883 ec.Error(ctx, err)
14884 return graphql.Null
14885 }
14886 if resTmp == nil {
14887 return graphql.Null
14888 }
14889 res := resTmp.(map[string]interface{})
14890 fc.Result = res
14891 return ec.marshalOMap2map(ctx, field.Selections, res)
14892 }
14893
14894 func (ec *executionContext) _PodIOChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14895 defer func() {
14896 if r := recover(); r != nil {
14897 ec.Error(ctx, ec.Recover(ctx, r))
14898 ret = graphql.Null
14899 }
14900 }()
14901 fc := &graphql.FieldContext{
14902 Object: "PodIOChaos",
14903 Field: field,
14904 Args: nil,
14905 IsMethod: true,
14906 IsResolver: true,
14907 }
14908
14909 ctx = graphql.WithFieldContext(ctx, fc)
14910 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14911 ctx = rctx
14912 return ec.resolvers.PodIOChaos().Annotations(rctx, obj)
14913 })
14914 if err != nil {
14915 ec.Error(ctx, err)
14916 return graphql.Null
14917 }
14918 if resTmp == nil {
14919 return graphql.Null
14920 }
14921 res := resTmp.(map[string]interface{})
14922 fc.Result = res
14923 return ec.marshalOMap2map(ctx, field.Selections, res)
14924 }
14925
14926 func (ec *executionContext) _PodIOChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14927 defer func() {
14928 if r := recover(); r != nil {
14929 ec.Error(ctx, ec.Recover(ctx, r))
14930 ret = graphql.Null
14931 }
14932 }()
14933 fc := &graphql.FieldContext{
14934 Object: "PodIOChaos",
14935 Field: field,
14936 Args: nil,
14937 IsMethod: false,
14938 IsResolver: false,
14939 }
14940
14941 ctx = graphql.WithFieldContext(ctx, fc)
14942 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14943 ctx = rctx
14944 return obj.OwnerReferences, nil
14945 })
14946 if err != nil {
14947 ec.Error(ctx, err)
14948 return graphql.Null
14949 }
14950 if resTmp == nil {
14951 return graphql.Null
14952 }
14953 res := resTmp.([]v11.OwnerReference)
14954 fc.Result = res
14955 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
14956 }
14957
14958 func (ec *executionContext) _PodIOChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14959 defer func() {
14960 if r := recover(); r != nil {
14961 ec.Error(ctx, ec.Recover(ctx, r))
14962 ret = graphql.Null
14963 }
14964 }()
14965 fc := &graphql.FieldContext{
14966 Object: "PodIOChaos",
14967 Field: field,
14968 Args: nil,
14969 IsMethod: false,
14970 IsResolver: false,
14971 }
14972
14973 ctx = graphql.WithFieldContext(ctx, fc)
14974 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
14975 ctx = rctx
14976 return obj.Finalizers, nil
14977 })
14978 if err != nil {
14979 ec.Error(ctx, err)
14980 return graphql.Null
14981 }
14982 if resTmp == nil {
14983 return graphql.Null
14984 }
14985 res := resTmp.([]string)
14986 fc.Result = res
14987 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
14988 }
14989
14990 func (ec *executionContext) _PodIOChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
14991 defer func() {
14992 if r := recover(); r != nil {
14993 ec.Error(ctx, ec.Recover(ctx, r))
14994 ret = graphql.Null
14995 }
14996 }()
14997 fc := &graphql.FieldContext{
14998 Object: "PodIOChaos",
14999 Field: field,
15000 Args: nil,
15001 IsMethod: false,
15002 IsResolver: false,
15003 }
15004
15005 ctx = graphql.WithFieldContext(ctx, fc)
15006 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15007 ctx = rctx
15008 return obj.ClusterName, nil
15009 })
15010 if err != nil {
15011 ec.Error(ctx, err)
15012 return graphql.Null
15013 }
15014 if resTmp == nil {
15015 if !graphql.HasFieldError(ctx, fc) {
15016 ec.Errorf(ctx, "must not be null")
15017 }
15018 return graphql.Null
15019 }
15020 res := resTmp.(string)
15021 fc.Result = res
15022 return ec.marshalNString2string(ctx, field.Selections, res)
15023 }
15024
15025 func (ec *executionContext) _PodIOChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
15026 defer func() {
15027 if r := recover(); r != nil {
15028 ec.Error(ctx, ec.Recover(ctx, r))
15029 ret = graphql.Null
15030 }
15031 }()
15032 fc := &graphql.FieldContext{
15033 Object: "PodIOChaos",
15034 Field: field,
15035 Args: nil,
15036 IsMethod: false,
15037 IsResolver: false,
15038 }
15039
15040 ctx = graphql.WithFieldContext(ctx, fc)
15041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15042 ctx = rctx
15043 return obj.Spec, nil
15044 })
15045 if err != nil {
15046 ec.Error(ctx, err)
15047 return graphql.Null
15048 }
15049 if resTmp == nil {
15050 if !graphql.HasFieldError(ctx, fc) {
15051 ec.Errorf(ctx, "must not be null")
15052 }
15053 return graphql.Null
15054 }
15055 res := resTmp.(v1alpha1.PodIOChaosSpec)
15056 fc.Result = res
15057 return ec.marshalNPodIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosSpec(ctx, field.Selections, res)
15058 }
15059
15060 func (ec *executionContext) _PodIOChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
15061 defer func() {
15062 if r := recover(); r != nil {
15063 ec.Error(ctx, ec.Recover(ctx, r))
15064 ret = graphql.Null
15065 }
15066 }()
15067 fc := &graphql.FieldContext{
15068 Object: "PodIOChaos",
15069 Field: field,
15070 Args: nil,
15071 IsMethod: false,
15072 IsResolver: false,
15073 }
15074
15075 ctx = graphql.WithFieldContext(ctx, fc)
15076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15077 ctx = rctx
15078 return obj.Status, nil
15079 })
15080 if err != nil {
15081 ec.Error(ctx, err)
15082 return graphql.Null
15083 }
15084 if resTmp == nil {
15085 if !graphql.HasFieldError(ctx, fc) {
15086 ec.Errorf(ctx, "must not be null")
15087 }
15088 return graphql.Null
15089 }
15090 res := resTmp.(v1alpha1.PodIOChaosStatus)
15091 fc.Result = res
15092 return ec.marshalNPodIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosStatus(ctx, field.Selections, res)
15093 }
15094
15095 func (ec *executionContext) _PodIOChaos_pod(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
15096 defer func() {
15097 if r := recover(); r != nil {
15098 ec.Error(ctx, ec.Recover(ctx, r))
15099 ret = graphql.Null
15100 }
15101 }()
15102 fc := &graphql.FieldContext{
15103 Object: "PodIOChaos",
15104 Field: field,
15105 Args: nil,
15106 IsMethod: true,
15107 IsResolver: true,
15108 }
15109
15110 ctx = graphql.WithFieldContext(ctx, fc)
15111 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15112 ctx = rctx
15113 return ec.resolvers.PodIOChaos().Pod(rctx, obj)
15114 })
15115 if err != nil {
15116 ec.Error(ctx, err)
15117 return graphql.Null
15118 }
15119 if resTmp == nil {
15120 if !graphql.HasFieldError(ctx, fc) {
15121 ec.Errorf(ctx, "must not be null")
15122 }
15123 return graphql.Null
15124 }
15125 res := resTmp.(*v1.Pod)
15126 fc.Result = res
15127 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
15128 }
15129
15130 func (ec *executionContext) _PodIOChaos_ios(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaos) (ret graphql.Marshaler) {
15131 defer func() {
15132 if r := recover(); r != nil {
15133 ec.Error(ctx, ec.Recover(ctx, r))
15134 ret = graphql.Null
15135 }
15136 }()
15137 fc := &graphql.FieldContext{
15138 Object: "PodIOChaos",
15139 Field: field,
15140 Args: nil,
15141 IsMethod: true,
15142 IsResolver: true,
15143 }
15144
15145 ctx = graphql.WithFieldContext(ctx, fc)
15146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15147 ctx = rctx
15148 return ec.resolvers.PodIOChaos().Ios(rctx, obj)
15149 })
15150 if err != nil {
15151 ec.Error(ctx, err)
15152 return graphql.Null
15153 }
15154 if resTmp == nil {
15155 return graphql.Null
15156 }
15157 res := resTmp.([]*v1alpha1.IOChaos)
15158 fc.Result = res
15159 return ec.marshalOIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosᚄ(ctx, field.Selections, res)
15160 }
15161
15162 func (ec *executionContext) _PodIOChaosSpec_volumeMountPath(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosSpec) (ret graphql.Marshaler) {
15163 defer func() {
15164 if r := recover(); r != nil {
15165 ec.Error(ctx, ec.Recover(ctx, r))
15166 ret = graphql.Null
15167 }
15168 }()
15169 fc := &graphql.FieldContext{
15170 Object: "PodIOChaosSpec",
15171 Field: field,
15172 Args: nil,
15173 IsMethod: false,
15174 IsResolver: false,
15175 }
15176
15177 ctx = graphql.WithFieldContext(ctx, fc)
15178 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15179 ctx = rctx
15180 return obj.VolumeMountPath, nil
15181 })
15182 if err != nil {
15183 ec.Error(ctx, err)
15184 return graphql.Null
15185 }
15186 if resTmp == nil {
15187 if !graphql.HasFieldError(ctx, fc) {
15188 ec.Errorf(ctx, "must not be null")
15189 }
15190 return graphql.Null
15191 }
15192 res := resTmp.(string)
15193 fc.Result = res
15194 return ec.marshalNString2string(ctx, field.Selections, res)
15195 }
15196
15197 func (ec *executionContext) _PodIOChaosSpec_container(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosSpec) (ret graphql.Marshaler) {
15198 defer func() {
15199 if r := recover(); r != nil {
15200 ec.Error(ctx, ec.Recover(ctx, r))
15201 ret = graphql.Null
15202 }
15203 }()
15204 fc := &graphql.FieldContext{
15205 Object: "PodIOChaosSpec",
15206 Field: field,
15207 Args: nil,
15208 IsMethod: false,
15209 IsResolver: false,
15210 }
15211
15212 ctx = graphql.WithFieldContext(ctx, fc)
15213 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15214 ctx = rctx
15215 return obj.Container, nil
15216 })
15217 if err != nil {
15218 ec.Error(ctx, err)
15219 return graphql.Null
15220 }
15221 if resTmp == nil {
15222 return graphql.Null
15223 }
15224 res := resTmp.(*string)
15225 fc.Result = res
15226 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
15227 }
15228
15229 func (ec *executionContext) _PodIOChaosSpec_actions(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosSpec) (ret graphql.Marshaler) {
15230 defer func() {
15231 if r := recover(); r != nil {
15232 ec.Error(ctx, ec.Recover(ctx, r))
15233 ret = graphql.Null
15234 }
15235 }()
15236 fc := &graphql.FieldContext{
15237 Object: "PodIOChaosSpec",
15238 Field: field,
15239 Args: nil,
15240 IsMethod: false,
15241 IsResolver: false,
15242 }
15243
15244 ctx = graphql.WithFieldContext(ctx, fc)
15245 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15246 ctx = rctx
15247 return obj.Actions, nil
15248 })
15249 if err != nil {
15250 ec.Error(ctx, err)
15251 return graphql.Null
15252 }
15253 if resTmp == nil {
15254 return graphql.Null
15255 }
15256 res := resTmp.([]v1alpha1.IOChaosAction)
15257 fc.Result = res
15258 return ec.marshalOIOChaosAction2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosActionᚄ(ctx, field.Selections, res)
15259 }
15260
15261 func (ec *executionContext) _PodIOChaosStatus_pid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
15262 defer func() {
15263 if r := recover(); r != nil {
15264 ec.Error(ctx, ec.Recover(ctx, r))
15265 ret = graphql.Null
15266 }
15267 }()
15268 fc := &graphql.FieldContext{
15269 Object: "PodIOChaosStatus",
15270 Field: field,
15271 Args: nil,
15272 IsMethod: false,
15273 IsResolver: false,
15274 }
15275
15276 ctx = graphql.WithFieldContext(ctx, fc)
15277 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15278 ctx = rctx
15279 return obj.Pid, nil
15280 })
15281 if err != nil {
15282 ec.Error(ctx, err)
15283 return graphql.Null
15284 }
15285 if resTmp == nil {
15286 return graphql.Null
15287 }
15288 res := resTmp.(int64)
15289 fc.Result = res
15290 return ec.marshalOInt2int64(ctx, field.Selections, res)
15291 }
15292
15293 func (ec *executionContext) _PodIOChaosStatus_startTime(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
15294 defer func() {
15295 if r := recover(); r != nil {
15296 ec.Error(ctx, ec.Recover(ctx, r))
15297 ret = graphql.Null
15298 }
15299 }()
15300 fc := &graphql.FieldContext{
15301 Object: "PodIOChaosStatus",
15302 Field: field,
15303 Args: nil,
15304 IsMethod: false,
15305 IsResolver: false,
15306 }
15307
15308 ctx = graphql.WithFieldContext(ctx, fc)
15309 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15310 ctx = rctx
15311 return obj.StartTime, nil
15312 })
15313 if err != nil {
15314 ec.Error(ctx, err)
15315 return graphql.Null
15316 }
15317 if resTmp == nil {
15318 return graphql.Null
15319 }
15320 res := resTmp.(int64)
15321 fc.Result = res
15322 return ec.marshalOInt2int64(ctx, field.Selections, res)
15323 }
15324
15325 func (ec *executionContext) _PodIOChaosStatus_failedMessage(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
15326 defer func() {
15327 if r := recover(); r != nil {
15328 ec.Error(ctx, ec.Recover(ctx, r))
15329 ret = graphql.Null
15330 }
15331 }()
15332 fc := &graphql.FieldContext{
15333 Object: "PodIOChaosStatus",
15334 Field: field,
15335 Args: nil,
15336 IsMethod: false,
15337 IsResolver: false,
15338 }
15339
15340 ctx = graphql.WithFieldContext(ctx, fc)
15341 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15342 ctx = rctx
15343 return obj.FailedMessage, nil
15344 })
15345 if err != nil {
15346 ec.Error(ctx, err)
15347 return graphql.Null
15348 }
15349 if resTmp == nil {
15350 return graphql.Null
15351 }
15352 res := resTmp.(string)
15353 fc.Result = res
15354 return ec.marshalOString2string(ctx, field.Selections, res)
15355 }
15356
15357 func (ec *executionContext) _PodIOChaosStatus_observedGeneration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodIOChaosStatus) (ret graphql.Marshaler) {
15358 defer func() {
15359 if r := recover(); r != nil {
15360 ec.Error(ctx, ec.Recover(ctx, r))
15361 ret = graphql.Null
15362 }
15363 }()
15364 fc := &graphql.FieldContext{
15365 Object: "PodIOChaosStatus",
15366 Field: field,
15367 Args: nil,
15368 IsMethod: false,
15369 IsResolver: false,
15370 }
15371
15372 ctx = graphql.WithFieldContext(ctx, fc)
15373 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15374 ctx = rctx
15375 return obj.ObservedGeneration, nil
15376 })
15377 if err != nil {
15378 ec.Error(ctx, err)
15379 return graphql.Null
15380 }
15381 if resTmp == nil {
15382 return graphql.Null
15383 }
15384 res := resTmp.(int64)
15385 fc.Result = res
15386 return ec.marshalOInt2int64(ctx, field.Selections, res)
15387 }
15388
15389 func (ec *executionContext) _PodIP_ip(ctx context.Context, field graphql.CollectedField, obj *v1.PodIP) (ret graphql.Marshaler) {
15390 defer func() {
15391 if r := recover(); r != nil {
15392 ec.Error(ctx, ec.Recover(ctx, r))
15393 ret = graphql.Null
15394 }
15395 }()
15396 fc := &graphql.FieldContext{
15397 Object: "PodIP",
15398 Field: field,
15399 Args: nil,
15400 IsMethod: false,
15401 IsResolver: false,
15402 }
15403
15404 ctx = graphql.WithFieldContext(ctx, fc)
15405 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15406 ctx = rctx
15407 return obj.IP, nil
15408 })
15409 if err != nil {
15410 ec.Error(ctx, err)
15411 return graphql.Null
15412 }
15413 if resTmp == nil {
15414 if !graphql.HasFieldError(ctx, fc) {
15415 ec.Errorf(ctx, "must not be null")
15416 }
15417 return graphql.Null
15418 }
15419 res := resTmp.(string)
15420 fc.Result = res
15421 return ec.marshalNString2string(ctx, field.Selections, res)
15422 }
15423
15424 func (ec *executionContext) _PodNetworkChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15425 defer func() {
15426 if r := recover(); r != nil {
15427 ec.Error(ctx, ec.Recover(ctx, r))
15428 ret = graphql.Null
15429 }
15430 }()
15431 fc := &graphql.FieldContext{
15432 Object: "PodNetworkChaos",
15433 Field: field,
15434 Args: nil,
15435 IsMethod: false,
15436 IsResolver: false,
15437 }
15438
15439 ctx = graphql.WithFieldContext(ctx, fc)
15440 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15441 ctx = rctx
15442 return obj.Kind, nil
15443 })
15444 if err != nil {
15445 ec.Error(ctx, err)
15446 return graphql.Null
15447 }
15448 if resTmp == nil {
15449 if !graphql.HasFieldError(ctx, fc) {
15450 ec.Errorf(ctx, "must not be null")
15451 }
15452 return graphql.Null
15453 }
15454 res := resTmp.(string)
15455 fc.Result = res
15456 return ec.marshalNString2string(ctx, field.Selections, res)
15457 }
15458
15459 func (ec *executionContext) _PodNetworkChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15460 defer func() {
15461 if r := recover(); r != nil {
15462 ec.Error(ctx, ec.Recover(ctx, r))
15463 ret = graphql.Null
15464 }
15465 }()
15466 fc := &graphql.FieldContext{
15467 Object: "PodNetworkChaos",
15468 Field: field,
15469 Args: nil,
15470 IsMethod: false,
15471 IsResolver: false,
15472 }
15473
15474 ctx = graphql.WithFieldContext(ctx, fc)
15475 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15476 ctx = rctx
15477 return obj.APIVersion, nil
15478 })
15479 if err != nil {
15480 ec.Error(ctx, err)
15481 return graphql.Null
15482 }
15483 if resTmp == nil {
15484 if !graphql.HasFieldError(ctx, fc) {
15485 ec.Errorf(ctx, "must not be null")
15486 }
15487 return graphql.Null
15488 }
15489 res := resTmp.(string)
15490 fc.Result = res
15491 return ec.marshalNString2string(ctx, field.Selections, res)
15492 }
15493
15494 func (ec *executionContext) _PodNetworkChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15495 defer func() {
15496 if r := recover(); r != nil {
15497 ec.Error(ctx, ec.Recover(ctx, r))
15498 ret = graphql.Null
15499 }
15500 }()
15501 fc := &graphql.FieldContext{
15502 Object: "PodNetworkChaos",
15503 Field: field,
15504 Args: nil,
15505 IsMethod: false,
15506 IsResolver: false,
15507 }
15508
15509 ctx = graphql.WithFieldContext(ctx, fc)
15510 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15511 ctx = rctx
15512 return obj.Name, nil
15513 })
15514 if err != nil {
15515 ec.Error(ctx, err)
15516 return graphql.Null
15517 }
15518 if resTmp == nil {
15519 if !graphql.HasFieldError(ctx, fc) {
15520 ec.Errorf(ctx, "must not be null")
15521 }
15522 return graphql.Null
15523 }
15524 res := resTmp.(string)
15525 fc.Result = res
15526 return ec.marshalNString2string(ctx, field.Selections, res)
15527 }
15528
15529 func (ec *executionContext) _PodNetworkChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15530 defer func() {
15531 if r := recover(); r != nil {
15532 ec.Error(ctx, ec.Recover(ctx, r))
15533 ret = graphql.Null
15534 }
15535 }()
15536 fc := &graphql.FieldContext{
15537 Object: "PodNetworkChaos",
15538 Field: field,
15539 Args: nil,
15540 IsMethod: false,
15541 IsResolver: false,
15542 }
15543
15544 ctx = graphql.WithFieldContext(ctx, fc)
15545 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15546 ctx = rctx
15547 return obj.GenerateName, nil
15548 })
15549 if err != nil {
15550 ec.Error(ctx, err)
15551 return graphql.Null
15552 }
15553 if resTmp == nil {
15554 if !graphql.HasFieldError(ctx, fc) {
15555 ec.Errorf(ctx, "must not be null")
15556 }
15557 return graphql.Null
15558 }
15559 res := resTmp.(string)
15560 fc.Result = res
15561 return ec.marshalNString2string(ctx, field.Selections, res)
15562 }
15563
15564 func (ec *executionContext) _PodNetworkChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15565 defer func() {
15566 if r := recover(); r != nil {
15567 ec.Error(ctx, ec.Recover(ctx, r))
15568 ret = graphql.Null
15569 }
15570 }()
15571 fc := &graphql.FieldContext{
15572 Object: "PodNetworkChaos",
15573 Field: field,
15574 Args: nil,
15575 IsMethod: false,
15576 IsResolver: false,
15577 }
15578
15579 ctx = graphql.WithFieldContext(ctx, fc)
15580 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15581 ctx = rctx
15582 return obj.Namespace, nil
15583 })
15584 if err != nil {
15585 ec.Error(ctx, err)
15586 return graphql.Null
15587 }
15588 if resTmp == nil {
15589 if !graphql.HasFieldError(ctx, fc) {
15590 ec.Errorf(ctx, "must not be null")
15591 }
15592 return graphql.Null
15593 }
15594 res := resTmp.(string)
15595 fc.Result = res
15596 return ec.marshalNString2string(ctx, field.Selections, res)
15597 }
15598
15599 func (ec *executionContext) _PodNetworkChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15600 defer func() {
15601 if r := recover(); r != nil {
15602 ec.Error(ctx, ec.Recover(ctx, r))
15603 ret = graphql.Null
15604 }
15605 }()
15606 fc := &graphql.FieldContext{
15607 Object: "PodNetworkChaos",
15608 Field: field,
15609 Args: nil,
15610 IsMethod: false,
15611 IsResolver: false,
15612 }
15613
15614 ctx = graphql.WithFieldContext(ctx, fc)
15615 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15616 ctx = rctx
15617 return obj.SelfLink, nil
15618 })
15619 if err != nil {
15620 ec.Error(ctx, err)
15621 return graphql.Null
15622 }
15623 if resTmp == nil {
15624 if !graphql.HasFieldError(ctx, fc) {
15625 ec.Errorf(ctx, "must not be null")
15626 }
15627 return graphql.Null
15628 }
15629 res := resTmp.(string)
15630 fc.Result = res
15631 return ec.marshalNString2string(ctx, field.Selections, res)
15632 }
15633
15634 func (ec *executionContext) _PodNetworkChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15635 defer func() {
15636 if r := recover(); r != nil {
15637 ec.Error(ctx, ec.Recover(ctx, r))
15638 ret = graphql.Null
15639 }
15640 }()
15641 fc := &graphql.FieldContext{
15642 Object: "PodNetworkChaos",
15643 Field: field,
15644 Args: nil,
15645 IsMethod: true,
15646 IsResolver: true,
15647 }
15648
15649 ctx = graphql.WithFieldContext(ctx, fc)
15650 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15651 ctx = rctx
15652 return ec.resolvers.PodNetworkChaos().UID(rctx, obj)
15653 })
15654 if err != nil {
15655 ec.Error(ctx, err)
15656 return graphql.Null
15657 }
15658 if resTmp == nil {
15659 if !graphql.HasFieldError(ctx, fc) {
15660 ec.Errorf(ctx, "must not be null")
15661 }
15662 return graphql.Null
15663 }
15664 res := resTmp.(string)
15665 fc.Result = res
15666 return ec.marshalNString2string(ctx, field.Selections, res)
15667 }
15668
15669 func (ec *executionContext) _PodNetworkChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15670 defer func() {
15671 if r := recover(); r != nil {
15672 ec.Error(ctx, ec.Recover(ctx, r))
15673 ret = graphql.Null
15674 }
15675 }()
15676 fc := &graphql.FieldContext{
15677 Object: "PodNetworkChaos",
15678 Field: field,
15679 Args: nil,
15680 IsMethod: false,
15681 IsResolver: false,
15682 }
15683
15684 ctx = graphql.WithFieldContext(ctx, fc)
15685 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15686 ctx = rctx
15687 return obj.ResourceVersion, nil
15688 })
15689 if err != nil {
15690 ec.Error(ctx, err)
15691 return graphql.Null
15692 }
15693 if resTmp == nil {
15694 if !graphql.HasFieldError(ctx, fc) {
15695 ec.Errorf(ctx, "must not be null")
15696 }
15697 return graphql.Null
15698 }
15699 res := resTmp.(string)
15700 fc.Result = res
15701 return ec.marshalNString2string(ctx, field.Selections, res)
15702 }
15703
15704 func (ec *executionContext) _PodNetworkChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15705 defer func() {
15706 if r := recover(); r != nil {
15707 ec.Error(ctx, ec.Recover(ctx, r))
15708 ret = graphql.Null
15709 }
15710 }()
15711 fc := &graphql.FieldContext{
15712 Object: "PodNetworkChaos",
15713 Field: field,
15714 Args: nil,
15715 IsMethod: false,
15716 IsResolver: false,
15717 }
15718
15719 ctx = graphql.WithFieldContext(ctx, fc)
15720 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15721 ctx = rctx
15722 return obj.Generation, nil
15723 })
15724 if err != nil {
15725 ec.Error(ctx, err)
15726 return graphql.Null
15727 }
15728 if resTmp == nil {
15729 if !graphql.HasFieldError(ctx, fc) {
15730 ec.Errorf(ctx, "must not be null")
15731 }
15732 return graphql.Null
15733 }
15734 res := resTmp.(int64)
15735 fc.Result = res
15736 return ec.marshalNInt2int64(ctx, field.Selections, res)
15737 }
15738
15739 func (ec *executionContext) _PodNetworkChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15740 defer func() {
15741 if r := recover(); r != nil {
15742 ec.Error(ctx, ec.Recover(ctx, r))
15743 ret = graphql.Null
15744 }
15745 }()
15746 fc := &graphql.FieldContext{
15747 Object: "PodNetworkChaos",
15748 Field: field,
15749 Args: nil,
15750 IsMethod: true,
15751 IsResolver: true,
15752 }
15753
15754 ctx = graphql.WithFieldContext(ctx, fc)
15755 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15756 ctx = rctx
15757 return ec.resolvers.PodNetworkChaos().CreationTimestamp(rctx, obj)
15758 })
15759 if err != nil {
15760 ec.Error(ctx, err)
15761 return graphql.Null
15762 }
15763 if resTmp == nil {
15764 if !graphql.HasFieldError(ctx, fc) {
15765 ec.Errorf(ctx, "must not be null")
15766 }
15767 return graphql.Null
15768 }
15769 res := resTmp.(*time.Time)
15770 fc.Result = res
15771 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
15772 }
15773
15774 func (ec *executionContext) _PodNetworkChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15775 defer func() {
15776 if r := recover(); r != nil {
15777 ec.Error(ctx, ec.Recover(ctx, r))
15778 ret = graphql.Null
15779 }
15780 }()
15781 fc := &graphql.FieldContext{
15782 Object: "PodNetworkChaos",
15783 Field: field,
15784 Args: nil,
15785 IsMethod: true,
15786 IsResolver: true,
15787 }
15788
15789 ctx = graphql.WithFieldContext(ctx, fc)
15790 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15791 ctx = rctx
15792 return ec.resolvers.PodNetworkChaos().DeletionTimestamp(rctx, obj)
15793 })
15794 if err != nil {
15795 ec.Error(ctx, err)
15796 return graphql.Null
15797 }
15798 if resTmp == nil {
15799 return graphql.Null
15800 }
15801 res := resTmp.(*time.Time)
15802 fc.Result = res
15803 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
15804 }
15805
15806 func (ec *executionContext) _PodNetworkChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15807 defer func() {
15808 if r := recover(); r != nil {
15809 ec.Error(ctx, ec.Recover(ctx, r))
15810 ret = graphql.Null
15811 }
15812 }()
15813 fc := &graphql.FieldContext{
15814 Object: "PodNetworkChaos",
15815 Field: field,
15816 Args: nil,
15817 IsMethod: false,
15818 IsResolver: false,
15819 }
15820
15821 ctx = graphql.WithFieldContext(ctx, fc)
15822 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15823 ctx = rctx
15824 return obj.DeletionGracePeriodSeconds, nil
15825 })
15826 if err != nil {
15827 ec.Error(ctx, err)
15828 return graphql.Null
15829 }
15830 if resTmp == nil {
15831 return graphql.Null
15832 }
15833 res := resTmp.(*int64)
15834 fc.Result = res
15835 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
15836 }
15837
15838 func (ec *executionContext) _PodNetworkChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15839 defer func() {
15840 if r := recover(); r != nil {
15841 ec.Error(ctx, ec.Recover(ctx, r))
15842 ret = graphql.Null
15843 }
15844 }()
15845 fc := &graphql.FieldContext{
15846 Object: "PodNetworkChaos",
15847 Field: field,
15848 Args: nil,
15849 IsMethod: true,
15850 IsResolver: true,
15851 }
15852
15853 ctx = graphql.WithFieldContext(ctx, fc)
15854 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15855 ctx = rctx
15856 return ec.resolvers.PodNetworkChaos().Labels(rctx, obj)
15857 })
15858 if err != nil {
15859 ec.Error(ctx, err)
15860 return graphql.Null
15861 }
15862 if resTmp == nil {
15863 return graphql.Null
15864 }
15865 res := resTmp.(map[string]interface{})
15866 fc.Result = res
15867 return ec.marshalOMap2map(ctx, field.Selections, res)
15868 }
15869
15870 func (ec *executionContext) _PodNetworkChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15871 defer func() {
15872 if r := recover(); r != nil {
15873 ec.Error(ctx, ec.Recover(ctx, r))
15874 ret = graphql.Null
15875 }
15876 }()
15877 fc := &graphql.FieldContext{
15878 Object: "PodNetworkChaos",
15879 Field: field,
15880 Args: nil,
15881 IsMethod: true,
15882 IsResolver: true,
15883 }
15884
15885 ctx = graphql.WithFieldContext(ctx, fc)
15886 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15887 ctx = rctx
15888 return ec.resolvers.PodNetworkChaos().Annotations(rctx, obj)
15889 })
15890 if err != nil {
15891 ec.Error(ctx, err)
15892 return graphql.Null
15893 }
15894 if resTmp == nil {
15895 return graphql.Null
15896 }
15897 res := resTmp.(map[string]interface{})
15898 fc.Result = res
15899 return ec.marshalOMap2map(ctx, field.Selections, res)
15900 }
15901
15902 func (ec *executionContext) _PodNetworkChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15903 defer func() {
15904 if r := recover(); r != nil {
15905 ec.Error(ctx, ec.Recover(ctx, r))
15906 ret = graphql.Null
15907 }
15908 }()
15909 fc := &graphql.FieldContext{
15910 Object: "PodNetworkChaos",
15911 Field: field,
15912 Args: nil,
15913 IsMethod: false,
15914 IsResolver: false,
15915 }
15916
15917 ctx = graphql.WithFieldContext(ctx, fc)
15918 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15919 ctx = rctx
15920 return obj.OwnerReferences, nil
15921 })
15922 if err != nil {
15923 ec.Error(ctx, err)
15924 return graphql.Null
15925 }
15926 if resTmp == nil {
15927 return graphql.Null
15928 }
15929 res := resTmp.([]v11.OwnerReference)
15930 fc.Result = res
15931 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
15932 }
15933
15934 func (ec *executionContext) _PodNetworkChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15935 defer func() {
15936 if r := recover(); r != nil {
15937 ec.Error(ctx, ec.Recover(ctx, r))
15938 ret = graphql.Null
15939 }
15940 }()
15941 fc := &graphql.FieldContext{
15942 Object: "PodNetworkChaos",
15943 Field: field,
15944 Args: nil,
15945 IsMethod: false,
15946 IsResolver: false,
15947 }
15948
15949 ctx = graphql.WithFieldContext(ctx, fc)
15950 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15951 ctx = rctx
15952 return obj.Finalizers, nil
15953 })
15954 if err != nil {
15955 ec.Error(ctx, err)
15956 return graphql.Null
15957 }
15958 if resTmp == nil {
15959 return graphql.Null
15960 }
15961 res := resTmp.([]string)
15962 fc.Result = res
15963 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
15964 }
15965
15966 func (ec *executionContext) _PodNetworkChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
15967 defer func() {
15968 if r := recover(); r != nil {
15969 ec.Error(ctx, ec.Recover(ctx, r))
15970 ret = graphql.Null
15971 }
15972 }()
15973 fc := &graphql.FieldContext{
15974 Object: "PodNetworkChaos",
15975 Field: field,
15976 Args: nil,
15977 IsMethod: false,
15978 IsResolver: false,
15979 }
15980
15981 ctx = graphql.WithFieldContext(ctx, fc)
15982 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
15983 ctx = rctx
15984 return obj.ClusterName, nil
15985 })
15986 if err != nil {
15987 ec.Error(ctx, err)
15988 return graphql.Null
15989 }
15990 if resTmp == nil {
15991 if !graphql.HasFieldError(ctx, fc) {
15992 ec.Errorf(ctx, "must not be null")
15993 }
15994 return graphql.Null
15995 }
15996 res := resTmp.(string)
15997 fc.Result = res
15998 return ec.marshalNString2string(ctx, field.Selections, res)
15999 }
16000
16001 func (ec *executionContext) _PodNetworkChaos_spec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
16002 defer func() {
16003 if r := recover(); r != nil {
16004 ec.Error(ctx, ec.Recover(ctx, r))
16005 ret = graphql.Null
16006 }
16007 }()
16008 fc := &graphql.FieldContext{
16009 Object: "PodNetworkChaos",
16010 Field: field,
16011 Args: nil,
16012 IsMethod: false,
16013 IsResolver: false,
16014 }
16015
16016 ctx = graphql.WithFieldContext(ctx, fc)
16017 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16018 ctx = rctx
16019 return obj.Spec, nil
16020 })
16021 if err != nil {
16022 ec.Error(ctx, err)
16023 return graphql.Null
16024 }
16025 if resTmp == nil {
16026 if !graphql.HasFieldError(ctx, fc) {
16027 ec.Errorf(ctx, "must not be null")
16028 }
16029 return graphql.Null
16030 }
16031 res := resTmp.(v1alpha1.PodNetworkChaosSpec)
16032 fc.Result = res
16033 return ec.marshalNPodNetworkChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosSpec(ctx, field.Selections, res)
16034 }
16035
16036 func (ec *executionContext) _PodNetworkChaos_status(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
16037 defer func() {
16038 if r := recover(); r != nil {
16039 ec.Error(ctx, ec.Recover(ctx, r))
16040 ret = graphql.Null
16041 }
16042 }()
16043 fc := &graphql.FieldContext{
16044 Object: "PodNetworkChaos",
16045 Field: field,
16046 Args: nil,
16047 IsMethod: false,
16048 IsResolver: false,
16049 }
16050
16051 ctx = graphql.WithFieldContext(ctx, fc)
16052 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16053 ctx = rctx
16054 return obj.Status, nil
16055 })
16056 if err != nil {
16057 ec.Error(ctx, err)
16058 return graphql.Null
16059 }
16060 if resTmp == nil {
16061 if !graphql.HasFieldError(ctx, fc) {
16062 ec.Errorf(ctx, "must not be null")
16063 }
16064 return graphql.Null
16065 }
16066 res := resTmp.(v1alpha1.PodNetworkChaosStatus)
16067 fc.Result = res
16068 return ec.marshalNPodNetworkChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosStatus(ctx, field.Selections, res)
16069 }
16070
16071 func (ec *executionContext) _PodNetworkChaos_pod(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaos) (ret graphql.Marshaler) {
16072 defer func() {
16073 if r := recover(); r != nil {
16074 ec.Error(ctx, ec.Recover(ctx, r))
16075 ret = graphql.Null
16076 }
16077 }()
16078 fc := &graphql.FieldContext{
16079 Object: "PodNetworkChaos",
16080 Field: field,
16081 Args: nil,
16082 IsMethod: true,
16083 IsResolver: true,
16084 }
16085
16086 ctx = graphql.WithFieldContext(ctx, fc)
16087 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16088 ctx = rctx
16089 return ec.resolvers.PodNetworkChaos().Pod(rctx, obj)
16090 })
16091 if err != nil {
16092 ec.Error(ctx, err)
16093 return graphql.Null
16094 }
16095 if resTmp == nil {
16096 if !graphql.HasFieldError(ctx, fc) {
16097 ec.Errorf(ctx, "must not be null")
16098 }
16099 return graphql.Null
16100 }
16101 res := resTmp.(*v1.Pod)
16102 fc.Result = res
16103 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
16104 }
16105
16106 func (ec *executionContext) _PodNetworkChaosSpec_ipSets(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosSpec) (ret graphql.Marshaler) {
16107 defer func() {
16108 if r := recover(); r != nil {
16109 ec.Error(ctx, ec.Recover(ctx, r))
16110 ret = graphql.Null
16111 }
16112 }()
16113 fc := &graphql.FieldContext{
16114 Object: "PodNetworkChaosSpec",
16115 Field: field,
16116 Args: nil,
16117 IsMethod: false,
16118 IsResolver: false,
16119 }
16120
16121 ctx = graphql.WithFieldContext(ctx, fc)
16122 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16123 ctx = rctx
16124 return obj.IPSets, nil
16125 })
16126 if err != nil {
16127 ec.Error(ctx, err)
16128 return graphql.Null
16129 }
16130 if resTmp == nil {
16131 return graphql.Null
16132 }
16133 res := resTmp.([]v1alpha1.RawIPSet)
16134 fc.Result = res
16135 return ec.marshalORawIPSet2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSetᚄ(ctx, field.Selections, res)
16136 }
16137
16138 func (ec *executionContext) _PodNetworkChaosSpec_iptables(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosSpec) (ret graphql.Marshaler) {
16139 defer func() {
16140 if r := recover(); r != nil {
16141 ec.Error(ctx, ec.Recover(ctx, r))
16142 ret = graphql.Null
16143 }
16144 }()
16145 fc := &graphql.FieldContext{
16146 Object: "PodNetworkChaosSpec",
16147 Field: field,
16148 Args: nil,
16149 IsMethod: false,
16150 IsResolver: false,
16151 }
16152
16153 ctx = graphql.WithFieldContext(ctx, fc)
16154 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16155 ctx = rctx
16156 return obj.Iptables, nil
16157 })
16158 if err != nil {
16159 ec.Error(ctx, err)
16160 return graphql.Null
16161 }
16162 if resTmp == nil {
16163 return graphql.Null
16164 }
16165 res := resTmp.([]v1alpha1.RawIptables)
16166 fc.Result = res
16167 return ec.marshalORawIptables2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptablesᚄ(ctx, field.Selections, res)
16168 }
16169
16170 func (ec *executionContext) _PodNetworkChaosSpec_trafficControls(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosSpec) (ret graphql.Marshaler) {
16171 defer func() {
16172 if r := recover(); r != nil {
16173 ec.Error(ctx, ec.Recover(ctx, r))
16174 ret = graphql.Null
16175 }
16176 }()
16177 fc := &graphql.FieldContext{
16178 Object: "PodNetworkChaosSpec",
16179 Field: field,
16180 Args: nil,
16181 IsMethod: false,
16182 IsResolver: false,
16183 }
16184
16185 ctx = graphql.WithFieldContext(ctx, fc)
16186 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16187 ctx = rctx
16188 return obj.TrafficControls, nil
16189 })
16190 if err != nil {
16191 ec.Error(ctx, err)
16192 return graphql.Null
16193 }
16194 if resTmp == nil {
16195 return graphql.Null
16196 }
16197 res := resTmp.([]v1alpha1.RawTrafficControl)
16198 fc.Result = res
16199 return ec.marshalORawTrafficControl2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControlᚄ(ctx, field.Selections, res)
16200 }
16201
16202 func (ec *executionContext) _PodNetworkChaosStatus_failedMessage(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosStatus) (ret graphql.Marshaler) {
16203 defer func() {
16204 if r := recover(); r != nil {
16205 ec.Error(ctx, ec.Recover(ctx, r))
16206 ret = graphql.Null
16207 }
16208 }()
16209 fc := &graphql.FieldContext{
16210 Object: "PodNetworkChaosStatus",
16211 Field: field,
16212 Args: nil,
16213 IsMethod: false,
16214 IsResolver: false,
16215 }
16216
16217 ctx = graphql.WithFieldContext(ctx, fc)
16218 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16219 ctx = rctx
16220 return obj.FailedMessage, nil
16221 })
16222 if err != nil {
16223 ec.Error(ctx, err)
16224 return graphql.Null
16225 }
16226 if resTmp == nil {
16227 if !graphql.HasFieldError(ctx, fc) {
16228 ec.Errorf(ctx, "must not be null")
16229 }
16230 return graphql.Null
16231 }
16232 res := resTmp.(string)
16233 fc.Result = res
16234 return ec.marshalNString2string(ctx, field.Selections, res)
16235 }
16236
16237 func (ec *executionContext) _PodNetworkChaosStatus_observedGeneration(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodNetworkChaosStatus) (ret graphql.Marshaler) {
16238 defer func() {
16239 if r := recover(); r != nil {
16240 ec.Error(ctx, ec.Recover(ctx, r))
16241 ret = graphql.Null
16242 }
16243 }()
16244 fc := &graphql.FieldContext{
16245 Object: "PodNetworkChaosStatus",
16246 Field: field,
16247 Args: nil,
16248 IsMethod: false,
16249 IsResolver: false,
16250 }
16251
16252 ctx = graphql.WithFieldContext(ctx, fc)
16253 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16254 ctx = rctx
16255 return obj.ObservedGeneration, nil
16256 })
16257 if err != nil {
16258 ec.Error(ctx, err)
16259 return graphql.Null
16260 }
16261 if resTmp == nil {
16262 if !graphql.HasFieldError(ctx, fc) {
16263 ec.Errorf(ctx, "must not be null")
16264 }
16265 return graphql.Null
16266 }
16267 res := resTmp.(int64)
16268 fc.Result = res
16269 return ec.marshalNInt2int64(ctx, field.Selections, res)
16270 }
16271
16272 func (ec *executionContext) _PodSelectorSpec_namespaces(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16273 defer func() {
16274 if r := recover(); r != nil {
16275 ec.Error(ctx, ec.Recover(ctx, r))
16276 ret = graphql.Null
16277 }
16278 }()
16279 fc := &graphql.FieldContext{
16280 Object: "PodSelectorSpec",
16281 Field: field,
16282 Args: nil,
16283 IsMethod: false,
16284 IsResolver: false,
16285 }
16286
16287 ctx = graphql.WithFieldContext(ctx, fc)
16288 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16289 ctx = rctx
16290 return obj.Namespaces, nil
16291 })
16292 if err != nil {
16293 ec.Error(ctx, err)
16294 return graphql.Null
16295 }
16296 if resTmp == nil {
16297 return graphql.Null
16298 }
16299 res := resTmp.([]string)
16300 fc.Result = res
16301 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
16302 }
16303
16304 func (ec *executionContext) _PodSelectorSpec_nodes(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16305 defer func() {
16306 if r := recover(); r != nil {
16307 ec.Error(ctx, ec.Recover(ctx, r))
16308 ret = graphql.Null
16309 }
16310 }()
16311 fc := &graphql.FieldContext{
16312 Object: "PodSelectorSpec",
16313 Field: field,
16314 Args: nil,
16315 IsMethod: false,
16316 IsResolver: false,
16317 }
16318
16319 ctx = graphql.WithFieldContext(ctx, fc)
16320 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16321 ctx = rctx
16322 return obj.Nodes, nil
16323 })
16324 if err != nil {
16325 ec.Error(ctx, err)
16326 return graphql.Null
16327 }
16328 if resTmp == nil {
16329 return graphql.Null
16330 }
16331 res := resTmp.([]string)
16332 fc.Result = res
16333 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
16334 }
16335
16336 func (ec *executionContext) _PodSelectorSpec_pods(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16337 defer func() {
16338 if r := recover(); r != nil {
16339 ec.Error(ctx, ec.Recover(ctx, r))
16340 ret = graphql.Null
16341 }
16342 }()
16343 fc := &graphql.FieldContext{
16344 Object: "PodSelectorSpec",
16345 Field: field,
16346 Args: nil,
16347 IsMethod: true,
16348 IsResolver: true,
16349 }
16350
16351 ctx = graphql.WithFieldContext(ctx, fc)
16352 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16353 ctx = rctx
16354 return ec.resolvers.PodSelectorSpec().Pods(rctx, obj)
16355 })
16356 if err != nil {
16357 ec.Error(ctx, err)
16358 return graphql.Null
16359 }
16360 if resTmp == nil {
16361 return graphql.Null
16362 }
16363 res := resTmp.(map[string]interface{})
16364 fc.Result = res
16365 return ec.marshalOMap2map(ctx, field.Selections, res)
16366 }
16367
16368 func (ec *executionContext) _PodSelectorSpec_nodeSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16369 defer func() {
16370 if r := recover(); r != nil {
16371 ec.Error(ctx, ec.Recover(ctx, r))
16372 ret = graphql.Null
16373 }
16374 }()
16375 fc := &graphql.FieldContext{
16376 Object: "PodSelectorSpec",
16377 Field: field,
16378 Args: nil,
16379 IsMethod: true,
16380 IsResolver: true,
16381 }
16382
16383 ctx = graphql.WithFieldContext(ctx, fc)
16384 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16385 ctx = rctx
16386 return ec.resolvers.PodSelectorSpec().NodeSelectors(rctx, obj)
16387 })
16388 if err != nil {
16389 ec.Error(ctx, err)
16390 return graphql.Null
16391 }
16392 if resTmp == nil {
16393 return graphql.Null
16394 }
16395 res := resTmp.(map[string]interface{})
16396 fc.Result = res
16397 return ec.marshalOMap2map(ctx, field.Selections, res)
16398 }
16399
16400 func (ec *executionContext) _PodSelectorSpec_fieldSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16401 defer func() {
16402 if r := recover(); r != nil {
16403 ec.Error(ctx, ec.Recover(ctx, r))
16404 ret = graphql.Null
16405 }
16406 }()
16407 fc := &graphql.FieldContext{
16408 Object: "PodSelectorSpec",
16409 Field: field,
16410 Args: nil,
16411 IsMethod: true,
16412 IsResolver: true,
16413 }
16414
16415 ctx = graphql.WithFieldContext(ctx, fc)
16416 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16417 ctx = rctx
16418 return ec.resolvers.PodSelectorSpec().FieldSelectors(rctx, obj)
16419 })
16420 if err != nil {
16421 ec.Error(ctx, err)
16422 return graphql.Null
16423 }
16424 if resTmp == nil {
16425 return graphql.Null
16426 }
16427 res := resTmp.(map[string]interface{})
16428 fc.Result = res
16429 return ec.marshalOMap2map(ctx, field.Selections, res)
16430 }
16431
16432 func (ec *executionContext) _PodSelectorSpec_labelSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16433 defer func() {
16434 if r := recover(); r != nil {
16435 ec.Error(ctx, ec.Recover(ctx, r))
16436 ret = graphql.Null
16437 }
16438 }()
16439 fc := &graphql.FieldContext{
16440 Object: "PodSelectorSpec",
16441 Field: field,
16442 Args: nil,
16443 IsMethod: true,
16444 IsResolver: true,
16445 }
16446
16447 ctx = graphql.WithFieldContext(ctx, fc)
16448 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16449 ctx = rctx
16450 return ec.resolvers.PodSelectorSpec().LabelSelectors(rctx, obj)
16451 })
16452 if err != nil {
16453 ec.Error(ctx, err)
16454 return graphql.Null
16455 }
16456 if resTmp == nil {
16457 return graphql.Null
16458 }
16459 res := resTmp.(map[string]interface{})
16460 fc.Result = res
16461 return ec.marshalOMap2map(ctx, field.Selections, res)
16462 }
16463
16464 func (ec *executionContext) _PodSelectorSpec_annotationSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16465 defer func() {
16466 if r := recover(); r != nil {
16467 ec.Error(ctx, ec.Recover(ctx, r))
16468 ret = graphql.Null
16469 }
16470 }()
16471 fc := &graphql.FieldContext{
16472 Object: "PodSelectorSpec",
16473 Field: field,
16474 Args: nil,
16475 IsMethod: true,
16476 IsResolver: true,
16477 }
16478
16479 ctx = graphql.WithFieldContext(ctx, fc)
16480 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16481 ctx = rctx
16482 return ec.resolvers.PodSelectorSpec().AnnotationSelectors(rctx, obj)
16483 })
16484 if err != nil {
16485 ec.Error(ctx, err)
16486 return graphql.Null
16487 }
16488 if resTmp == nil {
16489 return graphql.Null
16490 }
16491 res := resTmp.(map[string]interface{})
16492 fc.Result = res
16493 return ec.marshalOMap2map(ctx, field.Selections, res)
16494 }
16495
16496 func (ec *executionContext) _PodSelectorSpec_podPhaseSelectors(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.PodSelectorSpec) (ret graphql.Marshaler) {
16497 defer func() {
16498 if r := recover(); r != nil {
16499 ec.Error(ctx, ec.Recover(ctx, r))
16500 ret = graphql.Null
16501 }
16502 }()
16503 fc := &graphql.FieldContext{
16504 Object: "PodSelectorSpec",
16505 Field: field,
16506 Args: nil,
16507 IsMethod: false,
16508 IsResolver: false,
16509 }
16510
16511 ctx = graphql.WithFieldContext(ctx, fc)
16512 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16513 ctx = rctx
16514 return obj.PodPhaseSelectors, nil
16515 })
16516 if err != nil {
16517 ec.Error(ctx, err)
16518 return graphql.Null
16519 }
16520 if resTmp == nil {
16521 return graphql.Null
16522 }
16523 res := resTmp.([]string)
16524 fc.Result = res
16525 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
16526 }
16527
16528 func (ec *executionContext) _PodSpec_nodeName(ctx context.Context, field graphql.CollectedField, obj *v1.PodSpec) (ret graphql.Marshaler) {
16529 defer func() {
16530 if r := recover(); r != nil {
16531 ec.Error(ctx, ec.Recover(ctx, r))
16532 ret = graphql.Null
16533 }
16534 }()
16535 fc := &graphql.FieldContext{
16536 Object: "PodSpec",
16537 Field: field,
16538 Args: nil,
16539 IsMethod: false,
16540 IsResolver: false,
16541 }
16542
16543 ctx = graphql.WithFieldContext(ctx, fc)
16544 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16545 ctx = rctx
16546 return obj.NodeName, nil
16547 })
16548 if err != nil {
16549 ec.Error(ctx, err)
16550 return graphql.Null
16551 }
16552 if resTmp == nil {
16553 if !graphql.HasFieldError(ctx, fc) {
16554 ec.Errorf(ctx, "must not be null")
16555 }
16556 return graphql.Null
16557 }
16558 res := resTmp.(string)
16559 fc.Result = res
16560 return ec.marshalNString2string(ctx, field.Selections, res)
16561 }
16562
16563 func (ec *executionContext) _PodStatus_phase(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16564 defer func() {
16565 if r := recover(); r != nil {
16566 ec.Error(ctx, ec.Recover(ctx, r))
16567 ret = graphql.Null
16568 }
16569 }()
16570 fc := &graphql.FieldContext{
16571 Object: "PodStatus",
16572 Field: field,
16573 Args: nil,
16574 IsMethod: true,
16575 IsResolver: true,
16576 }
16577
16578 ctx = graphql.WithFieldContext(ctx, fc)
16579 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16580 ctx = rctx
16581 return ec.resolvers.PodStatus().Phase(rctx, obj)
16582 })
16583 if err != nil {
16584 ec.Error(ctx, err)
16585 return graphql.Null
16586 }
16587 if resTmp == nil {
16588 if !graphql.HasFieldError(ctx, fc) {
16589 ec.Errorf(ctx, "must not be null")
16590 }
16591 return graphql.Null
16592 }
16593 res := resTmp.(string)
16594 fc.Result = res
16595 return ec.marshalNString2string(ctx, field.Selections, res)
16596 }
16597
16598 func (ec *executionContext) _PodStatus_conditions(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16599 defer func() {
16600 if r := recover(); r != nil {
16601 ec.Error(ctx, ec.Recover(ctx, r))
16602 ret = graphql.Null
16603 }
16604 }()
16605 fc := &graphql.FieldContext{
16606 Object: "PodStatus",
16607 Field: field,
16608 Args: nil,
16609 IsMethod: false,
16610 IsResolver: false,
16611 }
16612
16613 ctx = graphql.WithFieldContext(ctx, fc)
16614 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16615 ctx = rctx
16616 return obj.Conditions, nil
16617 })
16618 if err != nil {
16619 ec.Error(ctx, err)
16620 return graphql.Null
16621 }
16622 if resTmp == nil {
16623 return graphql.Null
16624 }
16625 res := resTmp.([]v1.PodCondition)
16626 fc.Result = res
16627 return ec.marshalOPodCondition2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodConditionᚄ(ctx, field.Selections, res)
16628 }
16629
16630 func (ec *executionContext) _PodStatus_message(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16631 defer func() {
16632 if r := recover(); r != nil {
16633 ec.Error(ctx, ec.Recover(ctx, r))
16634 ret = graphql.Null
16635 }
16636 }()
16637 fc := &graphql.FieldContext{
16638 Object: "PodStatus",
16639 Field: field,
16640 Args: nil,
16641 IsMethod: false,
16642 IsResolver: false,
16643 }
16644
16645 ctx = graphql.WithFieldContext(ctx, fc)
16646 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16647 ctx = rctx
16648 return obj.Message, nil
16649 })
16650 if err != nil {
16651 ec.Error(ctx, err)
16652 return graphql.Null
16653 }
16654 if resTmp == nil {
16655 if !graphql.HasFieldError(ctx, fc) {
16656 ec.Errorf(ctx, "must not be null")
16657 }
16658 return graphql.Null
16659 }
16660 res := resTmp.(string)
16661 fc.Result = res
16662 return ec.marshalNString2string(ctx, field.Selections, res)
16663 }
16664
16665 func (ec *executionContext) _PodStatus_reason(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16666 defer func() {
16667 if r := recover(); r != nil {
16668 ec.Error(ctx, ec.Recover(ctx, r))
16669 ret = graphql.Null
16670 }
16671 }()
16672 fc := &graphql.FieldContext{
16673 Object: "PodStatus",
16674 Field: field,
16675 Args: nil,
16676 IsMethod: false,
16677 IsResolver: false,
16678 }
16679
16680 ctx = graphql.WithFieldContext(ctx, fc)
16681 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16682 ctx = rctx
16683 return obj.Reason, nil
16684 })
16685 if err != nil {
16686 ec.Error(ctx, err)
16687 return graphql.Null
16688 }
16689 if resTmp == nil {
16690 if !graphql.HasFieldError(ctx, fc) {
16691 ec.Errorf(ctx, "must not be null")
16692 }
16693 return graphql.Null
16694 }
16695 res := resTmp.(string)
16696 fc.Result = res
16697 return ec.marshalNString2string(ctx, field.Selections, res)
16698 }
16699
16700 func (ec *executionContext) _PodStatus_nominatedNodeName(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16701 defer func() {
16702 if r := recover(); r != nil {
16703 ec.Error(ctx, ec.Recover(ctx, r))
16704 ret = graphql.Null
16705 }
16706 }()
16707 fc := &graphql.FieldContext{
16708 Object: "PodStatus",
16709 Field: field,
16710 Args: nil,
16711 IsMethod: false,
16712 IsResolver: false,
16713 }
16714
16715 ctx = graphql.WithFieldContext(ctx, fc)
16716 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16717 ctx = rctx
16718 return obj.NominatedNodeName, nil
16719 })
16720 if err != nil {
16721 ec.Error(ctx, err)
16722 return graphql.Null
16723 }
16724 if resTmp == nil {
16725 if !graphql.HasFieldError(ctx, fc) {
16726 ec.Errorf(ctx, "must not be null")
16727 }
16728 return graphql.Null
16729 }
16730 res := resTmp.(string)
16731 fc.Result = res
16732 return ec.marshalNString2string(ctx, field.Selections, res)
16733 }
16734
16735 func (ec *executionContext) _PodStatus_hostIP(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16736 defer func() {
16737 if r := recover(); r != nil {
16738 ec.Error(ctx, ec.Recover(ctx, r))
16739 ret = graphql.Null
16740 }
16741 }()
16742 fc := &graphql.FieldContext{
16743 Object: "PodStatus",
16744 Field: field,
16745 Args: nil,
16746 IsMethod: false,
16747 IsResolver: false,
16748 }
16749
16750 ctx = graphql.WithFieldContext(ctx, fc)
16751 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16752 ctx = rctx
16753 return obj.HostIP, nil
16754 })
16755 if err != nil {
16756 ec.Error(ctx, err)
16757 return graphql.Null
16758 }
16759 if resTmp == nil {
16760 if !graphql.HasFieldError(ctx, fc) {
16761 ec.Errorf(ctx, "must not be null")
16762 }
16763 return graphql.Null
16764 }
16765 res := resTmp.(string)
16766 fc.Result = res
16767 return ec.marshalNString2string(ctx, field.Selections, res)
16768 }
16769
16770 func (ec *executionContext) _PodStatus_podIP(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16771 defer func() {
16772 if r := recover(); r != nil {
16773 ec.Error(ctx, ec.Recover(ctx, r))
16774 ret = graphql.Null
16775 }
16776 }()
16777 fc := &graphql.FieldContext{
16778 Object: "PodStatus",
16779 Field: field,
16780 Args: nil,
16781 IsMethod: false,
16782 IsResolver: false,
16783 }
16784
16785 ctx = graphql.WithFieldContext(ctx, fc)
16786 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16787 ctx = rctx
16788 return obj.PodIP, nil
16789 })
16790 if err != nil {
16791 ec.Error(ctx, err)
16792 return graphql.Null
16793 }
16794 if resTmp == nil {
16795 if !graphql.HasFieldError(ctx, fc) {
16796 ec.Errorf(ctx, "must not be null")
16797 }
16798 return graphql.Null
16799 }
16800 res := resTmp.(string)
16801 fc.Result = res
16802 return ec.marshalNString2string(ctx, field.Selections, res)
16803 }
16804
16805 func (ec *executionContext) _PodStatus_podIPs(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16806 defer func() {
16807 if r := recover(); r != nil {
16808 ec.Error(ctx, ec.Recover(ctx, r))
16809 ret = graphql.Null
16810 }
16811 }()
16812 fc := &graphql.FieldContext{
16813 Object: "PodStatus",
16814 Field: field,
16815 Args: nil,
16816 IsMethod: false,
16817 IsResolver: false,
16818 }
16819
16820 ctx = graphql.WithFieldContext(ctx, fc)
16821 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16822 ctx = rctx
16823 return obj.PodIPs, nil
16824 })
16825 if err != nil {
16826 ec.Error(ctx, err)
16827 return graphql.Null
16828 }
16829 if resTmp == nil {
16830 return graphql.Null
16831 }
16832 res := resTmp.([]v1.PodIP)
16833 fc.Result = res
16834 return ec.marshalOPodIP2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodIPᚄ(ctx, field.Selections, res)
16835 }
16836
16837 func (ec *executionContext) _PodStatus_startTime(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16838 defer func() {
16839 if r := recover(); r != nil {
16840 ec.Error(ctx, ec.Recover(ctx, r))
16841 ret = graphql.Null
16842 }
16843 }()
16844 fc := &graphql.FieldContext{
16845 Object: "PodStatus",
16846 Field: field,
16847 Args: nil,
16848 IsMethod: true,
16849 IsResolver: true,
16850 }
16851
16852 ctx = graphql.WithFieldContext(ctx, fc)
16853 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16854 ctx = rctx
16855 return ec.resolvers.PodStatus().StartTime(rctx, obj)
16856 })
16857 if err != nil {
16858 ec.Error(ctx, err)
16859 return graphql.Null
16860 }
16861 if resTmp == nil {
16862 return graphql.Null
16863 }
16864 res := resTmp.(*time.Time)
16865 fc.Result = res
16866 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
16867 }
16868
16869 func (ec *executionContext) _PodStatus_initContainerStatuses(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16870 defer func() {
16871 if r := recover(); r != nil {
16872 ec.Error(ctx, ec.Recover(ctx, r))
16873 ret = graphql.Null
16874 }
16875 }()
16876 fc := &graphql.FieldContext{
16877 Object: "PodStatus",
16878 Field: field,
16879 Args: nil,
16880 IsMethod: false,
16881 IsResolver: false,
16882 }
16883
16884 ctx = graphql.WithFieldContext(ctx, fc)
16885 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16886 ctx = rctx
16887 return obj.InitContainerStatuses, nil
16888 })
16889 if err != nil {
16890 ec.Error(ctx, err)
16891 return graphql.Null
16892 }
16893 if resTmp == nil {
16894 return graphql.Null
16895 }
16896 res := resTmp.([]v1.ContainerStatus)
16897 fc.Result = res
16898 return ec.marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx, field.Selections, res)
16899 }
16900
16901 func (ec *executionContext) _PodStatus_containerStatuses(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16902 defer func() {
16903 if r := recover(); r != nil {
16904 ec.Error(ctx, ec.Recover(ctx, r))
16905 ret = graphql.Null
16906 }
16907 }()
16908 fc := &graphql.FieldContext{
16909 Object: "PodStatus",
16910 Field: field,
16911 Args: nil,
16912 IsMethod: false,
16913 IsResolver: false,
16914 }
16915
16916 ctx = graphql.WithFieldContext(ctx, fc)
16917 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16918 ctx = rctx
16919 return obj.ContainerStatuses, nil
16920 })
16921 if err != nil {
16922 ec.Error(ctx, err)
16923 return graphql.Null
16924 }
16925 if resTmp == nil {
16926 return graphql.Null
16927 }
16928 res := resTmp.([]v1.ContainerStatus)
16929 fc.Result = res
16930 return ec.marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx, field.Selections, res)
16931 }
16932
16933 func (ec *executionContext) _PodStatus_qosClass(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16934 defer func() {
16935 if r := recover(); r != nil {
16936 ec.Error(ctx, ec.Recover(ctx, r))
16937 ret = graphql.Null
16938 }
16939 }()
16940 fc := &graphql.FieldContext{
16941 Object: "PodStatus",
16942 Field: field,
16943 Args: nil,
16944 IsMethod: true,
16945 IsResolver: true,
16946 }
16947
16948 ctx = graphql.WithFieldContext(ctx, fc)
16949 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16950 ctx = rctx
16951 return ec.resolvers.PodStatus().QosClass(rctx, obj)
16952 })
16953 if err != nil {
16954 ec.Error(ctx, err)
16955 return graphql.Null
16956 }
16957 if resTmp == nil {
16958 if !graphql.HasFieldError(ctx, fc) {
16959 ec.Errorf(ctx, "must not be null")
16960 }
16961 return graphql.Null
16962 }
16963 res := resTmp.(string)
16964 fc.Result = res
16965 return ec.marshalNString2string(ctx, field.Selections, res)
16966 }
16967
16968 func (ec *executionContext) _PodStatus_ephemeralContainerStatuses(ctx context.Context, field graphql.CollectedField, obj *v1.PodStatus) (ret graphql.Marshaler) {
16969 defer func() {
16970 if r := recover(); r != nil {
16971 ec.Error(ctx, ec.Recover(ctx, r))
16972 ret = graphql.Null
16973 }
16974 }()
16975 fc := &graphql.FieldContext{
16976 Object: "PodStatus",
16977 Field: field,
16978 Args: nil,
16979 IsMethod: false,
16980 IsResolver: false,
16981 }
16982
16983 ctx = graphql.WithFieldContext(ctx, fc)
16984 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
16985 ctx = rctx
16986 return obj.EphemeralContainerStatuses, nil
16987 })
16988 if err != nil {
16989 ec.Error(ctx, err)
16990 return graphql.Null
16991 }
16992 if resTmp == nil {
16993 return graphql.Null
16994 }
16995 res := resTmp.([]v1.ContainerStatus)
16996 fc.Result = res
16997 return ec.marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx, field.Selections, res)
16998 }
16999
17000 func (ec *executionContext) _Process_pod(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
17001 defer func() {
17002 if r := recover(); r != nil {
17003 ec.Error(ctx, ec.Recover(ctx, r))
17004 ret = graphql.Null
17005 }
17006 }()
17007 fc := &graphql.FieldContext{
17008 Object: "Process",
17009 Field: field,
17010 Args: nil,
17011 IsMethod: false,
17012 IsResolver: false,
17013 }
17014
17015 ctx = graphql.WithFieldContext(ctx, fc)
17016 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17017 ctx = rctx
17018 return obj.Pod, nil
17019 })
17020 if err != nil {
17021 ec.Error(ctx, err)
17022 return graphql.Null
17023 }
17024 if resTmp == nil {
17025 if !graphql.HasFieldError(ctx, fc) {
17026 ec.Errorf(ctx, "must not be null")
17027 }
17028 return graphql.Null
17029 }
17030 res := resTmp.(*v1.Pod)
17031 fc.Result = res
17032 return ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, field.Selections, res)
17033 }
17034
17035 func (ec *executionContext) _Process_pid(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
17036 defer func() {
17037 if r := recover(); r != nil {
17038 ec.Error(ctx, ec.Recover(ctx, r))
17039 ret = graphql.Null
17040 }
17041 }()
17042 fc := &graphql.FieldContext{
17043 Object: "Process",
17044 Field: field,
17045 Args: nil,
17046 IsMethod: false,
17047 IsResolver: false,
17048 }
17049
17050 ctx = graphql.WithFieldContext(ctx, fc)
17051 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17052 ctx = rctx
17053 return obj.Pid, nil
17054 })
17055 if err != nil {
17056 ec.Error(ctx, err)
17057 return graphql.Null
17058 }
17059 if resTmp == nil {
17060 if !graphql.HasFieldError(ctx, fc) {
17061 ec.Errorf(ctx, "must not be null")
17062 }
17063 return graphql.Null
17064 }
17065 res := resTmp.(string)
17066 fc.Result = res
17067 return ec.marshalNString2string(ctx, field.Selections, res)
17068 }
17069
17070 func (ec *executionContext) _Process_command(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
17071 defer func() {
17072 if r := recover(); r != nil {
17073 ec.Error(ctx, ec.Recover(ctx, r))
17074 ret = graphql.Null
17075 }
17076 }()
17077 fc := &graphql.FieldContext{
17078 Object: "Process",
17079 Field: field,
17080 Args: nil,
17081 IsMethod: false,
17082 IsResolver: false,
17083 }
17084
17085 ctx = graphql.WithFieldContext(ctx, fc)
17086 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17087 ctx = rctx
17088 return obj.Command, nil
17089 })
17090 if err != nil {
17091 ec.Error(ctx, err)
17092 return graphql.Null
17093 }
17094 if resTmp == nil {
17095 if !graphql.HasFieldError(ctx, fc) {
17096 ec.Errorf(ctx, "must not be null")
17097 }
17098 return graphql.Null
17099 }
17100 res := resTmp.(string)
17101 fc.Result = res
17102 return ec.marshalNString2string(ctx, field.Selections, res)
17103 }
17104
17105 func (ec *executionContext) _Process_fds(ctx context.Context, field graphql.CollectedField, obj *model.Process) (ret graphql.Marshaler) {
17106 defer func() {
17107 if r := recover(); r != nil {
17108 ec.Error(ctx, ec.Recover(ctx, r))
17109 ret = graphql.Null
17110 }
17111 }()
17112 fc := &graphql.FieldContext{
17113 Object: "Process",
17114 Field: field,
17115 Args: nil,
17116 IsMethod: true,
17117 IsResolver: true,
17118 }
17119
17120 ctx = graphql.WithFieldContext(ctx, fc)
17121 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17122 ctx = rctx
17123 return ec.resolvers.Process().Fds(rctx, obj)
17124 })
17125 if err != nil {
17126 ec.Error(ctx, err)
17127 return graphql.Null
17128 }
17129 if resTmp == nil {
17130 return graphql.Null
17131 }
17132 res := resTmp.([]*model.Fd)
17133 fc.Result = res
17134 return ec.marshalOFd2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐFdᚄ(ctx, field.Selections, res)
17135 }
17136
17137 func (ec *executionContext) _Query_namespace(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
17138 defer func() {
17139 if r := recover(); r != nil {
17140 ec.Error(ctx, ec.Recover(ctx, r))
17141 ret = graphql.Null
17142 }
17143 }()
17144 fc := &graphql.FieldContext{
17145 Object: "Query",
17146 Field: field,
17147 Args: nil,
17148 IsMethod: true,
17149 IsResolver: true,
17150 }
17151
17152 ctx = graphql.WithFieldContext(ctx, fc)
17153 rawArgs := field.ArgumentMap(ec.Variables)
17154 args, err := ec.field_Query_namespace_args(ctx, rawArgs)
17155 if err != nil {
17156 ec.Error(ctx, err)
17157 return graphql.Null
17158 }
17159 fc.Args = args
17160 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17161 ctx = rctx
17162 return ec.resolvers.Query().Namespace(rctx, args["ns"].(*string))
17163 })
17164 if err != nil {
17165 ec.Error(ctx, err)
17166 return graphql.Null
17167 }
17168 if resTmp == nil {
17169 return graphql.Null
17170 }
17171 res := resTmp.([]*model.Namespace)
17172 fc.Result = res
17173 return ec.marshalONamespace2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐNamespaceᚄ(ctx, field.Selections, res)
17174 }
17175
17176 func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
17177 defer func() {
17178 if r := recover(); r != nil {
17179 ec.Error(ctx, ec.Recover(ctx, r))
17180 ret = graphql.Null
17181 }
17182 }()
17183 fc := &graphql.FieldContext{
17184 Object: "Query",
17185 Field: field,
17186 Args: nil,
17187 IsMethod: true,
17188 IsResolver: false,
17189 }
17190
17191 ctx = graphql.WithFieldContext(ctx, fc)
17192 rawArgs := field.ArgumentMap(ec.Variables)
17193 args, err := ec.field_Query___type_args(ctx, rawArgs)
17194 if err != nil {
17195 ec.Error(ctx, err)
17196 return graphql.Null
17197 }
17198 fc.Args = args
17199 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17200 ctx = rctx
17201 return ec.introspectType(args["name"].(string))
17202 })
17203 if err != nil {
17204 ec.Error(ctx, err)
17205 return graphql.Null
17206 }
17207 if resTmp == nil {
17208 return graphql.Null
17209 }
17210 res := resTmp.(*introspection.Type)
17211 fc.Result = res
17212 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
17213 }
17214
17215 func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) {
17216 defer func() {
17217 if r := recover(); r != nil {
17218 ec.Error(ctx, ec.Recover(ctx, r))
17219 ret = graphql.Null
17220 }
17221 }()
17222 fc := &graphql.FieldContext{
17223 Object: "Query",
17224 Field: field,
17225 Args: nil,
17226 IsMethod: true,
17227 IsResolver: false,
17228 }
17229
17230 ctx = graphql.WithFieldContext(ctx, fc)
17231 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17232 ctx = rctx
17233 return ec.introspectSchema()
17234 })
17235 if err != nil {
17236 ec.Error(ctx, err)
17237 return graphql.Null
17238 }
17239 if resTmp == nil {
17240 return graphql.Null
17241 }
17242 res := resTmp.(*introspection.Schema)
17243 fc.Result = res
17244 return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res)
17245 }
17246
17247 func (ec *executionContext) _RawIPSet_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
17248 defer func() {
17249 if r := recover(); r != nil {
17250 ec.Error(ctx, ec.Recover(ctx, r))
17251 ret = graphql.Null
17252 }
17253 }()
17254 fc := &graphql.FieldContext{
17255 Object: "RawIPSet",
17256 Field: field,
17257 Args: nil,
17258 IsMethod: false,
17259 IsResolver: false,
17260 }
17261
17262 ctx = graphql.WithFieldContext(ctx, fc)
17263 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17264 ctx = rctx
17265 return obj.Name, nil
17266 })
17267 if err != nil {
17268 ec.Error(ctx, err)
17269 return graphql.Null
17270 }
17271 if resTmp == nil {
17272 if !graphql.HasFieldError(ctx, fc) {
17273 ec.Errorf(ctx, "must not be null")
17274 }
17275 return graphql.Null
17276 }
17277 res := resTmp.(string)
17278 fc.Result = res
17279 return ec.marshalNString2string(ctx, field.Selections, res)
17280 }
17281
17282 func (ec *executionContext) _RawIPSet_cidrs(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
17283 defer func() {
17284 if r := recover(); r != nil {
17285 ec.Error(ctx, ec.Recover(ctx, r))
17286 ret = graphql.Null
17287 }
17288 }()
17289 fc := &graphql.FieldContext{
17290 Object: "RawIPSet",
17291 Field: field,
17292 Args: nil,
17293 IsMethod: false,
17294 IsResolver: false,
17295 }
17296
17297 ctx = graphql.WithFieldContext(ctx, fc)
17298 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17299 ctx = rctx
17300 return obj.Cidrs, nil
17301 })
17302 if err != nil {
17303 ec.Error(ctx, err)
17304 return graphql.Null
17305 }
17306 if resTmp == nil {
17307 if !graphql.HasFieldError(ctx, fc) {
17308 ec.Errorf(ctx, "must not be null")
17309 }
17310 return graphql.Null
17311 }
17312 res := resTmp.([]string)
17313 fc.Result = res
17314 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
17315 }
17316
17317 func (ec *executionContext) _RawIPSet_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIPSet) (ret graphql.Marshaler) {
17318 defer func() {
17319 if r := recover(); r != nil {
17320 ec.Error(ctx, ec.Recover(ctx, r))
17321 ret = graphql.Null
17322 }
17323 }()
17324 fc := &graphql.FieldContext{
17325 Object: "RawIPSet",
17326 Field: field,
17327 Args: nil,
17328 IsMethod: false,
17329 IsResolver: false,
17330 }
17331
17332 ctx = graphql.WithFieldContext(ctx, fc)
17333 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17334 ctx = rctx
17335 return obj.Source, nil
17336 })
17337 if err != nil {
17338 ec.Error(ctx, err)
17339 return graphql.Null
17340 }
17341 if resTmp == nil {
17342 if !graphql.HasFieldError(ctx, fc) {
17343 ec.Errorf(ctx, "must not be null")
17344 }
17345 return graphql.Null
17346 }
17347 res := resTmp.(string)
17348 fc.Result = res
17349 return ec.marshalNString2string(ctx, field.Selections, res)
17350 }
17351
17352 func (ec *executionContext) _RawIptables_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (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: "RawIptables",
17361 Field: field,
17362 Args: nil,
17363 IsMethod: false,
17364 IsResolver: false,
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 obj.Name, nil
17371 })
17372 if err != nil {
17373 ec.Error(ctx, err)
17374 return graphql.Null
17375 }
17376 if resTmp == nil {
17377 if !graphql.HasFieldError(ctx, fc) {
17378 ec.Errorf(ctx, "must not be null")
17379 }
17380 return graphql.Null
17381 }
17382 res := resTmp.(string)
17383 fc.Result = res
17384 return ec.marshalNString2string(ctx, field.Selections, res)
17385 }
17386
17387 func (ec *executionContext) _RawIptables_ipSets(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
17388 defer func() {
17389 if r := recover(); r != nil {
17390 ec.Error(ctx, ec.Recover(ctx, r))
17391 ret = graphql.Null
17392 }
17393 }()
17394 fc := &graphql.FieldContext{
17395 Object: "RawIptables",
17396 Field: field,
17397 Args: nil,
17398 IsMethod: false,
17399 IsResolver: false,
17400 }
17401
17402 ctx = graphql.WithFieldContext(ctx, fc)
17403 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17404 ctx = rctx
17405 return obj.IPSets, nil
17406 })
17407 if err != nil {
17408 ec.Error(ctx, err)
17409 return graphql.Null
17410 }
17411 if resTmp == nil {
17412 if !graphql.HasFieldError(ctx, fc) {
17413 ec.Errorf(ctx, "must not be null")
17414 }
17415 return graphql.Null
17416 }
17417 res := resTmp.([]string)
17418 fc.Result = res
17419 return ec.marshalNString2ᚕstringᚄ(ctx, field.Selections, res)
17420 }
17421
17422 func (ec *executionContext) _RawIptables_direction(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
17423 defer func() {
17424 if r := recover(); r != nil {
17425 ec.Error(ctx, ec.Recover(ctx, r))
17426 ret = graphql.Null
17427 }
17428 }()
17429 fc := &graphql.FieldContext{
17430 Object: "RawIptables",
17431 Field: field,
17432 Args: nil,
17433 IsMethod: true,
17434 IsResolver: true,
17435 }
17436
17437 ctx = graphql.WithFieldContext(ctx, fc)
17438 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17439 ctx = rctx
17440 return ec.resolvers.RawIptables().Direction(rctx, obj)
17441 })
17442 if err != nil {
17443 ec.Error(ctx, err)
17444 return graphql.Null
17445 }
17446 if resTmp == nil {
17447 if !graphql.HasFieldError(ctx, fc) {
17448 ec.Errorf(ctx, "must not be null")
17449 }
17450 return graphql.Null
17451 }
17452 res := resTmp.(string)
17453 fc.Result = res
17454 return ec.marshalNString2string(ctx, field.Selections, res)
17455 }
17456
17457 func (ec *executionContext) _RawIptables_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawIptables) (ret graphql.Marshaler) {
17458 defer func() {
17459 if r := recover(); r != nil {
17460 ec.Error(ctx, ec.Recover(ctx, r))
17461 ret = graphql.Null
17462 }
17463 }()
17464 fc := &graphql.FieldContext{
17465 Object: "RawIptables",
17466 Field: field,
17467 Args: nil,
17468 IsMethod: false,
17469 IsResolver: false,
17470 }
17471
17472 ctx = graphql.WithFieldContext(ctx, fc)
17473 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17474 ctx = rctx
17475 return obj.Source, nil
17476 })
17477 if err != nil {
17478 ec.Error(ctx, err)
17479 return graphql.Null
17480 }
17481 if resTmp == nil {
17482 if !graphql.HasFieldError(ctx, fc) {
17483 ec.Errorf(ctx, "must not be null")
17484 }
17485 return graphql.Null
17486 }
17487 res := resTmp.(string)
17488 fc.Result = res
17489 return ec.marshalNString2string(ctx, field.Selections, res)
17490 }
17491
17492 func (ec *executionContext) _RawTrafficControl_type(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17493 defer func() {
17494 if r := recover(); r != nil {
17495 ec.Error(ctx, ec.Recover(ctx, r))
17496 ret = graphql.Null
17497 }
17498 }()
17499 fc := &graphql.FieldContext{
17500 Object: "RawTrafficControl",
17501 Field: field,
17502 Args: nil,
17503 IsMethod: true,
17504 IsResolver: true,
17505 }
17506
17507 ctx = graphql.WithFieldContext(ctx, fc)
17508 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17509 ctx = rctx
17510 return ec.resolvers.RawTrafficControl().Type(rctx, obj)
17511 })
17512 if err != nil {
17513 ec.Error(ctx, err)
17514 return graphql.Null
17515 }
17516 if resTmp == nil {
17517 if !graphql.HasFieldError(ctx, fc) {
17518 ec.Errorf(ctx, "must not be null")
17519 }
17520 return graphql.Null
17521 }
17522 res := resTmp.(string)
17523 fc.Result = res
17524 return ec.marshalNString2string(ctx, field.Selections, res)
17525 }
17526
17527 func (ec *executionContext) _RawTrafficControl_delay(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17528 defer func() {
17529 if r := recover(); r != nil {
17530 ec.Error(ctx, ec.Recover(ctx, r))
17531 ret = graphql.Null
17532 }
17533 }()
17534 fc := &graphql.FieldContext{
17535 Object: "RawTrafficControl",
17536 Field: field,
17537 Args: nil,
17538 IsMethod: false,
17539 IsResolver: false,
17540 }
17541
17542 ctx = graphql.WithFieldContext(ctx, fc)
17543 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17544 ctx = rctx
17545 return obj.Delay, nil
17546 })
17547 if err != nil {
17548 ec.Error(ctx, err)
17549 return graphql.Null
17550 }
17551 if resTmp == nil {
17552 return graphql.Null
17553 }
17554 res := resTmp.(*v1alpha1.DelaySpec)
17555 fc.Result = res
17556 return ec.marshalODelaySpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDelaySpec(ctx, field.Selections, res)
17557 }
17558
17559 func (ec *executionContext) _RawTrafficControl_loss(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17560 defer func() {
17561 if r := recover(); r != nil {
17562 ec.Error(ctx, ec.Recover(ctx, r))
17563 ret = graphql.Null
17564 }
17565 }()
17566 fc := &graphql.FieldContext{
17567 Object: "RawTrafficControl",
17568 Field: field,
17569 Args: nil,
17570 IsMethod: false,
17571 IsResolver: false,
17572 }
17573
17574 ctx = graphql.WithFieldContext(ctx, fc)
17575 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17576 ctx = rctx
17577 return obj.Loss, nil
17578 })
17579 if err != nil {
17580 ec.Error(ctx, err)
17581 return graphql.Null
17582 }
17583 if resTmp == nil {
17584 return graphql.Null
17585 }
17586 res := resTmp.(*v1alpha1.LossSpec)
17587 fc.Result = res
17588 return ec.marshalOLossSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐLossSpec(ctx, field.Selections, res)
17589 }
17590
17591 func (ec *executionContext) _RawTrafficControl_duplicate(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17592 defer func() {
17593 if r := recover(); r != nil {
17594 ec.Error(ctx, ec.Recover(ctx, r))
17595 ret = graphql.Null
17596 }
17597 }()
17598 fc := &graphql.FieldContext{
17599 Object: "RawTrafficControl",
17600 Field: field,
17601 Args: nil,
17602 IsMethod: false,
17603 IsResolver: false,
17604 }
17605
17606 ctx = graphql.WithFieldContext(ctx, fc)
17607 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17608 ctx = rctx
17609 return obj.Duplicate, nil
17610 })
17611 if err != nil {
17612 ec.Error(ctx, err)
17613 return graphql.Null
17614 }
17615 if resTmp == nil {
17616 return graphql.Null
17617 }
17618 res := resTmp.(*v1alpha1.DuplicateSpec)
17619 fc.Result = res
17620 return ec.marshalODuplicateSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDuplicateSpec(ctx, field.Selections, res)
17621 }
17622
17623 func (ec *executionContext) _RawTrafficControl_corrupt(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17624 defer func() {
17625 if r := recover(); r != nil {
17626 ec.Error(ctx, ec.Recover(ctx, r))
17627 ret = graphql.Null
17628 }
17629 }()
17630 fc := &graphql.FieldContext{
17631 Object: "RawTrafficControl",
17632 Field: field,
17633 Args: nil,
17634 IsMethod: false,
17635 IsResolver: false,
17636 }
17637
17638 ctx = graphql.WithFieldContext(ctx, fc)
17639 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17640 ctx = rctx
17641 return obj.Corrupt, nil
17642 })
17643 if err != nil {
17644 ec.Error(ctx, err)
17645 return graphql.Null
17646 }
17647 if resTmp == nil {
17648 return graphql.Null
17649 }
17650 res := resTmp.(*v1alpha1.CorruptSpec)
17651 fc.Result = res
17652 return ec.marshalOCorruptSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCorruptSpec(ctx, field.Selections, res)
17653 }
17654
17655 func (ec *executionContext) _RawTrafficControl_Bandwidth(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17656 defer func() {
17657 if r := recover(); r != nil {
17658 ec.Error(ctx, ec.Recover(ctx, r))
17659 ret = graphql.Null
17660 }
17661 }()
17662 fc := &graphql.FieldContext{
17663 Object: "RawTrafficControl",
17664 Field: field,
17665 Args: nil,
17666 IsMethod: false,
17667 IsResolver: false,
17668 }
17669
17670 ctx = graphql.WithFieldContext(ctx, fc)
17671 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17672 ctx = rctx
17673 return obj.Bandwidth, nil
17674 })
17675 if err != nil {
17676 ec.Error(ctx, err)
17677 return graphql.Null
17678 }
17679 if resTmp == nil {
17680 return graphql.Null
17681 }
17682 res := resTmp.(*v1alpha1.BandwidthSpec)
17683 fc.Result = res
17684 return ec.marshalOBandwidthSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐBandwidthSpec(ctx, field.Selections, res)
17685 }
17686
17687 func (ec *executionContext) _RawTrafficControl_ipSet(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17688 defer func() {
17689 if r := recover(); r != nil {
17690 ec.Error(ctx, ec.Recover(ctx, r))
17691 ret = graphql.Null
17692 }
17693 }()
17694 fc := &graphql.FieldContext{
17695 Object: "RawTrafficControl",
17696 Field: field,
17697 Args: nil,
17698 IsMethod: false,
17699 IsResolver: false,
17700 }
17701
17702 ctx = graphql.WithFieldContext(ctx, fc)
17703 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17704 ctx = rctx
17705 return obj.IPSet, nil
17706 })
17707 if err != nil {
17708 ec.Error(ctx, err)
17709 return graphql.Null
17710 }
17711 if resTmp == nil {
17712 return graphql.Null
17713 }
17714 res := resTmp.(string)
17715 fc.Result = res
17716 return ec.marshalOString2string(ctx, field.Selections, res)
17717 }
17718
17719 func (ec *executionContext) _RawTrafficControl_source(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.RawTrafficControl) (ret graphql.Marshaler) {
17720 defer func() {
17721 if r := recover(); r != nil {
17722 ec.Error(ctx, ec.Recover(ctx, r))
17723 ret = graphql.Null
17724 }
17725 }()
17726 fc := &graphql.FieldContext{
17727 Object: "RawTrafficControl",
17728 Field: field,
17729 Args: nil,
17730 IsMethod: false,
17731 IsResolver: false,
17732 }
17733
17734 ctx = graphql.WithFieldContext(ctx, fc)
17735 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17736 ctx = rctx
17737 return obj.Source, nil
17738 })
17739 if err != nil {
17740 ec.Error(ctx, err)
17741 return graphql.Null
17742 }
17743 if resTmp == nil {
17744 return graphql.Null
17745 }
17746 res := resTmp.(string)
17747 fc.Result = res
17748 return ec.marshalOString2string(ctx, field.Selections, res)
17749 }
17750
17751 func (ec *executionContext) _Record_id(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Record) (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: "Record",
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.Id, nil
17770 })
17771 if err != nil {
17772 ec.Error(ctx, err)
17773 return graphql.Null
17774 }
17775 if resTmp == nil {
17776 if !graphql.HasFieldError(ctx, fc) {
17777 ec.Errorf(ctx, "must not be null")
17778 }
17779 return graphql.Null
17780 }
17781 res := resTmp.(string)
17782 fc.Result = res
17783 return ec.marshalNString2string(ctx, field.Selections, res)
17784 }
17785
17786 func (ec *executionContext) _Record_selectorKey(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Record) (ret graphql.Marshaler) {
17787 defer func() {
17788 if r := recover(); r != nil {
17789 ec.Error(ctx, ec.Recover(ctx, r))
17790 ret = graphql.Null
17791 }
17792 }()
17793 fc := &graphql.FieldContext{
17794 Object: "Record",
17795 Field: field,
17796 Args: nil,
17797 IsMethod: false,
17798 IsResolver: false,
17799 }
17800
17801 ctx = graphql.WithFieldContext(ctx, fc)
17802 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17803 ctx = rctx
17804 return obj.SelectorKey, nil
17805 })
17806 if err != nil {
17807 ec.Error(ctx, err)
17808 return graphql.Null
17809 }
17810 if resTmp == nil {
17811 if !graphql.HasFieldError(ctx, fc) {
17812 ec.Errorf(ctx, "must not be null")
17813 }
17814 return graphql.Null
17815 }
17816 res := resTmp.(string)
17817 fc.Result = res
17818 return ec.marshalNString2string(ctx, field.Selections, res)
17819 }
17820
17821 func (ec *executionContext) _Record_phase(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Record) (ret graphql.Marshaler) {
17822 defer func() {
17823 if r := recover(); r != nil {
17824 ec.Error(ctx, ec.Recover(ctx, r))
17825 ret = graphql.Null
17826 }
17827 }()
17828 fc := &graphql.FieldContext{
17829 Object: "Record",
17830 Field: field,
17831 Args: nil,
17832 IsMethod: true,
17833 IsResolver: true,
17834 }
17835
17836 ctx = graphql.WithFieldContext(ctx, fc)
17837 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17838 ctx = rctx
17839 return ec.resolvers.Record().Phase(rctx, obj)
17840 })
17841 if err != nil {
17842 ec.Error(ctx, err)
17843 return graphql.Null
17844 }
17845 if resTmp == nil {
17846 if !graphql.HasFieldError(ctx, fc) {
17847 ec.Errorf(ctx, "must not be null")
17848 }
17849 return graphql.Null
17850 }
17851 res := resTmp.(string)
17852 fc.Result = res
17853 return ec.marshalNString2string(ctx, field.Selections, res)
17854 }
17855
17856 func (ec *executionContext) _ReorderSpec_reorder(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ReorderSpec) (ret graphql.Marshaler) {
17857 defer func() {
17858 if r := recover(); r != nil {
17859 ec.Error(ctx, ec.Recover(ctx, r))
17860 ret = graphql.Null
17861 }
17862 }()
17863 fc := &graphql.FieldContext{
17864 Object: "ReorderSpec",
17865 Field: field,
17866 Args: nil,
17867 IsMethod: false,
17868 IsResolver: false,
17869 }
17870
17871 ctx = graphql.WithFieldContext(ctx, fc)
17872 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17873 ctx = rctx
17874 return obj.Reorder, nil
17875 })
17876 if err != nil {
17877 ec.Error(ctx, err)
17878 return graphql.Null
17879 }
17880 if resTmp == nil {
17881 if !graphql.HasFieldError(ctx, fc) {
17882 ec.Errorf(ctx, "must not be null")
17883 }
17884 return graphql.Null
17885 }
17886 res := resTmp.(string)
17887 fc.Result = res
17888 return ec.marshalNString2string(ctx, field.Selections, res)
17889 }
17890
17891 func (ec *executionContext) _ReorderSpec_correlation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ReorderSpec) (ret graphql.Marshaler) {
17892 defer func() {
17893 if r := recover(); r != nil {
17894 ec.Error(ctx, ec.Recover(ctx, r))
17895 ret = graphql.Null
17896 }
17897 }()
17898 fc := &graphql.FieldContext{
17899 Object: "ReorderSpec",
17900 Field: field,
17901 Args: nil,
17902 IsMethod: false,
17903 IsResolver: false,
17904 }
17905
17906 ctx = graphql.WithFieldContext(ctx, fc)
17907 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17908 ctx = rctx
17909 return obj.Correlation, nil
17910 })
17911 if err != nil {
17912 ec.Error(ctx, err)
17913 return graphql.Null
17914 }
17915 if resTmp == nil {
17916 return graphql.Null
17917 }
17918 res := resTmp.(string)
17919 fc.Result = res
17920 return ec.marshalOString2string(ctx, field.Selections, res)
17921 }
17922
17923 func (ec *executionContext) _ReorderSpec_gap(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.ReorderSpec) (ret graphql.Marshaler) {
17924 defer func() {
17925 if r := recover(); r != nil {
17926 ec.Error(ctx, ec.Recover(ctx, r))
17927 ret = graphql.Null
17928 }
17929 }()
17930 fc := &graphql.FieldContext{
17931 Object: "ReorderSpec",
17932 Field: field,
17933 Args: nil,
17934 IsMethod: false,
17935 IsResolver: false,
17936 }
17937
17938 ctx = graphql.WithFieldContext(ctx, fc)
17939 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17940 ctx = rctx
17941 return obj.Gap, nil
17942 })
17943 if err != nil {
17944 ec.Error(ctx, err)
17945 return graphql.Null
17946 }
17947 if resTmp == nil {
17948 return graphql.Null
17949 }
17950 res := resTmp.(int)
17951 fc.Result = res
17952 return ec.marshalOInt2int(ctx, field.Selections, res)
17953 }
17954
17955 func (ec *executionContext) _StressChaos_kind(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
17956 defer func() {
17957 if r := recover(); r != nil {
17958 ec.Error(ctx, ec.Recover(ctx, r))
17959 ret = graphql.Null
17960 }
17961 }()
17962 fc := &graphql.FieldContext{
17963 Object: "StressChaos",
17964 Field: field,
17965 Args: nil,
17966 IsMethod: false,
17967 IsResolver: false,
17968 }
17969
17970 ctx = graphql.WithFieldContext(ctx, fc)
17971 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
17972 ctx = rctx
17973 return obj.Kind, nil
17974 })
17975 if err != nil {
17976 ec.Error(ctx, err)
17977 return graphql.Null
17978 }
17979 if resTmp == nil {
17980 if !graphql.HasFieldError(ctx, fc) {
17981 ec.Errorf(ctx, "must not be null")
17982 }
17983 return graphql.Null
17984 }
17985 res := resTmp.(string)
17986 fc.Result = res
17987 return ec.marshalNString2string(ctx, field.Selections, res)
17988 }
17989
17990 func (ec *executionContext) _StressChaos_apiVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
17991 defer func() {
17992 if r := recover(); r != nil {
17993 ec.Error(ctx, ec.Recover(ctx, r))
17994 ret = graphql.Null
17995 }
17996 }()
17997 fc := &graphql.FieldContext{
17998 Object: "StressChaos",
17999 Field: field,
18000 Args: nil,
18001 IsMethod: false,
18002 IsResolver: false,
18003 }
18004
18005 ctx = graphql.WithFieldContext(ctx, fc)
18006 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18007 ctx = rctx
18008 return obj.APIVersion, nil
18009 })
18010 if err != nil {
18011 ec.Error(ctx, err)
18012 return graphql.Null
18013 }
18014 if resTmp == nil {
18015 if !graphql.HasFieldError(ctx, fc) {
18016 ec.Errorf(ctx, "must not be null")
18017 }
18018 return graphql.Null
18019 }
18020 res := resTmp.(string)
18021 fc.Result = res
18022 return ec.marshalNString2string(ctx, field.Selections, res)
18023 }
18024
18025 func (ec *executionContext) _StressChaos_name(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18026 defer func() {
18027 if r := recover(); r != nil {
18028 ec.Error(ctx, ec.Recover(ctx, r))
18029 ret = graphql.Null
18030 }
18031 }()
18032 fc := &graphql.FieldContext{
18033 Object: "StressChaos",
18034 Field: field,
18035 Args: nil,
18036 IsMethod: false,
18037 IsResolver: false,
18038 }
18039
18040 ctx = graphql.WithFieldContext(ctx, fc)
18041 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18042 ctx = rctx
18043 return obj.Name, nil
18044 })
18045 if err != nil {
18046 ec.Error(ctx, err)
18047 return graphql.Null
18048 }
18049 if resTmp == nil {
18050 if !graphql.HasFieldError(ctx, fc) {
18051 ec.Errorf(ctx, "must not be null")
18052 }
18053 return graphql.Null
18054 }
18055 res := resTmp.(string)
18056 fc.Result = res
18057 return ec.marshalNString2string(ctx, field.Selections, res)
18058 }
18059
18060 func (ec *executionContext) _StressChaos_generateName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18061 defer func() {
18062 if r := recover(); r != nil {
18063 ec.Error(ctx, ec.Recover(ctx, r))
18064 ret = graphql.Null
18065 }
18066 }()
18067 fc := &graphql.FieldContext{
18068 Object: "StressChaos",
18069 Field: field,
18070 Args: nil,
18071 IsMethod: false,
18072 IsResolver: false,
18073 }
18074
18075 ctx = graphql.WithFieldContext(ctx, fc)
18076 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18077 ctx = rctx
18078 return obj.GenerateName, nil
18079 })
18080 if err != nil {
18081 ec.Error(ctx, err)
18082 return graphql.Null
18083 }
18084 if resTmp == nil {
18085 if !graphql.HasFieldError(ctx, fc) {
18086 ec.Errorf(ctx, "must not be null")
18087 }
18088 return graphql.Null
18089 }
18090 res := resTmp.(string)
18091 fc.Result = res
18092 return ec.marshalNString2string(ctx, field.Selections, res)
18093 }
18094
18095 func (ec *executionContext) _StressChaos_namespace(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18096 defer func() {
18097 if r := recover(); r != nil {
18098 ec.Error(ctx, ec.Recover(ctx, r))
18099 ret = graphql.Null
18100 }
18101 }()
18102 fc := &graphql.FieldContext{
18103 Object: "StressChaos",
18104 Field: field,
18105 Args: nil,
18106 IsMethod: false,
18107 IsResolver: false,
18108 }
18109
18110 ctx = graphql.WithFieldContext(ctx, fc)
18111 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18112 ctx = rctx
18113 return obj.Namespace, nil
18114 })
18115 if err != nil {
18116 ec.Error(ctx, err)
18117 return graphql.Null
18118 }
18119 if resTmp == nil {
18120 if !graphql.HasFieldError(ctx, fc) {
18121 ec.Errorf(ctx, "must not be null")
18122 }
18123 return graphql.Null
18124 }
18125 res := resTmp.(string)
18126 fc.Result = res
18127 return ec.marshalNString2string(ctx, field.Selections, res)
18128 }
18129
18130 func (ec *executionContext) _StressChaos_selfLink(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18131 defer func() {
18132 if r := recover(); r != nil {
18133 ec.Error(ctx, ec.Recover(ctx, r))
18134 ret = graphql.Null
18135 }
18136 }()
18137 fc := &graphql.FieldContext{
18138 Object: "StressChaos",
18139 Field: field,
18140 Args: nil,
18141 IsMethod: false,
18142 IsResolver: false,
18143 }
18144
18145 ctx = graphql.WithFieldContext(ctx, fc)
18146 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18147 ctx = rctx
18148 return obj.SelfLink, nil
18149 })
18150 if err != nil {
18151 ec.Error(ctx, err)
18152 return graphql.Null
18153 }
18154 if resTmp == nil {
18155 if !graphql.HasFieldError(ctx, fc) {
18156 ec.Errorf(ctx, "must not be null")
18157 }
18158 return graphql.Null
18159 }
18160 res := resTmp.(string)
18161 fc.Result = res
18162 return ec.marshalNString2string(ctx, field.Selections, res)
18163 }
18164
18165 func (ec *executionContext) _StressChaos_uid(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18166 defer func() {
18167 if r := recover(); r != nil {
18168 ec.Error(ctx, ec.Recover(ctx, r))
18169 ret = graphql.Null
18170 }
18171 }()
18172 fc := &graphql.FieldContext{
18173 Object: "StressChaos",
18174 Field: field,
18175 Args: nil,
18176 IsMethod: true,
18177 IsResolver: true,
18178 }
18179
18180 ctx = graphql.WithFieldContext(ctx, fc)
18181 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18182 ctx = rctx
18183 return ec.resolvers.StressChaos().UID(rctx, obj)
18184 })
18185 if err != nil {
18186 ec.Error(ctx, err)
18187 return graphql.Null
18188 }
18189 if resTmp == nil {
18190 if !graphql.HasFieldError(ctx, fc) {
18191 ec.Errorf(ctx, "must not be null")
18192 }
18193 return graphql.Null
18194 }
18195 res := resTmp.(string)
18196 fc.Result = res
18197 return ec.marshalNString2string(ctx, field.Selections, res)
18198 }
18199
18200 func (ec *executionContext) _StressChaos_resourceVersion(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18201 defer func() {
18202 if r := recover(); r != nil {
18203 ec.Error(ctx, ec.Recover(ctx, r))
18204 ret = graphql.Null
18205 }
18206 }()
18207 fc := &graphql.FieldContext{
18208 Object: "StressChaos",
18209 Field: field,
18210 Args: nil,
18211 IsMethod: false,
18212 IsResolver: false,
18213 }
18214
18215 ctx = graphql.WithFieldContext(ctx, fc)
18216 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18217 ctx = rctx
18218 return obj.ResourceVersion, nil
18219 })
18220 if err != nil {
18221 ec.Error(ctx, err)
18222 return graphql.Null
18223 }
18224 if resTmp == nil {
18225 if !graphql.HasFieldError(ctx, fc) {
18226 ec.Errorf(ctx, "must not be null")
18227 }
18228 return graphql.Null
18229 }
18230 res := resTmp.(string)
18231 fc.Result = res
18232 return ec.marshalNString2string(ctx, field.Selections, res)
18233 }
18234
18235 func (ec *executionContext) _StressChaos_generation(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18236 defer func() {
18237 if r := recover(); r != nil {
18238 ec.Error(ctx, ec.Recover(ctx, r))
18239 ret = graphql.Null
18240 }
18241 }()
18242 fc := &graphql.FieldContext{
18243 Object: "StressChaos",
18244 Field: field,
18245 Args: nil,
18246 IsMethod: false,
18247 IsResolver: false,
18248 }
18249
18250 ctx = graphql.WithFieldContext(ctx, fc)
18251 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18252 ctx = rctx
18253 return obj.Generation, nil
18254 })
18255 if err != nil {
18256 ec.Error(ctx, err)
18257 return graphql.Null
18258 }
18259 if resTmp == nil {
18260 if !graphql.HasFieldError(ctx, fc) {
18261 ec.Errorf(ctx, "must not be null")
18262 }
18263 return graphql.Null
18264 }
18265 res := resTmp.(int64)
18266 fc.Result = res
18267 return ec.marshalNInt2int64(ctx, field.Selections, res)
18268 }
18269
18270 func (ec *executionContext) _StressChaos_creationTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18271 defer func() {
18272 if r := recover(); r != nil {
18273 ec.Error(ctx, ec.Recover(ctx, r))
18274 ret = graphql.Null
18275 }
18276 }()
18277 fc := &graphql.FieldContext{
18278 Object: "StressChaos",
18279 Field: field,
18280 Args: nil,
18281 IsMethod: true,
18282 IsResolver: true,
18283 }
18284
18285 ctx = graphql.WithFieldContext(ctx, fc)
18286 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18287 ctx = rctx
18288 return ec.resolvers.StressChaos().CreationTimestamp(rctx, obj)
18289 })
18290 if err != nil {
18291 ec.Error(ctx, err)
18292 return graphql.Null
18293 }
18294 if resTmp == nil {
18295 if !graphql.HasFieldError(ctx, fc) {
18296 ec.Errorf(ctx, "must not be null")
18297 }
18298 return graphql.Null
18299 }
18300 res := resTmp.(*time.Time)
18301 fc.Result = res
18302 return ec.marshalNTime2ᚖtimeᚐTime(ctx, field.Selections, res)
18303 }
18304
18305 func (ec *executionContext) _StressChaos_deletionTimestamp(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18306 defer func() {
18307 if r := recover(); r != nil {
18308 ec.Error(ctx, ec.Recover(ctx, r))
18309 ret = graphql.Null
18310 }
18311 }()
18312 fc := &graphql.FieldContext{
18313 Object: "StressChaos",
18314 Field: field,
18315 Args: nil,
18316 IsMethod: true,
18317 IsResolver: true,
18318 }
18319
18320 ctx = graphql.WithFieldContext(ctx, fc)
18321 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18322 ctx = rctx
18323 return ec.resolvers.StressChaos().DeletionTimestamp(rctx, obj)
18324 })
18325 if err != nil {
18326 ec.Error(ctx, err)
18327 return graphql.Null
18328 }
18329 if resTmp == nil {
18330 return graphql.Null
18331 }
18332 res := resTmp.(*time.Time)
18333 fc.Result = res
18334 return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res)
18335 }
18336
18337 func (ec *executionContext) _StressChaos_deletionGracePeriodSeconds(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18338 defer func() {
18339 if r := recover(); r != nil {
18340 ec.Error(ctx, ec.Recover(ctx, r))
18341 ret = graphql.Null
18342 }
18343 }()
18344 fc := &graphql.FieldContext{
18345 Object: "StressChaos",
18346 Field: field,
18347 Args: nil,
18348 IsMethod: false,
18349 IsResolver: false,
18350 }
18351
18352 ctx = graphql.WithFieldContext(ctx, fc)
18353 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18354 ctx = rctx
18355 return obj.DeletionGracePeriodSeconds, nil
18356 })
18357 if err != nil {
18358 ec.Error(ctx, err)
18359 return graphql.Null
18360 }
18361 if resTmp == nil {
18362 return graphql.Null
18363 }
18364 res := resTmp.(*int64)
18365 fc.Result = res
18366 return ec.marshalOInt2ᚖint64(ctx, field.Selections, res)
18367 }
18368
18369 func (ec *executionContext) _StressChaos_labels(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18370 defer func() {
18371 if r := recover(); r != nil {
18372 ec.Error(ctx, ec.Recover(ctx, r))
18373 ret = graphql.Null
18374 }
18375 }()
18376 fc := &graphql.FieldContext{
18377 Object: "StressChaos",
18378 Field: field,
18379 Args: nil,
18380 IsMethod: true,
18381 IsResolver: true,
18382 }
18383
18384 ctx = graphql.WithFieldContext(ctx, fc)
18385 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18386 ctx = rctx
18387 return ec.resolvers.StressChaos().Labels(rctx, obj)
18388 })
18389 if err != nil {
18390 ec.Error(ctx, err)
18391 return graphql.Null
18392 }
18393 if resTmp == nil {
18394 return graphql.Null
18395 }
18396 res := resTmp.(map[string]interface{})
18397 fc.Result = res
18398 return ec.marshalOMap2map(ctx, field.Selections, res)
18399 }
18400
18401 func (ec *executionContext) _StressChaos_annotations(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18402 defer func() {
18403 if r := recover(); r != nil {
18404 ec.Error(ctx, ec.Recover(ctx, r))
18405 ret = graphql.Null
18406 }
18407 }()
18408 fc := &graphql.FieldContext{
18409 Object: "StressChaos",
18410 Field: field,
18411 Args: nil,
18412 IsMethod: true,
18413 IsResolver: true,
18414 }
18415
18416 ctx = graphql.WithFieldContext(ctx, fc)
18417 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18418 ctx = rctx
18419 return ec.resolvers.StressChaos().Annotations(rctx, obj)
18420 })
18421 if err != nil {
18422 ec.Error(ctx, err)
18423 return graphql.Null
18424 }
18425 if resTmp == nil {
18426 return graphql.Null
18427 }
18428 res := resTmp.(map[string]interface{})
18429 fc.Result = res
18430 return ec.marshalOMap2map(ctx, field.Selections, res)
18431 }
18432
18433 func (ec *executionContext) _StressChaos_ownerReferences(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18434 defer func() {
18435 if r := recover(); r != nil {
18436 ec.Error(ctx, ec.Recover(ctx, r))
18437 ret = graphql.Null
18438 }
18439 }()
18440 fc := &graphql.FieldContext{
18441 Object: "StressChaos",
18442 Field: field,
18443 Args: nil,
18444 IsMethod: false,
18445 IsResolver: false,
18446 }
18447
18448 ctx = graphql.WithFieldContext(ctx, fc)
18449 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18450 ctx = rctx
18451 return obj.OwnerReferences, nil
18452 })
18453 if err != nil {
18454 ec.Error(ctx, err)
18455 return graphql.Null
18456 }
18457 if resTmp == nil {
18458 return graphql.Null
18459 }
18460 res := resTmp.([]v11.OwnerReference)
18461 fc.Result = res
18462 return ec.marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx, field.Selections, res)
18463 }
18464
18465 func (ec *executionContext) _StressChaos_finalizers(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18466 defer func() {
18467 if r := recover(); r != nil {
18468 ec.Error(ctx, ec.Recover(ctx, r))
18469 ret = graphql.Null
18470 }
18471 }()
18472 fc := &graphql.FieldContext{
18473 Object: "StressChaos",
18474 Field: field,
18475 Args: nil,
18476 IsMethod: false,
18477 IsResolver: false,
18478 }
18479
18480 ctx = graphql.WithFieldContext(ctx, fc)
18481 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18482 ctx = rctx
18483 return obj.Finalizers, nil
18484 })
18485 if err != nil {
18486 ec.Error(ctx, err)
18487 return graphql.Null
18488 }
18489 if resTmp == nil {
18490 return graphql.Null
18491 }
18492 res := resTmp.([]string)
18493 fc.Result = res
18494 return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res)
18495 }
18496
18497 func (ec *executionContext) _StressChaos_clusterName(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.StressChaos) (ret graphql.Marshaler) {
18498 defer func() {
18499 if r := recover(); r != nil {
18500 ec.Error(ctx, ec.Recover(ctx, r))
18501 ret = graphql.Null
18502 }
18503 }()
18504 fc := &graphql.FieldContext{
18505 Object: "StressChaos",
18506 Field: field,
18507 Args: nil,
18508 IsMethod: false,
18509 IsResolver: false,
18510 }
18511
18512 ctx = graphql.WithFieldContext(ctx, fc)
18513 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18514 ctx = rctx
18515 return obj.ClusterName, nil
18516 })
18517 if err != nil {
18518 ec.Error(ctx, err)
18519 return graphql.Null
18520 }
18521 if resTmp == nil {
18522 if !graphql.HasFieldError(ctx, fc) {
18523 ec.Errorf(ctx, "must not be null")
18524 }
18525 return graphql.Null
18526 }
18527 res := resTmp.(string)
18528 fc.Result = res
18529 return ec.marshalNString2string(ctx, field.Selections, res)
18530 }
18531
18532 func (ec *executionContext) _Timespec_sec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Timespec) (ret graphql.Marshaler) {
18533 defer func() {
18534 if r := recover(); r != nil {
18535 ec.Error(ctx, ec.Recover(ctx, r))
18536 ret = graphql.Null
18537 }
18538 }()
18539 fc := &graphql.FieldContext{
18540 Object: "Timespec",
18541 Field: field,
18542 Args: nil,
18543 IsMethod: false,
18544 IsResolver: false,
18545 }
18546
18547 ctx = graphql.WithFieldContext(ctx, fc)
18548 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18549 ctx = rctx
18550 return obj.Sec, nil
18551 })
18552 if err != nil {
18553 ec.Error(ctx, err)
18554 return graphql.Null
18555 }
18556 if resTmp == nil {
18557 if !graphql.HasFieldError(ctx, fc) {
18558 ec.Errorf(ctx, "must not be null")
18559 }
18560 return graphql.Null
18561 }
18562 res := resTmp.(int64)
18563 fc.Result = res
18564 return ec.marshalNInt2int64(ctx, field.Selections, res)
18565 }
18566
18567 func (ec *executionContext) _Timespec_nsec(ctx context.Context, field graphql.CollectedField, obj *v1alpha1.Timespec) (ret graphql.Marshaler) {
18568 defer func() {
18569 if r := recover(); r != nil {
18570 ec.Error(ctx, ec.Recover(ctx, r))
18571 ret = graphql.Null
18572 }
18573 }()
18574 fc := &graphql.FieldContext{
18575 Object: "Timespec",
18576 Field: field,
18577 Args: nil,
18578 IsMethod: false,
18579 IsResolver: false,
18580 }
18581
18582 ctx = graphql.WithFieldContext(ctx, fc)
18583 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18584 ctx = rctx
18585 return obj.Nsec, nil
18586 })
18587 if err != nil {
18588 ec.Error(ctx, err)
18589 return graphql.Null
18590 }
18591 if resTmp == nil {
18592 if !graphql.HasFieldError(ctx, fc) {
18593 ec.Errorf(ctx, "must not be null")
18594 }
18595 return graphql.Null
18596 }
18597 res := resTmp.(int64)
18598 fc.Result = res
18599 return ec.marshalNInt2int64(ctx, field.Selections, res)
18600 }
18601
18602 func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
18603 defer func() {
18604 if r := recover(); r != nil {
18605 ec.Error(ctx, ec.Recover(ctx, r))
18606 ret = graphql.Null
18607 }
18608 }()
18609 fc := &graphql.FieldContext{
18610 Object: "__Directive",
18611 Field: field,
18612 Args: nil,
18613 IsMethod: false,
18614 IsResolver: false,
18615 }
18616
18617 ctx = graphql.WithFieldContext(ctx, fc)
18618 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18619 ctx = rctx
18620 return obj.Name, nil
18621 })
18622 if err != nil {
18623 ec.Error(ctx, err)
18624 return graphql.Null
18625 }
18626 if resTmp == nil {
18627 if !graphql.HasFieldError(ctx, fc) {
18628 ec.Errorf(ctx, "must not be null")
18629 }
18630 return graphql.Null
18631 }
18632 res := resTmp.(string)
18633 fc.Result = res
18634 return ec.marshalNString2string(ctx, field.Selections, res)
18635 }
18636
18637 func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
18638 defer func() {
18639 if r := recover(); r != nil {
18640 ec.Error(ctx, ec.Recover(ctx, r))
18641 ret = graphql.Null
18642 }
18643 }()
18644 fc := &graphql.FieldContext{
18645 Object: "__Directive",
18646 Field: field,
18647 Args: nil,
18648 IsMethod: false,
18649 IsResolver: false,
18650 }
18651
18652 ctx = graphql.WithFieldContext(ctx, fc)
18653 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18654 ctx = rctx
18655 return obj.Description, nil
18656 })
18657 if err != nil {
18658 ec.Error(ctx, err)
18659 return graphql.Null
18660 }
18661 if resTmp == nil {
18662 return graphql.Null
18663 }
18664 res := resTmp.(string)
18665 fc.Result = res
18666 return ec.marshalOString2string(ctx, field.Selections, res)
18667 }
18668
18669 func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
18670 defer func() {
18671 if r := recover(); r != nil {
18672 ec.Error(ctx, ec.Recover(ctx, r))
18673 ret = graphql.Null
18674 }
18675 }()
18676 fc := &graphql.FieldContext{
18677 Object: "__Directive",
18678 Field: field,
18679 Args: nil,
18680 IsMethod: false,
18681 IsResolver: false,
18682 }
18683
18684 ctx = graphql.WithFieldContext(ctx, fc)
18685 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18686 ctx = rctx
18687 return obj.Locations, nil
18688 })
18689 if err != nil {
18690 ec.Error(ctx, err)
18691 return graphql.Null
18692 }
18693 if resTmp == nil {
18694 if !graphql.HasFieldError(ctx, fc) {
18695 ec.Errorf(ctx, "must not be null")
18696 }
18697 return graphql.Null
18698 }
18699 res := resTmp.([]string)
18700 fc.Result = res
18701 return ec.marshalN__DirectiveLocation2ᚕstringᚄ(ctx, field.Selections, res)
18702 }
18703
18704 func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) (ret graphql.Marshaler) {
18705 defer func() {
18706 if r := recover(); r != nil {
18707 ec.Error(ctx, ec.Recover(ctx, r))
18708 ret = graphql.Null
18709 }
18710 }()
18711 fc := &graphql.FieldContext{
18712 Object: "__Directive",
18713 Field: field,
18714 Args: nil,
18715 IsMethod: false,
18716 IsResolver: false,
18717 }
18718
18719 ctx = graphql.WithFieldContext(ctx, fc)
18720 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18721 ctx = rctx
18722 return obj.Args, nil
18723 })
18724 if err != nil {
18725 ec.Error(ctx, err)
18726 return graphql.Null
18727 }
18728 if resTmp == nil {
18729 if !graphql.HasFieldError(ctx, fc) {
18730 ec.Errorf(ctx, "must not be null")
18731 }
18732 return graphql.Null
18733 }
18734 res := resTmp.([]introspection.InputValue)
18735 fc.Result = res
18736 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
18737 }
18738
18739 func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
18740 defer func() {
18741 if r := recover(); r != nil {
18742 ec.Error(ctx, ec.Recover(ctx, r))
18743 ret = graphql.Null
18744 }
18745 }()
18746 fc := &graphql.FieldContext{
18747 Object: "__EnumValue",
18748 Field: field,
18749 Args: nil,
18750 IsMethod: false,
18751 IsResolver: false,
18752 }
18753
18754 ctx = graphql.WithFieldContext(ctx, fc)
18755 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18756 ctx = rctx
18757 return obj.Name, nil
18758 })
18759 if err != nil {
18760 ec.Error(ctx, err)
18761 return graphql.Null
18762 }
18763 if resTmp == nil {
18764 if !graphql.HasFieldError(ctx, fc) {
18765 ec.Errorf(ctx, "must not be null")
18766 }
18767 return graphql.Null
18768 }
18769 res := resTmp.(string)
18770 fc.Result = res
18771 return ec.marshalNString2string(ctx, field.Selections, res)
18772 }
18773
18774 func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
18775 defer func() {
18776 if r := recover(); r != nil {
18777 ec.Error(ctx, ec.Recover(ctx, r))
18778 ret = graphql.Null
18779 }
18780 }()
18781 fc := &graphql.FieldContext{
18782 Object: "__EnumValue",
18783 Field: field,
18784 Args: nil,
18785 IsMethod: false,
18786 IsResolver: false,
18787 }
18788
18789 ctx = graphql.WithFieldContext(ctx, fc)
18790 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18791 ctx = rctx
18792 return obj.Description, nil
18793 })
18794 if err != nil {
18795 ec.Error(ctx, err)
18796 return graphql.Null
18797 }
18798 if resTmp == nil {
18799 return graphql.Null
18800 }
18801 res := resTmp.(string)
18802 fc.Result = res
18803 return ec.marshalOString2string(ctx, field.Selections, res)
18804 }
18805
18806 func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
18807 defer func() {
18808 if r := recover(); r != nil {
18809 ec.Error(ctx, ec.Recover(ctx, r))
18810 ret = graphql.Null
18811 }
18812 }()
18813 fc := &graphql.FieldContext{
18814 Object: "__EnumValue",
18815 Field: field,
18816 Args: nil,
18817 IsMethod: true,
18818 IsResolver: false,
18819 }
18820
18821 ctx = graphql.WithFieldContext(ctx, fc)
18822 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18823 ctx = rctx
18824 return obj.IsDeprecated(), nil
18825 })
18826 if err != nil {
18827 ec.Error(ctx, err)
18828 return graphql.Null
18829 }
18830 if resTmp == nil {
18831 if !graphql.HasFieldError(ctx, fc) {
18832 ec.Errorf(ctx, "must not be null")
18833 }
18834 return graphql.Null
18835 }
18836 res := resTmp.(bool)
18837 fc.Result = res
18838 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
18839 }
18840
18841 func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) {
18842 defer func() {
18843 if r := recover(); r != nil {
18844 ec.Error(ctx, ec.Recover(ctx, r))
18845 ret = graphql.Null
18846 }
18847 }()
18848 fc := &graphql.FieldContext{
18849 Object: "__EnumValue",
18850 Field: field,
18851 Args: nil,
18852 IsMethod: true,
18853 IsResolver: false,
18854 }
18855
18856 ctx = graphql.WithFieldContext(ctx, fc)
18857 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18858 ctx = rctx
18859 return obj.DeprecationReason(), nil
18860 })
18861 if err != nil {
18862 ec.Error(ctx, err)
18863 return graphql.Null
18864 }
18865 if resTmp == nil {
18866 return graphql.Null
18867 }
18868 res := resTmp.(*string)
18869 fc.Result = res
18870 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
18871 }
18872
18873 func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
18874 defer func() {
18875 if r := recover(); r != nil {
18876 ec.Error(ctx, ec.Recover(ctx, r))
18877 ret = graphql.Null
18878 }
18879 }()
18880 fc := &graphql.FieldContext{
18881 Object: "__Field",
18882 Field: field,
18883 Args: nil,
18884 IsMethod: false,
18885 IsResolver: false,
18886 }
18887
18888 ctx = graphql.WithFieldContext(ctx, fc)
18889 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18890 ctx = rctx
18891 return obj.Name, nil
18892 })
18893 if err != nil {
18894 ec.Error(ctx, err)
18895 return graphql.Null
18896 }
18897 if resTmp == nil {
18898 if !graphql.HasFieldError(ctx, fc) {
18899 ec.Errorf(ctx, "must not be null")
18900 }
18901 return graphql.Null
18902 }
18903 res := resTmp.(string)
18904 fc.Result = res
18905 return ec.marshalNString2string(ctx, field.Selections, res)
18906 }
18907
18908 func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
18909 defer func() {
18910 if r := recover(); r != nil {
18911 ec.Error(ctx, ec.Recover(ctx, r))
18912 ret = graphql.Null
18913 }
18914 }()
18915 fc := &graphql.FieldContext{
18916 Object: "__Field",
18917 Field: field,
18918 Args: nil,
18919 IsMethod: false,
18920 IsResolver: false,
18921 }
18922
18923 ctx = graphql.WithFieldContext(ctx, fc)
18924 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18925 ctx = rctx
18926 return obj.Description, nil
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.(string)
18936 fc.Result = res
18937 return ec.marshalOString2string(ctx, field.Selections, res)
18938 }
18939
18940 func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (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: "__Field",
18949 Field: field,
18950 Args: nil,
18951 IsMethod: false,
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 obj.Args, nil
18959 })
18960 if err != nil {
18961 ec.Error(ctx, err)
18962 return graphql.Null
18963 }
18964 if resTmp == nil {
18965 if !graphql.HasFieldError(ctx, fc) {
18966 ec.Errorf(ctx, "must not be null")
18967 }
18968 return graphql.Null
18969 }
18970 res := resTmp.([]introspection.InputValue)
18971 fc.Result = res
18972 return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
18973 }
18974
18975 func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
18976 defer func() {
18977 if r := recover(); r != nil {
18978 ec.Error(ctx, ec.Recover(ctx, r))
18979 ret = graphql.Null
18980 }
18981 }()
18982 fc := &graphql.FieldContext{
18983 Object: "__Field",
18984 Field: field,
18985 Args: nil,
18986 IsMethod: false,
18987 IsResolver: false,
18988 }
18989
18990 ctx = graphql.WithFieldContext(ctx, fc)
18991 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
18992 ctx = rctx
18993 return obj.Type, nil
18994 })
18995 if err != nil {
18996 ec.Error(ctx, err)
18997 return graphql.Null
18998 }
18999 if resTmp == nil {
19000 if !graphql.HasFieldError(ctx, fc) {
19001 ec.Errorf(ctx, "must not be null")
19002 }
19003 return graphql.Null
19004 }
19005 res := resTmp.(*introspection.Type)
19006 fc.Result = res
19007 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
19008 }
19009
19010 func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
19011 defer func() {
19012 if r := recover(); r != nil {
19013 ec.Error(ctx, ec.Recover(ctx, r))
19014 ret = graphql.Null
19015 }
19016 }()
19017 fc := &graphql.FieldContext{
19018 Object: "__Field",
19019 Field: field,
19020 Args: nil,
19021 IsMethod: true,
19022 IsResolver: false,
19023 }
19024
19025 ctx = graphql.WithFieldContext(ctx, fc)
19026 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19027 ctx = rctx
19028 return obj.IsDeprecated(), nil
19029 })
19030 if err != nil {
19031 ec.Error(ctx, err)
19032 return graphql.Null
19033 }
19034 if resTmp == nil {
19035 if !graphql.HasFieldError(ctx, fc) {
19036 ec.Errorf(ctx, "must not be null")
19037 }
19038 return graphql.Null
19039 }
19040 res := resTmp.(bool)
19041 fc.Result = res
19042 return ec.marshalNBoolean2bool(ctx, field.Selections, res)
19043 }
19044
19045 func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) (ret graphql.Marshaler) {
19046 defer func() {
19047 if r := recover(); r != nil {
19048 ec.Error(ctx, ec.Recover(ctx, r))
19049 ret = graphql.Null
19050 }
19051 }()
19052 fc := &graphql.FieldContext{
19053 Object: "__Field",
19054 Field: field,
19055 Args: nil,
19056 IsMethod: true,
19057 IsResolver: false,
19058 }
19059
19060 ctx = graphql.WithFieldContext(ctx, fc)
19061 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19062 ctx = rctx
19063 return obj.DeprecationReason(), nil
19064 })
19065 if err != nil {
19066 ec.Error(ctx, err)
19067 return graphql.Null
19068 }
19069 if resTmp == nil {
19070 return graphql.Null
19071 }
19072 res := resTmp.(*string)
19073 fc.Result = res
19074 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
19075 }
19076
19077 func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (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: "__InputValue",
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.Name, 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.marshalNString2string(ctx, field.Selections, res)
19110 }
19111
19112 func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (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: "__InputValue",
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.Description, 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.(string)
19140 fc.Result = res
19141 return ec.marshalOString2string(ctx, field.Selections, res)
19142 }
19143
19144 func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (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: "__InputValue",
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.Type, 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.(*introspection.Type)
19175 fc.Result = res
19176 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
19177 }
19178
19179 func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) (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: "__InputValue",
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.DefaultValue, nil
19198 })
19199 if err != nil {
19200 ec.Error(ctx, err)
19201 return graphql.Null
19202 }
19203 if resTmp == nil {
19204 return graphql.Null
19205 }
19206 res := resTmp.(*string)
19207 fc.Result = res
19208 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
19209 }
19210
19211 func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
19212 defer func() {
19213 if r := recover(); r != nil {
19214 ec.Error(ctx, ec.Recover(ctx, r))
19215 ret = graphql.Null
19216 }
19217 }()
19218 fc := &graphql.FieldContext{
19219 Object: "__Schema",
19220 Field: field,
19221 Args: nil,
19222 IsMethod: true,
19223 IsResolver: false,
19224 }
19225
19226 ctx = graphql.WithFieldContext(ctx, fc)
19227 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19228 ctx = rctx
19229 return obj.Types(), nil
19230 })
19231 if err != nil {
19232 ec.Error(ctx, err)
19233 return graphql.Null
19234 }
19235 if resTmp == nil {
19236 if !graphql.HasFieldError(ctx, fc) {
19237 ec.Errorf(ctx, "must not be null")
19238 }
19239 return graphql.Null
19240 }
19241 res := resTmp.([]introspection.Type)
19242 fc.Result = res
19243 return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
19244 }
19245
19246 func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
19247 defer func() {
19248 if r := recover(); r != nil {
19249 ec.Error(ctx, ec.Recover(ctx, r))
19250 ret = graphql.Null
19251 }
19252 }()
19253 fc := &graphql.FieldContext{
19254 Object: "__Schema",
19255 Field: field,
19256 Args: nil,
19257 IsMethod: true,
19258 IsResolver: false,
19259 }
19260
19261 ctx = graphql.WithFieldContext(ctx, fc)
19262 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19263 ctx = rctx
19264 return obj.QueryType(), nil
19265 })
19266 if err != nil {
19267 ec.Error(ctx, err)
19268 return graphql.Null
19269 }
19270 if resTmp == nil {
19271 if !graphql.HasFieldError(ctx, fc) {
19272 ec.Errorf(ctx, "must not be null")
19273 }
19274 return graphql.Null
19275 }
19276 res := resTmp.(*introspection.Type)
19277 fc.Result = res
19278 return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
19279 }
19280
19281 func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
19282 defer func() {
19283 if r := recover(); r != nil {
19284 ec.Error(ctx, ec.Recover(ctx, r))
19285 ret = graphql.Null
19286 }
19287 }()
19288 fc := &graphql.FieldContext{
19289 Object: "__Schema",
19290 Field: field,
19291 Args: nil,
19292 IsMethod: true,
19293 IsResolver: false,
19294 }
19295
19296 ctx = graphql.WithFieldContext(ctx, fc)
19297 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19298 ctx = rctx
19299 return obj.MutationType(), nil
19300 })
19301 if err != nil {
19302 ec.Error(ctx, err)
19303 return graphql.Null
19304 }
19305 if resTmp == nil {
19306 return graphql.Null
19307 }
19308 res := resTmp.(*introspection.Type)
19309 fc.Result = res
19310 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
19311 }
19312
19313 func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
19314 defer func() {
19315 if r := recover(); r != nil {
19316 ec.Error(ctx, ec.Recover(ctx, r))
19317 ret = graphql.Null
19318 }
19319 }()
19320 fc := &graphql.FieldContext{
19321 Object: "__Schema",
19322 Field: field,
19323 Args: nil,
19324 IsMethod: true,
19325 IsResolver: false,
19326 }
19327
19328 ctx = graphql.WithFieldContext(ctx, fc)
19329 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19330 ctx = rctx
19331 return obj.SubscriptionType(), nil
19332 })
19333 if err != nil {
19334 ec.Error(ctx, err)
19335 return graphql.Null
19336 }
19337 if resTmp == nil {
19338 return graphql.Null
19339 }
19340 res := resTmp.(*introspection.Type)
19341 fc.Result = res
19342 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
19343 }
19344
19345 func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) (ret graphql.Marshaler) {
19346 defer func() {
19347 if r := recover(); r != nil {
19348 ec.Error(ctx, ec.Recover(ctx, r))
19349 ret = graphql.Null
19350 }
19351 }()
19352 fc := &graphql.FieldContext{
19353 Object: "__Schema",
19354 Field: field,
19355 Args: nil,
19356 IsMethod: true,
19357 IsResolver: false,
19358 }
19359
19360 ctx = graphql.WithFieldContext(ctx, fc)
19361 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19362 ctx = rctx
19363 return obj.Directives(), nil
19364 })
19365 if err != nil {
19366 ec.Error(ctx, err)
19367 return graphql.Null
19368 }
19369 if resTmp == nil {
19370 if !graphql.HasFieldError(ctx, fc) {
19371 ec.Errorf(ctx, "must not be null")
19372 }
19373 return graphql.Null
19374 }
19375 res := resTmp.([]introspection.Directive)
19376 fc.Result = res
19377 return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res)
19378 }
19379
19380 func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19381 defer func() {
19382 if r := recover(); r != nil {
19383 ec.Error(ctx, ec.Recover(ctx, r))
19384 ret = graphql.Null
19385 }
19386 }()
19387 fc := &graphql.FieldContext{
19388 Object: "__Type",
19389 Field: field,
19390 Args: nil,
19391 IsMethod: true,
19392 IsResolver: false,
19393 }
19394
19395 ctx = graphql.WithFieldContext(ctx, fc)
19396 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19397 ctx = rctx
19398 return obj.Kind(), nil
19399 })
19400 if err != nil {
19401 ec.Error(ctx, err)
19402 return graphql.Null
19403 }
19404 if resTmp == nil {
19405 if !graphql.HasFieldError(ctx, fc) {
19406 ec.Errorf(ctx, "must not be null")
19407 }
19408 return graphql.Null
19409 }
19410 res := resTmp.(string)
19411 fc.Result = res
19412 return ec.marshalN__TypeKind2string(ctx, field.Selections, res)
19413 }
19414
19415 func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19416 defer func() {
19417 if r := recover(); r != nil {
19418 ec.Error(ctx, ec.Recover(ctx, r))
19419 ret = graphql.Null
19420 }
19421 }()
19422 fc := &graphql.FieldContext{
19423 Object: "__Type",
19424 Field: field,
19425 Args: nil,
19426 IsMethod: true,
19427 IsResolver: false,
19428 }
19429
19430 ctx = graphql.WithFieldContext(ctx, fc)
19431 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19432 ctx = rctx
19433 return obj.Name(), nil
19434 })
19435 if err != nil {
19436 ec.Error(ctx, err)
19437 return graphql.Null
19438 }
19439 if resTmp == nil {
19440 return graphql.Null
19441 }
19442 res := resTmp.(*string)
19443 fc.Result = res
19444 return ec.marshalOString2ᚖstring(ctx, field.Selections, res)
19445 }
19446
19447 func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19448 defer func() {
19449 if r := recover(); r != nil {
19450 ec.Error(ctx, ec.Recover(ctx, r))
19451 ret = graphql.Null
19452 }
19453 }()
19454 fc := &graphql.FieldContext{
19455 Object: "__Type",
19456 Field: field,
19457 Args: nil,
19458 IsMethod: true,
19459 IsResolver: false,
19460 }
19461
19462 ctx = graphql.WithFieldContext(ctx, fc)
19463 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19464 ctx = rctx
19465 return obj.Description(), nil
19466 })
19467 if err != nil {
19468 ec.Error(ctx, err)
19469 return graphql.Null
19470 }
19471 if resTmp == nil {
19472 return graphql.Null
19473 }
19474 res := resTmp.(string)
19475 fc.Result = res
19476 return ec.marshalOString2string(ctx, field.Selections, res)
19477 }
19478
19479 func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19480 defer func() {
19481 if r := recover(); r != nil {
19482 ec.Error(ctx, ec.Recover(ctx, r))
19483 ret = graphql.Null
19484 }
19485 }()
19486 fc := &graphql.FieldContext{
19487 Object: "__Type",
19488 Field: field,
19489 Args: nil,
19490 IsMethod: true,
19491 IsResolver: false,
19492 }
19493
19494 ctx = graphql.WithFieldContext(ctx, fc)
19495 rawArgs := field.ArgumentMap(ec.Variables)
19496 args, err := ec.field___Type_fields_args(ctx, rawArgs)
19497 if err != nil {
19498 ec.Error(ctx, err)
19499 return graphql.Null
19500 }
19501 fc.Args = args
19502 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19503 ctx = rctx
19504 return obj.Fields(args["includeDeprecated"].(bool)), nil
19505 })
19506 if err != nil {
19507 ec.Error(ctx, err)
19508 return graphql.Null
19509 }
19510 if resTmp == nil {
19511 return graphql.Null
19512 }
19513 res := resTmp.([]introspection.Field)
19514 fc.Result = res
19515 return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res)
19516 }
19517
19518 func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19519 defer func() {
19520 if r := recover(); r != nil {
19521 ec.Error(ctx, ec.Recover(ctx, r))
19522 ret = graphql.Null
19523 }
19524 }()
19525 fc := &graphql.FieldContext{
19526 Object: "__Type",
19527 Field: field,
19528 Args: nil,
19529 IsMethod: true,
19530 IsResolver: false,
19531 }
19532
19533 ctx = graphql.WithFieldContext(ctx, fc)
19534 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19535 ctx = rctx
19536 return obj.Interfaces(), nil
19537 })
19538 if err != nil {
19539 ec.Error(ctx, err)
19540 return graphql.Null
19541 }
19542 if resTmp == nil {
19543 return graphql.Null
19544 }
19545 res := resTmp.([]introspection.Type)
19546 fc.Result = res
19547 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
19548 }
19549
19550 func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19551 defer func() {
19552 if r := recover(); r != nil {
19553 ec.Error(ctx, ec.Recover(ctx, r))
19554 ret = graphql.Null
19555 }
19556 }()
19557 fc := &graphql.FieldContext{
19558 Object: "__Type",
19559 Field: field,
19560 Args: nil,
19561 IsMethod: true,
19562 IsResolver: false,
19563 }
19564
19565 ctx = graphql.WithFieldContext(ctx, fc)
19566 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19567 ctx = rctx
19568 return obj.PossibleTypes(), nil
19569 })
19570 if err != nil {
19571 ec.Error(ctx, err)
19572 return graphql.Null
19573 }
19574 if resTmp == nil {
19575 return graphql.Null
19576 }
19577 res := resTmp.([]introspection.Type)
19578 fc.Result = res
19579 return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res)
19580 }
19581
19582 func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19583 defer func() {
19584 if r := recover(); r != nil {
19585 ec.Error(ctx, ec.Recover(ctx, r))
19586 ret = graphql.Null
19587 }
19588 }()
19589 fc := &graphql.FieldContext{
19590 Object: "__Type",
19591 Field: field,
19592 Args: nil,
19593 IsMethod: true,
19594 IsResolver: false,
19595 }
19596
19597 ctx = graphql.WithFieldContext(ctx, fc)
19598 rawArgs := field.ArgumentMap(ec.Variables)
19599 args, err := ec.field___Type_enumValues_args(ctx, rawArgs)
19600 if err != nil {
19601 ec.Error(ctx, err)
19602 return graphql.Null
19603 }
19604 fc.Args = args
19605 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19606 ctx = rctx
19607 return obj.EnumValues(args["includeDeprecated"].(bool)), nil
19608 })
19609 if err != nil {
19610 ec.Error(ctx, err)
19611 return graphql.Null
19612 }
19613 if resTmp == nil {
19614 return graphql.Null
19615 }
19616 res := resTmp.([]introspection.EnumValue)
19617 fc.Result = res
19618 return ec.marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx, field.Selections, res)
19619 }
19620
19621 func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19622 defer func() {
19623 if r := recover(); r != nil {
19624 ec.Error(ctx, ec.Recover(ctx, r))
19625 ret = graphql.Null
19626 }
19627 }()
19628 fc := &graphql.FieldContext{
19629 Object: "__Type",
19630 Field: field,
19631 Args: nil,
19632 IsMethod: true,
19633 IsResolver: false,
19634 }
19635
19636 ctx = graphql.WithFieldContext(ctx, fc)
19637 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19638 ctx = rctx
19639 return obj.InputFields(), nil
19640 })
19641 if err != nil {
19642 ec.Error(ctx, err)
19643 return graphql.Null
19644 }
19645 if resTmp == nil {
19646 return graphql.Null
19647 }
19648 res := resTmp.([]introspection.InputValue)
19649 fc.Result = res
19650 return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res)
19651 }
19652
19653 func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) (ret graphql.Marshaler) {
19654 defer func() {
19655 if r := recover(); r != nil {
19656 ec.Error(ctx, ec.Recover(ctx, r))
19657 ret = graphql.Null
19658 }
19659 }()
19660 fc := &graphql.FieldContext{
19661 Object: "__Type",
19662 Field: field,
19663 Args: nil,
19664 IsMethod: true,
19665 IsResolver: false,
19666 }
19667
19668 ctx = graphql.WithFieldContext(ctx, fc)
19669 resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) {
19670 ctx = rctx
19671 return obj.OfType(), nil
19672 })
19673 if err != nil {
19674 ec.Error(ctx, err)
19675 return graphql.Null
19676 }
19677 if resTmp == nil {
19678 return graphql.Null
19679 }
19680 res := resTmp.(*introspection.Type)
19681 fc.Result = res
19682 return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res)
19683 }
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697 var attrOverrideSpecImplementors = []string{"AttrOverrideSpec"}
19698
19699 func (ec *executionContext) _AttrOverrideSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.AttrOverrideSpec) graphql.Marshaler {
19700 fields := graphql.CollectFields(ec.OperationContext, sel, attrOverrideSpecImplementors)
19701
19702 out := graphql.NewFieldSet(fields)
19703 var invalids uint32
19704 for i, field := range fields {
19705 switch field.Name {
19706 case "__typename":
19707 out.Values[i] = graphql.MarshalString("AttrOverrideSpec")
19708 case "ino":
19709 field := field
19710 out.Concurrently(i, func() (res graphql.Marshaler) {
19711 defer func() {
19712 if r := recover(); r != nil {
19713 ec.Error(ctx, ec.Recover(ctx, r))
19714 }
19715 }()
19716 res = ec._AttrOverrideSpec_ino(ctx, field, obj)
19717 return res
19718 })
19719 case "size":
19720 field := field
19721 out.Concurrently(i, func() (res graphql.Marshaler) {
19722 defer func() {
19723 if r := recover(); r != nil {
19724 ec.Error(ctx, ec.Recover(ctx, r))
19725 }
19726 }()
19727 res = ec._AttrOverrideSpec_size(ctx, field, obj)
19728 return res
19729 })
19730 case "blocks":
19731 field := field
19732 out.Concurrently(i, func() (res graphql.Marshaler) {
19733 defer func() {
19734 if r := recover(); r != nil {
19735 ec.Error(ctx, ec.Recover(ctx, r))
19736 }
19737 }()
19738 res = ec._AttrOverrideSpec_blocks(ctx, field, obj)
19739 return res
19740 })
19741 case "atime":
19742 out.Values[i] = ec._AttrOverrideSpec_atime(ctx, field, obj)
19743 case "mtime":
19744 out.Values[i] = ec._AttrOverrideSpec_mtime(ctx, field, obj)
19745 case "ctime":
19746 out.Values[i] = ec._AttrOverrideSpec_ctime(ctx, field, obj)
19747 case "kind":
19748 field := field
19749 out.Concurrently(i, func() (res graphql.Marshaler) {
19750 defer func() {
19751 if r := recover(); r != nil {
19752 ec.Error(ctx, ec.Recover(ctx, r))
19753 }
19754 }()
19755 res = ec._AttrOverrideSpec_kind(ctx, field, obj)
19756 return res
19757 })
19758 case "perm":
19759 field := field
19760 out.Concurrently(i, func() (res graphql.Marshaler) {
19761 defer func() {
19762 if r := recover(); r != nil {
19763 ec.Error(ctx, ec.Recover(ctx, r))
19764 }
19765 }()
19766 res = ec._AttrOverrideSpec_perm(ctx, field, obj)
19767 return res
19768 })
19769 case "nlink":
19770 field := field
19771 out.Concurrently(i, func() (res graphql.Marshaler) {
19772 defer func() {
19773 if r := recover(); r != nil {
19774 ec.Error(ctx, ec.Recover(ctx, r))
19775 }
19776 }()
19777 res = ec._AttrOverrideSpec_nlink(ctx, field, obj)
19778 return res
19779 })
19780 case "uid":
19781 field := field
19782 out.Concurrently(i, func() (res graphql.Marshaler) {
19783 defer func() {
19784 if r := recover(); r != nil {
19785 ec.Error(ctx, ec.Recover(ctx, r))
19786 }
19787 }()
19788 res = ec._AttrOverrideSpec_uid(ctx, field, obj)
19789 return res
19790 })
19791 case "gid":
19792 field := field
19793 out.Concurrently(i, func() (res graphql.Marshaler) {
19794 defer func() {
19795 if r := recover(); r != nil {
19796 ec.Error(ctx, ec.Recover(ctx, r))
19797 }
19798 }()
19799 res = ec._AttrOverrideSpec_gid(ctx, field, obj)
19800 return res
19801 })
19802 case "rdev":
19803 field := field
19804 out.Concurrently(i, func() (res graphql.Marshaler) {
19805 defer func() {
19806 if r := recover(); r != nil {
19807 ec.Error(ctx, ec.Recover(ctx, r))
19808 }
19809 }()
19810 res = ec._AttrOverrideSpec_rdev(ctx, field, obj)
19811 return res
19812 })
19813 default:
19814 panic("unknown field " + strconv.Quote(field.Name))
19815 }
19816 }
19817 out.Dispatch()
19818 if invalids > 0 {
19819 return graphql.Null
19820 }
19821 return out
19822 }
19823
19824 var bandwidthSpecImplementors = []string{"BandwidthSpec"}
19825
19826 func (ec *executionContext) _BandwidthSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.BandwidthSpec) graphql.Marshaler {
19827 fields := graphql.CollectFields(ec.OperationContext, sel, bandwidthSpecImplementors)
19828
19829 out := graphql.NewFieldSet(fields)
19830 var invalids uint32
19831 for i, field := range fields {
19832 switch field.Name {
19833 case "__typename":
19834 out.Values[i] = graphql.MarshalString("BandwidthSpec")
19835 case "rate":
19836 out.Values[i] = ec._BandwidthSpec_rate(ctx, field, obj)
19837 if out.Values[i] == graphql.Null {
19838 atomic.AddUint32(&invalids, 1)
19839 }
19840 case "limit":
19841 field := field
19842 out.Concurrently(i, func() (res graphql.Marshaler) {
19843 defer func() {
19844 if r := recover(); r != nil {
19845 ec.Error(ctx, ec.Recover(ctx, r))
19846 }
19847 }()
19848 res = ec._BandwidthSpec_limit(ctx, field, obj)
19849 if res == graphql.Null {
19850 atomic.AddUint32(&invalids, 1)
19851 }
19852 return res
19853 })
19854 case "buffer":
19855 field := field
19856 out.Concurrently(i, func() (res graphql.Marshaler) {
19857 defer func() {
19858 if r := recover(); r != nil {
19859 ec.Error(ctx, ec.Recover(ctx, r))
19860 }
19861 }()
19862 res = ec._BandwidthSpec_buffer(ctx, field, obj)
19863 if res == graphql.Null {
19864 atomic.AddUint32(&invalids, 1)
19865 }
19866 return res
19867 })
19868 case "peakrate":
19869 field := field
19870 out.Concurrently(i, func() (res graphql.Marshaler) {
19871 defer func() {
19872 if r := recover(); r != nil {
19873 ec.Error(ctx, ec.Recover(ctx, r))
19874 }
19875 }()
19876 res = ec._BandwidthSpec_peakrate(ctx, field, obj)
19877 return res
19878 })
19879 case "minburst":
19880 field := field
19881 out.Concurrently(i, func() (res graphql.Marshaler) {
19882 defer func() {
19883 if r := recover(); r != nil {
19884 ec.Error(ctx, ec.Recover(ctx, r))
19885 }
19886 }()
19887 res = ec._BandwidthSpec_minburst(ctx, field, obj)
19888 return res
19889 })
19890 default:
19891 panic("unknown field " + strconv.Quote(field.Name))
19892 }
19893 }
19894 out.Dispatch()
19895 if invalids > 0 {
19896 return graphql.Null
19897 }
19898 return out
19899 }
19900
19901 var chaosConditionImplementors = []string{"ChaosCondition"}
19902
19903 func (ec *executionContext) _ChaosCondition(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.ChaosCondition) graphql.Marshaler {
19904 fields := graphql.CollectFields(ec.OperationContext, sel, chaosConditionImplementors)
19905
19906 out := graphql.NewFieldSet(fields)
19907 var invalids uint32
19908 for i, field := range fields {
19909 switch field.Name {
19910 case "__typename":
19911 out.Values[i] = graphql.MarshalString("ChaosCondition")
19912 case "type":
19913 field := field
19914 out.Concurrently(i, func() (res graphql.Marshaler) {
19915 defer func() {
19916 if r := recover(); r != nil {
19917 ec.Error(ctx, ec.Recover(ctx, r))
19918 }
19919 }()
19920 res = ec._ChaosCondition_type(ctx, field, obj)
19921 if res == graphql.Null {
19922 atomic.AddUint32(&invalids, 1)
19923 }
19924 return res
19925 })
19926 case "status":
19927 field := field
19928 out.Concurrently(i, func() (res graphql.Marshaler) {
19929 defer func() {
19930 if r := recover(); r != nil {
19931 ec.Error(ctx, ec.Recover(ctx, r))
19932 }
19933 }()
19934 res = ec._ChaosCondition_status(ctx, field, obj)
19935 if res == graphql.Null {
19936 atomic.AddUint32(&invalids, 1)
19937 }
19938 return res
19939 })
19940 case "reason":
19941 out.Values[i] = ec._ChaosCondition_reason(ctx, field, obj)
19942 default:
19943 panic("unknown field " + strconv.Quote(field.Name))
19944 }
19945 }
19946 out.Dispatch()
19947 if invalids > 0 {
19948 return graphql.Null
19949 }
19950 return out
19951 }
19952
19953 var containerStateImplementors = []string{"ContainerState"}
19954
19955 func (ec *executionContext) _ContainerState(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerState) graphql.Marshaler {
19956 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateImplementors)
19957
19958 out := graphql.NewFieldSet(fields)
19959 var invalids uint32
19960 for i, field := range fields {
19961 switch field.Name {
19962 case "__typename":
19963 out.Values[i] = graphql.MarshalString("ContainerState")
19964 case "waiting":
19965 out.Values[i] = ec._ContainerState_waiting(ctx, field, obj)
19966 case "running":
19967 out.Values[i] = ec._ContainerState_running(ctx, field, obj)
19968 case "terminated":
19969 out.Values[i] = ec._ContainerState_terminated(ctx, field, obj)
19970 default:
19971 panic("unknown field " + strconv.Quote(field.Name))
19972 }
19973 }
19974 out.Dispatch()
19975 if invalids > 0 {
19976 return graphql.Null
19977 }
19978 return out
19979 }
19980
19981 var containerStateRunningImplementors = []string{"ContainerStateRunning"}
19982
19983 func (ec *executionContext) _ContainerStateRunning(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStateRunning) graphql.Marshaler {
19984 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateRunningImplementors)
19985
19986 out := graphql.NewFieldSet(fields)
19987 var invalids uint32
19988 for i, field := range fields {
19989 switch field.Name {
19990 case "__typename":
19991 out.Values[i] = graphql.MarshalString("ContainerStateRunning")
19992 case "startedAt":
19993 field := field
19994 out.Concurrently(i, func() (res graphql.Marshaler) {
19995 defer func() {
19996 if r := recover(); r != nil {
19997 ec.Error(ctx, ec.Recover(ctx, r))
19998 }
19999 }()
20000 res = ec._ContainerStateRunning_startedAt(ctx, field, obj)
20001 return res
20002 })
20003 default:
20004 panic("unknown field " + strconv.Quote(field.Name))
20005 }
20006 }
20007 out.Dispatch()
20008 if invalids > 0 {
20009 return graphql.Null
20010 }
20011 return out
20012 }
20013
20014 var containerStateTerminatedImplementors = []string{"ContainerStateTerminated"}
20015
20016 func (ec *executionContext) _ContainerStateTerminated(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStateTerminated) graphql.Marshaler {
20017 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateTerminatedImplementors)
20018
20019 out := graphql.NewFieldSet(fields)
20020 var invalids uint32
20021 for i, field := range fields {
20022 switch field.Name {
20023 case "__typename":
20024 out.Values[i] = graphql.MarshalString("ContainerStateTerminated")
20025 case "exitCode":
20026 out.Values[i] = ec._ContainerStateTerminated_exitCode(ctx, field, obj)
20027 if out.Values[i] == graphql.Null {
20028 atomic.AddUint32(&invalids, 1)
20029 }
20030 case "signal":
20031 out.Values[i] = ec._ContainerStateTerminated_signal(ctx, field, obj)
20032 case "reason":
20033 out.Values[i] = ec._ContainerStateTerminated_reason(ctx, field, obj)
20034 case "message":
20035 out.Values[i] = ec._ContainerStateTerminated_message(ctx, field, obj)
20036 case "startedAt":
20037 field := field
20038 out.Concurrently(i, func() (res graphql.Marshaler) {
20039 defer func() {
20040 if r := recover(); r != nil {
20041 ec.Error(ctx, ec.Recover(ctx, r))
20042 }
20043 }()
20044 res = ec._ContainerStateTerminated_startedAt(ctx, field, obj)
20045 return res
20046 })
20047 case "finishedAt":
20048 field := field
20049 out.Concurrently(i, func() (res graphql.Marshaler) {
20050 defer func() {
20051 if r := recover(); r != nil {
20052 ec.Error(ctx, ec.Recover(ctx, r))
20053 }
20054 }()
20055 res = ec._ContainerStateTerminated_finishedAt(ctx, field, obj)
20056 return res
20057 })
20058 case "containerID":
20059 out.Values[i] = ec._ContainerStateTerminated_containerID(ctx, field, obj)
20060 default:
20061 panic("unknown field " + strconv.Quote(field.Name))
20062 }
20063 }
20064 out.Dispatch()
20065 if invalids > 0 {
20066 return graphql.Null
20067 }
20068 return out
20069 }
20070
20071 var containerStateWaitingImplementors = []string{"ContainerStateWaiting"}
20072
20073 func (ec *executionContext) _ContainerStateWaiting(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStateWaiting) graphql.Marshaler {
20074 fields := graphql.CollectFields(ec.OperationContext, sel, containerStateWaitingImplementors)
20075
20076 out := graphql.NewFieldSet(fields)
20077 var invalids uint32
20078 for i, field := range fields {
20079 switch field.Name {
20080 case "__typename":
20081 out.Values[i] = graphql.MarshalString("ContainerStateWaiting")
20082 case "reason":
20083 out.Values[i] = ec._ContainerStateWaiting_reason(ctx, field, obj)
20084 case "message":
20085 out.Values[i] = ec._ContainerStateWaiting_message(ctx, field, obj)
20086 default:
20087 panic("unknown field " + strconv.Quote(field.Name))
20088 }
20089 }
20090 out.Dispatch()
20091 if invalids > 0 {
20092 return graphql.Null
20093 }
20094 return out
20095 }
20096
20097 var containerStatusImplementors = []string{"ContainerStatus"}
20098
20099 func (ec *executionContext) _ContainerStatus(ctx context.Context, sel ast.SelectionSet, obj *v1.ContainerStatus) graphql.Marshaler {
20100 fields := graphql.CollectFields(ec.OperationContext, sel, containerStatusImplementors)
20101
20102 out := graphql.NewFieldSet(fields)
20103 var invalids uint32
20104 for i, field := range fields {
20105 switch field.Name {
20106 case "__typename":
20107 out.Values[i] = graphql.MarshalString("ContainerStatus")
20108 case "name":
20109 out.Values[i] = ec._ContainerStatus_name(ctx, field, obj)
20110 if out.Values[i] == graphql.Null {
20111 invalids++
20112 }
20113 case "State":
20114 out.Values[i] = ec._ContainerStatus_State(ctx, field, obj)
20115 case "lastTerminationState":
20116 out.Values[i] = ec._ContainerStatus_lastTerminationState(ctx, field, obj)
20117 case "ready":
20118 out.Values[i] = ec._ContainerStatus_ready(ctx, field, obj)
20119 if out.Values[i] == graphql.Null {
20120 invalids++
20121 }
20122 case "restartCount":
20123 out.Values[i] = ec._ContainerStatus_restartCount(ctx, field, obj)
20124 if out.Values[i] == graphql.Null {
20125 invalids++
20126 }
20127 case "image":
20128 out.Values[i] = ec._ContainerStatus_image(ctx, field, obj)
20129 if out.Values[i] == graphql.Null {
20130 invalids++
20131 }
20132 case "imageID":
20133 out.Values[i] = ec._ContainerStatus_imageID(ctx, field, obj)
20134 if out.Values[i] == graphql.Null {
20135 invalids++
20136 }
20137 case "containerID":
20138 out.Values[i] = ec._ContainerStatus_containerID(ctx, field, obj)
20139 if out.Values[i] == graphql.Null {
20140 invalids++
20141 }
20142 case "started":
20143 out.Values[i] = ec._ContainerStatus_started(ctx, field, obj)
20144 default:
20145 panic("unknown field " + strconv.Quote(field.Name))
20146 }
20147 }
20148 out.Dispatch()
20149 if invalids > 0 {
20150 return graphql.Null
20151 }
20152 return out
20153 }
20154
20155 var corruptSpecImplementors = []string{"CorruptSpec"}
20156
20157 func (ec *executionContext) _CorruptSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.CorruptSpec) graphql.Marshaler {
20158 fields := graphql.CollectFields(ec.OperationContext, sel, corruptSpecImplementors)
20159
20160 out := graphql.NewFieldSet(fields)
20161 var invalids uint32
20162 for i, field := range fields {
20163 switch field.Name {
20164 case "__typename":
20165 out.Values[i] = graphql.MarshalString("CorruptSpec")
20166 case "corrup":
20167 field := field
20168 out.Concurrently(i, func() (res graphql.Marshaler) {
20169 defer func() {
20170 if r := recover(); r != nil {
20171 ec.Error(ctx, ec.Recover(ctx, r))
20172 }
20173 }()
20174 res = ec._CorruptSpec_corrup(ctx, field, obj)
20175 if res == graphql.Null {
20176 atomic.AddUint32(&invalids, 1)
20177 }
20178 return res
20179 })
20180 case "correlation":
20181 out.Values[i] = ec._CorruptSpec_correlation(ctx, field, obj)
20182 default:
20183 panic("unknown field " + strconv.Quote(field.Name))
20184 }
20185 }
20186 out.Dispatch()
20187 if invalids > 0 {
20188 return graphql.Null
20189 }
20190 return out
20191 }
20192
20193 var delaySpecImplementors = []string{"DelaySpec"}
20194
20195 func (ec *executionContext) _DelaySpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.DelaySpec) graphql.Marshaler {
20196 fields := graphql.CollectFields(ec.OperationContext, sel, delaySpecImplementors)
20197
20198 out := graphql.NewFieldSet(fields)
20199 var invalids uint32
20200 for i, field := range fields {
20201 switch field.Name {
20202 case "__typename":
20203 out.Values[i] = graphql.MarshalString("DelaySpec")
20204 case "latency":
20205 out.Values[i] = ec._DelaySpec_latency(ctx, field, obj)
20206 if out.Values[i] == graphql.Null {
20207 invalids++
20208 }
20209 case "correlation":
20210 out.Values[i] = ec._DelaySpec_correlation(ctx, field, obj)
20211 case "jitter":
20212 out.Values[i] = ec._DelaySpec_jitter(ctx, field, obj)
20213 case "reorder":
20214 out.Values[i] = ec._DelaySpec_reorder(ctx, field, obj)
20215 default:
20216 panic("unknown field " + strconv.Quote(field.Name))
20217 }
20218 }
20219 out.Dispatch()
20220 if invalids > 0 {
20221 return graphql.Null
20222 }
20223 return out
20224 }
20225
20226 var duplicateSpecImplementors = []string{"DuplicateSpec"}
20227
20228 func (ec *executionContext) _DuplicateSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.DuplicateSpec) graphql.Marshaler {
20229 fields := graphql.CollectFields(ec.OperationContext, sel, duplicateSpecImplementors)
20230
20231 out := graphql.NewFieldSet(fields)
20232 var invalids uint32
20233 for i, field := range fields {
20234 switch field.Name {
20235 case "__typename":
20236 out.Values[i] = graphql.MarshalString("DuplicateSpec")
20237 case "duplicate":
20238 out.Values[i] = ec._DuplicateSpec_duplicate(ctx, field, obj)
20239 if out.Values[i] == graphql.Null {
20240 invalids++
20241 }
20242 case "correlation":
20243 out.Values[i] = ec._DuplicateSpec_correlation(ctx, field, obj)
20244 default:
20245 panic("unknown field " + strconv.Quote(field.Name))
20246 }
20247 }
20248 out.Dispatch()
20249 if invalids > 0 {
20250 return graphql.Null
20251 }
20252 return out
20253 }
20254
20255 var experimentStatusImplementors = []string{"ExperimentStatus"}
20256
20257 func (ec *executionContext) _ExperimentStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.ExperimentStatus) graphql.Marshaler {
20258 fields := graphql.CollectFields(ec.OperationContext, sel, experimentStatusImplementors)
20259
20260 out := graphql.NewFieldSet(fields)
20261 var invalids uint32
20262 for i, field := range fields {
20263 switch field.Name {
20264 case "__typename":
20265 out.Values[i] = graphql.MarshalString("ExperimentStatus")
20266 case "desiredPhase":
20267 field := field
20268 out.Concurrently(i, func() (res graphql.Marshaler) {
20269 defer func() {
20270 if r := recover(); r != nil {
20271 ec.Error(ctx, ec.Recover(ctx, r))
20272 }
20273 }()
20274 res = ec._ExperimentStatus_desiredPhase(ctx, field, obj)
20275 if res == graphql.Null {
20276 atomic.AddUint32(&invalids, 1)
20277 }
20278 return res
20279 })
20280 case "Records":
20281 out.Values[i] = ec._ExperimentStatus_Records(ctx, field, obj)
20282 default:
20283 panic("unknown field " + strconv.Quote(field.Name))
20284 }
20285 }
20286 out.Dispatch()
20287 if invalids > 0 {
20288 return graphql.Null
20289 }
20290 return out
20291 }
20292
20293 var fdImplementors = []string{"Fd"}
20294
20295 func (ec *executionContext) _Fd(ctx context.Context, sel ast.SelectionSet, obj *model.Fd) graphql.Marshaler {
20296 fields := graphql.CollectFields(ec.OperationContext, sel, fdImplementors)
20297
20298 out := graphql.NewFieldSet(fields)
20299 var invalids uint32
20300 for i, field := range fields {
20301 switch field.Name {
20302 case "__typename":
20303 out.Values[i] = graphql.MarshalString("Fd")
20304 case "fd":
20305 out.Values[i] = ec._Fd_fd(ctx, field, obj)
20306 if out.Values[i] == graphql.Null {
20307 invalids++
20308 }
20309 case "target":
20310 out.Values[i] = ec._Fd_target(ctx, field, obj)
20311 if out.Values[i] == graphql.Null {
20312 invalids++
20313 }
20314 default:
20315 panic("unknown field " + strconv.Quote(field.Name))
20316 }
20317 }
20318 out.Dispatch()
20319 if invalids > 0 {
20320 return graphql.Null
20321 }
20322 return out
20323 }
20324
20325 var hTTPChaosImplementors = []string{"HTTPChaos"}
20326
20327 func (ec *executionContext) _HTTPChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.HTTPChaos) graphql.Marshaler {
20328 fields := graphql.CollectFields(ec.OperationContext, sel, hTTPChaosImplementors)
20329
20330 out := graphql.NewFieldSet(fields)
20331 var invalids uint32
20332 for i, field := range fields {
20333 switch field.Name {
20334 case "__typename":
20335 out.Values[i] = graphql.MarshalString("HTTPChaos")
20336 case "kind":
20337 out.Values[i] = ec._HTTPChaos_kind(ctx, field, obj)
20338 if out.Values[i] == graphql.Null {
20339 atomic.AddUint32(&invalids, 1)
20340 }
20341 case "apiVersion":
20342 out.Values[i] = ec._HTTPChaos_apiVersion(ctx, field, obj)
20343 if out.Values[i] == graphql.Null {
20344 atomic.AddUint32(&invalids, 1)
20345 }
20346 case "name":
20347 out.Values[i] = ec._HTTPChaos_name(ctx, field, obj)
20348 if out.Values[i] == graphql.Null {
20349 atomic.AddUint32(&invalids, 1)
20350 }
20351 case "generateName":
20352 out.Values[i] = ec._HTTPChaos_generateName(ctx, field, obj)
20353 if out.Values[i] == graphql.Null {
20354 atomic.AddUint32(&invalids, 1)
20355 }
20356 case "namespace":
20357 out.Values[i] = ec._HTTPChaos_namespace(ctx, field, obj)
20358 if out.Values[i] == graphql.Null {
20359 atomic.AddUint32(&invalids, 1)
20360 }
20361 case "selfLink":
20362 out.Values[i] = ec._HTTPChaos_selfLink(ctx, field, obj)
20363 if out.Values[i] == graphql.Null {
20364 atomic.AddUint32(&invalids, 1)
20365 }
20366 case "uid":
20367 field := field
20368 out.Concurrently(i, func() (res graphql.Marshaler) {
20369 defer func() {
20370 if r := recover(); r != nil {
20371 ec.Error(ctx, ec.Recover(ctx, r))
20372 }
20373 }()
20374 res = ec._HTTPChaos_uid(ctx, field, obj)
20375 if res == graphql.Null {
20376 atomic.AddUint32(&invalids, 1)
20377 }
20378 return res
20379 })
20380 case "resourceVersion":
20381 out.Values[i] = ec._HTTPChaos_resourceVersion(ctx, field, obj)
20382 if out.Values[i] == graphql.Null {
20383 atomic.AddUint32(&invalids, 1)
20384 }
20385 case "generation":
20386 out.Values[i] = ec._HTTPChaos_generation(ctx, field, obj)
20387 if out.Values[i] == graphql.Null {
20388 atomic.AddUint32(&invalids, 1)
20389 }
20390 case "creationTimestamp":
20391 field := field
20392 out.Concurrently(i, func() (res graphql.Marshaler) {
20393 defer func() {
20394 if r := recover(); r != nil {
20395 ec.Error(ctx, ec.Recover(ctx, r))
20396 }
20397 }()
20398 res = ec._HTTPChaos_creationTimestamp(ctx, field, obj)
20399 if res == graphql.Null {
20400 atomic.AddUint32(&invalids, 1)
20401 }
20402 return res
20403 })
20404 case "deletionTimestamp":
20405 field := field
20406 out.Concurrently(i, func() (res graphql.Marshaler) {
20407 defer func() {
20408 if r := recover(); r != nil {
20409 ec.Error(ctx, ec.Recover(ctx, r))
20410 }
20411 }()
20412 res = ec._HTTPChaos_deletionTimestamp(ctx, field, obj)
20413 return res
20414 })
20415 case "deletionGracePeriodSeconds":
20416 out.Values[i] = ec._HTTPChaos_deletionGracePeriodSeconds(ctx, field, obj)
20417 case "labels":
20418 field := field
20419 out.Concurrently(i, func() (res graphql.Marshaler) {
20420 defer func() {
20421 if r := recover(); r != nil {
20422 ec.Error(ctx, ec.Recover(ctx, r))
20423 }
20424 }()
20425 res = ec._HTTPChaos_labels(ctx, field, obj)
20426 return res
20427 })
20428 case "annotations":
20429 field := field
20430 out.Concurrently(i, func() (res graphql.Marshaler) {
20431 defer func() {
20432 if r := recover(); r != nil {
20433 ec.Error(ctx, ec.Recover(ctx, r))
20434 }
20435 }()
20436 res = ec._HTTPChaos_annotations(ctx, field, obj)
20437 return res
20438 })
20439 case "ownerReferences":
20440 out.Values[i] = ec._HTTPChaos_ownerReferences(ctx, field, obj)
20441 case "finalizers":
20442 out.Values[i] = ec._HTTPChaos_finalizers(ctx, field, obj)
20443 case "clusterName":
20444 out.Values[i] = ec._HTTPChaos_clusterName(ctx, field, obj)
20445 if out.Values[i] == graphql.Null {
20446 atomic.AddUint32(&invalids, 1)
20447 }
20448 case "spec":
20449 out.Values[i] = ec._HTTPChaos_spec(ctx, field, obj)
20450 if out.Values[i] == graphql.Null {
20451 atomic.AddUint32(&invalids, 1)
20452 }
20453 case "status":
20454 out.Values[i] = ec._HTTPChaos_status(ctx, field, obj)
20455 if out.Values[i] == graphql.Null {
20456 atomic.AddUint32(&invalids, 1)
20457 }
20458 case "podhttp":
20459 field := field
20460 out.Concurrently(i, func() (res graphql.Marshaler) {
20461 defer func() {
20462 if r := recover(); r != nil {
20463 ec.Error(ctx, ec.Recover(ctx, r))
20464 }
20465 }()
20466 res = ec._HTTPChaos_podhttp(ctx, field, obj)
20467 return res
20468 })
20469 default:
20470 panic("unknown field " + strconv.Quote(field.Name))
20471 }
20472 }
20473 out.Dispatch()
20474 if invalids > 0 {
20475 return graphql.Null
20476 }
20477 return out
20478 }
20479
20480 var hTTPChaosSpecImplementors = []string{"HTTPChaosSpec"}
20481
20482 func (ec *executionContext) _HTTPChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.HTTPChaosSpec) graphql.Marshaler {
20483 fields := graphql.CollectFields(ec.OperationContext, sel, hTTPChaosSpecImplementors)
20484
20485 out := graphql.NewFieldSet(fields)
20486 var invalids uint32
20487 for i, field := range fields {
20488 switch field.Name {
20489 case "__typename":
20490 out.Values[i] = graphql.MarshalString("HTTPChaosSpec")
20491 case "selector":
20492 out.Values[i] = ec._HTTPChaosSpec_selector(ctx, field, obj)
20493 if out.Values[i] == graphql.Null {
20494 atomic.AddUint32(&invalids, 1)
20495 }
20496 case "mode":
20497 field := field
20498 out.Concurrently(i, func() (res graphql.Marshaler) {
20499 defer func() {
20500 if r := recover(); r != nil {
20501 ec.Error(ctx, ec.Recover(ctx, r))
20502 }
20503 }()
20504 res = ec._HTTPChaosSpec_mode(ctx, field, obj)
20505 if res == graphql.Null {
20506 atomic.AddUint32(&invalids, 1)
20507 }
20508 return res
20509 })
20510 case "value":
20511 out.Values[i] = ec._HTTPChaosSpec_value(ctx, field, obj)
20512 case "target":
20513 field := field
20514 out.Concurrently(i, func() (res graphql.Marshaler) {
20515 defer func() {
20516 if r := recover(); r != nil {
20517 ec.Error(ctx, ec.Recover(ctx, r))
20518 }
20519 }()
20520 res = ec._HTTPChaosSpec_target(ctx, field, obj)
20521 if res == graphql.Null {
20522 atomic.AddUint32(&invalids, 1)
20523 }
20524 return res
20525 })
20526 case "abort":
20527 out.Values[i] = ec._HTTPChaosSpec_abort(ctx, field, obj)
20528 case "delay":
20529 out.Values[i] = ec._HTTPChaosSpec_delay(ctx, field, obj)
20530 case "replace":
20531 out.Values[i] = ec._HTTPChaosSpec_replace(ctx, field, obj)
20532 case "patch":
20533 out.Values[i] = ec._HTTPChaosSpec_patch(ctx, field, obj)
20534 case "port":
20535 out.Values[i] = ec._HTTPChaosSpec_port(ctx, field, obj)
20536 case "path":
20537 out.Values[i] = ec._HTTPChaosSpec_path(ctx, field, obj)
20538 case "method":
20539 out.Values[i] = ec._HTTPChaosSpec_method(ctx, field, obj)
20540 case "code":
20541 out.Values[i] = ec._HTTPChaosSpec_code(ctx, field, obj)
20542 case "requestHeaders":
20543 field := field
20544 out.Concurrently(i, func() (res graphql.Marshaler) {
20545 defer func() {
20546 if r := recover(); r != nil {
20547 ec.Error(ctx, ec.Recover(ctx, r))
20548 }
20549 }()
20550 res = ec._HTTPChaosSpec_requestHeaders(ctx, field, obj)
20551 return res
20552 })
20553 case "responseHeaders":
20554 field := field
20555 out.Concurrently(i, func() (res graphql.Marshaler) {
20556 defer func() {
20557 if r := recover(); r != nil {
20558 ec.Error(ctx, ec.Recover(ctx, r))
20559 }
20560 }()
20561 res = ec._HTTPChaosSpec_responseHeaders(ctx, field, obj)
20562 return res
20563 })
20564 case "duration":
20565 out.Values[i] = ec._HTTPChaosSpec_duration(ctx, field, obj)
20566 default:
20567 panic("unknown field " + strconv.Quote(field.Name))
20568 }
20569 }
20570 out.Dispatch()
20571 if invalids > 0 {
20572 return graphql.Null
20573 }
20574 return out
20575 }
20576
20577 var hTTPChaosStatusImplementors = []string{"HTTPChaosStatus"}
20578
20579 func (ec *executionContext) _HTTPChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.HTTPChaosStatus) graphql.Marshaler {
20580 fields := graphql.CollectFields(ec.OperationContext, sel, hTTPChaosStatusImplementors)
20581
20582 out := graphql.NewFieldSet(fields)
20583 var invalids uint32
20584 for i, field := range fields {
20585 switch field.Name {
20586 case "__typename":
20587 out.Values[i] = graphql.MarshalString("HTTPChaosStatus")
20588 case "conditions":
20589 out.Values[i] = ec._HTTPChaosStatus_conditions(ctx, field, obj)
20590 case "experiment":
20591 out.Values[i] = ec._HTTPChaosStatus_experiment(ctx, field, obj)
20592 case "instances":
20593 field := field
20594 out.Concurrently(i, func() (res graphql.Marshaler) {
20595 defer func() {
20596 if r := recover(); r != nil {
20597 ec.Error(ctx, ec.Recover(ctx, r))
20598 }
20599 }()
20600 res = ec._HTTPChaosStatus_instances(ctx, field, obj)
20601 return res
20602 })
20603 default:
20604 panic("unknown field " + strconv.Quote(field.Name))
20605 }
20606 }
20607 out.Dispatch()
20608 if invalids > 0 {
20609 return graphql.Null
20610 }
20611 return out
20612 }
20613
20614 var iOChaosImplementors = []string{"IOChaos"}
20615
20616 func (ec *executionContext) _IOChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaos) graphql.Marshaler {
20617 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosImplementors)
20618
20619 out := graphql.NewFieldSet(fields)
20620 var invalids uint32
20621 for i, field := range fields {
20622 switch field.Name {
20623 case "__typename":
20624 out.Values[i] = graphql.MarshalString("IOChaos")
20625 case "kind":
20626 out.Values[i] = ec._IOChaos_kind(ctx, field, obj)
20627 if out.Values[i] == graphql.Null {
20628 atomic.AddUint32(&invalids, 1)
20629 }
20630 case "apiVersion":
20631 out.Values[i] = ec._IOChaos_apiVersion(ctx, field, obj)
20632 if out.Values[i] == graphql.Null {
20633 atomic.AddUint32(&invalids, 1)
20634 }
20635 case "name":
20636 out.Values[i] = ec._IOChaos_name(ctx, field, obj)
20637 if out.Values[i] == graphql.Null {
20638 atomic.AddUint32(&invalids, 1)
20639 }
20640 case "generateName":
20641 out.Values[i] = ec._IOChaos_generateName(ctx, field, obj)
20642 if out.Values[i] == graphql.Null {
20643 atomic.AddUint32(&invalids, 1)
20644 }
20645 case "namespace":
20646 out.Values[i] = ec._IOChaos_namespace(ctx, field, obj)
20647 if out.Values[i] == graphql.Null {
20648 atomic.AddUint32(&invalids, 1)
20649 }
20650 case "selfLink":
20651 out.Values[i] = ec._IOChaos_selfLink(ctx, field, obj)
20652 if out.Values[i] == graphql.Null {
20653 atomic.AddUint32(&invalids, 1)
20654 }
20655 case "uid":
20656 field := field
20657 out.Concurrently(i, func() (res graphql.Marshaler) {
20658 defer func() {
20659 if r := recover(); r != nil {
20660 ec.Error(ctx, ec.Recover(ctx, r))
20661 }
20662 }()
20663 res = ec._IOChaos_uid(ctx, field, obj)
20664 if res == graphql.Null {
20665 atomic.AddUint32(&invalids, 1)
20666 }
20667 return res
20668 })
20669 case "resourceVersion":
20670 out.Values[i] = ec._IOChaos_resourceVersion(ctx, field, obj)
20671 if out.Values[i] == graphql.Null {
20672 atomic.AddUint32(&invalids, 1)
20673 }
20674 case "generation":
20675 out.Values[i] = ec._IOChaos_generation(ctx, field, obj)
20676 if out.Values[i] == graphql.Null {
20677 atomic.AddUint32(&invalids, 1)
20678 }
20679 case "creationTimestamp":
20680 field := field
20681 out.Concurrently(i, func() (res graphql.Marshaler) {
20682 defer func() {
20683 if r := recover(); r != nil {
20684 ec.Error(ctx, ec.Recover(ctx, r))
20685 }
20686 }()
20687 res = ec._IOChaos_creationTimestamp(ctx, field, obj)
20688 if res == graphql.Null {
20689 atomic.AddUint32(&invalids, 1)
20690 }
20691 return res
20692 })
20693 case "deletionTimestamp":
20694 field := field
20695 out.Concurrently(i, func() (res graphql.Marshaler) {
20696 defer func() {
20697 if r := recover(); r != nil {
20698 ec.Error(ctx, ec.Recover(ctx, r))
20699 }
20700 }()
20701 res = ec._IOChaos_deletionTimestamp(ctx, field, obj)
20702 return res
20703 })
20704 case "deletionGracePeriodSeconds":
20705 out.Values[i] = ec._IOChaos_deletionGracePeriodSeconds(ctx, field, obj)
20706 case "labels":
20707 field := field
20708 out.Concurrently(i, func() (res graphql.Marshaler) {
20709 defer func() {
20710 if r := recover(); r != nil {
20711 ec.Error(ctx, ec.Recover(ctx, r))
20712 }
20713 }()
20714 res = ec._IOChaos_labels(ctx, field, obj)
20715 return res
20716 })
20717 case "annotations":
20718 field := field
20719 out.Concurrently(i, func() (res graphql.Marshaler) {
20720 defer func() {
20721 if r := recover(); r != nil {
20722 ec.Error(ctx, ec.Recover(ctx, r))
20723 }
20724 }()
20725 res = ec._IOChaos_annotations(ctx, field, obj)
20726 return res
20727 })
20728 case "ownerReferences":
20729 out.Values[i] = ec._IOChaos_ownerReferences(ctx, field, obj)
20730 case "finalizers":
20731 out.Values[i] = ec._IOChaos_finalizers(ctx, field, obj)
20732 case "clusterName":
20733 out.Values[i] = ec._IOChaos_clusterName(ctx, field, obj)
20734 if out.Values[i] == graphql.Null {
20735 atomic.AddUint32(&invalids, 1)
20736 }
20737 case "spec":
20738 out.Values[i] = ec._IOChaos_spec(ctx, field, obj)
20739 if out.Values[i] == graphql.Null {
20740 atomic.AddUint32(&invalids, 1)
20741 }
20742 case "status":
20743 out.Values[i] = ec._IOChaos_status(ctx, field, obj)
20744 if out.Values[i] == graphql.Null {
20745 atomic.AddUint32(&invalids, 1)
20746 }
20747 case "podios":
20748 field := field
20749 out.Concurrently(i, func() (res graphql.Marshaler) {
20750 defer func() {
20751 if r := recover(); r != nil {
20752 ec.Error(ctx, ec.Recover(ctx, r))
20753 }
20754 }()
20755 res = ec._IOChaos_podios(ctx, field, obj)
20756 return res
20757 })
20758 default:
20759 panic("unknown field " + strconv.Quote(field.Name))
20760 }
20761 }
20762 out.Dispatch()
20763 if invalids > 0 {
20764 return graphql.Null
20765 }
20766 return out
20767 }
20768
20769 var iOChaosActionImplementors = []string{"IOChaosAction"}
20770
20771 func (ec *executionContext) _IOChaosAction(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaosAction) graphql.Marshaler {
20772 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosActionImplementors)
20773
20774 out := graphql.NewFieldSet(fields)
20775 var invalids uint32
20776 for i, field := range fields {
20777 switch field.Name {
20778 case "__typename":
20779 out.Values[i] = graphql.MarshalString("IOChaosAction")
20780 case "type":
20781 field := field
20782 out.Concurrently(i, func() (res graphql.Marshaler) {
20783 defer func() {
20784 if r := recover(); r != nil {
20785 ec.Error(ctx, ec.Recover(ctx, r))
20786 }
20787 }()
20788 res = ec._IOChaosAction_type(ctx, field, obj)
20789 if res == graphql.Null {
20790 atomic.AddUint32(&invalids, 1)
20791 }
20792 return res
20793 })
20794 case "path":
20795 out.Values[i] = ec._IOChaosAction_path(ctx, field, obj)
20796 if out.Values[i] == graphql.Null {
20797 atomic.AddUint32(&invalids, 1)
20798 }
20799 case "methods":
20800 field := field
20801 out.Concurrently(i, func() (res graphql.Marshaler) {
20802 defer func() {
20803 if r := recover(); r != nil {
20804 ec.Error(ctx, ec.Recover(ctx, r))
20805 }
20806 }()
20807 res = ec._IOChaosAction_methods(ctx, field, obj)
20808 return res
20809 })
20810 case "percent":
20811 out.Values[i] = ec._IOChaosAction_percent(ctx, field, obj)
20812 case "faults":
20813 out.Values[i] = ec._IOChaosAction_faults(ctx, field, obj)
20814 case "latency":
20815 out.Values[i] = ec._IOChaosAction_latency(ctx, field, obj)
20816 case "ino":
20817 field := field
20818 out.Concurrently(i, func() (res graphql.Marshaler) {
20819 defer func() {
20820 if r := recover(); r != nil {
20821 ec.Error(ctx, ec.Recover(ctx, r))
20822 }
20823 }()
20824 res = ec._IOChaosAction_ino(ctx, field, obj)
20825 return res
20826 })
20827 case "size":
20828 field := field
20829 out.Concurrently(i, func() (res graphql.Marshaler) {
20830 defer func() {
20831 if r := recover(); r != nil {
20832 ec.Error(ctx, ec.Recover(ctx, r))
20833 }
20834 }()
20835 res = ec._IOChaosAction_size(ctx, field, obj)
20836 return res
20837 })
20838 case "blocks":
20839 field := field
20840 out.Concurrently(i, func() (res graphql.Marshaler) {
20841 defer func() {
20842 if r := recover(); r != nil {
20843 ec.Error(ctx, ec.Recover(ctx, r))
20844 }
20845 }()
20846 res = ec._IOChaosAction_blocks(ctx, field, obj)
20847 return res
20848 })
20849 case "atime":
20850 out.Values[i] = ec._IOChaosAction_atime(ctx, field, obj)
20851 case "mtime":
20852 out.Values[i] = ec._IOChaosAction_mtime(ctx, field, obj)
20853 case "ctime":
20854 out.Values[i] = ec._IOChaosAction_ctime(ctx, field, obj)
20855 case "kind":
20856 field := field
20857 out.Concurrently(i, func() (res graphql.Marshaler) {
20858 defer func() {
20859 if r := recover(); r != nil {
20860 ec.Error(ctx, ec.Recover(ctx, r))
20861 }
20862 }()
20863 res = ec._IOChaosAction_kind(ctx, field, obj)
20864 return res
20865 })
20866 case "perm":
20867 field := field
20868 out.Concurrently(i, func() (res graphql.Marshaler) {
20869 defer func() {
20870 if r := recover(); r != nil {
20871 ec.Error(ctx, ec.Recover(ctx, r))
20872 }
20873 }()
20874 res = ec._IOChaosAction_perm(ctx, field, obj)
20875 return res
20876 })
20877 case "nlink":
20878 field := field
20879 out.Concurrently(i, func() (res graphql.Marshaler) {
20880 defer func() {
20881 if r := recover(); r != nil {
20882 ec.Error(ctx, ec.Recover(ctx, r))
20883 }
20884 }()
20885 res = ec._IOChaosAction_nlink(ctx, field, obj)
20886 return res
20887 })
20888 case "uid":
20889 field := field
20890 out.Concurrently(i, func() (res graphql.Marshaler) {
20891 defer func() {
20892 if r := recover(); r != nil {
20893 ec.Error(ctx, ec.Recover(ctx, r))
20894 }
20895 }()
20896 res = ec._IOChaosAction_uid(ctx, field, obj)
20897 return res
20898 })
20899 case "gid":
20900 field := field
20901 out.Concurrently(i, func() (res graphql.Marshaler) {
20902 defer func() {
20903 if r := recover(); r != nil {
20904 ec.Error(ctx, ec.Recover(ctx, r))
20905 }
20906 }()
20907 res = ec._IOChaosAction_gid(ctx, field, obj)
20908 return res
20909 })
20910 case "rdev":
20911 field := field
20912 out.Concurrently(i, func() (res graphql.Marshaler) {
20913 defer func() {
20914 if r := recover(); r != nil {
20915 ec.Error(ctx, ec.Recover(ctx, r))
20916 }
20917 }()
20918 res = ec._IOChaosAction_rdev(ctx, field, obj)
20919 return res
20920 })
20921 case "filling":
20922 field := field
20923 out.Concurrently(i, func() (res graphql.Marshaler) {
20924 defer func() {
20925 if r := recover(); r != nil {
20926 ec.Error(ctx, ec.Recover(ctx, r))
20927 }
20928 }()
20929 res = ec._IOChaosAction_filling(ctx, field, obj)
20930 return res
20931 })
20932 case "maxOccurrences":
20933 out.Values[i] = ec._IOChaosAction_maxOccurrences(ctx, field, obj)
20934 case "maxLength":
20935 out.Values[i] = ec._IOChaosAction_maxLength(ctx, field, obj)
20936 case "source":
20937 out.Values[i] = ec._IOChaosAction_source(ctx, field, obj)
20938 if out.Values[i] == graphql.Null {
20939 atomic.AddUint32(&invalids, 1)
20940 }
20941 default:
20942 panic("unknown field " + strconv.Quote(field.Name))
20943 }
20944 }
20945 out.Dispatch()
20946 if invalids > 0 {
20947 return graphql.Null
20948 }
20949 return out
20950 }
20951
20952 var iOChaosSpecImplementors = []string{"IOChaosSpec"}
20953
20954 func (ec *executionContext) _IOChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaosSpec) graphql.Marshaler {
20955 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosSpecImplementors)
20956
20957 out := graphql.NewFieldSet(fields)
20958 var invalids uint32
20959 for i, field := range fields {
20960 switch field.Name {
20961 case "__typename":
20962 out.Values[i] = graphql.MarshalString("IOChaosSpec")
20963 case "containerNames":
20964 out.Values[i] = ec._IOChaosSpec_containerNames(ctx, field, obj)
20965 case "selector":
20966 out.Values[i] = ec._IOChaosSpec_selector(ctx, field, obj)
20967 if out.Values[i] == graphql.Null {
20968 atomic.AddUint32(&invalids, 1)
20969 }
20970 case "mode":
20971 field := field
20972 out.Concurrently(i, func() (res graphql.Marshaler) {
20973 defer func() {
20974 if r := recover(); r != nil {
20975 ec.Error(ctx, ec.Recover(ctx, r))
20976 }
20977 }()
20978 res = ec._IOChaosSpec_mode(ctx, field, obj)
20979 if res == graphql.Null {
20980 atomic.AddUint32(&invalids, 1)
20981 }
20982 return res
20983 })
20984 case "value":
20985 out.Values[i] = ec._IOChaosSpec_value(ctx, field, obj)
20986 case "action":
20987 field := field
20988 out.Concurrently(i, func() (res graphql.Marshaler) {
20989 defer func() {
20990 if r := recover(); r != nil {
20991 ec.Error(ctx, ec.Recover(ctx, r))
20992 }
20993 }()
20994 res = ec._IOChaosSpec_action(ctx, field, obj)
20995 if res == graphql.Null {
20996 atomic.AddUint32(&invalids, 1)
20997 }
20998 return res
20999 })
21000 case "delay":
21001 out.Values[i] = ec._IOChaosSpec_delay(ctx, field, obj)
21002 case "errno":
21003 field := field
21004 out.Concurrently(i, func() (res graphql.Marshaler) {
21005 defer func() {
21006 if r := recover(); r != nil {
21007 ec.Error(ctx, ec.Recover(ctx, r))
21008 }
21009 }()
21010 res = ec._IOChaosSpec_errno(ctx, field, obj)
21011 return res
21012 })
21013 case "attr":
21014 out.Values[i] = ec._IOChaosSpec_attr(ctx, field, obj)
21015 case "mistake":
21016 out.Values[i] = ec._IOChaosSpec_mistake(ctx, field, obj)
21017 case "path":
21018 out.Values[i] = ec._IOChaosSpec_path(ctx, field, obj)
21019 case "methods":
21020 field := field
21021 out.Concurrently(i, func() (res graphql.Marshaler) {
21022 defer func() {
21023 if r := recover(); r != nil {
21024 ec.Error(ctx, ec.Recover(ctx, r))
21025 }
21026 }()
21027 res = ec._IOChaosSpec_methods(ctx, field, obj)
21028 return res
21029 })
21030 case "percent":
21031 out.Values[i] = ec._IOChaosSpec_percent(ctx, field, obj)
21032 case "volumePath":
21033 out.Values[i] = ec._IOChaosSpec_volumePath(ctx, field, obj)
21034 if out.Values[i] == graphql.Null {
21035 atomic.AddUint32(&invalids, 1)
21036 }
21037 case "duration":
21038 out.Values[i] = ec._IOChaosSpec_duration(ctx, field, obj)
21039 default:
21040 panic("unknown field " + strconv.Quote(field.Name))
21041 }
21042 }
21043 out.Dispatch()
21044 if invalids > 0 {
21045 return graphql.Null
21046 }
21047 return out
21048 }
21049
21050 var iOChaosStatusImplementors = []string{"IOChaosStatus"}
21051
21052 func (ec *executionContext) _IOChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IOChaosStatus) graphql.Marshaler {
21053 fields := graphql.CollectFields(ec.OperationContext, sel, iOChaosStatusImplementors)
21054
21055 out := graphql.NewFieldSet(fields)
21056 var invalids uint32
21057 for i, field := range fields {
21058 switch field.Name {
21059 case "__typename":
21060 out.Values[i] = graphql.MarshalString("IOChaosStatus")
21061 case "conditions":
21062 out.Values[i] = ec._IOChaosStatus_conditions(ctx, field, obj)
21063 case "experiment":
21064 out.Values[i] = ec._IOChaosStatus_experiment(ctx, field, obj)
21065 case "instances":
21066 field := field
21067 out.Concurrently(i, func() (res graphql.Marshaler) {
21068 defer func() {
21069 if r := recover(); r != nil {
21070 ec.Error(ctx, ec.Recover(ctx, r))
21071 }
21072 }()
21073 res = ec._IOChaosStatus_instances(ctx, field, obj)
21074 return res
21075 })
21076 default:
21077 panic("unknown field " + strconv.Quote(field.Name))
21078 }
21079 }
21080 out.Dispatch()
21081 if invalids > 0 {
21082 return graphql.Null
21083 }
21084 return out
21085 }
21086
21087 var ioFaultImplementors = []string{"IoFault"}
21088
21089 func (ec *executionContext) _IoFault(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.IoFault) graphql.Marshaler {
21090 fields := graphql.CollectFields(ec.OperationContext, sel, ioFaultImplementors)
21091
21092 out := graphql.NewFieldSet(fields)
21093 var invalids uint32
21094 for i, field := range fields {
21095 switch field.Name {
21096 case "__typename":
21097 out.Values[i] = graphql.MarshalString("IoFault")
21098 case "errno":
21099 field := field
21100 out.Concurrently(i, func() (res graphql.Marshaler) {
21101 defer func() {
21102 if r := recover(); r != nil {
21103 ec.Error(ctx, ec.Recover(ctx, r))
21104 }
21105 }()
21106 res = ec._IoFault_errno(ctx, field, obj)
21107 if res == graphql.Null {
21108 atomic.AddUint32(&invalids, 1)
21109 }
21110 return res
21111 })
21112 case "weight":
21113 out.Values[i] = ec._IoFault_weight(ctx, field, obj)
21114 if out.Values[i] == graphql.Null {
21115 atomic.AddUint32(&invalids, 1)
21116 }
21117 default:
21118 panic("unknown field " + strconv.Quote(field.Name))
21119 }
21120 }
21121 out.Dispatch()
21122 if invalids > 0 {
21123 return graphql.Null
21124 }
21125 return out
21126 }
21127
21128 var loggerImplementors = []string{"Logger"}
21129
21130 func (ec *executionContext) _Logger(ctx context.Context, sel ast.SelectionSet) func() graphql.Marshaler {
21131 fields := graphql.CollectFields(ec.OperationContext, sel, loggerImplementors)
21132 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
21133 Object: "Logger",
21134 })
21135 if len(fields) != 1 {
21136 ec.Errorf(ctx, "must subscribe to exactly one stream")
21137 return nil
21138 }
21139
21140 switch fields[0].Name {
21141 case "component":
21142 return ec._Logger_component(ctx, fields[0])
21143 case "pod":
21144 return ec._Logger_pod(ctx, fields[0])
21145 default:
21146 panic("unknown field " + strconv.Quote(fields[0].Name))
21147 }
21148 }
21149
21150 var lossSpecImplementors = []string{"LossSpec"}
21151
21152 func (ec *executionContext) _LossSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.LossSpec) graphql.Marshaler {
21153 fields := graphql.CollectFields(ec.OperationContext, sel, lossSpecImplementors)
21154
21155 out := graphql.NewFieldSet(fields)
21156 var invalids uint32
21157 for i, field := range fields {
21158 switch field.Name {
21159 case "__typename":
21160 out.Values[i] = graphql.MarshalString("LossSpec")
21161 case "loss":
21162 out.Values[i] = ec._LossSpec_loss(ctx, field, obj)
21163 if out.Values[i] == graphql.Null {
21164 invalids++
21165 }
21166 case "correlation":
21167 out.Values[i] = ec._LossSpec_correlation(ctx, field, obj)
21168 default:
21169 panic("unknown field " + strconv.Quote(field.Name))
21170 }
21171 }
21172 out.Dispatch()
21173 if invalids > 0 {
21174 return graphql.Null
21175 }
21176 return out
21177 }
21178
21179 var mistakeSpecImplementors = []string{"MistakeSpec"}
21180
21181 func (ec *executionContext) _MistakeSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.MistakeSpec) graphql.Marshaler {
21182 fields := graphql.CollectFields(ec.OperationContext, sel, mistakeSpecImplementors)
21183
21184 out := graphql.NewFieldSet(fields)
21185 var invalids uint32
21186 for i, field := range fields {
21187 switch field.Name {
21188 case "__typename":
21189 out.Values[i] = graphql.MarshalString("MistakeSpec")
21190 case "filling":
21191 field := field
21192 out.Concurrently(i, func() (res graphql.Marshaler) {
21193 defer func() {
21194 if r := recover(); r != nil {
21195 ec.Error(ctx, ec.Recover(ctx, r))
21196 }
21197 }()
21198 res = ec._MistakeSpec_filling(ctx, field, obj)
21199 return res
21200 })
21201 case "maxOccurrences":
21202 out.Values[i] = ec._MistakeSpec_maxOccurrences(ctx, field, obj)
21203 case "maxLength":
21204 out.Values[i] = ec._MistakeSpec_maxLength(ctx, field, obj)
21205 default:
21206 panic("unknown field " + strconv.Quote(field.Name))
21207 }
21208 }
21209 out.Dispatch()
21210 if invalids > 0 {
21211 return graphql.Null
21212 }
21213 return out
21214 }
21215
21216 var namespaceImplementors = []string{"Namespace"}
21217
21218 func (ec *executionContext) _Namespace(ctx context.Context, sel ast.SelectionSet, obj *model.Namespace) graphql.Marshaler {
21219 fields := graphql.CollectFields(ec.OperationContext, sel, namespaceImplementors)
21220
21221 out := graphql.NewFieldSet(fields)
21222 var invalids uint32
21223 for i, field := range fields {
21224 switch field.Name {
21225 case "__typename":
21226 out.Values[i] = graphql.MarshalString("Namespace")
21227 case "ns":
21228 out.Values[i] = ec._Namespace_ns(ctx, field, obj)
21229 if out.Values[i] == graphql.Null {
21230 atomic.AddUint32(&invalids, 1)
21231 }
21232 case "component":
21233 field := field
21234 out.Concurrently(i, func() (res graphql.Marshaler) {
21235 defer func() {
21236 if r := recover(); r != nil {
21237 ec.Error(ctx, ec.Recover(ctx, r))
21238 }
21239 }()
21240 res = ec._Namespace_component(ctx, field, obj)
21241 return res
21242 })
21243 case "pod":
21244 field := field
21245 out.Concurrently(i, func() (res graphql.Marshaler) {
21246 defer func() {
21247 if r := recover(); r != nil {
21248 ec.Error(ctx, ec.Recover(ctx, r))
21249 }
21250 }()
21251 res = ec._Namespace_pod(ctx, field, obj)
21252 return res
21253 })
21254 case "stresschaos":
21255 field := field
21256 out.Concurrently(i, func() (res graphql.Marshaler) {
21257 defer func() {
21258 if r := recover(); r != nil {
21259 ec.Error(ctx, ec.Recover(ctx, r))
21260 }
21261 }()
21262 res = ec._Namespace_stresschaos(ctx, field, obj)
21263 return res
21264 })
21265 case "iochaos":
21266 field := field
21267 out.Concurrently(i, func() (res graphql.Marshaler) {
21268 defer func() {
21269 if r := recover(); r != nil {
21270 ec.Error(ctx, ec.Recover(ctx, r))
21271 }
21272 }()
21273 res = ec._Namespace_iochaos(ctx, field, obj)
21274 return res
21275 })
21276 case "podiochaos":
21277 field := field
21278 out.Concurrently(i, func() (res graphql.Marshaler) {
21279 defer func() {
21280 if r := recover(); r != nil {
21281 ec.Error(ctx, ec.Recover(ctx, r))
21282 }
21283 }()
21284 res = ec._Namespace_podiochaos(ctx, field, obj)
21285 return res
21286 })
21287 case "httpchaos":
21288 field := field
21289 out.Concurrently(i, func() (res graphql.Marshaler) {
21290 defer func() {
21291 if r := recover(); r != nil {
21292 ec.Error(ctx, ec.Recover(ctx, r))
21293 }
21294 }()
21295 res = ec._Namespace_httpchaos(ctx, field, obj)
21296 return res
21297 })
21298 case "podhttpchaos":
21299 field := field
21300 out.Concurrently(i, func() (res graphql.Marshaler) {
21301 defer func() {
21302 if r := recover(); r != nil {
21303 ec.Error(ctx, ec.Recover(ctx, r))
21304 }
21305 }()
21306 res = ec._Namespace_podhttpchaos(ctx, field, obj)
21307 return res
21308 })
21309 case "networkchaos":
21310 field := field
21311 out.Concurrently(i, func() (res graphql.Marshaler) {
21312 defer func() {
21313 if r := recover(); r != nil {
21314 ec.Error(ctx, ec.Recover(ctx, r))
21315 }
21316 }()
21317 res = ec._Namespace_networkchaos(ctx, field, obj)
21318 return res
21319 })
21320 case "podnetworkchaos":
21321 field := field
21322 out.Concurrently(i, func() (res graphql.Marshaler) {
21323 defer func() {
21324 if r := recover(); r != nil {
21325 ec.Error(ctx, ec.Recover(ctx, r))
21326 }
21327 }()
21328 res = ec._Namespace_podnetworkchaos(ctx, field, obj)
21329 return res
21330 })
21331 default:
21332 panic("unknown field " + strconv.Quote(field.Name))
21333 }
21334 }
21335 out.Dispatch()
21336 if invalids > 0 {
21337 return graphql.Null
21338 }
21339 return out
21340 }
21341
21342 var networkChaosImplementors = []string{"NetworkChaos"}
21343
21344 func (ec *executionContext) _NetworkChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.NetworkChaos) graphql.Marshaler {
21345 fields := graphql.CollectFields(ec.OperationContext, sel, networkChaosImplementors)
21346
21347 out := graphql.NewFieldSet(fields)
21348 var invalids uint32
21349 for i, field := range fields {
21350 switch field.Name {
21351 case "__typename":
21352 out.Values[i] = graphql.MarshalString("NetworkChaos")
21353 case "kind":
21354 out.Values[i] = ec._NetworkChaos_kind(ctx, field, obj)
21355 if out.Values[i] == graphql.Null {
21356 atomic.AddUint32(&invalids, 1)
21357 }
21358 case "apiVersion":
21359 out.Values[i] = ec._NetworkChaos_apiVersion(ctx, field, obj)
21360 if out.Values[i] == graphql.Null {
21361 atomic.AddUint32(&invalids, 1)
21362 }
21363 case "name":
21364 out.Values[i] = ec._NetworkChaos_name(ctx, field, obj)
21365 if out.Values[i] == graphql.Null {
21366 atomic.AddUint32(&invalids, 1)
21367 }
21368 case "generateName":
21369 out.Values[i] = ec._NetworkChaos_generateName(ctx, field, obj)
21370 if out.Values[i] == graphql.Null {
21371 atomic.AddUint32(&invalids, 1)
21372 }
21373 case "namespace":
21374 out.Values[i] = ec._NetworkChaos_namespace(ctx, field, obj)
21375 if out.Values[i] == graphql.Null {
21376 atomic.AddUint32(&invalids, 1)
21377 }
21378 case "selfLink":
21379 out.Values[i] = ec._NetworkChaos_selfLink(ctx, field, obj)
21380 if out.Values[i] == graphql.Null {
21381 atomic.AddUint32(&invalids, 1)
21382 }
21383 case "uid":
21384 field := field
21385 out.Concurrently(i, func() (res graphql.Marshaler) {
21386 defer func() {
21387 if r := recover(); r != nil {
21388 ec.Error(ctx, ec.Recover(ctx, r))
21389 }
21390 }()
21391 res = ec._NetworkChaos_uid(ctx, field, obj)
21392 if res == graphql.Null {
21393 atomic.AddUint32(&invalids, 1)
21394 }
21395 return res
21396 })
21397 case "resourceVersion":
21398 out.Values[i] = ec._NetworkChaos_resourceVersion(ctx, field, obj)
21399 if out.Values[i] == graphql.Null {
21400 atomic.AddUint32(&invalids, 1)
21401 }
21402 case "generation":
21403 out.Values[i] = ec._NetworkChaos_generation(ctx, field, obj)
21404 if out.Values[i] == graphql.Null {
21405 atomic.AddUint32(&invalids, 1)
21406 }
21407 case "creationTimestamp":
21408 field := field
21409 out.Concurrently(i, func() (res graphql.Marshaler) {
21410 defer func() {
21411 if r := recover(); r != nil {
21412 ec.Error(ctx, ec.Recover(ctx, r))
21413 }
21414 }()
21415 res = ec._NetworkChaos_creationTimestamp(ctx, field, obj)
21416 if res == graphql.Null {
21417 atomic.AddUint32(&invalids, 1)
21418 }
21419 return res
21420 })
21421 case "deletionTimestamp":
21422 field := field
21423 out.Concurrently(i, func() (res graphql.Marshaler) {
21424 defer func() {
21425 if r := recover(); r != nil {
21426 ec.Error(ctx, ec.Recover(ctx, r))
21427 }
21428 }()
21429 res = ec._NetworkChaos_deletionTimestamp(ctx, field, obj)
21430 return res
21431 })
21432 case "deletionGracePeriodSeconds":
21433 out.Values[i] = ec._NetworkChaos_deletionGracePeriodSeconds(ctx, field, obj)
21434 case "labels":
21435 field := field
21436 out.Concurrently(i, func() (res graphql.Marshaler) {
21437 defer func() {
21438 if r := recover(); r != nil {
21439 ec.Error(ctx, ec.Recover(ctx, r))
21440 }
21441 }()
21442 res = ec._NetworkChaos_labels(ctx, field, obj)
21443 return res
21444 })
21445 case "annotations":
21446 field := field
21447 out.Concurrently(i, func() (res graphql.Marshaler) {
21448 defer func() {
21449 if r := recover(); r != nil {
21450 ec.Error(ctx, ec.Recover(ctx, r))
21451 }
21452 }()
21453 res = ec._NetworkChaos_annotations(ctx, field, obj)
21454 return res
21455 })
21456 case "ownerReferences":
21457 out.Values[i] = ec._NetworkChaos_ownerReferences(ctx, field, obj)
21458 case "finalizers":
21459 out.Values[i] = ec._NetworkChaos_finalizers(ctx, field, obj)
21460 case "clusterName":
21461 out.Values[i] = ec._NetworkChaos_clusterName(ctx, field, obj)
21462 if out.Values[i] == graphql.Null {
21463 atomic.AddUint32(&invalids, 1)
21464 }
21465 case "podnetwork":
21466 field := field
21467 out.Concurrently(i, func() (res graphql.Marshaler) {
21468 defer func() {
21469 if r := recover(); r != nil {
21470 ec.Error(ctx, ec.Recover(ctx, r))
21471 }
21472 }()
21473 res = ec._NetworkChaos_podnetwork(ctx, field, obj)
21474 return res
21475 })
21476 default:
21477 panic("unknown field " + strconv.Quote(field.Name))
21478 }
21479 }
21480 out.Dispatch()
21481 if invalids > 0 {
21482 return graphql.Null
21483 }
21484 return out
21485 }
21486
21487 var ownerReferenceImplementors = []string{"OwnerReference"}
21488
21489 func (ec *executionContext) _OwnerReference(ctx context.Context, sel ast.SelectionSet, obj *v11.OwnerReference) graphql.Marshaler {
21490 fields := graphql.CollectFields(ec.OperationContext, sel, ownerReferenceImplementors)
21491
21492 out := graphql.NewFieldSet(fields)
21493 var invalids uint32
21494 for i, field := range fields {
21495 switch field.Name {
21496 case "__typename":
21497 out.Values[i] = graphql.MarshalString("OwnerReference")
21498 case "kind":
21499 out.Values[i] = ec._OwnerReference_kind(ctx, field, obj)
21500 if out.Values[i] == graphql.Null {
21501 atomic.AddUint32(&invalids, 1)
21502 }
21503 case "apiVersion":
21504 out.Values[i] = ec._OwnerReference_apiVersion(ctx, field, obj)
21505 if out.Values[i] == graphql.Null {
21506 atomic.AddUint32(&invalids, 1)
21507 }
21508 case "name":
21509 out.Values[i] = ec._OwnerReference_name(ctx, field, obj)
21510 if out.Values[i] == graphql.Null {
21511 atomic.AddUint32(&invalids, 1)
21512 }
21513 case "uid":
21514 field := field
21515 out.Concurrently(i, func() (res graphql.Marshaler) {
21516 defer func() {
21517 if r := recover(); r != nil {
21518 ec.Error(ctx, ec.Recover(ctx, r))
21519 }
21520 }()
21521 res = ec._OwnerReference_uid(ctx, field, obj)
21522 if res == graphql.Null {
21523 atomic.AddUint32(&invalids, 1)
21524 }
21525 return res
21526 })
21527 case "controller":
21528 out.Values[i] = ec._OwnerReference_controller(ctx, field, obj)
21529 case "blockOwnerDeletion":
21530 out.Values[i] = ec._OwnerReference_blockOwnerDeletion(ctx, field, obj)
21531 default:
21532 panic("unknown field " + strconv.Quote(field.Name))
21533 }
21534 }
21535 out.Dispatch()
21536 if invalids > 0 {
21537 return graphql.Null
21538 }
21539 return out
21540 }
21541
21542 var podImplementors = []string{"Pod"}
21543
21544 func (ec *executionContext) _Pod(ctx context.Context, sel ast.SelectionSet, obj *v1.Pod) graphql.Marshaler {
21545 fields := graphql.CollectFields(ec.OperationContext, sel, podImplementors)
21546
21547 out := graphql.NewFieldSet(fields)
21548 var invalids uint32
21549 for i, field := range fields {
21550 switch field.Name {
21551 case "__typename":
21552 out.Values[i] = graphql.MarshalString("Pod")
21553 case "kind":
21554 out.Values[i] = ec._Pod_kind(ctx, field, obj)
21555 if out.Values[i] == graphql.Null {
21556 atomic.AddUint32(&invalids, 1)
21557 }
21558 case "apiVersion":
21559 out.Values[i] = ec._Pod_apiVersion(ctx, field, obj)
21560 if out.Values[i] == graphql.Null {
21561 atomic.AddUint32(&invalids, 1)
21562 }
21563 case "name":
21564 out.Values[i] = ec._Pod_name(ctx, field, obj)
21565 if out.Values[i] == graphql.Null {
21566 atomic.AddUint32(&invalids, 1)
21567 }
21568 case "generateName":
21569 out.Values[i] = ec._Pod_generateName(ctx, field, obj)
21570 if out.Values[i] == graphql.Null {
21571 atomic.AddUint32(&invalids, 1)
21572 }
21573 case "namespace":
21574 out.Values[i] = ec._Pod_namespace(ctx, field, obj)
21575 if out.Values[i] == graphql.Null {
21576 atomic.AddUint32(&invalids, 1)
21577 }
21578 case "selfLink":
21579 out.Values[i] = ec._Pod_selfLink(ctx, field, obj)
21580 if out.Values[i] == graphql.Null {
21581 atomic.AddUint32(&invalids, 1)
21582 }
21583 case "uid":
21584 field := field
21585 out.Concurrently(i, func() (res graphql.Marshaler) {
21586 defer func() {
21587 if r := recover(); r != nil {
21588 ec.Error(ctx, ec.Recover(ctx, r))
21589 }
21590 }()
21591 res = ec._Pod_uid(ctx, field, obj)
21592 if res == graphql.Null {
21593 atomic.AddUint32(&invalids, 1)
21594 }
21595 return res
21596 })
21597 case "resourceVersion":
21598 out.Values[i] = ec._Pod_resourceVersion(ctx, field, obj)
21599 if out.Values[i] == graphql.Null {
21600 atomic.AddUint32(&invalids, 1)
21601 }
21602 case "generation":
21603 out.Values[i] = ec._Pod_generation(ctx, field, obj)
21604 if out.Values[i] == graphql.Null {
21605 atomic.AddUint32(&invalids, 1)
21606 }
21607 case "creationTimestamp":
21608 field := field
21609 out.Concurrently(i, func() (res graphql.Marshaler) {
21610 defer func() {
21611 if r := recover(); r != nil {
21612 ec.Error(ctx, ec.Recover(ctx, r))
21613 }
21614 }()
21615 res = ec._Pod_creationTimestamp(ctx, field, obj)
21616 if res == graphql.Null {
21617 atomic.AddUint32(&invalids, 1)
21618 }
21619 return res
21620 })
21621 case "deletionTimestamp":
21622 field := field
21623 out.Concurrently(i, func() (res graphql.Marshaler) {
21624 defer func() {
21625 if r := recover(); r != nil {
21626 ec.Error(ctx, ec.Recover(ctx, r))
21627 }
21628 }()
21629 res = ec._Pod_deletionTimestamp(ctx, field, obj)
21630 return res
21631 })
21632 case "deletionGracePeriodSeconds":
21633 out.Values[i] = ec._Pod_deletionGracePeriodSeconds(ctx, field, obj)
21634 case "labels":
21635 field := field
21636 out.Concurrently(i, func() (res graphql.Marshaler) {
21637 defer func() {
21638 if r := recover(); r != nil {
21639 ec.Error(ctx, ec.Recover(ctx, r))
21640 }
21641 }()
21642 res = ec._Pod_labels(ctx, field, obj)
21643 return res
21644 })
21645 case "annotations":
21646 field := field
21647 out.Concurrently(i, func() (res graphql.Marshaler) {
21648 defer func() {
21649 if r := recover(); r != nil {
21650 ec.Error(ctx, ec.Recover(ctx, r))
21651 }
21652 }()
21653 res = ec._Pod_annotations(ctx, field, obj)
21654 return res
21655 })
21656 case "ownerReferences":
21657 out.Values[i] = ec._Pod_ownerReferences(ctx, field, obj)
21658 case "finalizers":
21659 out.Values[i] = ec._Pod_finalizers(ctx, field, obj)
21660 case "clusterName":
21661 out.Values[i] = ec._Pod_clusterName(ctx, field, obj)
21662 if out.Values[i] == graphql.Null {
21663 atomic.AddUint32(&invalids, 1)
21664 }
21665 case "spec":
21666 out.Values[i] = ec._Pod_spec(ctx, field, obj)
21667 if out.Values[i] == graphql.Null {
21668 atomic.AddUint32(&invalids, 1)
21669 }
21670 case "status":
21671 out.Values[i] = ec._Pod_status(ctx, field, obj)
21672 if out.Values[i] == graphql.Null {
21673 atomic.AddUint32(&invalids, 1)
21674 }
21675 case "logs":
21676 field := field
21677 out.Concurrently(i, func() (res graphql.Marshaler) {
21678 defer func() {
21679 if r := recover(); r != nil {
21680 ec.Error(ctx, ec.Recover(ctx, r))
21681 }
21682 }()
21683 res = ec._Pod_logs(ctx, field, obj)
21684 if res == graphql.Null {
21685 atomic.AddUint32(&invalids, 1)
21686 }
21687 return res
21688 })
21689 case "daemon":
21690 field := field
21691 out.Concurrently(i, func() (res graphql.Marshaler) {
21692 defer func() {
21693 if r := recover(); r != nil {
21694 ec.Error(ctx, ec.Recover(ctx, r))
21695 }
21696 }()
21697 res = ec._Pod_daemon(ctx, field, obj)
21698 return res
21699 })
21700 case "processes":
21701 field := field
21702 out.Concurrently(i, func() (res graphql.Marshaler) {
21703 defer func() {
21704 if r := recover(); r != nil {
21705 ec.Error(ctx, ec.Recover(ctx, r))
21706 }
21707 }()
21708 res = ec._Pod_processes(ctx, field, obj)
21709 return res
21710 })
21711 case "mounts":
21712 field := field
21713 out.Concurrently(i, func() (res graphql.Marshaler) {
21714 defer func() {
21715 if r := recover(); r != nil {
21716 ec.Error(ctx, ec.Recover(ctx, r))
21717 }
21718 }()
21719 res = ec._Pod_mounts(ctx, field, obj)
21720 return res
21721 })
21722 case "ipset":
21723 field := field
21724 out.Concurrently(i, func() (res graphql.Marshaler) {
21725 defer func() {
21726 if r := recover(); r != nil {
21727 ec.Error(ctx, ec.Recover(ctx, r))
21728 }
21729 }()
21730 res = ec._Pod_ipset(ctx, field, obj)
21731 if res == graphql.Null {
21732 atomic.AddUint32(&invalids, 1)
21733 }
21734 return res
21735 })
21736 case "tcQdisc":
21737 field := field
21738 out.Concurrently(i, func() (res graphql.Marshaler) {
21739 defer func() {
21740 if r := recover(); r != nil {
21741 ec.Error(ctx, ec.Recover(ctx, r))
21742 }
21743 }()
21744 res = ec._Pod_tcQdisc(ctx, field, obj)
21745 if res == graphql.Null {
21746 atomic.AddUint32(&invalids, 1)
21747 }
21748 return res
21749 })
21750 case "iptables":
21751 field := field
21752 out.Concurrently(i, func() (res graphql.Marshaler) {
21753 defer func() {
21754 if r := recover(); r != nil {
21755 ec.Error(ctx, ec.Recover(ctx, r))
21756 }
21757 }()
21758 res = ec._Pod_iptables(ctx, field, obj)
21759 if res == graphql.Null {
21760 atomic.AddUint32(&invalids, 1)
21761 }
21762 return res
21763 })
21764 default:
21765 panic("unknown field " + strconv.Quote(field.Name))
21766 }
21767 }
21768 out.Dispatch()
21769 if invalids > 0 {
21770 return graphql.Null
21771 }
21772 return out
21773 }
21774
21775 var podConditionImplementors = []string{"PodCondition"}
21776
21777 func (ec *executionContext) _PodCondition(ctx context.Context, sel ast.SelectionSet, obj *v1.PodCondition) graphql.Marshaler {
21778 fields := graphql.CollectFields(ec.OperationContext, sel, podConditionImplementors)
21779
21780 out := graphql.NewFieldSet(fields)
21781 var invalids uint32
21782 for i, field := range fields {
21783 switch field.Name {
21784 case "__typename":
21785 out.Values[i] = graphql.MarshalString("PodCondition")
21786 case "type":
21787 field := field
21788 out.Concurrently(i, func() (res graphql.Marshaler) {
21789 defer func() {
21790 if r := recover(); r != nil {
21791 ec.Error(ctx, ec.Recover(ctx, r))
21792 }
21793 }()
21794 res = ec._PodCondition_type(ctx, field, obj)
21795 if res == graphql.Null {
21796 atomic.AddUint32(&invalids, 1)
21797 }
21798 return res
21799 })
21800 case "status":
21801 field := field
21802 out.Concurrently(i, func() (res graphql.Marshaler) {
21803 defer func() {
21804 if r := recover(); r != nil {
21805 ec.Error(ctx, ec.Recover(ctx, r))
21806 }
21807 }()
21808 res = ec._PodCondition_status(ctx, field, obj)
21809 if res == graphql.Null {
21810 atomic.AddUint32(&invalids, 1)
21811 }
21812 return res
21813 })
21814 case "lastProbeTime":
21815 field := field
21816 out.Concurrently(i, func() (res graphql.Marshaler) {
21817 defer func() {
21818 if r := recover(); r != nil {
21819 ec.Error(ctx, ec.Recover(ctx, r))
21820 }
21821 }()
21822 res = ec._PodCondition_lastProbeTime(ctx, field, obj)
21823 return res
21824 })
21825 case "lastTransitionTime":
21826 field := field
21827 out.Concurrently(i, func() (res graphql.Marshaler) {
21828 defer func() {
21829 if r := recover(); r != nil {
21830 ec.Error(ctx, ec.Recover(ctx, r))
21831 }
21832 }()
21833 res = ec._PodCondition_lastTransitionTime(ctx, field, obj)
21834 return res
21835 })
21836 case "reason":
21837 out.Values[i] = ec._PodCondition_reason(ctx, field, obj)
21838 case "message":
21839 out.Values[i] = ec._PodCondition_message(ctx, field, obj)
21840 default:
21841 panic("unknown field " + strconv.Quote(field.Name))
21842 }
21843 }
21844 out.Dispatch()
21845 if invalids > 0 {
21846 return graphql.Null
21847 }
21848 return out
21849 }
21850
21851 var podHTTPChaosImplementors = []string{"PodHTTPChaos"}
21852
21853 func (ec *executionContext) _PodHTTPChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaos) graphql.Marshaler {
21854 fields := graphql.CollectFields(ec.OperationContext, sel, podHTTPChaosImplementors)
21855
21856 out := graphql.NewFieldSet(fields)
21857 var invalids uint32
21858 for i, field := range fields {
21859 switch field.Name {
21860 case "__typename":
21861 out.Values[i] = graphql.MarshalString("PodHTTPChaos")
21862 case "kind":
21863 out.Values[i] = ec._PodHTTPChaos_kind(ctx, field, obj)
21864 if out.Values[i] == graphql.Null {
21865 atomic.AddUint32(&invalids, 1)
21866 }
21867 case "apiVersion":
21868 out.Values[i] = ec._PodHTTPChaos_apiVersion(ctx, field, obj)
21869 if out.Values[i] == graphql.Null {
21870 atomic.AddUint32(&invalids, 1)
21871 }
21872 case "name":
21873 out.Values[i] = ec._PodHTTPChaos_name(ctx, field, obj)
21874 if out.Values[i] == graphql.Null {
21875 atomic.AddUint32(&invalids, 1)
21876 }
21877 case "generateName":
21878 out.Values[i] = ec._PodHTTPChaos_generateName(ctx, field, obj)
21879 if out.Values[i] == graphql.Null {
21880 atomic.AddUint32(&invalids, 1)
21881 }
21882 case "namespace":
21883 out.Values[i] = ec._PodHTTPChaos_namespace(ctx, field, obj)
21884 if out.Values[i] == graphql.Null {
21885 atomic.AddUint32(&invalids, 1)
21886 }
21887 case "selfLink":
21888 out.Values[i] = ec._PodHTTPChaos_selfLink(ctx, field, obj)
21889 if out.Values[i] == graphql.Null {
21890 atomic.AddUint32(&invalids, 1)
21891 }
21892 case "uid":
21893 field := field
21894 out.Concurrently(i, func() (res graphql.Marshaler) {
21895 defer func() {
21896 if r := recover(); r != nil {
21897 ec.Error(ctx, ec.Recover(ctx, r))
21898 }
21899 }()
21900 res = ec._PodHTTPChaos_uid(ctx, field, obj)
21901 if res == graphql.Null {
21902 atomic.AddUint32(&invalids, 1)
21903 }
21904 return res
21905 })
21906 case "resourceVersion":
21907 out.Values[i] = ec._PodHTTPChaos_resourceVersion(ctx, field, obj)
21908 if out.Values[i] == graphql.Null {
21909 atomic.AddUint32(&invalids, 1)
21910 }
21911 case "generation":
21912 out.Values[i] = ec._PodHTTPChaos_generation(ctx, field, obj)
21913 if out.Values[i] == graphql.Null {
21914 atomic.AddUint32(&invalids, 1)
21915 }
21916 case "creationTimestamp":
21917 field := field
21918 out.Concurrently(i, func() (res graphql.Marshaler) {
21919 defer func() {
21920 if r := recover(); r != nil {
21921 ec.Error(ctx, ec.Recover(ctx, r))
21922 }
21923 }()
21924 res = ec._PodHTTPChaos_creationTimestamp(ctx, field, obj)
21925 if res == graphql.Null {
21926 atomic.AddUint32(&invalids, 1)
21927 }
21928 return res
21929 })
21930 case "deletionTimestamp":
21931 field := field
21932 out.Concurrently(i, func() (res graphql.Marshaler) {
21933 defer func() {
21934 if r := recover(); r != nil {
21935 ec.Error(ctx, ec.Recover(ctx, r))
21936 }
21937 }()
21938 res = ec._PodHTTPChaos_deletionTimestamp(ctx, field, obj)
21939 return res
21940 })
21941 case "deletionGracePeriodSeconds":
21942 out.Values[i] = ec._PodHTTPChaos_deletionGracePeriodSeconds(ctx, field, obj)
21943 case "labels":
21944 field := field
21945 out.Concurrently(i, func() (res graphql.Marshaler) {
21946 defer func() {
21947 if r := recover(); r != nil {
21948 ec.Error(ctx, ec.Recover(ctx, r))
21949 }
21950 }()
21951 res = ec._PodHTTPChaos_labels(ctx, field, obj)
21952 return res
21953 })
21954 case "annotations":
21955 field := field
21956 out.Concurrently(i, func() (res graphql.Marshaler) {
21957 defer func() {
21958 if r := recover(); r != nil {
21959 ec.Error(ctx, ec.Recover(ctx, r))
21960 }
21961 }()
21962 res = ec._PodHTTPChaos_annotations(ctx, field, obj)
21963 return res
21964 })
21965 case "ownerReferences":
21966 out.Values[i] = ec._PodHTTPChaos_ownerReferences(ctx, field, obj)
21967 case "finalizers":
21968 out.Values[i] = ec._PodHTTPChaos_finalizers(ctx, field, obj)
21969 case "clusterName":
21970 out.Values[i] = ec._PodHTTPChaos_clusterName(ctx, field, obj)
21971 if out.Values[i] == graphql.Null {
21972 atomic.AddUint32(&invalids, 1)
21973 }
21974 case "spec":
21975 out.Values[i] = ec._PodHTTPChaos_spec(ctx, field, obj)
21976 if out.Values[i] == graphql.Null {
21977 atomic.AddUint32(&invalids, 1)
21978 }
21979 case "status":
21980 out.Values[i] = ec._PodHTTPChaos_status(ctx, field, obj)
21981 if out.Values[i] == graphql.Null {
21982 atomic.AddUint32(&invalids, 1)
21983 }
21984 case "pod":
21985 field := field
21986 out.Concurrently(i, func() (res graphql.Marshaler) {
21987 defer func() {
21988 if r := recover(); r != nil {
21989 ec.Error(ctx, ec.Recover(ctx, r))
21990 }
21991 }()
21992 res = ec._PodHTTPChaos_pod(ctx, field, obj)
21993 if res == graphql.Null {
21994 atomic.AddUint32(&invalids, 1)
21995 }
21996 return res
21997 })
21998 default:
21999 panic("unknown field " + strconv.Quote(field.Name))
22000 }
22001 }
22002 out.Dispatch()
22003 if invalids > 0 {
22004 return graphql.Null
22005 }
22006 return out
22007 }
22008
22009 var podHttpChaosActionsImplementors = []string{"PodHttpChaosActions"}
22010
22011 func (ec *executionContext) _PodHttpChaosActions(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosActions) graphql.Marshaler {
22012 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosActionsImplementors)
22013
22014 out := graphql.NewFieldSet(fields)
22015 var invalids uint32
22016 for i, field := range fields {
22017 switch field.Name {
22018 case "__typename":
22019 out.Values[i] = graphql.MarshalString("PodHttpChaosActions")
22020 case "abort":
22021 out.Values[i] = ec._PodHttpChaosActions_abort(ctx, field, obj)
22022 case "delay":
22023 out.Values[i] = ec._PodHttpChaosActions_delay(ctx, field, obj)
22024 case "replace":
22025 out.Values[i] = ec._PodHttpChaosActions_replace(ctx, field, obj)
22026 case "patch":
22027 out.Values[i] = ec._PodHttpChaosActions_patch(ctx, field, obj)
22028 default:
22029 panic("unknown field " + strconv.Quote(field.Name))
22030 }
22031 }
22032 out.Dispatch()
22033 if invalids > 0 {
22034 return graphql.Null
22035 }
22036 return out
22037 }
22038
22039 var podHttpChaosPatchActionsImplementors = []string{"PodHttpChaosPatchActions"}
22040
22041 func (ec *executionContext) _PodHttpChaosPatchActions(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosPatchActions) graphql.Marshaler {
22042 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosPatchActionsImplementors)
22043
22044 out := graphql.NewFieldSet(fields)
22045 var invalids uint32
22046 for i, field := range fields {
22047 switch field.Name {
22048 case "__typename":
22049 out.Values[i] = graphql.MarshalString("PodHttpChaosPatchActions")
22050 case "body":
22051 out.Values[i] = ec._PodHttpChaosPatchActions_body(ctx, field, obj)
22052 case "queries":
22053 out.Values[i] = ec._PodHttpChaosPatchActions_queries(ctx, field, obj)
22054 case "headers":
22055 out.Values[i] = ec._PodHttpChaosPatchActions_headers(ctx, field, obj)
22056 default:
22057 panic("unknown field " + strconv.Quote(field.Name))
22058 }
22059 }
22060 out.Dispatch()
22061 if invalids > 0 {
22062 return graphql.Null
22063 }
22064 return out
22065 }
22066
22067 var podHttpChaosPatchBodyActionImplementors = []string{"PodHttpChaosPatchBodyAction"}
22068
22069 func (ec *executionContext) _PodHttpChaosPatchBodyAction(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosPatchBodyAction) graphql.Marshaler {
22070 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosPatchBodyActionImplementors)
22071
22072 out := graphql.NewFieldSet(fields)
22073 var invalids uint32
22074 for i, field := range fields {
22075 switch field.Name {
22076 case "__typename":
22077 out.Values[i] = graphql.MarshalString("PodHttpChaosPatchBodyAction")
22078 case "type":
22079 out.Values[i] = ec._PodHttpChaosPatchBodyAction_type(ctx, field, obj)
22080 if out.Values[i] == graphql.Null {
22081 invalids++
22082 }
22083 case "value":
22084 out.Values[i] = ec._PodHttpChaosPatchBodyAction_value(ctx, field, obj)
22085 if out.Values[i] == graphql.Null {
22086 invalids++
22087 }
22088 default:
22089 panic("unknown field " + strconv.Quote(field.Name))
22090 }
22091 }
22092 out.Dispatch()
22093 if invalids > 0 {
22094 return graphql.Null
22095 }
22096 return out
22097 }
22098
22099 var podHttpChaosReplaceActionsImplementors = []string{"PodHttpChaosReplaceActions"}
22100
22101 func (ec *executionContext) _PodHttpChaosReplaceActions(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosReplaceActions) graphql.Marshaler {
22102 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosReplaceActionsImplementors)
22103
22104 out := graphql.NewFieldSet(fields)
22105 var invalids uint32
22106 for i, field := range fields {
22107 switch field.Name {
22108 case "__typename":
22109 out.Values[i] = graphql.MarshalString("PodHttpChaosReplaceActions")
22110 case "path":
22111 out.Values[i] = ec._PodHttpChaosReplaceActions_path(ctx, field, obj)
22112 case "method":
22113 out.Values[i] = ec._PodHttpChaosReplaceActions_method(ctx, field, obj)
22114 case "code":
22115 out.Values[i] = ec._PodHttpChaosReplaceActions_code(ctx, field, obj)
22116 case "body":
22117 field := field
22118 out.Concurrently(i, func() (res graphql.Marshaler) {
22119 defer func() {
22120 if r := recover(); r != nil {
22121 ec.Error(ctx, ec.Recover(ctx, r))
22122 }
22123 }()
22124 res = ec._PodHttpChaosReplaceActions_body(ctx, field, obj)
22125 return res
22126 })
22127 case "queries":
22128 field := field
22129 out.Concurrently(i, func() (res graphql.Marshaler) {
22130 defer func() {
22131 if r := recover(); r != nil {
22132 ec.Error(ctx, ec.Recover(ctx, r))
22133 }
22134 }()
22135 res = ec._PodHttpChaosReplaceActions_queries(ctx, field, obj)
22136 return res
22137 })
22138 case "headers":
22139 field := field
22140 out.Concurrently(i, func() (res graphql.Marshaler) {
22141 defer func() {
22142 if r := recover(); r != nil {
22143 ec.Error(ctx, ec.Recover(ctx, r))
22144 }
22145 }()
22146 res = ec._PodHttpChaosReplaceActions_headers(ctx, field, obj)
22147 return res
22148 })
22149 default:
22150 panic("unknown field " + strconv.Quote(field.Name))
22151 }
22152 }
22153 out.Dispatch()
22154 if invalids > 0 {
22155 return graphql.Null
22156 }
22157 return out
22158 }
22159
22160 var podHttpChaosRuleImplementors = []string{"PodHttpChaosRule"}
22161
22162 func (ec *executionContext) _PodHttpChaosRule(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosRule) graphql.Marshaler {
22163 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosRuleImplementors)
22164
22165 out := graphql.NewFieldSet(fields)
22166 var invalids uint32
22167 for i, field := range fields {
22168 switch field.Name {
22169 case "__typename":
22170 out.Values[i] = graphql.MarshalString("PodHttpChaosRule")
22171 case "target":
22172 field := field
22173 out.Concurrently(i, func() (res graphql.Marshaler) {
22174 defer func() {
22175 if r := recover(); r != nil {
22176 ec.Error(ctx, ec.Recover(ctx, r))
22177 }
22178 }()
22179 res = ec._PodHttpChaosRule_target(ctx, field, obj)
22180 if res == graphql.Null {
22181 atomic.AddUint32(&invalids, 1)
22182 }
22183 return res
22184 })
22185 case "selector":
22186 out.Values[i] = ec._PodHttpChaosRule_selector(ctx, field, obj)
22187 if out.Values[i] == graphql.Null {
22188 atomic.AddUint32(&invalids, 1)
22189 }
22190 case "actions":
22191 out.Values[i] = ec._PodHttpChaosRule_actions(ctx, field, obj)
22192 if out.Values[i] == graphql.Null {
22193 atomic.AddUint32(&invalids, 1)
22194 }
22195 case "source":
22196 out.Values[i] = ec._PodHttpChaosRule_source(ctx, field, obj)
22197 if out.Values[i] == graphql.Null {
22198 atomic.AddUint32(&invalids, 1)
22199 }
22200 case "port":
22201 out.Values[i] = ec._PodHttpChaosRule_port(ctx, field, obj)
22202 if out.Values[i] == graphql.Null {
22203 atomic.AddUint32(&invalids, 1)
22204 }
22205 default:
22206 panic("unknown field " + strconv.Quote(field.Name))
22207 }
22208 }
22209 out.Dispatch()
22210 if invalids > 0 {
22211 return graphql.Null
22212 }
22213 return out
22214 }
22215
22216 var podHttpChaosSelectorImplementors = []string{"PodHttpChaosSelector"}
22217
22218 func (ec *executionContext) _PodHttpChaosSelector(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosSelector) graphql.Marshaler {
22219 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosSelectorImplementors)
22220
22221 out := graphql.NewFieldSet(fields)
22222 var invalids uint32
22223 for i, field := range fields {
22224 switch field.Name {
22225 case "__typename":
22226 out.Values[i] = graphql.MarshalString("PodHttpChaosSelector")
22227 case "port":
22228 out.Values[i] = ec._PodHttpChaosSelector_port(ctx, field, obj)
22229 case "path":
22230 out.Values[i] = ec._PodHttpChaosSelector_path(ctx, field, obj)
22231 case "method":
22232 out.Values[i] = ec._PodHttpChaosSelector_method(ctx, field, obj)
22233 case "code":
22234 out.Values[i] = ec._PodHttpChaosSelector_code(ctx, field, obj)
22235 case "requestHeaders":
22236 field := field
22237 out.Concurrently(i, func() (res graphql.Marshaler) {
22238 defer func() {
22239 if r := recover(); r != nil {
22240 ec.Error(ctx, ec.Recover(ctx, r))
22241 }
22242 }()
22243 res = ec._PodHttpChaosSelector_requestHeaders(ctx, field, obj)
22244 return res
22245 })
22246 case "responseHeaders":
22247 field := field
22248 out.Concurrently(i, func() (res graphql.Marshaler) {
22249 defer func() {
22250 if r := recover(); r != nil {
22251 ec.Error(ctx, ec.Recover(ctx, r))
22252 }
22253 }()
22254 res = ec._PodHttpChaosSelector_responseHeaders(ctx, field, obj)
22255 return res
22256 })
22257 default:
22258 panic("unknown field " + strconv.Quote(field.Name))
22259 }
22260 }
22261 out.Dispatch()
22262 if invalids > 0 {
22263 return graphql.Null
22264 }
22265 return out
22266 }
22267
22268 var podHttpChaosSpecImplementors = []string{"PodHttpChaosSpec"}
22269
22270 func (ec *executionContext) _PodHttpChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosSpec) graphql.Marshaler {
22271 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosSpecImplementors)
22272
22273 out := graphql.NewFieldSet(fields)
22274 var invalids uint32
22275 for i, field := range fields {
22276 switch field.Name {
22277 case "__typename":
22278 out.Values[i] = graphql.MarshalString("PodHttpChaosSpec")
22279 case "rules":
22280 out.Values[i] = ec._PodHttpChaosSpec_rules(ctx, field, obj)
22281 if out.Values[i] == graphql.Null {
22282 invalids++
22283 }
22284 default:
22285 panic("unknown field " + strconv.Quote(field.Name))
22286 }
22287 }
22288 out.Dispatch()
22289 if invalids > 0 {
22290 return graphql.Null
22291 }
22292 return out
22293 }
22294
22295 var podHttpChaosStatusImplementors = []string{"PodHttpChaosStatus"}
22296
22297 func (ec *executionContext) _PodHttpChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodHttpChaosStatus) graphql.Marshaler {
22298 fields := graphql.CollectFields(ec.OperationContext, sel, podHttpChaosStatusImplementors)
22299
22300 out := graphql.NewFieldSet(fields)
22301 var invalids uint32
22302 for i, field := range fields {
22303 switch field.Name {
22304 case "__typename":
22305 out.Values[i] = graphql.MarshalString("PodHttpChaosStatus")
22306 case "pid":
22307 out.Values[i] = ec._PodHttpChaosStatus_pid(ctx, field, obj)
22308 case "startTime":
22309 out.Values[i] = ec._PodHttpChaosStatus_startTime(ctx, field, obj)
22310 case "failedMessage":
22311 out.Values[i] = ec._PodHttpChaosStatus_failedMessage(ctx, field, obj)
22312 case "observedGeneration":
22313 out.Values[i] = ec._PodHttpChaosStatus_observedGeneration(ctx, field, obj)
22314 default:
22315 panic("unknown field " + strconv.Quote(field.Name))
22316 }
22317 }
22318 out.Dispatch()
22319 if invalids > 0 {
22320 return graphql.Null
22321 }
22322 return out
22323 }
22324
22325 var podIOChaosImplementors = []string{"PodIOChaos"}
22326
22327 func (ec *executionContext) _PodIOChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodIOChaos) graphql.Marshaler {
22328 fields := graphql.CollectFields(ec.OperationContext, sel, podIOChaosImplementors)
22329
22330 out := graphql.NewFieldSet(fields)
22331 var invalids uint32
22332 for i, field := range fields {
22333 switch field.Name {
22334 case "__typename":
22335 out.Values[i] = graphql.MarshalString("PodIOChaos")
22336 case "kind":
22337 out.Values[i] = ec._PodIOChaos_kind(ctx, field, obj)
22338 if out.Values[i] == graphql.Null {
22339 atomic.AddUint32(&invalids, 1)
22340 }
22341 case "apiVersion":
22342 out.Values[i] = ec._PodIOChaos_apiVersion(ctx, field, obj)
22343 if out.Values[i] == graphql.Null {
22344 atomic.AddUint32(&invalids, 1)
22345 }
22346 case "name":
22347 out.Values[i] = ec._PodIOChaos_name(ctx, field, obj)
22348 if out.Values[i] == graphql.Null {
22349 atomic.AddUint32(&invalids, 1)
22350 }
22351 case "generateName":
22352 out.Values[i] = ec._PodIOChaos_generateName(ctx, field, obj)
22353 if out.Values[i] == graphql.Null {
22354 atomic.AddUint32(&invalids, 1)
22355 }
22356 case "namespace":
22357 out.Values[i] = ec._PodIOChaos_namespace(ctx, field, obj)
22358 if out.Values[i] == graphql.Null {
22359 atomic.AddUint32(&invalids, 1)
22360 }
22361 case "selfLink":
22362 out.Values[i] = ec._PodIOChaos_selfLink(ctx, field, obj)
22363 if out.Values[i] == graphql.Null {
22364 atomic.AddUint32(&invalids, 1)
22365 }
22366 case "uid":
22367 field := field
22368 out.Concurrently(i, func() (res graphql.Marshaler) {
22369 defer func() {
22370 if r := recover(); r != nil {
22371 ec.Error(ctx, ec.Recover(ctx, r))
22372 }
22373 }()
22374 res = ec._PodIOChaos_uid(ctx, field, obj)
22375 if res == graphql.Null {
22376 atomic.AddUint32(&invalids, 1)
22377 }
22378 return res
22379 })
22380 case "resourceVersion":
22381 out.Values[i] = ec._PodIOChaos_resourceVersion(ctx, field, obj)
22382 if out.Values[i] == graphql.Null {
22383 atomic.AddUint32(&invalids, 1)
22384 }
22385 case "generation":
22386 out.Values[i] = ec._PodIOChaos_generation(ctx, field, obj)
22387 if out.Values[i] == graphql.Null {
22388 atomic.AddUint32(&invalids, 1)
22389 }
22390 case "creationTimestamp":
22391 field := field
22392 out.Concurrently(i, func() (res graphql.Marshaler) {
22393 defer func() {
22394 if r := recover(); r != nil {
22395 ec.Error(ctx, ec.Recover(ctx, r))
22396 }
22397 }()
22398 res = ec._PodIOChaos_creationTimestamp(ctx, field, obj)
22399 if res == graphql.Null {
22400 atomic.AddUint32(&invalids, 1)
22401 }
22402 return res
22403 })
22404 case "deletionTimestamp":
22405 field := field
22406 out.Concurrently(i, func() (res graphql.Marshaler) {
22407 defer func() {
22408 if r := recover(); r != nil {
22409 ec.Error(ctx, ec.Recover(ctx, r))
22410 }
22411 }()
22412 res = ec._PodIOChaos_deletionTimestamp(ctx, field, obj)
22413 return res
22414 })
22415 case "deletionGracePeriodSeconds":
22416 out.Values[i] = ec._PodIOChaos_deletionGracePeriodSeconds(ctx, field, obj)
22417 case "labels":
22418 field := field
22419 out.Concurrently(i, func() (res graphql.Marshaler) {
22420 defer func() {
22421 if r := recover(); r != nil {
22422 ec.Error(ctx, ec.Recover(ctx, r))
22423 }
22424 }()
22425 res = ec._PodIOChaos_labels(ctx, field, obj)
22426 return res
22427 })
22428 case "annotations":
22429 field := field
22430 out.Concurrently(i, func() (res graphql.Marshaler) {
22431 defer func() {
22432 if r := recover(); r != nil {
22433 ec.Error(ctx, ec.Recover(ctx, r))
22434 }
22435 }()
22436 res = ec._PodIOChaos_annotations(ctx, field, obj)
22437 return res
22438 })
22439 case "ownerReferences":
22440 out.Values[i] = ec._PodIOChaos_ownerReferences(ctx, field, obj)
22441 case "finalizers":
22442 out.Values[i] = ec._PodIOChaos_finalizers(ctx, field, obj)
22443 case "clusterName":
22444 out.Values[i] = ec._PodIOChaos_clusterName(ctx, field, obj)
22445 if out.Values[i] == graphql.Null {
22446 atomic.AddUint32(&invalids, 1)
22447 }
22448 case "spec":
22449 out.Values[i] = ec._PodIOChaos_spec(ctx, field, obj)
22450 if out.Values[i] == graphql.Null {
22451 atomic.AddUint32(&invalids, 1)
22452 }
22453 case "status":
22454 out.Values[i] = ec._PodIOChaos_status(ctx, field, obj)
22455 if out.Values[i] == graphql.Null {
22456 atomic.AddUint32(&invalids, 1)
22457 }
22458 case "pod":
22459 field := field
22460 out.Concurrently(i, func() (res graphql.Marshaler) {
22461 defer func() {
22462 if r := recover(); r != nil {
22463 ec.Error(ctx, ec.Recover(ctx, r))
22464 }
22465 }()
22466 res = ec._PodIOChaos_pod(ctx, field, obj)
22467 if res == graphql.Null {
22468 atomic.AddUint32(&invalids, 1)
22469 }
22470 return res
22471 })
22472 case "ios":
22473 field := field
22474 out.Concurrently(i, func() (res graphql.Marshaler) {
22475 defer func() {
22476 if r := recover(); r != nil {
22477 ec.Error(ctx, ec.Recover(ctx, r))
22478 }
22479 }()
22480 res = ec._PodIOChaos_ios(ctx, field, obj)
22481 return res
22482 })
22483 default:
22484 panic("unknown field " + strconv.Quote(field.Name))
22485 }
22486 }
22487 out.Dispatch()
22488 if invalids > 0 {
22489 return graphql.Null
22490 }
22491 return out
22492 }
22493
22494 var podIOChaosSpecImplementors = []string{"PodIOChaosSpec"}
22495
22496 func (ec *executionContext) _PodIOChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodIOChaosSpec) graphql.Marshaler {
22497 fields := graphql.CollectFields(ec.OperationContext, sel, podIOChaosSpecImplementors)
22498
22499 out := graphql.NewFieldSet(fields)
22500 var invalids uint32
22501 for i, field := range fields {
22502 switch field.Name {
22503 case "__typename":
22504 out.Values[i] = graphql.MarshalString("PodIOChaosSpec")
22505 case "volumeMountPath":
22506 out.Values[i] = ec._PodIOChaosSpec_volumeMountPath(ctx, field, obj)
22507 if out.Values[i] == graphql.Null {
22508 invalids++
22509 }
22510 case "container":
22511 out.Values[i] = ec._PodIOChaosSpec_container(ctx, field, obj)
22512 case "actions":
22513 out.Values[i] = ec._PodIOChaosSpec_actions(ctx, field, obj)
22514 default:
22515 panic("unknown field " + strconv.Quote(field.Name))
22516 }
22517 }
22518 out.Dispatch()
22519 if invalids > 0 {
22520 return graphql.Null
22521 }
22522 return out
22523 }
22524
22525 var podIOChaosStatusImplementors = []string{"PodIOChaosStatus"}
22526
22527 func (ec *executionContext) _PodIOChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodIOChaosStatus) graphql.Marshaler {
22528 fields := graphql.CollectFields(ec.OperationContext, sel, podIOChaosStatusImplementors)
22529
22530 out := graphql.NewFieldSet(fields)
22531 var invalids uint32
22532 for i, field := range fields {
22533 switch field.Name {
22534 case "__typename":
22535 out.Values[i] = graphql.MarshalString("PodIOChaosStatus")
22536 case "pid":
22537 out.Values[i] = ec._PodIOChaosStatus_pid(ctx, field, obj)
22538 case "startTime":
22539 out.Values[i] = ec._PodIOChaosStatus_startTime(ctx, field, obj)
22540 case "failedMessage":
22541 out.Values[i] = ec._PodIOChaosStatus_failedMessage(ctx, field, obj)
22542 case "observedGeneration":
22543 out.Values[i] = ec._PodIOChaosStatus_observedGeneration(ctx, field, obj)
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 podIPImplementors = []string{"PodIP"}
22556
22557 func (ec *executionContext) _PodIP(ctx context.Context, sel ast.SelectionSet, obj *v1.PodIP) graphql.Marshaler {
22558 fields := graphql.CollectFields(ec.OperationContext, sel, podIPImplementors)
22559
22560 out := graphql.NewFieldSet(fields)
22561 var invalids uint32
22562 for i, field := range fields {
22563 switch field.Name {
22564 case "__typename":
22565 out.Values[i] = graphql.MarshalString("PodIP")
22566 case "ip":
22567 out.Values[i] = ec._PodIP_ip(ctx, field, obj)
22568 if out.Values[i] == graphql.Null {
22569 invalids++
22570 }
22571 default:
22572 panic("unknown field " + strconv.Quote(field.Name))
22573 }
22574 }
22575 out.Dispatch()
22576 if invalids > 0 {
22577 return graphql.Null
22578 }
22579 return out
22580 }
22581
22582 var podNetworkChaosImplementors = []string{"PodNetworkChaos"}
22583
22584 func (ec *executionContext) _PodNetworkChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodNetworkChaos) graphql.Marshaler {
22585 fields := graphql.CollectFields(ec.OperationContext, sel, podNetworkChaosImplementors)
22586
22587 out := graphql.NewFieldSet(fields)
22588 var invalids uint32
22589 for i, field := range fields {
22590 switch field.Name {
22591 case "__typename":
22592 out.Values[i] = graphql.MarshalString("PodNetworkChaos")
22593 case "kind":
22594 out.Values[i] = ec._PodNetworkChaos_kind(ctx, field, obj)
22595 if out.Values[i] == graphql.Null {
22596 atomic.AddUint32(&invalids, 1)
22597 }
22598 case "apiVersion":
22599 out.Values[i] = ec._PodNetworkChaos_apiVersion(ctx, field, obj)
22600 if out.Values[i] == graphql.Null {
22601 atomic.AddUint32(&invalids, 1)
22602 }
22603 case "name":
22604 out.Values[i] = ec._PodNetworkChaos_name(ctx, field, obj)
22605 if out.Values[i] == graphql.Null {
22606 atomic.AddUint32(&invalids, 1)
22607 }
22608 case "generateName":
22609 out.Values[i] = ec._PodNetworkChaos_generateName(ctx, field, obj)
22610 if out.Values[i] == graphql.Null {
22611 atomic.AddUint32(&invalids, 1)
22612 }
22613 case "namespace":
22614 out.Values[i] = ec._PodNetworkChaos_namespace(ctx, field, obj)
22615 if out.Values[i] == graphql.Null {
22616 atomic.AddUint32(&invalids, 1)
22617 }
22618 case "selfLink":
22619 out.Values[i] = ec._PodNetworkChaos_selfLink(ctx, field, obj)
22620 if out.Values[i] == graphql.Null {
22621 atomic.AddUint32(&invalids, 1)
22622 }
22623 case "uid":
22624 field := field
22625 out.Concurrently(i, func() (res graphql.Marshaler) {
22626 defer func() {
22627 if r := recover(); r != nil {
22628 ec.Error(ctx, ec.Recover(ctx, r))
22629 }
22630 }()
22631 res = ec._PodNetworkChaos_uid(ctx, field, obj)
22632 if res == graphql.Null {
22633 atomic.AddUint32(&invalids, 1)
22634 }
22635 return res
22636 })
22637 case "resourceVersion":
22638 out.Values[i] = ec._PodNetworkChaos_resourceVersion(ctx, field, obj)
22639 if out.Values[i] == graphql.Null {
22640 atomic.AddUint32(&invalids, 1)
22641 }
22642 case "generation":
22643 out.Values[i] = ec._PodNetworkChaos_generation(ctx, field, obj)
22644 if out.Values[i] == graphql.Null {
22645 atomic.AddUint32(&invalids, 1)
22646 }
22647 case "creationTimestamp":
22648 field := field
22649 out.Concurrently(i, func() (res graphql.Marshaler) {
22650 defer func() {
22651 if r := recover(); r != nil {
22652 ec.Error(ctx, ec.Recover(ctx, r))
22653 }
22654 }()
22655 res = ec._PodNetworkChaos_creationTimestamp(ctx, field, obj)
22656 if res == graphql.Null {
22657 atomic.AddUint32(&invalids, 1)
22658 }
22659 return res
22660 })
22661 case "deletionTimestamp":
22662 field := field
22663 out.Concurrently(i, func() (res graphql.Marshaler) {
22664 defer func() {
22665 if r := recover(); r != nil {
22666 ec.Error(ctx, ec.Recover(ctx, r))
22667 }
22668 }()
22669 res = ec._PodNetworkChaos_deletionTimestamp(ctx, field, obj)
22670 return res
22671 })
22672 case "deletionGracePeriodSeconds":
22673 out.Values[i] = ec._PodNetworkChaos_deletionGracePeriodSeconds(ctx, field, obj)
22674 case "labels":
22675 field := field
22676 out.Concurrently(i, func() (res graphql.Marshaler) {
22677 defer func() {
22678 if r := recover(); r != nil {
22679 ec.Error(ctx, ec.Recover(ctx, r))
22680 }
22681 }()
22682 res = ec._PodNetworkChaos_labels(ctx, field, obj)
22683 return res
22684 })
22685 case "annotations":
22686 field := field
22687 out.Concurrently(i, func() (res graphql.Marshaler) {
22688 defer func() {
22689 if r := recover(); r != nil {
22690 ec.Error(ctx, ec.Recover(ctx, r))
22691 }
22692 }()
22693 res = ec._PodNetworkChaos_annotations(ctx, field, obj)
22694 return res
22695 })
22696 case "ownerReferences":
22697 out.Values[i] = ec._PodNetworkChaos_ownerReferences(ctx, field, obj)
22698 case "finalizers":
22699 out.Values[i] = ec._PodNetworkChaos_finalizers(ctx, field, obj)
22700 case "clusterName":
22701 out.Values[i] = ec._PodNetworkChaos_clusterName(ctx, field, obj)
22702 if out.Values[i] == graphql.Null {
22703 atomic.AddUint32(&invalids, 1)
22704 }
22705 case "spec":
22706 out.Values[i] = ec._PodNetworkChaos_spec(ctx, field, obj)
22707 if out.Values[i] == graphql.Null {
22708 atomic.AddUint32(&invalids, 1)
22709 }
22710 case "status":
22711 out.Values[i] = ec._PodNetworkChaos_status(ctx, field, obj)
22712 if out.Values[i] == graphql.Null {
22713 atomic.AddUint32(&invalids, 1)
22714 }
22715 case "pod":
22716 field := field
22717 out.Concurrently(i, func() (res graphql.Marshaler) {
22718 defer func() {
22719 if r := recover(); r != nil {
22720 ec.Error(ctx, ec.Recover(ctx, r))
22721 }
22722 }()
22723 res = ec._PodNetworkChaos_pod(ctx, field, obj)
22724 if res == graphql.Null {
22725 atomic.AddUint32(&invalids, 1)
22726 }
22727 return res
22728 })
22729 default:
22730 panic("unknown field " + strconv.Quote(field.Name))
22731 }
22732 }
22733 out.Dispatch()
22734 if invalids > 0 {
22735 return graphql.Null
22736 }
22737 return out
22738 }
22739
22740 var podNetworkChaosSpecImplementors = []string{"PodNetworkChaosSpec"}
22741
22742 func (ec *executionContext) _PodNetworkChaosSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodNetworkChaosSpec) graphql.Marshaler {
22743 fields := graphql.CollectFields(ec.OperationContext, sel, podNetworkChaosSpecImplementors)
22744
22745 out := graphql.NewFieldSet(fields)
22746 var invalids uint32
22747 for i, field := range fields {
22748 switch field.Name {
22749 case "__typename":
22750 out.Values[i] = graphql.MarshalString("PodNetworkChaosSpec")
22751 case "ipSets":
22752 out.Values[i] = ec._PodNetworkChaosSpec_ipSets(ctx, field, obj)
22753 case "iptables":
22754 out.Values[i] = ec._PodNetworkChaosSpec_iptables(ctx, field, obj)
22755 case "trafficControls":
22756 out.Values[i] = ec._PodNetworkChaosSpec_trafficControls(ctx, field, obj)
22757 default:
22758 panic("unknown field " + strconv.Quote(field.Name))
22759 }
22760 }
22761 out.Dispatch()
22762 if invalids > 0 {
22763 return graphql.Null
22764 }
22765 return out
22766 }
22767
22768 var podNetworkChaosStatusImplementors = []string{"PodNetworkChaosStatus"}
22769
22770 func (ec *executionContext) _PodNetworkChaosStatus(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodNetworkChaosStatus) graphql.Marshaler {
22771 fields := graphql.CollectFields(ec.OperationContext, sel, podNetworkChaosStatusImplementors)
22772
22773 out := graphql.NewFieldSet(fields)
22774 var invalids uint32
22775 for i, field := range fields {
22776 switch field.Name {
22777 case "__typename":
22778 out.Values[i] = graphql.MarshalString("PodNetworkChaosStatus")
22779 case "failedMessage":
22780 out.Values[i] = ec._PodNetworkChaosStatus_failedMessage(ctx, field, obj)
22781 if out.Values[i] == graphql.Null {
22782 invalids++
22783 }
22784 case "observedGeneration":
22785 out.Values[i] = ec._PodNetworkChaosStatus_observedGeneration(ctx, field, obj)
22786 if out.Values[i] == graphql.Null {
22787 invalids++
22788 }
22789 default:
22790 panic("unknown field " + strconv.Quote(field.Name))
22791 }
22792 }
22793 out.Dispatch()
22794 if invalids > 0 {
22795 return graphql.Null
22796 }
22797 return out
22798 }
22799
22800 var podSelectorSpecImplementors = []string{"PodSelectorSpec"}
22801
22802 func (ec *executionContext) _PodSelectorSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.PodSelectorSpec) graphql.Marshaler {
22803 fields := graphql.CollectFields(ec.OperationContext, sel, podSelectorSpecImplementors)
22804
22805 out := graphql.NewFieldSet(fields)
22806 var invalids uint32
22807 for i, field := range fields {
22808 switch field.Name {
22809 case "__typename":
22810 out.Values[i] = graphql.MarshalString("PodSelectorSpec")
22811 case "namespaces":
22812 out.Values[i] = ec._PodSelectorSpec_namespaces(ctx, field, obj)
22813 case "nodes":
22814 out.Values[i] = ec._PodSelectorSpec_nodes(ctx, field, obj)
22815 case "pods":
22816 field := field
22817 out.Concurrently(i, func() (res graphql.Marshaler) {
22818 defer func() {
22819 if r := recover(); r != nil {
22820 ec.Error(ctx, ec.Recover(ctx, r))
22821 }
22822 }()
22823 res = ec._PodSelectorSpec_pods(ctx, field, obj)
22824 return res
22825 })
22826 case "nodeSelectors":
22827 field := field
22828 out.Concurrently(i, func() (res graphql.Marshaler) {
22829 defer func() {
22830 if r := recover(); r != nil {
22831 ec.Error(ctx, ec.Recover(ctx, r))
22832 }
22833 }()
22834 res = ec._PodSelectorSpec_nodeSelectors(ctx, field, obj)
22835 return res
22836 })
22837 case "fieldSelectors":
22838 field := field
22839 out.Concurrently(i, func() (res graphql.Marshaler) {
22840 defer func() {
22841 if r := recover(); r != nil {
22842 ec.Error(ctx, ec.Recover(ctx, r))
22843 }
22844 }()
22845 res = ec._PodSelectorSpec_fieldSelectors(ctx, field, obj)
22846 return res
22847 })
22848 case "labelSelectors":
22849 field := field
22850 out.Concurrently(i, func() (res graphql.Marshaler) {
22851 defer func() {
22852 if r := recover(); r != nil {
22853 ec.Error(ctx, ec.Recover(ctx, r))
22854 }
22855 }()
22856 res = ec._PodSelectorSpec_labelSelectors(ctx, field, obj)
22857 return res
22858 })
22859 case "annotationSelectors":
22860 field := field
22861 out.Concurrently(i, func() (res graphql.Marshaler) {
22862 defer func() {
22863 if r := recover(); r != nil {
22864 ec.Error(ctx, ec.Recover(ctx, r))
22865 }
22866 }()
22867 res = ec._PodSelectorSpec_annotationSelectors(ctx, field, obj)
22868 return res
22869 })
22870 case "podPhaseSelectors":
22871 out.Values[i] = ec._PodSelectorSpec_podPhaseSelectors(ctx, field, obj)
22872 default:
22873 panic("unknown field " + strconv.Quote(field.Name))
22874 }
22875 }
22876 out.Dispatch()
22877 if invalids > 0 {
22878 return graphql.Null
22879 }
22880 return out
22881 }
22882
22883 var podSpecImplementors = []string{"PodSpec"}
22884
22885 func (ec *executionContext) _PodSpec(ctx context.Context, sel ast.SelectionSet, obj *v1.PodSpec) graphql.Marshaler {
22886 fields := graphql.CollectFields(ec.OperationContext, sel, podSpecImplementors)
22887
22888 out := graphql.NewFieldSet(fields)
22889 var invalids uint32
22890 for i, field := range fields {
22891 switch field.Name {
22892 case "__typename":
22893 out.Values[i] = graphql.MarshalString("PodSpec")
22894 case "nodeName":
22895 out.Values[i] = ec._PodSpec_nodeName(ctx, field, obj)
22896 if out.Values[i] == graphql.Null {
22897 invalids++
22898 }
22899 default:
22900 panic("unknown field " + strconv.Quote(field.Name))
22901 }
22902 }
22903 out.Dispatch()
22904 if invalids > 0 {
22905 return graphql.Null
22906 }
22907 return out
22908 }
22909
22910 var podStatusImplementors = []string{"PodStatus"}
22911
22912 func (ec *executionContext) _PodStatus(ctx context.Context, sel ast.SelectionSet, obj *v1.PodStatus) graphql.Marshaler {
22913 fields := graphql.CollectFields(ec.OperationContext, sel, podStatusImplementors)
22914
22915 out := graphql.NewFieldSet(fields)
22916 var invalids uint32
22917 for i, field := range fields {
22918 switch field.Name {
22919 case "__typename":
22920 out.Values[i] = graphql.MarshalString("PodStatus")
22921 case "phase":
22922 field := field
22923 out.Concurrently(i, func() (res graphql.Marshaler) {
22924 defer func() {
22925 if r := recover(); r != nil {
22926 ec.Error(ctx, ec.Recover(ctx, r))
22927 }
22928 }()
22929 res = ec._PodStatus_phase(ctx, field, obj)
22930 if res == graphql.Null {
22931 atomic.AddUint32(&invalids, 1)
22932 }
22933 return res
22934 })
22935 case "conditions":
22936 out.Values[i] = ec._PodStatus_conditions(ctx, field, obj)
22937 case "message":
22938 out.Values[i] = ec._PodStatus_message(ctx, field, obj)
22939 if out.Values[i] == graphql.Null {
22940 atomic.AddUint32(&invalids, 1)
22941 }
22942 case "reason":
22943 out.Values[i] = ec._PodStatus_reason(ctx, field, obj)
22944 if out.Values[i] == graphql.Null {
22945 atomic.AddUint32(&invalids, 1)
22946 }
22947 case "nominatedNodeName":
22948 out.Values[i] = ec._PodStatus_nominatedNodeName(ctx, field, obj)
22949 if out.Values[i] == graphql.Null {
22950 atomic.AddUint32(&invalids, 1)
22951 }
22952 case "hostIP":
22953 out.Values[i] = ec._PodStatus_hostIP(ctx, field, obj)
22954 if out.Values[i] == graphql.Null {
22955 atomic.AddUint32(&invalids, 1)
22956 }
22957 case "podIP":
22958 out.Values[i] = ec._PodStatus_podIP(ctx, field, obj)
22959 if out.Values[i] == graphql.Null {
22960 atomic.AddUint32(&invalids, 1)
22961 }
22962 case "podIPs":
22963 out.Values[i] = ec._PodStatus_podIPs(ctx, field, obj)
22964 case "startTime":
22965 field := field
22966 out.Concurrently(i, func() (res graphql.Marshaler) {
22967 defer func() {
22968 if r := recover(); r != nil {
22969 ec.Error(ctx, ec.Recover(ctx, r))
22970 }
22971 }()
22972 res = ec._PodStatus_startTime(ctx, field, obj)
22973 return res
22974 })
22975 case "initContainerStatuses":
22976 out.Values[i] = ec._PodStatus_initContainerStatuses(ctx, field, obj)
22977 case "containerStatuses":
22978 out.Values[i] = ec._PodStatus_containerStatuses(ctx, field, obj)
22979 case "qosClass":
22980 field := field
22981 out.Concurrently(i, func() (res graphql.Marshaler) {
22982 defer func() {
22983 if r := recover(); r != nil {
22984 ec.Error(ctx, ec.Recover(ctx, r))
22985 }
22986 }()
22987 res = ec._PodStatus_qosClass(ctx, field, obj)
22988 if res == graphql.Null {
22989 atomic.AddUint32(&invalids, 1)
22990 }
22991 return res
22992 })
22993 case "ephemeralContainerStatuses":
22994 out.Values[i] = ec._PodStatus_ephemeralContainerStatuses(ctx, field, obj)
22995 default:
22996 panic("unknown field " + strconv.Quote(field.Name))
22997 }
22998 }
22999 out.Dispatch()
23000 if invalids > 0 {
23001 return graphql.Null
23002 }
23003 return out
23004 }
23005
23006 var processImplementors = []string{"Process"}
23007
23008 func (ec *executionContext) _Process(ctx context.Context, sel ast.SelectionSet, obj *model.Process) graphql.Marshaler {
23009 fields := graphql.CollectFields(ec.OperationContext, sel, processImplementors)
23010
23011 out := graphql.NewFieldSet(fields)
23012 var invalids uint32
23013 for i, field := range fields {
23014 switch field.Name {
23015 case "__typename":
23016 out.Values[i] = graphql.MarshalString("Process")
23017 case "pod":
23018 out.Values[i] = ec._Process_pod(ctx, field, obj)
23019 if out.Values[i] == graphql.Null {
23020 atomic.AddUint32(&invalids, 1)
23021 }
23022 case "pid":
23023 out.Values[i] = ec._Process_pid(ctx, field, obj)
23024 if out.Values[i] == graphql.Null {
23025 atomic.AddUint32(&invalids, 1)
23026 }
23027 case "command":
23028 out.Values[i] = ec._Process_command(ctx, field, obj)
23029 if out.Values[i] == graphql.Null {
23030 atomic.AddUint32(&invalids, 1)
23031 }
23032 case "fds":
23033 field := field
23034 out.Concurrently(i, func() (res graphql.Marshaler) {
23035 defer func() {
23036 if r := recover(); r != nil {
23037 ec.Error(ctx, ec.Recover(ctx, r))
23038 }
23039 }()
23040 res = ec._Process_fds(ctx, field, obj)
23041 return res
23042 })
23043 default:
23044 panic("unknown field " + strconv.Quote(field.Name))
23045 }
23046 }
23047 out.Dispatch()
23048 if invalids > 0 {
23049 return graphql.Null
23050 }
23051 return out
23052 }
23053
23054 var queryImplementors = []string{"Query"}
23055
23056 func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) graphql.Marshaler {
23057 fields := graphql.CollectFields(ec.OperationContext, sel, queryImplementors)
23058
23059 ctx = graphql.WithFieldContext(ctx, &graphql.FieldContext{
23060 Object: "Query",
23061 })
23062
23063 out := graphql.NewFieldSet(fields)
23064 var invalids uint32
23065 for i, field := range fields {
23066 switch field.Name {
23067 case "__typename":
23068 out.Values[i] = graphql.MarshalString("Query")
23069 case "namespace":
23070 field := field
23071 out.Concurrently(i, func() (res graphql.Marshaler) {
23072 defer func() {
23073 if r := recover(); r != nil {
23074 ec.Error(ctx, ec.Recover(ctx, r))
23075 }
23076 }()
23077 res = ec._Query_namespace(ctx, field)
23078 return res
23079 })
23080 case "__type":
23081 out.Values[i] = ec._Query___type(ctx, field)
23082 case "__schema":
23083 out.Values[i] = ec._Query___schema(ctx, field)
23084 default:
23085 panic("unknown field " + strconv.Quote(field.Name))
23086 }
23087 }
23088 out.Dispatch()
23089 if invalids > 0 {
23090 return graphql.Null
23091 }
23092 return out
23093 }
23094
23095 var rawIPSetImplementors = []string{"RawIPSet"}
23096
23097 func (ec *executionContext) _RawIPSet(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RawIPSet) graphql.Marshaler {
23098 fields := graphql.CollectFields(ec.OperationContext, sel, rawIPSetImplementors)
23099
23100 out := graphql.NewFieldSet(fields)
23101 var invalids uint32
23102 for i, field := range fields {
23103 switch field.Name {
23104 case "__typename":
23105 out.Values[i] = graphql.MarshalString("RawIPSet")
23106 case "name":
23107 out.Values[i] = ec._RawIPSet_name(ctx, field, obj)
23108 if out.Values[i] == graphql.Null {
23109 invalids++
23110 }
23111 case "cidrs":
23112 out.Values[i] = ec._RawIPSet_cidrs(ctx, field, obj)
23113 if out.Values[i] == graphql.Null {
23114 invalids++
23115 }
23116 case "source":
23117 out.Values[i] = ec._RawIPSet_source(ctx, field, obj)
23118 if out.Values[i] == graphql.Null {
23119 invalids++
23120 }
23121 default:
23122 panic("unknown field " + strconv.Quote(field.Name))
23123 }
23124 }
23125 out.Dispatch()
23126 if invalids > 0 {
23127 return graphql.Null
23128 }
23129 return out
23130 }
23131
23132 var rawIptablesImplementors = []string{"RawIptables"}
23133
23134 func (ec *executionContext) _RawIptables(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RawIptables) graphql.Marshaler {
23135 fields := graphql.CollectFields(ec.OperationContext, sel, rawIptablesImplementors)
23136
23137 out := graphql.NewFieldSet(fields)
23138 var invalids uint32
23139 for i, field := range fields {
23140 switch field.Name {
23141 case "__typename":
23142 out.Values[i] = graphql.MarshalString("RawIptables")
23143 case "name":
23144 out.Values[i] = ec._RawIptables_name(ctx, field, obj)
23145 if out.Values[i] == graphql.Null {
23146 atomic.AddUint32(&invalids, 1)
23147 }
23148 case "ipSets":
23149 out.Values[i] = ec._RawIptables_ipSets(ctx, field, obj)
23150 if out.Values[i] == graphql.Null {
23151 atomic.AddUint32(&invalids, 1)
23152 }
23153 case "direction":
23154 field := field
23155 out.Concurrently(i, func() (res graphql.Marshaler) {
23156 defer func() {
23157 if r := recover(); r != nil {
23158 ec.Error(ctx, ec.Recover(ctx, r))
23159 }
23160 }()
23161 res = ec._RawIptables_direction(ctx, field, obj)
23162 if res == graphql.Null {
23163 atomic.AddUint32(&invalids, 1)
23164 }
23165 return res
23166 })
23167 case "source":
23168 out.Values[i] = ec._RawIptables_source(ctx, field, obj)
23169 if out.Values[i] == graphql.Null {
23170 atomic.AddUint32(&invalids, 1)
23171 }
23172 default:
23173 panic("unknown field " + strconv.Quote(field.Name))
23174 }
23175 }
23176 out.Dispatch()
23177 if invalids > 0 {
23178 return graphql.Null
23179 }
23180 return out
23181 }
23182
23183 var rawTrafficControlImplementors = []string{"RawTrafficControl"}
23184
23185 func (ec *executionContext) _RawTrafficControl(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.RawTrafficControl) graphql.Marshaler {
23186 fields := graphql.CollectFields(ec.OperationContext, sel, rawTrafficControlImplementors)
23187
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("RawTrafficControl")
23194 case "type":
23195 field := field
23196 out.Concurrently(i, func() (res graphql.Marshaler) {
23197 defer func() {
23198 if r := recover(); r != nil {
23199 ec.Error(ctx, ec.Recover(ctx, r))
23200 }
23201 }()
23202 res = ec._RawTrafficControl_type(ctx, field, obj)
23203 if res == graphql.Null {
23204 atomic.AddUint32(&invalids, 1)
23205 }
23206 return res
23207 })
23208 case "delay":
23209 out.Values[i] = ec._RawTrafficControl_delay(ctx, field, obj)
23210 case "loss":
23211 out.Values[i] = ec._RawTrafficControl_loss(ctx, field, obj)
23212 case "duplicate":
23213 out.Values[i] = ec._RawTrafficControl_duplicate(ctx, field, obj)
23214 case "corrupt":
23215 out.Values[i] = ec._RawTrafficControl_corrupt(ctx, field, obj)
23216 case "Bandwidth":
23217 out.Values[i] = ec._RawTrafficControl_Bandwidth(ctx, field, obj)
23218 case "ipSet":
23219 out.Values[i] = ec._RawTrafficControl_ipSet(ctx, field, obj)
23220 case "source":
23221 out.Values[i] = ec._RawTrafficControl_source(ctx, field, obj)
23222 default:
23223 panic("unknown field " + strconv.Quote(field.Name))
23224 }
23225 }
23226 out.Dispatch()
23227 if invalids > 0 {
23228 return graphql.Null
23229 }
23230 return out
23231 }
23232
23233 var recordImplementors = []string{"Record"}
23234
23235 func (ec *executionContext) _Record(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.Record) graphql.Marshaler {
23236 fields := graphql.CollectFields(ec.OperationContext, sel, recordImplementors)
23237
23238 out := graphql.NewFieldSet(fields)
23239 var invalids uint32
23240 for i, field := range fields {
23241 switch field.Name {
23242 case "__typename":
23243 out.Values[i] = graphql.MarshalString("Record")
23244 case "id":
23245 out.Values[i] = ec._Record_id(ctx, field, obj)
23246 if out.Values[i] == graphql.Null {
23247 atomic.AddUint32(&invalids, 1)
23248 }
23249 case "selectorKey":
23250 out.Values[i] = ec._Record_selectorKey(ctx, field, obj)
23251 if out.Values[i] == graphql.Null {
23252 atomic.AddUint32(&invalids, 1)
23253 }
23254 case "phase":
23255 field := field
23256 out.Concurrently(i, func() (res graphql.Marshaler) {
23257 defer func() {
23258 if r := recover(); r != nil {
23259 ec.Error(ctx, ec.Recover(ctx, r))
23260 }
23261 }()
23262 res = ec._Record_phase(ctx, field, obj)
23263 if res == graphql.Null {
23264 atomic.AddUint32(&invalids, 1)
23265 }
23266 return res
23267 })
23268 default:
23269 panic("unknown field " + strconv.Quote(field.Name))
23270 }
23271 }
23272 out.Dispatch()
23273 if invalids > 0 {
23274 return graphql.Null
23275 }
23276 return out
23277 }
23278
23279 var reorderSpecImplementors = []string{"ReorderSpec"}
23280
23281 func (ec *executionContext) _ReorderSpec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.ReorderSpec) graphql.Marshaler {
23282 fields := graphql.CollectFields(ec.OperationContext, sel, reorderSpecImplementors)
23283
23284 out := graphql.NewFieldSet(fields)
23285 var invalids uint32
23286 for i, field := range fields {
23287 switch field.Name {
23288 case "__typename":
23289 out.Values[i] = graphql.MarshalString("ReorderSpec")
23290 case "reorder":
23291 out.Values[i] = ec._ReorderSpec_reorder(ctx, field, obj)
23292 if out.Values[i] == graphql.Null {
23293 invalids++
23294 }
23295 case "correlation":
23296 out.Values[i] = ec._ReorderSpec_correlation(ctx, field, obj)
23297 case "gap":
23298 out.Values[i] = ec._ReorderSpec_gap(ctx, field, obj)
23299 default:
23300 panic("unknown field " + strconv.Quote(field.Name))
23301 }
23302 }
23303 out.Dispatch()
23304 if invalids > 0 {
23305 return graphql.Null
23306 }
23307 return out
23308 }
23309
23310 var stressChaosImplementors = []string{"StressChaos"}
23311
23312 func (ec *executionContext) _StressChaos(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.StressChaos) graphql.Marshaler {
23313 fields := graphql.CollectFields(ec.OperationContext, sel, stressChaosImplementors)
23314
23315 out := graphql.NewFieldSet(fields)
23316 var invalids uint32
23317 for i, field := range fields {
23318 switch field.Name {
23319 case "__typename":
23320 out.Values[i] = graphql.MarshalString("StressChaos")
23321 case "kind":
23322 out.Values[i] = ec._StressChaos_kind(ctx, field, obj)
23323 if out.Values[i] == graphql.Null {
23324 atomic.AddUint32(&invalids, 1)
23325 }
23326 case "apiVersion":
23327 out.Values[i] = ec._StressChaos_apiVersion(ctx, field, obj)
23328 if out.Values[i] == graphql.Null {
23329 atomic.AddUint32(&invalids, 1)
23330 }
23331 case "name":
23332 out.Values[i] = ec._StressChaos_name(ctx, field, obj)
23333 if out.Values[i] == graphql.Null {
23334 atomic.AddUint32(&invalids, 1)
23335 }
23336 case "generateName":
23337 out.Values[i] = ec._StressChaos_generateName(ctx, field, obj)
23338 if out.Values[i] == graphql.Null {
23339 atomic.AddUint32(&invalids, 1)
23340 }
23341 case "namespace":
23342 out.Values[i] = ec._StressChaos_namespace(ctx, field, obj)
23343 if out.Values[i] == graphql.Null {
23344 atomic.AddUint32(&invalids, 1)
23345 }
23346 case "selfLink":
23347 out.Values[i] = ec._StressChaos_selfLink(ctx, field, obj)
23348 if out.Values[i] == graphql.Null {
23349 atomic.AddUint32(&invalids, 1)
23350 }
23351 case "uid":
23352 field := field
23353 out.Concurrently(i, func() (res graphql.Marshaler) {
23354 defer func() {
23355 if r := recover(); r != nil {
23356 ec.Error(ctx, ec.Recover(ctx, r))
23357 }
23358 }()
23359 res = ec._StressChaos_uid(ctx, field, obj)
23360 if res == graphql.Null {
23361 atomic.AddUint32(&invalids, 1)
23362 }
23363 return res
23364 })
23365 case "resourceVersion":
23366 out.Values[i] = ec._StressChaos_resourceVersion(ctx, field, obj)
23367 if out.Values[i] == graphql.Null {
23368 atomic.AddUint32(&invalids, 1)
23369 }
23370 case "generation":
23371 out.Values[i] = ec._StressChaos_generation(ctx, field, obj)
23372 if out.Values[i] == graphql.Null {
23373 atomic.AddUint32(&invalids, 1)
23374 }
23375 case "creationTimestamp":
23376 field := field
23377 out.Concurrently(i, func() (res graphql.Marshaler) {
23378 defer func() {
23379 if r := recover(); r != nil {
23380 ec.Error(ctx, ec.Recover(ctx, r))
23381 }
23382 }()
23383 res = ec._StressChaos_creationTimestamp(ctx, field, obj)
23384 if res == graphql.Null {
23385 atomic.AddUint32(&invalids, 1)
23386 }
23387 return res
23388 })
23389 case "deletionTimestamp":
23390 field := field
23391 out.Concurrently(i, func() (res graphql.Marshaler) {
23392 defer func() {
23393 if r := recover(); r != nil {
23394 ec.Error(ctx, ec.Recover(ctx, r))
23395 }
23396 }()
23397 res = ec._StressChaos_deletionTimestamp(ctx, field, obj)
23398 return res
23399 })
23400 case "deletionGracePeriodSeconds":
23401 out.Values[i] = ec._StressChaos_deletionGracePeriodSeconds(ctx, field, obj)
23402 case "labels":
23403 field := field
23404 out.Concurrently(i, func() (res graphql.Marshaler) {
23405 defer func() {
23406 if r := recover(); r != nil {
23407 ec.Error(ctx, ec.Recover(ctx, r))
23408 }
23409 }()
23410 res = ec._StressChaos_labels(ctx, field, obj)
23411 return res
23412 })
23413 case "annotations":
23414 field := field
23415 out.Concurrently(i, func() (res graphql.Marshaler) {
23416 defer func() {
23417 if r := recover(); r != nil {
23418 ec.Error(ctx, ec.Recover(ctx, r))
23419 }
23420 }()
23421 res = ec._StressChaos_annotations(ctx, field, obj)
23422 return res
23423 })
23424 case "ownerReferences":
23425 out.Values[i] = ec._StressChaos_ownerReferences(ctx, field, obj)
23426 case "finalizers":
23427 out.Values[i] = ec._StressChaos_finalizers(ctx, field, obj)
23428 case "clusterName":
23429 out.Values[i] = ec._StressChaos_clusterName(ctx, field, obj)
23430 if out.Values[i] == graphql.Null {
23431 atomic.AddUint32(&invalids, 1)
23432 }
23433 default:
23434 panic("unknown field " + strconv.Quote(field.Name))
23435 }
23436 }
23437 out.Dispatch()
23438 if invalids > 0 {
23439 return graphql.Null
23440 }
23441 return out
23442 }
23443
23444 var timespecImplementors = []string{"Timespec"}
23445
23446 func (ec *executionContext) _Timespec(ctx context.Context, sel ast.SelectionSet, obj *v1alpha1.Timespec) graphql.Marshaler {
23447 fields := graphql.CollectFields(ec.OperationContext, sel, timespecImplementors)
23448
23449 out := graphql.NewFieldSet(fields)
23450 var invalids uint32
23451 for i, field := range fields {
23452 switch field.Name {
23453 case "__typename":
23454 out.Values[i] = graphql.MarshalString("Timespec")
23455 case "sec":
23456 out.Values[i] = ec._Timespec_sec(ctx, field, obj)
23457 if out.Values[i] == graphql.Null {
23458 invalids++
23459 }
23460 case "nsec":
23461 out.Values[i] = ec._Timespec_nsec(ctx, field, obj)
23462 if out.Values[i] == graphql.Null {
23463 invalids++
23464 }
23465 default:
23466 panic("unknown field " + strconv.Quote(field.Name))
23467 }
23468 }
23469 out.Dispatch()
23470 if invalids > 0 {
23471 return graphql.Null
23472 }
23473 return out
23474 }
23475
23476 var __DirectiveImplementors = []string{"__Directive"}
23477
23478 func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionSet, obj *introspection.Directive) graphql.Marshaler {
23479 fields := graphql.CollectFields(ec.OperationContext, sel, __DirectiveImplementors)
23480
23481 out := graphql.NewFieldSet(fields)
23482 var invalids uint32
23483 for i, field := range fields {
23484 switch field.Name {
23485 case "__typename":
23486 out.Values[i] = graphql.MarshalString("__Directive")
23487 case "name":
23488 out.Values[i] = ec.___Directive_name(ctx, field, obj)
23489 if out.Values[i] == graphql.Null {
23490 invalids++
23491 }
23492 case "description":
23493 out.Values[i] = ec.___Directive_description(ctx, field, obj)
23494 case "locations":
23495 out.Values[i] = ec.___Directive_locations(ctx, field, obj)
23496 if out.Values[i] == graphql.Null {
23497 invalids++
23498 }
23499 case "args":
23500 out.Values[i] = ec.___Directive_args(ctx, field, obj)
23501 if out.Values[i] == graphql.Null {
23502 invalids++
23503 }
23504 default:
23505 panic("unknown field " + strconv.Quote(field.Name))
23506 }
23507 }
23508 out.Dispatch()
23509 if invalids > 0 {
23510 return graphql.Null
23511 }
23512 return out
23513 }
23514
23515 var __EnumValueImplementors = []string{"__EnumValue"}
23516
23517 func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.EnumValue) graphql.Marshaler {
23518 fields := graphql.CollectFields(ec.OperationContext, sel, __EnumValueImplementors)
23519
23520 out := graphql.NewFieldSet(fields)
23521 var invalids uint32
23522 for i, field := range fields {
23523 switch field.Name {
23524 case "__typename":
23525 out.Values[i] = graphql.MarshalString("__EnumValue")
23526 case "name":
23527 out.Values[i] = ec.___EnumValue_name(ctx, field, obj)
23528 if out.Values[i] == graphql.Null {
23529 invalids++
23530 }
23531 case "description":
23532 out.Values[i] = ec.___EnumValue_description(ctx, field, obj)
23533 case "isDeprecated":
23534 out.Values[i] = ec.___EnumValue_isDeprecated(ctx, field, obj)
23535 if out.Values[i] == graphql.Null {
23536 invalids++
23537 }
23538 case "deprecationReason":
23539 out.Values[i] = ec.___EnumValue_deprecationReason(ctx, field, obj)
23540 default:
23541 panic("unknown field " + strconv.Quote(field.Name))
23542 }
23543 }
23544 out.Dispatch()
23545 if invalids > 0 {
23546 return graphql.Null
23547 }
23548 return out
23549 }
23550
23551 var __FieldImplementors = []string{"__Field"}
23552
23553 func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, obj *introspection.Field) graphql.Marshaler {
23554 fields := graphql.CollectFields(ec.OperationContext, sel, __FieldImplementors)
23555
23556 out := graphql.NewFieldSet(fields)
23557 var invalids uint32
23558 for i, field := range fields {
23559 switch field.Name {
23560 case "__typename":
23561 out.Values[i] = graphql.MarshalString("__Field")
23562 case "name":
23563 out.Values[i] = ec.___Field_name(ctx, field, obj)
23564 if out.Values[i] == graphql.Null {
23565 invalids++
23566 }
23567 case "description":
23568 out.Values[i] = ec.___Field_description(ctx, field, obj)
23569 case "args":
23570 out.Values[i] = ec.___Field_args(ctx, field, obj)
23571 if out.Values[i] == graphql.Null {
23572 invalids++
23573 }
23574 case "type":
23575 out.Values[i] = ec.___Field_type(ctx, field, obj)
23576 if out.Values[i] == graphql.Null {
23577 invalids++
23578 }
23579 case "isDeprecated":
23580 out.Values[i] = ec.___Field_isDeprecated(ctx, field, obj)
23581 if out.Values[i] == graphql.Null {
23582 invalids++
23583 }
23584 case "deprecationReason":
23585 out.Values[i] = ec.___Field_deprecationReason(ctx, field, obj)
23586 default:
23587 panic("unknown field " + strconv.Quote(field.Name))
23588 }
23589 }
23590 out.Dispatch()
23591 if invalids > 0 {
23592 return graphql.Null
23593 }
23594 return out
23595 }
23596
23597 var __InputValueImplementors = []string{"__InputValue"}
23598
23599 func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.SelectionSet, obj *introspection.InputValue) graphql.Marshaler {
23600 fields := graphql.CollectFields(ec.OperationContext, sel, __InputValueImplementors)
23601
23602 out := graphql.NewFieldSet(fields)
23603 var invalids uint32
23604 for i, field := range fields {
23605 switch field.Name {
23606 case "__typename":
23607 out.Values[i] = graphql.MarshalString("__InputValue")
23608 case "name":
23609 out.Values[i] = ec.___InputValue_name(ctx, field, obj)
23610 if out.Values[i] == graphql.Null {
23611 invalids++
23612 }
23613 case "description":
23614 out.Values[i] = ec.___InputValue_description(ctx, field, obj)
23615 case "type":
23616 out.Values[i] = ec.___InputValue_type(ctx, field, obj)
23617 if out.Values[i] == graphql.Null {
23618 invalids++
23619 }
23620 case "defaultValue":
23621 out.Values[i] = ec.___InputValue_defaultValue(ctx, field, obj)
23622 default:
23623 panic("unknown field " + strconv.Quote(field.Name))
23624 }
23625 }
23626 out.Dispatch()
23627 if invalids > 0 {
23628 return graphql.Null
23629 }
23630 return out
23631 }
23632
23633 var __SchemaImplementors = []string{"__Schema"}
23634
23635 func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler {
23636 fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors)
23637
23638 out := graphql.NewFieldSet(fields)
23639 var invalids uint32
23640 for i, field := range fields {
23641 switch field.Name {
23642 case "__typename":
23643 out.Values[i] = graphql.MarshalString("__Schema")
23644 case "types":
23645 out.Values[i] = ec.___Schema_types(ctx, field, obj)
23646 if out.Values[i] == graphql.Null {
23647 invalids++
23648 }
23649 case "queryType":
23650 out.Values[i] = ec.___Schema_queryType(ctx, field, obj)
23651 if out.Values[i] == graphql.Null {
23652 invalids++
23653 }
23654 case "mutationType":
23655 out.Values[i] = ec.___Schema_mutationType(ctx, field, obj)
23656 case "subscriptionType":
23657 out.Values[i] = ec.___Schema_subscriptionType(ctx, field, obj)
23658 case "directives":
23659 out.Values[i] = ec.___Schema_directives(ctx, field, obj)
23660 if out.Values[i] == graphql.Null {
23661 invalids++
23662 }
23663 default:
23664 panic("unknown field " + strconv.Quote(field.Name))
23665 }
23666 }
23667 out.Dispatch()
23668 if invalids > 0 {
23669 return graphql.Null
23670 }
23671 return out
23672 }
23673
23674 var __TypeImplementors = []string{"__Type"}
23675
23676 func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler {
23677 fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors)
23678
23679 out := graphql.NewFieldSet(fields)
23680 var invalids uint32
23681 for i, field := range fields {
23682 switch field.Name {
23683 case "__typename":
23684 out.Values[i] = graphql.MarshalString("__Type")
23685 case "kind":
23686 out.Values[i] = ec.___Type_kind(ctx, field, obj)
23687 if out.Values[i] == graphql.Null {
23688 invalids++
23689 }
23690 case "name":
23691 out.Values[i] = ec.___Type_name(ctx, field, obj)
23692 case "description":
23693 out.Values[i] = ec.___Type_description(ctx, field, obj)
23694 case "fields":
23695 out.Values[i] = ec.___Type_fields(ctx, field, obj)
23696 case "interfaces":
23697 out.Values[i] = ec.___Type_interfaces(ctx, field, obj)
23698 case "possibleTypes":
23699 out.Values[i] = ec.___Type_possibleTypes(ctx, field, obj)
23700 case "enumValues":
23701 out.Values[i] = ec.___Type_enumValues(ctx, field, obj)
23702 case "inputFields":
23703 out.Values[i] = ec.___Type_inputFields(ctx, field, obj)
23704 case "ofType":
23705 out.Values[i] = ec.___Type_ofType(ctx, field, obj)
23706 default:
23707 panic("unknown field " + strconv.Quote(field.Name))
23708 }
23709 }
23710 out.Dispatch()
23711 if invalids > 0 {
23712 return graphql.Null
23713 }
23714 return out
23715 }
23716
23717
23718
23719
23720
23721 func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
23722 res, err := graphql.UnmarshalBoolean(v)
23723 return res, graphql.ErrorOnPath(ctx, err)
23724 }
23725
23726 func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
23727 res := graphql.MarshalBoolean(v)
23728 if res == graphql.Null {
23729 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23730 ec.Errorf(ctx, "must not be null")
23731 }
23732 }
23733 return res
23734 }
23735
23736 func (ec *executionContext) marshalNChaosCondition2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosCondition(ctx context.Context, sel ast.SelectionSet, v v1alpha1.ChaosCondition) graphql.Marshaler {
23737 return ec._ChaosCondition(ctx, sel, &v)
23738 }
23739
23740 func (ec *executionContext) unmarshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐComponent(ctx context.Context, v interface{}) (model.Component, error) {
23741 var res model.Component
23742 err := res.UnmarshalGQL(v)
23743 return res, graphql.ErrorOnPath(ctx, err)
23744 }
23745
23746 func (ec *executionContext) marshalNComponent2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐComponent(ctx context.Context, sel ast.SelectionSet, v model.Component) graphql.Marshaler {
23747 return v
23748 }
23749
23750 func (ec *executionContext) marshalNContainerStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatus(ctx context.Context, sel ast.SelectionSet, v v1.ContainerStatus) graphql.Marshaler {
23751 return ec._ContainerStatus(ctx, sel, &v)
23752 }
23753
23754 func (ec *executionContext) marshalNFd2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐFd(ctx context.Context, sel ast.SelectionSet, v *model.Fd) graphql.Marshaler {
23755 if v == nil {
23756 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23757 ec.Errorf(ctx, "must not be null")
23758 }
23759 return graphql.Null
23760 }
23761 return ec._Fd(ctx, sel, v)
23762 }
23763
23764 func (ec *executionContext) marshalNHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.HTTPChaos) graphql.Marshaler {
23765 if v == nil {
23766 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23767 ec.Errorf(ctx, "must not be null")
23768 }
23769 return graphql.Null
23770 }
23771 return ec._HTTPChaos(ctx, sel, v)
23772 }
23773
23774 func (ec *executionContext) marshalNHTTPChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.HTTPChaosSpec) graphql.Marshaler {
23775 return ec._HTTPChaosSpec(ctx, sel, &v)
23776 }
23777
23778 func (ec *executionContext) marshalNHTTPChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.HTTPChaosStatus) graphql.Marshaler {
23779 return ec._HTTPChaosStatus(ctx, sel, &v)
23780 }
23781
23782 func (ec *executionContext) marshalNIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.IOChaos) graphql.Marshaler {
23783 if v == nil {
23784 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23785 ec.Errorf(ctx, "must not be null")
23786 }
23787 return graphql.Null
23788 }
23789 return ec._IOChaos(ctx, sel, v)
23790 }
23791
23792 func (ec *executionContext) marshalNIOChaosAction2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosAction(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IOChaosAction) graphql.Marshaler {
23793 return ec._IOChaosAction(ctx, sel, &v)
23794 }
23795
23796 func (ec *executionContext) marshalNIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IOChaosSpec) graphql.Marshaler {
23797 return ec._IOChaosSpec(ctx, sel, &v)
23798 }
23799
23800 func (ec *executionContext) marshalNIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IOChaosStatus) graphql.Marshaler {
23801 return ec._IOChaosStatus(ctx, sel, &v)
23802 }
23803
23804 func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) {
23805 res, err := graphql.UnmarshalInt(v)
23806 return res, graphql.ErrorOnPath(ctx, err)
23807 }
23808
23809 func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
23810 res := graphql.MarshalInt(v)
23811 if res == graphql.Null {
23812 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23813 ec.Errorf(ctx, "must not be null")
23814 }
23815 }
23816 return res
23817 }
23818
23819 func (ec *executionContext) unmarshalNInt2int32(ctx context.Context, v interface{}) (int32, error) {
23820 res, err := graphql.UnmarshalInt32(v)
23821 return res, graphql.ErrorOnPath(ctx, err)
23822 }
23823
23824 func (ec *executionContext) marshalNInt2int32(ctx context.Context, sel ast.SelectionSet, v int32) graphql.Marshaler {
23825 res := graphql.MarshalInt32(v)
23826 if res == graphql.Null {
23827 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23828 ec.Errorf(ctx, "must not be null")
23829 }
23830 }
23831 return res
23832 }
23833
23834 func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) {
23835 res, err := graphql.UnmarshalInt64(v)
23836 return res, graphql.ErrorOnPath(ctx, err)
23837 }
23838
23839 func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
23840 res := graphql.MarshalInt64(v)
23841 if res == graphql.Null {
23842 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23843 ec.Errorf(ctx, "must not be null")
23844 }
23845 }
23846 return res
23847 }
23848
23849 func (ec *executionContext) marshalNIoFault2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFault(ctx context.Context, sel ast.SelectionSet, v v1alpha1.IoFault) graphql.Marshaler {
23850 return ec._IoFault(ctx, sel, &v)
23851 }
23852
23853 func (ec *executionContext) marshalNNamespace2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐNamespace(ctx context.Context, sel ast.SelectionSet, v *model.Namespace) graphql.Marshaler {
23854 if v == nil {
23855 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23856 ec.Errorf(ctx, "must not be null")
23857 }
23858 return graphql.Null
23859 }
23860 return ec._Namespace(ctx, sel, v)
23861 }
23862
23863 func (ec *executionContext) marshalNNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.NetworkChaos) graphql.Marshaler {
23864 if v == nil {
23865 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23866 ec.Errorf(ctx, "must not be null")
23867 }
23868 return graphql.Null
23869 }
23870 return ec._NetworkChaos(ctx, sel, v)
23871 }
23872
23873 func (ec *executionContext) marshalNOwnerReference2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReference(ctx context.Context, sel ast.SelectionSet, v v11.OwnerReference) graphql.Marshaler {
23874 return ec._OwnerReference(ctx, sel, &v)
23875 }
23876
23877 func (ec *executionContext) marshalNPod2k8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx context.Context, sel ast.SelectionSet, v v1.Pod) graphql.Marshaler {
23878 return ec._Pod(ctx, sel, &v)
23879 }
23880
23881 func (ec *executionContext) marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx context.Context, sel ast.SelectionSet, v *v1.Pod) graphql.Marshaler {
23882 if v == nil {
23883 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23884 ec.Errorf(ctx, "must not be null")
23885 }
23886 return graphql.Null
23887 }
23888 return ec._Pod(ctx, sel, v)
23889 }
23890
23891 func (ec *executionContext) marshalNPodCondition2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodCondition(ctx context.Context, sel ast.SelectionSet, v v1.PodCondition) graphql.Marshaler {
23892 return ec._PodCondition(ctx, sel, &v)
23893 }
23894
23895 func (ec *executionContext) marshalNPodHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaos) graphql.Marshaler {
23896 if v == nil {
23897 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23898 ec.Errorf(ctx, "must not be null")
23899 }
23900 return graphql.Null
23901 }
23902 return ec._PodHTTPChaos(ctx, sel, v)
23903 }
23904
23905 func (ec *executionContext) marshalNPodHttpChaosActions2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosActions(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosActions) graphql.Marshaler {
23906 return ec._PodHttpChaosActions(ctx, sel, &v)
23907 }
23908
23909 func (ec *executionContext) marshalNPodHttpChaosRule2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRule(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosRule) graphql.Marshaler {
23910 return ec._PodHttpChaosRule(ctx, sel, &v)
23911 }
23912
23913 func (ec *executionContext) marshalNPodHttpChaosRule2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRuleᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.PodHttpChaosRule) graphql.Marshaler {
23914 ret := make(graphql.Array, len(v))
23915 var wg sync.WaitGroup
23916 isLen1 := len(v) == 1
23917 if !isLen1 {
23918 wg.Add(len(v))
23919 }
23920 for i := range v {
23921 i := i
23922 fc := &graphql.FieldContext{
23923 Index: &i,
23924 Result: &v[i],
23925 }
23926 ctx := graphql.WithFieldContext(ctx, fc)
23927 f := func(i int) {
23928 defer func() {
23929 if r := recover(); r != nil {
23930 ec.Error(ctx, ec.Recover(ctx, r))
23931 ret = nil
23932 }
23933 }()
23934 if !isLen1 {
23935 defer wg.Done()
23936 }
23937 ret[i] = ec.marshalNPodHttpChaosRule2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosRule(ctx, sel, v[i])
23938 }
23939 if isLen1 {
23940 f(i)
23941 } else {
23942 go f(i)
23943 }
23944
23945 }
23946 wg.Wait()
23947 return ret
23948 }
23949
23950 func (ec *executionContext) marshalNPodHttpChaosSelector2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSelector(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosSelector) graphql.Marshaler {
23951 return ec._PodHttpChaosSelector(ctx, sel, &v)
23952 }
23953
23954 func (ec *executionContext) marshalNPodHttpChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosSpec) graphql.Marshaler {
23955 return ec._PodHttpChaosSpec(ctx, sel, &v)
23956 }
23957
23958 func (ec *executionContext) marshalNPodHttpChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodHttpChaosStatus) graphql.Marshaler {
23959 return ec._PodHttpChaosStatus(ctx, sel, &v)
23960 }
23961
23962 func (ec *executionContext) marshalNPodIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodIOChaos) graphql.Marshaler {
23963 if v == nil {
23964 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23965 ec.Errorf(ctx, "must not be null")
23966 }
23967 return graphql.Null
23968 }
23969 return ec._PodIOChaos(ctx, sel, v)
23970 }
23971
23972 func (ec *executionContext) marshalNPodIOChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodIOChaosSpec) graphql.Marshaler {
23973 return ec._PodIOChaosSpec(ctx, sel, &v)
23974 }
23975
23976 func (ec *executionContext) marshalNPodIOChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodIOChaosStatus) graphql.Marshaler {
23977 return ec._PodIOChaosStatus(ctx, sel, &v)
23978 }
23979
23980 func (ec *executionContext) marshalNPodIP2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodIP(ctx context.Context, sel ast.SelectionSet, v v1.PodIP) graphql.Marshaler {
23981 return ec._PodIP(ctx, sel, &v)
23982 }
23983
23984 func (ec *executionContext) marshalNPodNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodNetworkChaos) graphql.Marshaler {
23985 if v == nil {
23986 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
23987 ec.Errorf(ctx, "must not be null")
23988 }
23989 return graphql.Null
23990 }
23991 return ec._PodNetworkChaos(ctx, sel, v)
23992 }
23993
23994 func (ec *executionContext) marshalNPodNetworkChaosSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodNetworkChaosSpec) graphql.Marshaler {
23995 return ec._PodNetworkChaosSpec(ctx, sel, &v)
23996 }
23997
23998 func (ec *executionContext) marshalNPodNetworkChaosStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodNetworkChaosStatus) graphql.Marshaler {
23999 return ec._PodNetworkChaosStatus(ctx, sel, &v)
24000 }
24001
24002 func (ec *executionContext) marshalNPodSelectorSpec2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodSelectorSpec(ctx context.Context, sel ast.SelectionSet, v v1alpha1.PodSelectorSpec) graphql.Marshaler {
24003 return ec._PodSelectorSpec(ctx, sel, &v)
24004 }
24005
24006 func (ec *executionContext) marshalNPodSpec2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodSpec(ctx context.Context, sel ast.SelectionSet, v v1.PodSpec) graphql.Marshaler {
24007 return ec._PodSpec(ctx, sel, &v)
24008 }
24009
24010 func (ec *executionContext) marshalNPodStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodStatus(ctx context.Context, sel ast.SelectionSet, v v1.PodStatus) graphql.Marshaler {
24011 return ec._PodStatus(ctx, sel, &v)
24012 }
24013
24014 func (ec *executionContext) marshalNProcess2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐProcess(ctx context.Context, sel ast.SelectionSet, v *model.Process) graphql.Marshaler {
24015 if v == nil {
24016 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24017 ec.Errorf(ctx, "must not be null")
24018 }
24019 return graphql.Null
24020 }
24021 return ec._Process(ctx, sel, v)
24022 }
24023
24024 func (ec *executionContext) marshalNRawIPSet2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSet(ctx context.Context, sel ast.SelectionSet, v v1alpha1.RawIPSet) graphql.Marshaler {
24025 return ec._RawIPSet(ctx, sel, &v)
24026 }
24027
24028 func (ec *executionContext) marshalNRawIptables2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptables(ctx context.Context, sel ast.SelectionSet, v v1alpha1.RawIptables) graphql.Marshaler {
24029 return ec._RawIptables(ctx, sel, &v)
24030 }
24031
24032 func (ec *executionContext) marshalNRawTrafficControl2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControl(ctx context.Context, sel ast.SelectionSet, v v1alpha1.RawTrafficControl) graphql.Marshaler {
24033 return ec._RawTrafficControl(ctx, sel, &v)
24034 }
24035
24036 func (ec *executionContext) marshalNRecord2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecord(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.Record) graphql.Marshaler {
24037 if v == nil {
24038 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24039 ec.Errorf(ctx, "must not be null")
24040 }
24041 return graphql.Null
24042 }
24043 return ec._Record(ctx, sel, v)
24044 }
24045
24046 func (ec *executionContext) marshalNStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaos(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.StressChaos) graphql.Marshaler {
24047 if v == nil {
24048 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24049 ec.Errorf(ctx, "must not be null")
24050 }
24051 return graphql.Null
24052 }
24053 return ec._StressChaos(ctx, sel, v)
24054 }
24055
24056 func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) {
24057 res, err := graphql.UnmarshalString(v)
24058 return res, graphql.ErrorOnPath(ctx, err)
24059 }
24060
24061 func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
24062 res := graphql.MarshalString(v)
24063 if res == graphql.Null {
24064 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24065 ec.Errorf(ctx, "must not be null")
24066 }
24067 }
24068 return res
24069 }
24070
24071 func (ec *executionContext) unmarshalNString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
24072 var vSlice []interface{}
24073 if v != nil {
24074 if tmp1, ok := v.([]interface{}); ok {
24075 vSlice = tmp1
24076 } else {
24077 vSlice = []interface{}{v}
24078 }
24079 }
24080 var err error
24081 res := make([]string, len(vSlice))
24082 for i := range vSlice {
24083 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
24084 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
24085 if err != nil {
24086 return nil, err
24087 }
24088 }
24089 return res, nil
24090 }
24091
24092 func (ec *executionContext) marshalNString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
24093 ret := make(graphql.Array, len(v))
24094 for i := range v {
24095 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
24096 }
24097
24098 return ret
24099 }
24100
24101 func (ec *executionContext) unmarshalNTime2timeᚐTime(ctx context.Context, v interface{}) (time.Time, error) {
24102 res, err := graphql.UnmarshalTime(v)
24103 return res, graphql.ErrorOnPath(ctx, err)
24104 }
24105
24106 func (ec *executionContext) marshalNTime2timeᚐTime(ctx context.Context, sel ast.SelectionSet, v time.Time) graphql.Marshaler {
24107 res := graphql.MarshalTime(v)
24108 if res == graphql.Null {
24109 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24110 ec.Errorf(ctx, "must not be null")
24111 }
24112 }
24113 return res
24114 }
24115
24116 func (ec *executionContext) unmarshalNTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
24117 res, err := graphql.UnmarshalTime(v)
24118 return &res, graphql.ErrorOnPath(ctx, err)
24119 }
24120
24121 func (ec *executionContext) marshalNTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
24122 if v == nil {
24123 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24124 ec.Errorf(ctx, "must not be null")
24125 }
24126 return graphql.Null
24127 }
24128 res := graphql.MarshalTime(*v)
24129 if res == graphql.Null {
24130 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24131 ec.Errorf(ctx, "must not be null")
24132 }
24133 }
24134 return res
24135 }
24136
24137 func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler {
24138 return ec.___Directive(ctx, sel, &v)
24139 }
24140
24141 func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler {
24142 ret := make(graphql.Array, len(v))
24143 var wg sync.WaitGroup
24144 isLen1 := len(v) == 1
24145 if !isLen1 {
24146 wg.Add(len(v))
24147 }
24148 for i := range v {
24149 i := i
24150 fc := &graphql.FieldContext{
24151 Index: &i,
24152 Result: &v[i],
24153 }
24154 ctx := graphql.WithFieldContext(ctx, fc)
24155 f := func(i int) {
24156 defer func() {
24157 if r := recover(); r != nil {
24158 ec.Error(ctx, ec.Recover(ctx, r))
24159 ret = nil
24160 }
24161 }()
24162 if !isLen1 {
24163 defer wg.Done()
24164 }
24165 ret[i] = ec.marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx, sel, v[i])
24166 }
24167 if isLen1 {
24168 f(i)
24169 } else {
24170 go f(i)
24171 }
24172
24173 }
24174 wg.Wait()
24175 return ret
24176 }
24177
24178 func (ec *executionContext) unmarshalN__DirectiveLocation2string(ctx context.Context, v interface{}) (string, error) {
24179 res, err := graphql.UnmarshalString(v)
24180 return res, graphql.ErrorOnPath(ctx, err)
24181 }
24182
24183 func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
24184 res := graphql.MarshalString(v)
24185 if res == graphql.Null {
24186 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24187 ec.Errorf(ctx, "must not be null")
24188 }
24189 }
24190 return res
24191 }
24192
24193 func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
24194 var vSlice []interface{}
24195 if v != nil {
24196 if tmp1, ok := v.([]interface{}); ok {
24197 vSlice = tmp1
24198 } else {
24199 vSlice = []interface{}{v}
24200 }
24201 }
24202 var err error
24203 res := make([]string, len(vSlice))
24204 for i := range vSlice {
24205 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
24206 res[i], err = ec.unmarshalN__DirectiveLocation2string(ctx, vSlice[i])
24207 if err != nil {
24208 return nil, err
24209 }
24210 }
24211 return res, nil
24212 }
24213
24214 func (ec *executionContext) marshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
24215 ret := make(graphql.Array, len(v))
24216 var wg sync.WaitGroup
24217 isLen1 := len(v) == 1
24218 if !isLen1 {
24219 wg.Add(len(v))
24220 }
24221 for i := range v {
24222 i := i
24223 fc := &graphql.FieldContext{
24224 Index: &i,
24225 Result: &v[i],
24226 }
24227 ctx := graphql.WithFieldContext(ctx, fc)
24228 f := func(i int) {
24229 defer func() {
24230 if r := recover(); r != nil {
24231 ec.Error(ctx, ec.Recover(ctx, r))
24232 ret = nil
24233 }
24234 }()
24235 if !isLen1 {
24236 defer wg.Done()
24237 }
24238 ret[i] = ec.marshalN__DirectiveLocation2string(ctx, sel, v[i])
24239 }
24240 if isLen1 {
24241 f(i)
24242 } else {
24243 go f(i)
24244 }
24245
24246 }
24247 wg.Wait()
24248 return ret
24249 }
24250
24251 func (ec *executionContext) marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx context.Context, sel ast.SelectionSet, v introspection.EnumValue) graphql.Marshaler {
24252 return ec.___EnumValue(ctx, sel, &v)
24253 }
24254
24255 func (ec *executionContext) marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx context.Context, sel ast.SelectionSet, v introspection.Field) graphql.Marshaler {
24256 return ec.___Field(ctx, sel, &v)
24257 }
24258
24259 func (ec *executionContext) marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx context.Context, sel ast.SelectionSet, v introspection.InputValue) graphql.Marshaler {
24260 return ec.___InputValue(ctx, sel, &v)
24261 }
24262
24263 func (ec *executionContext) marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
24264 ret := make(graphql.Array, len(v))
24265 var wg sync.WaitGroup
24266 isLen1 := len(v) == 1
24267 if !isLen1 {
24268 wg.Add(len(v))
24269 }
24270 for i := range v {
24271 i := i
24272 fc := &graphql.FieldContext{
24273 Index: &i,
24274 Result: &v[i],
24275 }
24276 ctx := graphql.WithFieldContext(ctx, fc)
24277 f := func(i int) {
24278 defer func() {
24279 if r := recover(); r != nil {
24280 ec.Error(ctx, ec.Recover(ctx, r))
24281 ret = nil
24282 }
24283 }()
24284 if !isLen1 {
24285 defer wg.Done()
24286 }
24287 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
24288 }
24289 if isLen1 {
24290 f(i)
24291 } else {
24292 go f(i)
24293 }
24294
24295 }
24296 wg.Wait()
24297 return ret
24298 }
24299
24300 func (ec *executionContext) marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v introspection.Type) graphql.Marshaler {
24301 return ec.___Type(ctx, sel, &v)
24302 }
24303
24304 func (ec *executionContext) marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
24305 ret := make(graphql.Array, len(v))
24306 var wg sync.WaitGroup
24307 isLen1 := len(v) == 1
24308 if !isLen1 {
24309 wg.Add(len(v))
24310 }
24311 for i := range v {
24312 i := i
24313 fc := &graphql.FieldContext{
24314 Index: &i,
24315 Result: &v[i],
24316 }
24317 ctx := graphql.WithFieldContext(ctx, fc)
24318 f := func(i int) {
24319 defer func() {
24320 if r := recover(); r != nil {
24321 ec.Error(ctx, ec.Recover(ctx, r))
24322 ret = nil
24323 }
24324 }()
24325 if !isLen1 {
24326 defer wg.Done()
24327 }
24328 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
24329 }
24330 if isLen1 {
24331 f(i)
24332 } else {
24333 go f(i)
24334 }
24335
24336 }
24337 wg.Wait()
24338 return ret
24339 }
24340
24341 func (ec *executionContext) marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
24342 if v == nil {
24343 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24344 ec.Errorf(ctx, "must not be null")
24345 }
24346 return graphql.Null
24347 }
24348 return ec.___Type(ctx, sel, v)
24349 }
24350
24351 func (ec *executionContext) unmarshalN__TypeKind2string(ctx context.Context, v interface{}) (string, error) {
24352 res, err := graphql.UnmarshalString(v)
24353 return res, graphql.ErrorOnPath(ctx, err)
24354 }
24355
24356 func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
24357 res := graphql.MarshalString(v)
24358 if res == graphql.Null {
24359 if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) {
24360 ec.Errorf(ctx, "must not be null")
24361 }
24362 }
24363 return res
24364 }
24365
24366 func (ec *executionContext) marshalOAttrOverrideSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐAttrOverrideSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.AttrOverrideSpec) graphql.Marshaler {
24367 if v == nil {
24368 return graphql.Null
24369 }
24370 return ec._AttrOverrideSpec(ctx, sel, v)
24371 }
24372
24373 func (ec *executionContext) marshalOBandwidthSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐBandwidthSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.BandwidthSpec) graphql.Marshaler {
24374 if v == nil {
24375 return graphql.Null
24376 }
24377 return ec._BandwidthSpec(ctx, sel, v)
24378 }
24379
24380 func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) {
24381 res, err := graphql.UnmarshalBoolean(v)
24382 return res, graphql.ErrorOnPath(ctx, err)
24383 }
24384
24385 func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler {
24386 return graphql.MarshalBoolean(v)
24387 }
24388
24389 func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) {
24390 if v == nil {
24391 return nil, nil
24392 }
24393 res, err := graphql.UnmarshalBoolean(v)
24394 return &res, graphql.ErrorOnPath(ctx, err)
24395 }
24396
24397 func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler {
24398 if v == nil {
24399 return graphql.Null
24400 }
24401 return graphql.MarshalBoolean(*v)
24402 }
24403
24404 func (ec *executionContext) marshalOChaosCondition2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosConditionᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.ChaosCondition) graphql.Marshaler {
24405 if v == nil {
24406 return graphql.Null
24407 }
24408 ret := make(graphql.Array, len(v))
24409 var wg sync.WaitGroup
24410 isLen1 := len(v) == 1
24411 if !isLen1 {
24412 wg.Add(len(v))
24413 }
24414 for i := range v {
24415 i := i
24416 fc := &graphql.FieldContext{
24417 Index: &i,
24418 Result: &v[i],
24419 }
24420 ctx := graphql.WithFieldContext(ctx, fc)
24421 f := func(i int) {
24422 defer func() {
24423 if r := recover(); r != nil {
24424 ec.Error(ctx, ec.Recover(ctx, r))
24425 ret = nil
24426 }
24427 }()
24428 if !isLen1 {
24429 defer wg.Done()
24430 }
24431 ret[i] = ec.marshalNChaosCondition2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐChaosCondition(ctx, sel, v[i])
24432 }
24433 if isLen1 {
24434 f(i)
24435 } else {
24436 go f(i)
24437 }
24438
24439 }
24440 wg.Wait()
24441 return ret
24442 }
24443
24444 func (ec *executionContext) marshalOContainerState2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerState(ctx context.Context, sel ast.SelectionSet, v v1.ContainerState) graphql.Marshaler {
24445 return ec._ContainerState(ctx, sel, &v)
24446 }
24447
24448 func (ec *executionContext) marshalOContainerStateRunning2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateRunning(ctx context.Context, sel ast.SelectionSet, v *v1.ContainerStateRunning) graphql.Marshaler {
24449 if v == nil {
24450 return graphql.Null
24451 }
24452 return ec._ContainerStateRunning(ctx, sel, v)
24453 }
24454
24455 func (ec *executionContext) marshalOContainerStateTerminated2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateTerminated(ctx context.Context, sel ast.SelectionSet, v *v1.ContainerStateTerminated) graphql.Marshaler {
24456 if v == nil {
24457 return graphql.Null
24458 }
24459 return ec._ContainerStateTerminated(ctx, sel, v)
24460 }
24461
24462 func (ec *executionContext) marshalOContainerStateWaiting2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStateWaiting(ctx context.Context, sel ast.SelectionSet, v *v1.ContainerStateWaiting) graphql.Marshaler {
24463 if v == nil {
24464 return graphql.Null
24465 }
24466 return ec._ContainerStateWaiting(ctx, sel, v)
24467 }
24468
24469 func (ec *executionContext) marshalOContainerStatus2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatusᚄ(ctx context.Context, sel ast.SelectionSet, v []v1.ContainerStatus) graphql.Marshaler {
24470 if v == nil {
24471 return graphql.Null
24472 }
24473 ret := make(graphql.Array, len(v))
24474 var wg sync.WaitGroup
24475 isLen1 := len(v) == 1
24476 if !isLen1 {
24477 wg.Add(len(v))
24478 }
24479 for i := range v {
24480 i := i
24481 fc := &graphql.FieldContext{
24482 Index: &i,
24483 Result: &v[i],
24484 }
24485 ctx := graphql.WithFieldContext(ctx, fc)
24486 f := func(i int) {
24487 defer func() {
24488 if r := recover(); r != nil {
24489 ec.Error(ctx, ec.Recover(ctx, r))
24490 ret = nil
24491 }
24492 }()
24493 if !isLen1 {
24494 defer wg.Done()
24495 }
24496 ret[i] = ec.marshalNContainerStatus2k8sᚗioᚋapiᚋcoreᚋv1ᚐContainerStatus(ctx, sel, v[i])
24497 }
24498 if isLen1 {
24499 f(i)
24500 } else {
24501 go f(i)
24502 }
24503
24504 }
24505 wg.Wait()
24506 return ret
24507 }
24508
24509 func (ec *executionContext) marshalOCorruptSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐCorruptSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.CorruptSpec) graphql.Marshaler {
24510 if v == nil {
24511 return graphql.Null
24512 }
24513 return ec._CorruptSpec(ctx, sel, v)
24514 }
24515
24516 func (ec *executionContext) marshalODelaySpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDelaySpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.DelaySpec) graphql.Marshaler {
24517 if v == nil {
24518 return graphql.Null
24519 }
24520 return ec._DelaySpec(ctx, sel, v)
24521 }
24522
24523 func (ec *executionContext) marshalODuplicateSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐDuplicateSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.DuplicateSpec) graphql.Marshaler {
24524 if v == nil {
24525 return graphql.Null
24526 }
24527 return ec._DuplicateSpec(ctx, sel, v)
24528 }
24529
24530 func (ec *executionContext) marshalOExperimentStatus2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐExperimentStatus(ctx context.Context, sel ast.SelectionSet, v v1alpha1.ExperimentStatus) graphql.Marshaler {
24531 return ec._ExperimentStatus(ctx, sel, &v)
24532 }
24533
24534 func (ec *executionContext) marshalOFd2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐFdᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Fd) graphql.Marshaler {
24535 if v == nil {
24536 return graphql.Null
24537 }
24538 ret := make(graphql.Array, len(v))
24539 var wg sync.WaitGroup
24540 isLen1 := len(v) == 1
24541 if !isLen1 {
24542 wg.Add(len(v))
24543 }
24544 for i := range v {
24545 i := i
24546 fc := &graphql.FieldContext{
24547 Index: &i,
24548 Result: &v[i],
24549 }
24550 ctx := graphql.WithFieldContext(ctx, fc)
24551 f := func(i int) {
24552 defer func() {
24553 if r := recover(); r != nil {
24554 ec.Error(ctx, ec.Recover(ctx, r))
24555 ret = nil
24556 }
24557 }()
24558 if !isLen1 {
24559 defer wg.Done()
24560 }
24561 ret[i] = ec.marshalNFd2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐFd(ctx, sel, v[i])
24562 }
24563 if isLen1 {
24564 f(i)
24565 } else {
24566 go f(i)
24567 }
24568
24569 }
24570 wg.Wait()
24571 return ret
24572 }
24573
24574 func (ec *executionContext) marshalOHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.HTTPChaos) graphql.Marshaler {
24575 if v == nil {
24576 return graphql.Null
24577 }
24578 ret := make(graphql.Array, len(v))
24579 var wg sync.WaitGroup
24580 isLen1 := len(v) == 1
24581 if !isLen1 {
24582 wg.Add(len(v))
24583 }
24584 for i := range v {
24585 i := i
24586 fc := &graphql.FieldContext{
24587 Index: &i,
24588 Result: &v[i],
24589 }
24590 ctx := graphql.WithFieldContext(ctx, fc)
24591 f := func(i int) {
24592 defer func() {
24593 if r := recover(); r != nil {
24594 ec.Error(ctx, ec.Recover(ctx, r))
24595 ret = nil
24596 }
24597 }()
24598 if !isLen1 {
24599 defer wg.Done()
24600 }
24601 ret[i] = ec.marshalNHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐHTTPChaos(ctx, sel, v[i])
24602 }
24603 if isLen1 {
24604 f(i)
24605 } else {
24606 go f(i)
24607 }
24608
24609 }
24610 wg.Wait()
24611 return ret
24612 }
24613
24614 func (ec *executionContext) marshalOIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.IOChaos) graphql.Marshaler {
24615 if v == nil {
24616 return graphql.Null
24617 }
24618 ret := make(graphql.Array, len(v))
24619 var wg sync.WaitGroup
24620 isLen1 := len(v) == 1
24621 if !isLen1 {
24622 wg.Add(len(v))
24623 }
24624 for i := range v {
24625 i := i
24626 fc := &graphql.FieldContext{
24627 Index: &i,
24628 Result: &v[i],
24629 }
24630 ctx := graphql.WithFieldContext(ctx, fc)
24631 f := func(i int) {
24632 defer func() {
24633 if r := recover(); r != nil {
24634 ec.Error(ctx, ec.Recover(ctx, r))
24635 ret = nil
24636 }
24637 }()
24638 if !isLen1 {
24639 defer wg.Done()
24640 }
24641 ret[i] = ec.marshalNIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaos(ctx, sel, v[i])
24642 }
24643 if isLen1 {
24644 f(i)
24645 } else {
24646 go f(i)
24647 }
24648
24649 }
24650 wg.Wait()
24651 return ret
24652 }
24653
24654 func (ec *executionContext) marshalOIOChaosAction2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosActionᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.IOChaosAction) graphql.Marshaler {
24655 if v == nil {
24656 return graphql.Null
24657 }
24658 ret := make(graphql.Array, len(v))
24659 var wg sync.WaitGroup
24660 isLen1 := len(v) == 1
24661 if !isLen1 {
24662 wg.Add(len(v))
24663 }
24664 for i := range v {
24665 i := i
24666 fc := &graphql.FieldContext{
24667 Index: &i,
24668 Result: &v[i],
24669 }
24670 ctx := graphql.WithFieldContext(ctx, fc)
24671 f := func(i int) {
24672 defer func() {
24673 if r := recover(); r != nil {
24674 ec.Error(ctx, ec.Recover(ctx, r))
24675 ret = nil
24676 }
24677 }()
24678 if !isLen1 {
24679 defer wg.Done()
24680 }
24681 ret[i] = ec.marshalNIOChaosAction2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIOChaosAction(ctx, sel, v[i])
24682 }
24683 if isLen1 {
24684 f(i)
24685 } else {
24686 go f(i)
24687 }
24688
24689 }
24690 wg.Wait()
24691 return ret
24692 }
24693
24694 func (ec *executionContext) unmarshalOInt2int(ctx context.Context, v interface{}) (int, error) {
24695 res, err := graphql.UnmarshalInt(v)
24696 return res, graphql.ErrorOnPath(ctx, err)
24697 }
24698
24699 func (ec *executionContext) marshalOInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler {
24700 return graphql.MarshalInt(v)
24701 }
24702
24703 func (ec *executionContext) unmarshalOInt2int32(ctx context.Context, v interface{}) (int32, error) {
24704 res, err := graphql.UnmarshalInt32(v)
24705 return res, graphql.ErrorOnPath(ctx, err)
24706 }
24707
24708 func (ec *executionContext) marshalOInt2int32(ctx context.Context, sel ast.SelectionSet, v int32) graphql.Marshaler {
24709 return graphql.MarshalInt32(v)
24710 }
24711
24712 func (ec *executionContext) unmarshalOInt2int64(ctx context.Context, v interface{}) (int64, error) {
24713 res, err := graphql.UnmarshalInt64(v)
24714 return res, graphql.ErrorOnPath(ctx, err)
24715 }
24716
24717 func (ec *executionContext) marshalOInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler {
24718 return graphql.MarshalInt64(v)
24719 }
24720
24721 func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) {
24722 if v == nil {
24723 return nil, nil
24724 }
24725 res, err := graphql.UnmarshalInt(v)
24726 return &res, graphql.ErrorOnPath(ctx, err)
24727 }
24728
24729 func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler {
24730 if v == nil {
24731 return graphql.Null
24732 }
24733 return graphql.MarshalInt(*v)
24734 }
24735
24736 func (ec *executionContext) unmarshalOInt2ᚖint32(ctx context.Context, v interface{}) (*int32, error) {
24737 if v == nil {
24738 return nil, nil
24739 }
24740 res, err := graphql.UnmarshalInt32(v)
24741 return &res, graphql.ErrorOnPath(ctx, err)
24742 }
24743
24744 func (ec *executionContext) marshalOInt2ᚖint32(ctx context.Context, sel ast.SelectionSet, v *int32) graphql.Marshaler {
24745 if v == nil {
24746 return graphql.Null
24747 }
24748 return graphql.MarshalInt32(*v)
24749 }
24750
24751 func (ec *executionContext) unmarshalOInt2ᚖint64(ctx context.Context, v interface{}) (*int64, error) {
24752 if v == nil {
24753 return nil, nil
24754 }
24755 res, err := graphql.UnmarshalInt64(v)
24756 return &res, graphql.ErrorOnPath(ctx, err)
24757 }
24758
24759 func (ec *executionContext) marshalOInt2ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler {
24760 if v == nil {
24761 return graphql.Null
24762 }
24763 return graphql.MarshalInt64(*v)
24764 }
24765
24766 func (ec *executionContext) marshalOIoFault2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFaultᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.IoFault) graphql.Marshaler {
24767 if v == nil {
24768 return graphql.Null
24769 }
24770 ret := make(graphql.Array, len(v))
24771 var wg sync.WaitGroup
24772 isLen1 := len(v) == 1
24773 if !isLen1 {
24774 wg.Add(len(v))
24775 }
24776 for i := range v {
24777 i := i
24778 fc := &graphql.FieldContext{
24779 Index: &i,
24780 Result: &v[i],
24781 }
24782 ctx := graphql.WithFieldContext(ctx, fc)
24783 f := func(i int) {
24784 defer func() {
24785 if r := recover(); r != nil {
24786 ec.Error(ctx, ec.Recover(ctx, r))
24787 ret = nil
24788 }
24789 }()
24790 if !isLen1 {
24791 defer wg.Done()
24792 }
24793 ret[i] = ec.marshalNIoFault2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐIoFault(ctx, sel, v[i])
24794 }
24795 if isLen1 {
24796 f(i)
24797 } else {
24798 go f(i)
24799 }
24800
24801 }
24802 wg.Wait()
24803 return ret
24804 }
24805
24806 func (ec *executionContext) marshalOLossSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐLossSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.LossSpec) graphql.Marshaler {
24807 if v == nil {
24808 return graphql.Null
24809 }
24810 return ec._LossSpec(ctx, sel, v)
24811 }
24812
24813 func (ec *executionContext) unmarshalOMap2map(ctx context.Context, v interface{}) (map[string]interface{}, error) {
24814 if v == nil {
24815 return nil, nil
24816 }
24817 res, err := graphql.UnmarshalMap(v)
24818 return res, graphql.ErrorOnPath(ctx, err)
24819 }
24820
24821 func (ec *executionContext) marshalOMap2map(ctx context.Context, sel ast.SelectionSet, v map[string]interface{}) graphql.Marshaler {
24822 if v == nil {
24823 return graphql.Null
24824 }
24825 return graphql.MarshalMap(v)
24826 }
24827
24828 func (ec *executionContext) marshalOMistakeSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐMistakeSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.MistakeSpec) graphql.Marshaler {
24829 if v == nil {
24830 return graphql.Null
24831 }
24832 return ec._MistakeSpec(ctx, sel, v)
24833 }
24834
24835 func (ec *executionContext) marshalONamespace2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐNamespaceᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Namespace) graphql.Marshaler {
24836 if v == nil {
24837 return graphql.Null
24838 }
24839 ret := make(graphql.Array, len(v))
24840 var wg sync.WaitGroup
24841 isLen1 := len(v) == 1
24842 if !isLen1 {
24843 wg.Add(len(v))
24844 }
24845 for i := range v {
24846 i := i
24847 fc := &graphql.FieldContext{
24848 Index: &i,
24849 Result: &v[i],
24850 }
24851 ctx := graphql.WithFieldContext(ctx, fc)
24852 f := func(i int) {
24853 defer func() {
24854 if r := recover(); r != nil {
24855 ec.Error(ctx, ec.Recover(ctx, r))
24856 ret = nil
24857 }
24858 }()
24859 if !isLen1 {
24860 defer wg.Done()
24861 }
24862 ret[i] = ec.marshalNNamespace2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐNamespace(ctx, sel, v[i])
24863 }
24864 if isLen1 {
24865 f(i)
24866 } else {
24867 go f(i)
24868 }
24869
24870 }
24871 wg.Wait()
24872 return ret
24873 }
24874
24875 func (ec *executionContext) marshalONetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.NetworkChaos) graphql.Marshaler {
24876 if v == nil {
24877 return graphql.Null
24878 }
24879 ret := make(graphql.Array, len(v))
24880 var wg sync.WaitGroup
24881 isLen1 := len(v) == 1
24882 if !isLen1 {
24883 wg.Add(len(v))
24884 }
24885 for i := range v {
24886 i := i
24887 fc := &graphql.FieldContext{
24888 Index: &i,
24889 Result: &v[i],
24890 }
24891 ctx := graphql.WithFieldContext(ctx, fc)
24892 f := func(i int) {
24893 defer func() {
24894 if r := recover(); r != nil {
24895 ec.Error(ctx, ec.Recover(ctx, r))
24896 ret = nil
24897 }
24898 }()
24899 if !isLen1 {
24900 defer wg.Done()
24901 }
24902 ret[i] = ec.marshalNNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐNetworkChaos(ctx, sel, v[i])
24903 }
24904 if isLen1 {
24905 f(i)
24906 } else {
24907 go f(i)
24908 }
24909
24910 }
24911 wg.Wait()
24912 return ret
24913 }
24914
24915 func (ec *executionContext) marshalOOwnerReference2ᚕk8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReferenceᚄ(ctx context.Context, sel ast.SelectionSet, v []v11.OwnerReference) graphql.Marshaler {
24916 if v == nil {
24917 return graphql.Null
24918 }
24919 ret := make(graphql.Array, len(v))
24920 var wg sync.WaitGroup
24921 isLen1 := len(v) == 1
24922 if !isLen1 {
24923 wg.Add(len(v))
24924 }
24925 for i := range v {
24926 i := i
24927 fc := &graphql.FieldContext{
24928 Index: &i,
24929 Result: &v[i],
24930 }
24931 ctx := graphql.WithFieldContext(ctx, fc)
24932 f := func(i int) {
24933 defer func() {
24934 if r := recover(); r != nil {
24935 ec.Error(ctx, ec.Recover(ctx, r))
24936 ret = nil
24937 }
24938 }()
24939 if !isLen1 {
24940 defer wg.Done()
24941 }
24942 ret[i] = ec.marshalNOwnerReference2k8sᚗioᚋapimachineryᚋpkgᚋapisᚋmetaᚋv1ᚐOwnerReference(ctx, sel, v[i])
24943 }
24944 if isLen1 {
24945 f(i)
24946 } else {
24947 go f(i)
24948 }
24949
24950 }
24951 wg.Wait()
24952 return ret
24953 }
24954
24955 func (ec *executionContext) marshalOPod2ᚕᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPodᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1.Pod) graphql.Marshaler {
24956 if v == nil {
24957 return graphql.Null
24958 }
24959 ret := make(graphql.Array, len(v))
24960 var wg sync.WaitGroup
24961 isLen1 := len(v) == 1
24962 if !isLen1 {
24963 wg.Add(len(v))
24964 }
24965 for i := range v {
24966 i := i
24967 fc := &graphql.FieldContext{
24968 Index: &i,
24969 Result: &v[i],
24970 }
24971 ctx := graphql.WithFieldContext(ctx, fc)
24972 f := func(i int) {
24973 defer func() {
24974 if r := recover(); r != nil {
24975 ec.Error(ctx, ec.Recover(ctx, r))
24976 ret = nil
24977 }
24978 }()
24979 if !isLen1 {
24980 defer wg.Done()
24981 }
24982 ret[i] = ec.marshalNPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx, sel, v[i])
24983 }
24984 if isLen1 {
24985 f(i)
24986 } else {
24987 go f(i)
24988 }
24989
24990 }
24991 wg.Wait()
24992 return ret
24993 }
24994
24995 func (ec *executionContext) marshalOPod2ᚖk8sᚗioᚋapiᚋcoreᚋv1ᚐPod(ctx context.Context, sel ast.SelectionSet, v *v1.Pod) graphql.Marshaler {
24996 if v == nil {
24997 return graphql.Null
24998 }
24999 return ec._Pod(ctx, sel, v)
25000 }
25001
25002 func (ec *executionContext) marshalOPodCondition2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodConditionᚄ(ctx context.Context, sel ast.SelectionSet, v []v1.PodCondition) graphql.Marshaler {
25003 if v == nil {
25004 return graphql.Null
25005 }
25006 ret := make(graphql.Array, len(v))
25007 var wg sync.WaitGroup
25008 isLen1 := len(v) == 1
25009 if !isLen1 {
25010 wg.Add(len(v))
25011 }
25012 for i := range v {
25013 i := i
25014 fc := &graphql.FieldContext{
25015 Index: &i,
25016 Result: &v[i],
25017 }
25018 ctx := graphql.WithFieldContext(ctx, fc)
25019 f := func(i int) {
25020 defer func() {
25021 if r := recover(); r != nil {
25022 ec.Error(ctx, ec.Recover(ctx, r))
25023 ret = nil
25024 }
25025 }()
25026 if !isLen1 {
25027 defer wg.Done()
25028 }
25029 ret[i] = ec.marshalNPodCondition2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodCondition(ctx, sel, v[i])
25030 }
25031 if isLen1 {
25032 f(i)
25033 } else {
25034 go f(i)
25035 }
25036
25037 }
25038 wg.Wait()
25039 return ret
25040 }
25041
25042 func (ec *executionContext) marshalOPodHTTPChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.PodHttpChaos) graphql.Marshaler {
25043 if v == nil {
25044 return graphql.Null
25045 }
25046 ret := make(graphql.Array, len(v))
25047 var wg sync.WaitGroup
25048 isLen1 := len(v) == 1
25049 if !isLen1 {
25050 wg.Add(len(v))
25051 }
25052 for i := range v {
25053 i := i
25054 fc := &graphql.FieldContext{
25055 Index: &i,
25056 Result: &v[i],
25057 }
25058 ctx := graphql.WithFieldContext(ctx, fc)
25059 f := func(i int) {
25060 defer func() {
25061 if r := recover(); r != nil {
25062 ec.Error(ctx, ec.Recover(ctx, r))
25063 ret = nil
25064 }
25065 }()
25066 if !isLen1 {
25067 defer wg.Done()
25068 }
25069 ret[i] = ec.marshalNPodHTTPChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaos(ctx, sel, v[i])
25070 }
25071 if isLen1 {
25072 f(i)
25073 } else {
25074 go f(i)
25075 }
25076
25077 }
25078 wg.Wait()
25079 return ret
25080 }
25081
25082 func (ec *executionContext) marshalOPodHttpChaosPatchActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchActions(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosPatchActions) graphql.Marshaler {
25083 if v == nil {
25084 return graphql.Null
25085 }
25086 return ec._PodHttpChaosPatchActions(ctx, sel, v)
25087 }
25088
25089 func (ec *executionContext) marshalOPodHttpChaosPatchBodyAction2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosPatchBodyAction(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosPatchBodyAction) graphql.Marshaler {
25090 if v == nil {
25091 return graphql.Null
25092 }
25093 return ec._PodHttpChaosPatchBodyAction(ctx, sel, v)
25094 }
25095
25096 func (ec *executionContext) marshalOPodHttpChaosReplaceActions2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodHttpChaosReplaceActions(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.PodHttpChaosReplaceActions) graphql.Marshaler {
25097 if v == nil {
25098 return graphql.Null
25099 }
25100 return ec._PodHttpChaosReplaceActions(ctx, sel, v)
25101 }
25102
25103 func (ec *executionContext) marshalOPodIOChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.PodIOChaos) graphql.Marshaler {
25104 if v == nil {
25105 return graphql.Null
25106 }
25107 ret := make(graphql.Array, len(v))
25108 var wg sync.WaitGroup
25109 isLen1 := len(v) == 1
25110 if !isLen1 {
25111 wg.Add(len(v))
25112 }
25113 for i := range v {
25114 i := i
25115 fc := &graphql.FieldContext{
25116 Index: &i,
25117 Result: &v[i],
25118 }
25119 ctx := graphql.WithFieldContext(ctx, fc)
25120 f := func(i int) {
25121 defer func() {
25122 if r := recover(); r != nil {
25123 ec.Error(ctx, ec.Recover(ctx, r))
25124 ret = nil
25125 }
25126 }()
25127 if !isLen1 {
25128 defer wg.Done()
25129 }
25130 ret[i] = ec.marshalNPodIOChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodIOChaos(ctx, sel, v[i])
25131 }
25132 if isLen1 {
25133 f(i)
25134 } else {
25135 go f(i)
25136 }
25137
25138 }
25139 wg.Wait()
25140 return ret
25141 }
25142
25143 func (ec *executionContext) marshalOPodIP2ᚕk8sᚗioᚋapiᚋcoreᚋv1ᚐPodIPᚄ(ctx context.Context, sel ast.SelectionSet, v []v1.PodIP) graphql.Marshaler {
25144 if v == nil {
25145 return graphql.Null
25146 }
25147 ret := make(graphql.Array, len(v))
25148 var wg sync.WaitGroup
25149 isLen1 := len(v) == 1
25150 if !isLen1 {
25151 wg.Add(len(v))
25152 }
25153 for i := range v {
25154 i := i
25155 fc := &graphql.FieldContext{
25156 Index: &i,
25157 Result: &v[i],
25158 }
25159 ctx := graphql.WithFieldContext(ctx, fc)
25160 f := func(i int) {
25161 defer func() {
25162 if r := recover(); r != nil {
25163 ec.Error(ctx, ec.Recover(ctx, r))
25164 ret = nil
25165 }
25166 }()
25167 if !isLen1 {
25168 defer wg.Done()
25169 }
25170 ret[i] = ec.marshalNPodIP2k8sᚗioᚋapiᚋcoreᚋv1ᚐPodIP(ctx, sel, v[i])
25171 }
25172 if isLen1 {
25173 f(i)
25174 } else {
25175 go f(i)
25176 }
25177
25178 }
25179 wg.Wait()
25180 return ret
25181 }
25182
25183 func (ec *executionContext) marshalOPodNetworkChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.PodNetworkChaos) graphql.Marshaler {
25184 if v == nil {
25185 return graphql.Null
25186 }
25187 ret := make(graphql.Array, len(v))
25188 var wg sync.WaitGroup
25189 isLen1 := len(v) == 1
25190 if !isLen1 {
25191 wg.Add(len(v))
25192 }
25193 for i := range v {
25194 i := i
25195 fc := &graphql.FieldContext{
25196 Index: &i,
25197 Result: &v[i],
25198 }
25199 ctx := graphql.WithFieldContext(ctx, fc)
25200 f := func(i int) {
25201 defer func() {
25202 if r := recover(); r != nil {
25203 ec.Error(ctx, ec.Recover(ctx, r))
25204 ret = nil
25205 }
25206 }()
25207 if !isLen1 {
25208 defer wg.Done()
25209 }
25210 ret[i] = ec.marshalNPodNetworkChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐPodNetworkChaos(ctx, sel, v[i])
25211 }
25212 if isLen1 {
25213 f(i)
25214 } else {
25215 go f(i)
25216 }
25217
25218 }
25219 wg.Wait()
25220 return ret
25221 }
25222
25223 func (ec *executionContext) marshalOProcess2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐProcessᚄ(ctx context.Context, sel ast.SelectionSet, v []*model.Process) graphql.Marshaler {
25224 if v == nil {
25225 return graphql.Null
25226 }
25227 ret := make(graphql.Array, len(v))
25228 var wg sync.WaitGroup
25229 isLen1 := len(v) == 1
25230 if !isLen1 {
25231 wg.Add(len(v))
25232 }
25233 for i := range v {
25234 i := i
25235 fc := &graphql.FieldContext{
25236 Index: &i,
25237 Result: &v[i],
25238 }
25239 ctx := graphql.WithFieldContext(ctx, fc)
25240 f := func(i int) {
25241 defer func() {
25242 if r := recover(); r != nil {
25243 ec.Error(ctx, ec.Recover(ctx, r))
25244 ret = nil
25245 }
25246 }()
25247 if !isLen1 {
25248 defer wg.Done()
25249 }
25250 ret[i] = ec.marshalNProcess2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋpkgᚋctrlserverᚋgraphᚋmodelᚐProcess(ctx, sel, v[i])
25251 }
25252 if isLen1 {
25253 f(i)
25254 } else {
25255 go f(i)
25256 }
25257
25258 }
25259 wg.Wait()
25260 return ret
25261 }
25262
25263 func (ec *executionContext) marshalORawIPSet2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSetᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.RawIPSet) graphql.Marshaler {
25264 if v == nil {
25265 return graphql.Null
25266 }
25267 ret := make(graphql.Array, len(v))
25268 var wg sync.WaitGroup
25269 isLen1 := len(v) == 1
25270 if !isLen1 {
25271 wg.Add(len(v))
25272 }
25273 for i := range v {
25274 i := i
25275 fc := &graphql.FieldContext{
25276 Index: &i,
25277 Result: &v[i],
25278 }
25279 ctx := graphql.WithFieldContext(ctx, fc)
25280 f := func(i int) {
25281 defer func() {
25282 if r := recover(); r != nil {
25283 ec.Error(ctx, ec.Recover(ctx, r))
25284 ret = nil
25285 }
25286 }()
25287 if !isLen1 {
25288 defer wg.Done()
25289 }
25290 ret[i] = ec.marshalNRawIPSet2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIPSet(ctx, sel, v[i])
25291 }
25292 if isLen1 {
25293 f(i)
25294 } else {
25295 go f(i)
25296 }
25297
25298 }
25299 wg.Wait()
25300 return ret
25301 }
25302
25303 func (ec *executionContext) marshalORawIptables2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptablesᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.RawIptables) graphql.Marshaler {
25304 if v == nil {
25305 return graphql.Null
25306 }
25307 ret := make(graphql.Array, len(v))
25308 var wg sync.WaitGroup
25309 isLen1 := len(v) == 1
25310 if !isLen1 {
25311 wg.Add(len(v))
25312 }
25313 for i := range v {
25314 i := i
25315 fc := &graphql.FieldContext{
25316 Index: &i,
25317 Result: &v[i],
25318 }
25319 ctx := graphql.WithFieldContext(ctx, fc)
25320 f := func(i int) {
25321 defer func() {
25322 if r := recover(); r != nil {
25323 ec.Error(ctx, ec.Recover(ctx, r))
25324 ret = nil
25325 }
25326 }()
25327 if !isLen1 {
25328 defer wg.Done()
25329 }
25330 ret[i] = ec.marshalNRawIptables2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawIptables(ctx, sel, v[i])
25331 }
25332 if isLen1 {
25333 f(i)
25334 } else {
25335 go f(i)
25336 }
25337
25338 }
25339 wg.Wait()
25340 return ret
25341 }
25342
25343 func (ec *executionContext) marshalORawTrafficControl2ᚕgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControlᚄ(ctx context.Context, sel ast.SelectionSet, v []v1alpha1.RawTrafficControl) graphql.Marshaler {
25344 if v == nil {
25345 return graphql.Null
25346 }
25347 ret := make(graphql.Array, len(v))
25348 var wg sync.WaitGroup
25349 isLen1 := len(v) == 1
25350 if !isLen1 {
25351 wg.Add(len(v))
25352 }
25353 for i := range v {
25354 i := i
25355 fc := &graphql.FieldContext{
25356 Index: &i,
25357 Result: &v[i],
25358 }
25359 ctx := graphql.WithFieldContext(ctx, fc)
25360 f := func(i int) {
25361 defer func() {
25362 if r := recover(); r != nil {
25363 ec.Error(ctx, ec.Recover(ctx, r))
25364 ret = nil
25365 }
25366 }()
25367 if !isLen1 {
25368 defer wg.Done()
25369 }
25370 ret[i] = ec.marshalNRawTrafficControl2githubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRawTrafficControl(ctx, sel, v[i])
25371 }
25372 if isLen1 {
25373 f(i)
25374 } else {
25375 go f(i)
25376 }
25377
25378 }
25379 wg.Wait()
25380 return ret
25381 }
25382
25383 func (ec *executionContext) marshalORecord2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecordᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.Record) graphql.Marshaler {
25384 if v == nil {
25385 return graphql.Null
25386 }
25387 ret := make(graphql.Array, len(v))
25388 var wg sync.WaitGroup
25389 isLen1 := len(v) == 1
25390 if !isLen1 {
25391 wg.Add(len(v))
25392 }
25393 for i := range v {
25394 i := i
25395 fc := &graphql.FieldContext{
25396 Index: &i,
25397 Result: &v[i],
25398 }
25399 ctx := graphql.WithFieldContext(ctx, fc)
25400 f := func(i int) {
25401 defer func() {
25402 if r := recover(); r != nil {
25403 ec.Error(ctx, ec.Recover(ctx, r))
25404 ret = nil
25405 }
25406 }()
25407 if !isLen1 {
25408 defer wg.Done()
25409 }
25410 ret[i] = ec.marshalNRecord2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐRecord(ctx, sel, v[i])
25411 }
25412 if isLen1 {
25413 f(i)
25414 } else {
25415 go f(i)
25416 }
25417
25418 }
25419 wg.Wait()
25420 return ret
25421 }
25422
25423 func (ec *executionContext) marshalOReorderSpec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐReorderSpec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.ReorderSpec) graphql.Marshaler {
25424 if v == nil {
25425 return graphql.Null
25426 }
25427 return ec._ReorderSpec(ctx, sel, v)
25428 }
25429
25430 func (ec *executionContext) marshalOStressChaos2ᚕᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaosᚄ(ctx context.Context, sel ast.SelectionSet, v []*v1alpha1.StressChaos) graphql.Marshaler {
25431 if v == nil {
25432 return graphql.Null
25433 }
25434 ret := make(graphql.Array, len(v))
25435 var wg sync.WaitGroup
25436 isLen1 := len(v) == 1
25437 if !isLen1 {
25438 wg.Add(len(v))
25439 }
25440 for i := range v {
25441 i := i
25442 fc := &graphql.FieldContext{
25443 Index: &i,
25444 Result: &v[i],
25445 }
25446 ctx := graphql.WithFieldContext(ctx, fc)
25447 f := func(i int) {
25448 defer func() {
25449 if r := recover(); r != nil {
25450 ec.Error(ctx, ec.Recover(ctx, r))
25451 ret = nil
25452 }
25453 }()
25454 if !isLen1 {
25455 defer wg.Done()
25456 }
25457 ret[i] = ec.marshalNStressChaos2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐStressChaos(ctx, sel, v[i])
25458 }
25459 if isLen1 {
25460 f(i)
25461 } else {
25462 go f(i)
25463 }
25464
25465 }
25466 wg.Wait()
25467 return ret
25468 }
25469
25470 func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) {
25471 res, err := graphql.UnmarshalString(v)
25472 return res, graphql.ErrorOnPath(ctx, err)
25473 }
25474
25475 func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler {
25476 return graphql.MarshalString(v)
25477 }
25478
25479 func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) {
25480 if v == nil {
25481 return nil, nil
25482 }
25483 var vSlice []interface{}
25484 if v != nil {
25485 if tmp1, ok := v.([]interface{}); ok {
25486 vSlice = tmp1
25487 } else {
25488 vSlice = []interface{}{v}
25489 }
25490 }
25491 var err error
25492 res := make([]string, len(vSlice))
25493 for i := range vSlice {
25494 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
25495 res[i], err = ec.unmarshalNString2string(ctx, vSlice[i])
25496 if err != nil {
25497 return nil, err
25498 }
25499 }
25500 return res, nil
25501 }
25502
25503 func (ec *executionContext) marshalOString2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler {
25504 if v == nil {
25505 return graphql.Null
25506 }
25507 ret := make(graphql.Array, len(v))
25508 for i := range v {
25509 ret[i] = ec.marshalNString2string(ctx, sel, v[i])
25510 }
25511
25512 return ret
25513 }
25514
25515 func (ec *executionContext) unmarshalOString2ᚕᚕstringᚄ(ctx context.Context, v interface{}) ([][]string, error) {
25516 if v == nil {
25517 return nil, nil
25518 }
25519 var vSlice []interface{}
25520 if v != nil {
25521 if tmp1, ok := v.([]interface{}); ok {
25522 vSlice = tmp1
25523 } else {
25524 vSlice = []interface{}{v}
25525 }
25526 }
25527 var err error
25528 res := make([][]string, len(vSlice))
25529 for i := range vSlice {
25530 ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i))
25531 res[i], err = ec.unmarshalNString2ᚕstringᚄ(ctx, vSlice[i])
25532 if err != nil {
25533 return nil, err
25534 }
25535 }
25536 return res, nil
25537 }
25538
25539 func (ec *executionContext) marshalOString2ᚕᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v [][]string) graphql.Marshaler {
25540 if v == nil {
25541 return graphql.Null
25542 }
25543 ret := make(graphql.Array, len(v))
25544 for i := range v {
25545 ret[i] = ec.marshalNString2ᚕstringᚄ(ctx, sel, v[i])
25546 }
25547
25548 return ret
25549 }
25550
25551 func (ec *executionContext) unmarshalOString2ᚖstring(ctx context.Context, v interface{}) (*string, error) {
25552 if v == nil {
25553 return nil, nil
25554 }
25555 res, err := graphql.UnmarshalString(v)
25556 return &res, graphql.ErrorOnPath(ctx, err)
25557 }
25558
25559 func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler {
25560 if v == nil {
25561 return graphql.Null
25562 }
25563 return graphql.MarshalString(*v)
25564 }
25565
25566 func (ec *executionContext) unmarshalOTime2ᚖtimeᚐTime(ctx context.Context, v interface{}) (*time.Time, error) {
25567 if v == nil {
25568 return nil, nil
25569 }
25570 res, err := graphql.UnmarshalTime(v)
25571 return &res, graphql.ErrorOnPath(ctx, err)
25572 }
25573
25574 func (ec *executionContext) marshalOTime2ᚖtimeᚐTime(ctx context.Context, sel ast.SelectionSet, v *time.Time) graphql.Marshaler {
25575 if v == nil {
25576 return graphql.Null
25577 }
25578 return graphql.MarshalTime(*v)
25579 }
25580
25581 func (ec *executionContext) marshalOTimespec2ᚖgithubᚗcomᚋchaosᚑmeshᚋchaosᚑmeshᚋapiᚋv1alpha1ᚐTimespec(ctx context.Context, sel ast.SelectionSet, v *v1alpha1.Timespec) graphql.Marshaler {
25582 if v == nil {
25583 return graphql.Null
25584 }
25585 return ec._Timespec(ctx, sel, v)
25586 }
25587
25588 func (ec *executionContext) marshalO__EnumValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.EnumValue) graphql.Marshaler {
25589 if v == nil {
25590 return graphql.Null
25591 }
25592 ret := make(graphql.Array, len(v))
25593 var wg sync.WaitGroup
25594 isLen1 := len(v) == 1
25595 if !isLen1 {
25596 wg.Add(len(v))
25597 }
25598 for i := range v {
25599 i := i
25600 fc := &graphql.FieldContext{
25601 Index: &i,
25602 Result: &v[i],
25603 }
25604 ctx := graphql.WithFieldContext(ctx, fc)
25605 f := func(i int) {
25606 defer func() {
25607 if r := recover(); r != nil {
25608 ec.Error(ctx, ec.Recover(ctx, r))
25609 ret = nil
25610 }
25611 }()
25612 if !isLen1 {
25613 defer wg.Done()
25614 }
25615 ret[i] = ec.marshalN__EnumValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐEnumValue(ctx, sel, v[i])
25616 }
25617 if isLen1 {
25618 f(i)
25619 } else {
25620 go f(i)
25621 }
25622
25623 }
25624 wg.Wait()
25625 return ret
25626 }
25627
25628 func (ec *executionContext) marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Field) graphql.Marshaler {
25629 if v == nil {
25630 return graphql.Null
25631 }
25632 ret := make(graphql.Array, len(v))
25633 var wg sync.WaitGroup
25634 isLen1 := len(v) == 1
25635 if !isLen1 {
25636 wg.Add(len(v))
25637 }
25638 for i := range v {
25639 i := i
25640 fc := &graphql.FieldContext{
25641 Index: &i,
25642 Result: &v[i],
25643 }
25644 ctx := graphql.WithFieldContext(ctx, fc)
25645 f := func(i int) {
25646 defer func() {
25647 if r := recover(); r != nil {
25648 ec.Error(ctx, ec.Recover(ctx, r))
25649 ret = nil
25650 }
25651 }()
25652 if !isLen1 {
25653 defer wg.Done()
25654 }
25655 ret[i] = ec.marshalN__Field2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐField(ctx, sel, v[i])
25656 }
25657 if isLen1 {
25658 f(i)
25659 } else {
25660 go f(i)
25661 }
25662
25663 }
25664 wg.Wait()
25665 return ret
25666 }
25667
25668 func (ec *executionContext) marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.InputValue) graphql.Marshaler {
25669 if v == nil {
25670 return graphql.Null
25671 }
25672 ret := make(graphql.Array, len(v))
25673 var wg sync.WaitGroup
25674 isLen1 := len(v) == 1
25675 if !isLen1 {
25676 wg.Add(len(v))
25677 }
25678 for i := range v {
25679 i := i
25680 fc := &graphql.FieldContext{
25681 Index: &i,
25682 Result: &v[i],
25683 }
25684 ctx := graphql.WithFieldContext(ctx, fc)
25685 f := func(i int) {
25686 defer func() {
25687 if r := recover(); r != nil {
25688 ec.Error(ctx, ec.Recover(ctx, r))
25689 ret = nil
25690 }
25691 }()
25692 if !isLen1 {
25693 defer wg.Done()
25694 }
25695 ret[i] = ec.marshalN__InputValue2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValue(ctx, sel, v[i])
25696 }
25697 if isLen1 {
25698 f(i)
25699 } else {
25700 go f(i)
25701 }
25702
25703 }
25704 wg.Wait()
25705 return ret
25706 }
25707
25708 func (ec *executionContext) marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx context.Context, sel ast.SelectionSet, v *introspection.Schema) graphql.Marshaler {
25709 if v == nil {
25710 return graphql.Null
25711 }
25712 return ec.___Schema(ctx, sel, v)
25713 }
25714
25715 func (ec *executionContext) marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Type) graphql.Marshaler {
25716 if v == nil {
25717 return graphql.Null
25718 }
25719 ret := make(graphql.Array, len(v))
25720 var wg sync.WaitGroup
25721 isLen1 := len(v) == 1
25722 if !isLen1 {
25723 wg.Add(len(v))
25724 }
25725 for i := range v {
25726 i := i
25727 fc := &graphql.FieldContext{
25728 Index: &i,
25729 Result: &v[i],
25730 }
25731 ctx := graphql.WithFieldContext(ctx, fc)
25732 f := func(i int) {
25733 defer func() {
25734 if r := recover(); r != nil {
25735 ec.Error(ctx, ec.Recover(ctx, r))
25736 ret = nil
25737 }
25738 }()
25739 if !isLen1 {
25740 defer wg.Done()
25741 }
25742 ret[i] = ec.marshalN__Type2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, sel, v[i])
25743 }
25744 if isLen1 {
25745 f(i)
25746 } else {
25747 go f(i)
25748 }
25749
25750 }
25751 wg.Wait()
25752 return ret
25753 }
25754
25755 func (ec *executionContext) marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx context.Context, sel ast.SelectionSet, v *introspection.Type) graphql.Marshaler {
25756 if v == nil {
25757 return graphql.Null
25758 }
25759 return ec.___Type(ctx, sel, v)
25760 }
25761
25762
25763