@@ -14,8 +14,8 @@ import (
14
14
15
15
func init () {
16
16
if err := api .Scheme .AddGeneratedConversionFuncs (
17
- Convert_v1_AuthorizationAttributes_To_api_AuthorizationAttributes ,
18
- Convert_api_AuthorizationAttributes_To_v1_AuthorizationAttributes ,
17
+ Convert_v1_Action_To_api_Action ,
18
+ Convert_api_Action_To_v1_Action ,
19
19
Convert_v1_ClusterPolicy_To_api_ClusterPolicy ,
20
20
Convert_api_ClusterPolicy_To_v1_ClusterPolicy ,
21
21
Convert_v1_ClusterPolicyBinding_To_api_ClusterPolicyBinding ,
@@ -76,7 +76,7 @@ func init() {
76
76
}
77
77
}
78
78
79
- func autoConvert_v1_AuthorizationAttributes_To_api_AuthorizationAttributes (in * AuthorizationAttributes , out * authorization_api.AuthorizationAttributes , s conversion.Scope ) error {
79
+ func autoConvert_v1_Action_To_api_Action (in * Action , out * authorization_api.Action , s conversion.Scope ) error {
80
80
out .Namespace = in .Namespace
81
81
out .Verb = in .Verb
82
82
out .Group = in .Group
@@ -89,11 +89,11 @@ func autoConvert_v1_AuthorizationAttributes_To_api_AuthorizationAttributes(in *A
89
89
return nil
90
90
}
91
91
92
- func Convert_v1_AuthorizationAttributes_To_api_AuthorizationAttributes (in * AuthorizationAttributes , out * authorization_api.AuthorizationAttributes , s conversion.Scope ) error {
93
- return autoConvert_v1_AuthorizationAttributes_To_api_AuthorizationAttributes (in , out , s )
92
+ func Convert_v1_Action_To_api_Action (in * Action , out * authorization_api.Action , s conversion.Scope ) error {
93
+ return autoConvert_v1_Action_To_api_Action (in , out , s )
94
94
}
95
95
96
- func autoConvert_api_AuthorizationAttributes_To_v1_AuthorizationAttributes (in * authorization_api.AuthorizationAttributes , out * AuthorizationAttributes , s conversion.Scope ) error {
96
+ func autoConvert_api_Action_To_v1_Action (in * authorization_api.Action , out * Action , s conversion.Scope ) error {
97
97
out .Namespace = in .Namespace
98
98
out .Verb = in .Verb
99
99
out .Group = in .Group
@@ -106,8 +106,8 @@ func autoConvert_api_AuthorizationAttributes_To_v1_AuthorizationAttributes(in *a
106
106
return nil
107
107
}
108
108
109
- func Convert_api_AuthorizationAttributes_To_v1_AuthorizationAttributes (in * authorization_api.AuthorizationAttributes , out * AuthorizationAttributes , s conversion.Scope ) error {
110
- return autoConvert_api_AuthorizationAttributes_To_v1_AuthorizationAttributes (in , out , s )
109
+ func Convert_api_Action_To_v1_Action (in * authorization_api.Action , out * Action , s conversion.Scope ) error {
110
+ return autoConvert_api_Action_To_v1_Action (in , out , s )
111
111
}
112
112
113
113
func autoConvert_v1_ClusterPolicyBindingList_To_api_ClusterPolicyBindingList (in * ClusterPolicyBindingList , out * authorization_api.ClusterPolicyBindingList , s conversion.Scope ) error {
@@ -406,6 +406,70 @@ func Convert_api_IsPersonalSubjectAccessReview_To_v1_IsPersonalSubjectAccessRevi
406
406
return autoConvert_api_IsPersonalSubjectAccessReview_To_v1_IsPersonalSubjectAccessReview (in , out , s )
407
407
}
408
408
409
+ func autoConvert_v1_LocalResourceAccessReview_To_api_LocalResourceAccessReview (in * LocalResourceAccessReview , out * authorization_api.LocalResourceAccessReview , s conversion.Scope ) error {
410
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
411
+ return err
412
+ }
413
+ if err := Convert_v1_Action_To_api_Action (& in .Action , & out .Action , s ); err != nil {
414
+ return err
415
+ }
416
+ return nil
417
+ }
418
+
419
+ func Convert_v1_LocalResourceAccessReview_To_api_LocalResourceAccessReview (in * LocalResourceAccessReview , out * authorization_api.LocalResourceAccessReview , s conversion.Scope ) error {
420
+ return autoConvert_v1_LocalResourceAccessReview_To_api_LocalResourceAccessReview (in , out , s )
421
+ }
422
+
423
+ func autoConvert_api_LocalResourceAccessReview_To_v1_LocalResourceAccessReview (in * authorization_api.LocalResourceAccessReview , out * LocalResourceAccessReview , s conversion.Scope ) error {
424
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
425
+ return err
426
+ }
427
+ if err := Convert_api_Action_To_v1_Action (& in .Action , & out .Action , s ); err != nil {
428
+ return err
429
+ }
430
+ return nil
431
+ }
432
+
433
+ func Convert_api_LocalResourceAccessReview_To_v1_LocalResourceAccessReview (in * authorization_api.LocalResourceAccessReview , out * LocalResourceAccessReview , s conversion.Scope ) error {
434
+ return autoConvert_api_LocalResourceAccessReview_To_v1_LocalResourceAccessReview (in , out , s )
435
+ }
436
+
437
+ func autoConvert_v1_LocalSubjectAccessReview_To_api_LocalSubjectAccessReview (in * LocalSubjectAccessReview , out * authorization_api.LocalSubjectAccessReview , s conversion.Scope ) error {
438
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
439
+ return err
440
+ }
441
+ if err := Convert_v1_Action_To_api_Action (& in .Action , & out .Action , s ); err != nil {
442
+ return err
443
+ }
444
+ out .User = in .User
445
+ if in .Scopes != nil {
446
+ in , out := & in .Scopes , & out .Scopes
447
+ * out = make ([]string , len (* in ))
448
+ copy (* out , * in )
449
+ } else {
450
+ out .Scopes = nil
451
+ }
452
+ return nil
453
+ }
454
+
455
+ func autoConvert_api_LocalSubjectAccessReview_To_v1_LocalSubjectAccessReview (in * authorization_api.LocalSubjectAccessReview , out * LocalSubjectAccessReview , s conversion.Scope ) error {
456
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
457
+ return err
458
+ }
459
+ if err := Convert_api_Action_To_v1_Action (& in .Action , & out .Action , s ); err != nil {
460
+ return err
461
+ }
462
+ out .User = in .User
463
+ if in .Scopes != nil {
464
+ in , out := & in .Scopes , & out .Scopes
465
+ * out = make (OptionalScopes , len (* in ))
466
+ copy (* out , * in )
467
+ } else {
468
+ out .Scopes = nil
469
+ }
470
+ return nil
471
+ }
472
+
409
473
func autoConvert_v1_PolicyBindingList_To_api_PolicyBindingList (in * PolicyBindingList , out * authorization_api.PolicyBindingList , s conversion.Scope ) error {
410
474
if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
411
475
return err
@@ -506,6 +570,50 @@ func Convert_api_PolicyList_To_v1_PolicyList(in *authorization_api.PolicyList, o
506
570
return autoConvert_api_PolicyList_To_v1_PolicyList (in , out , s )
507
571
}
508
572
573
+ func autoConvert_v1_ResourceAccessReview_To_api_ResourceAccessReview (in * ResourceAccessReview , out * authorization_api.ResourceAccessReview , s conversion.Scope ) error {
574
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
575
+ return err
576
+ }
577
+ if err := Convert_v1_Action_To_api_Action (& in .Action , & out .Action , s ); err != nil {
578
+ return err
579
+ }
580
+ return nil
581
+ }
582
+
583
+ func Convert_v1_ResourceAccessReview_To_api_ResourceAccessReview (in * ResourceAccessReview , out * authorization_api.ResourceAccessReview , s conversion.Scope ) error {
584
+ return autoConvert_v1_ResourceAccessReview_To_api_ResourceAccessReview (in , out , s )
585
+ }
586
+
587
+ func autoConvert_api_ResourceAccessReview_To_v1_ResourceAccessReview (in * authorization_api.ResourceAccessReview , out * ResourceAccessReview , s conversion.Scope ) error {
588
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
589
+ return err
590
+ }
591
+ if err := Convert_api_Action_To_v1_Action (& in .Action , & out .Action , s ); err != nil {
592
+ return err
593
+ }
594
+ return nil
595
+ }
596
+
597
+ func Convert_api_ResourceAccessReview_To_v1_ResourceAccessReview (in * authorization_api.ResourceAccessReview , out * ResourceAccessReview , s conversion.Scope ) error {
598
+ return autoConvert_api_ResourceAccessReview_To_v1_ResourceAccessReview (in , out , s )
599
+ }
600
+
601
+ func autoConvert_v1_ResourceAccessReviewResponse_To_api_ResourceAccessReviewResponse (in * ResourceAccessReviewResponse , out * authorization_api.ResourceAccessReviewResponse , s conversion.Scope ) error {
602
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
603
+ return err
604
+ }
605
+ out .Namespace = in .Namespace
606
+ return nil
607
+ }
608
+
609
+ func autoConvert_api_ResourceAccessReviewResponse_To_v1_ResourceAccessReviewResponse (in * authorization_api.ResourceAccessReviewResponse , out * ResourceAccessReviewResponse , s conversion.Scope ) error {
610
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
611
+ return err
612
+ }
613
+ out .Namespace = in .Namespace
614
+ return nil
615
+ }
616
+
509
617
func autoConvert_v1_Role_To_api_Role (in * Role , out * authorization_api.Role , s conversion.Scope ) error {
510
618
if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
511
619
return err
@@ -715,7 +823,13 @@ func Convert_api_SelfSubjectRulesReview_To_v1_SelfSubjectRulesReview(in *authori
715
823
}
716
824
717
825
func autoConvert_v1_SelfSubjectRulesReviewSpec_To_api_SelfSubjectRulesReviewSpec (in * SelfSubjectRulesReviewSpec , out * authorization_api.SelfSubjectRulesReviewSpec , s conversion.Scope ) error {
718
- out .Scopes = in .Scopes
826
+ if in .Scopes != nil {
827
+ in , out := & in .Scopes , & out .Scopes
828
+ * out = make ([]string , len (* in ))
829
+ copy (* out , * in )
830
+ } else {
831
+ out .Scopes = nil
832
+ }
719
833
return nil
720
834
}
721
835
@@ -724,14 +838,56 @@ func Convert_v1_SelfSubjectRulesReviewSpec_To_api_SelfSubjectRulesReviewSpec(in
724
838
}
725
839
726
840
func autoConvert_api_SelfSubjectRulesReviewSpec_To_v1_SelfSubjectRulesReviewSpec (in * authorization_api.SelfSubjectRulesReviewSpec , out * SelfSubjectRulesReviewSpec , s conversion.Scope ) error {
727
- out .Scopes = in .Scopes
841
+ if in .Scopes != nil {
842
+ in , out := & in .Scopes , & out .Scopes
843
+ * out = make (OptionalScopes , len (* in ))
844
+ copy (* out , * in )
845
+ } else {
846
+ out .Scopes = nil
847
+ }
728
848
return nil
729
849
}
730
850
731
851
func Convert_api_SelfSubjectRulesReviewSpec_To_v1_SelfSubjectRulesReviewSpec (in * authorization_api.SelfSubjectRulesReviewSpec , out * SelfSubjectRulesReviewSpec , s conversion.Scope ) error {
732
852
return autoConvert_api_SelfSubjectRulesReviewSpec_To_v1_SelfSubjectRulesReviewSpec (in , out , s )
733
853
}
734
854
855
+ func autoConvert_v1_SubjectAccessReview_To_api_SubjectAccessReview (in * SubjectAccessReview , out * authorization_api.SubjectAccessReview , s conversion.Scope ) error {
856
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
857
+ return err
858
+ }
859
+ if err := Convert_v1_Action_To_api_Action (& in .Action , & out .Action , s ); err != nil {
860
+ return err
861
+ }
862
+ out .User = in .User
863
+ if in .Scopes != nil {
864
+ in , out := & in .Scopes , & out .Scopes
865
+ * out = make ([]string , len (* in ))
866
+ copy (* out , * in )
867
+ } else {
868
+ out .Scopes = nil
869
+ }
870
+ return nil
871
+ }
872
+
873
+ func autoConvert_api_SubjectAccessReview_To_v1_SubjectAccessReview (in * authorization_api.SubjectAccessReview , out * SubjectAccessReview , s conversion.Scope ) error {
874
+ if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
875
+ return err
876
+ }
877
+ if err := Convert_api_Action_To_v1_Action (& in .Action , & out .Action , s ); err != nil {
878
+ return err
879
+ }
880
+ out .User = in .User
881
+ if in .Scopes != nil {
882
+ in , out := & in .Scopes , & out .Scopes
883
+ * out = make (OptionalScopes , len (* in ))
884
+ copy (* out , * in )
885
+ } else {
886
+ out .Scopes = nil
887
+ }
888
+ return nil
889
+ }
890
+
735
891
func autoConvert_v1_SubjectAccessReviewResponse_To_api_SubjectAccessReviewResponse (in * SubjectAccessReviewResponse , out * authorization_api.SubjectAccessReviewResponse , s conversion.Scope ) error {
736
892
if err := api .Convert_unversioned_TypeMeta_To_unversioned_TypeMeta (& in .TypeMeta , & out .TypeMeta , s ); err != nil {
737
893
return err
0 commit comments