forked from kubernetes/kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zz_generated.openapi.go
18949 lines (18941 loc) · 727 KB
/
zz_generated.openapi.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// +build !ignore_autogenerated
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by openapi-gen. Do not edit it manually!
package openapi
import (
spec "github.com/go-openapi/spec"
resource "k8s.io/kubernetes/pkg/api/resource"
unversioned "k8s.io/kubernetes/pkg/api/unversioned"
common "k8s.io/kubernetes/pkg/genericapiserver/openapi/common"
intstr "k8s.io/kubernetes/pkg/util/intstr"
)
var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
"apps.StatefulSet": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Description: "Spec defines the desired identities of pods in this set.",
Ref: spec.MustCreateRef("#/definitions/apps.StatefulSetSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Description: "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.",
Ref: spec.MustCreateRef("#/definitions/apps.StatefulSetStatus"),
},
},
},
},
},
Dependencies: []string{
"api.ObjectMeta", "apps.StatefulSetSpec", "apps.StatefulSetStatus"},
},
"apps.StatefulSetList": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "StatefulSetList is a collection of StatefulSets.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.ListMeta"),
},
},
"items": {
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/apps.StatefulSet"),
},
},
},
},
},
},
Required: []string{"items"},
},
},
Dependencies: []string{
"apps.StatefulSet", "unversioned.ListMeta"},
},
"apps.StatefulSetSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "A StatefulSetSpec is the specification of a StatefulSet.",
Properties: map[string]spec.Schema{
"replicas": {
SchemaProps: spec.SchemaProps{
Description: "Replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.",
Type: []string{"integer"},
Format: "int32",
},
},
"selector": {
SchemaProps: spec.SchemaProps{
Description: "Selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
Ref: spec.MustCreateRef("#/definitions/unversioned.LabelSelector"),
},
},
"template": {
SchemaProps: spec.SchemaProps{
Description: "Template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.",
Ref: spec.MustCreateRef("#/definitions/api.PodTemplateSpec"),
},
},
"volumeClaimTemplates": {
SchemaProps: spec.SchemaProps{
Description: "VolumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.PersistentVolumeClaim"),
},
},
},
},
},
"serviceName": {
SchemaProps: spec.SchemaProps{
Description: "ServiceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"template", "serviceName"},
},
},
Dependencies: []string{
"api.PersistentVolumeClaim", "api.PodTemplateSpec", "unversioned.LabelSelector"},
},
"apps.StatefulSetStatus": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "StatefulSetStatus represents the current state of a StatefulSet.",
Properties: map[string]spec.Schema{
"observedGeneration": {
SchemaProps: spec.SchemaProps{
Description: "most recent generation observed by this autoscaler.",
Type: []string{"integer"},
Format: "int64",
},
},
"replicas": {
SchemaProps: spec.SchemaProps{
Description: "Replicas is the number of actual replicas.",
Type: []string{"integer"},
Format: "int32",
},
},
},
Required: []string{"replicas"},
},
},
Dependencies: []string{},
},
"authentication.TokenReview": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "TokenReview attempts to authenticate a token to a known user.",
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.TypeMeta"),
},
},
"ObjectMeta": {
SchemaProps: spec.SchemaProps{
Description: "ObjectMeta fulfills the meta.ObjectMetaAccessor interface so that the stock REST handler paths work",
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"Spec": {
SchemaProps: spec.SchemaProps{
Description: "Spec holds information about the request being evaluated",
Ref: spec.MustCreateRef("#/definitions/authentication.TokenReviewSpec"),
},
},
"Status": {
SchemaProps: spec.SchemaProps{
Description: "Status is filled in by the server and indicates whether the request can be authenticated.",
Ref: spec.MustCreateRef("#/definitions/authentication.TokenReviewStatus"),
},
},
},
Required: []string{"TypeMeta", "ObjectMeta", "Spec", "Status"},
},
},
Dependencies: []string{
"api.ObjectMeta", "authentication.TokenReviewSpec", "authentication.TokenReviewStatus", "unversioned.TypeMeta"},
},
"authentication.TokenReviewSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "TokenReviewSpec is a description of the token authentication request.",
Properties: map[string]spec.Schema{
"Token": {
SchemaProps: spec.SchemaProps{
Description: "Token is the opaque bearer token.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"Token"},
},
},
Dependencies: []string{},
},
"authentication.TokenReviewStatus": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "TokenReviewStatus is the result of the token authentication request. This type mirrors the authentication.Token interface",
Properties: map[string]spec.Schema{
"Authenticated": {
SchemaProps: spec.SchemaProps{
Description: "Authenticated indicates that the token was associated with a known user.",
Type: []string{"boolean"},
Format: "",
},
},
"User": {
SchemaProps: spec.SchemaProps{
Description: "User is the UserInfo associated with the provided token.",
Ref: spec.MustCreateRef("#/definitions/authentication.UserInfo"),
},
},
"Error": {
SchemaProps: spec.SchemaProps{
Description: "Error indicates that the token couldn't be checked",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"Authenticated", "User", "Error"},
},
},
Dependencies: []string{
"authentication.UserInfo"},
},
"authentication.UserInfo": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "UserInfo holds the information about the user needed to implement the user.Info interface.",
Properties: map[string]spec.Schema{
"Username": {
SchemaProps: spec.SchemaProps{
Description: "The name that uniquely identifies this user among all active users.",
Type: []string{"string"},
Format: "",
},
},
"UID": {
SchemaProps: spec.SchemaProps{
Description: "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.",
Type: []string{"string"},
Format: "",
},
},
"Groups": {
SchemaProps: spec.SchemaProps{
Description: "The names of groups this user is a part of.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"Extra": {
SchemaProps: spec.SchemaProps{
Description: "Any additional information provided by the authenticator.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
},
},
},
},
Required: []string{"Username", "UID", "Groups", "Extra"},
},
},
Dependencies: []string{},
},
"authorization.LocalSubjectAccessReview": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.",
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.TypeMeta"),
},
},
"ObjectMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"Spec": {
SchemaProps: spec.SchemaProps{
Description: "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.",
Ref: spec.MustCreateRef("#/definitions/authorization.SubjectAccessReviewSpec"),
},
},
"Status": {
SchemaProps: spec.SchemaProps{
Description: "Status is filled in by the server and indicates whether the request is allowed or not",
Ref: spec.MustCreateRef("#/definitions/authorization.SubjectAccessReviewStatus"),
},
},
},
Required: []string{"TypeMeta", "ObjectMeta", "Spec", "Status"},
},
},
Dependencies: []string{
"api.ObjectMeta", "authorization.SubjectAccessReviewSpec", "authorization.SubjectAccessReviewStatus", "unversioned.TypeMeta"},
},
"authorization.NonResourceAttributes": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface",
Properties: map[string]spec.Schema{
"Path": {
SchemaProps: spec.SchemaProps{
Description: "Path is the URL path of the request",
Type: []string{"string"},
Format: "",
},
},
"Verb": {
SchemaProps: spec.SchemaProps{
Description: "Verb is the standard HTTP verb",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"Path", "Verb"},
},
},
Dependencies: []string{},
},
"authorization.ResourceAttributes": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface",
Properties: map[string]spec.Schema{
"Namespace": {
SchemaProps: spec.SchemaProps{
Description: "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview",
Type: []string{"string"},
Format: "",
},
},
"Verb": {
SchemaProps: spec.SchemaProps{
Description: "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.",
Type: []string{"string"},
Format: "",
},
},
"Group": {
SchemaProps: spec.SchemaProps{
Description: "Group is the API Group of the Resource. \"*\" means all.",
Type: []string{"string"},
Format: "",
},
},
"Version": {
SchemaProps: spec.SchemaProps{
Description: "Version is the API Version of the Resource. \"*\" means all.",
Type: []string{"string"},
Format: "",
},
},
"Resource": {
SchemaProps: spec.SchemaProps{
Description: "Resource is one of the existing resource types. \"*\" means all.",
Type: []string{"string"},
Format: "",
},
},
"Subresource": {
SchemaProps: spec.SchemaProps{
Description: "Subresource is one of the existing resource types. \"\" means none.",
Type: []string{"string"},
Format: "",
},
},
"Name": {
SchemaProps: spec.SchemaProps{
Description: "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"Namespace", "Verb", "Group", "Version", "Resource", "Subresource", "Name"},
},
},
Dependencies: []string{},
},
"authorization.SelfSubjectAccessReview": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action",
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.TypeMeta"),
},
},
"ObjectMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"Spec": {
SchemaProps: spec.SchemaProps{
Description: "Spec holds information about the request being evaluated.",
Ref: spec.MustCreateRef("#/definitions/authorization.SelfSubjectAccessReviewSpec"),
},
},
"Status": {
SchemaProps: spec.SchemaProps{
Description: "Status is filled in by the server and indicates whether the request is allowed or not",
Ref: spec.MustCreateRef("#/definitions/authorization.SubjectAccessReviewStatus"),
},
},
},
Required: []string{"TypeMeta", "ObjectMeta", "Spec", "Status"},
},
},
Dependencies: []string{
"api.ObjectMeta", "authorization.SelfSubjectAccessReviewSpec", "authorization.SubjectAccessReviewStatus", "unversioned.TypeMeta"},
},
"authorization.SelfSubjectAccessReviewSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAttributes and NonResourceAttributes must be set",
Properties: map[string]spec.Schema{
"ResourceAttributes": {
SchemaProps: spec.SchemaProps{
Description: "ResourceAttributes describes information for a resource access request",
Ref: spec.MustCreateRef("#/definitions/authorization.ResourceAttributes"),
},
},
"NonResourceAttributes": {
SchemaProps: spec.SchemaProps{
Description: "NonResourceAttributes describes information for a non-resource access request",
Ref: spec.MustCreateRef("#/definitions/authorization.NonResourceAttributes"),
},
},
},
Required: []string{"ResourceAttributes", "NonResourceAttributes"},
},
},
Dependencies: []string{
"authorization.NonResourceAttributes", "authorization.ResourceAttributes"},
},
"authorization.SubjectAccessReview": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SubjectAccessReview checks whether or not a user or group can perform an action. Not filling in a spec.namespace means \"in all namespaces\".",
Properties: map[string]spec.Schema{
"TypeMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.TypeMeta"),
},
},
"ObjectMeta": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"Spec": {
SchemaProps: spec.SchemaProps{
Description: "Spec holds information about the request being evaluated",
Ref: spec.MustCreateRef("#/definitions/authorization.SubjectAccessReviewSpec"),
},
},
"Status": {
SchemaProps: spec.SchemaProps{
Description: "Status is filled in by the server and indicates whether the request is allowed or not",
Ref: spec.MustCreateRef("#/definitions/authorization.SubjectAccessReviewStatus"),
},
},
},
Required: []string{"TypeMeta", "ObjectMeta", "Spec", "Status"},
},
},
Dependencies: []string{
"api.ObjectMeta", "authorization.SubjectAccessReviewSpec", "authorization.SubjectAccessReviewStatus", "unversioned.TypeMeta"},
},
"authorization.SubjectAccessReviewSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAttributes and NonResourceAttributes must be set",
Properties: map[string]spec.Schema{
"ResourceAttributes": {
SchemaProps: spec.SchemaProps{
Description: "ResourceAttributes describes information for a resource access request",
Ref: spec.MustCreateRef("#/definitions/authorization.ResourceAttributes"),
},
},
"NonResourceAttributes": {
SchemaProps: spec.SchemaProps{
Description: "NonResourceAttributes describes information for a non-resource access request",
Ref: spec.MustCreateRef("#/definitions/authorization.NonResourceAttributes"),
},
},
"User": {
SchemaProps: spec.SchemaProps{
Description: "User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups",
Type: []string{"string"},
Format: "",
},
},
"Groups": {
SchemaProps: spec.SchemaProps{
Description: "Groups is the groups you're testing for.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
"Extra": {
SchemaProps: spec.SchemaProps{
Description: "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Type: []string{"string"},
Format: "",
},
},
},
},
},
},
},
},
},
Required: []string{"ResourceAttributes", "NonResourceAttributes", "User", "Groups", "Extra"},
},
},
Dependencies: []string{
"authorization.NonResourceAttributes", "authorization.ResourceAttributes"},
},
"authorization.SubjectAccessReviewStatus": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "SubjectAccessReviewStatus",
Properties: map[string]spec.Schema{
"Allowed": {
SchemaProps: spec.SchemaProps{
Description: "Allowed is required. True if the action would be allowed, false otherwise.",
Type: []string{"boolean"},
Format: "",
},
},
"Reason": {
SchemaProps: spec.SchemaProps{
Description: "Reason is optional. It indicates why a request was allowed or denied.",
Type: []string{"string"},
Format: "",
},
},
"EvaluationError": {
SchemaProps: spec.SchemaProps{
Description: "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"Allowed", "Reason", "EvaluationError"},
},
},
Dependencies: []string{},
},
"autoscaling.CrossVersionObjectReference": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
Properties: map[string]spec.Schema{
"kind": {
SchemaProps: spec.SchemaProps{
Description: "Kind of the referent; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds\"",
Type: []string{"string"},
Format: "",
},
},
"name": {
SchemaProps: spec.SchemaProps{
Description: "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
Type: []string{"string"},
Format: "",
},
},
"apiVersion": {
SchemaProps: spec.SchemaProps{
Description: "API version of the referent",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"kind", "name"},
},
},
Dependencies: []string{},
},
"autoscaling.HorizontalPodAutoscaler": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "configuration of a horizontal pod autoscaler.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Description: "behaviour of autoscaler. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.",
Ref: spec.MustCreateRef("#/definitions/autoscaling.HorizontalPodAutoscalerSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Description: "current information about the autoscaler.",
Ref: spec.MustCreateRef("#/definitions/autoscaling.HorizontalPodAutoscalerStatus"),
},
},
},
},
},
Dependencies: []string{
"api.ObjectMeta", "autoscaling.HorizontalPodAutoscalerSpec", "autoscaling.HorizontalPodAutoscalerStatus"},
},
"autoscaling.HorizontalPodAutoscalerList": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "list of horizontal pod autoscaler objects.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.ListMeta"),
},
},
"items": {
SchemaProps: spec.SchemaProps{
Description: "list of horizontal pod autoscaler objects.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/autoscaling.HorizontalPodAutoscaler"),
},
},
},
},
},
},
Required: []string{"items"},
},
},
Dependencies: []string{
"autoscaling.HorizontalPodAutoscaler", "unversioned.ListMeta"},
},
"autoscaling.HorizontalPodAutoscalerSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "specification of a horizontal pod autoscaler.",
Properties: map[string]spec.Schema{
"scaleTargetRef": {
SchemaProps: spec.SchemaProps{
Description: "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.",
Ref: spec.MustCreateRef("#/definitions/autoscaling.CrossVersionObjectReference"),
},
},
"minReplicas": {
SchemaProps: spec.SchemaProps{
Description: "lower limit for the number of pods that can be set by the autoscaler, default 1.",
Type: []string{"integer"},
Format: "int32",
},
},
"maxReplicas": {
SchemaProps: spec.SchemaProps{
Description: "upper limit for the number of pods that can be set by the autoscaler. It cannot be smaller than MinReplicas.",
Type: []string{"integer"},
Format: "int32",
},
},
"targetCPUUtilizationPercentage": {
SchemaProps: spec.SchemaProps{
Description: "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.",
Type: []string{"integer"},
Format: "int32",
},
},
},
Required: []string{"scaleTargetRef", "maxReplicas"},
},
},
Dependencies: []string{
"autoscaling.CrossVersionObjectReference"},
},
"autoscaling.HorizontalPodAutoscalerStatus": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "current status of a horizontal pod autoscaler",
Properties: map[string]spec.Schema{
"observedGeneration": {
SchemaProps: spec.SchemaProps{
Description: "most recent generation observed by this autoscaler.",
Type: []string{"integer"},
Format: "int64",
},
},
"lastScaleTime": {
SchemaProps: spec.SchemaProps{
Description: "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.",
Ref: spec.MustCreateRef("#/definitions/unversioned.Time"),
},
},
"currentReplicas": {
SchemaProps: spec.SchemaProps{
Description: "current number of replicas of pods managed by this autoscaler.",
Type: []string{"integer"},
Format: "int32",
},
},
"desiredReplicas": {
SchemaProps: spec.SchemaProps{
Description: "desired number of replicas of pods managed by this autoscaler.",
Type: []string{"integer"},
Format: "int32",
},
},
"currentCPUUtilizationPercentage": {
SchemaProps: spec.SchemaProps{
Description: "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.",
Type: []string{"integer"},
Format: "int32",
},
},
},
Required: []string{"currentReplicas", "desiredReplicas"},
},
},
Dependencies: []string{
"unversioned.Time"},
},
"autoscaling.Scale": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "Scale represents a scaling request for a resource.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata.",
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Description: "defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status.",
Ref: spec.MustCreateRef("#/definitions/autoscaling.ScaleSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Description: "current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only.",
Ref: spec.MustCreateRef("#/definitions/autoscaling.ScaleStatus"),
},
},
},
},
},
Dependencies: []string{
"api.ObjectMeta", "autoscaling.ScaleSpec", "autoscaling.ScaleStatus"},
},
"autoscaling.ScaleSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ScaleSpec describes the attributes of a scale subresource.",
Properties: map[string]spec.Schema{
"replicas": {
SchemaProps: spec.SchemaProps{
Description: "desired number of instances for the scaled object.",
Type: []string{"integer"},
Format: "int32",
},
},
},
},
},
Dependencies: []string{},
},
"autoscaling.ScaleStatus": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "ScaleStatus represents the current status of a scale subresource.",
Properties: map[string]spec.Schema{
"replicas": {
SchemaProps: spec.SchemaProps{
Description: "actual number of observed instances of the scaled object.",
Type: []string{"integer"},
Format: "int32",
},
},
"selector": {
SchemaProps: spec.SchemaProps{
Description: "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
Type: []string{"string"},
Format: "",
},
},
},
Required: []string{"replicas"},
},
},
Dependencies: []string{},
},
"batch.CronJob": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CronJob represents the configuration of a single cron job.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
Ref: spec.MustCreateRef("#/definitions/api.ObjectMeta"),
},
},
"spec": {
SchemaProps: spec.SchemaProps{
Description: "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
Ref: spec.MustCreateRef("#/definitions/batch.CronJobSpec"),
},
},
"status": {
SchemaProps: spec.SchemaProps{
Description: "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
Ref: spec.MustCreateRef("#/definitions/batch.CronJobStatus"),
},
},
},
},
},
Dependencies: []string{
"api.ObjectMeta", "batch.CronJobSpec", "batch.CronJobStatus"},
},
"batch.CronJobList": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CronJobList is a collection of cron jobs.",
Properties: map[string]spec.Schema{
"metadata": {
SchemaProps: spec.SchemaProps{
Description: "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
Ref: spec.MustCreateRef("#/definitions/unversioned.ListMeta"),
},
},
"items": {
SchemaProps: spec.SchemaProps{
Description: "Items is the list of CronJob.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/batch.CronJob"),
},
},
},
},
},
},
Required: []string{"items"},
},
},
Dependencies: []string{
"batch.CronJob", "unversioned.ListMeta"},
},
"batch.CronJobSpec": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CronJobSpec describes how the job execution will look like and when it will actually run.",
Properties: map[string]spec.Schema{
"schedule": {
SchemaProps: spec.SchemaProps{
Description: "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.",
Type: []string{"string"},
Format: "",
},
},
"startingDeadlineSeconds": {
SchemaProps: spec.SchemaProps{
Description: "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.",
Type: []string{"integer"},
Format: "int64",
},
},
"concurrencyPolicy": {
SchemaProps: spec.SchemaProps{
Description: "ConcurrencyPolicy specifies how to treat concurrent executions of a Job.",
Type: []string{"string"},
Format: "",
},
},
"suspend": {
SchemaProps: spec.SchemaProps{
Description: "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.",
Type: []string{"boolean"},
Format: "",
},
},
"jobTemplate": {
SchemaProps: spec.SchemaProps{
Description: "JobTemplate is the object that describes the job that will be created when executing a CronJob.",
Ref: spec.MustCreateRef("#/definitions/batch.JobTemplateSpec"),
},
},
},
Required: []string{"schedule", "jobTemplate"},
},
},
Dependencies: []string{
"batch.JobTemplateSpec"},
},
"batch.CronJobStatus": {
Schema: spec.Schema{
SchemaProps: spec.SchemaProps{
Description: "CronJobStatus represents the current state of a cron job.",
Properties: map[string]spec.Schema{
"active": {
SchemaProps: spec.SchemaProps{
Description: "Active holds pointers to currently running jobs.",
Type: []string{"array"},
Items: &spec.SchemaOrArray{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/api.ObjectReference"),
},
},
},
},
},
"lastScheduleTime": {
SchemaProps: spec.SchemaProps{
Description: "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.",
Ref: spec.MustCreateRef("#/definitions/unversioned.Time"),
},
},
},
},
},
Dependencies: []string{
"api.ObjectReference", "unversioned.Time"},
},