/
pulumiTypes.go
3625 lines (3017 loc) · 201 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
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v1beta1
import (
"context"
"reflect"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// CustomResourceColumnDefinition specifies a column for server side printing.
type CustomResourceColumnDefinition struct {
// JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.
JSONPath string `pulumi:"JSONPath"`
// description is a human readable description of this column.
Description *string `pulumi:"description"`
// format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
Format *string `pulumi:"format"`
// name is a human readable name for the column.
Name string `pulumi:"name"`
// priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.
Priority *int `pulumi:"priority"`
// type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
Type string `pulumi:"type"`
}
// CustomResourceColumnDefinitionInput is an input type that accepts CustomResourceColumnDefinitionArgs and CustomResourceColumnDefinitionOutput values.
// You can construct a concrete instance of `CustomResourceColumnDefinitionInput` via:
//
// CustomResourceColumnDefinitionArgs{...}
type CustomResourceColumnDefinitionInput interface {
pulumi.Input
ToCustomResourceColumnDefinitionOutput() CustomResourceColumnDefinitionOutput
ToCustomResourceColumnDefinitionOutputWithContext(context.Context) CustomResourceColumnDefinitionOutput
}
// CustomResourceColumnDefinition specifies a column for server side printing.
type CustomResourceColumnDefinitionArgs struct {
// JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.
JSONPath pulumi.StringInput `pulumi:"JSONPath"`
// description is a human readable description of this column.
Description pulumi.StringPtrInput `pulumi:"description"`
// format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
Format pulumi.StringPtrInput `pulumi:"format"`
// name is a human readable name for the column.
Name pulumi.StringInput `pulumi:"name"`
// priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.
Priority pulumi.IntPtrInput `pulumi:"priority"`
// type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
Type pulumi.StringInput `pulumi:"type"`
}
func (CustomResourceColumnDefinitionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceColumnDefinition)(nil)).Elem()
}
func (i CustomResourceColumnDefinitionArgs) ToCustomResourceColumnDefinitionOutput() CustomResourceColumnDefinitionOutput {
return i.ToCustomResourceColumnDefinitionOutputWithContext(context.Background())
}
func (i CustomResourceColumnDefinitionArgs) ToCustomResourceColumnDefinitionOutputWithContext(ctx context.Context) CustomResourceColumnDefinitionOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceColumnDefinitionOutput)
}
// CustomResourceColumnDefinitionArrayInput is an input type that accepts CustomResourceColumnDefinitionArray and CustomResourceColumnDefinitionArrayOutput values.
// You can construct a concrete instance of `CustomResourceColumnDefinitionArrayInput` via:
//
// CustomResourceColumnDefinitionArray{ CustomResourceColumnDefinitionArgs{...} }
type CustomResourceColumnDefinitionArrayInput interface {
pulumi.Input
ToCustomResourceColumnDefinitionArrayOutput() CustomResourceColumnDefinitionArrayOutput
ToCustomResourceColumnDefinitionArrayOutputWithContext(context.Context) CustomResourceColumnDefinitionArrayOutput
}
type CustomResourceColumnDefinitionArray []CustomResourceColumnDefinitionInput
func (CustomResourceColumnDefinitionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomResourceColumnDefinition)(nil)).Elem()
}
func (i CustomResourceColumnDefinitionArray) ToCustomResourceColumnDefinitionArrayOutput() CustomResourceColumnDefinitionArrayOutput {
return i.ToCustomResourceColumnDefinitionArrayOutputWithContext(context.Background())
}
func (i CustomResourceColumnDefinitionArray) ToCustomResourceColumnDefinitionArrayOutputWithContext(ctx context.Context) CustomResourceColumnDefinitionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceColumnDefinitionArrayOutput)
}
// CustomResourceColumnDefinition specifies a column for server side printing.
type CustomResourceColumnDefinitionOutput struct{ *pulumi.OutputState }
func (CustomResourceColumnDefinitionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceColumnDefinition)(nil)).Elem()
}
func (o CustomResourceColumnDefinitionOutput) ToCustomResourceColumnDefinitionOutput() CustomResourceColumnDefinitionOutput {
return o
}
func (o CustomResourceColumnDefinitionOutput) ToCustomResourceColumnDefinitionOutputWithContext(ctx context.Context) CustomResourceColumnDefinitionOutput {
return o
}
// JSONPath is a simple JSON path (i.e. with array notation) which is evaluated against each custom resource to produce the value for this column.
func (o CustomResourceColumnDefinitionOutput) JSONPath() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceColumnDefinition) string { return v.JSONPath }).(pulumi.StringOutput)
}
// description is a human readable description of this column.
func (o CustomResourceColumnDefinitionOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceColumnDefinition) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
func (o CustomResourceColumnDefinitionOutput) Format() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceColumnDefinition) *string { return v.Format }).(pulumi.StringPtrOutput)
}
// name is a human readable name for the column.
func (o CustomResourceColumnDefinitionOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceColumnDefinition) string { return v.Name }).(pulumi.StringOutput)
}
// priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a priority greater than 0.
func (o CustomResourceColumnDefinitionOutput) Priority() pulumi.IntPtrOutput {
return o.ApplyT(func(v CustomResourceColumnDefinition) *int { return v.Priority }).(pulumi.IntPtrOutput)
}
// type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for details.
func (o CustomResourceColumnDefinitionOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceColumnDefinition) string { return v.Type }).(pulumi.StringOutput)
}
type CustomResourceColumnDefinitionArrayOutput struct{ *pulumi.OutputState }
func (CustomResourceColumnDefinitionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomResourceColumnDefinition)(nil)).Elem()
}
func (o CustomResourceColumnDefinitionArrayOutput) ToCustomResourceColumnDefinitionArrayOutput() CustomResourceColumnDefinitionArrayOutput {
return o
}
func (o CustomResourceColumnDefinitionArrayOutput) ToCustomResourceColumnDefinitionArrayOutputWithContext(ctx context.Context) CustomResourceColumnDefinitionArrayOutput {
return o
}
func (o CustomResourceColumnDefinitionArrayOutput) Index(i pulumi.IntInput) CustomResourceColumnDefinitionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CustomResourceColumnDefinition {
return vs[0].([]CustomResourceColumnDefinition)[vs[1].(int)]
}).(CustomResourceColumnDefinitionOutput)
}
// CustomResourceConversion describes how to convert different versions of a CR.
type CustomResourceConversion struct {
// conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`.
ConversionReviewVersions []string `pulumi:"conversionReviewVersions"`
// strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
// is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
Strategy string `pulumi:"strategy"`
// webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`.
WebhookClientConfig *WebhookClientConfig `pulumi:"webhookClientConfig"`
}
// CustomResourceConversionInput is an input type that accepts CustomResourceConversionArgs and CustomResourceConversionOutput values.
// You can construct a concrete instance of `CustomResourceConversionInput` via:
//
// CustomResourceConversionArgs{...}
type CustomResourceConversionInput interface {
pulumi.Input
ToCustomResourceConversionOutput() CustomResourceConversionOutput
ToCustomResourceConversionOutputWithContext(context.Context) CustomResourceConversionOutput
}
// CustomResourceConversion describes how to convert different versions of a CR.
type CustomResourceConversionArgs struct {
// conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`.
ConversionReviewVersions pulumi.StringArrayInput `pulumi:"conversionReviewVersions"`
// strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
// is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
Strategy pulumi.StringInput `pulumi:"strategy"`
// webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`.
WebhookClientConfig WebhookClientConfigPtrInput `pulumi:"webhookClientConfig"`
}
func (CustomResourceConversionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceConversion)(nil)).Elem()
}
func (i CustomResourceConversionArgs) ToCustomResourceConversionOutput() CustomResourceConversionOutput {
return i.ToCustomResourceConversionOutputWithContext(context.Background())
}
func (i CustomResourceConversionArgs) ToCustomResourceConversionOutputWithContext(ctx context.Context) CustomResourceConversionOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceConversionOutput)
}
func (i CustomResourceConversionArgs) ToCustomResourceConversionPtrOutput() CustomResourceConversionPtrOutput {
return i.ToCustomResourceConversionPtrOutputWithContext(context.Background())
}
func (i CustomResourceConversionArgs) ToCustomResourceConversionPtrOutputWithContext(ctx context.Context) CustomResourceConversionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceConversionOutput).ToCustomResourceConversionPtrOutputWithContext(ctx)
}
// CustomResourceConversionPtrInput is an input type that accepts CustomResourceConversionArgs, CustomResourceConversionPtr and CustomResourceConversionPtrOutput values.
// You can construct a concrete instance of `CustomResourceConversionPtrInput` via:
//
// CustomResourceConversionArgs{...}
//
// or:
//
// nil
type CustomResourceConversionPtrInput interface {
pulumi.Input
ToCustomResourceConversionPtrOutput() CustomResourceConversionPtrOutput
ToCustomResourceConversionPtrOutputWithContext(context.Context) CustomResourceConversionPtrOutput
}
type customResourceConversionPtrType CustomResourceConversionArgs
func CustomResourceConversionPtr(v *CustomResourceConversionArgs) CustomResourceConversionPtrInput {
return (*customResourceConversionPtrType)(v)
}
func (*customResourceConversionPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CustomResourceConversion)(nil)).Elem()
}
func (i *customResourceConversionPtrType) ToCustomResourceConversionPtrOutput() CustomResourceConversionPtrOutput {
return i.ToCustomResourceConversionPtrOutputWithContext(context.Background())
}
func (i *customResourceConversionPtrType) ToCustomResourceConversionPtrOutputWithContext(ctx context.Context) CustomResourceConversionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceConversionPtrOutput)
}
// CustomResourceConversion describes how to convert different versions of a CR.
type CustomResourceConversionOutput struct{ *pulumi.OutputState }
func (CustomResourceConversionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceConversion)(nil)).Elem()
}
func (o CustomResourceConversionOutput) ToCustomResourceConversionOutput() CustomResourceConversionOutput {
return o
}
func (o CustomResourceConversionOutput) ToCustomResourceConversionOutputWithContext(ctx context.Context) CustomResourceConversionOutput {
return o
}
func (o CustomResourceConversionOutput) ToCustomResourceConversionPtrOutput() CustomResourceConversionPtrOutput {
return o.ToCustomResourceConversionPtrOutputWithContext(context.Background())
}
func (o CustomResourceConversionOutput) ToCustomResourceConversionPtrOutputWithContext(ctx context.Context) CustomResourceConversionPtrOutput {
return o.ApplyT(func(v CustomResourceConversion) *CustomResourceConversion {
return &v
}).(CustomResourceConversionPtrOutput)
}
// conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`.
func (o CustomResourceConversionOutput) ConversionReviewVersions() pulumi.StringArrayOutput {
return o.ApplyT(func(v CustomResourceConversion) []string { return v.ConversionReviewVersions }).(pulumi.StringArrayOutput)
}
// strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
// is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
func (o CustomResourceConversionOutput) Strategy() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceConversion) string { return v.Strategy }).(pulumi.StringOutput)
}
// webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`.
func (o CustomResourceConversionOutput) WebhookClientConfig() WebhookClientConfigPtrOutput {
return o.ApplyT(func(v CustomResourceConversion) *WebhookClientConfig { return v.WebhookClientConfig }).(WebhookClientConfigPtrOutput)
}
type CustomResourceConversionPtrOutput struct{ *pulumi.OutputState }
func (CustomResourceConversionPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CustomResourceConversion)(nil)).Elem()
}
func (o CustomResourceConversionPtrOutput) ToCustomResourceConversionPtrOutput() CustomResourceConversionPtrOutput {
return o
}
func (o CustomResourceConversionPtrOutput) ToCustomResourceConversionPtrOutputWithContext(ctx context.Context) CustomResourceConversionPtrOutput {
return o
}
func (o CustomResourceConversionPtrOutput) Elem() CustomResourceConversionOutput {
return o.ApplyT(func(v *CustomResourceConversion) CustomResourceConversion { return *v }).(CustomResourceConversionOutput)
}
// conversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. The API server will use the first version in the list which it supports. If none of the versions specified in this list are supported by API server, conversion will fail for the custom resource. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Defaults to `["v1beta1"]`.
func (o CustomResourceConversionPtrOutput) ConversionReviewVersions() pulumi.StringArrayOutput {
return o.ApplyT(func(v *CustomResourceConversion) []string {
if v == nil {
return nil
}
return v.ConversionReviewVersions
}).(pulumi.StringArrayOutput)
}
// strategy specifies how custom resources are converted between versions. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the custom resource. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information
// is needed for this option. This requires spec.preserveUnknownFields to be false, and spec.conversion.webhookClientConfig to be set.
func (o CustomResourceConversionPtrOutput) Strategy() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CustomResourceConversion) *string {
if v == nil {
return nil
}
return &v.Strategy
}).(pulumi.StringPtrOutput)
}
// webhookClientConfig is the instructions for how to call the webhook if strategy is `Webhook`. Required when `strategy` is set to `Webhook`.
func (o CustomResourceConversionPtrOutput) WebhookClientConfig() WebhookClientConfigPtrOutput {
return o.ApplyT(func(v *CustomResourceConversion) *WebhookClientConfig {
if v == nil {
return nil
}
return v.WebhookClientConfig
}).(WebhookClientConfigPtrOutput)
}
// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.
type CustomResourceDefinitionType 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"`
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// spec describes how the user wants the resources to appear
Spec CustomResourceDefinitionSpec `pulumi:"spec"`
// status indicates the actual state of the CustomResourceDefinition
Status *CustomResourceDefinitionStatus `pulumi:"status"`
}
// CustomResourceDefinitionTypeInput is an input type that accepts CustomResourceDefinitionTypeArgs and CustomResourceDefinitionTypeOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionTypeInput` via:
//
// CustomResourceDefinitionTypeArgs{...}
type CustomResourceDefinitionTypeInput interface {
pulumi.Input
ToCustomResourceDefinitionTypeOutput() CustomResourceDefinitionTypeOutput
ToCustomResourceDefinitionTypeOutputWithContext(context.Context) CustomResourceDefinitionTypeOutput
}
// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.
type CustomResourceDefinitionTypeArgs 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"`
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// spec describes how the user wants the resources to appear
Spec CustomResourceDefinitionSpecInput `pulumi:"spec"`
// status indicates the actual state of the CustomResourceDefinition
Status CustomResourceDefinitionStatusPtrInput `pulumi:"status"`
}
func (CustomResourceDefinitionTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionType)(nil)).Elem()
}
func (i CustomResourceDefinitionTypeArgs) ToCustomResourceDefinitionTypeOutput() CustomResourceDefinitionTypeOutput {
return i.ToCustomResourceDefinitionTypeOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionTypeArgs) ToCustomResourceDefinitionTypeOutputWithContext(ctx context.Context) CustomResourceDefinitionTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionTypeOutput)
}
// CustomResourceDefinitionTypeArrayInput is an input type that accepts CustomResourceDefinitionTypeArray and CustomResourceDefinitionTypeArrayOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionTypeArrayInput` via:
//
// CustomResourceDefinitionTypeArray{ CustomResourceDefinitionTypeArgs{...} }
type CustomResourceDefinitionTypeArrayInput interface {
pulumi.Input
ToCustomResourceDefinitionTypeArrayOutput() CustomResourceDefinitionTypeArrayOutput
ToCustomResourceDefinitionTypeArrayOutputWithContext(context.Context) CustomResourceDefinitionTypeArrayOutput
}
type CustomResourceDefinitionTypeArray []CustomResourceDefinitionTypeInput
func (CustomResourceDefinitionTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomResourceDefinitionType)(nil)).Elem()
}
func (i CustomResourceDefinitionTypeArray) ToCustomResourceDefinitionTypeArrayOutput() CustomResourceDefinitionTypeArrayOutput {
return i.ToCustomResourceDefinitionTypeArrayOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionTypeArray) ToCustomResourceDefinitionTypeArrayOutputWithContext(ctx context.Context) CustomResourceDefinitionTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionTypeArrayOutput)
}
// CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. Deprecated in v1.16, planned for removal in v1.22. Use apiextensions.k8s.io/v1 CustomResourceDefinition instead.
type CustomResourceDefinitionTypeOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionType)(nil)).Elem()
}
func (o CustomResourceDefinitionTypeOutput) ToCustomResourceDefinitionTypeOutput() CustomResourceDefinitionTypeOutput {
return o
}
func (o CustomResourceDefinitionTypeOutput) ToCustomResourceDefinitionTypeOutputWithContext(ctx context.Context) CustomResourceDefinitionTypeOutput {
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 CustomResourceDefinitionTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionType) *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 CustomResourceDefinitionTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
func (o CustomResourceDefinitionTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// spec describes how the user wants the resources to appear
func (o CustomResourceDefinitionTypeOutput) Spec() CustomResourceDefinitionSpecOutput {
return o.ApplyT(func(v CustomResourceDefinitionType) CustomResourceDefinitionSpec { return v.Spec }).(CustomResourceDefinitionSpecOutput)
}
// status indicates the actual state of the CustomResourceDefinition
func (o CustomResourceDefinitionTypeOutput) Status() CustomResourceDefinitionStatusPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionType) *CustomResourceDefinitionStatus { return v.Status }).(CustomResourceDefinitionStatusPtrOutput)
}
type CustomResourceDefinitionTypeArrayOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomResourceDefinitionType)(nil)).Elem()
}
func (o CustomResourceDefinitionTypeArrayOutput) ToCustomResourceDefinitionTypeArrayOutput() CustomResourceDefinitionTypeArrayOutput {
return o
}
func (o CustomResourceDefinitionTypeArrayOutput) ToCustomResourceDefinitionTypeArrayOutputWithContext(ctx context.Context) CustomResourceDefinitionTypeArrayOutput {
return o
}
func (o CustomResourceDefinitionTypeArrayOutput) Index(i pulumi.IntInput) CustomResourceDefinitionTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CustomResourceDefinitionType {
return vs[0].([]CustomResourceDefinitionType)[vs[1].(int)]
}).(CustomResourceDefinitionTypeOutput)
}
// CustomResourceDefinitionCondition contains details for the current condition of this pod.
type CustomResourceDefinitionCondition struct {
// lastTransitionTime last time the condition transitioned from one status to another.
LastTransitionTime *string `pulumi:"lastTransitionTime"`
// message is a human-readable message indicating details about last transition.
Message *string `pulumi:"message"`
// reason is a unique, one-word, CamelCase reason for the condition's last transition.
Reason *string `pulumi:"reason"`
// status is the status of the condition. Can be True, False, Unknown.
Status string `pulumi:"status"`
// type is the type of the condition. Types include Established, NamesAccepted and Terminating.
Type string `pulumi:"type"`
}
// CustomResourceDefinitionConditionInput is an input type that accepts CustomResourceDefinitionConditionArgs and CustomResourceDefinitionConditionOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionConditionInput` via:
//
// CustomResourceDefinitionConditionArgs{...}
type CustomResourceDefinitionConditionInput interface {
pulumi.Input
ToCustomResourceDefinitionConditionOutput() CustomResourceDefinitionConditionOutput
ToCustomResourceDefinitionConditionOutputWithContext(context.Context) CustomResourceDefinitionConditionOutput
}
// CustomResourceDefinitionCondition contains details for the current condition of this pod.
type CustomResourceDefinitionConditionArgs struct {
// lastTransitionTime last time the condition transitioned from one status to another.
LastTransitionTime pulumi.StringPtrInput `pulumi:"lastTransitionTime"`
// message is a human-readable message indicating details about last transition.
Message pulumi.StringPtrInput `pulumi:"message"`
// reason is a unique, one-word, CamelCase reason for the condition's last transition.
Reason pulumi.StringPtrInput `pulumi:"reason"`
// status is the status of the condition. Can be True, False, Unknown.
Status pulumi.StringInput `pulumi:"status"`
// type is the type of the condition. Types include Established, NamesAccepted and Terminating.
Type pulumi.StringInput `pulumi:"type"`
}
func (CustomResourceDefinitionConditionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionCondition)(nil)).Elem()
}
func (i CustomResourceDefinitionConditionArgs) ToCustomResourceDefinitionConditionOutput() CustomResourceDefinitionConditionOutput {
return i.ToCustomResourceDefinitionConditionOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionConditionArgs) ToCustomResourceDefinitionConditionOutputWithContext(ctx context.Context) CustomResourceDefinitionConditionOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionConditionOutput)
}
// CustomResourceDefinitionConditionArrayInput is an input type that accepts CustomResourceDefinitionConditionArray and CustomResourceDefinitionConditionArrayOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionConditionArrayInput` via:
//
// CustomResourceDefinitionConditionArray{ CustomResourceDefinitionConditionArgs{...} }
type CustomResourceDefinitionConditionArrayInput interface {
pulumi.Input
ToCustomResourceDefinitionConditionArrayOutput() CustomResourceDefinitionConditionArrayOutput
ToCustomResourceDefinitionConditionArrayOutputWithContext(context.Context) CustomResourceDefinitionConditionArrayOutput
}
type CustomResourceDefinitionConditionArray []CustomResourceDefinitionConditionInput
func (CustomResourceDefinitionConditionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomResourceDefinitionCondition)(nil)).Elem()
}
func (i CustomResourceDefinitionConditionArray) ToCustomResourceDefinitionConditionArrayOutput() CustomResourceDefinitionConditionArrayOutput {
return i.ToCustomResourceDefinitionConditionArrayOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionConditionArray) ToCustomResourceDefinitionConditionArrayOutputWithContext(ctx context.Context) CustomResourceDefinitionConditionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionConditionArrayOutput)
}
// CustomResourceDefinitionCondition contains details for the current condition of this pod.
type CustomResourceDefinitionConditionOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionConditionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionCondition)(nil)).Elem()
}
func (o CustomResourceDefinitionConditionOutput) ToCustomResourceDefinitionConditionOutput() CustomResourceDefinitionConditionOutput {
return o
}
func (o CustomResourceDefinitionConditionOutput) ToCustomResourceDefinitionConditionOutputWithContext(ctx context.Context) CustomResourceDefinitionConditionOutput {
return o
}
// lastTransitionTime last time the condition transitioned from one status to another.
func (o CustomResourceDefinitionConditionOutput) LastTransitionTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionCondition) *string { return v.LastTransitionTime }).(pulumi.StringPtrOutput)
}
// message is a human-readable message indicating details about last transition.
func (o CustomResourceDefinitionConditionOutput) Message() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionCondition) *string { return v.Message }).(pulumi.StringPtrOutput)
}
// reason is a unique, one-word, CamelCase reason for the condition's last transition.
func (o CustomResourceDefinitionConditionOutput) Reason() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionCondition) *string { return v.Reason }).(pulumi.StringPtrOutput)
}
// status is the status of the condition. Can be True, False, Unknown.
func (o CustomResourceDefinitionConditionOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceDefinitionCondition) string { return v.Status }).(pulumi.StringOutput)
}
// type is the type of the condition. Types include Established, NamesAccepted and Terminating.
func (o CustomResourceDefinitionConditionOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceDefinitionCondition) string { return v.Type }).(pulumi.StringOutput)
}
type CustomResourceDefinitionConditionArrayOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionConditionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CustomResourceDefinitionCondition)(nil)).Elem()
}
func (o CustomResourceDefinitionConditionArrayOutput) ToCustomResourceDefinitionConditionArrayOutput() CustomResourceDefinitionConditionArrayOutput {
return o
}
func (o CustomResourceDefinitionConditionArrayOutput) ToCustomResourceDefinitionConditionArrayOutputWithContext(ctx context.Context) CustomResourceDefinitionConditionArrayOutput {
return o
}
func (o CustomResourceDefinitionConditionArrayOutput) Index(i pulumi.IntInput) CustomResourceDefinitionConditionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CustomResourceDefinitionCondition {
return vs[0].([]CustomResourceDefinitionCondition)[vs[1].(int)]
}).(CustomResourceDefinitionConditionOutput)
}
// CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
type CustomResourceDefinitionListType 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 list individual CustomResourceDefinition objects
Items []CustomResourceDefinitionType `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"`
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// CustomResourceDefinitionListTypeInput is an input type that accepts CustomResourceDefinitionListTypeArgs and CustomResourceDefinitionListTypeOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionListTypeInput` via:
//
// CustomResourceDefinitionListTypeArgs{...}
type CustomResourceDefinitionListTypeInput interface {
pulumi.Input
ToCustomResourceDefinitionListTypeOutput() CustomResourceDefinitionListTypeOutput
ToCustomResourceDefinitionListTypeOutputWithContext(context.Context) CustomResourceDefinitionListTypeOutput
}
// CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
type CustomResourceDefinitionListTypeArgs 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 list individual CustomResourceDefinition objects
Items CustomResourceDefinitionTypeArrayInput `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"`
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (CustomResourceDefinitionListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionListType)(nil)).Elem()
}
func (i CustomResourceDefinitionListTypeArgs) ToCustomResourceDefinitionListTypeOutput() CustomResourceDefinitionListTypeOutput {
return i.ToCustomResourceDefinitionListTypeOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionListTypeArgs) ToCustomResourceDefinitionListTypeOutputWithContext(ctx context.Context) CustomResourceDefinitionListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionListTypeOutput)
}
// CustomResourceDefinitionList is a list of CustomResourceDefinition objects.
type CustomResourceDefinitionListTypeOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionListType)(nil)).Elem()
}
func (o CustomResourceDefinitionListTypeOutput) ToCustomResourceDefinitionListTypeOutput() CustomResourceDefinitionListTypeOutput {
return o
}
func (o CustomResourceDefinitionListTypeOutput) ToCustomResourceDefinitionListTypeOutputWithContext(ctx context.Context) CustomResourceDefinitionListTypeOutput {
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 CustomResourceDefinitionListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// items list individual CustomResourceDefinition objects
func (o CustomResourceDefinitionListTypeOutput) Items() CustomResourceDefinitionTypeArrayOutput {
return o.ApplyT(func(v CustomResourceDefinitionListType) []CustomResourceDefinitionType { return v.Items }).(CustomResourceDefinitionTypeArrayOutput)
}
// 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 CustomResourceDefinitionListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
func (o CustomResourceDefinitionListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
type CustomResourceDefinitionNames struct {
// categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
Categories []string `pulumi:"categories"`
// kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
Kind string `pulumi:"kind"`
// listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
ListKind *string `pulumi:"listKind"`
// plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
Plural string `pulumi:"plural"`
// shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
ShortNames []string `pulumi:"shortNames"`
// singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
Singular *string `pulumi:"singular"`
}
// CustomResourceDefinitionNamesInput is an input type that accepts CustomResourceDefinitionNamesArgs and CustomResourceDefinitionNamesOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionNamesInput` via:
//
// CustomResourceDefinitionNamesArgs{...}
type CustomResourceDefinitionNamesInput interface {
pulumi.Input
ToCustomResourceDefinitionNamesOutput() CustomResourceDefinitionNamesOutput
ToCustomResourceDefinitionNamesOutputWithContext(context.Context) CustomResourceDefinitionNamesOutput
}
// CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
type CustomResourceDefinitionNamesArgs struct {
// categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
Categories pulumi.StringArrayInput `pulumi:"categories"`
// kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
Kind pulumi.StringInput `pulumi:"kind"`
// listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
ListKind pulumi.StringPtrInput `pulumi:"listKind"`
// plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
Plural pulumi.StringInput `pulumi:"plural"`
// shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
ShortNames pulumi.StringArrayInput `pulumi:"shortNames"`
// singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
Singular pulumi.StringPtrInput `pulumi:"singular"`
}
func (CustomResourceDefinitionNamesArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionNames)(nil)).Elem()
}
func (i CustomResourceDefinitionNamesArgs) ToCustomResourceDefinitionNamesOutput() CustomResourceDefinitionNamesOutput {
return i.ToCustomResourceDefinitionNamesOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionNamesArgs) ToCustomResourceDefinitionNamesOutputWithContext(ctx context.Context) CustomResourceDefinitionNamesOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionNamesOutput)
}
func (i CustomResourceDefinitionNamesArgs) ToCustomResourceDefinitionNamesPtrOutput() CustomResourceDefinitionNamesPtrOutput {
return i.ToCustomResourceDefinitionNamesPtrOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionNamesArgs) ToCustomResourceDefinitionNamesPtrOutputWithContext(ctx context.Context) CustomResourceDefinitionNamesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionNamesOutput).ToCustomResourceDefinitionNamesPtrOutputWithContext(ctx)
}
// CustomResourceDefinitionNamesPtrInput is an input type that accepts CustomResourceDefinitionNamesArgs, CustomResourceDefinitionNamesPtr and CustomResourceDefinitionNamesPtrOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionNamesPtrInput` via:
//
// CustomResourceDefinitionNamesArgs{...}
//
// or:
//
// nil
type CustomResourceDefinitionNamesPtrInput interface {
pulumi.Input
ToCustomResourceDefinitionNamesPtrOutput() CustomResourceDefinitionNamesPtrOutput
ToCustomResourceDefinitionNamesPtrOutputWithContext(context.Context) CustomResourceDefinitionNamesPtrOutput
}
type customResourceDefinitionNamesPtrType CustomResourceDefinitionNamesArgs
func CustomResourceDefinitionNamesPtr(v *CustomResourceDefinitionNamesArgs) CustomResourceDefinitionNamesPtrInput {
return (*customResourceDefinitionNamesPtrType)(v)
}
func (*customResourceDefinitionNamesPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CustomResourceDefinitionNames)(nil)).Elem()
}
func (i *customResourceDefinitionNamesPtrType) ToCustomResourceDefinitionNamesPtrOutput() CustomResourceDefinitionNamesPtrOutput {
return i.ToCustomResourceDefinitionNamesPtrOutputWithContext(context.Background())
}
func (i *customResourceDefinitionNamesPtrType) ToCustomResourceDefinitionNamesPtrOutputWithContext(ctx context.Context) CustomResourceDefinitionNamesPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionNamesPtrOutput)
}
// CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
type CustomResourceDefinitionNamesOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionNamesOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionNames)(nil)).Elem()
}
func (o CustomResourceDefinitionNamesOutput) ToCustomResourceDefinitionNamesOutput() CustomResourceDefinitionNamesOutput {
return o
}
func (o CustomResourceDefinitionNamesOutput) ToCustomResourceDefinitionNamesOutputWithContext(ctx context.Context) CustomResourceDefinitionNamesOutput {
return o
}
func (o CustomResourceDefinitionNamesOutput) ToCustomResourceDefinitionNamesPtrOutput() CustomResourceDefinitionNamesPtrOutput {
return o.ToCustomResourceDefinitionNamesPtrOutputWithContext(context.Background())
}
func (o CustomResourceDefinitionNamesOutput) ToCustomResourceDefinitionNamesPtrOutputWithContext(ctx context.Context) CustomResourceDefinitionNamesPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) *CustomResourceDefinitionNames {
return &v
}).(CustomResourceDefinitionNamesPtrOutput)
}
// categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
func (o CustomResourceDefinitionNamesOutput) Categories() pulumi.StringArrayOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) []string { return v.Categories }).(pulumi.StringArrayOutput)
}
// kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
func (o CustomResourceDefinitionNamesOutput) Kind() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) string { return v.Kind }).(pulumi.StringOutput)
}
// listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
func (o CustomResourceDefinitionNamesOutput) ListKind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) *string { return v.ListKind }).(pulumi.StringPtrOutput)
}
// plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
func (o CustomResourceDefinitionNamesOutput) Plural() pulumi.StringOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) string { return v.Plural }).(pulumi.StringOutput)
}
// shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
func (o CustomResourceDefinitionNamesOutput) ShortNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) []string { return v.ShortNames }).(pulumi.StringArrayOutput)
}
// singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
func (o CustomResourceDefinitionNamesOutput) Singular() pulumi.StringPtrOutput {
return o.ApplyT(func(v CustomResourceDefinitionNames) *string { return v.Singular }).(pulumi.StringPtrOutput)
}
type CustomResourceDefinitionNamesPtrOutput struct{ *pulumi.OutputState }
func (CustomResourceDefinitionNamesPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CustomResourceDefinitionNames)(nil)).Elem()
}
func (o CustomResourceDefinitionNamesPtrOutput) ToCustomResourceDefinitionNamesPtrOutput() CustomResourceDefinitionNamesPtrOutput {
return o
}
func (o CustomResourceDefinitionNamesPtrOutput) ToCustomResourceDefinitionNamesPtrOutputWithContext(ctx context.Context) CustomResourceDefinitionNamesPtrOutput {
return o
}
func (o CustomResourceDefinitionNamesPtrOutput) Elem() CustomResourceDefinitionNamesOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) CustomResourceDefinitionNames { return *v }).(CustomResourceDefinitionNamesOutput)
}
// categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
func (o CustomResourceDefinitionNamesPtrOutput) Categories() pulumi.StringArrayOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) []string {
if v == nil {
return nil
}
return v.Categories
}).(pulumi.StringArrayOutput)
}
// kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
func (o CustomResourceDefinitionNamesPtrOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) *string {
if v == nil {
return nil
}
return &v.Kind
}).(pulumi.StringPtrOutput)
}
// listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
func (o CustomResourceDefinitionNamesPtrOutput) ListKind() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) *string {
if v == nil {
return nil
}
return v.ListKind
}).(pulumi.StringPtrOutput)
}
// plural is the plural name of the resource to serve. The custom resources are served under `/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.
func (o CustomResourceDefinitionNamesPtrOutput) Plural() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) *string {
if v == nil {
return nil
}
return &v.Plural
}).(pulumi.StringPtrOutput)
}
// shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
func (o CustomResourceDefinitionNamesPtrOutput) ShortNames() pulumi.StringArrayOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) []string {
if v == nil {
return nil
}
return v.ShortNames
}).(pulumi.StringArrayOutput)
}
// singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
func (o CustomResourceDefinitionNamesPtrOutput) Singular() pulumi.StringPtrOutput {
return o.ApplyT(func(v *CustomResourceDefinitionNames) *string {
if v == nil {
return nil
}
return v.Singular
}).(pulumi.StringPtrOutput)
}
// CustomResourceDefinitionSpec describes how a user wants their resource to appear
type CustomResourceDefinitionSpec struct {
// additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
AdditionalPrinterColumns []CustomResourceColumnDefinition `pulumi:"additionalPrinterColumns"`
// conversion defines conversion settings for the CRD.
Conversion *CustomResourceConversion `pulumi:"conversion"`
// group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
Group string `pulumi:"group"`
// names specify the resource and kind names for the custom resource.
Names CustomResourceDefinitionNames `pulumi:"names"`
// preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
PreserveUnknownFields *bool `pulumi:"preserveUnknownFields"`
// scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
Scope string `pulumi:"scope"`
// subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive.
Subresources *CustomResourceSubresources `pulumi:"subresources"`
// validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive.
Validation *CustomResourceValidation `pulumi:"validation"`
// version is the API version of the defined custom resource. The custom resources are served under `/apis/<group>/<version>/...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead.
Version *string `pulumi:"version"`
// versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
Versions []CustomResourceDefinitionVersion `pulumi:"versions"`
}
// CustomResourceDefinitionSpecInput is an input type that accepts CustomResourceDefinitionSpecArgs and CustomResourceDefinitionSpecOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionSpecInput` via:
//
// CustomResourceDefinitionSpecArgs{...}
type CustomResourceDefinitionSpecInput interface {
pulumi.Input
ToCustomResourceDefinitionSpecOutput() CustomResourceDefinitionSpecOutput
ToCustomResourceDefinitionSpecOutputWithContext(context.Context) CustomResourceDefinitionSpecOutput
}
// CustomResourceDefinitionSpec describes how a user wants their resource to appear
type CustomResourceDefinitionSpecArgs struct {
// additionalPrinterColumns specifies additional columns returned in Table output. See https://kubernetes.io/docs/reference/using-api/api-concepts/#receiving-resources-as-tables for details. If present, this field configures columns for all versions. Top-level and per-version columns are mutually exclusive. If no top-level or per-version columns are specified, a single column displaying the age of the custom resource is used.
AdditionalPrinterColumns CustomResourceColumnDefinitionArrayInput `pulumi:"additionalPrinterColumns"`
// conversion defines conversion settings for the CRD.
Conversion CustomResourceConversionPtrInput `pulumi:"conversion"`
// group is the API group of the defined custom resource. The custom resources are served under `/apis/<group>/...`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`).
Group pulumi.StringInput `pulumi:"group"`
// names specify the resource and kind names for the custom resource.
Names CustomResourceDefinitionNamesInput `pulumi:"names"`
// preserveUnknownFields indicates that object fields which are not specified in the OpenAPI schema should be preserved when persisting to storage. apiVersion, kind, metadata and known fields inside metadata are always preserved. If false, schemas must be defined for all versions. Defaults to true in v1beta for backwards compatibility. Deprecated: will be required to be false in v1. Preservation of unknown fields can be specified in the validation schema using the `x-kubernetes-preserve-unknown-fields: true` extension. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/#pruning-versus-preserving-unknown-fields for details.
PreserveUnknownFields pulumi.BoolPtrInput `pulumi:"preserveUnknownFields"`
// scope indicates whether the defined custom resource is cluster- or namespace-scoped. Allowed values are `Cluster` and `Namespaced`. Default is `Namespaced`.
Scope pulumi.StringInput `pulumi:"scope"`
// subresources specify what subresources the defined custom resource has. If present, this field configures subresources for all versions. Top-level and per-version subresources are mutually exclusive.
Subresources CustomResourceSubresourcesPtrInput `pulumi:"subresources"`
// validation describes the schema used for validation and pruning of the custom resource. If present, this validation schema is used to validate all versions. Top-level and per-version schemas are mutually exclusive.
Validation CustomResourceValidationPtrInput `pulumi:"validation"`
// version is the API version of the defined custom resource. The custom resources are served under `/apis/<group>/<version>/...`. Must match the name of the first item in the `versions` list if `version` and `versions` are both specified. Optional if `versions` is specified. Deprecated: use `versions` instead.
Version pulumi.StringPtrInput `pulumi:"version"`
// versions is the list of all API versions of the defined custom resource. Optional if `version` is specified. The name of the first item in the `versions` list must match the `version` field if `version` and `versions` are both specified. Version names are used to compute the order in which served versions are listed in API discovery. If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version), then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.
Versions CustomResourceDefinitionVersionArrayInput `pulumi:"versions"`
}
func (CustomResourceDefinitionSpecArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CustomResourceDefinitionSpec)(nil)).Elem()
}
func (i CustomResourceDefinitionSpecArgs) ToCustomResourceDefinitionSpecOutput() CustomResourceDefinitionSpecOutput {
return i.ToCustomResourceDefinitionSpecOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionSpecArgs) ToCustomResourceDefinitionSpecOutputWithContext(ctx context.Context) CustomResourceDefinitionSpecOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionSpecOutput)
}
func (i CustomResourceDefinitionSpecArgs) ToCustomResourceDefinitionSpecPtrOutput() CustomResourceDefinitionSpecPtrOutput {
return i.ToCustomResourceDefinitionSpecPtrOutputWithContext(context.Background())
}
func (i CustomResourceDefinitionSpecArgs) ToCustomResourceDefinitionSpecPtrOutputWithContext(ctx context.Context) CustomResourceDefinitionSpecPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CustomResourceDefinitionSpecOutput).ToCustomResourceDefinitionSpecPtrOutputWithContext(ctx)
}
// CustomResourceDefinitionSpecPtrInput is an input type that accepts CustomResourceDefinitionSpecArgs, CustomResourceDefinitionSpecPtr and CustomResourceDefinitionSpecPtrOutput values.
// You can construct a concrete instance of `CustomResourceDefinitionSpecPtrInput` via:
//
// CustomResourceDefinitionSpecArgs{...}
//
// or:
//
// nil
type CustomResourceDefinitionSpecPtrInput interface {
pulumi.Input