/
pulumiTypes.go
2105 lines (1728 loc) · 121 KB
/
pulumiTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// *** WARNING: this file was generated by pulumigen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v1
import (
"context"
"reflect"
corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/core/v1"
metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v3/go/kubernetes/meta/v1"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
type CSIDriverType 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.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// Specification of the CSI Driver.
Spec CSIDriverSpec `pulumi:"spec"`
}
// CSIDriverTypeInput is an input type that accepts CSIDriverTypeArgs and CSIDriverTypeOutput values.
// You can construct a concrete instance of `CSIDriverTypeInput` via:
//
// CSIDriverTypeArgs{...}
type CSIDriverTypeInput interface {
pulumi.Input
ToCSIDriverTypeOutput() CSIDriverTypeOutput
ToCSIDriverTypeOutputWithContext(context.Context) CSIDriverTypeOutput
}
// CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
type CSIDriverTypeArgs 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.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// Specification of the CSI Driver.
Spec CSIDriverSpecInput `pulumi:"spec"`
}
func (CSIDriverTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSIDriverType)(nil)).Elem()
}
func (i CSIDriverTypeArgs) ToCSIDriverTypeOutput() CSIDriverTypeOutput {
return i.ToCSIDriverTypeOutputWithContext(context.Background())
}
func (i CSIDriverTypeArgs) ToCSIDriverTypeOutputWithContext(ctx context.Context) CSIDriverTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSIDriverTypeOutput)
}
// CSIDriverTypeArrayInput is an input type that accepts CSIDriverTypeArray and CSIDriverTypeArrayOutput values.
// You can construct a concrete instance of `CSIDriverTypeArrayInput` via:
//
// CSIDriverTypeArray{ CSIDriverTypeArgs{...} }
type CSIDriverTypeArrayInput interface {
pulumi.Input
ToCSIDriverTypeArrayOutput() CSIDriverTypeArrayOutput
ToCSIDriverTypeArrayOutputWithContext(context.Context) CSIDriverTypeArrayOutput
}
type CSIDriverTypeArray []CSIDriverTypeInput
func (CSIDriverTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CSIDriverType)(nil)).Elem()
}
func (i CSIDriverTypeArray) ToCSIDriverTypeArrayOutput() CSIDriverTypeArrayOutput {
return i.ToCSIDriverTypeArrayOutputWithContext(context.Background())
}
func (i CSIDriverTypeArray) ToCSIDriverTypeArrayOutputWithContext(ctx context.Context) CSIDriverTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSIDriverTypeArrayOutput)
}
// CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.
type CSIDriverTypeOutput struct{ *pulumi.OutputState }
func (CSIDriverTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSIDriverType)(nil)).Elem()
}
func (o CSIDriverTypeOutput) ToCSIDriverTypeOutput() CSIDriverTypeOutput {
return o
}
func (o CSIDriverTypeOutput) ToCSIDriverTypeOutputWithContext(ctx context.Context) CSIDriverTypeOutput {
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 CSIDriverTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSIDriverType) *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 CSIDriverTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSIDriverType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o CSIDriverTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v CSIDriverType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// Specification of the CSI Driver.
func (o CSIDriverTypeOutput) Spec() CSIDriverSpecOutput {
return o.ApplyT(func(v CSIDriverType) CSIDriverSpec { return v.Spec }).(CSIDriverSpecOutput)
}
type CSIDriverTypeArrayOutput struct{ *pulumi.OutputState }
func (CSIDriverTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CSIDriverType)(nil)).Elem()
}
func (o CSIDriverTypeArrayOutput) ToCSIDriverTypeArrayOutput() CSIDriverTypeArrayOutput {
return o
}
func (o CSIDriverTypeArrayOutput) ToCSIDriverTypeArrayOutputWithContext(ctx context.Context) CSIDriverTypeArrayOutput {
return o
}
func (o CSIDriverTypeArrayOutput) Index(i pulumi.IntInput) CSIDriverTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CSIDriverType {
return vs[0].([]CSIDriverType)[vs[1].(int)]
}).(CSIDriverTypeOutput)
}
// CSIDriverList is a collection of CSIDriver objects.
type CSIDriverListType 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 CSIDriver
Items []CSIDriverType `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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// CSIDriverListTypeInput is an input type that accepts CSIDriverListTypeArgs and CSIDriverListTypeOutput values.
// You can construct a concrete instance of `CSIDriverListTypeInput` via:
//
// CSIDriverListTypeArgs{...}
type CSIDriverListTypeInput interface {
pulumi.Input
ToCSIDriverListTypeOutput() CSIDriverListTypeOutput
ToCSIDriverListTypeOutputWithContext(context.Context) CSIDriverListTypeOutput
}
// CSIDriverList is a collection of CSIDriver objects.
type CSIDriverListTypeArgs 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 CSIDriver
Items CSIDriverTypeArrayInput `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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (CSIDriverListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSIDriverListType)(nil)).Elem()
}
func (i CSIDriverListTypeArgs) ToCSIDriverListTypeOutput() CSIDriverListTypeOutput {
return i.ToCSIDriverListTypeOutputWithContext(context.Background())
}
func (i CSIDriverListTypeArgs) ToCSIDriverListTypeOutputWithContext(ctx context.Context) CSIDriverListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSIDriverListTypeOutput)
}
// CSIDriverList is a collection of CSIDriver objects.
type CSIDriverListTypeOutput struct{ *pulumi.OutputState }
func (CSIDriverListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSIDriverListType)(nil)).Elem()
}
func (o CSIDriverListTypeOutput) ToCSIDriverListTypeOutput() CSIDriverListTypeOutput {
return o
}
func (o CSIDriverListTypeOutput) ToCSIDriverListTypeOutputWithContext(ctx context.Context) CSIDriverListTypeOutput {
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 CSIDriverListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSIDriverListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// items is the list of CSIDriver
func (o CSIDriverListTypeOutput) Items() CSIDriverTypeArrayOutput {
return o.ApplyT(func(v CSIDriverListType) []CSIDriverType { return v.Items }).(CSIDriverTypeArrayOutput)
}
// 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 CSIDriverListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSIDriverListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o CSIDriverListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v CSIDriverListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// CSIDriverSpec is the specification of a CSIDriver.
type CSIDriverSpec struct {
// attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
//
// This field is immutable.
AttachRequired *bool `pulumi:"attachRequired"`
// Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.
//
// This field is immutable.
//
// Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.
FsGroupPolicy *string `pulumi:"fsGroupPolicy"`
// If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
// defined by a CSIVolumeSource, otherwise "false"
//
// "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.
//
// This field is immutable.
PodInfoOnMount *bool `pulumi:"podInfoOnMount"`
// RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.
//
// Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.
RequiresRepublish *bool `pulumi:"requiresRepublish"`
// If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.
//
// The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.
//
// Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.
//
// This field was immutable in Kubernetes <= 1.22 and now is mutable.
//
// This is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false.
StorageCapacity *bool `pulumi:"storageCapacity"`
// TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": {
// "<audience>": {
// "token": <token>,
// "expirationTimestamp": <expiration timestamp in RFC3339>,
// },
// ...
// }
//
// Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.
TokenRequests []TokenRequest `pulumi:"tokenRequests"`
// volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.
//
// This field is immutable.
VolumeLifecycleModes []string `pulumi:"volumeLifecycleModes"`
}
// CSIDriverSpecInput is an input type that accepts CSIDriverSpecArgs and CSIDriverSpecOutput values.
// You can construct a concrete instance of `CSIDriverSpecInput` via:
//
// CSIDriverSpecArgs{...}
type CSIDriverSpecInput interface {
pulumi.Input
ToCSIDriverSpecOutput() CSIDriverSpecOutput
ToCSIDriverSpecOutputWithContext(context.Context) CSIDriverSpecOutput
}
// CSIDriverSpec is the specification of a CSIDriver.
type CSIDriverSpecArgs struct {
// attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
//
// This field is immutable.
AttachRequired pulumi.BoolPtrInput `pulumi:"attachRequired"`
// Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.
//
// This field is immutable.
//
// Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.
FsGroupPolicy pulumi.StringPtrInput `pulumi:"fsGroupPolicy"`
// If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
// defined by a CSIVolumeSource, otherwise "false"
//
// "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.
//
// This field is immutable.
PodInfoOnMount pulumi.BoolPtrInput `pulumi:"podInfoOnMount"`
// RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.
//
// Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.
RequiresRepublish pulumi.BoolPtrInput `pulumi:"requiresRepublish"`
// If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.
//
// The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.
//
// Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.
//
// This field was immutable in Kubernetes <= 1.22 and now is mutable.
//
// This is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false.
StorageCapacity pulumi.BoolPtrInput `pulumi:"storageCapacity"`
// TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": {
// "<audience>": {
// "token": <token>,
// "expirationTimestamp": <expiration timestamp in RFC3339>,
// },
// ...
// }
//
// Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.
TokenRequests TokenRequestArrayInput `pulumi:"tokenRequests"`
// volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.
//
// This field is immutable.
VolumeLifecycleModes pulumi.StringArrayInput `pulumi:"volumeLifecycleModes"`
}
func (CSIDriverSpecArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSIDriverSpec)(nil)).Elem()
}
func (i CSIDriverSpecArgs) ToCSIDriverSpecOutput() CSIDriverSpecOutput {
return i.ToCSIDriverSpecOutputWithContext(context.Background())
}
func (i CSIDriverSpecArgs) ToCSIDriverSpecOutputWithContext(ctx context.Context) CSIDriverSpecOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSIDriverSpecOutput)
}
// CSIDriverSpec is the specification of a CSIDriver.
type CSIDriverSpecOutput struct{ *pulumi.OutputState }
func (CSIDriverSpecOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSIDriverSpec)(nil)).Elem()
}
func (o CSIDriverSpecOutput) ToCSIDriverSpecOutput() CSIDriverSpecOutput {
return o
}
func (o CSIDriverSpecOutput) ToCSIDriverSpecOutputWithContext(ctx context.Context) CSIDriverSpecOutput {
return o
}
// attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.
//
// This field is immutable.
func (o CSIDriverSpecOutput) AttachRequired() pulumi.BoolPtrOutput {
return o.ApplyT(func(v CSIDriverSpec) *bool { return v.AttachRequired }).(pulumi.BoolPtrOutput)
}
// Defines if the underlying volume supports changing ownership and permission of the volume before being mounted. Refer to the specific FSGroupPolicy values for additional details.
//
// This field is immutable.
//
// Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce.
func (o CSIDriverSpecOutput) FsGroupPolicy() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSIDriverSpec) *string { return v.FsGroupPolicy }).(pulumi.StringPtrOutput)
}
// If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. "csi.storage.k8s.io/pod.name": pod.Name "csi.storage.k8s.io/pod.namespace": pod.Namespace "csi.storage.k8s.io/pod.uid": string(pod.UID) "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
// defined by a CSIVolumeSource, otherwise "false"
//
// "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode. Other drivers can leave pod info disabled and/or ignore this field. As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when deployed on such a cluster and the deployment determines which mode that is, for example via a command line parameter of the driver.
//
// This field is immutable.
func (o CSIDriverSpecOutput) PodInfoOnMount() pulumi.BoolPtrOutput {
return o.ApplyT(func(v CSIDriverSpec) *bool { return v.PodInfoOnMount }).(pulumi.BoolPtrOutput)
}
// RequiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.
//
// Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.
func (o CSIDriverSpecOutput) RequiresRepublish() pulumi.BoolPtrOutput {
return o.ApplyT(func(v CSIDriverSpec) *bool { return v.RequiresRepublish }).(pulumi.BoolPtrOutput)
}
// If set to true, storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage capacity that the driver deployment will report by creating CSIStorageCapacity objects with capacity information.
//
// The check can be enabled immediately when deploying a driver. In that case, provisioning new volumes with late binding will pause until the driver deployment has published some suitable CSIStorageCapacity object.
//
// Alternatively, the driver can be deployed with the field unset or false and it can be flipped later when storage capacity information has been published.
//
// This field was immutable in Kubernetes <= 1.22 and now is mutable.
//
// This is a beta field and only available when the CSIStorageCapacity feature is enabled. The default is false.
func (o CSIDriverSpecOutput) StorageCapacity() pulumi.BoolPtrOutput {
return o.ApplyT(func(v CSIDriverSpec) *bool { return v.StorageCapacity }).(pulumi.BoolPtrOutput)
}
// TokenRequests indicates the CSI driver needs pods' service account tokens it is mounting volume for to do necessary authentication. Kubelet will pass the tokens in VolumeContext in the CSI NodePublishVolume calls. The CSI driver should parse and validate the following VolumeContext: "csi.storage.k8s.io/serviceAccount.tokens": {
// "<audience>": {
// "token": <token>,
// "expirationTimestamp": <expiration timestamp in RFC3339>,
// },
// ...
// }
//
// Note: Audience in each TokenRequest should be different and at most one token is empty string. To receive a new token after expiry, RequiresRepublish can be used to trigger NodePublishVolume periodically.
func (o CSIDriverSpecOutput) TokenRequests() TokenRequestArrayOutput {
return o.ApplyT(func(v CSIDriverSpec) []TokenRequest { return v.TokenRequests }).(TokenRequestArrayOutput)
}
// volumeLifecycleModes defines what kind of volumes this CSI volume driver supports. The default if the list is empty is "Persistent", which is the usage defined by the CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism. The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod. A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume. For more information about implementing this mode, see https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html A driver can support one or more of these modes and more modes may be added in the future. This field is beta.
//
// This field is immutable.
func (o CSIDriverSpecOutput) VolumeLifecycleModes() pulumi.StringArrayOutput {
return o.ApplyT(func(v CSIDriverSpec) []string { return v.VolumeLifecycleModes }).(pulumi.StringArrayOutput)
}
// CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.
type CSINodeType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// metadata.name must be the Kubernetes node name.
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// spec is the specification of CSINode
Spec CSINodeSpec `pulumi:"spec"`
}
// CSINodeTypeInput is an input type that accepts CSINodeTypeArgs and CSINodeTypeOutput values.
// You can construct a concrete instance of `CSINodeTypeInput` via:
//
// CSINodeTypeArgs{...}
type CSINodeTypeInput interface {
pulumi.Input
ToCSINodeTypeOutput() CSINodeTypeOutput
ToCSINodeTypeOutputWithContext(context.Context) CSINodeTypeOutput
}
// CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.
type CSINodeTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// metadata.name must be the Kubernetes node name.
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// spec is the specification of CSINode
Spec CSINodeSpecInput `pulumi:"spec"`
}
func (CSINodeTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeType)(nil)).Elem()
}
func (i CSINodeTypeArgs) ToCSINodeTypeOutput() CSINodeTypeOutput {
return i.ToCSINodeTypeOutputWithContext(context.Background())
}
func (i CSINodeTypeArgs) ToCSINodeTypeOutputWithContext(ctx context.Context) CSINodeTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSINodeTypeOutput)
}
// CSINodeTypeArrayInput is an input type that accepts CSINodeTypeArray and CSINodeTypeArrayOutput values.
// You can construct a concrete instance of `CSINodeTypeArrayInput` via:
//
// CSINodeTypeArray{ CSINodeTypeArgs{...} }
type CSINodeTypeArrayInput interface {
pulumi.Input
ToCSINodeTypeArrayOutput() CSINodeTypeArrayOutput
ToCSINodeTypeArrayOutputWithContext(context.Context) CSINodeTypeArrayOutput
}
type CSINodeTypeArray []CSINodeTypeInput
func (CSINodeTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CSINodeType)(nil)).Elem()
}
func (i CSINodeTypeArray) ToCSINodeTypeArrayOutput() CSINodeTypeArrayOutput {
return i.ToCSINodeTypeArrayOutputWithContext(context.Background())
}
func (i CSINodeTypeArray) ToCSINodeTypeArrayOutputWithContext(ctx context.Context) CSINodeTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSINodeTypeArrayOutput)
}
// CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.
type CSINodeTypeOutput struct{ *pulumi.OutputState }
func (CSINodeTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeType)(nil)).Elem()
}
func (o CSINodeTypeOutput) ToCSINodeTypeOutput() CSINodeTypeOutput {
return o
}
func (o CSINodeTypeOutput) ToCSINodeTypeOutputWithContext(ctx context.Context) CSINodeTypeOutput {
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 CSINodeTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSINodeType) *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 CSINodeTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSINodeType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// metadata.name must be the Kubernetes node name.
func (o CSINodeTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v CSINodeType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// spec is the specification of CSINode
func (o CSINodeTypeOutput) Spec() CSINodeSpecOutput {
return o.ApplyT(func(v CSINodeType) CSINodeSpec { return v.Spec }).(CSINodeSpecOutput)
}
type CSINodeTypeArrayOutput struct{ *pulumi.OutputState }
func (CSINodeTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CSINodeType)(nil)).Elem()
}
func (o CSINodeTypeArrayOutput) ToCSINodeTypeArrayOutput() CSINodeTypeArrayOutput {
return o
}
func (o CSINodeTypeArrayOutput) ToCSINodeTypeArrayOutputWithContext(ctx context.Context) CSINodeTypeArrayOutput {
return o
}
func (o CSINodeTypeArrayOutput) Index(i pulumi.IntInput) CSINodeTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CSINodeType {
return vs[0].([]CSINodeType)[vs[1].(int)]
}).(CSINodeTypeOutput)
}
// CSINodeDriver holds information about the specification of one CSI driver installed on a node
type CSINodeDriver struct {
// allocatable represents the volume resources of a node that are available for scheduling. This field is beta.
Allocatable *VolumeNodeResources `pulumi:"allocatable"`
// This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
Name string `pulumi:"name"`
// nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.
NodeID string `pulumi:"nodeID"`
// topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.
TopologyKeys []string `pulumi:"topologyKeys"`
}
// CSINodeDriverInput is an input type that accepts CSINodeDriverArgs and CSINodeDriverOutput values.
// You can construct a concrete instance of `CSINodeDriverInput` via:
//
// CSINodeDriverArgs{...}
type CSINodeDriverInput interface {
pulumi.Input
ToCSINodeDriverOutput() CSINodeDriverOutput
ToCSINodeDriverOutputWithContext(context.Context) CSINodeDriverOutput
}
// CSINodeDriver holds information about the specification of one CSI driver installed on a node
type CSINodeDriverArgs struct {
// allocatable represents the volume resources of a node that are available for scheduling. This field is beta.
Allocatable VolumeNodeResourcesPtrInput `pulumi:"allocatable"`
// This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
Name pulumi.StringInput `pulumi:"name"`
// nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.
NodeID pulumi.StringInput `pulumi:"nodeID"`
// topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.
TopologyKeys pulumi.StringArrayInput `pulumi:"topologyKeys"`
}
func (CSINodeDriverArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeDriver)(nil)).Elem()
}
func (i CSINodeDriverArgs) ToCSINodeDriverOutput() CSINodeDriverOutput {
return i.ToCSINodeDriverOutputWithContext(context.Background())
}
func (i CSINodeDriverArgs) ToCSINodeDriverOutputWithContext(ctx context.Context) CSINodeDriverOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSINodeDriverOutput)
}
// CSINodeDriverArrayInput is an input type that accepts CSINodeDriverArray and CSINodeDriverArrayOutput values.
// You can construct a concrete instance of `CSINodeDriverArrayInput` via:
//
// CSINodeDriverArray{ CSINodeDriverArgs{...} }
type CSINodeDriverArrayInput interface {
pulumi.Input
ToCSINodeDriverArrayOutput() CSINodeDriverArrayOutput
ToCSINodeDriverArrayOutputWithContext(context.Context) CSINodeDriverArrayOutput
}
type CSINodeDriverArray []CSINodeDriverInput
func (CSINodeDriverArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]CSINodeDriver)(nil)).Elem()
}
func (i CSINodeDriverArray) ToCSINodeDriverArrayOutput() CSINodeDriverArrayOutput {
return i.ToCSINodeDriverArrayOutputWithContext(context.Background())
}
func (i CSINodeDriverArray) ToCSINodeDriverArrayOutputWithContext(ctx context.Context) CSINodeDriverArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSINodeDriverArrayOutput)
}
// CSINodeDriver holds information about the specification of one CSI driver installed on a node
type CSINodeDriverOutput struct{ *pulumi.OutputState }
func (CSINodeDriverOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeDriver)(nil)).Elem()
}
func (o CSINodeDriverOutput) ToCSINodeDriverOutput() CSINodeDriverOutput {
return o
}
func (o CSINodeDriverOutput) ToCSINodeDriverOutputWithContext(ctx context.Context) CSINodeDriverOutput {
return o
}
// allocatable represents the volume resources of a node that are available for scheduling. This field is beta.
func (o CSINodeDriverOutput) Allocatable() VolumeNodeResourcesPtrOutput {
return o.ApplyT(func(v CSINodeDriver) *VolumeNodeResources { return v.Allocatable }).(VolumeNodeResourcesPtrOutput)
}
// This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.
func (o CSINodeDriverOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v CSINodeDriver) string { return v.Name }).(pulumi.StringOutput)
}
// nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as "node1", but the storage system may refer to the same node as "nodeA". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. "nodeA" instead of "node1". This field is required.
func (o CSINodeDriverOutput) NodeID() pulumi.StringOutput {
return o.ApplyT(func(v CSINodeDriver) string { return v.NodeID }).(pulumi.StringOutput)
}
// topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. "company.com/zone", "company.com/region"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.
func (o CSINodeDriverOutput) TopologyKeys() pulumi.StringArrayOutput {
return o.ApplyT(func(v CSINodeDriver) []string { return v.TopologyKeys }).(pulumi.StringArrayOutput)
}
type CSINodeDriverArrayOutput struct{ *pulumi.OutputState }
func (CSINodeDriverArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]CSINodeDriver)(nil)).Elem()
}
func (o CSINodeDriverArrayOutput) ToCSINodeDriverArrayOutput() CSINodeDriverArrayOutput {
return o
}
func (o CSINodeDriverArrayOutput) ToCSINodeDriverArrayOutputWithContext(ctx context.Context) CSINodeDriverArrayOutput {
return o
}
func (o CSINodeDriverArrayOutput) Index(i pulumi.IntInput) CSINodeDriverOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) CSINodeDriver {
return vs[0].([]CSINodeDriver)[vs[1].(int)]
}).(CSINodeDriverOutput)
}
// CSINodeList is a collection of CSINode objects.
type CSINodeListType 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 CSINode
Items []CSINodeType `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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ListMeta `pulumi:"metadata"`
}
// CSINodeListTypeInput is an input type that accepts CSINodeListTypeArgs and CSINodeListTypeOutput values.
// You can construct a concrete instance of `CSINodeListTypeInput` via:
//
// CSINodeListTypeArgs{...}
type CSINodeListTypeInput interface {
pulumi.Input
ToCSINodeListTypeOutput() CSINodeListTypeOutput
ToCSINodeListTypeOutputWithContext(context.Context) CSINodeListTypeOutput
}
// CSINodeList is a collection of CSINode objects.
type CSINodeListTypeArgs 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 CSINode
Items CSINodeTypeArrayInput `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 More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ListMetaPtrInput `pulumi:"metadata"`
}
func (CSINodeListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeListType)(nil)).Elem()
}
func (i CSINodeListTypeArgs) ToCSINodeListTypeOutput() CSINodeListTypeOutput {
return i.ToCSINodeListTypeOutputWithContext(context.Background())
}
func (i CSINodeListTypeArgs) ToCSINodeListTypeOutputWithContext(ctx context.Context) CSINodeListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSINodeListTypeOutput)
}
// CSINodeList is a collection of CSINode objects.
type CSINodeListTypeOutput struct{ *pulumi.OutputState }
func (CSINodeListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeListType)(nil)).Elem()
}
func (o CSINodeListTypeOutput) ToCSINodeListTypeOutput() CSINodeListTypeOutput {
return o
}
func (o CSINodeListTypeOutput) ToCSINodeListTypeOutputWithContext(ctx context.Context) CSINodeListTypeOutput {
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 CSINodeListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSINodeListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// items is the list of CSINode
func (o CSINodeListTypeOutput) Items() CSINodeTypeArrayOutput {
return o.ApplyT(func(v CSINodeListType) []CSINodeType { return v.Items }).(CSINodeTypeArrayOutput)
}
// 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 CSINodeListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v CSINodeListType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o CSINodeListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v CSINodeListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// CSINodeSpec holds information about the specification of all CSI drivers installed on a node
type CSINodeSpec struct {
// drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
Drivers []CSINodeDriver `pulumi:"drivers"`
}
// CSINodeSpecInput is an input type that accepts CSINodeSpecArgs and CSINodeSpecOutput values.
// You can construct a concrete instance of `CSINodeSpecInput` via:
//
// CSINodeSpecArgs{...}
type CSINodeSpecInput interface {
pulumi.Input
ToCSINodeSpecOutput() CSINodeSpecOutput
ToCSINodeSpecOutputWithContext(context.Context) CSINodeSpecOutput
}
// CSINodeSpec holds information about the specification of all CSI drivers installed on a node
type CSINodeSpecArgs struct {
// drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
Drivers CSINodeDriverArrayInput `pulumi:"drivers"`
}
func (CSINodeSpecArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeSpec)(nil)).Elem()
}
func (i CSINodeSpecArgs) ToCSINodeSpecOutput() CSINodeSpecOutput {
return i.ToCSINodeSpecOutputWithContext(context.Background())
}
func (i CSINodeSpecArgs) ToCSINodeSpecOutputWithContext(ctx context.Context) CSINodeSpecOutput {
return pulumi.ToOutputWithContext(ctx, i).(CSINodeSpecOutput)
}
// CSINodeSpec holds information about the specification of all CSI drivers installed on a node
type CSINodeSpecOutput struct{ *pulumi.OutputState }
func (CSINodeSpecOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CSINodeSpec)(nil)).Elem()
}
func (o CSINodeSpecOutput) ToCSINodeSpecOutput() CSINodeSpecOutput {
return o
}
func (o CSINodeSpecOutput) ToCSINodeSpecOutputWithContext(ctx context.Context) CSINodeSpecOutput {
return o
}
// drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.
func (o CSINodeSpecOutput) Drivers() CSINodeDriverArrayOutput {
return o.ApplyT(func(v CSINodeSpec) []CSINodeDriver { return v.Drivers }).(CSINodeDriverArrayOutput)
}
// StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.
//
// StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
type StorageClassType struct {
// AllowVolumeExpansion shows whether the storage class allow volume expand
AllowVolumeExpansion *bool `pulumi:"allowVolumeExpansion"`
// Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
AllowedTopologies []corev1.TopologySelectorTerm `pulumi:"allowedTopologies"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind *string `pulumi:"kind"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata *metav1.ObjectMeta `pulumi:"metadata"`
// Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
MountOptions []string `pulumi:"mountOptions"`
// Parameters holds the parameters for the provisioner that should create volumes of this storage class.
Parameters map[string]string `pulumi:"parameters"`
// Provisioner indicates the type of the provisioner.
Provisioner string `pulumi:"provisioner"`
// Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
ReclaimPolicy *string `pulumi:"reclaimPolicy"`
// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
VolumeBindingMode *string `pulumi:"volumeBindingMode"`
}
// StorageClassTypeInput is an input type that accepts StorageClassTypeArgs and StorageClassTypeOutput values.
// You can construct a concrete instance of `StorageClassTypeInput` via:
//
// StorageClassTypeArgs{...}
type StorageClassTypeInput interface {
pulumi.Input
ToStorageClassTypeOutput() StorageClassTypeOutput
ToStorageClassTypeOutputWithContext(context.Context) StorageClassTypeOutput
}
// StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.
//
// StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
type StorageClassTypeArgs struct {
// AllowVolumeExpansion shows whether the storage class allow volume expand
AllowVolumeExpansion pulumi.BoolPtrInput `pulumi:"allowVolumeExpansion"`
// Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
AllowedTopologies corev1.TopologySelectorTermArrayInput `pulumi:"allowedTopologies"`
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
Kind pulumi.StringPtrInput `pulumi:"kind"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
Metadata metav1.ObjectMetaPtrInput `pulumi:"metadata"`
// Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
MountOptions pulumi.StringArrayInput `pulumi:"mountOptions"`
// Parameters holds the parameters for the provisioner that should create volumes of this storage class.
Parameters pulumi.StringMapInput `pulumi:"parameters"`
// Provisioner indicates the type of the provisioner.
Provisioner pulumi.StringInput `pulumi:"provisioner"`
// Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
ReclaimPolicy pulumi.StringPtrInput `pulumi:"reclaimPolicy"`
// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
VolumeBindingMode pulumi.StringPtrInput `pulumi:"volumeBindingMode"`
}
func (StorageClassTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*StorageClassType)(nil)).Elem()
}
func (i StorageClassTypeArgs) ToStorageClassTypeOutput() StorageClassTypeOutput {
return i.ToStorageClassTypeOutputWithContext(context.Background())
}
func (i StorageClassTypeArgs) ToStorageClassTypeOutputWithContext(ctx context.Context) StorageClassTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(StorageClassTypeOutput)
}
// StorageClassTypeArrayInput is an input type that accepts StorageClassTypeArray and StorageClassTypeArrayOutput values.
// You can construct a concrete instance of `StorageClassTypeArrayInput` via:
//
// StorageClassTypeArray{ StorageClassTypeArgs{...} }
type StorageClassTypeArrayInput interface {
pulumi.Input
ToStorageClassTypeArrayOutput() StorageClassTypeArrayOutput
ToStorageClassTypeArrayOutputWithContext(context.Context) StorageClassTypeArrayOutput
}
type StorageClassTypeArray []StorageClassTypeInput
func (StorageClassTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]StorageClassType)(nil)).Elem()
}
func (i StorageClassTypeArray) ToStorageClassTypeArrayOutput() StorageClassTypeArrayOutput {
return i.ToStorageClassTypeArrayOutputWithContext(context.Background())
}
func (i StorageClassTypeArray) ToStorageClassTypeArrayOutputWithContext(ctx context.Context) StorageClassTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(StorageClassTypeArrayOutput)
}
// StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.
//
// StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.
type StorageClassTypeOutput struct{ *pulumi.OutputState }
func (StorageClassTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*StorageClassType)(nil)).Elem()
}
func (o StorageClassTypeOutput) ToStorageClassTypeOutput() StorageClassTypeOutput {
return o
}
func (o StorageClassTypeOutput) ToStorageClassTypeOutputWithContext(ctx context.Context) StorageClassTypeOutput {
return o
}
// AllowVolumeExpansion shows whether the storage class allow volume expand
func (o StorageClassTypeOutput) AllowVolumeExpansion() pulumi.BoolPtrOutput {
return o.ApplyT(func(v StorageClassType) *bool { return v.AllowVolumeExpansion }).(pulumi.BoolPtrOutput)
}
// Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.
func (o StorageClassTypeOutput) AllowedTopologies() corev1.TopologySelectorTermArrayOutput {
return o.ApplyT(func(v StorageClassType) []corev1.TopologySelectorTerm { return v.AllowedTopologies }).(corev1.TopologySelectorTermArrayOutput)
}
// 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 StorageClassTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v StorageClassType) *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 StorageClassTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v StorageClassType) *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 StorageClassTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v StorageClassType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.
func (o StorageClassTypeOutput) MountOptions() pulumi.StringArrayOutput {
return o.ApplyT(func(v StorageClassType) []string { return v.MountOptions }).(pulumi.StringArrayOutput)
}
// Parameters holds the parameters for the provisioner that should create volumes of this storage class.
func (o StorageClassTypeOutput) Parameters() pulumi.StringMapOutput {
return o.ApplyT(func(v StorageClassType) map[string]string { return v.Parameters }).(pulumi.StringMapOutput)
}
// Provisioner indicates the type of the provisioner.
func (o StorageClassTypeOutput) Provisioner() pulumi.StringOutput {
return o.ApplyT(func(v StorageClassType) string { return v.Provisioner }).(pulumi.StringOutput)
}
// Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
func (o StorageClassTypeOutput) ReclaimPolicy() pulumi.StringPtrOutput {
return o.ApplyT(func(v StorageClassType) *string { return v.ReclaimPolicy }).(pulumi.StringPtrOutput)
}
// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.
func (o StorageClassTypeOutput) VolumeBindingMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v StorageClassType) *string { return v.VolumeBindingMode }).(pulumi.StringPtrOutput)
}
type StorageClassTypeArrayOutput struct{ *pulumi.OutputState }
func (StorageClassTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]StorageClassType)(nil)).Elem()
}
func (o StorageClassTypeArrayOutput) ToStorageClassTypeArrayOutput() StorageClassTypeArrayOutput {
return o
}
func (o StorageClassTypeArrayOutput) ToStorageClassTypeArrayOutputWithContext(ctx context.Context) StorageClassTypeArrayOutput {
return o
}
func (o StorageClassTypeArrayOutput) Index(i pulumi.IntInput) StorageClassTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) StorageClassType {
return vs[0].([]StorageClassType)[vs[1].(int)]