-
Notifications
You must be signed in to change notification settings - Fork 113
/
pulumiTypes.go
543 lines (436 loc) · 27.3 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
// *** 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"
)
// Overhead structure represents the resource overhead associated with running a pod.
type Overhead struct {
// PodFixed represents the fixed resource overhead associated with running a pod.
PodFixed map[string]string `pulumi:"podFixed"`
}
// OverheadInput is an input type that accepts OverheadArgs and OverheadOutput values.
// You can construct a concrete instance of `OverheadInput` via:
//
// OverheadArgs{...}
type OverheadInput interface {
pulumi.Input
ToOverheadOutput() OverheadOutput
ToOverheadOutputWithContext(context.Context) OverheadOutput
}
// Overhead structure represents the resource overhead associated with running a pod.
type OverheadArgs struct {
// PodFixed represents the fixed resource overhead associated with running a pod.
PodFixed pulumi.StringMapInput `pulumi:"podFixed"`
}
func (OverheadArgs) ElementType() reflect.Type {
return reflect.TypeOf((*Overhead)(nil)).Elem()
}
func (i OverheadArgs) ToOverheadOutput() OverheadOutput {
return i.ToOverheadOutputWithContext(context.Background())
}
func (i OverheadArgs) ToOverheadOutputWithContext(ctx context.Context) OverheadOutput {
return pulumi.ToOutputWithContext(ctx, i).(OverheadOutput)
}
func (i OverheadArgs) ToOverheadPtrOutput() OverheadPtrOutput {
return i.ToOverheadPtrOutputWithContext(context.Background())
}
func (i OverheadArgs) ToOverheadPtrOutputWithContext(ctx context.Context) OverheadPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(OverheadOutput).ToOverheadPtrOutputWithContext(ctx)
}
// OverheadPtrInput is an input type that accepts OverheadArgs, OverheadPtr and OverheadPtrOutput values.
// You can construct a concrete instance of `OverheadPtrInput` via:
//
// OverheadArgs{...}
//
// or:
//
// nil
type OverheadPtrInput interface {
pulumi.Input
ToOverheadPtrOutput() OverheadPtrOutput
ToOverheadPtrOutputWithContext(context.Context) OverheadPtrOutput
}
type overheadPtrType OverheadArgs
func OverheadPtr(v *OverheadArgs) OverheadPtrInput {
return (*overheadPtrType)(v)
}
func (*overheadPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**Overhead)(nil)).Elem()
}
func (i *overheadPtrType) ToOverheadPtrOutput() OverheadPtrOutput {
return i.ToOverheadPtrOutputWithContext(context.Background())
}
func (i *overheadPtrType) ToOverheadPtrOutputWithContext(ctx context.Context) OverheadPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(OverheadPtrOutput)
}
// Overhead structure represents the resource overhead associated with running a pod.
type OverheadOutput struct{ *pulumi.OutputState }
func (OverheadOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Overhead)(nil)).Elem()
}
func (o OverheadOutput) ToOverheadOutput() OverheadOutput {
return o
}
func (o OverheadOutput) ToOverheadOutputWithContext(ctx context.Context) OverheadOutput {
return o
}
func (o OverheadOutput) ToOverheadPtrOutput() OverheadPtrOutput {
return o.ToOverheadPtrOutputWithContext(context.Background())
}
func (o OverheadOutput) ToOverheadPtrOutputWithContext(ctx context.Context) OverheadPtrOutput {
return o.ApplyT(func(v Overhead) *Overhead {
return &v
}).(OverheadPtrOutput)
}
// PodFixed represents the fixed resource overhead associated with running a pod.
func (o OverheadOutput) PodFixed() pulumi.StringMapOutput {
return o.ApplyT(func(v Overhead) map[string]string { return v.PodFixed }).(pulumi.StringMapOutput)
}
type OverheadPtrOutput struct{ *pulumi.OutputState }
func (OverheadPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Overhead)(nil)).Elem()
}
func (o OverheadPtrOutput) ToOverheadPtrOutput() OverheadPtrOutput {
return o
}
func (o OverheadPtrOutput) ToOverheadPtrOutputWithContext(ctx context.Context) OverheadPtrOutput {
return o
}
func (o OverheadPtrOutput) Elem() OverheadOutput {
return o.ApplyT(func(v *Overhead) Overhead { return *v }).(OverheadOutput)
}
// PodFixed represents the fixed resource overhead associated with running a pod.
func (o OverheadPtrOutput) PodFixed() pulumi.StringMapOutput {
return o.ApplyT(func(v *Overhead) map[string]string {
if v == nil {
return nil
}
return v.PodFixed
}).(pulumi.StringMapOutput)
}
// RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
type RuntimeClassType 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"`
// Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
Handler string `pulumi:"handler"`
// 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.ObjectMeta `pulumi:"metadata"`
// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
// This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature.
Overhead *Overhead `pulumi:"overhead"`
// Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
Scheduling *Scheduling `pulumi:"scheduling"`
}
// RuntimeClassTypeInput is an input type that accepts RuntimeClassTypeArgs and RuntimeClassTypeOutput values.
// You can construct a concrete instance of `RuntimeClassTypeInput` via:
//
// RuntimeClassTypeArgs{...}
type RuntimeClassTypeInput interface {
pulumi.Input
ToRuntimeClassTypeOutput() RuntimeClassTypeOutput
ToRuntimeClassTypeOutputWithContext(context.Context) RuntimeClassTypeOutput
}
// RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
type RuntimeClassTypeArgs 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"`
// Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
Handler pulumi.StringInput `pulumi:"handler"`
// 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.ObjectMetaPtrInput `pulumi:"metadata"`
// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
// This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature.
Overhead OverheadPtrInput `pulumi:"overhead"`
// Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
Scheduling SchedulingPtrInput `pulumi:"scheduling"`
}
func (RuntimeClassTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*RuntimeClassType)(nil)).Elem()
}
func (i RuntimeClassTypeArgs) ToRuntimeClassTypeOutput() RuntimeClassTypeOutput {
return i.ToRuntimeClassTypeOutputWithContext(context.Background())
}
func (i RuntimeClassTypeArgs) ToRuntimeClassTypeOutputWithContext(ctx context.Context) RuntimeClassTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(RuntimeClassTypeOutput)
}
// RuntimeClassTypeArrayInput is an input type that accepts RuntimeClassTypeArray and RuntimeClassTypeArrayOutput values.
// You can construct a concrete instance of `RuntimeClassTypeArrayInput` via:
//
// RuntimeClassTypeArray{ RuntimeClassTypeArgs{...} }
type RuntimeClassTypeArrayInput interface {
pulumi.Input
ToRuntimeClassTypeArrayOutput() RuntimeClassTypeArrayOutput
ToRuntimeClassTypeArrayOutputWithContext(context.Context) RuntimeClassTypeArrayOutput
}
type RuntimeClassTypeArray []RuntimeClassTypeInput
func (RuntimeClassTypeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]RuntimeClassType)(nil)).Elem()
}
func (i RuntimeClassTypeArray) ToRuntimeClassTypeArrayOutput() RuntimeClassTypeArrayOutput {
return i.ToRuntimeClassTypeArrayOutputWithContext(context.Background())
}
func (i RuntimeClassTypeArray) ToRuntimeClassTypeArrayOutputWithContext(ctx context.Context) RuntimeClassTypeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(RuntimeClassTypeArrayOutput)
}
// RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/
type RuntimeClassTypeOutput struct{ *pulumi.OutputState }
func (RuntimeClassTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*RuntimeClassType)(nil)).Elem()
}
func (o RuntimeClassTypeOutput) ToRuntimeClassTypeOutput() RuntimeClassTypeOutput {
return o
}
func (o RuntimeClassTypeOutput) ToRuntimeClassTypeOutputWithContext(ctx context.Context) RuntimeClassTypeOutput {
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 RuntimeClassTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v RuntimeClassType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called "runc" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements, and is immutable.
func (o RuntimeClassTypeOutput) Handler() pulumi.StringOutput {
return o.ApplyT(func(v RuntimeClassType) string { return v.Handler }).(pulumi.StringOutput)
}
// 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 RuntimeClassTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v RuntimeClassType) *string { return v.Kind }).(pulumi.StringPtrOutput)
}
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
func (o RuntimeClassTypeOutput) Metadata() metav1.ObjectMetaPtrOutput {
return o.ApplyT(func(v RuntimeClassType) *metav1.ObjectMeta { return v.Metadata }).(metav1.ObjectMetaPtrOutput)
}
// Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. For more details, see
// https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
// This field is in beta starting v1.18 and is only honored by servers that enable the PodOverhead feature.
func (o RuntimeClassTypeOutput) Overhead() OverheadPtrOutput {
return o.ApplyT(func(v RuntimeClassType) *Overhead { return v.Overhead }).(OverheadPtrOutput)
}
// Scheduling holds the scheduling constraints to ensure that pods running with this RuntimeClass are scheduled to nodes that support it. If scheduling is nil, this RuntimeClass is assumed to be supported by all nodes.
func (o RuntimeClassTypeOutput) Scheduling() SchedulingPtrOutput {
return o.ApplyT(func(v RuntimeClassType) *Scheduling { return v.Scheduling }).(SchedulingPtrOutput)
}
type RuntimeClassTypeArrayOutput struct{ *pulumi.OutputState }
func (RuntimeClassTypeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]RuntimeClassType)(nil)).Elem()
}
func (o RuntimeClassTypeArrayOutput) ToRuntimeClassTypeArrayOutput() RuntimeClassTypeArrayOutput {
return o
}
func (o RuntimeClassTypeArrayOutput) ToRuntimeClassTypeArrayOutputWithContext(ctx context.Context) RuntimeClassTypeArrayOutput {
return o
}
func (o RuntimeClassTypeArrayOutput) Index(i pulumi.IntInput) RuntimeClassTypeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) RuntimeClassType {
return vs[0].([]RuntimeClassType)[vs[1].(int)]
}).(RuntimeClassTypeOutput)
}
// RuntimeClassList is a list of RuntimeClass objects.
type RuntimeClassListType struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion *string `pulumi:"apiVersion"`
// Items is a list of schema objects.
Items []RuntimeClassType `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"`
}
// RuntimeClassListTypeInput is an input type that accepts RuntimeClassListTypeArgs and RuntimeClassListTypeOutput values.
// You can construct a concrete instance of `RuntimeClassListTypeInput` via:
//
// RuntimeClassListTypeArgs{...}
type RuntimeClassListTypeInput interface {
pulumi.Input
ToRuntimeClassListTypeOutput() RuntimeClassListTypeOutput
ToRuntimeClassListTypeOutputWithContext(context.Context) RuntimeClassListTypeOutput
}
// RuntimeClassList is a list of RuntimeClass objects.
type RuntimeClassListTypeArgs struct {
// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
ApiVersion pulumi.StringPtrInput `pulumi:"apiVersion"`
// Items is a list of schema objects.
Items RuntimeClassTypeArrayInput `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 (RuntimeClassListTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*RuntimeClassListType)(nil)).Elem()
}
func (i RuntimeClassListTypeArgs) ToRuntimeClassListTypeOutput() RuntimeClassListTypeOutput {
return i.ToRuntimeClassListTypeOutputWithContext(context.Background())
}
func (i RuntimeClassListTypeArgs) ToRuntimeClassListTypeOutputWithContext(ctx context.Context) RuntimeClassListTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(RuntimeClassListTypeOutput)
}
// RuntimeClassList is a list of RuntimeClass objects.
type RuntimeClassListTypeOutput struct{ *pulumi.OutputState }
func (RuntimeClassListTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*RuntimeClassListType)(nil)).Elem()
}
func (o RuntimeClassListTypeOutput) ToRuntimeClassListTypeOutput() RuntimeClassListTypeOutput {
return o
}
func (o RuntimeClassListTypeOutput) ToRuntimeClassListTypeOutputWithContext(ctx context.Context) RuntimeClassListTypeOutput {
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 RuntimeClassListTypeOutput) ApiVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v RuntimeClassListType) *string { return v.ApiVersion }).(pulumi.StringPtrOutput)
}
// Items is a list of schema objects.
func (o RuntimeClassListTypeOutput) Items() RuntimeClassTypeArrayOutput {
return o.ApplyT(func(v RuntimeClassListType) []RuntimeClassType { return v.Items }).(RuntimeClassTypeArrayOutput)
}
// 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 RuntimeClassListTypeOutput) Kind() pulumi.StringPtrOutput {
return o.ApplyT(func(v RuntimeClassListType) *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 RuntimeClassListTypeOutput) Metadata() metav1.ListMetaPtrOutput {
return o.ApplyT(func(v RuntimeClassListType) *metav1.ListMeta { return v.Metadata }).(metav1.ListMetaPtrOutput)
}
// Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
type Scheduling struct {
// nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
NodeSelector map[string]string `pulumi:"nodeSelector"`
// tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
Tolerations []corev1.Toleration `pulumi:"tolerations"`
}
// SchedulingInput is an input type that accepts SchedulingArgs and SchedulingOutput values.
// You can construct a concrete instance of `SchedulingInput` via:
//
// SchedulingArgs{...}
type SchedulingInput interface {
pulumi.Input
ToSchedulingOutput() SchedulingOutput
ToSchedulingOutputWithContext(context.Context) SchedulingOutput
}
// Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
type SchedulingArgs struct {
// nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
NodeSelector pulumi.StringMapInput `pulumi:"nodeSelector"`
// tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
Tolerations corev1.TolerationArrayInput `pulumi:"tolerations"`
}
func (SchedulingArgs) ElementType() reflect.Type {
return reflect.TypeOf((*Scheduling)(nil)).Elem()
}
func (i SchedulingArgs) ToSchedulingOutput() SchedulingOutput {
return i.ToSchedulingOutputWithContext(context.Background())
}
func (i SchedulingArgs) ToSchedulingOutputWithContext(ctx context.Context) SchedulingOutput {
return pulumi.ToOutputWithContext(ctx, i).(SchedulingOutput)
}
func (i SchedulingArgs) ToSchedulingPtrOutput() SchedulingPtrOutput {
return i.ToSchedulingPtrOutputWithContext(context.Background())
}
func (i SchedulingArgs) ToSchedulingPtrOutputWithContext(ctx context.Context) SchedulingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(SchedulingOutput).ToSchedulingPtrOutputWithContext(ctx)
}
// SchedulingPtrInput is an input type that accepts SchedulingArgs, SchedulingPtr and SchedulingPtrOutput values.
// You can construct a concrete instance of `SchedulingPtrInput` via:
//
// SchedulingArgs{...}
//
// or:
//
// nil
type SchedulingPtrInput interface {
pulumi.Input
ToSchedulingPtrOutput() SchedulingPtrOutput
ToSchedulingPtrOutputWithContext(context.Context) SchedulingPtrOutput
}
type schedulingPtrType SchedulingArgs
func SchedulingPtr(v *SchedulingArgs) SchedulingPtrInput {
return (*schedulingPtrType)(v)
}
func (*schedulingPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**Scheduling)(nil)).Elem()
}
func (i *schedulingPtrType) ToSchedulingPtrOutput() SchedulingPtrOutput {
return i.ToSchedulingPtrOutputWithContext(context.Background())
}
func (i *schedulingPtrType) ToSchedulingPtrOutputWithContext(ctx context.Context) SchedulingPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(SchedulingPtrOutput)
}
// Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.
type SchedulingOutput struct{ *pulumi.OutputState }
func (SchedulingOutput) ElementType() reflect.Type {
return reflect.TypeOf((*Scheduling)(nil)).Elem()
}
func (o SchedulingOutput) ToSchedulingOutput() SchedulingOutput {
return o
}
func (o SchedulingOutput) ToSchedulingOutputWithContext(ctx context.Context) SchedulingOutput {
return o
}
func (o SchedulingOutput) ToSchedulingPtrOutput() SchedulingPtrOutput {
return o.ToSchedulingPtrOutputWithContext(context.Background())
}
func (o SchedulingOutput) ToSchedulingPtrOutputWithContext(ctx context.Context) SchedulingPtrOutput {
return o.ApplyT(func(v Scheduling) *Scheduling {
return &v
}).(SchedulingPtrOutput)
}
// nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
func (o SchedulingOutput) NodeSelector() pulumi.StringMapOutput {
return o.ApplyT(func(v Scheduling) map[string]string { return v.NodeSelector }).(pulumi.StringMapOutput)
}
// tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
func (o SchedulingOutput) Tolerations() corev1.TolerationArrayOutput {
return o.ApplyT(func(v Scheduling) []corev1.Toleration { return v.Tolerations }).(corev1.TolerationArrayOutput)
}
type SchedulingPtrOutput struct{ *pulumi.OutputState }
func (SchedulingPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Scheduling)(nil)).Elem()
}
func (o SchedulingPtrOutput) ToSchedulingPtrOutput() SchedulingPtrOutput {
return o
}
func (o SchedulingPtrOutput) ToSchedulingPtrOutputWithContext(ctx context.Context) SchedulingPtrOutput {
return o
}
func (o SchedulingPtrOutput) Elem() SchedulingOutput {
return o.ApplyT(func(v *Scheduling) Scheduling { return *v }).(SchedulingOutput)
}
// nodeSelector lists labels that must be present on nodes that support this RuntimeClass. Pods using this RuntimeClass can only be scheduled to a node matched by this selector. The RuntimeClass nodeSelector is merged with a pod's existing nodeSelector. Any conflicts will cause the pod to be rejected in admission.
func (o SchedulingPtrOutput) NodeSelector() pulumi.StringMapOutput {
return o.ApplyT(func(v *Scheduling) map[string]string {
if v == nil {
return nil
}
return v.NodeSelector
}).(pulumi.StringMapOutput)
}
// tolerations are appended (excluding duplicates) to pods running with this RuntimeClass during admission, effectively unioning the set of nodes tolerated by the pod and the RuntimeClass.
func (o SchedulingPtrOutput) Tolerations() corev1.TolerationArrayOutput {
return o.ApplyT(func(v *Scheduling) []corev1.Toleration {
if v == nil {
return nil
}
return v.Tolerations
}).(corev1.TolerationArrayOutput)
}
func init() {
pulumi.RegisterOutputType(OverheadOutput{})
pulumi.RegisterOutputType(OverheadPtrOutput{})
pulumi.RegisterOutputType(RuntimeClassTypeOutput{})
pulumi.RegisterOutputType(RuntimeClassTypeArrayOutput{})
pulumi.RegisterOutputType(RuntimeClassListTypeOutput{})
pulumi.RegisterOutputType(SchedulingOutput{})
pulumi.RegisterOutputType(SchedulingPtrOutput{})
}