/
pulumiTypes.go
2355 lines (1909 loc) · 124 KB
/
pulumiTypes.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
// Code generated by pulumigen DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1alpha1
import (
"context"
"reflect"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/utilities"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = utilities.GetEnvOrDefault
// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AggregationRule struct {
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
ClusterRoleSelectors []metav1.LabelSelector `pulumi:"clusterRoleSelectors"`
}
// AggregationRuleInput is an input type that accepts AggregationRuleArgs and AggregationRuleOutput values.
// You can construct a concrete instance of `AggregationRuleInput` via:
//
// AggregationRuleArgs{...}
type AggregationRuleInput interface {
pulumi.Input
ToAggregationRuleOutput() AggregationRuleOutput
ToAggregationRuleOutputWithContext(context.Context) AggregationRuleOutput
}
// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AggregationRuleArgs struct {
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
ClusterRoleSelectors metav1.LabelSelectorArrayInput `pulumi:"clusterRoleSelectors"`
}
func (AggregationRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AggregationRule)(nil)).Elem()
}
func (i AggregationRuleArgs) ToAggregationRuleOutput() AggregationRuleOutput {
return i.ToAggregationRuleOutputWithContext(context.Background())
}
func (i AggregationRuleArgs) ToAggregationRuleOutputWithContext(ctx context.Context) AggregationRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregationRuleOutput)
}
func (i AggregationRuleArgs) ToAggregationRulePtrOutput() AggregationRulePtrOutput {
return i.ToAggregationRulePtrOutputWithContext(context.Background())
}
func (i AggregationRuleArgs) ToAggregationRulePtrOutputWithContext(ctx context.Context) AggregationRulePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregationRuleOutput).ToAggregationRulePtrOutputWithContext(ctx)
}
// AggregationRulePtrInput is an input type that accepts AggregationRuleArgs, AggregationRulePtr and AggregationRulePtrOutput values.
// You can construct a concrete instance of `AggregationRulePtrInput` via:
//
// AggregationRuleArgs{...}
//
// or:
//
// nil
type AggregationRulePtrInput interface {
pulumi.Input
ToAggregationRulePtrOutput() AggregationRulePtrOutput
ToAggregationRulePtrOutputWithContext(context.Context) AggregationRulePtrOutput
}
type aggregationRulePtrType AggregationRuleArgs
func AggregationRulePtr(v *AggregationRuleArgs) AggregationRulePtrInput {
return (*aggregationRulePtrType)(v)
}
func (*aggregationRulePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AggregationRule)(nil)).Elem()
}
func (i *aggregationRulePtrType) ToAggregationRulePtrOutput() AggregationRulePtrOutput {
return i.ToAggregationRulePtrOutputWithContext(context.Background())
}
func (i *aggregationRulePtrType) ToAggregationRulePtrOutputWithContext(ctx context.Context) AggregationRulePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregationRulePtrOutput)
}
// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AggregationRuleOutput struct{ *pulumi.OutputState }
func (AggregationRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AggregationRule)(nil)).Elem()
}
func (o AggregationRuleOutput) ToAggregationRuleOutput() AggregationRuleOutput {
return o
}
func (o AggregationRuleOutput) ToAggregationRuleOutputWithContext(ctx context.Context) AggregationRuleOutput {
return o
}
func (o AggregationRuleOutput) ToAggregationRulePtrOutput() AggregationRulePtrOutput {
return o.ToAggregationRulePtrOutputWithContext(context.Background())
}
func (o AggregationRuleOutput) ToAggregationRulePtrOutputWithContext(ctx context.Context) AggregationRulePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AggregationRule) *AggregationRule {
return &v
}).(AggregationRulePtrOutput)
}
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
func (o AggregationRuleOutput) ClusterRoleSelectors() metav1.LabelSelectorArrayOutput {
return o.ApplyT(func(v AggregationRule) []metav1.LabelSelector { return v.ClusterRoleSelectors }).(metav1.LabelSelectorArrayOutput)
}
type AggregationRulePtrOutput struct{ *pulumi.OutputState }
func (AggregationRulePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AggregationRule)(nil)).Elem()
}
func (o AggregationRulePtrOutput) ToAggregationRulePtrOutput() AggregationRulePtrOutput {
return o
}
func (o AggregationRulePtrOutput) ToAggregationRulePtrOutputWithContext(ctx context.Context) AggregationRulePtrOutput {
return o
}
func (o AggregationRulePtrOutput) Elem() AggregationRuleOutput {
return o.ApplyT(func(v *AggregationRule) AggregationRule {
if v != nil {
return *v
}
var ret AggregationRule
return ret
}).(AggregationRuleOutput)
}
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
func (o AggregationRulePtrOutput) ClusterRoleSelectors() metav1.LabelSelectorArrayOutput {
return o.ApplyT(func(v *AggregationRule) []metav1.LabelSelector {
if v == nil {
return nil
}
return v.ClusterRoleSelectors
}).(metav1.LabelSelectorArrayOutput)
}
// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AggregationRulePatch struct {
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
ClusterRoleSelectors []metav1.LabelSelectorPatch `pulumi:"clusterRoleSelectors"`
}
// AggregationRulePatchInput is an input type that accepts AggregationRulePatchArgs and AggregationRulePatchOutput values.
// You can construct a concrete instance of `AggregationRulePatchInput` via:
//
// AggregationRulePatchArgs{...}
type AggregationRulePatchInput interface {
pulumi.Input
ToAggregationRulePatchOutput() AggregationRulePatchOutput
ToAggregationRulePatchOutputWithContext(context.Context) AggregationRulePatchOutput
}
// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AggregationRulePatchArgs struct {
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
ClusterRoleSelectors metav1.LabelSelectorPatchArrayInput `pulumi:"clusterRoleSelectors"`
}
func (AggregationRulePatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AggregationRulePatch)(nil)).Elem()
}
func (i AggregationRulePatchArgs) ToAggregationRulePatchOutput() AggregationRulePatchOutput {
return i.ToAggregationRulePatchOutputWithContext(context.Background())
}
func (i AggregationRulePatchArgs) ToAggregationRulePatchOutputWithContext(ctx context.Context) AggregationRulePatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregationRulePatchOutput)
}
func (i AggregationRulePatchArgs) ToAggregationRulePatchPtrOutput() AggregationRulePatchPtrOutput {
return i.ToAggregationRulePatchPtrOutputWithContext(context.Background())
}
func (i AggregationRulePatchArgs) ToAggregationRulePatchPtrOutputWithContext(ctx context.Context) AggregationRulePatchPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregationRulePatchOutput).ToAggregationRulePatchPtrOutputWithContext(ctx)
}
// AggregationRulePatchPtrInput is an input type that accepts AggregationRulePatchArgs, AggregationRulePatchPtr and AggregationRulePatchPtrOutput values.
// You can construct a concrete instance of `AggregationRulePatchPtrInput` via:
//
// AggregationRulePatchArgs{...}
//
// or:
//
// nil
type AggregationRulePatchPtrInput interface {
pulumi.Input
ToAggregationRulePatchPtrOutput() AggregationRulePatchPtrOutput
ToAggregationRulePatchPtrOutputWithContext(context.Context) AggregationRulePatchPtrOutput
}
type aggregationRulePatchPtrType AggregationRulePatchArgs
func AggregationRulePatchPtr(v *AggregationRulePatchArgs) AggregationRulePatchPtrInput {
return (*aggregationRulePatchPtrType)(v)
}
func (*aggregationRulePatchPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AggregationRulePatch)(nil)).Elem()
}
func (i *aggregationRulePatchPtrType) ToAggregationRulePatchPtrOutput() AggregationRulePatchPtrOutput {
return i.ToAggregationRulePatchPtrOutputWithContext(context.Background())
}
func (i *aggregationRulePatchPtrType) ToAggregationRulePatchPtrOutputWithContext(ctx context.Context) AggregationRulePatchPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AggregationRulePatchPtrOutput)
}
// AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
type AggregationRulePatchOutput struct{ *pulumi.OutputState }
func (AggregationRulePatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AggregationRulePatch)(nil)).Elem()
}
func (o AggregationRulePatchOutput) ToAggregationRulePatchOutput() AggregationRulePatchOutput {
return o
}
func (o AggregationRulePatchOutput) ToAggregationRulePatchOutputWithContext(ctx context.Context) AggregationRulePatchOutput {
return o
}
func (o AggregationRulePatchOutput) ToAggregationRulePatchPtrOutput() AggregationRulePatchPtrOutput {
return o.ToAggregationRulePatchPtrOutputWithContext(context.Background())
}
func (o AggregationRulePatchOutput) ToAggregationRulePatchPtrOutputWithContext(ctx context.Context) AggregationRulePatchPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AggregationRulePatch) *AggregationRulePatch {
return &v
}).(AggregationRulePatchPtrOutput)
}
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
func (o AggregationRulePatchOutput) ClusterRoleSelectors() metav1.LabelSelectorPatchArrayOutput {
return o.ApplyT(func(v AggregationRulePatch) []metav1.LabelSelectorPatch { return v.ClusterRoleSelectors }).(metav1.LabelSelectorPatchArrayOutput)
}
type AggregationRulePatchPtrOutput struct{ *pulumi.OutputState }
func (AggregationRulePatchPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AggregationRulePatch)(nil)).Elem()
}
func (o AggregationRulePatchPtrOutput) ToAggregationRulePatchPtrOutput() AggregationRulePatchPtrOutput {
return o
}
func (o AggregationRulePatchPtrOutput) ToAggregationRulePatchPtrOutputWithContext(ctx context.Context) AggregationRulePatchPtrOutput {
return o
}
func (o AggregationRulePatchPtrOutput) Elem() AggregationRulePatchOutput {
return o.ApplyT(func(v *AggregationRulePatch) AggregationRulePatch {
if v != nil {
return *v
}
var ret AggregationRulePatch
return ret
}).(AggregationRulePatchOutput)
}
// ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
func (o AggregationRulePatchPtrOutput) ClusterRoleSelectors() metav1.LabelSelectorPatchArrayOutput {
return o.ApplyT(func(v *AggregationRulePatch) []metav1.LabelSelectorPatch {
if v == nil {
return nil
}
return v.ClusterRoleSelectors
}).(metav1.LabelSelectorPatchArrayOutput)
}
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20.
type ClusterRoleType struct {
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
AggregationRule *AggregationRule `pulumi:"aggregationRule"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// Rules holds all the PolicyRules for this ClusterRole
Rules []PolicyRule `pulumi:"rules"`
}
// ClusterRoleTypeInput is an input type that accepts ClusterRoleTypeArgs and ClusterRoleTypeOutput values.
// You can construct a concrete instance of `ClusterRoleTypeInput` via:
//
// ClusterRoleTypeArgs{...}
type ClusterRoleTypeInput interface {
pulumi.Input
ToClusterRoleTypeOutput() ClusterRoleTypeOutput
ToClusterRoleTypeOutputWithContext(context.Context) ClusterRoleTypeOutput
}
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20.
type ClusterRoleTypeArgs struct {
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
AggregationRule AggregationRulePtrInput `pulumi:"aggregationRule"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// Rules holds all the PolicyRules for this ClusterRole
Rules PolicyRuleArrayInput `pulumi:"rules"`
}
func (ClusterRoleTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleType)(nil)).Elem()
}
func (i ClusterRoleTypeArgs) ToClusterRoleTypeOutput() ClusterRoleTypeOutput {
return i.ToClusterRoleTypeOutputWithContext(context.Background())
}
func (i ClusterRoleTypeArgs) ToClusterRoleTypeOutputWithContext(ctx context.Context) ClusterRoleTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleTypeOutput)
}
// ClusterRoleTypeArrayInput is an input type that accepts ClusterRoleTypeArray and ClusterRoleTypeArrayOutput values.
// You can construct a concrete instance of `ClusterRoleTypeArrayInput` via:
//
// ClusterRoleTypeArray{ ClusterRoleTypeArgs{...} }
type ClusterRoleTypeArrayInput interface {
pulumi.Input
ToClusterRoleTypeArrayOutput() ClusterRoleTypeArrayOutput
ToClusterRoleTypeArrayOutputWithContext(context.Context) ClusterRoleTypeArrayOutput
}
type ClusterRoleTypeArray []ClusterRoleTypeInput
func (ClusterRoleTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterRoleType)(nil)).Elem()
}
func (i ClusterRoleTypeArray) ToClusterRoleTypeArrayOutput() ClusterRoleTypeArrayOutput {
return i.ToClusterRoleTypeArrayOutputWithContext(context.Background())
}
func (i ClusterRoleTypeArray) ToClusterRoleTypeArrayOutputWithContext(ctx context.Context) ClusterRoleTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleTypeArrayOutput)
}
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20.
type ClusterRoleTypeOutput struct{ *pulumi.OutputState }
func (ClusterRoleTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleType)(nil)).Elem()
}
func (o ClusterRoleTypeOutput) ToClusterRoleTypeOutput() ClusterRoleTypeOutput {
return o
}
func (o ClusterRoleTypeOutput) ToClusterRoleTypeOutputWithContext(ctx context.Context) ClusterRoleTypeOutput {
return o
}
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
func (o ClusterRoleTypeOutput) AggregationRule() AggregationRulePtrOutput {
return o.ApplyT(func(v ClusterRoleType) *AggregationRule { return v.AggregationRule }).(AggregationRulePtrOutput)
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o ClusterRoleTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o ClusterRoleTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o ClusterRoleTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v ClusterRoleType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// Rules holds all the PolicyRules for this ClusterRole
func (o ClusterRoleTypeOutput) Rules() PolicyRuleArrayOutput {
return o.ApplyT(func(v ClusterRoleType) []PolicyRule { return v.Rules }).(PolicyRuleArrayOutput)
}
type ClusterRoleTypeArrayOutput struct{ *pulumi.OutputState }
func (ClusterRoleTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterRoleType)(nil)).Elem()
}
func (o ClusterRoleTypeArrayOutput) ToClusterRoleTypeArrayOutput() ClusterRoleTypeArrayOutput {
return o
}
func (o ClusterRoleTypeArrayOutput) ToClusterRoleTypeArrayOutputWithContext(ctx context.Context) ClusterRoleTypeArrayOutput {
return o
}
func (o ClusterRoleTypeArrayOutput) Index(i pulumi.IntInput) ClusterRoleTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterRoleType {
return vs[0].([]ClusterRoleType)[vs[1].(int)]
}).(ClusterRoleTypeOutput)
}
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20.
type ClusterRoleBindingType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
RoleRef RoleRef `pulumi:"roleRef"`
// Subjects holds references to the objects the role applies to.
Subjects []Subject `pulumi:"subjects"`
}
// ClusterRoleBindingTypeInput is an input type that accepts ClusterRoleBindingTypeArgs and ClusterRoleBindingTypeOutput values.
// You can construct a concrete instance of `ClusterRoleBindingTypeInput` via:
//
// ClusterRoleBindingTypeArgs{...}
type ClusterRoleBindingTypeInput interface {
pulumi.Input
ToClusterRoleBindingTypeOutput() ClusterRoleBindingTypeOutput
ToClusterRoleBindingTypeOutputWithContext(context.Context) ClusterRoleBindingTypeOutput
}
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20.
type ClusterRoleBindingTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
RoleRef RoleRefInput `pulumi:"roleRef"`
// Subjects holds references to the objects the role applies to.
Subjects SubjectArrayInput `pulumi:"subjects"`
}
func (ClusterRoleBindingTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleBindingType)(nil)).Elem()
}
func (i ClusterRoleBindingTypeArgs) ToClusterRoleBindingTypeOutput() ClusterRoleBindingTypeOutput {
return i.ToClusterRoleBindingTypeOutputWithContext(context.Background())
}
func (i ClusterRoleBindingTypeArgs) ToClusterRoleBindingTypeOutputWithContext(ctx context.Context) ClusterRoleBindingTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleBindingTypeOutput)
}
// ClusterRoleBindingTypeArrayInput is an input type that accepts ClusterRoleBindingTypeArray and ClusterRoleBindingTypeArrayOutput values.
// You can construct a concrete instance of `ClusterRoleBindingTypeArrayInput` via:
//
// ClusterRoleBindingTypeArray{ ClusterRoleBindingTypeArgs{...} }
type ClusterRoleBindingTypeArrayInput interface {
pulumi.Input
ToClusterRoleBindingTypeArrayOutput() ClusterRoleBindingTypeArrayOutput
ToClusterRoleBindingTypeArrayOutputWithContext(context.Context) ClusterRoleBindingTypeArrayOutput
}
type ClusterRoleBindingTypeArray []ClusterRoleBindingTypeInput
func (ClusterRoleBindingTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterRoleBindingType)(nil)).Elem()
}
func (i ClusterRoleBindingTypeArray) ToClusterRoleBindingTypeArrayOutput() ClusterRoleBindingTypeArrayOutput {
return i.ToClusterRoleBindingTypeArrayOutputWithContext(context.Background())
}
func (i ClusterRoleBindingTypeArray) ToClusterRoleBindingTypeArrayOutputWithContext(ctx context.Context) ClusterRoleBindingTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleBindingTypeArrayOutput)
}
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20.
type ClusterRoleBindingTypeOutput struct{ *pulumi.OutputState }
func (ClusterRoleBindingTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleBindingType)(nil)).Elem()
}
func (o ClusterRoleBindingTypeOutput) ToClusterRoleBindingTypeOutput() ClusterRoleBindingTypeOutput {
return o
}
func (o ClusterRoleBindingTypeOutput) ToClusterRoleBindingTypeOutputWithContext(ctx context.Context) ClusterRoleBindingTypeOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o ClusterRoleBindingTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o ClusterRoleBindingTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o ClusterRoleBindingTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
func (o ClusterRoleBindingTypeOutput) RoleRef() RoleRefOutput {
return o.ApplyT(func(v ClusterRoleBindingType) RoleRef { return v.RoleRef }).(RoleRefOutput)
}
// Subjects holds references to the objects the role applies to.
func (o ClusterRoleBindingTypeOutput) Subjects() SubjectArrayOutput {
return o.ApplyT(func(v ClusterRoleBindingType) []Subject { return v.Subjects }).(SubjectArrayOutput)
}
type ClusterRoleBindingTypeArrayOutput struct{ *pulumi.OutputState }
func (ClusterRoleBindingTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterRoleBindingType)(nil)).Elem()
}
func (o ClusterRoleBindingTypeArrayOutput) ToClusterRoleBindingTypeArrayOutput() ClusterRoleBindingTypeArrayOutput {
return o
}
func (o ClusterRoleBindingTypeArrayOutput) ToClusterRoleBindingTypeArrayOutputWithContext(ctx context.Context) ClusterRoleBindingTypeArrayOutput {
return o
}
func (o ClusterRoleBindingTypeArrayOutput) Index(i pulumi.IntInput) ClusterRoleBindingTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterRoleBindingType {
return vs[0].([]ClusterRoleBindingType)[vs[1].(int)]
}).(ClusterRoleBindingTypeOutput)
}
// ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20.
type ClusterRoleBindingListType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Items is a list of ClusterRoleBindings
Items []ClusterRoleBindingType `pulumi:"items"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// ClusterRoleBindingListTypeInput is an input type that accepts ClusterRoleBindingListTypeArgs and ClusterRoleBindingListTypeOutput values.
// You can construct a concrete instance of `ClusterRoleBindingListTypeInput` via:
//
// ClusterRoleBindingListTypeArgs{...}
type ClusterRoleBindingListTypeInput interface {
pulumi.Input
ToClusterRoleBindingListTypeOutput() ClusterRoleBindingListTypeOutput
ToClusterRoleBindingListTypeOutputWithContext(context.Context) ClusterRoleBindingListTypeOutput
}
// ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20.
type ClusterRoleBindingListTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Items is a list of ClusterRoleBindings
Items ClusterRoleBindingTypeArrayInput `pulumi:"items"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (ClusterRoleBindingListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleBindingListType)(nil)).Elem()
}
func (i ClusterRoleBindingListTypeArgs) ToClusterRoleBindingListTypeOutput() ClusterRoleBindingListTypeOutput {
return i.ToClusterRoleBindingListTypeOutputWithContext(context.Background())
}
func (i ClusterRoleBindingListTypeArgs) ToClusterRoleBindingListTypeOutputWithContext(ctx context.Context) ClusterRoleBindingListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleBindingListTypeOutput)
}
// ClusterRoleBindingList is a collection of ClusterRoleBindings. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBindings, and will no longer be served in v1.20.
type ClusterRoleBindingListTypeOutput struct{ *pulumi.OutputState }
func (ClusterRoleBindingListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleBindingListType)(nil)).Elem()
}
func (o ClusterRoleBindingListTypeOutput) ToClusterRoleBindingListTypeOutput() ClusterRoleBindingListTypeOutput {
return o
}
func (o ClusterRoleBindingListTypeOutput) ToClusterRoleBindingListTypeOutputWithContext(ctx context.Context) ClusterRoleBindingListTypeOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o ClusterRoleBindingListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Items is a list of ClusterRoleBindings
func (o ClusterRoleBindingListTypeOutput) Items() ClusterRoleBindingTypeArrayOutput {
return o.ApplyT(func(v ClusterRoleBindingListType) []ClusterRoleBindingType { return v.Items }).(ClusterRoleBindingTypeArrayOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o ClusterRoleBindingListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o ClusterRoleBindingListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20.
type ClusterRoleBindingPatchType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"`
// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
RoleRef *RoleRefPatch `pulumi:"roleRef"`
// Subjects holds references to the objects the role applies to.
Subjects []SubjectPatch `pulumi:"subjects"`
}
// ClusterRoleBindingPatchTypeInput is an input type that accepts ClusterRoleBindingPatchTypeArgs and ClusterRoleBindingPatchTypeOutput values.
// You can construct a concrete instance of `ClusterRoleBindingPatchTypeInput` via:
//
// ClusterRoleBindingPatchTypeArgs{...}
type ClusterRoleBindingPatchTypeInput interface {
pulumi.Input
ToClusterRoleBindingPatchTypeOutput() ClusterRoleBindingPatchTypeOutput
ToClusterRoleBindingPatchTypeOutputWithContext(context.Context) ClusterRoleBindingPatchTypeOutput
}
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20.
type ClusterRoleBindingPatchTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ObjectMetaPatchPtrInput `pulumi:"metadata"`
// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
RoleRef RoleRefPatchPtrInput `pulumi:"roleRef"`
// Subjects holds references to the objects the role applies to.
Subjects SubjectPatchArrayInput `pulumi:"subjects"`
}
func (ClusterRoleBindingPatchTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleBindingPatchType)(nil)).Elem()
}
func (i ClusterRoleBindingPatchTypeArgs) ToClusterRoleBindingPatchTypeOutput() ClusterRoleBindingPatchTypeOutput {
return i.ToClusterRoleBindingPatchTypeOutputWithContext(context.Background())
}
func (i ClusterRoleBindingPatchTypeArgs) ToClusterRoleBindingPatchTypeOutputWithContext(ctx context.Context) ClusterRoleBindingPatchTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleBindingPatchTypeOutput)
}
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoleBinding, and will no longer be served in v1.20.
type ClusterRoleBindingPatchTypeOutput struct{ *pulumi.OutputState }
func (ClusterRoleBindingPatchTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleBindingPatchType)(nil)).Elem()
}
func (o ClusterRoleBindingPatchTypeOutput) ToClusterRoleBindingPatchTypeOutput() ClusterRoleBindingPatchTypeOutput {
return o
}
func (o ClusterRoleBindingPatchTypeOutput) ToClusterRoleBindingPatchTypeOutputWithContext(ctx context.Context) ClusterRoleBindingPatchTypeOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o ClusterRoleBindingPatchTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingPatchType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o ClusterRoleBindingPatchTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingPatchType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o ClusterRoleBindingPatchTypeOutput) Metadata() metav1.ObjectMetaPatchPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingPatchType) *metav1.ObjectMetaPatch { return v.Metadata }).(metav1.ObjectMetaPatchPtrOutput)
}
// RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.
func (o ClusterRoleBindingPatchTypeOutput) RoleRef() RoleRefPatchPtrOutput {
return o.ApplyT(func(v ClusterRoleBindingPatchType) *RoleRefPatch { return v.RoleRef }).(RoleRefPatchPtrOutput)
}
// Subjects holds references to the objects the role applies to.
func (o ClusterRoleBindingPatchTypeOutput) Subjects() SubjectPatchArrayOutput {
return o.ApplyT(func(v ClusterRoleBindingPatchType) []SubjectPatch { return v.Subjects }).(SubjectPatchArrayOutput)
}
// ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20.
type ClusterRoleListType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Items is a list of ClusterRoles
Items []ClusterRoleType `pulumi:"items"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// ClusterRoleListTypeInput is an input type that accepts ClusterRoleListTypeArgs and ClusterRoleListTypeOutput values.
// You can construct a concrete instance of `ClusterRoleListTypeInput` via:
//
// ClusterRoleListTypeArgs{...}
type ClusterRoleListTypeInput interface {
pulumi.Input
ToClusterRoleListTypeOutput() ClusterRoleListTypeOutput
ToClusterRoleListTypeOutputWithContext(context.Context) ClusterRoleListTypeOutput
}
// ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20.
type ClusterRoleListTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Items is a list of ClusterRoles
Items ClusterRoleTypeArrayInput `pulumi:"items"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (ClusterRoleListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleListType)(nil)).Elem()
}
func (i ClusterRoleListTypeArgs) ToClusterRoleListTypeOutput() ClusterRoleListTypeOutput {
return i.ToClusterRoleListTypeOutputWithContext(context.Background())
}
func (i ClusterRoleListTypeArgs) ToClusterRoleListTypeOutputWithContext(ctx context.Context) ClusterRoleListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRoleListTypeOutput)
}
// ClusterRoleList is a collection of ClusterRoles. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRoles, and will no longer be served in v1.20.
type ClusterRoleListTypeOutput struct{ *pulumi.OutputState }
func (ClusterRoleListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRoleListType)(nil)).Elem()
}
func (o ClusterRoleListTypeOutput) ToClusterRoleListTypeOutput() ClusterRoleListTypeOutput {
return o
}
func (o ClusterRoleListTypeOutput) ToClusterRoleListTypeOutputWithContext(ctx context.Context) ClusterRoleListTypeOutput {
return o
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o ClusterRoleListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Items is a list of ClusterRoles
func (o ClusterRoleListTypeOutput) Items() ClusterRoleTypeArrayOutput {
return o.ApplyT(func(v ClusterRoleListType) []ClusterRoleType { return v.Items }).(ClusterRoleTypeArrayOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o ClusterRoleListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRoleListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o ClusterRoleListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v ClusterRoleListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20.
type ClusterRolePatchType struct {
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
AggregationRule *AggregationRulePatch `pulumi:"aggregationRule"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata.
Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"`
// Rules holds all the PolicyRules for this ClusterRole
Rules []PolicyRulePatch `pulumi:"rules"`
}
// ClusterRolePatchTypeInput is an input type that accepts ClusterRolePatchTypeArgs and ClusterRolePatchTypeOutput values.
// You can construct a concrete instance of `ClusterRolePatchTypeInput` via:
//
// ClusterRolePatchTypeArgs{...}
type ClusterRolePatchTypeInput interface {
pulumi.Input
ToClusterRolePatchTypeOutput() ClusterRolePatchTypeOutput
ToClusterRolePatchTypeOutputWithContext(context.Context) ClusterRolePatchTypeOutput
}
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20.
type ClusterRolePatchTypeArgs struct {
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
AggregationRule AggregationRulePatchPtrInput `pulumi:"aggregationRule"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata.
Metadata metav1.ObjectMetaPatchPtrInput `pulumi:"metadata"`
// Rules holds all the PolicyRules for this ClusterRole
Rules PolicyRulePatchArrayInput `pulumi:"rules"`
}
func (ClusterRolePatchTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRolePatchType)(nil)).Elem()
}
func (i ClusterRolePatchTypeArgs) ToClusterRolePatchTypeOutput() ClusterRolePatchTypeOutput {
return i.ToClusterRolePatchTypeOutputWithContext(context.Background())
}
func (i ClusterRolePatchTypeArgs) ToClusterRolePatchTypeOutputWithContext(ctx context.Context) ClusterRolePatchTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRolePatchTypeOutput)
}
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. Deprecated in v1.17 in favor of rbac.authorization.k8s.io/v1 ClusterRole, and will no longer be served in v1.20.
type ClusterRolePatchTypeOutput struct{ *pulumi.OutputState }
func (ClusterRolePatchTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRolePatchType)(nil)).Elem()
}
func (o ClusterRolePatchTypeOutput) ToClusterRolePatchTypeOutput() ClusterRolePatchTypeOutput {
return o
}
func (o ClusterRolePatchTypeOutput) ToClusterRolePatchTypeOutputWithContext(ctx context.Context) ClusterRolePatchTypeOutput {
return o
}
// AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.
func (o ClusterRolePatchTypeOutput) AggregationRule() AggregationRulePatchPtrOutput {
return o.ApplyT(func(v ClusterRolePatchType) *AggregationRulePatch { return v.AggregationRule }).(AggregationRulePatchPtrOutput)
}
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
func (o ClusterRolePatchTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRolePatchType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
func (o ClusterRolePatchTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRolePatchType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata.
func (o ClusterRolePatchTypeOutput) Metadata() metav1.ObjectMetaPatchPtrOutput {
return o.ApplyT(func(v ClusterRolePatchType) *metav1.ObjectMetaPatch { return v.Metadata }).(metav1.ObjectMetaPatchPtrOutput)
}
// Rules holds all the PolicyRules for this ClusterRole
func (o ClusterRolePatchTypeOutput) Rules() PolicyRulePatchArrayOutput {
return o.ApplyT(func(v ClusterRolePatchType) []PolicyRulePatch { return v.Rules }).(PolicyRulePatchArrayOutput)
}
// PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
type PolicyRule struct {
// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.
ApiGroups []string `pulumi:"apiGroups"`
// NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
NonResourceURLs []string `pulumi:"nonResourceURLs"`
// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
ResourceNames []string `pulumi:"resourceNames"`
// Resources is a list of resources this rule applies to. ResourceAll represents all resources.
Resources []string `pulumi:"resources"`
// Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
Verbs []string `pulumi:"verbs"`
}
// PolicyRuleInput is an input type that accepts PolicyRuleArgs and PolicyRuleOutput values.
// You can construct a concrete instance of `PolicyRuleInput` via:
//
// PolicyRuleArgs{...}
type PolicyRuleInput interface {
pulumi.Input
ToPolicyRuleOutput() PolicyRuleOutput
ToPolicyRuleOutputWithContext(context.Context) PolicyRuleOutput
}
// PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
type PolicyRuleArgs struct {
// APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.
ApiGroups pulumi.StringArrayInput `pulumi:"apiGroups"`
// NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
NonResourceURLs pulumi.StringArrayInput `pulumi:"nonResourceURLs"`
// ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
ResourceNames pulumi.StringArrayInput `pulumi:"resourceNames"`
// Resources is a list of resources this rule applies to. ResourceAll represents all resources.
Resources pulumi.StringArrayInput `pulumi:"resources"`
// Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.
Verbs pulumi.StringArrayInput `pulumi:"verbs"`
}
func (PolicyRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*PolicyRule)(nil)).Elem()
}
func (i PolicyRuleArgs) ToPolicyRuleOutput() PolicyRuleOutput {
return i.ToPolicyRuleOutputWithContext(context.Background())
}
func (i PolicyRuleArgs) ToPolicyRuleOutputWithContext(ctx context.Context) PolicyRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyRuleOutput)
}
// PolicyRuleArrayInput is an input type that accepts PolicyRuleArray and PolicyRuleArrayOutput values.
// You can construct a concrete instance of `PolicyRuleArrayInput` via:
//
// PolicyRuleArray{ PolicyRuleArgs{...} }
type PolicyRuleArrayInput interface {
pulumi.Input
ToPolicyRuleArrayOutput() PolicyRuleArrayOutput
ToPolicyRuleArrayOutputWithContext(context.Context) PolicyRuleArrayOutput
}
type PolicyRuleArray []PolicyRuleInput
func (PolicyRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]PolicyRule)(nil)).Elem()
}
func (i PolicyRuleArray) ToPolicyRuleArrayOutput() PolicyRuleArrayOutput {
return i.ToPolicyRuleArrayOutputWithContext(context.Background())
}
func (i PolicyRuleArray) ToPolicyRuleArrayOutputWithContext(ctx context.Context) PolicyRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PolicyRuleArrayOutput)
}
// PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
type PolicyRuleOutput struct{ *pulumi.OutputState }
func (PolicyRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*PolicyRule)(nil)).Elem()
}
func (o PolicyRuleOutput) ToPolicyRuleOutput() PolicyRuleOutput {
return o
}