/
pulumiTypes.go
2888 lines (2282 loc) · 152 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! ***
// nolint: lll
package v1beta1
import (
"context"
"reflect"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/go/kubernetes/core/v1"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/go/pulumi"
)
// 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 map[string]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"`
}
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.MapInput `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.IntPtrInput `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)
}
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.MapOutput {
return o.ApplyT(func(v ControllerRevisionType) map[string]interface{} { return v.Data }).(pulumi.MapOutput)
}
// 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.IntPtrOutput {
return o.ApplyT(func(v ControllerRevisionType) *int { return v.Revision }).(pulumi.IntPtrOutput)
}
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"`
}
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)
}
// Deployment enables declarative updates for Pods and ReplicaSets.
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"`
}
type DeploymentTypeInput interface {
pulumi.Input
ToDeploymentTypeOutput() DeploymentTypeOutput
ToDeploymentTypeOutputWithContext(context.Context) DeploymentTypeOutput
}
// Deployment enables declarative updates for Pods and ReplicaSets.
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)
}
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.
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"`
}
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.StringPtrInput `pulumi:"status"`
// Type of deployment condition.
Type pulumi.StringPtrInput `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)
}
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.StringPtrOutput {
return o.ApplyT(func(v DeploymentCondition) *string { return v.Status }).(pulumi.StringPtrOutput)
}
// Type of deployment condition.
func (o DeploymentConditionOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentCondition) *string { return v.Type }).(pulumi.StringPtrOutput)
}
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)
}
// 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"`
}
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)
}
// DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.
type DeploymentRollback 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"`
// Required: This must match the Name of a deployment.
Name *string `pulumi:"name"`
// The config of this deployment rollback.
RollbackTo *RollbackConfig `pulumi:"rollbackTo"`
// The annotations to be updated to a deployment
UpdatedAnnotations map[string]string `pulumi:"updatedAnnotations"`
}
type DeploymentRollbackInput interface {
pulumi.Input
ToDeploymentRollbackOutput() DeploymentRollbackOutput
ToDeploymentRollbackOutputWithContext(context.Context) DeploymentRollbackOutput
}
// DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.
type DeploymentRollbackArgs 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"`
// Required: This must match the Name of a deployment.
Name pulumi.StringPtrInput `pulumi:"name"`
// The config of this deployment rollback.
RollbackTo RollbackConfigPtrInput `pulumi:"rollbackTo"`
// The annotations to be updated to a deployment
UpdatedAnnotations pulumi.StringMapInput `pulumi:"updatedAnnotations"`
}
func (DeploymentRollbackArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentRollback)(nil)).Elem()
}
func (i DeploymentRollbackArgs) ToDeploymentRollbackOutput() DeploymentRollbackOutput {
return i.ToDeploymentRollbackOutputWithContext(context.Background())
}
func (i DeploymentRollbackArgs) ToDeploymentRollbackOutputWithContext(ctx context.Context) DeploymentRollbackOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentRollbackOutput)
}
// DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.
type DeploymentRollbackOutput struct{ *pulumi.OutputState }
func (DeploymentRollbackOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentRollback)(nil)).Elem()
}
func (o DeploymentRollbackOutput) ToDeploymentRollbackOutput() DeploymentRollbackOutput {
return o
}
func (o DeploymentRollbackOutput) ToDeploymentRollbackOutputWithContext(ctx context.Context) DeploymentRollbackOutput {
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 DeploymentRollbackOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentRollback) *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 DeploymentRollbackOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentRollback) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Required: This must match the Name of a deployment.
func (o DeploymentRollbackOutput) Name() pulumi.StringPtrOutput {
return o.ApplyT(func(v DeploymentRollback) *string { return v.Name }).(pulumi.StringPtrOutput)
}
// The config of this deployment rollback.
func (o DeploymentRollbackOutput) RollbackTo() RollbackConfigPtrOutput {
return o.ApplyT(func(v DeploymentRollback) *RollbackConfig { return v.RollbackTo }).(RollbackConfigPtrOutput)
}
// The annotations to be updated to a deployment
func (o DeploymentRollbackOutput) UpdatedAnnotations() pulumi.StringMapOutput {
return o.ApplyT(func(v DeploymentRollback) map[string]string { return v.UpdatedAnnotations }).(pulumi.StringMapOutput)
}
// DeploymentSpec is the specification of the desired behavior of the Deployment.
type DeploymentSpec struct {
// Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
MinReadySeconds *int `pulumi:"minReadySeconds"`
// Indicates that the deployment is paused.
Paused *bool `pulumi:"paused"`
// The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.
ProgressDeadlineSeconds *int `pulumi:"progressDeadlineSeconds"`
// Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
Replicas *int `pulumi:"replicas"`
// The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.
RevisionHistoryLimit *int `pulumi:"revisionHistoryLimit"`
// DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.
RollbackTo *RollbackConfig `pulumi:"rollbackTo"`
// Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.
Selector *metav1.LabelSelector `pulumi:"selector"`
// The deployment strategy to use to replace existing pods with new ones.
Strategy *DeploymentStrategy `pulumi:"strategy"`
// Template describes the pods that will be created.
Template *corev1.PodTemplateSpec `pulumi:"template"`
}
type DeploymentSpecInput interface {
pulumi.Input
ToDeploymentSpecOutput() DeploymentSpecOutput
ToDeploymentSpecOutputWithContext(context.Context) DeploymentSpecOutput
}
// DeploymentSpec is the specification of the desired behavior of the Deployment.
type DeploymentSpecArgs struct {
// Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
MinReadySeconds pulumi.IntPtrInput `pulumi:"minReadySeconds"`
// Indicates that the deployment is paused.
Paused pulumi.BoolPtrInput `pulumi:"paused"`
// The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.
ProgressDeadlineSeconds pulumi.IntPtrInput `pulumi:"progressDeadlineSeconds"`
// Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
Replicas pulumi.IntPtrInput `pulumi:"replicas"`
// The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.
RevisionHistoryLimit pulumi.IntPtrInput `pulumi:"revisionHistoryLimit"`
// DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.
RollbackTo RollbackConfigPtrInput `pulumi:"rollbackTo"`
// Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.
Selector metav1.LabelSelectorPtrInput `pulumi:"selector"`
// The deployment strategy to use to replace existing pods with new ones.
Strategy DeploymentStrategyPtrInput `pulumi:"strategy"`
// Template describes the pods that will be created.
Template corev1.PodTemplateSpecPtrInput `pulumi:"template"`
}
func (DeploymentSpecArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentSpec)(nil)).Elem()
}
func (i DeploymentSpecArgs) ToDeploymentSpecOutput() DeploymentSpecOutput {
return i.ToDeploymentSpecOutputWithContext(context.Background())
}
func (i DeploymentSpecArgs) ToDeploymentSpecOutputWithContext(ctx context.Context) DeploymentSpecOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentSpecOutput)
}
func (i DeploymentSpecArgs) ToDeploymentSpecPtrOutput() DeploymentSpecPtrOutput {
return i.ToDeploymentSpecPtrOutputWithContext(context.Background())
}
func (i DeploymentSpecArgs) ToDeploymentSpecPtrOutputWithContext(ctx context.Context) DeploymentSpecPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentSpecOutput).ToDeploymentSpecPtrOutputWithContext(ctx)
}
type DeploymentSpecPtrInput interface {
pulumi.Input
ToDeploymentSpecPtrOutput() DeploymentSpecPtrOutput
ToDeploymentSpecPtrOutputWithContext(context.Context) DeploymentSpecPtrOutput
}
type deploymentSpecPtrType DeploymentSpecArgs
func DeploymentSpecPtr(v *DeploymentSpecArgs) DeploymentSpecPtrInput {
return (*deploymentSpecPtrType)(v)
}
func (*deploymentSpecPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DeploymentSpec)(nil)).Elem()
}
func (i *deploymentSpecPtrType) ToDeploymentSpecPtrOutput() DeploymentSpecPtrOutput {
return i.ToDeploymentSpecPtrOutputWithContext(context.Background())
}
func (i *deploymentSpecPtrType) ToDeploymentSpecPtrOutputWithContext(ctx context.Context) DeploymentSpecPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentSpecPtrOutput)
}
// DeploymentSpec is the specification of the desired behavior of the Deployment.
type DeploymentSpecOutput struct{ *pulumi.OutputState }
func (DeploymentSpecOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentSpec)(nil)).Elem()
}
func (o DeploymentSpecOutput) ToDeploymentSpecOutput() DeploymentSpecOutput {
return o
}
func (o DeploymentSpecOutput) ToDeploymentSpecOutputWithContext(ctx context.Context) DeploymentSpecOutput {
return o
}
func (o DeploymentSpecOutput) ToDeploymentSpecPtrOutput() DeploymentSpecPtrOutput {
return o.ToDeploymentSpecPtrOutputWithContext(context.Background())
}
func (o DeploymentSpecOutput) ToDeploymentSpecPtrOutputWithContext(ctx context.Context) DeploymentSpecPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *DeploymentSpec {
return &v
}).(DeploymentSpecPtrOutput)
}
// Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
func (o DeploymentSpecOutput) MinReadySeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.MinReadySeconds }).(pulumi.IntPtrOutput)
}
// Indicates that the deployment is paused.
func (o DeploymentSpecOutput) Paused() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *bool { return v.Paused }).(pulumi.BoolPtrOutput)
}
// The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.
func (o DeploymentSpecOutput) ProgressDeadlineSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.ProgressDeadlineSeconds }).(pulumi.IntPtrOutput)
}
// Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
func (o DeploymentSpecOutput) Replicas() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.Replicas }).(pulumi.IntPtrOutput)
}
// The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.
func (o DeploymentSpecOutput) RevisionHistoryLimit() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.RevisionHistoryLimit }).(pulumi.IntPtrOutput)
}
// DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.
func (o DeploymentSpecOutput) RollbackTo() RollbackConfigPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *RollbackConfig { return v.RollbackTo }).(RollbackConfigPtrOutput)
}
// Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.
func (o DeploymentSpecOutput) Selector() metav1.LabelSelectorPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *metav1.LabelSelector { return v.Selector }).(metav1.LabelSelectorPtrOutput)
}
// The deployment strategy to use to replace existing pods with new ones.
func (o DeploymentSpecOutput) Strategy() DeploymentStrategyPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *DeploymentStrategy { return v.Strategy }).(DeploymentStrategyPtrOutput)
}
// Template describes the pods that will be created.
func (o DeploymentSpecOutput) Template() corev1.PodTemplateSpecPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *corev1.PodTemplateSpec { return v.Template }).(corev1.PodTemplateSpecPtrOutput)
}
type DeploymentSpecPtrOutput struct{ *pulumi.OutputState }
func (DeploymentSpecPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DeploymentSpec)(nil)).Elem()
}
func (o DeploymentSpecPtrOutput) ToDeploymentSpecPtrOutput() DeploymentSpecPtrOutput {
return o
}
func (o DeploymentSpecPtrOutput) ToDeploymentSpecPtrOutputWithContext(ctx context.Context) DeploymentSpecPtrOutput {
return o
}
func (o DeploymentSpecPtrOutput) Elem() DeploymentSpecOutput {
return o.ApplyT(func(v *DeploymentSpec) DeploymentSpec { return *v }).(DeploymentSpecOutput)
}
// Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)
func (o DeploymentSpecPtrOutput) MinReadySeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.MinReadySeconds }).(pulumi.IntPtrOutput)
}
// Indicates that the deployment is paused.
func (o DeploymentSpecPtrOutput) Paused() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *bool { return v.Paused }).(pulumi.BoolPtrOutput)
}
// The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.
func (o DeploymentSpecPtrOutput) ProgressDeadlineSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.ProgressDeadlineSeconds }).(pulumi.IntPtrOutput)
}
// Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.
func (o DeploymentSpecPtrOutput) Replicas() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.Replicas }).(pulumi.IntPtrOutput)
}
// The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.
func (o DeploymentSpecPtrOutput) RevisionHistoryLimit() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *int { return v.RevisionHistoryLimit }).(pulumi.IntPtrOutput)
}
// DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.
func (o DeploymentSpecPtrOutput) RollbackTo() RollbackConfigPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *RollbackConfig { return v.RollbackTo }).(RollbackConfigPtrOutput)
}
// Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.
func (o DeploymentSpecPtrOutput) Selector() metav1.LabelSelectorPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *metav1.LabelSelector { return v.Selector }).(metav1.LabelSelectorPtrOutput)
}
// The deployment strategy to use to replace existing pods with new ones.
func (o DeploymentSpecPtrOutput) Strategy() DeploymentStrategyPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *DeploymentStrategy { return v.Strategy }).(DeploymentStrategyPtrOutput)
}
// Template describes the pods that will be created.
func (o DeploymentSpecPtrOutput) Template() corev1.PodTemplateSpecPtrOutput {
return o.ApplyT(func(v DeploymentSpec) *corev1.PodTemplateSpec { return v.Template }).(corev1.PodTemplateSpecPtrOutput)
}
// DeploymentStatus is the most recently observed status of the Deployment.
type DeploymentStatus struct {
// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
AvailableReplicas *int `pulumi:"availableReplicas"`
// Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.
CollisionCount *int `pulumi:"collisionCount"`
// Represents the latest available observations of a deployment's current state.
Conditions []DeploymentCondition `pulumi:"conditions"`
// The generation observed by the deployment controller.
ObservedGeneration *int `pulumi:"observedGeneration"`
// Total number of ready pods targeted by this deployment.
ReadyReplicas *int `pulumi:"readyReplicas"`
// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
Replicas *int `pulumi:"replicas"`
// Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
UnavailableReplicas *int `pulumi:"unavailableReplicas"`
// Total number of non-terminated pods targeted by this deployment that have the desired template spec.
UpdatedReplicas *int `pulumi:"updatedReplicas"`
}
type DeploymentStatusInput interface {
pulumi.Input
ToDeploymentStatusOutput() DeploymentStatusOutput
ToDeploymentStatusOutputWithContext(context.Context) DeploymentStatusOutput
}
// DeploymentStatus is the most recently observed status of the Deployment.
type DeploymentStatusArgs struct {
// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
AvailableReplicas pulumi.IntPtrInput `pulumi:"availableReplicas"`
// Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.
CollisionCount pulumi.IntPtrInput `pulumi:"collisionCount"`
// Represents the latest available observations of a deployment's current state.
Conditions DeploymentConditionArrayInput `pulumi:"conditions"`
// The generation observed by the deployment controller.
ObservedGeneration pulumi.IntPtrInput `pulumi:"observedGeneration"`
// Total number of ready pods targeted by this deployment.
ReadyReplicas pulumi.IntPtrInput `pulumi:"readyReplicas"`
// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
Replicas pulumi.IntPtrInput `pulumi:"replicas"`
// Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.
UnavailableReplicas pulumi.IntPtrInput `pulumi:"unavailableReplicas"`
// Total number of non-terminated pods targeted by this deployment that have the desired template spec.
UpdatedReplicas pulumi.IntPtrInput `pulumi:"updatedReplicas"`
}
func (DeploymentStatusArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentStatus)(nil)).Elem()
}
func (i DeploymentStatusArgs) ToDeploymentStatusOutput() DeploymentStatusOutput {
return i.ToDeploymentStatusOutputWithContext(context.Background())
}
func (i DeploymentStatusArgs) ToDeploymentStatusOutputWithContext(ctx context.Context) DeploymentStatusOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentStatusOutput)
}
func (i DeploymentStatusArgs) ToDeploymentStatusPtrOutput() DeploymentStatusPtrOutput {
return i.ToDeploymentStatusPtrOutputWithContext(context.Background())
}
func (i DeploymentStatusArgs) ToDeploymentStatusPtrOutputWithContext(ctx context.Context) DeploymentStatusPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentStatusOutput).ToDeploymentStatusPtrOutputWithContext(ctx)
}
type DeploymentStatusPtrInput interface {
pulumi.Input
ToDeploymentStatusPtrOutput() DeploymentStatusPtrOutput
ToDeploymentStatusPtrOutputWithContext(context.Context) DeploymentStatusPtrOutput
}
type deploymentStatusPtrType DeploymentStatusArgs
func DeploymentStatusPtr(v *DeploymentStatusArgs) DeploymentStatusPtrInput {
return (*deploymentStatusPtrType)(v)
}
func (*deploymentStatusPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DeploymentStatus)(nil)).Elem()
}
func (i *deploymentStatusPtrType) ToDeploymentStatusPtrOutput() DeploymentStatusPtrOutput {
return i.ToDeploymentStatusPtrOutputWithContext(context.Background())
}
func (i *deploymentStatusPtrType) ToDeploymentStatusPtrOutputWithContext(ctx context.Context) DeploymentStatusPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DeploymentStatusPtrOutput)
}
// DeploymentStatus is the most recently observed status of the Deployment.
type DeploymentStatusOutput struct{ *pulumi.OutputState }
func (DeploymentStatusOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DeploymentStatus)(nil)).Elem()
}
func (o DeploymentStatusOutput) ToDeploymentStatusOutput() DeploymentStatusOutput {
return o
}
func (o DeploymentStatusOutput) ToDeploymentStatusOutputWithContext(ctx context.Context) DeploymentStatusOutput {
return o
}
func (o DeploymentStatusOutput) ToDeploymentStatusPtrOutput() DeploymentStatusPtrOutput {
return o.ToDeploymentStatusPtrOutputWithContext(context.Background())
}
func (o DeploymentStatusOutput) ToDeploymentStatusPtrOutputWithContext(ctx context.Context) DeploymentStatusPtrOutput {
return o.ApplyT(func(v DeploymentStatus) *DeploymentStatus {
return &v
}).(DeploymentStatusPtrOutput)
}
// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
func (o DeploymentStatusOutput) AvailableReplicas() pulumi.IntPtrOutput {
return o.ApplyT(func(v DeploymentStatus) *int { return v.AvailableReplicas }).(pulumi.IntPtrOutput)