pulumi-kubernetes 4.17.0__py3-none-any.whl → 4.17.0a1723228048__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-kubernetes might be problematic. Click here for more details.

Files changed (83) hide show
  1. pulumi_kubernetes/__init__.py +2 -42
  2. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +17 -18
  3. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +17 -18
  4. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +17 -18
  5. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +17 -18
  6. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +17 -18
  7. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +17 -18
  8. pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
  9. pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
  10. pulumi_kubernetes/apps/v1/_inputs.py +12 -12
  11. pulumi_kubernetes/apps/v1/outputs.py +8 -8
  12. pulumi_kubernetes/batch/v1/_inputs.py +27 -15
  13. pulumi_kubernetes/batch/v1/outputs.py +20 -12
  14. pulumi_kubernetes/coordination/__init__.py +0 -3
  15. pulumi_kubernetes/coordination/v1/_inputs.py +14 -94
  16. pulumi_kubernetes/coordination/v1/outputs.py +10 -62
  17. pulumi_kubernetes/core/v1/Service.py +22 -6
  18. pulumi_kubernetes/core/v1/ServicePatch.py +22 -6
  19. pulumi_kubernetes/core/v1/_inputs.py +206 -961
  20. pulumi_kubernetes/core/v1/outputs.py +163 -1038
  21. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +0 -2
  22. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +0 -2
  23. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +0 -2
  24. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +0 -2
  25. pulumi_kubernetes/networking/v1beta1/__init__.py +0 -6
  26. pulumi_kubernetes/networking/v1beta1/_inputs.py +0 -599
  27. pulumi_kubernetes/networking/v1beta1/outputs.py +0 -461
  28. pulumi_kubernetes/pulumi-plugin.json +1 -1
  29. pulumi_kubernetes/resource/__init__.py +0 -3
  30. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
  31. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
  32. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
  33. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
  34. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +0 -2
  35. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +0 -2
  36. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
  37. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
  38. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
  39. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
  40. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +0 -2
  41. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +0 -2
  42. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +0 -2
  43. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +0 -2
  44. pulumi_kubernetes/storage/v1beta1/__init__.py +0 -3
  45. pulumi_kubernetes/storage/v1beta1/_inputs.py +0 -123
  46. pulumi_kubernetes/storage/v1beta1/outputs.py +0 -94
  47. pulumi_kubernetes/yaml/yaml.py +0 -102
  48. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/METADATA +1 -1
  49. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/RECORD +51 -83
  50. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/WHEEL +1 -1
  51. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +0 -214
  52. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +0 -215
  53. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +0 -226
  54. pulumi_kubernetes/coordination/v1alpha1/__init__.py +0 -12
  55. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +0 -418
  56. pulumi_kubernetes/coordination/v1alpha1/outputs.py +0 -334
  57. pulumi_kubernetes/networking/v1beta1/IPAddress.py +0 -216
  58. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +0 -215
  59. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +0 -228
  60. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +0 -226
  61. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +0 -215
  62. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +0 -238
  63. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +0 -236
  64. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +0 -216
  65. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +0 -247
  66. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +0 -231
  67. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +0 -215
  68. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +0 -242
  69. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +0 -232
  70. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +0 -216
  71. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +0 -243
  72. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +0 -229
  73. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +0 -215
  74. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +0 -240
  75. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +0 -246
  76. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +0 -257
  77. pulumi_kubernetes/resource/v1alpha3/__init__.py +0 -23
  78. pulumi_kubernetes/resource/v1alpha3/_inputs.py +0 -3924
  79. pulumi_kubernetes/resource/v1alpha3/outputs.py +0 -3327
  80. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +0 -252
  81. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +0 -215
  82. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +0 -263
  83. {pulumi_kubernetes-4.17.0.dist-info → pulumi_kubernetes-4.17.0a1723228048.dist-info}/top_level.txt +0 -0
@@ -1,3924 +0,0 @@
1
- # coding=utf-8
2
- # *** WARNING: this file was generated by pulumigen. ***
3
- # *** Do not edit by hand unless you're certain you know what you are doing! ***
4
-
5
- import copy
6
- import warnings
7
- import sys
8
- import pulumi
9
- import pulumi.runtime
10
- from typing import Any, Mapping, Optional, Sequence, Union, overload
11
- if sys.version_info >= (3, 11):
12
- from typing import NotRequired, TypedDict, TypeAlias
13
- else:
14
- from typing_extensions import NotRequired, TypedDict, TypeAlias
15
- from ... import _utilities
16
- from ... import core as _core
17
- from ... import meta as _meta
18
-
19
- __all__ = [
20
- 'AllocationResultArgs',
21
- 'AllocationResultArgsDict',
22
- 'BasicDevicePatchArgs',
23
- 'BasicDevicePatchArgsDict',
24
- 'BasicDeviceArgs',
25
- 'BasicDeviceArgsDict',
26
- 'CELDeviceSelectorPatchArgs',
27
- 'CELDeviceSelectorPatchArgsDict',
28
- 'CELDeviceSelectorArgs',
29
- 'CELDeviceSelectorArgsDict',
30
- 'DeviceAllocationConfigurationArgs',
31
- 'DeviceAllocationConfigurationArgsDict',
32
- 'DeviceAllocationResultArgs',
33
- 'DeviceAllocationResultArgsDict',
34
- 'DeviceAttributeArgs',
35
- 'DeviceAttributeArgsDict',
36
- 'DeviceClaimConfigurationPatchArgs',
37
- 'DeviceClaimConfigurationPatchArgsDict',
38
- 'DeviceClaimConfigurationArgs',
39
- 'DeviceClaimConfigurationArgsDict',
40
- 'DeviceClaimPatchArgs',
41
- 'DeviceClaimPatchArgsDict',
42
- 'DeviceClaimArgs',
43
- 'DeviceClaimArgsDict',
44
- 'DeviceClassConfigurationPatchArgs',
45
- 'DeviceClassConfigurationPatchArgsDict',
46
- 'DeviceClassConfigurationArgs',
47
- 'DeviceClassConfigurationArgsDict',
48
- 'DeviceClassSpecPatchArgs',
49
- 'DeviceClassSpecPatchArgsDict',
50
- 'DeviceClassSpecArgs',
51
- 'DeviceClassSpecArgsDict',
52
- 'DeviceClassArgs',
53
- 'DeviceClassArgsDict',
54
- 'DeviceConstraintPatchArgs',
55
- 'DeviceConstraintPatchArgsDict',
56
- 'DeviceConstraintArgs',
57
- 'DeviceConstraintArgsDict',
58
- 'DevicePatchArgs',
59
- 'DevicePatchArgsDict',
60
- 'DeviceRequestAllocationResultArgs',
61
- 'DeviceRequestAllocationResultArgsDict',
62
- 'DeviceRequestPatchArgs',
63
- 'DeviceRequestPatchArgsDict',
64
- 'DeviceRequestArgs',
65
- 'DeviceRequestArgsDict',
66
- 'DeviceSelectorPatchArgs',
67
- 'DeviceSelectorPatchArgsDict',
68
- 'DeviceSelectorArgs',
69
- 'DeviceSelectorArgsDict',
70
- 'DeviceArgs',
71
- 'DeviceArgsDict',
72
- 'OpaqueDeviceConfigurationPatchArgs',
73
- 'OpaqueDeviceConfigurationPatchArgsDict',
74
- 'OpaqueDeviceConfigurationArgs',
75
- 'OpaqueDeviceConfigurationArgsDict',
76
- 'PodSchedulingContextSpecPatchArgs',
77
- 'PodSchedulingContextSpecPatchArgsDict',
78
- 'PodSchedulingContextSpecArgs',
79
- 'PodSchedulingContextSpecArgsDict',
80
- 'PodSchedulingContextStatusArgs',
81
- 'PodSchedulingContextStatusArgsDict',
82
- 'PodSchedulingContextArgs',
83
- 'PodSchedulingContextArgsDict',
84
- 'ResourceClaimConsumerReferenceArgs',
85
- 'ResourceClaimConsumerReferenceArgsDict',
86
- 'ResourceClaimSchedulingStatusArgs',
87
- 'ResourceClaimSchedulingStatusArgsDict',
88
- 'ResourceClaimSpecPatchArgs',
89
- 'ResourceClaimSpecPatchArgsDict',
90
- 'ResourceClaimSpecArgs',
91
- 'ResourceClaimSpecArgsDict',
92
- 'ResourceClaimStatusArgs',
93
- 'ResourceClaimStatusArgsDict',
94
- 'ResourceClaimTemplateSpecPatchArgs',
95
- 'ResourceClaimTemplateSpecPatchArgsDict',
96
- 'ResourceClaimTemplateSpecArgs',
97
- 'ResourceClaimTemplateSpecArgsDict',
98
- 'ResourceClaimTemplateArgs',
99
- 'ResourceClaimTemplateArgsDict',
100
- 'ResourceClaimArgs',
101
- 'ResourceClaimArgsDict',
102
- 'ResourcePoolPatchArgs',
103
- 'ResourcePoolPatchArgsDict',
104
- 'ResourcePoolArgs',
105
- 'ResourcePoolArgsDict',
106
- 'ResourceSliceSpecPatchArgs',
107
- 'ResourceSliceSpecPatchArgsDict',
108
- 'ResourceSliceSpecArgs',
109
- 'ResourceSliceSpecArgsDict',
110
- ]
111
-
112
- MYPY = False
113
-
114
- if not MYPY:
115
- class AllocationResultArgsDict(TypedDict):
116
- """
117
- AllocationResult contains attributes of an allocated resource.
118
- """
119
- controller: NotRequired[pulumi.Input[str]]
120
- """
121
- Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
122
-
123
- A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
124
-
125
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
126
- """
127
- devices: NotRequired[pulumi.Input['DeviceAllocationResultArgsDict']]
128
- """
129
- Devices is the result of allocating devices.
130
- """
131
- node_selector: NotRequired[pulumi.Input['_core.v1.NodeSelectorArgsDict']]
132
- """
133
- NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
134
- """
135
- elif False:
136
- AllocationResultArgsDict: TypeAlias = Mapping[str, Any]
137
-
138
- @pulumi.input_type
139
- class AllocationResultArgs:
140
- def __init__(__self__, *,
141
- controller: Optional[pulumi.Input[str]] = None,
142
- devices: Optional[pulumi.Input['DeviceAllocationResultArgs']] = None,
143
- node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None):
144
- """
145
- AllocationResult contains attributes of an allocated resource.
146
- :param pulumi.Input[str] controller: Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
147
-
148
- A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
149
-
150
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
151
- :param pulumi.Input['DeviceAllocationResultArgs'] devices: Devices is the result of allocating devices.
152
- :param pulumi.Input['_core.v1.NodeSelectorArgs'] node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
153
- """
154
- if controller is not None:
155
- pulumi.set(__self__, "controller", controller)
156
- if devices is not None:
157
- pulumi.set(__self__, "devices", devices)
158
- if node_selector is not None:
159
- pulumi.set(__self__, "node_selector", node_selector)
160
-
161
- @property
162
- @pulumi.getter
163
- def controller(self) -> Optional[pulumi.Input[str]]:
164
- """
165
- Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
166
-
167
- A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
168
-
169
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
170
- """
171
- return pulumi.get(self, "controller")
172
-
173
- @controller.setter
174
- def controller(self, value: Optional[pulumi.Input[str]]):
175
- pulumi.set(self, "controller", value)
176
-
177
- @property
178
- @pulumi.getter
179
- def devices(self) -> Optional[pulumi.Input['DeviceAllocationResultArgs']]:
180
- """
181
- Devices is the result of allocating devices.
182
- """
183
- return pulumi.get(self, "devices")
184
-
185
- @devices.setter
186
- def devices(self, value: Optional[pulumi.Input['DeviceAllocationResultArgs']]):
187
- pulumi.set(self, "devices", value)
188
-
189
- @property
190
- @pulumi.getter(name="nodeSelector")
191
- def node_selector(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]:
192
- """
193
- NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
194
- """
195
- return pulumi.get(self, "node_selector")
196
-
197
- @node_selector.setter
198
- def node_selector(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]):
199
- pulumi.set(self, "node_selector", value)
200
-
201
-
202
- if not MYPY:
203
- class BasicDevicePatchArgsDict(TypedDict):
204
- """
205
- BasicDevice defines one device instance.
206
- """
207
- attributes: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgsDict']]]]
208
- """
209
- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
210
-
211
- The maximum number of attributes and capacities combined is 32.
212
- """
213
- capacity: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
214
- """
215
- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
216
-
217
- The maximum number of attributes and capacities combined is 32.
218
- """
219
- elif False:
220
- BasicDevicePatchArgsDict: TypeAlias = Mapping[str, Any]
221
-
222
- @pulumi.input_type
223
- class BasicDevicePatchArgs:
224
- def __init__(__self__, *,
225
- attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]] = None,
226
- capacity: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
227
- """
228
- BasicDevice defines one device instance.
229
- :param pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
230
-
231
- The maximum number of attributes and capacities combined is 32.
232
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
233
-
234
- The maximum number of attributes and capacities combined is 32.
235
- """
236
- if attributes is not None:
237
- pulumi.set(__self__, "attributes", attributes)
238
- if capacity is not None:
239
- pulumi.set(__self__, "capacity", capacity)
240
-
241
- @property
242
- @pulumi.getter
243
- def attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]:
244
- """
245
- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
246
-
247
- The maximum number of attributes and capacities combined is 32.
248
- """
249
- return pulumi.get(self, "attributes")
250
-
251
- @attributes.setter
252
- def attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]):
253
- pulumi.set(self, "attributes", value)
254
-
255
- @property
256
- @pulumi.getter
257
- def capacity(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
258
- """
259
- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
260
-
261
- The maximum number of attributes and capacities combined is 32.
262
- """
263
- return pulumi.get(self, "capacity")
264
-
265
- @capacity.setter
266
- def capacity(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
267
- pulumi.set(self, "capacity", value)
268
-
269
-
270
- if not MYPY:
271
- class BasicDeviceArgsDict(TypedDict):
272
- """
273
- BasicDevice defines one device instance.
274
- """
275
- attributes: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgsDict']]]]
276
- """
277
- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
278
-
279
- The maximum number of attributes and capacities combined is 32.
280
- """
281
- capacity: NotRequired[pulumi.Input[Mapping[str, pulumi.Input[str]]]]
282
- """
283
- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
284
-
285
- The maximum number of attributes and capacities combined is 32.
286
- """
287
- elif False:
288
- BasicDeviceArgsDict: TypeAlias = Mapping[str, Any]
289
-
290
- @pulumi.input_type
291
- class BasicDeviceArgs:
292
- def __init__(__self__, *,
293
- attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]] = None,
294
- capacity: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
295
- """
296
- BasicDevice defines one device instance.
297
- :param pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
298
-
299
- The maximum number of attributes and capacities combined is 32.
300
- :param pulumi.Input[Mapping[str, pulumi.Input[str]]] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
301
-
302
- The maximum number of attributes and capacities combined is 32.
303
- """
304
- if attributes is not None:
305
- pulumi.set(__self__, "attributes", attributes)
306
- if capacity is not None:
307
- pulumi.set(__self__, "capacity", capacity)
308
-
309
- @property
310
- @pulumi.getter
311
- def attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]:
312
- """
313
- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
314
-
315
- The maximum number of attributes and capacities combined is 32.
316
- """
317
- return pulumi.get(self, "attributes")
318
-
319
- @attributes.setter
320
- def attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]):
321
- pulumi.set(self, "attributes", value)
322
-
323
- @property
324
- @pulumi.getter
325
- def capacity(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
326
- """
327
- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
328
-
329
- The maximum number of attributes and capacities combined is 32.
330
- """
331
- return pulumi.get(self, "capacity")
332
-
333
- @capacity.setter
334
- def capacity(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
335
- pulumi.set(self, "capacity", value)
336
-
337
-
338
- if not MYPY:
339
- class CELDeviceSelectorPatchArgsDict(TypedDict):
340
- """
341
- CELDeviceSelector contains a CEL expression for selecting a device.
342
- """
343
- expression: NotRequired[pulumi.Input[str]]
344
- """
345
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
346
-
347
- The expression's input is an object named "device", which carries the following properties:
348
- - driver (string): the name of the driver which defines this device.
349
- - attributes (map[string]object): the device's attributes, grouped by prefix
350
- (e.g. device.attributes["dra.example.com"] evaluates to an object with all
351
- of the attributes which were prefixed by "dra.example.com".
352
- - capacity (map[string]object): the device's capacities, grouped by prefix.
353
-
354
- Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
355
-
356
- device.driver
357
- device.attributes["dra.example.com"].model
358
- device.attributes["ext.example.com"].family
359
- device.capacity["dra.example.com"].modules
360
-
361
- The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
362
-
363
- The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
364
-
365
- If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
366
-
367
- A robust expression should check for the existence of attributes before referencing them.
368
-
369
- For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
370
-
371
- cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
372
- """
373
- elif False:
374
- CELDeviceSelectorPatchArgsDict: TypeAlias = Mapping[str, Any]
375
-
376
- @pulumi.input_type
377
- class CELDeviceSelectorPatchArgs:
378
- def __init__(__self__, *,
379
- expression: Optional[pulumi.Input[str]] = None):
380
- """
381
- CELDeviceSelector contains a CEL expression for selecting a device.
382
- :param pulumi.Input[str] expression: Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
383
-
384
- The expression's input is an object named "device", which carries the following properties:
385
- - driver (string): the name of the driver which defines this device.
386
- - attributes (map[string]object): the device's attributes, grouped by prefix
387
- (e.g. device.attributes["dra.example.com"] evaluates to an object with all
388
- of the attributes which were prefixed by "dra.example.com".
389
- - capacity (map[string]object): the device's capacities, grouped by prefix.
390
-
391
- Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
392
-
393
- device.driver
394
- device.attributes["dra.example.com"].model
395
- device.attributes["ext.example.com"].family
396
- device.capacity["dra.example.com"].modules
397
-
398
- The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
399
-
400
- The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
401
-
402
- If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
403
-
404
- A robust expression should check for the existence of attributes before referencing them.
405
-
406
- For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
407
-
408
- cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
409
- """
410
- if expression is not None:
411
- pulumi.set(__self__, "expression", expression)
412
-
413
- @property
414
- @pulumi.getter
415
- def expression(self) -> Optional[pulumi.Input[str]]:
416
- """
417
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
418
-
419
- The expression's input is an object named "device", which carries the following properties:
420
- - driver (string): the name of the driver which defines this device.
421
- - attributes (map[string]object): the device's attributes, grouped by prefix
422
- (e.g. device.attributes["dra.example.com"] evaluates to an object with all
423
- of the attributes which were prefixed by "dra.example.com".
424
- - capacity (map[string]object): the device's capacities, grouped by prefix.
425
-
426
- Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
427
-
428
- device.driver
429
- device.attributes["dra.example.com"].model
430
- device.attributes["ext.example.com"].family
431
- device.capacity["dra.example.com"].modules
432
-
433
- The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
434
-
435
- The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
436
-
437
- If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
438
-
439
- A robust expression should check for the existence of attributes before referencing them.
440
-
441
- For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
442
-
443
- cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
444
- """
445
- return pulumi.get(self, "expression")
446
-
447
- @expression.setter
448
- def expression(self, value: Optional[pulumi.Input[str]]):
449
- pulumi.set(self, "expression", value)
450
-
451
-
452
- if not MYPY:
453
- class CELDeviceSelectorArgsDict(TypedDict):
454
- """
455
- CELDeviceSelector contains a CEL expression for selecting a device.
456
- """
457
- expression: pulumi.Input[str]
458
- """
459
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
460
-
461
- The expression's input is an object named "device", which carries the following properties:
462
- - driver (string): the name of the driver which defines this device.
463
- - attributes (map[string]object): the device's attributes, grouped by prefix
464
- (e.g. device.attributes["dra.example.com"] evaluates to an object with all
465
- of the attributes which were prefixed by "dra.example.com".
466
- - capacity (map[string]object): the device's capacities, grouped by prefix.
467
-
468
- Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
469
-
470
- device.driver
471
- device.attributes["dra.example.com"].model
472
- device.attributes["ext.example.com"].family
473
- device.capacity["dra.example.com"].modules
474
-
475
- The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
476
-
477
- The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
478
-
479
- If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
480
-
481
- A robust expression should check for the existence of attributes before referencing them.
482
-
483
- For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
484
-
485
- cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
486
- """
487
- elif False:
488
- CELDeviceSelectorArgsDict: TypeAlias = Mapping[str, Any]
489
-
490
- @pulumi.input_type
491
- class CELDeviceSelectorArgs:
492
- def __init__(__self__, *,
493
- expression: pulumi.Input[str]):
494
- """
495
- CELDeviceSelector contains a CEL expression for selecting a device.
496
- :param pulumi.Input[str] expression: Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
497
-
498
- The expression's input is an object named "device", which carries the following properties:
499
- - driver (string): the name of the driver which defines this device.
500
- - attributes (map[string]object): the device's attributes, grouped by prefix
501
- (e.g. device.attributes["dra.example.com"] evaluates to an object with all
502
- of the attributes which were prefixed by "dra.example.com".
503
- - capacity (map[string]object): the device's capacities, grouped by prefix.
504
-
505
- Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
506
-
507
- device.driver
508
- device.attributes["dra.example.com"].model
509
- device.attributes["ext.example.com"].family
510
- device.capacity["dra.example.com"].modules
511
-
512
- The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
513
-
514
- The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
515
-
516
- If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
517
-
518
- A robust expression should check for the existence of attributes before referencing them.
519
-
520
- For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
521
-
522
- cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
523
- """
524
- pulumi.set(__self__, "expression", expression)
525
-
526
- @property
527
- @pulumi.getter
528
- def expression(self) -> pulumi.Input[str]:
529
- """
530
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
531
-
532
- The expression's input is an object named "device", which carries the following properties:
533
- - driver (string): the name of the driver which defines this device.
534
- - attributes (map[string]object): the device's attributes, grouped by prefix
535
- (e.g. device.attributes["dra.example.com"] evaluates to an object with all
536
- of the attributes which were prefixed by "dra.example.com".
537
- - capacity (map[string]object): the device's capacities, grouped by prefix.
538
-
539
- Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
540
-
541
- device.driver
542
- device.attributes["dra.example.com"].model
543
- device.attributes["ext.example.com"].family
544
- device.capacity["dra.example.com"].modules
545
-
546
- The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
547
-
548
- The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
549
-
550
- If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
551
-
552
- A robust expression should check for the existence of attributes before referencing them.
553
-
554
- For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
555
-
556
- cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
557
- """
558
- return pulumi.get(self, "expression")
559
-
560
- @expression.setter
561
- def expression(self, value: pulumi.Input[str]):
562
- pulumi.set(self, "expression", value)
563
-
564
-
565
- if not MYPY:
566
- class DeviceAllocationConfigurationArgsDict(TypedDict):
567
- """
568
- DeviceAllocationConfiguration gets embedded in an AllocationResult.
569
- """
570
- source: pulumi.Input[str]
571
- """
572
- Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
573
- """
574
- opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationArgsDict']]
575
- """
576
- Opaque provides driver-specific configuration parameters.
577
- """
578
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
579
- """
580
- Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
581
- """
582
- elif False:
583
- DeviceAllocationConfigurationArgsDict: TypeAlias = Mapping[str, Any]
584
-
585
- @pulumi.input_type
586
- class DeviceAllocationConfigurationArgs:
587
- def __init__(__self__, *,
588
- source: pulumi.Input[str],
589
- opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']] = None,
590
- requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
591
- """
592
- DeviceAllocationConfiguration gets embedded in an AllocationResult.
593
- :param pulumi.Input[str] source: Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
594
- :param pulumi.Input['OpaqueDeviceConfigurationArgs'] opaque: Opaque provides driver-specific configuration parameters.
595
- :param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
596
- """
597
- pulumi.set(__self__, "source", source)
598
- if opaque is not None:
599
- pulumi.set(__self__, "opaque", opaque)
600
- if requests is not None:
601
- pulumi.set(__self__, "requests", requests)
602
-
603
- @property
604
- @pulumi.getter
605
- def source(self) -> pulumi.Input[str]:
606
- """
607
- Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
608
- """
609
- return pulumi.get(self, "source")
610
-
611
- @source.setter
612
- def source(self, value: pulumi.Input[str]):
613
- pulumi.set(self, "source", value)
614
-
615
- @property
616
- @pulumi.getter
617
- def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]:
618
- """
619
- Opaque provides driver-specific configuration parameters.
620
- """
621
- return pulumi.get(self, "opaque")
622
-
623
- @opaque.setter
624
- def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]):
625
- pulumi.set(self, "opaque", value)
626
-
627
- @property
628
- @pulumi.getter
629
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
630
- """
631
- Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
632
- """
633
- return pulumi.get(self, "requests")
634
-
635
- @requests.setter
636
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
637
- pulumi.set(self, "requests", value)
638
-
639
-
640
- if not MYPY:
641
- class DeviceAllocationResultArgsDict(TypedDict):
642
- """
643
- DeviceAllocationResult is the result of allocating devices.
644
- """
645
- config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgsDict']]]]
646
- """
647
- This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
648
-
649
- This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
650
- """
651
- results: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgsDict']]]]
652
- """
653
- Results lists all allocated devices.
654
- """
655
- elif False:
656
- DeviceAllocationResultArgsDict: TypeAlias = Mapping[str, Any]
657
-
658
- @pulumi.input_type
659
- class DeviceAllocationResultArgs:
660
- def __init__(__self__, *,
661
- config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]]] = None,
662
- results: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]]] = None):
663
- """
664
- DeviceAllocationResult is the result of allocating devices.
665
- :param pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]] config: This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
666
-
667
- This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
668
- :param pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]] results: Results lists all allocated devices.
669
- """
670
- if config is not None:
671
- pulumi.set(__self__, "config", config)
672
- if results is not None:
673
- pulumi.set(__self__, "results", results)
674
-
675
- @property
676
- @pulumi.getter
677
- def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]]]:
678
- """
679
- This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
680
-
681
- This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
682
- """
683
- return pulumi.get(self, "config")
684
-
685
- @config.setter
686
- def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]]]):
687
- pulumi.set(self, "config", value)
688
-
689
- @property
690
- @pulumi.getter
691
- def results(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]]]:
692
- """
693
- Results lists all allocated devices.
694
- """
695
- return pulumi.get(self, "results")
696
-
697
- @results.setter
698
- def results(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]]]):
699
- pulumi.set(self, "results", value)
700
-
701
-
702
- if not MYPY:
703
- class DeviceAttributeArgsDict(TypedDict):
704
- """
705
- DeviceAttribute must have exactly one field set.
706
- """
707
- bool: NotRequired[pulumi.Input[bool]]
708
- """
709
- BoolValue is a true/false value.
710
- """
711
- int: NotRequired[pulumi.Input[int]]
712
- """
713
- IntValue is a number.
714
- """
715
- string: NotRequired[pulumi.Input[str]]
716
- """
717
- StringValue is a string. Must not be longer than 64 characters.
718
- """
719
- version: NotRequired[pulumi.Input[str]]
720
- """
721
- VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
722
- """
723
- elif False:
724
- DeviceAttributeArgsDict: TypeAlias = Mapping[str, Any]
725
-
726
- @pulumi.input_type
727
- class DeviceAttributeArgs:
728
- def __init__(__self__, *,
729
- bool: Optional[pulumi.Input[bool]] = None,
730
- int: Optional[pulumi.Input[int]] = None,
731
- string: Optional[pulumi.Input[str]] = None,
732
- version: Optional[pulumi.Input[str]] = None):
733
- """
734
- DeviceAttribute must have exactly one field set.
735
- :param pulumi.Input[bool] bool: BoolValue is a true/false value.
736
- :param pulumi.Input[int] int: IntValue is a number.
737
- :param pulumi.Input[str] string: StringValue is a string. Must not be longer than 64 characters.
738
- :param pulumi.Input[str] version: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
739
- """
740
- if bool is not None:
741
- pulumi.set(__self__, "bool", bool)
742
- if int is not None:
743
- pulumi.set(__self__, "int", int)
744
- if string is not None:
745
- pulumi.set(__self__, "string", string)
746
- if version is not None:
747
- pulumi.set(__self__, "version", version)
748
-
749
- @property
750
- @pulumi.getter
751
- def bool(self) -> Optional[pulumi.Input[bool]]:
752
- """
753
- BoolValue is a true/false value.
754
- """
755
- return pulumi.get(self, "bool")
756
-
757
- @bool.setter
758
- def bool(self, value: Optional[pulumi.Input[bool]]):
759
- pulumi.set(self, "bool", value)
760
-
761
- @property
762
- @pulumi.getter
763
- def int(self) -> Optional[pulumi.Input[int]]:
764
- """
765
- IntValue is a number.
766
- """
767
- return pulumi.get(self, "int")
768
-
769
- @int.setter
770
- def int(self, value: Optional[pulumi.Input[int]]):
771
- pulumi.set(self, "int", value)
772
-
773
- @property
774
- @pulumi.getter
775
- def string(self) -> Optional[pulumi.Input[str]]:
776
- """
777
- StringValue is a string. Must not be longer than 64 characters.
778
- """
779
- return pulumi.get(self, "string")
780
-
781
- @string.setter
782
- def string(self, value: Optional[pulumi.Input[str]]):
783
- pulumi.set(self, "string", value)
784
-
785
- @property
786
- @pulumi.getter
787
- def version(self) -> Optional[pulumi.Input[str]]:
788
- """
789
- VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
790
- """
791
- return pulumi.get(self, "version")
792
-
793
- @version.setter
794
- def version(self, value: Optional[pulumi.Input[str]]):
795
- pulumi.set(self, "version", value)
796
-
797
-
798
- if not MYPY:
799
- class DeviceClaimConfigurationPatchArgsDict(TypedDict):
800
- """
801
- DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
802
- """
803
- opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationPatchArgsDict']]
804
- """
805
- Opaque provides driver-specific configuration parameters.
806
- """
807
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
808
- """
809
- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
810
- """
811
- elif False:
812
- DeviceClaimConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
813
-
814
- @pulumi.input_type
815
- class DeviceClaimConfigurationPatchArgs:
816
- def __init__(__self__, *,
817
- opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']] = None,
818
- requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
819
- """
820
- DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
821
- :param pulumi.Input['OpaqueDeviceConfigurationPatchArgs'] opaque: Opaque provides driver-specific configuration parameters.
822
- :param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
823
- """
824
- if opaque is not None:
825
- pulumi.set(__self__, "opaque", opaque)
826
- if requests is not None:
827
- pulumi.set(__self__, "requests", requests)
828
-
829
- @property
830
- @pulumi.getter
831
- def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]:
832
- """
833
- Opaque provides driver-specific configuration parameters.
834
- """
835
- return pulumi.get(self, "opaque")
836
-
837
- @opaque.setter
838
- def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]):
839
- pulumi.set(self, "opaque", value)
840
-
841
- @property
842
- @pulumi.getter
843
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
844
- """
845
- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
846
- """
847
- return pulumi.get(self, "requests")
848
-
849
- @requests.setter
850
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
851
- pulumi.set(self, "requests", value)
852
-
853
-
854
- if not MYPY:
855
- class DeviceClaimConfigurationArgsDict(TypedDict):
856
- """
857
- DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
858
- """
859
- opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationArgsDict']]
860
- """
861
- Opaque provides driver-specific configuration parameters.
862
- """
863
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
864
- """
865
- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
866
- """
867
- elif False:
868
- DeviceClaimConfigurationArgsDict: TypeAlias = Mapping[str, Any]
869
-
870
- @pulumi.input_type
871
- class DeviceClaimConfigurationArgs:
872
- def __init__(__self__, *,
873
- opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']] = None,
874
- requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
875
- """
876
- DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
877
- :param pulumi.Input['OpaqueDeviceConfigurationArgs'] opaque: Opaque provides driver-specific configuration parameters.
878
- :param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
879
- """
880
- if opaque is not None:
881
- pulumi.set(__self__, "opaque", opaque)
882
- if requests is not None:
883
- pulumi.set(__self__, "requests", requests)
884
-
885
- @property
886
- @pulumi.getter
887
- def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]:
888
- """
889
- Opaque provides driver-specific configuration parameters.
890
- """
891
- return pulumi.get(self, "opaque")
892
-
893
- @opaque.setter
894
- def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]):
895
- pulumi.set(self, "opaque", value)
896
-
897
- @property
898
- @pulumi.getter
899
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
900
- """
901
- Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
902
- """
903
- return pulumi.get(self, "requests")
904
-
905
- @requests.setter
906
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
907
- pulumi.set(self, "requests", value)
908
-
909
-
910
- if not MYPY:
911
- class DeviceClaimPatchArgsDict(TypedDict):
912
- """
913
- DeviceClaim defines how to request devices with a ResourceClaim.
914
- """
915
- config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgsDict']]]]
916
- """
917
- This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
918
- """
919
- constraints: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgsDict']]]]
920
- """
921
- These constraints must be satisfied by the set of devices that get allocated for the claim.
922
- """
923
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgsDict']]]]
924
- """
925
- Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
926
- """
927
- elif False:
928
- DeviceClaimPatchArgsDict: TypeAlias = Mapping[str, Any]
929
-
930
- @pulumi.input_type
931
- class DeviceClaimPatchArgs:
932
- def __init__(__self__, *,
933
- config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]]] = None,
934
- constraints: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]]] = None,
935
- requests: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]]] = None):
936
- """
937
- DeviceClaim defines how to request devices with a ResourceClaim.
938
- :param pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
939
- :param pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
940
- :param pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
941
- """
942
- if config is not None:
943
- pulumi.set(__self__, "config", config)
944
- if constraints is not None:
945
- pulumi.set(__self__, "constraints", constraints)
946
- if requests is not None:
947
- pulumi.set(__self__, "requests", requests)
948
-
949
- @property
950
- @pulumi.getter
951
- def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]]]:
952
- """
953
- This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
954
- """
955
- return pulumi.get(self, "config")
956
-
957
- @config.setter
958
- def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]]]):
959
- pulumi.set(self, "config", value)
960
-
961
- @property
962
- @pulumi.getter
963
- def constraints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]]]:
964
- """
965
- These constraints must be satisfied by the set of devices that get allocated for the claim.
966
- """
967
- return pulumi.get(self, "constraints")
968
-
969
- @constraints.setter
970
- def constraints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]]]):
971
- pulumi.set(self, "constraints", value)
972
-
973
- @property
974
- @pulumi.getter
975
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]]]:
976
- """
977
- Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
978
- """
979
- return pulumi.get(self, "requests")
980
-
981
- @requests.setter
982
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]]]):
983
- pulumi.set(self, "requests", value)
984
-
985
-
986
- if not MYPY:
987
- class DeviceClaimArgsDict(TypedDict):
988
- """
989
- DeviceClaim defines how to request devices with a ResourceClaim.
990
- """
991
- config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgsDict']]]]
992
- """
993
- This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
994
- """
995
- constraints: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgsDict']]]]
996
- """
997
- These constraints must be satisfied by the set of devices that get allocated for the claim.
998
- """
999
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgsDict']]]]
1000
- """
1001
- Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1002
- """
1003
- elif False:
1004
- DeviceClaimArgsDict: TypeAlias = Mapping[str, Any]
1005
-
1006
- @pulumi.input_type
1007
- class DeviceClaimArgs:
1008
- def __init__(__self__, *,
1009
- config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]]] = None,
1010
- constraints: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]]] = None,
1011
- requests: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]]] = None):
1012
- """
1013
- DeviceClaim defines how to request devices with a ResourceClaim.
1014
- :param pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1015
- :param pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
1016
- :param pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1017
- """
1018
- if config is not None:
1019
- pulumi.set(__self__, "config", config)
1020
- if constraints is not None:
1021
- pulumi.set(__self__, "constraints", constraints)
1022
- if requests is not None:
1023
- pulumi.set(__self__, "requests", requests)
1024
-
1025
- @property
1026
- @pulumi.getter
1027
- def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]]]:
1028
- """
1029
- This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1030
- """
1031
- return pulumi.get(self, "config")
1032
-
1033
- @config.setter
1034
- def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]]]):
1035
- pulumi.set(self, "config", value)
1036
-
1037
- @property
1038
- @pulumi.getter
1039
- def constraints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]]]:
1040
- """
1041
- These constraints must be satisfied by the set of devices that get allocated for the claim.
1042
- """
1043
- return pulumi.get(self, "constraints")
1044
-
1045
- @constraints.setter
1046
- def constraints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]]]):
1047
- pulumi.set(self, "constraints", value)
1048
-
1049
- @property
1050
- @pulumi.getter
1051
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]]]:
1052
- """
1053
- Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1054
- """
1055
- return pulumi.get(self, "requests")
1056
-
1057
- @requests.setter
1058
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]]]):
1059
- pulumi.set(self, "requests", value)
1060
-
1061
-
1062
- if not MYPY:
1063
- class DeviceClassConfigurationPatchArgsDict(TypedDict):
1064
- """
1065
- DeviceClassConfiguration is used in DeviceClass.
1066
- """
1067
- opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationPatchArgsDict']]
1068
- """
1069
- Opaque provides driver-specific configuration parameters.
1070
- """
1071
- elif False:
1072
- DeviceClassConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
1073
-
1074
- @pulumi.input_type
1075
- class DeviceClassConfigurationPatchArgs:
1076
- def __init__(__self__, *,
1077
- opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']] = None):
1078
- """
1079
- DeviceClassConfiguration is used in DeviceClass.
1080
- :param pulumi.Input['OpaqueDeviceConfigurationPatchArgs'] opaque: Opaque provides driver-specific configuration parameters.
1081
- """
1082
- if opaque is not None:
1083
- pulumi.set(__self__, "opaque", opaque)
1084
-
1085
- @property
1086
- @pulumi.getter
1087
- def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]:
1088
- """
1089
- Opaque provides driver-specific configuration parameters.
1090
- """
1091
- return pulumi.get(self, "opaque")
1092
-
1093
- @opaque.setter
1094
- def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]):
1095
- pulumi.set(self, "opaque", value)
1096
-
1097
-
1098
- if not MYPY:
1099
- class DeviceClassConfigurationArgsDict(TypedDict):
1100
- """
1101
- DeviceClassConfiguration is used in DeviceClass.
1102
- """
1103
- opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationArgsDict']]
1104
- """
1105
- Opaque provides driver-specific configuration parameters.
1106
- """
1107
- elif False:
1108
- DeviceClassConfigurationArgsDict: TypeAlias = Mapping[str, Any]
1109
-
1110
- @pulumi.input_type
1111
- class DeviceClassConfigurationArgs:
1112
- def __init__(__self__, *,
1113
- opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']] = None):
1114
- """
1115
- DeviceClassConfiguration is used in DeviceClass.
1116
- :param pulumi.Input['OpaqueDeviceConfigurationArgs'] opaque: Opaque provides driver-specific configuration parameters.
1117
- """
1118
- if opaque is not None:
1119
- pulumi.set(__self__, "opaque", opaque)
1120
-
1121
- @property
1122
- @pulumi.getter
1123
- def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]:
1124
- """
1125
- Opaque provides driver-specific configuration parameters.
1126
- """
1127
- return pulumi.get(self, "opaque")
1128
-
1129
- @opaque.setter
1130
- def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]):
1131
- pulumi.set(self, "opaque", value)
1132
-
1133
-
1134
- if not MYPY:
1135
- class DeviceClassSpecPatchArgsDict(TypedDict):
1136
- """
1137
- DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1138
- """
1139
- config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgsDict']]]]
1140
- """
1141
- Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1142
-
1143
- They are passed to the driver, but are not considered while allocating the claim.
1144
- """
1145
- selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgsDict']]]]
1146
- """
1147
- Each selector must be satisfied by a device which is claimed via this class.
1148
- """
1149
- suitable_nodes: NotRequired[pulumi.Input['_core.v1.NodeSelectorPatchArgsDict']]
1150
- """
1151
- Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
1152
-
1153
- Setting this field is optional. If unset, all Nodes are candidates.
1154
-
1155
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
1156
- """
1157
- elif False:
1158
- DeviceClassSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
1159
-
1160
- @pulumi.input_type
1161
- class DeviceClassSpecPatchArgs:
1162
- def __init__(__self__, *,
1163
- config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]]] = None,
1164
- selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]] = None,
1165
- suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']] = None):
1166
- """
1167
- DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1168
- :param pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]] config: Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1169
-
1170
- They are passed to the driver, but are not considered while allocating the claim.
1171
- :param pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]] selectors: Each selector must be satisfied by a device which is claimed via this class.
1172
- :param pulumi.Input['_core.v1.NodeSelectorPatchArgs'] suitable_nodes: Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
1173
-
1174
- Setting this field is optional. If unset, all Nodes are candidates.
1175
-
1176
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
1177
- """
1178
- if config is not None:
1179
- pulumi.set(__self__, "config", config)
1180
- if selectors is not None:
1181
- pulumi.set(__self__, "selectors", selectors)
1182
- if suitable_nodes is not None:
1183
- pulumi.set(__self__, "suitable_nodes", suitable_nodes)
1184
-
1185
- @property
1186
- @pulumi.getter
1187
- def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]]]:
1188
- """
1189
- Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1190
-
1191
- They are passed to the driver, but are not considered while allocating the claim.
1192
- """
1193
- return pulumi.get(self, "config")
1194
-
1195
- @config.setter
1196
- def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]]]):
1197
- pulumi.set(self, "config", value)
1198
-
1199
- @property
1200
- @pulumi.getter
1201
- def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]:
1202
- """
1203
- Each selector must be satisfied by a device which is claimed via this class.
1204
- """
1205
- return pulumi.get(self, "selectors")
1206
-
1207
- @selectors.setter
1208
- def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]):
1209
- pulumi.set(self, "selectors", value)
1210
-
1211
- @property
1212
- @pulumi.getter(name="suitableNodes")
1213
- def suitable_nodes(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']]:
1214
- """
1215
- Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
1216
-
1217
- Setting this field is optional. If unset, all Nodes are candidates.
1218
-
1219
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
1220
- """
1221
- return pulumi.get(self, "suitable_nodes")
1222
-
1223
- @suitable_nodes.setter
1224
- def suitable_nodes(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']]):
1225
- pulumi.set(self, "suitable_nodes", value)
1226
-
1227
-
1228
- if not MYPY:
1229
- class DeviceClassSpecArgsDict(TypedDict):
1230
- """
1231
- DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1232
- """
1233
- config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgsDict']]]]
1234
- """
1235
- Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1236
-
1237
- They are passed to the driver, but are not considered while allocating the claim.
1238
- """
1239
- selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgsDict']]]]
1240
- """
1241
- Each selector must be satisfied by a device which is claimed via this class.
1242
- """
1243
- suitable_nodes: NotRequired[pulumi.Input['_core.v1.NodeSelectorArgsDict']]
1244
- """
1245
- Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
1246
-
1247
- Setting this field is optional. If unset, all Nodes are candidates.
1248
-
1249
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
1250
- """
1251
- elif False:
1252
- DeviceClassSpecArgsDict: TypeAlias = Mapping[str, Any]
1253
-
1254
- @pulumi.input_type
1255
- class DeviceClassSpecArgs:
1256
- def __init__(__self__, *,
1257
- config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]]] = None,
1258
- selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]] = None,
1259
- suitable_nodes: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None):
1260
- """
1261
- DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1262
- :param pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]] config: Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1263
-
1264
- They are passed to the driver, but are not considered while allocating the claim.
1265
- :param pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]] selectors: Each selector must be satisfied by a device which is claimed via this class.
1266
- :param pulumi.Input['_core.v1.NodeSelectorArgs'] suitable_nodes: Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
1267
-
1268
- Setting this field is optional. If unset, all Nodes are candidates.
1269
-
1270
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
1271
- """
1272
- if config is not None:
1273
- pulumi.set(__self__, "config", config)
1274
- if selectors is not None:
1275
- pulumi.set(__self__, "selectors", selectors)
1276
- if suitable_nodes is not None:
1277
- pulumi.set(__self__, "suitable_nodes", suitable_nodes)
1278
-
1279
- @property
1280
- @pulumi.getter
1281
- def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]]]:
1282
- """
1283
- Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
1284
-
1285
- They are passed to the driver, but are not considered while allocating the claim.
1286
- """
1287
- return pulumi.get(self, "config")
1288
-
1289
- @config.setter
1290
- def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]]]):
1291
- pulumi.set(self, "config", value)
1292
-
1293
- @property
1294
- @pulumi.getter
1295
- def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]:
1296
- """
1297
- Each selector must be satisfied by a device which is claimed via this class.
1298
- """
1299
- return pulumi.get(self, "selectors")
1300
-
1301
- @selectors.setter
1302
- def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]):
1303
- pulumi.set(self, "selectors", value)
1304
-
1305
- @property
1306
- @pulumi.getter(name="suitableNodes")
1307
- def suitable_nodes(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]:
1308
- """
1309
- Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a claim that has not been allocated yet *and* that claim gets allocated through a control plane controller. It is ignored when the claim does not use a control plane controller for allocation.
1310
-
1311
- Setting this field is optional. If unset, all Nodes are candidates.
1312
-
1313
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
1314
- """
1315
- return pulumi.get(self, "suitable_nodes")
1316
-
1317
- @suitable_nodes.setter
1318
- def suitable_nodes(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]):
1319
- pulumi.set(self, "suitable_nodes", value)
1320
-
1321
-
1322
- if not MYPY:
1323
- class DeviceClassArgsDict(TypedDict):
1324
- """
1325
- DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
1326
-
1327
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1328
- """
1329
- spec: pulumi.Input['DeviceClassSpecArgsDict']
1330
- """
1331
- Spec defines what can be allocated and how to configure it.
1332
-
1333
- This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
1334
-
1335
- Changing the spec automatically increments the metadata.generation number.
1336
- """
1337
- api_version: NotRequired[pulumi.Input[str]]
1338
- """
1339
- 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
1340
- """
1341
- kind: NotRequired[pulumi.Input[str]]
1342
- """
1343
- 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
1344
- """
1345
- metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
1346
- """
1347
- Standard object metadata
1348
- """
1349
- elif False:
1350
- DeviceClassArgsDict: TypeAlias = Mapping[str, Any]
1351
-
1352
- @pulumi.input_type
1353
- class DeviceClassArgs:
1354
- def __init__(__self__, *,
1355
- spec: pulumi.Input['DeviceClassSpecArgs'],
1356
- api_version: Optional[pulumi.Input[str]] = None,
1357
- kind: Optional[pulumi.Input[str]] = None,
1358
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
1359
- """
1360
- DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
1361
-
1362
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1363
- :param pulumi.Input['DeviceClassSpecArgs'] spec: Spec defines what can be allocated and how to configure it.
1364
-
1365
- This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
1366
-
1367
- Changing the spec automatically increments the metadata.generation number.
1368
- :param pulumi.Input[str] api_version: 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
1369
- :param pulumi.Input[str] kind: 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
1370
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
1371
- """
1372
- pulumi.set(__self__, "spec", spec)
1373
- if api_version is not None:
1374
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
1375
- if kind is not None:
1376
- pulumi.set(__self__, "kind", 'DeviceClass')
1377
- if metadata is not None:
1378
- pulumi.set(__self__, "metadata", metadata)
1379
-
1380
- @property
1381
- @pulumi.getter
1382
- def spec(self) -> pulumi.Input['DeviceClassSpecArgs']:
1383
- """
1384
- Spec defines what can be allocated and how to configure it.
1385
-
1386
- This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
1387
-
1388
- Changing the spec automatically increments the metadata.generation number.
1389
- """
1390
- return pulumi.get(self, "spec")
1391
-
1392
- @spec.setter
1393
- def spec(self, value: pulumi.Input['DeviceClassSpecArgs']):
1394
- pulumi.set(self, "spec", value)
1395
-
1396
- @property
1397
- @pulumi.getter(name="apiVersion")
1398
- def api_version(self) -> Optional[pulumi.Input[str]]:
1399
- """
1400
- 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
1401
- """
1402
- return pulumi.get(self, "api_version")
1403
-
1404
- @api_version.setter
1405
- def api_version(self, value: Optional[pulumi.Input[str]]):
1406
- pulumi.set(self, "api_version", value)
1407
-
1408
- @property
1409
- @pulumi.getter
1410
- def kind(self) -> Optional[pulumi.Input[str]]:
1411
- """
1412
- 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
1413
- """
1414
- return pulumi.get(self, "kind")
1415
-
1416
- @kind.setter
1417
- def kind(self, value: Optional[pulumi.Input[str]]):
1418
- pulumi.set(self, "kind", value)
1419
-
1420
- @property
1421
- @pulumi.getter
1422
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
1423
- """
1424
- Standard object metadata
1425
- """
1426
- return pulumi.get(self, "metadata")
1427
-
1428
- @metadata.setter
1429
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
1430
- pulumi.set(self, "metadata", value)
1431
-
1432
-
1433
- if not MYPY:
1434
- class DeviceConstraintPatchArgsDict(TypedDict):
1435
- """
1436
- DeviceConstraint must have exactly one field set besides Requests.
1437
- """
1438
- match_attribute: NotRequired[pulumi.Input[str]]
1439
- """
1440
- MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1441
-
1442
- For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1443
-
1444
- Must include the domain qualifier.
1445
- """
1446
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1447
- """
1448
- Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1449
- """
1450
- elif False:
1451
- DeviceConstraintPatchArgsDict: TypeAlias = Mapping[str, Any]
1452
-
1453
- @pulumi.input_type
1454
- class DeviceConstraintPatchArgs:
1455
- def __init__(__self__, *,
1456
- match_attribute: Optional[pulumi.Input[str]] = None,
1457
- requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
1458
- """
1459
- DeviceConstraint must have exactly one field set besides Requests.
1460
- :param pulumi.Input[str] match_attribute: MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1461
-
1462
- For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1463
-
1464
- Must include the domain qualifier.
1465
- :param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1466
- """
1467
- if match_attribute is not None:
1468
- pulumi.set(__self__, "match_attribute", match_attribute)
1469
- if requests is not None:
1470
- pulumi.set(__self__, "requests", requests)
1471
-
1472
- @property
1473
- @pulumi.getter(name="matchAttribute")
1474
- def match_attribute(self) -> Optional[pulumi.Input[str]]:
1475
- """
1476
- MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1477
-
1478
- For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1479
-
1480
- Must include the domain qualifier.
1481
- """
1482
- return pulumi.get(self, "match_attribute")
1483
-
1484
- @match_attribute.setter
1485
- def match_attribute(self, value: Optional[pulumi.Input[str]]):
1486
- pulumi.set(self, "match_attribute", value)
1487
-
1488
- @property
1489
- @pulumi.getter
1490
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
1491
- """
1492
- Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1493
- """
1494
- return pulumi.get(self, "requests")
1495
-
1496
- @requests.setter
1497
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
1498
- pulumi.set(self, "requests", value)
1499
-
1500
-
1501
- if not MYPY:
1502
- class DeviceConstraintArgsDict(TypedDict):
1503
- """
1504
- DeviceConstraint must have exactly one field set besides Requests.
1505
- """
1506
- match_attribute: NotRequired[pulumi.Input[str]]
1507
- """
1508
- MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1509
-
1510
- For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1511
-
1512
- Must include the domain qualifier.
1513
- """
1514
- requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1515
- """
1516
- Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1517
- """
1518
- elif False:
1519
- DeviceConstraintArgsDict: TypeAlias = Mapping[str, Any]
1520
-
1521
- @pulumi.input_type
1522
- class DeviceConstraintArgs:
1523
- def __init__(__self__, *,
1524
- match_attribute: Optional[pulumi.Input[str]] = None,
1525
- requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
1526
- """
1527
- DeviceConstraint must have exactly one field set besides Requests.
1528
- :param pulumi.Input[str] match_attribute: MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1529
-
1530
- For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1531
-
1532
- Must include the domain qualifier.
1533
- :param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1534
- """
1535
- if match_attribute is not None:
1536
- pulumi.set(__self__, "match_attribute", match_attribute)
1537
- if requests is not None:
1538
- pulumi.set(__self__, "requests", requests)
1539
-
1540
- @property
1541
- @pulumi.getter(name="matchAttribute")
1542
- def match_attribute(self) -> Optional[pulumi.Input[str]]:
1543
- """
1544
- MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1545
-
1546
- For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
1547
-
1548
- Must include the domain qualifier.
1549
- """
1550
- return pulumi.get(self, "match_attribute")
1551
-
1552
- @match_attribute.setter
1553
- def match_attribute(self, value: Optional[pulumi.Input[str]]):
1554
- pulumi.set(self, "match_attribute", value)
1555
-
1556
- @property
1557
- @pulumi.getter
1558
- def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
1559
- """
1560
- Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
1561
- """
1562
- return pulumi.get(self, "requests")
1563
-
1564
- @requests.setter
1565
- def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
1566
- pulumi.set(self, "requests", value)
1567
-
1568
-
1569
- if not MYPY:
1570
- class DevicePatchArgsDict(TypedDict):
1571
- """
1572
- Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1573
- """
1574
- basic: NotRequired[pulumi.Input['BasicDevicePatchArgsDict']]
1575
- """
1576
- Basic defines one device instance.
1577
- """
1578
- name: NotRequired[pulumi.Input[str]]
1579
- """
1580
- Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1581
- """
1582
- elif False:
1583
- DevicePatchArgsDict: TypeAlias = Mapping[str, Any]
1584
-
1585
- @pulumi.input_type
1586
- class DevicePatchArgs:
1587
- def __init__(__self__, *,
1588
- basic: Optional[pulumi.Input['BasicDevicePatchArgs']] = None,
1589
- name: Optional[pulumi.Input[str]] = None):
1590
- """
1591
- Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1592
- :param pulumi.Input['BasicDevicePatchArgs'] basic: Basic defines one device instance.
1593
- :param pulumi.Input[str] name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1594
- """
1595
- if basic is not None:
1596
- pulumi.set(__self__, "basic", basic)
1597
- if name is not None:
1598
- pulumi.set(__self__, "name", name)
1599
-
1600
- @property
1601
- @pulumi.getter
1602
- def basic(self) -> Optional[pulumi.Input['BasicDevicePatchArgs']]:
1603
- """
1604
- Basic defines one device instance.
1605
- """
1606
- return pulumi.get(self, "basic")
1607
-
1608
- @basic.setter
1609
- def basic(self, value: Optional[pulumi.Input['BasicDevicePatchArgs']]):
1610
- pulumi.set(self, "basic", value)
1611
-
1612
- @property
1613
- @pulumi.getter
1614
- def name(self) -> Optional[pulumi.Input[str]]:
1615
- """
1616
- Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1617
- """
1618
- return pulumi.get(self, "name")
1619
-
1620
- @name.setter
1621
- def name(self, value: Optional[pulumi.Input[str]]):
1622
- pulumi.set(self, "name", value)
1623
-
1624
-
1625
- if not MYPY:
1626
- class DeviceRequestAllocationResultArgsDict(TypedDict):
1627
- """
1628
- DeviceRequestAllocationResult contains the allocation result for one request.
1629
- """
1630
- device: pulumi.Input[str]
1631
- """
1632
- Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1633
- """
1634
- driver: pulumi.Input[str]
1635
- """
1636
- Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1637
-
1638
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1639
- """
1640
- pool: pulumi.Input[str]
1641
- """
1642
- This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1643
-
1644
- Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1645
- """
1646
- request: pulumi.Input[str]
1647
- """
1648
- Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1649
- """
1650
- elif False:
1651
- DeviceRequestAllocationResultArgsDict: TypeAlias = Mapping[str, Any]
1652
-
1653
- @pulumi.input_type
1654
- class DeviceRequestAllocationResultArgs:
1655
- def __init__(__self__, *,
1656
- device: pulumi.Input[str],
1657
- driver: pulumi.Input[str],
1658
- pool: pulumi.Input[str],
1659
- request: pulumi.Input[str]):
1660
- """
1661
- DeviceRequestAllocationResult contains the allocation result for one request.
1662
- :param pulumi.Input[str] device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1663
- :param pulumi.Input[str] driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1664
-
1665
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1666
- :param pulumi.Input[str] pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1667
-
1668
- Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1669
- :param pulumi.Input[str] request: Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1670
- """
1671
- pulumi.set(__self__, "device", device)
1672
- pulumi.set(__self__, "driver", driver)
1673
- pulumi.set(__self__, "pool", pool)
1674
- pulumi.set(__self__, "request", request)
1675
-
1676
- @property
1677
- @pulumi.getter
1678
- def device(self) -> pulumi.Input[str]:
1679
- """
1680
- Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
1681
- """
1682
- return pulumi.get(self, "device")
1683
-
1684
- @device.setter
1685
- def device(self, value: pulumi.Input[str]):
1686
- pulumi.set(self, "device", value)
1687
-
1688
- @property
1689
- @pulumi.getter
1690
- def driver(self) -> pulumi.Input[str]:
1691
- """
1692
- Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
1693
-
1694
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
1695
- """
1696
- return pulumi.get(self, "driver")
1697
-
1698
- @driver.setter
1699
- def driver(self, value: pulumi.Input[str]):
1700
- pulumi.set(self, "driver", value)
1701
-
1702
- @property
1703
- @pulumi.getter
1704
- def pool(self) -> pulumi.Input[str]:
1705
- """
1706
- This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
1707
-
1708
- Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
1709
- """
1710
- return pulumi.get(self, "pool")
1711
-
1712
- @pool.setter
1713
- def pool(self, value: pulumi.Input[str]):
1714
- pulumi.set(self, "pool", value)
1715
-
1716
- @property
1717
- @pulumi.getter
1718
- def request(self) -> pulumi.Input[str]:
1719
- """
1720
- Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
1721
- """
1722
- return pulumi.get(self, "request")
1723
-
1724
- @request.setter
1725
- def request(self, value: pulumi.Input[str]):
1726
- pulumi.set(self, "request", value)
1727
-
1728
-
1729
- if not MYPY:
1730
- class DeviceRequestPatchArgsDict(TypedDict):
1731
- """
1732
- DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1733
-
1734
- A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1735
- """
1736
- admin_access: NotRequired[pulumi.Input[bool]]
1737
- """
1738
- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1739
- """
1740
- allocation_mode: NotRequired[pulumi.Input[str]]
1741
- """
1742
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1743
-
1744
- - ExactCount: This request is for a specific number of devices.
1745
- This is the default. The exact number is provided in the
1746
- count field.
1747
-
1748
- - All: This request is for all of the matching devices in a pool.
1749
- Allocation will fail if some devices are already allocated,
1750
- unless adminAccess is requested.
1751
-
1752
- If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1753
-
1754
- More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1755
- """
1756
- count: NotRequired[pulumi.Input[int]]
1757
- """
1758
- Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1759
- """
1760
- device_class_name: NotRequired[pulumi.Input[str]]
1761
- """
1762
- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1763
-
1764
- A class is required. Which classes are available depends on the cluster.
1765
-
1766
- Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1767
- """
1768
- name: NotRequired[pulumi.Input[str]]
1769
- """
1770
- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1771
-
1772
- Must be a DNS label.
1773
- """
1774
- selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgsDict']]]]
1775
- """
1776
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1777
- """
1778
- elif False:
1779
- DeviceRequestPatchArgsDict: TypeAlias = Mapping[str, Any]
1780
-
1781
- @pulumi.input_type
1782
- class DeviceRequestPatchArgs:
1783
- def __init__(__self__, *,
1784
- admin_access: Optional[pulumi.Input[bool]] = None,
1785
- allocation_mode: Optional[pulumi.Input[str]] = None,
1786
- count: Optional[pulumi.Input[int]] = None,
1787
- device_class_name: Optional[pulumi.Input[str]] = None,
1788
- name: Optional[pulumi.Input[str]] = None,
1789
- selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]] = None):
1790
- """
1791
- DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1792
-
1793
- A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1794
- :param pulumi.Input[bool] admin_access: AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1795
- :param pulumi.Input[str] allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1796
-
1797
- - ExactCount: This request is for a specific number of devices.
1798
- This is the default. The exact number is provided in the
1799
- count field.
1800
-
1801
- - All: This request is for all of the matching devices in a pool.
1802
- Allocation will fail if some devices are already allocated,
1803
- unless adminAccess is requested.
1804
-
1805
- If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1806
-
1807
- More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1808
- :param pulumi.Input[int] count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1809
- :param pulumi.Input[str] device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1810
-
1811
- A class is required. Which classes are available depends on the cluster.
1812
-
1813
- Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1814
- :param pulumi.Input[str] name: Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1815
-
1816
- Must be a DNS label.
1817
- :param pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1818
- """
1819
- if admin_access is not None:
1820
- pulumi.set(__self__, "admin_access", admin_access)
1821
- if allocation_mode is not None:
1822
- pulumi.set(__self__, "allocation_mode", allocation_mode)
1823
- if count is not None:
1824
- pulumi.set(__self__, "count", count)
1825
- if device_class_name is not None:
1826
- pulumi.set(__self__, "device_class_name", device_class_name)
1827
- if name is not None:
1828
- pulumi.set(__self__, "name", name)
1829
- if selectors is not None:
1830
- pulumi.set(__self__, "selectors", selectors)
1831
-
1832
- @property
1833
- @pulumi.getter(name="adminAccess")
1834
- def admin_access(self) -> Optional[pulumi.Input[bool]]:
1835
- """
1836
- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1837
- """
1838
- return pulumi.get(self, "admin_access")
1839
-
1840
- @admin_access.setter
1841
- def admin_access(self, value: Optional[pulumi.Input[bool]]):
1842
- pulumi.set(self, "admin_access", value)
1843
-
1844
- @property
1845
- @pulumi.getter(name="allocationMode")
1846
- def allocation_mode(self) -> Optional[pulumi.Input[str]]:
1847
- """
1848
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1849
-
1850
- - ExactCount: This request is for a specific number of devices.
1851
- This is the default. The exact number is provided in the
1852
- count field.
1853
-
1854
- - All: This request is for all of the matching devices in a pool.
1855
- Allocation will fail if some devices are already allocated,
1856
- unless adminAccess is requested.
1857
-
1858
- If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1859
-
1860
- More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1861
- """
1862
- return pulumi.get(self, "allocation_mode")
1863
-
1864
- @allocation_mode.setter
1865
- def allocation_mode(self, value: Optional[pulumi.Input[str]]):
1866
- pulumi.set(self, "allocation_mode", value)
1867
-
1868
- @property
1869
- @pulumi.getter
1870
- def count(self) -> Optional[pulumi.Input[int]]:
1871
- """
1872
- Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1873
- """
1874
- return pulumi.get(self, "count")
1875
-
1876
- @count.setter
1877
- def count(self, value: Optional[pulumi.Input[int]]):
1878
- pulumi.set(self, "count", value)
1879
-
1880
- @property
1881
- @pulumi.getter(name="deviceClassName")
1882
- def device_class_name(self) -> Optional[pulumi.Input[str]]:
1883
- """
1884
- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1885
-
1886
- A class is required. Which classes are available depends on the cluster.
1887
-
1888
- Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1889
- """
1890
- return pulumi.get(self, "device_class_name")
1891
-
1892
- @device_class_name.setter
1893
- def device_class_name(self, value: Optional[pulumi.Input[str]]):
1894
- pulumi.set(self, "device_class_name", value)
1895
-
1896
- @property
1897
- @pulumi.getter
1898
- def name(self) -> Optional[pulumi.Input[str]]:
1899
- """
1900
- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1901
-
1902
- Must be a DNS label.
1903
- """
1904
- return pulumi.get(self, "name")
1905
-
1906
- @name.setter
1907
- def name(self, value: Optional[pulumi.Input[str]]):
1908
- pulumi.set(self, "name", value)
1909
-
1910
- @property
1911
- @pulumi.getter
1912
- def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]:
1913
- """
1914
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1915
- """
1916
- return pulumi.get(self, "selectors")
1917
-
1918
- @selectors.setter
1919
- def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]):
1920
- pulumi.set(self, "selectors", value)
1921
-
1922
-
1923
- if not MYPY:
1924
- class DeviceRequestArgsDict(TypedDict):
1925
- """
1926
- DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1927
-
1928
- A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1929
- """
1930
- device_class_name: pulumi.Input[str]
1931
- """
1932
- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1933
-
1934
- A class is required. Which classes are available depends on the cluster.
1935
-
1936
- Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1937
- """
1938
- name: pulumi.Input[str]
1939
- """
1940
- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1941
-
1942
- Must be a DNS label.
1943
- """
1944
- admin_access: NotRequired[pulumi.Input[bool]]
1945
- """
1946
- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1947
- """
1948
- allocation_mode: NotRequired[pulumi.Input[str]]
1949
- """
1950
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1951
-
1952
- - ExactCount: This request is for a specific number of devices.
1953
- This is the default. The exact number is provided in the
1954
- count field.
1955
-
1956
- - All: This request is for all of the matching devices in a pool.
1957
- Allocation will fail if some devices are already allocated,
1958
- unless adminAccess is requested.
1959
-
1960
- If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
1961
-
1962
- More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
1963
- """
1964
- count: NotRequired[pulumi.Input[int]]
1965
- """
1966
- Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
1967
- """
1968
- selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgsDict']]]]
1969
- """
1970
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
1971
- """
1972
- elif False:
1973
- DeviceRequestArgsDict: TypeAlias = Mapping[str, Any]
1974
-
1975
- @pulumi.input_type
1976
- class DeviceRequestArgs:
1977
- def __init__(__self__, *,
1978
- device_class_name: pulumi.Input[str],
1979
- name: pulumi.Input[str],
1980
- admin_access: Optional[pulumi.Input[bool]] = None,
1981
- allocation_mode: Optional[pulumi.Input[str]] = None,
1982
- count: Optional[pulumi.Input[int]] = None,
1983
- selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]] = None):
1984
- """
1985
- DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
1986
-
1987
- A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
1988
- :param pulumi.Input[str] device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
1989
-
1990
- A class is required. Which classes are available depends on the cluster.
1991
-
1992
- Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
1993
- :param pulumi.Input[str] name: Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1994
-
1995
- Must be a DNS label.
1996
- :param pulumi.Input[bool] admin_access: AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
1997
- :param pulumi.Input[str] allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
1998
-
1999
- - ExactCount: This request is for a specific number of devices.
2000
- This is the default. The exact number is provided in the
2001
- count field.
2002
-
2003
- - All: This request is for all of the matching devices in a pool.
2004
- Allocation will fail if some devices are already allocated,
2005
- unless adminAccess is requested.
2006
-
2007
- If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
2008
-
2009
- More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2010
- :param pulumi.Input[int] count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
2011
- :param pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
2012
- """
2013
- pulumi.set(__self__, "device_class_name", device_class_name)
2014
- pulumi.set(__self__, "name", name)
2015
- if admin_access is not None:
2016
- pulumi.set(__self__, "admin_access", admin_access)
2017
- if allocation_mode is not None:
2018
- pulumi.set(__self__, "allocation_mode", allocation_mode)
2019
- if count is not None:
2020
- pulumi.set(__self__, "count", count)
2021
- if selectors is not None:
2022
- pulumi.set(__self__, "selectors", selectors)
2023
-
2024
- @property
2025
- @pulumi.getter(name="deviceClassName")
2026
- def device_class_name(self) -> pulumi.Input[str]:
2027
- """
2028
- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
2029
-
2030
- A class is required. Which classes are available depends on the cluster.
2031
-
2032
- Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
2033
- """
2034
- return pulumi.get(self, "device_class_name")
2035
-
2036
- @device_class_name.setter
2037
- def device_class_name(self, value: pulumi.Input[str]):
2038
- pulumi.set(self, "device_class_name", value)
2039
-
2040
- @property
2041
- @pulumi.getter
2042
- def name(self) -> pulumi.Input[str]:
2043
- """
2044
- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
2045
-
2046
- Must be a DNS label.
2047
- """
2048
- return pulumi.get(self, "name")
2049
-
2050
- @name.setter
2051
- def name(self, value: pulumi.Input[str]):
2052
- pulumi.set(self, "name", value)
2053
-
2054
- @property
2055
- @pulumi.getter(name="adminAccess")
2056
- def admin_access(self) -> Optional[pulumi.Input[bool]]:
2057
- """
2058
- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
2059
- """
2060
- return pulumi.get(self, "admin_access")
2061
-
2062
- @admin_access.setter
2063
- def admin_access(self, value: Optional[pulumi.Input[bool]]):
2064
- pulumi.set(self, "admin_access", value)
2065
-
2066
- @property
2067
- @pulumi.getter(name="allocationMode")
2068
- def allocation_mode(self) -> Optional[pulumi.Input[str]]:
2069
- """
2070
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
2071
-
2072
- - ExactCount: This request is for a specific number of devices.
2073
- This is the default. The exact number is provided in the
2074
- count field.
2075
-
2076
- - All: This request is for all of the matching devices in a pool.
2077
- Allocation will fail if some devices are already allocated,
2078
- unless adminAccess is requested.
2079
-
2080
- If AlloctionMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
2081
-
2082
- More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2083
- """
2084
- return pulumi.get(self, "allocation_mode")
2085
-
2086
- @allocation_mode.setter
2087
- def allocation_mode(self, value: Optional[pulumi.Input[str]]):
2088
- pulumi.set(self, "allocation_mode", value)
2089
-
2090
- @property
2091
- @pulumi.getter
2092
- def count(self) -> Optional[pulumi.Input[int]]:
2093
- """
2094
- Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
2095
- """
2096
- return pulumi.get(self, "count")
2097
-
2098
- @count.setter
2099
- def count(self, value: Optional[pulumi.Input[int]]):
2100
- pulumi.set(self, "count", value)
2101
-
2102
- @property
2103
- @pulumi.getter
2104
- def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]:
2105
- """
2106
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
2107
- """
2108
- return pulumi.get(self, "selectors")
2109
-
2110
- @selectors.setter
2111
- def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]):
2112
- pulumi.set(self, "selectors", value)
2113
-
2114
-
2115
- if not MYPY:
2116
- class DeviceSelectorPatchArgsDict(TypedDict):
2117
- """
2118
- DeviceSelector must have exactly one field set.
2119
- """
2120
- cel: NotRequired[pulumi.Input['CELDeviceSelectorPatchArgsDict']]
2121
- """
2122
- CEL contains a CEL expression for selecting a device.
2123
- """
2124
- elif False:
2125
- DeviceSelectorPatchArgsDict: TypeAlias = Mapping[str, Any]
2126
-
2127
- @pulumi.input_type
2128
- class DeviceSelectorPatchArgs:
2129
- def __init__(__self__, *,
2130
- cel: Optional[pulumi.Input['CELDeviceSelectorPatchArgs']] = None):
2131
- """
2132
- DeviceSelector must have exactly one field set.
2133
- :param pulumi.Input['CELDeviceSelectorPatchArgs'] cel: CEL contains a CEL expression for selecting a device.
2134
- """
2135
- if cel is not None:
2136
- pulumi.set(__self__, "cel", cel)
2137
-
2138
- @property
2139
- @pulumi.getter
2140
- def cel(self) -> Optional[pulumi.Input['CELDeviceSelectorPatchArgs']]:
2141
- """
2142
- CEL contains a CEL expression for selecting a device.
2143
- """
2144
- return pulumi.get(self, "cel")
2145
-
2146
- @cel.setter
2147
- def cel(self, value: Optional[pulumi.Input['CELDeviceSelectorPatchArgs']]):
2148
- pulumi.set(self, "cel", value)
2149
-
2150
-
2151
- if not MYPY:
2152
- class DeviceSelectorArgsDict(TypedDict):
2153
- """
2154
- DeviceSelector must have exactly one field set.
2155
- """
2156
- cel: NotRequired[pulumi.Input['CELDeviceSelectorArgsDict']]
2157
- """
2158
- CEL contains a CEL expression for selecting a device.
2159
- """
2160
- elif False:
2161
- DeviceSelectorArgsDict: TypeAlias = Mapping[str, Any]
2162
-
2163
- @pulumi.input_type
2164
- class DeviceSelectorArgs:
2165
- def __init__(__self__, *,
2166
- cel: Optional[pulumi.Input['CELDeviceSelectorArgs']] = None):
2167
- """
2168
- DeviceSelector must have exactly one field set.
2169
- :param pulumi.Input['CELDeviceSelectorArgs'] cel: CEL contains a CEL expression for selecting a device.
2170
- """
2171
- if cel is not None:
2172
- pulumi.set(__self__, "cel", cel)
2173
-
2174
- @property
2175
- @pulumi.getter
2176
- def cel(self) -> Optional[pulumi.Input['CELDeviceSelectorArgs']]:
2177
- """
2178
- CEL contains a CEL expression for selecting a device.
2179
- """
2180
- return pulumi.get(self, "cel")
2181
-
2182
- @cel.setter
2183
- def cel(self, value: Optional[pulumi.Input['CELDeviceSelectorArgs']]):
2184
- pulumi.set(self, "cel", value)
2185
-
2186
-
2187
- if not MYPY:
2188
- class DeviceArgsDict(TypedDict):
2189
- """
2190
- Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
2191
- """
2192
- name: pulumi.Input[str]
2193
- """
2194
- Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
2195
- """
2196
- basic: NotRequired[pulumi.Input['BasicDeviceArgsDict']]
2197
- """
2198
- Basic defines one device instance.
2199
- """
2200
- elif False:
2201
- DeviceArgsDict: TypeAlias = Mapping[str, Any]
2202
-
2203
- @pulumi.input_type
2204
- class DeviceArgs:
2205
- def __init__(__self__, *,
2206
- name: pulumi.Input[str],
2207
- basic: Optional[pulumi.Input['BasicDeviceArgs']] = None):
2208
- """
2209
- Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
2210
- :param pulumi.Input[str] name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
2211
- :param pulumi.Input['BasicDeviceArgs'] basic: Basic defines one device instance.
2212
- """
2213
- pulumi.set(__self__, "name", name)
2214
- if basic is not None:
2215
- pulumi.set(__self__, "basic", basic)
2216
-
2217
- @property
2218
- @pulumi.getter
2219
- def name(self) -> pulumi.Input[str]:
2220
- """
2221
- Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
2222
- """
2223
- return pulumi.get(self, "name")
2224
-
2225
- @name.setter
2226
- def name(self, value: pulumi.Input[str]):
2227
- pulumi.set(self, "name", value)
2228
-
2229
- @property
2230
- @pulumi.getter
2231
- def basic(self) -> Optional[pulumi.Input['BasicDeviceArgs']]:
2232
- """
2233
- Basic defines one device instance.
2234
- """
2235
- return pulumi.get(self, "basic")
2236
-
2237
- @basic.setter
2238
- def basic(self, value: Optional[pulumi.Input['BasicDeviceArgs']]):
2239
- pulumi.set(self, "basic", value)
2240
-
2241
-
2242
- if not MYPY:
2243
- class OpaqueDeviceConfigurationPatchArgsDict(TypedDict):
2244
- """
2245
- OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2246
- """
2247
- driver: NotRequired[pulumi.Input[str]]
2248
- """
2249
- Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2250
-
2251
- An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2252
-
2253
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2254
- """
2255
- parameters: NotRequired[Any]
2256
- """
2257
- Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2258
- """
2259
- elif False:
2260
- OpaqueDeviceConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
2261
-
2262
- @pulumi.input_type
2263
- class OpaqueDeviceConfigurationPatchArgs:
2264
- def __init__(__self__, *,
2265
- driver: Optional[pulumi.Input[str]] = None,
2266
- parameters: Optional[Any] = None):
2267
- """
2268
- OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2269
- :param pulumi.Input[str] driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2270
-
2271
- An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2272
-
2273
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2274
- :param Any parameters: Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2275
- """
2276
- if driver is not None:
2277
- pulumi.set(__self__, "driver", driver)
2278
- if parameters is not None:
2279
- pulumi.set(__self__, "parameters", parameters)
2280
-
2281
- @property
2282
- @pulumi.getter
2283
- def driver(self) -> Optional[pulumi.Input[str]]:
2284
- """
2285
- Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2286
-
2287
- An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2288
-
2289
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2290
- """
2291
- return pulumi.get(self, "driver")
2292
-
2293
- @driver.setter
2294
- def driver(self, value: Optional[pulumi.Input[str]]):
2295
- pulumi.set(self, "driver", value)
2296
-
2297
- @property
2298
- @pulumi.getter
2299
- def parameters(self) -> Optional[Any]:
2300
- """
2301
- Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2302
- """
2303
- return pulumi.get(self, "parameters")
2304
-
2305
- @parameters.setter
2306
- def parameters(self, value: Optional[Any]):
2307
- pulumi.set(self, "parameters", value)
2308
-
2309
-
2310
- if not MYPY:
2311
- class OpaqueDeviceConfigurationArgsDict(TypedDict):
2312
- """
2313
- OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2314
- """
2315
- driver: pulumi.Input[str]
2316
- """
2317
- Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2318
-
2319
- An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2320
-
2321
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2322
- """
2323
- parameters: Any
2324
- """
2325
- Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2326
- """
2327
- elif False:
2328
- OpaqueDeviceConfigurationArgsDict: TypeAlias = Mapping[str, Any]
2329
-
2330
- @pulumi.input_type
2331
- class OpaqueDeviceConfigurationArgs:
2332
- def __init__(__self__, *,
2333
- driver: pulumi.Input[str],
2334
- parameters: Any):
2335
- """
2336
- OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
2337
- :param pulumi.Input[str] driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2338
-
2339
- An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2340
-
2341
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2342
- :param Any parameters: Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2343
- """
2344
- pulumi.set(__self__, "driver", driver)
2345
- pulumi.set(__self__, "parameters", parameters)
2346
-
2347
- @property
2348
- @pulumi.getter
2349
- def driver(self) -> pulumi.Input[str]:
2350
- """
2351
- Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
2352
-
2353
- An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
2354
-
2355
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2356
- """
2357
- return pulumi.get(self, "driver")
2358
-
2359
- @driver.setter
2360
- def driver(self, value: pulumi.Input[str]):
2361
- pulumi.set(self, "driver", value)
2362
-
2363
- @property
2364
- @pulumi.getter
2365
- def parameters(self) -> Any:
2366
- """
2367
- Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
2368
- """
2369
- return pulumi.get(self, "parameters")
2370
-
2371
- @parameters.setter
2372
- def parameters(self, value: Any):
2373
- pulumi.set(self, "parameters", value)
2374
-
2375
-
2376
- if not MYPY:
2377
- class PodSchedulingContextSpecPatchArgsDict(TypedDict):
2378
- """
2379
- PodSchedulingContextSpec describes where resources for the Pod are needed.
2380
- """
2381
- potential_nodes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2382
- """
2383
- PotentialNodes lists nodes where the Pod might be able to run.
2384
-
2385
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
2386
- """
2387
- selected_node: NotRequired[pulumi.Input[str]]
2388
- """
2389
- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
2390
- """
2391
- elif False:
2392
- PodSchedulingContextSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
2393
-
2394
- @pulumi.input_type
2395
- class PodSchedulingContextSpecPatchArgs:
2396
- def __init__(__self__, *,
2397
- potential_nodes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
2398
- selected_node: Optional[pulumi.Input[str]] = None):
2399
- """
2400
- PodSchedulingContextSpec describes where resources for the Pod are needed.
2401
- :param pulumi.Input[Sequence[pulumi.Input[str]]] potential_nodes: PotentialNodes lists nodes where the Pod might be able to run.
2402
-
2403
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
2404
- :param pulumi.Input[str] selected_node: SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
2405
- """
2406
- if potential_nodes is not None:
2407
- pulumi.set(__self__, "potential_nodes", potential_nodes)
2408
- if selected_node is not None:
2409
- pulumi.set(__self__, "selected_node", selected_node)
2410
-
2411
- @property
2412
- @pulumi.getter(name="potentialNodes")
2413
- def potential_nodes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
2414
- """
2415
- PotentialNodes lists nodes where the Pod might be able to run.
2416
-
2417
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
2418
- """
2419
- return pulumi.get(self, "potential_nodes")
2420
-
2421
- @potential_nodes.setter
2422
- def potential_nodes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
2423
- pulumi.set(self, "potential_nodes", value)
2424
-
2425
- @property
2426
- @pulumi.getter(name="selectedNode")
2427
- def selected_node(self) -> Optional[pulumi.Input[str]]:
2428
- """
2429
- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
2430
- """
2431
- return pulumi.get(self, "selected_node")
2432
-
2433
- @selected_node.setter
2434
- def selected_node(self, value: Optional[pulumi.Input[str]]):
2435
- pulumi.set(self, "selected_node", value)
2436
-
2437
-
2438
- if not MYPY:
2439
- class PodSchedulingContextSpecArgsDict(TypedDict):
2440
- """
2441
- PodSchedulingContextSpec describes where resources for the Pod are needed.
2442
- """
2443
- potential_nodes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2444
- """
2445
- PotentialNodes lists nodes where the Pod might be able to run.
2446
-
2447
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
2448
- """
2449
- selected_node: NotRequired[pulumi.Input[str]]
2450
- """
2451
- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
2452
- """
2453
- elif False:
2454
- PodSchedulingContextSpecArgsDict: TypeAlias = Mapping[str, Any]
2455
-
2456
- @pulumi.input_type
2457
- class PodSchedulingContextSpecArgs:
2458
- def __init__(__self__, *,
2459
- potential_nodes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
2460
- selected_node: Optional[pulumi.Input[str]] = None):
2461
- """
2462
- PodSchedulingContextSpec describes where resources for the Pod are needed.
2463
- :param pulumi.Input[Sequence[pulumi.Input[str]]] potential_nodes: PotentialNodes lists nodes where the Pod might be able to run.
2464
-
2465
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
2466
- :param pulumi.Input[str] selected_node: SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
2467
- """
2468
- if potential_nodes is not None:
2469
- pulumi.set(__self__, "potential_nodes", potential_nodes)
2470
- if selected_node is not None:
2471
- pulumi.set(__self__, "selected_node", selected_node)
2472
-
2473
- @property
2474
- @pulumi.getter(name="potentialNodes")
2475
- def potential_nodes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
2476
- """
2477
- PotentialNodes lists nodes where the Pod might be able to run.
2478
-
2479
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
2480
- """
2481
- return pulumi.get(self, "potential_nodes")
2482
-
2483
- @potential_nodes.setter
2484
- def potential_nodes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
2485
- pulumi.set(self, "potential_nodes", value)
2486
-
2487
- @property
2488
- @pulumi.getter(name="selectedNode")
2489
- def selected_node(self) -> Optional[pulumi.Input[str]]:
2490
- """
2491
- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
2492
- """
2493
- return pulumi.get(self, "selected_node")
2494
-
2495
- @selected_node.setter
2496
- def selected_node(self, value: Optional[pulumi.Input[str]]):
2497
- pulumi.set(self, "selected_node", value)
2498
-
2499
-
2500
- if not MYPY:
2501
- class PodSchedulingContextStatusArgsDict(TypedDict):
2502
- """
2503
- PodSchedulingContextStatus describes where resources for the Pod can be allocated.
2504
- """
2505
- resource_claims: NotRequired[pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgsDict']]]]
2506
- """
2507
- ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
2508
- """
2509
- elif False:
2510
- PodSchedulingContextStatusArgsDict: TypeAlias = Mapping[str, Any]
2511
-
2512
- @pulumi.input_type
2513
- class PodSchedulingContextStatusArgs:
2514
- def __init__(__self__, *,
2515
- resource_claims: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgs']]]] = None):
2516
- """
2517
- PodSchedulingContextStatus describes where resources for the Pod can be allocated.
2518
- :param pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgs']]] resource_claims: ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
2519
- """
2520
- if resource_claims is not None:
2521
- pulumi.set(__self__, "resource_claims", resource_claims)
2522
-
2523
- @property
2524
- @pulumi.getter(name="resourceClaims")
2525
- def resource_claims(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgs']]]]:
2526
- """
2527
- ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
2528
- """
2529
- return pulumi.get(self, "resource_claims")
2530
-
2531
- @resource_claims.setter
2532
- def resource_claims(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimSchedulingStatusArgs']]]]):
2533
- pulumi.set(self, "resource_claims", value)
2534
-
2535
-
2536
- if not MYPY:
2537
- class PodSchedulingContextArgsDict(TypedDict):
2538
- """
2539
- PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
2540
-
2541
- This is an alpha type and requires enabling the DRAControlPlaneController feature gate.
2542
- """
2543
- spec: pulumi.Input['PodSchedulingContextSpecArgsDict']
2544
- """
2545
- Spec describes where resources for the Pod are needed.
2546
- """
2547
- api_version: NotRequired[pulumi.Input[str]]
2548
- """
2549
- 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
2550
- """
2551
- kind: NotRequired[pulumi.Input[str]]
2552
- """
2553
- 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
2554
- """
2555
- metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
2556
- """
2557
- Standard object metadata
2558
- """
2559
- status: NotRequired[pulumi.Input['PodSchedulingContextStatusArgsDict']]
2560
- """
2561
- Status describes where resources for the Pod can be allocated.
2562
- """
2563
- elif False:
2564
- PodSchedulingContextArgsDict: TypeAlias = Mapping[str, Any]
2565
-
2566
- @pulumi.input_type
2567
- class PodSchedulingContextArgs:
2568
- def __init__(__self__, *,
2569
- spec: pulumi.Input['PodSchedulingContextSpecArgs'],
2570
- api_version: Optional[pulumi.Input[str]] = None,
2571
- kind: Optional[pulumi.Input[str]] = None,
2572
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
2573
- status: Optional[pulumi.Input['PodSchedulingContextStatusArgs']] = None):
2574
- """
2575
- PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
2576
-
2577
- This is an alpha type and requires enabling the DRAControlPlaneController feature gate.
2578
- :param pulumi.Input['PodSchedulingContextSpecArgs'] spec: Spec describes where resources for the Pod are needed.
2579
- :param pulumi.Input[str] api_version: 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
2580
- :param pulumi.Input[str] kind: 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
2581
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
2582
- :param pulumi.Input['PodSchedulingContextStatusArgs'] status: Status describes where resources for the Pod can be allocated.
2583
- """
2584
- pulumi.set(__self__, "spec", spec)
2585
- if api_version is not None:
2586
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
2587
- if kind is not None:
2588
- pulumi.set(__self__, "kind", 'PodSchedulingContext')
2589
- if metadata is not None:
2590
- pulumi.set(__self__, "metadata", metadata)
2591
- if status is not None:
2592
- pulumi.set(__self__, "status", status)
2593
-
2594
- @property
2595
- @pulumi.getter
2596
- def spec(self) -> pulumi.Input['PodSchedulingContextSpecArgs']:
2597
- """
2598
- Spec describes where resources for the Pod are needed.
2599
- """
2600
- return pulumi.get(self, "spec")
2601
-
2602
- @spec.setter
2603
- def spec(self, value: pulumi.Input['PodSchedulingContextSpecArgs']):
2604
- pulumi.set(self, "spec", value)
2605
-
2606
- @property
2607
- @pulumi.getter(name="apiVersion")
2608
- def api_version(self) -> Optional[pulumi.Input[str]]:
2609
- """
2610
- 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
2611
- """
2612
- return pulumi.get(self, "api_version")
2613
-
2614
- @api_version.setter
2615
- def api_version(self, value: Optional[pulumi.Input[str]]):
2616
- pulumi.set(self, "api_version", value)
2617
-
2618
- @property
2619
- @pulumi.getter
2620
- def kind(self) -> Optional[pulumi.Input[str]]:
2621
- """
2622
- 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
2623
- """
2624
- return pulumi.get(self, "kind")
2625
-
2626
- @kind.setter
2627
- def kind(self, value: Optional[pulumi.Input[str]]):
2628
- pulumi.set(self, "kind", value)
2629
-
2630
- @property
2631
- @pulumi.getter
2632
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
2633
- """
2634
- Standard object metadata
2635
- """
2636
- return pulumi.get(self, "metadata")
2637
-
2638
- @metadata.setter
2639
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
2640
- pulumi.set(self, "metadata", value)
2641
-
2642
- @property
2643
- @pulumi.getter
2644
- def status(self) -> Optional[pulumi.Input['PodSchedulingContextStatusArgs']]:
2645
- """
2646
- Status describes where resources for the Pod can be allocated.
2647
- """
2648
- return pulumi.get(self, "status")
2649
-
2650
- @status.setter
2651
- def status(self, value: Optional[pulumi.Input['PodSchedulingContextStatusArgs']]):
2652
- pulumi.set(self, "status", value)
2653
-
2654
-
2655
- if not MYPY:
2656
- class ResourceClaimConsumerReferenceArgsDict(TypedDict):
2657
- """
2658
- ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
2659
- """
2660
- name: pulumi.Input[str]
2661
- """
2662
- Name is the name of resource being referenced.
2663
- """
2664
- resource: pulumi.Input[str]
2665
- """
2666
- Resource is the type of resource being referenced, for example "pods".
2667
- """
2668
- uid: pulumi.Input[str]
2669
- """
2670
- UID identifies exactly one incarnation of the resource.
2671
- """
2672
- api_group: NotRequired[pulumi.Input[str]]
2673
- """
2674
- APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2675
- """
2676
- elif False:
2677
- ResourceClaimConsumerReferenceArgsDict: TypeAlias = Mapping[str, Any]
2678
-
2679
- @pulumi.input_type
2680
- class ResourceClaimConsumerReferenceArgs:
2681
- def __init__(__self__, *,
2682
- name: pulumi.Input[str],
2683
- resource: pulumi.Input[str],
2684
- uid: pulumi.Input[str],
2685
- api_group: Optional[pulumi.Input[str]] = None):
2686
- """
2687
- ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
2688
- :param pulumi.Input[str] name: Name is the name of resource being referenced.
2689
- :param pulumi.Input[str] resource: Resource is the type of resource being referenced, for example "pods".
2690
- :param pulumi.Input[str] uid: UID identifies exactly one incarnation of the resource.
2691
- :param pulumi.Input[str] api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2692
- """
2693
- pulumi.set(__self__, "name", name)
2694
- pulumi.set(__self__, "resource", resource)
2695
- pulumi.set(__self__, "uid", uid)
2696
- if api_group is not None:
2697
- pulumi.set(__self__, "api_group", api_group)
2698
-
2699
- @property
2700
- @pulumi.getter
2701
- def name(self) -> pulumi.Input[str]:
2702
- """
2703
- Name is the name of resource being referenced.
2704
- """
2705
- return pulumi.get(self, "name")
2706
-
2707
- @name.setter
2708
- def name(self, value: pulumi.Input[str]):
2709
- pulumi.set(self, "name", value)
2710
-
2711
- @property
2712
- @pulumi.getter
2713
- def resource(self) -> pulumi.Input[str]:
2714
- """
2715
- Resource is the type of resource being referenced, for example "pods".
2716
- """
2717
- return pulumi.get(self, "resource")
2718
-
2719
- @resource.setter
2720
- def resource(self, value: pulumi.Input[str]):
2721
- pulumi.set(self, "resource", value)
2722
-
2723
- @property
2724
- @pulumi.getter
2725
- def uid(self) -> pulumi.Input[str]:
2726
- """
2727
- UID identifies exactly one incarnation of the resource.
2728
- """
2729
- return pulumi.get(self, "uid")
2730
-
2731
- @uid.setter
2732
- def uid(self, value: pulumi.Input[str]):
2733
- pulumi.set(self, "uid", value)
2734
-
2735
- @property
2736
- @pulumi.getter(name="apiGroup")
2737
- def api_group(self) -> Optional[pulumi.Input[str]]:
2738
- """
2739
- APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2740
- """
2741
- return pulumi.get(self, "api_group")
2742
-
2743
- @api_group.setter
2744
- def api_group(self, value: Optional[pulumi.Input[str]]):
2745
- pulumi.set(self, "api_group", value)
2746
-
2747
-
2748
- if not MYPY:
2749
- class ResourceClaimSchedulingStatusArgsDict(TypedDict):
2750
- """
2751
- ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
2752
- """
2753
- name: pulumi.Input[str]
2754
- """
2755
- Name matches the pod.spec.resourceClaims[*].Name field.
2756
- """
2757
- unsuitable_nodes: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2758
- """
2759
- UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
2760
-
2761
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
2762
- """
2763
- elif False:
2764
- ResourceClaimSchedulingStatusArgsDict: TypeAlias = Mapping[str, Any]
2765
-
2766
- @pulumi.input_type
2767
- class ResourceClaimSchedulingStatusArgs:
2768
- def __init__(__self__, *,
2769
- name: pulumi.Input[str],
2770
- unsuitable_nodes: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
2771
- """
2772
- ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
2773
- :param pulumi.Input[str] name: Name matches the pod.spec.resourceClaims[*].Name field.
2774
- :param pulumi.Input[Sequence[pulumi.Input[str]]] unsuitable_nodes: UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
2775
-
2776
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
2777
- """
2778
- pulumi.set(__self__, "name", name)
2779
- if unsuitable_nodes is not None:
2780
- pulumi.set(__self__, "unsuitable_nodes", unsuitable_nodes)
2781
-
2782
- @property
2783
- @pulumi.getter
2784
- def name(self) -> pulumi.Input[str]:
2785
- """
2786
- Name matches the pod.spec.resourceClaims[*].Name field.
2787
- """
2788
- return pulumi.get(self, "name")
2789
-
2790
- @name.setter
2791
- def name(self, value: pulumi.Input[str]):
2792
- pulumi.set(self, "name", value)
2793
-
2794
- @property
2795
- @pulumi.getter(name="unsuitableNodes")
2796
- def unsuitable_nodes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
2797
- """
2798
- UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
2799
-
2800
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
2801
- """
2802
- return pulumi.get(self, "unsuitable_nodes")
2803
-
2804
- @unsuitable_nodes.setter
2805
- def unsuitable_nodes(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
2806
- pulumi.set(self, "unsuitable_nodes", value)
2807
-
2808
-
2809
- if not MYPY:
2810
- class ResourceClaimSpecPatchArgsDict(TypedDict):
2811
- """
2812
- ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2813
- """
2814
- controller: NotRequired[pulumi.Input[str]]
2815
- """
2816
- Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
2817
-
2818
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2819
-
2820
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2821
- """
2822
- devices: NotRequired[pulumi.Input['DeviceClaimPatchArgsDict']]
2823
- """
2824
- Devices defines how to request devices.
2825
- """
2826
- elif False:
2827
- ResourceClaimSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
2828
-
2829
- @pulumi.input_type
2830
- class ResourceClaimSpecPatchArgs:
2831
- def __init__(__self__, *,
2832
- controller: Optional[pulumi.Input[str]] = None,
2833
- devices: Optional[pulumi.Input['DeviceClaimPatchArgs']] = None):
2834
- """
2835
- ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2836
- :param pulumi.Input[str] controller: Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
2837
-
2838
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2839
-
2840
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2841
- :param pulumi.Input['DeviceClaimPatchArgs'] devices: Devices defines how to request devices.
2842
- """
2843
- if controller is not None:
2844
- pulumi.set(__self__, "controller", controller)
2845
- if devices is not None:
2846
- pulumi.set(__self__, "devices", devices)
2847
-
2848
- @property
2849
- @pulumi.getter
2850
- def controller(self) -> Optional[pulumi.Input[str]]:
2851
- """
2852
- Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
2853
-
2854
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2855
-
2856
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2857
- """
2858
- return pulumi.get(self, "controller")
2859
-
2860
- @controller.setter
2861
- def controller(self, value: Optional[pulumi.Input[str]]):
2862
- pulumi.set(self, "controller", value)
2863
-
2864
- @property
2865
- @pulumi.getter
2866
- def devices(self) -> Optional[pulumi.Input['DeviceClaimPatchArgs']]:
2867
- """
2868
- Devices defines how to request devices.
2869
- """
2870
- return pulumi.get(self, "devices")
2871
-
2872
- @devices.setter
2873
- def devices(self, value: Optional[pulumi.Input['DeviceClaimPatchArgs']]):
2874
- pulumi.set(self, "devices", value)
2875
-
2876
-
2877
- if not MYPY:
2878
- class ResourceClaimSpecArgsDict(TypedDict):
2879
- """
2880
- ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2881
- """
2882
- controller: NotRequired[pulumi.Input[str]]
2883
- """
2884
- Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
2885
-
2886
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2887
-
2888
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2889
- """
2890
- devices: NotRequired[pulumi.Input['DeviceClaimArgsDict']]
2891
- """
2892
- Devices defines how to request devices.
2893
- """
2894
- elif False:
2895
- ResourceClaimSpecArgsDict: TypeAlias = Mapping[str, Any]
2896
-
2897
- @pulumi.input_type
2898
- class ResourceClaimSpecArgs:
2899
- def __init__(__self__, *,
2900
- controller: Optional[pulumi.Input[str]] = None,
2901
- devices: Optional[pulumi.Input['DeviceClaimArgs']] = None):
2902
- """
2903
- ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
2904
- :param pulumi.Input[str] controller: Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
2905
-
2906
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2907
-
2908
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2909
- :param pulumi.Input['DeviceClaimArgs'] devices: Devices defines how to request devices.
2910
- """
2911
- if controller is not None:
2912
- pulumi.set(__self__, "controller", controller)
2913
- if devices is not None:
2914
- pulumi.set(__self__, "devices", devices)
2915
-
2916
- @property
2917
- @pulumi.getter
2918
- def controller(self) -> Optional[pulumi.Input[str]]:
2919
- """
2920
- Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
2921
-
2922
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2923
-
2924
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2925
- """
2926
- return pulumi.get(self, "controller")
2927
-
2928
- @controller.setter
2929
- def controller(self, value: Optional[pulumi.Input[str]]):
2930
- pulumi.set(self, "controller", value)
2931
-
2932
- @property
2933
- @pulumi.getter
2934
- def devices(self) -> Optional[pulumi.Input['DeviceClaimArgs']]:
2935
- """
2936
- Devices defines how to request devices.
2937
- """
2938
- return pulumi.get(self, "devices")
2939
-
2940
- @devices.setter
2941
- def devices(self, value: Optional[pulumi.Input['DeviceClaimArgs']]):
2942
- pulumi.set(self, "devices", value)
2943
-
2944
-
2945
- if not MYPY:
2946
- class ResourceClaimStatusArgsDict(TypedDict):
2947
- """
2948
- ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
2949
- """
2950
- allocation: NotRequired[pulumi.Input['AllocationResultArgsDict']]
2951
- """
2952
- Allocation is set once the claim has been allocated successfully.
2953
- """
2954
- deallocation_requested: NotRequired[pulumi.Input[bool]]
2955
- """
2956
- Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.
2957
-
2958
- This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2959
-
2960
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2961
- """
2962
- reserved_for: NotRequired[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgsDict']]]]
2963
- """
2964
- ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
2965
-
2966
- In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
2967
-
2968
- Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
2969
-
2970
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2971
- """
2972
- elif False:
2973
- ResourceClaimStatusArgsDict: TypeAlias = Mapping[str, Any]
2974
-
2975
- @pulumi.input_type
2976
- class ResourceClaimStatusArgs:
2977
- def __init__(__self__, *,
2978
- allocation: Optional[pulumi.Input['AllocationResultArgs']] = None,
2979
- deallocation_requested: Optional[pulumi.Input[bool]] = None,
2980
- reserved_for: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]] = None):
2981
- """
2982
- ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
2983
- :param pulumi.Input['AllocationResultArgs'] allocation: Allocation is set once the claim has been allocated successfully.
2984
- :param pulumi.Input[bool] deallocation_requested: Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.
2985
-
2986
- This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2987
-
2988
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
2989
- :param pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]] reserved_for: ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
2990
-
2991
- In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
2992
-
2993
- Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
2994
-
2995
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2996
- """
2997
- if allocation is not None:
2998
- pulumi.set(__self__, "allocation", allocation)
2999
- if deallocation_requested is not None:
3000
- pulumi.set(__self__, "deallocation_requested", deallocation_requested)
3001
- if reserved_for is not None:
3002
- pulumi.set(__self__, "reserved_for", reserved_for)
3003
-
3004
- @property
3005
- @pulumi.getter
3006
- def allocation(self) -> Optional[pulumi.Input['AllocationResultArgs']]:
3007
- """
3008
- Allocation is set once the claim has been allocated successfully.
3009
- """
3010
- return pulumi.get(self, "allocation")
3011
-
3012
- @allocation.setter
3013
- def allocation(self, value: Optional[pulumi.Input['AllocationResultArgs']]):
3014
- pulumi.set(self, "allocation", value)
3015
-
3016
- @property
3017
- @pulumi.getter(name="deallocationRequested")
3018
- def deallocation_requested(self) -> Optional[pulumi.Input[bool]]:
3019
- """
3020
- Indicates that a claim is to be deallocated. While this is set, no new consumers may be added to ReservedFor.
3021
-
3022
- This is only used if the claim needs to be deallocated by a DRA driver. That driver then must deallocate this claim and reset the field together with clearing the Allocation field.
3023
-
3024
- This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
3025
- """
3026
- return pulumi.get(self, "deallocation_requested")
3027
-
3028
- @deallocation_requested.setter
3029
- def deallocation_requested(self, value: Optional[pulumi.Input[bool]]):
3030
- pulumi.set(self, "deallocation_requested", value)
3031
-
3032
- @property
3033
- @pulumi.getter(name="reservedFor")
3034
- def reserved_for(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]]:
3035
- """
3036
- ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
3037
-
3038
- In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
3039
-
3040
- Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
3041
-
3042
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
3043
- """
3044
- return pulumi.get(self, "reserved_for")
3045
-
3046
- @reserved_for.setter
3047
- def reserved_for(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]]):
3048
- pulumi.set(self, "reserved_for", value)
3049
-
3050
-
3051
- if not MYPY:
3052
- class ResourceClaimTemplateSpecPatchArgsDict(TypedDict):
3053
- """
3054
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
3055
- """
3056
- metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaPatchArgsDict']]
3057
- """
3058
- ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3059
- """
3060
- spec: NotRequired[pulumi.Input['ResourceClaimSpecPatchArgsDict']]
3061
- """
3062
- Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
3063
- """
3064
- elif False:
3065
- ResourceClaimTemplateSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
3066
-
3067
- @pulumi.input_type
3068
- class ResourceClaimTemplateSpecPatchArgs:
3069
- def __init__(__self__, *,
3070
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
3071
- spec: Optional[pulumi.Input['ResourceClaimSpecPatchArgs']] = None):
3072
- """
3073
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
3074
- :param pulumi.Input['_meta.v1.ObjectMetaPatchArgs'] metadata: ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3075
- :param pulumi.Input['ResourceClaimSpecPatchArgs'] spec: Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
3076
- """
3077
- if metadata is not None:
3078
- pulumi.set(__self__, "metadata", metadata)
3079
- if spec is not None:
3080
- pulumi.set(__self__, "spec", spec)
3081
-
3082
- @property
3083
- @pulumi.getter
3084
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
3085
- """
3086
- ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3087
- """
3088
- return pulumi.get(self, "metadata")
3089
-
3090
- @metadata.setter
3091
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
3092
- pulumi.set(self, "metadata", value)
3093
-
3094
- @property
3095
- @pulumi.getter
3096
- def spec(self) -> Optional[pulumi.Input['ResourceClaimSpecPatchArgs']]:
3097
- """
3098
- Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
3099
- """
3100
- return pulumi.get(self, "spec")
3101
-
3102
- @spec.setter
3103
- def spec(self, value: Optional[pulumi.Input['ResourceClaimSpecPatchArgs']]):
3104
- pulumi.set(self, "spec", value)
3105
-
3106
-
3107
- if not MYPY:
3108
- class ResourceClaimTemplateSpecArgsDict(TypedDict):
3109
- """
3110
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
3111
- """
3112
- spec: pulumi.Input['ResourceClaimSpecArgsDict']
3113
- """
3114
- Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
3115
- """
3116
- metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
3117
- """
3118
- ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3119
- """
3120
- elif False:
3121
- ResourceClaimTemplateSpecArgsDict: TypeAlias = Mapping[str, Any]
3122
-
3123
- @pulumi.input_type
3124
- class ResourceClaimTemplateSpecArgs:
3125
- def __init__(__self__, *,
3126
- spec: pulumi.Input['ResourceClaimSpecArgs'],
3127
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
3128
- """
3129
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
3130
- :param pulumi.Input['ResourceClaimSpecArgs'] spec: Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
3131
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3132
- """
3133
- pulumi.set(__self__, "spec", spec)
3134
- if metadata is not None:
3135
- pulumi.set(__self__, "metadata", metadata)
3136
-
3137
- @property
3138
- @pulumi.getter
3139
- def spec(self) -> pulumi.Input['ResourceClaimSpecArgs']:
3140
- """
3141
- Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
3142
- """
3143
- return pulumi.get(self, "spec")
3144
-
3145
- @spec.setter
3146
- def spec(self, value: pulumi.Input['ResourceClaimSpecArgs']):
3147
- pulumi.set(self, "spec", value)
3148
-
3149
- @property
3150
- @pulumi.getter
3151
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
3152
- """
3153
- ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3154
- """
3155
- return pulumi.get(self, "metadata")
3156
-
3157
- @metadata.setter
3158
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
3159
- pulumi.set(self, "metadata", value)
3160
-
3161
-
3162
- if not MYPY:
3163
- class ResourceClaimTemplateArgsDict(TypedDict):
3164
- """
3165
- ResourceClaimTemplate is used to produce ResourceClaim objects.
3166
-
3167
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3168
- """
3169
- spec: pulumi.Input['ResourceClaimTemplateSpecArgsDict']
3170
- """
3171
- Describes the ResourceClaim that is to be generated.
3172
-
3173
- This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
3174
- """
3175
- api_version: NotRequired[pulumi.Input[str]]
3176
- """
3177
- 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
3178
- """
3179
- kind: NotRequired[pulumi.Input[str]]
3180
- """
3181
- 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
3182
- """
3183
- metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
3184
- """
3185
- Standard object metadata
3186
- """
3187
- elif False:
3188
- ResourceClaimTemplateArgsDict: TypeAlias = Mapping[str, Any]
3189
-
3190
- @pulumi.input_type
3191
- class ResourceClaimTemplateArgs:
3192
- def __init__(__self__, *,
3193
- spec: pulumi.Input['ResourceClaimTemplateSpecArgs'],
3194
- api_version: Optional[pulumi.Input[str]] = None,
3195
- kind: Optional[pulumi.Input[str]] = None,
3196
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
3197
- """
3198
- ResourceClaimTemplate is used to produce ResourceClaim objects.
3199
-
3200
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3201
- :param pulumi.Input['ResourceClaimTemplateSpecArgs'] spec: Describes the ResourceClaim that is to be generated.
3202
-
3203
- This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
3204
- :param pulumi.Input[str] api_version: 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
3205
- :param pulumi.Input[str] kind: 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
3206
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
3207
- """
3208
- pulumi.set(__self__, "spec", spec)
3209
- if api_version is not None:
3210
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
3211
- if kind is not None:
3212
- pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
3213
- if metadata is not None:
3214
- pulumi.set(__self__, "metadata", metadata)
3215
-
3216
- @property
3217
- @pulumi.getter
3218
- def spec(self) -> pulumi.Input['ResourceClaimTemplateSpecArgs']:
3219
- """
3220
- Describes the ResourceClaim that is to be generated.
3221
-
3222
- This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
3223
- """
3224
- return pulumi.get(self, "spec")
3225
-
3226
- @spec.setter
3227
- def spec(self, value: pulumi.Input['ResourceClaimTemplateSpecArgs']):
3228
- pulumi.set(self, "spec", value)
3229
-
3230
- @property
3231
- @pulumi.getter(name="apiVersion")
3232
- def api_version(self) -> Optional[pulumi.Input[str]]:
3233
- """
3234
- 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
3235
- """
3236
- return pulumi.get(self, "api_version")
3237
-
3238
- @api_version.setter
3239
- def api_version(self, value: Optional[pulumi.Input[str]]):
3240
- pulumi.set(self, "api_version", value)
3241
-
3242
- @property
3243
- @pulumi.getter
3244
- def kind(self) -> Optional[pulumi.Input[str]]:
3245
- """
3246
- 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
3247
- """
3248
- return pulumi.get(self, "kind")
3249
-
3250
- @kind.setter
3251
- def kind(self, value: Optional[pulumi.Input[str]]):
3252
- pulumi.set(self, "kind", value)
3253
-
3254
- @property
3255
- @pulumi.getter
3256
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
3257
- """
3258
- Standard object metadata
3259
- """
3260
- return pulumi.get(self, "metadata")
3261
-
3262
- @metadata.setter
3263
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
3264
- pulumi.set(self, "metadata", value)
3265
-
3266
-
3267
- if not MYPY:
3268
- class ResourceClaimArgsDict(TypedDict):
3269
- """
3270
- ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
3271
-
3272
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3273
- """
3274
- spec: pulumi.Input['ResourceClaimSpecArgsDict']
3275
- """
3276
- Spec describes what is being requested and how to configure it. The spec is immutable.
3277
- """
3278
- api_version: NotRequired[pulumi.Input[str]]
3279
- """
3280
- 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
3281
- """
3282
- kind: NotRequired[pulumi.Input[str]]
3283
- """
3284
- 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
3285
- """
3286
- metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
3287
- """
3288
- Standard object metadata
3289
- """
3290
- status: NotRequired[pulumi.Input['ResourceClaimStatusArgsDict']]
3291
- """
3292
- Status describes whether the claim is ready to use and what has been allocated.
3293
- """
3294
- elif False:
3295
- ResourceClaimArgsDict: TypeAlias = Mapping[str, Any]
3296
-
3297
- @pulumi.input_type
3298
- class ResourceClaimArgs:
3299
- def __init__(__self__, *,
3300
- spec: pulumi.Input['ResourceClaimSpecArgs'],
3301
- api_version: Optional[pulumi.Input[str]] = None,
3302
- kind: Optional[pulumi.Input[str]] = None,
3303
- metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
3304
- status: Optional[pulumi.Input['ResourceClaimStatusArgs']] = None):
3305
- """
3306
- ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
3307
-
3308
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3309
- :param pulumi.Input['ResourceClaimSpecArgs'] spec: Spec describes what is being requested and how to configure it. The spec is immutable.
3310
- :param pulumi.Input[str] api_version: 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
3311
- :param pulumi.Input[str] kind: 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
3312
- :param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
3313
- :param pulumi.Input['ResourceClaimStatusArgs'] status: Status describes whether the claim is ready to use and what has been allocated.
3314
- """
3315
- pulumi.set(__self__, "spec", spec)
3316
- if api_version is not None:
3317
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
3318
- if kind is not None:
3319
- pulumi.set(__self__, "kind", 'ResourceClaim')
3320
- if metadata is not None:
3321
- pulumi.set(__self__, "metadata", metadata)
3322
- if status is not None:
3323
- pulumi.set(__self__, "status", status)
3324
-
3325
- @property
3326
- @pulumi.getter
3327
- def spec(self) -> pulumi.Input['ResourceClaimSpecArgs']:
3328
- """
3329
- Spec describes what is being requested and how to configure it. The spec is immutable.
3330
- """
3331
- return pulumi.get(self, "spec")
3332
-
3333
- @spec.setter
3334
- def spec(self, value: pulumi.Input['ResourceClaimSpecArgs']):
3335
- pulumi.set(self, "spec", value)
3336
-
3337
- @property
3338
- @pulumi.getter(name="apiVersion")
3339
- def api_version(self) -> Optional[pulumi.Input[str]]:
3340
- """
3341
- 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
3342
- """
3343
- return pulumi.get(self, "api_version")
3344
-
3345
- @api_version.setter
3346
- def api_version(self, value: Optional[pulumi.Input[str]]):
3347
- pulumi.set(self, "api_version", value)
3348
-
3349
- @property
3350
- @pulumi.getter
3351
- def kind(self) -> Optional[pulumi.Input[str]]:
3352
- """
3353
- 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
3354
- """
3355
- return pulumi.get(self, "kind")
3356
-
3357
- @kind.setter
3358
- def kind(self, value: Optional[pulumi.Input[str]]):
3359
- pulumi.set(self, "kind", value)
3360
-
3361
- @property
3362
- @pulumi.getter
3363
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
3364
- """
3365
- Standard object metadata
3366
- """
3367
- return pulumi.get(self, "metadata")
3368
-
3369
- @metadata.setter
3370
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
3371
- pulumi.set(self, "metadata", value)
3372
-
3373
- @property
3374
- @pulumi.getter
3375
- def status(self) -> Optional[pulumi.Input['ResourceClaimStatusArgs']]:
3376
- """
3377
- Status describes whether the claim is ready to use and what has been allocated.
3378
- """
3379
- return pulumi.get(self, "status")
3380
-
3381
- @status.setter
3382
- def status(self, value: Optional[pulumi.Input['ResourceClaimStatusArgs']]):
3383
- pulumi.set(self, "status", value)
3384
-
3385
-
3386
- if not MYPY:
3387
- class ResourcePoolPatchArgsDict(TypedDict):
3388
- """
3389
- ResourcePool describes the pool that ResourceSlices belong to.
3390
- """
3391
- generation: NotRequired[pulumi.Input[int]]
3392
- """
3393
- Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
3394
-
3395
- Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
3396
- """
3397
- name: NotRequired[pulumi.Input[str]]
3398
- """
3399
- Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
3400
-
3401
- It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
3402
- """
3403
- resource_slice_count: NotRequired[pulumi.Input[int]]
3404
- """
3405
- ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
3406
-
3407
- Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
3408
- """
3409
- elif False:
3410
- ResourcePoolPatchArgsDict: TypeAlias = Mapping[str, Any]
3411
-
3412
- @pulumi.input_type
3413
- class ResourcePoolPatchArgs:
3414
- def __init__(__self__, *,
3415
- generation: Optional[pulumi.Input[int]] = None,
3416
- name: Optional[pulumi.Input[str]] = None,
3417
- resource_slice_count: Optional[pulumi.Input[int]] = None):
3418
- """
3419
- ResourcePool describes the pool that ResourceSlices belong to.
3420
- :param pulumi.Input[int] generation: Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
3421
-
3422
- Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
3423
- :param pulumi.Input[str] name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
3424
-
3425
- It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
3426
- :param pulumi.Input[int] resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
3427
-
3428
- Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
3429
- """
3430
- if generation is not None:
3431
- pulumi.set(__self__, "generation", generation)
3432
- if name is not None:
3433
- pulumi.set(__self__, "name", name)
3434
- if resource_slice_count is not None:
3435
- pulumi.set(__self__, "resource_slice_count", resource_slice_count)
3436
-
3437
- @property
3438
- @pulumi.getter
3439
- def generation(self) -> Optional[pulumi.Input[int]]:
3440
- """
3441
- Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
3442
-
3443
- Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
3444
- """
3445
- return pulumi.get(self, "generation")
3446
-
3447
- @generation.setter
3448
- def generation(self, value: Optional[pulumi.Input[int]]):
3449
- pulumi.set(self, "generation", value)
3450
-
3451
- @property
3452
- @pulumi.getter
3453
- def name(self) -> Optional[pulumi.Input[str]]:
3454
- """
3455
- Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
3456
-
3457
- It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
3458
- """
3459
- return pulumi.get(self, "name")
3460
-
3461
- @name.setter
3462
- def name(self, value: Optional[pulumi.Input[str]]):
3463
- pulumi.set(self, "name", value)
3464
-
3465
- @property
3466
- @pulumi.getter(name="resourceSliceCount")
3467
- def resource_slice_count(self) -> Optional[pulumi.Input[int]]:
3468
- """
3469
- ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
3470
-
3471
- Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
3472
- """
3473
- return pulumi.get(self, "resource_slice_count")
3474
-
3475
- @resource_slice_count.setter
3476
- def resource_slice_count(self, value: Optional[pulumi.Input[int]]):
3477
- pulumi.set(self, "resource_slice_count", value)
3478
-
3479
-
3480
- if not MYPY:
3481
- class ResourcePoolArgsDict(TypedDict):
3482
- """
3483
- ResourcePool describes the pool that ResourceSlices belong to.
3484
- """
3485
- generation: pulumi.Input[int]
3486
- """
3487
- Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
3488
-
3489
- Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
3490
- """
3491
- name: pulumi.Input[str]
3492
- """
3493
- Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
3494
-
3495
- It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
3496
- """
3497
- resource_slice_count: pulumi.Input[int]
3498
- """
3499
- ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
3500
-
3501
- Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
3502
- """
3503
- elif False:
3504
- ResourcePoolArgsDict: TypeAlias = Mapping[str, Any]
3505
-
3506
- @pulumi.input_type
3507
- class ResourcePoolArgs:
3508
- def __init__(__self__, *,
3509
- generation: pulumi.Input[int],
3510
- name: pulumi.Input[str],
3511
- resource_slice_count: pulumi.Input[int]):
3512
- """
3513
- ResourcePool describes the pool that ResourceSlices belong to.
3514
- :param pulumi.Input[int] generation: Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
3515
-
3516
- Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
3517
- :param pulumi.Input[str] name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
3518
-
3519
- It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
3520
- :param pulumi.Input[int] resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
3521
-
3522
- Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
3523
- """
3524
- pulumi.set(__self__, "generation", generation)
3525
- pulumi.set(__self__, "name", name)
3526
- pulumi.set(__self__, "resource_slice_count", resource_slice_count)
3527
-
3528
- @property
3529
- @pulumi.getter
3530
- def generation(self) -> pulumi.Input[int]:
3531
- """
3532
- Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
3533
-
3534
- Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
3535
- """
3536
- return pulumi.get(self, "generation")
3537
-
3538
- @generation.setter
3539
- def generation(self, value: pulumi.Input[int]):
3540
- pulumi.set(self, "generation", value)
3541
-
3542
- @property
3543
- @pulumi.getter
3544
- def name(self) -> pulumi.Input[str]:
3545
- """
3546
- Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
3547
-
3548
- It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
3549
- """
3550
- return pulumi.get(self, "name")
3551
-
3552
- @name.setter
3553
- def name(self, value: pulumi.Input[str]):
3554
- pulumi.set(self, "name", value)
3555
-
3556
- @property
3557
- @pulumi.getter(name="resourceSliceCount")
3558
- def resource_slice_count(self) -> pulumi.Input[int]:
3559
- """
3560
- ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
3561
-
3562
- Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
3563
- """
3564
- return pulumi.get(self, "resource_slice_count")
3565
-
3566
- @resource_slice_count.setter
3567
- def resource_slice_count(self, value: pulumi.Input[int]):
3568
- pulumi.set(self, "resource_slice_count", value)
3569
-
3570
-
3571
- if not MYPY:
3572
- class ResourceSliceSpecPatchArgsDict(TypedDict):
3573
- """
3574
- ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3575
- """
3576
- all_nodes: NotRequired[pulumi.Input[bool]]
3577
- """
3578
- AllNodes indicates that all nodes have access to the resources in the pool.
3579
-
3580
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3581
- """
3582
- devices: NotRequired[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgsDict']]]]
3583
- """
3584
- Devices lists some or all of the devices in this pool.
3585
-
3586
- Must not have more than 128 entries.
3587
- """
3588
- driver: NotRequired[pulumi.Input[str]]
3589
- """
3590
- Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3591
-
3592
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3593
- """
3594
- node_name: NotRequired[pulumi.Input[str]]
3595
- """
3596
- NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3597
-
3598
- This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3599
-
3600
- Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3601
- """
3602
- node_selector: NotRequired[pulumi.Input['_core.v1.NodeSelectorPatchArgsDict']]
3603
- """
3604
- NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3605
-
3606
- Must use exactly one term.
3607
-
3608
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3609
- """
3610
- pool: NotRequired[pulumi.Input['ResourcePoolPatchArgsDict']]
3611
- """
3612
- Pool describes the pool that this ResourceSlice belongs to.
3613
- """
3614
- elif False:
3615
- ResourceSliceSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
3616
-
3617
- @pulumi.input_type
3618
- class ResourceSliceSpecPatchArgs:
3619
- def __init__(__self__, *,
3620
- all_nodes: Optional[pulumi.Input[bool]] = None,
3621
- devices: Optional[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]]] = None,
3622
- driver: Optional[pulumi.Input[str]] = None,
3623
- node_name: Optional[pulumi.Input[str]] = None,
3624
- node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']] = None,
3625
- pool: Optional[pulumi.Input['ResourcePoolPatchArgs']] = None):
3626
- """
3627
- ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3628
- :param pulumi.Input[bool] all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
3629
-
3630
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3631
- :param pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]] devices: Devices lists some or all of the devices in this pool.
3632
-
3633
- Must not have more than 128 entries.
3634
- :param pulumi.Input[str] driver: Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3635
-
3636
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3637
- :param pulumi.Input[str] node_name: NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3638
-
3639
- This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3640
-
3641
- Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3642
- :param pulumi.Input['_core.v1.NodeSelectorPatchArgs'] node_selector: NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3643
-
3644
- Must use exactly one term.
3645
-
3646
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3647
- :param pulumi.Input['ResourcePoolPatchArgs'] pool: Pool describes the pool that this ResourceSlice belongs to.
3648
- """
3649
- if all_nodes is not None:
3650
- pulumi.set(__self__, "all_nodes", all_nodes)
3651
- if devices is not None:
3652
- pulumi.set(__self__, "devices", devices)
3653
- if driver is not None:
3654
- pulumi.set(__self__, "driver", driver)
3655
- if node_name is not None:
3656
- pulumi.set(__self__, "node_name", node_name)
3657
- if node_selector is not None:
3658
- pulumi.set(__self__, "node_selector", node_selector)
3659
- if pool is not None:
3660
- pulumi.set(__self__, "pool", pool)
3661
-
3662
- @property
3663
- @pulumi.getter(name="allNodes")
3664
- def all_nodes(self) -> Optional[pulumi.Input[bool]]:
3665
- """
3666
- AllNodes indicates that all nodes have access to the resources in the pool.
3667
-
3668
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3669
- """
3670
- return pulumi.get(self, "all_nodes")
3671
-
3672
- @all_nodes.setter
3673
- def all_nodes(self, value: Optional[pulumi.Input[bool]]):
3674
- pulumi.set(self, "all_nodes", value)
3675
-
3676
- @property
3677
- @pulumi.getter
3678
- def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]]]:
3679
- """
3680
- Devices lists some or all of the devices in this pool.
3681
-
3682
- Must not have more than 128 entries.
3683
- """
3684
- return pulumi.get(self, "devices")
3685
-
3686
- @devices.setter
3687
- def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]]]):
3688
- pulumi.set(self, "devices", value)
3689
-
3690
- @property
3691
- @pulumi.getter
3692
- def driver(self) -> Optional[pulumi.Input[str]]:
3693
- """
3694
- Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3695
-
3696
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3697
- """
3698
- return pulumi.get(self, "driver")
3699
-
3700
- @driver.setter
3701
- def driver(self, value: Optional[pulumi.Input[str]]):
3702
- pulumi.set(self, "driver", value)
3703
-
3704
- @property
3705
- @pulumi.getter(name="nodeName")
3706
- def node_name(self) -> Optional[pulumi.Input[str]]:
3707
- """
3708
- NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3709
-
3710
- This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3711
-
3712
- Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3713
- """
3714
- return pulumi.get(self, "node_name")
3715
-
3716
- @node_name.setter
3717
- def node_name(self, value: Optional[pulumi.Input[str]]):
3718
- pulumi.set(self, "node_name", value)
3719
-
3720
- @property
3721
- @pulumi.getter(name="nodeSelector")
3722
- def node_selector(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']]:
3723
- """
3724
- NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3725
-
3726
- Must use exactly one term.
3727
-
3728
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3729
- """
3730
- return pulumi.get(self, "node_selector")
3731
-
3732
- @node_selector.setter
3733
- def node_selector(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']]):
3734
- pulumi.set(self, "node_selector", value)
3735
-
3736
- @property
3737
- @pulumi.getter
3738
- def pool(self) -> Optional[pulumi.Input['ResourcePoolPatchArgs']]:
3739
- """
3740
- Pool describes the pool that this ResourceSlice belongs to.
3741
- """
3742
- return pulumi.get(self, "pool")
3743
-
3744
- @pool.setter
3745
- def pool(self, value: Optional[pulumi.Input['ResourcePoolPatchArgs']]):
3746
- pulumi.set(self, "pool", value)
3747
-
3748
-
3749
- if not MYPY:
3750
- class ResourceSliceSpecArgsDict(TypedDict):
3751
- """
3752
- ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3753
- """
3754
- driver: pulumi.Input[str]
3755
- """
3756
- Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3757
-
3758
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3759
- """
3760
- pool: pulumi.Input['ResourcePoolArgsDict']
3761
- """
3762
- Pool describes the pool that this ResourceSlice belongs to.
3763
- """
3764
- all_nodes: NotRequired[pulumi.Input[bool]]
3765
- """
3766
- AllNodes indicates that all nodes have access to the resources in the pool.
3767
-
3768
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3769
- """
3770
- devices: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceArgsDict']]]]
3771
- """
3772
- Devices lists some or all of the devices in this pool.
3773
-
3774
- Must not have more than 128 entries.
3775
- """
3776
- node_name: NotRequired[pulumi.Input[str]]
3777
- """
3778
- NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3779
-
3780
- This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3781
-
3782
- Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3783
- """
3784
- node_selector: NotRequired[pulumi.Input['_core.v1.NodeSelectorArgsDict']]
3785
- """
3786
- NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3787
-
3788
- Must use exactly one term.
3789
-
3790
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3791
- """
3792
- elif False:
3793
- ResourceSliceSpecArgsDict: TypeAlias = Mapping[str, Any]
3794
-
3795
- @pulumi.input_type
3796
- class ResourceSliceSpecArgs:
3797
- def __init__(__self__, *,
3798
- driver: pulumi.Input[str],
3799
- pool: pulumi.Input['ResourcePoolArgs'],
3800
- all_nodes: Optional[pulumi.Input[bool]] = None,
3801
- devices: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]]] = None,
3802
- node_name: Optional[pulumi.Input[str]] = None,
3803
- node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None):
3804
- """
3805
- ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
3806
- :param pulumi.Input[str] driver: Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3807
-
3808
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3809
- :param pulumi.Input['ResourcePoolArgs'] pool: Pool describes the pool that this ResourceSlice belongs to.
3810
- :param pulumi.Input[bool] all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
3811
-
3812
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3813
- :param pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]] devices: Devices lists some or all of the devices in this pool.
3814
-
3815
- Must not have more than 128 entries.
3816
- :param pulumi.Input[str] node_name: NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3817
-
3818
- This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3819
-
3820
- Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3821
- :param pulumi.Input['_core.v1.NodeSelectorArgs'] node_selector: NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3822
-
3823
- Must use exactly one term.
3824
-
3825
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3826
- """
3827
- pulumi.set(__self__, "driver", driver)
3828
- pulumi.set(__self__, "pool", pool)
3829
- if all_nodes is not None:
3830
- pulumi.set(__self__, "all_nodes", all_nodes)
3831
- if devices is not None:
3832
- pulumi.set(__self__, "devices", devices)
3833
- if node_name is not None:
3834
- pulumi.set(__self__, "node_name", node_name)
3835
- if node_selector is not None:
3836
- pulumi.set(__self__, "node_selector", node_selector)
3837
-
3838
- @property
3839
- @pulumi.getter
3840
- def driver(self) -> pulumi.Input[str]:
3841
- """
3842
- Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
3843
-
3844
- Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
3845
- """
3846
- return pulumi.get(self, "driver")
3847
-
3848
- @driver.setter
3849
- def driver(self, value: pulumi.Input[str]):
3850
- pulumi.set(self, "driver", value)
3851
-
3852
- @property
3853
- @pulumi.getter
3854
- def pool(self) -> pulumi.Input['ResourcePoolArgs']:
3855
- """
3856
- Pool describes the pool that this ResourceSlice belongs to.
3857
- """
3858
- return pulumi.get(self, "pool")
3859
-
3860
- @pool.setter
3861
- def pool(self, value: pulumi.Input['ResourcePoolArgs']):
3862
- pulumi.set(self, "pool", value)
3863
-
3864
- @property
3865
- @pulumi.getter(name="allNodes")
3866
- def all_nodes(self) -> Optional[pulumi.Input[bool]]:
3867
- """
3868
- AllNodes indicates that all nodes have access to the resources in the pool.
3869
-
3870
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3871
- """
3872
- return pulumi.get(self, "all_nodes")
3873
-
3874
- @all_nodes.setter
3875
- def all_nodes(self, value: Optional[pulumi.Input[bool]]):
3876
- pulumi.set(self, "all_nodes", value)
3877
-
3878
- @property
3879
- @pulumi.getter
3880
- def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]]]:
3881
- """
3882
- Devices lists some or all of the devices in this pool.
3883
-
3884
- Must not have more than 128 entries.
3885
- """
3886
- return pulumi.get(self, "devices")
3887
-
3888
- @devices.setter
3889
- def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]]]):
3890
- pulumi.set(self, "devices", value)
3891
-
3892
- @property
3893
- @pulumi.getter(name="nodeName")
3894
- def node_name(self) -> Optional[pulumi.Input[str]]:
3895
- """
3896
- NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
3897
-
3898
- This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
3899
-
3900
- Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
3901
- """
3902
- return pulumi.get(self, "node_name")
3903
-
3904
- @node_name.setter
3905
- def node_name(self, value: Optional[pulumi.Input[str]]):
3906
- pulumi.set(self, "node_name", value)
3907
-
3908
- @property
3909
- @pulumi.getter(name="nodeSelector")
3910
- def node_selector(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]:
3911
- """
3912
- NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
3913
-
3914
- Must use exactly one term.
3915
-
3916
- Exactly one of NodeName, NodeSelector and AllNodes must be set.
3917
- """
3918
- return pulumi.get(self, "node_selector")
3919
-
3920
- @node_selector.setter
3921
- def node_selector(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]):
3922
- pulumi.set(self, "node_selector", value)
3923
-
3924
-