/
pulumiTypes.go
6634 lines (5503 loc) · 337 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 v1beta1
import (
"context"
"reflect"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v4/go/kubernetes/core/v1"
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
// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type ControllerRevisionType 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"`
// Data is the serialized representation of the state.
Data interface{} `pulumi:"data"`
// 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. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// Revision indicates the revision of the state represented by Data.
Revision int `pulumi:"revision"`
}
// ControllerRevisionTypeInput is an input type that accepts ControllerRevisionTypeArgs and ControllerRevisionTypeOutput values.
// You can construct a concrete instance of `ControllerRevisionTypeInput` via:
//
// ControllerRevisionTypeArgs{...}
type ControllerRevisionTypeInput interface {
pulumi.Input
ToControllerRevisionTypeOutput() ControllerRevisionTypeOutput
ToControllerRevisionTypeOutputWithContext(context.Context) ControllerRevisionTypeOutput
}
// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type ControllerRevisionTypeArgs 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"`
// Data is the serialized representation of the state.
Data pulumi.Input `pulumi:"data"`
// 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. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// Revision indicates the revision of the state represented by Data.
Revision pulumi.IntInput `pulumi:"revision"`
}
func (ControllerRevisionTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ControllerRevisionType)(nil)).Elem()
}
func (i ControllerRevisionTypeArgs) ToControllerRevisionTypeOutput() ControllerRevisionTypeOutput {
return i.ToControllerRevisionTypeOutputWithContext(context.Background())
}
func (i ControllerRevisionTypeArgs) ToControllerRevisionTypeOutputWithContext(ctx context.Context) ControllerRevisionTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ControllerRevisionTypeOutput)
}
// ControllerRevisionTypeArrayInput is an input type that accepts ControllerRevisionTypeArray and ControllerRevisionTypeArrayOutput values.
// You can construct a concrete instance of `ControllerRevisionTypeArrayInput` via:
//
// ControllerRevisionTypeArray{ ControllerRevisionTypeArgs{...} }
type ControllerRevisionTypeArrayInput interface {
pulumi.Input
ToControllerRevisionTypeArrayOutput() ControllerRevisionTypeArrayOutput
ToControllerRevisionTypeArrayOutputWithContext(context.Context) ControllerRevisionTypeArrayOutput
}
type ControllerRevisionTypeArray []ControllerRevisionTypeInput
func (ControllerRevisionTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ControllerRevisionType)(nil)).Elem()
}
func (i ControllerRevisionTypeArray) ToControllerRevisionTypeArrayOutput() ControllerRevisionTypeArrayOutput {
return i.ToControllerRevisionTypeArrayOutputWithContext(context.Background())
}
func (i ControllerRevisionTypeArray) ToControllerRevisionTypeArrayOutputWithContext(ctx context.Context) ControllerRevisionTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ControllerRevisionTypeArrayOutput)
}
// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type ControllerRevisionTypeOutput struct{ *pulumi.OutputState }
func (ControllerRevisionTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ControllerRevisionType)(nil)).Elem()
}
func (o ControllerRevisionTypeOutput) ToControllerRevisionTypeOutput() ControllerRevisionTypeOutput {
return o
}
func (o ControllerRevisionTypeOutput) ToControllerRevisionTypeOutputWithContext(ctx context.Context) ControllerRevisionTypeOutput {
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 ControllerRevisionTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ControllerRevisionType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Data is the serialized representation of the state.
func (o ControllerRevisionTypeOutput) Data() pulumi.AnyOutput {
return o.ApplyT(func(v ControllerRevisionType) interface{} { return v.Data }).(pulumi.AnyOutput)
}
// 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 ControllerRevisionTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ControllerRevisionType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o ControllerRevisionTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v ControllerRevisionType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// Revision indicates the revision of the state represented by Data.
func (o ControllerRevisionTypeOutput) Revision() pulumi.IntOutput {
return o.ApplyT(func(v ControllerRevisionType) int { return v.Revision }).(pulumi.IntOutput)
}
type ControllerRevisionTypeArrayOutput struct{ *pulumi.OutputState }
func (ControllerRevisionTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ControllerRevisionType)(nil)).Elem()
}
func (o ControllerRevisionTypeArrayOutput) ToControllerRevisionTypeArrayOutput() ControllerRevisionTypeArrayOutput {
return o
}
func (o ControllerRevisionTypeArrayOutput) ToControllerRevisionTypeArrayOutputWithContext(ctx context.Context) ControllerRevisionTypeArrayOutput {
return o
}
func (o ControllerRevisionTypeArrayOutput) Index(i pulumi.IntInput) ControllerRevisionTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ControllerRevisionType {
return vs[0].([]ControllerRevisionType)[vs[1].(int)]
}).(ControllerRevisionTypeOutput)
}
// ControllerRevisionList is a resource containing a list of ControllerRevision objects.
type ControllerRevisionListType 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 the list of ControllerRevisions
Items []ControllerRevisionType `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"`
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// ControllerRevisionListTypeInput is an input type that accepts ControllerRevisionListTypeArgs and ControllerRevisionListTypeOutput values.
// You can construct a concrete instance of `ControllerRevisionListTypeInput` via:
//
// ControllerRevisionListTypeArgs{...}
type ControllerRevisionListTypeInput interface {
pulumi.Input
ToControllerRevisionListTypeOutput() ControllerRevisionListTypeOutput
ToControllerRevisionListTypeOutputWithContext(context.Context) ControllerRevisionListTypeOutput
}
// ControllerRevisionList is a resource containing a list of ControllerRevision objects.
type ControllerRevisionListTypeArgs 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 the list of ControllerRevisions
Items ControllerRevisionTypeArrayInput `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"`
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (ControllerRevisionListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ControllerRevisionListType)(nil)).Elem()
}
func (i ControllerRevisionListTypeArgs) ToControllerRevisionListTypeOutput() ControllerRevisionListTypeOutput {
return i.ToControllerRevisionListTypeOutputWithContext(context.Background())
}
func (i ControllerRevisionListTypeArgs) ToControllerRevisionListTypeOutputWithContext(ctx context.Context) ControllerRevisionListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ControllerRevisionListTypeOutput)
}
// ControllerRevisionList is a resource containing a list of ControllerRevision objects.
type ControllerRevisionListTypeOutput struct{ *pulumi.OutputState }
func (ControllerRevisionListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ControllerRevisionListType)(nil)).Elem()
}
func (o ControllerRevisionListTypeOutput) ToControllerRevisionListTypeOutput() ControllerRevisionListTypeOutput {
return o
}
func (o ControllerRevisionListTypeOutput) ToControllerRevisionListTypeOutputWithContext(ctx context.Context) ControllerRevisionListTypeOutput {
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 ControllerRevisionListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ControllerRevisionListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Items is the list of ControllerRevisions
func (o ControllerRevisionListTypeOutput) Items() ControllerRevisionTypeArrayOutput {
return o.ApplyT(func(v ControllerRevisionListType) []ControllerRevisionType { return v.Items }).(ControllerRevisionTypeArrayOutput)
}
// 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 ControllerRevisionListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ControllerRevisionListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o ControllerRevisionListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v ControllerRevisionListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type ControllerRevisionPatchType 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"`
// Data is the serialized representation of the state.
Data interface{} `pulumi:"data"`
// 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. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"`
// Revision indicates the revision of the state represented by Data.
Revision *int `pulumi:"revision"`
}
// ControllerRevisionPatchTypeInput is an input type that accepts ControllerRevisionPatchTypeArgs and ControllerRevisionPatchTypeOutput values.
// You can construct a concrete instance of `ControllerRevisionPatchTypeInput` via:
//
// ControllerRevisionPatchTypeArgs{...}
type ControllerRevisionPatchTypeInput interface {
pulumi.Input
ToControllerRevisionPatchTypeOutput() ControllerRevisionPatchTypeOutput
ToControllerRevisionPatchTypeOutputWithContext(context.Context) ControllerRevisionPatchTypeOutput
}
// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type ControllerRevisionPatchTypeArgs 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"`
// Data is the serialized representation of the state.
Data pulumi.Input `pulumi:"data"`
// 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. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ObjectMetaPatchPtrInput `pulumi:"metadata"`
// Revision indicates the revision of the state represented by Data.
Revision pulumi.IntPtrInput `pulumi:"revision"`
}
func (ControllerRevisionPatchTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ControllerRevisionPatchType)(nil)).Elem()
}
func (i ControllerRevisionPatchTypeArgs) ToControllerRevisionPatchTypeOutput() ControllerRevisionPatchTypeOutput {
return i.ToControllerRevisionPatchTypeOutputWithContext(context.Background())
}
func (i ControllerRevisionPatchTypeArgs) ToControllerRevisionPatchTypeOutputWithContext(ctx context.Context) ControllerRevisionPatchTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ControllerRevisionPatchTypeOutput)
}
// ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.
type ControllerRevisionPatchTypeOutput struct{ *pulumi.OutputState }
func (ControllerRevisionPatchTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ControllerRevisionPatchType)(nil)).Elem()
}
func (o ControllerRevisionPatchTypeOutput) ToControllerRevisionPatchTypeOutput() ControllerRevisionPatchTypeOutput {
return o
}
func (o ControllerRevisionPatchTypeOutput) ToControllerRevisionPatchTypeOutputWithContext(ctx context.Context) ControllerRevisionPatchTypeOutput {
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 ControllerRevisionPatchTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v ControllerRevisionPatchType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Data is the serialized representation of the state.
func (o ControllerRevisionPatchTypeOutput) Data() pulumi.AnyOutput {
return o.ApplyT(func(v ControllerRevisionPatchType) interface{} { return v.Data }).(pulumi.AnyOutput)
}
// 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 ControllerRevisionPatchTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v ControllerRevisionPatchType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o ControllerRevisionPatchTypeOutput) Metadata() metav1.ObjectMetaPatchPtrOutput {
return o.ApplyT(func(v ControllerRevisionPatchType) *metav1.ObjectMetaPatch { return v.Metadata }).(metav1.ObjectMetaPatchPtrOutput)
}
// Revision indicates the revision of the state represented by Data.
func (o ControllerRevisionPatchTypeOutput) Revision() pulumi.IntPtrOutput {
return o.ApplyT(func(v ControllerRevisionPatchType) *int { return v.Revision }).(pulumi.IntPtrOutput)
}
// Deployment enables declarative updates for Pods and ReplicaSets.
//
// This resource waits until its status is ready before registering success
// for create/update, and populating output properties from the current state of the resource.
// The following conditions are used to determine whether the resource creation has
// succeeded or failed:
//
// 1. The Deployment has begun to be updated by the Deployment controller. If the current
// generation of the Deployment is > 1, then this means that the current generation must
// be different from the generation reported by the last outputs.
// 2. There exists a ReplicaSet whose revision is equal to the current revision of the
// Deployment.
// 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status'
// member is set to 'True'.
// 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type
// 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is
// 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist,
// because it doesn't do a rollout (i.e., it simply creates the Deployment and
// corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'.
//
// If the Deployment has not reached a Ready state after 10 minutes, it will
// time out and mark the resource update as Failed. You can override the default timeout value
// by setting the 'customTimeouts' option on the resource.
type DeploymentType 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 metadata.
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// Specification of the desired behavior of the Deployment.
Spec *DeploymentSpec `pulumi:"spec"`
// Most recently observed status of the Deployment.
Status *DeploymentStatus `pulumi:"status"`
}
// DeploymentTypeInput is an input type that accepts DeploymentTypeArgs and DeploymentTypeOutput values.
// You can construct a concrete instance of `DeploymentTypeInput` via:
//
// DeploymentTypeArgs{...}
type DeploymentTypeInput interface {
pulumi.Input
ToDeploymentTypeOutput() DeploymentTypeOutput
ToDeploymentTypeOutputWithContext(context.Context) DeploymentTypeOutput
}
// Deployment enables declarative updates for Pods and ReplicaSets.
//
// This resource waits until its status is ready before registering success
// for create/update, and populating output properties from the current state of the resource.
// The following conditions are used to determine whether the resource creation has
// succeeded or failed:
//
// 1. The Deployment has begun to be updated by the Deployment controller. If the current
// generation of the Deployment is > 1, then this means that the current generation must
// be different from the generation reported by the last outputs.
// 2. There exists a ReplicaSet whose revision is equal to the current revision of the
// Deployment.
// 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status'
// member is set to 'True'.
// 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type
// 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is
// 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist,
// because it doesn't do a rollout (i.e., it simply creates the Deployment and
// corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'.
//
// If the Deployment has not reached a Ready state after 10 minutes, it will
// time out and mark the resource update as Failed. You can override the default timeout value
// by setting the 'customTimeouts' option on the resource.
type DeploymentTypeArgs 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 metadata.
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// Specification of the desired behavior of the Deployment.
Spec DeploymentSpecPtrInput `pulumi:"spec"`
// Most recently observed status of the Deployment.
Status DeploymentStatusPtrInput `pulumi:"status"`
}
func (DeploymentTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentType)(nil)).Elem()
}
func (i DeploymentTypeArgs) ToDeploymentTypeOutput() DeploymentTypeOutput {
return i.ToDeploymentTypeOutputWithContext(context.Background())
}
func (i DeploymentTypeArgs) ToDeploymentTypeOutputWithContext(ctx context.Context) DeploymentTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentTypeOutput)
}
// DeploymentTypeArrayInput is an input type that accepts DeploymentTypeArray and DeploymentTypeArrayOutput values.
// You can construct a concrete instance of `DeploymentTypeArrayInput` via:
//
// DeploymentTypeArray{ DeploymentTypeArgs{...} }
type DeploymentTypeArrayInput interface {
pulumi.Input
ToDeploymentTypeArrayOutput() DeploymentTypeArrayOutput
ToDeploymentTypeArrayOutputWithContext(context.Context) DeploymentTypeArrayOutput
}
type DeploymentTypeArray []DeploymentTypeInput
func (DeploymentTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]DeploymentType)(nil)).Elem()
}
func (i DeploymentTypeArray) ToDeploymentTypeArrayOutput() DeploymentTypeArrayOutput {
return i.ToDeploymentTypeArrayOutputWithContext(context.Background())
}
func (i DeploymentTypeArray) ToDeploymentTypeArrayOutputWithContext(ctx context.Context) DeploymentTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentTypeArrayOutput)
}
// Deployment enables declarative updates for Pods and ReplicaSets.
//
// This resource waits until its status is ready before registering success
// for create/update, and populating output properties from the current state of the resource.
// The following conditions are used to determine whether the resource creation has
// succeeded or failed:
//
// 1. The Deployment has begun to be updated by the Deployment controller. If the current
// generation of the Deployment is > 1, then this means that the current generation must
// be different from the generation reported by the last outputs.
// 2. There exists a ReplicaSet whose revision is equal to the current revision of the
// Deployment.
// 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status'
// member is set to 'True'.
// 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type
// 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is
// 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist,
// because it doesn't do a rollout (i.e., it simply creates the Deployment and
// corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'.
//
// If the Deployment has not reached a Ready state after 10 minutes, it will
// time out and mark the resource update as Failed. You can override the default timeout value
// by setting the 'customTimeouts' option on the resource.
type DeploymentTypeOutput struct{ *pulumi.OutputState }
func (DeploymentTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentType)(nil)).Elem()
}
func (o DeploymentTypeOutput) ToDeploymentTypeOutput() DeploymentTypeOutput {
return o
}
func (o DeploymentTypeOutput) ToDeploymentTypeOutputWithContext(ctx context.Context) DeploymentTypeOutput {
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 DeploymentTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentType) *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 DeploymentTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object metadata.
func (o DeploymentTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v DeploymentType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// Specification of the desired behavior of the Deployment.
func (o DeploymentTypeOutput) Spec() DeploymentSpecPtrOutput {
return o.ApplyT(func(v DeploymentType) *DeploymentSpec { return v.Spec }).(DeploymentSpecPtrOutput)
}
// Most recently observed status of the Deployment.
func (o DeploymentTypeOutput) Status() DeploymentStatusPtrOutput {
return o.ApplyT(func(v DeploymentType) *DeploymentStatus { return v.Status }).(DeploymentStatusPtrOutput)
}
type DeploymentTypeArrayOutput struct{ *pulumi.OutputState }
func (DeploymentTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DeploymentType)(nil)).Elem()
}
func (o DeploymentTypeArrayOutput) ToDeploymentTypeArrayOutput() DeploymentTypeArrayOutput {
return o
}
func (o DeploymentTypeArrayOutput) ToDeploymentTypeArrayOutputWithContext(ctx context.Context) DeploymentTypeArrayOutput {
return o
}
func (o DeploymentTypeArrayOutput) Index(i pulumi.IntInput) DeploymentTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DeploymentType {
return vs[0].([]DeploymentType)[vs[1].(int)]
}).(DeploymentTypeOutput)
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentCondition struct {
// Last time the condition transitioned from one status to another.
LastTransitionTime *string `pulumi:"lastTransitionTime"`
// The last time this condition was updated.
LastUpdateTime *string `pulumi:"lastUpdateTime"`
// A human readable message indicating details about the transition.
Message *string `pulumi:"message"`
// The reason for the condition's last transition.
Reason *string `pulumi:"reason"`
// Status of the condition, one of True, False, Unknown.
Status string `pulumi:"status"`
// Type of deployment condition.
Type string `pulumi:"type"`
}
// DeploymentConditionInput is an input type that accepts DeploymentConditionArgs and DeploymentConditionOutput values.
// You can construct a concrete instance of `DeploymentConditionInput` via:
//
// DeploymentConditionArgs{...}
type DeploymentConditionInput interface {
pulumi.Input
ToDeploymentConditionOutput() DeploymentConditionOutput
ToDeploymentConditionOutputWithContext(context.Context) DeploymentConditionOutput
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentConditionArgs struct {
// Last time the condition transitioned from one status to another.
LastTransitionTime pulumi.StringPtrInput `pulumi:"lastTransitionTime"`
// The last time this condition was updated.
LastUpdateTime pulumi.StringPtrInput `pulumi:"lastUpdateTime"`
// A human readable message indicating details about the transition.
Message pulumi.StringPtrInput `pulumi:"message"`
// The reason for the condition's last transition.
Reason pulumi.StringPtrInput `pulumi:"reason"`
// Status of the condition, one of True, False, Unknown.
Status pulumi.StringInput `pulumi:"status"`
// Type of deployment condition.
Type pulumi.StringInput `pulumi:"type"`
}
func (DeploymentConditionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentCondition)(nil)).Elem()
}
func (i DeploymentConditionArgs) ToDeploymentConditionOutput() DeploymentConditionOutput {
return i.ToDeploymentConditionOutputWithContext(context.Background())
}
func (i DeploymentConditionArgs) ToDeploymentConditionOutputWithContext(ctx context.Context) DeploymentConditionOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentConditionOutput)
}
// DeploymentConditionArrayInput is an input type that accepts DeploymentConditionArray and DeploymentConditionArrayOutput values.
// You can construct a concrete instance of `DeploymentConditionArrayInput` via:
//
// DeploymentConditionArray{ DeploymentConditionArgs{...} }
type DeploymentConditionArrayInput interface {
pulumi.Input
ToDeploymentConditionArrayOutput() DeploymentConditionArrayOutput
ToDeploymentConditionArrayOutputWithContext(context.Context) DeploymentConditionArrayOutput
}
type DeploymentConditionArray []DeploymentConditionInput
func (DeploymentConditionArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]DeploymentCondition)(nil)).Elem()
}
func (i DeploymentConditionArray) ToDeploymentConditionArrayOutput() DeploymentConditionArrayOutput {
return i.ToDeploymentConditionArrayOutputWithContext(context.Background())
}
func (i DeploymentConditionArray) ToDeploymentConditionArrayOutputWithContext(ctx context.Context) DeploymentConditionArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentConditionArrayOutput)
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentConditionOutput struct{ *pulumi.OutputState }
func (DeploymentConditionOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentCondition)(nil)).Elem()
}
func (o DeploymentConditionOutput) ToDeploymentConditionOutput() DeploymentConditionOutput {
return o
}
func (o DeploymentConditionOutput) ToDeploymentConditionOutputWithContext(ctx context.Context) DeploymentConditionOutput {
return o
}
// Last time the condition transitioned from one status to another.
func (o DeploymentConditionOutput) LastTransitionTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentCondition) *string { return v.LastTransitionTime }).(pulumi.StringPtrOutput)
}
// The last time this condition was updated.
func (o DeploymentConditionOutput) LastUpdateTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentCondition) *string { return v.LastUpdateTime }).(pulumi.StringPtrOutput)
}
// A human readable message indicating details about the transition.
func (o DeploymentConditionOutput) Message() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentCondition) *string { return v.Message }).(pulumi.StringPtrOutput)
}
// The reason for the condition's last transition.
func (o DeploymentConditionOutput) Reason() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentCondition) *string { return v.Reason }).(pulumi.StringPtrOutput)
}
// Status of the condition, one of True, False, Unknown.
func (o DeploymentConditionOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v DeploymentCondition) string { return v.Status }).(pulumi.StringOutput)
}
// Type of deployment condition.
func (o DeploymentConditionOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v DeploymentCondition) string { return v.Type }).(pulumi.StringOutput)
}
type DeploymentConditionArrayOutput struct{ *pulumi.OutputState }
func (DeploymentConditionArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DeploymentCondition)(nil)).Elem()
}
func (o DeploymentConditionArrayOutput) ToDeploymentConditionArrayOutput() DeploymentConditionArrayOutput {
return o
}
func (o DeploymentConditionArrayOutput) ToDeploymentConditionArrayOutputWithContext(ctx context.Context) DeploymentConditionArrayOutput {
return o
}
func (o DeploymentConditionArrayOutput) Index(i pulumi.IntInput) DeploymentConditionOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DeploymentCondition {
return vs[0].([]DeploymentCondition)[vs[1].(int)]
}).(DeploymentConditionOutput)
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentConditionPatch struct {
// Last time the condition transitioned from one status to another.
LastTransitionTime *string `pulumi:"lastTransitionTime"`
// The last time this condition was updated.
LastUpdateTime *string `pulumi:"lastUpdateTime"`
// A human readable message indicating details about the transition.
Message *string `pulumi:"message"`
// The reason for the condition's last transition.
Reason *string `pulumi:"reason"`
// Status of the condition, one of True, False, Unknown.
Status *string `pulumi:"status"`
// Type of deployment condition.
Type *string `pulumi:"type"`
}
// DeploymentConditionPatchInput is an input type that accepts DeploymentConditionPatchArgs and DeploymentConditionPatchOutput values.
// You can construct a concrete instance of `DeploymentConditionPatchInput` via:
//
// DeploymentConditionPatchArgs{...}
type DeploymentConditionPatchInput interface {
pulumi.Input
ToDeploymentConditionPatchOutput() DeploymentConditionPatchOutput
ToDeploymentConditionPatchOutputWithContext(context.Context) DeploymentConditionPatchOutput
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentConditionPatchArgs struct {
// Last time the condition transitioned from one status to another.
LastTransitionTime pulumi.StringPtrInput `pulumi:"lastTransitionTime"`
// The last time this condition was updated.
LastUpdateTime pulumi.StringPtrInput `pulumi:"lastUpdateTime"`
// A human readable message indicating details about the transition.
Message pulumi.StringPtrInput `pulumi:"message"`
// The reason for the condition's last transition.
Reason pulumi.StringPtrInput `pulumi:"reason"`
// Status of the condition, one of True, False, Unknown.
Status pulumi.StringPtrInput `pulumi:"status"`
// Type of deployment condition.
Type pulumi.StringPtrInput `pulumi:"type"`
}
func (DeploymentConditionPatchArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentConditionPatch)(nil)).Elem()
}
func (i DeploymentConditionPatchArgs) ToDeploymentConditionPatchOutput() DeploymentConditionPatchOutput {
return i.ToDeploymentConditionPatchOutputWithContext(context.Background())
}
func (i DeploymentConditionPatchArgs) ToDeploymentConditionPatchOutputWithContext(ctx context.Context) DeploymentConditionPatchOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentConditionPatchOutput)
}
// DeploymentConditionPatchArrayInput is an input type that accepts DeploymentConditionPatchArray and DeploymentConditionPatchArrayOutput values.
// You can construct a concrete instance of `DeploymentConditionPatchArrayInput` via:
//
// DeploymentConditionPatchArray{ DeploymentConditionPatchArgs{...} }
type DeploymentConditionPatchArrayInput interface {
pulumi.Input
ToDeploymentConditionPatchArrayOutput() DeploymentConditionPatchArrayOutput
ToDeploymentConditionPatchArrayOutputWithContext(context.Context) DeploymentConditionPatchArrayOutput
}
type DeploymentConditionPatchArray []DeploymentConditionPatchInput
func (DeploymentConditionPatchArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]DeploymentConditionPatch)(nil)).Elem()
}
func (i DeploymentConditionPatchArray) ToDeploymentConditionPatchArrayOutput() DeploymentConditionPatchArrayOutput {
return i.ToDeploymentConditionPatchArrayOutputWithContext(context.Background())
}
func (i DeploymentConditionPatchArray) ToDeploymentConditionPatchArrayOutputWithContext(ctx context.Context) DeploymentConditionPatchArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentConditionPatchArrayOutput)
}
// DeploymentCondition describes the state of a deployment at a certain point.
type DeploymentConditionPatchOutput struct{ *pulumi.OutputState }
func (DeploymentConditionPatchOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentConditionPatch)(nil)).Elem()
}
func (o DeploymentConditionPatchOutput) ToDeploymentConditionPatchOutput() DeploymentConditionPatchOutput {
return o
}
func (o DeploymentConditionPatchOutput) ToDeploymentConditionPatchOutputWithContext(ctx context.Context) DeploymentConditionPatchOutput {
return o
}
// Last time the condition transitioned from one status to another.
func (o DeploymentConditionPatchOutput) LastTransitionTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentConditionPatch) *string { return v.LastTransitionTime }).(pulumi.StringPtrOutput)
}
// The last time this condition was updated.
func (o DeploymentConditionPatchOutput) LastUpdateTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentConditionPatch) *string { return v.LastUpdateTime }).(pulumi.StringPtrOutput)
}
// A human readable message indicating details about the transition.
func (o DeploymentConditionPatchOutput) Message() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentConditionPatch) *string { return v.Message }).(pulumi.StringPtrOutput)
}
// The reason for the condition's last transition.
func (o DeploymentConditionPatchOutput) Reason() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentConditionPatch) *string { return v.Reason }).(pulumi.StringPtrOutput)
}
// Status of the condition, one of True, False, Unknown.
func (o DeploymentConditionPatchOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentConditionPatch) *string { return v.Status }).(pulumi.StringPtrOutput)
}
// Type of deployment condition.
func (o DeploymentConditionPatchOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentConditionPatch) *string { return v.Type }).(pulumi.StringPtrOutput)
}
type DeploymentConditionPatchArrayOutput struct{ *pulumi.OutputState }
func (DeploymentConditionPatchArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DeploymentConditionPatch)(nil)).Elem()
}
func (o DeploymentConditionPatchArrayOutput) ToDeploymentConditionPatchArrayOutput() DeploymentConditionPatchArrayOutput {
return o
}
func (o DeploymentConditionPatchArrayOutput) ToDeploymentConditionPatchArrayOutputWithContext(ctx context.Context) DeploymentConditionPatchArrayOutput {
return o
}
func (o DeploymentConditionPatchArrayOutput) Index(i pulumi.IntInput) DeploymentConditionPatchOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DeploymentConditionPatch {
return vs[0].([]DeploymentConditionPatch)[vs[1].(int)]
}).(DeploymentConditionPatchOutput)
}
// DeploymentList is a list of Deployments.
type DeploymentListType 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 the list of Deployments.
Items []DeploymentType `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 list metadata.
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// DeploymentListTypeInput is an input type that accepts DeploymentListTypeArgs and DeploymentListTypeOutput values.
// You can construct a concrete instance of `DeploymentListTypeInput` via:
//
// DeploymentListTypeArgs{...}
type DeploymentListTypeInput interface {
pulumi.Input
ToDeploymentListTypeOutput() DeploymentListTypeOutput
ToDeploymentListTypeOutputWithContext(context.Context) DeploymentListTypeOutput
}
// DeploymentList is a list of Deployments.
type DeploymentListTypeArgs 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 the list of Deployments.
Items DeploymentTypeArrayInput `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 list metadata.
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (DeploymentListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentListType)(nil)).Elem()
}
func (i DeploymentListTypeArgs) ToDeploymentListTypeOutput() DeploymentListTypeOutput {
return i.ToDeploymentListTypeOutputWithContext(context.Background())
}
func (i DeploymentListTypeArgs) ToDeploymentListTypeOutputWithContext(ctx context.Context) DeploymentListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentListTypeOutput)
}
// DeploymentList is a list of Deployments.
type DeploymentListTypeOutput struct{ *pulumi.OutputState }
func (DeploymentListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentListType)(nil)).Elem()
}
func (o DeploymentListTypeOutput) ToDeploymentListTypeOutput() DeploymentListTypeOutput {
return o
}
func (o DeploymentListTypeOutput) ToDeploymentListTypeOutputWithContext(ctx context.Context) DeploymentListTypeOutput {
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 DeploymentListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Items is the list of Deployments.
func (o DeploymentListTypeOutput) Items() DeploymentTypeArrayOutput {
return o.ApplyT(func(v DeploymentListType) []DeploymentType { return v.Items }).(DeploymentTypeArrayOutput)
}
// 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 DeploymentListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard list metadata.
func (o DeploymentListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v DeploymentListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// Deployment enables declarative updates for Pods and ReplicaSets.
//
// This resource waits until its status is ready before registering success
// for create/update, and populating output properties from the current state of the resource.
// The following conditions are used to determine whether the resource creation has
// succeeded or failed:
//
// 1. The Deployment has begun to be updated by the Deployment controller. If the current
// generation of the Deployment is > 1, then this means that the current generation must
// be different from the generation reported by the last outputs.
// 2. There exists a ReplicaSet whose revision is equal to the current revision of the
// Deployment.
// 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status'
// member is set to 'True'.
// 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type
// 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is
// 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist,
// because it doesn't do a rollout (i.e., it simply creates the Deployment and
// corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'.
//
// If the Deployment has not reached a Ready state after 10 minutes, it will
// time out and mark the resource update as Failed. You can override the default timeout value
// by setting the 'customTimeouts' option on the resource.
type DeploymentPatchType 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 metadata.
Metadata *metav1.ObjectMetaPatch `pulumi:"metadata"`
// Specification of the desired behavior of the Deployment.
Spec *DeploymentSpecPatch `pulumi:"spec"`
// Most recently observed status of the Deployment.
Status *DeploymentStatusPatch `pulumi:"status"`
}
// DeploymentPatchTypeInput is an input type that accepts DeploymentPatchTypeArgs and DeploymentPatchTypeOutput values.
// You can construct a concrete instance of `DeploymentPatchTypeInput` via:
//
// DeploymentPatchTypeArgs{...}
type DeploymentPatchTypeInput interface {
pulumi.Input
ToDeploymentPatchTypeOutput() DeploymentPatchTypeOutput
ToDeploymentPatchTypeOutputWithContext(context.Context) DeploymentPatchTypeOutput
}
// Deployment enables declarative updates for Pods and ReplicaSets.
//
// This resource waits until its status is ready before registering success
// for create/update, and populating output properties from the current state of the resource.
// The following conditions are used to determine whether the resource creation has
// succeeded or failed:
//
// 1. The Deployment has begun to be updated by the Deployment controller. If the current
// generation of the Deployment is > 1, then this means that the current generation must
// be different from the generation reported by the last outputs.
// 2. There exists a ReplicaSet whose revision is equal to the current revision of the
// Deployment.
// 3. The Deployment's '.status.conditions' has a status of type 'Available' whose 'status'
// member is set to 'True'.
// 4. If the Deployment has generation > 1, then '.status.conditions' has a status of type
// 'Progressing', whose 'status' member is set to 'True', and whose 'reason' is
// 'NewReplicaSetAvailable'. For generation <= 1, this status field does not exist,
// because it doesn't do a rollout (i.e., it simply creates the Deployment and
// corresponding ReplicaSet), and therefore there is no rollout to mark as 'Progressing'.
//
// If the Deployment has not reached a Ready state after 10 minutes, it will
// time out and mark the resource update as Failed. You can override the default timeout value
// by setting the 'customTimeouts' option on the resource.
type DeploymentPatchTypeArgs 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 metadata.
Metadata metav1.ObjectMetaPatchPtrInput `pulumi:"metadata"`
// Specification of the desired behavior of the Deployment.
Spec DeploymentSpecPatchPtrInput `pulumi:"spec"`
// Most recently observed status of the Deployment.
Status DeploymentStatusPatchPtrInput `pulumi:"status"`
}
func (DeploymentPatchTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentPatchType)(nil)).Elem()
}
func (i DeploymentPatchTypeArgs) ToDeploymentPatchTypeOutput() DeploymentPatchTypeOutput {
return i.ToDeploymentPatchTypeOutputWithContext(context.Background())
}
func (i DeploymentPatchTypeArgs) ToDeploymentPatchTypeOutputWithContext(ctx context.Context) DeploymentPatchTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentPatchTypeOutput)
}
// Deployment enables declarative updates for Pods and ReplicaSets.
//
// This resource waits until its status is ready before registering success
// for create/update, and populating output properties from the current state of the resource.
// The following conditions are used to determine whether the resource creation has