pulumi-kubernetes 4.19.0__py3-none-any.whl → 4.19.0a1726527720__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.
- pulumi_kubernetes/__init__.py +0 -36
- pulumi_kubernetes/_utilities.py +1 -1
- pulumi_kubernetes/admissionregistration/v1/_inputs.py +6 -6
- pulumi_kubernetes/admissionregistration/v1/outputs.py +4 -4
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +8 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +8 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +0 -6
- pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +321 -1824
- pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +248 -1367
- pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +6 -6
- pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +4 -4
- pulumi_kubernetes/apiextensions/v1/_inputs.py +6 -6
- pulumi_kubernetes/apiextensions/v1/outputs.py +4 -4
- pulumi_kubernetes/apps/v1/_inputs.py +6 -6
- pulumi_kubernetes/apps/v1/outputs.py +4 -4
- pulumi_kubernetes/autoscaling/v2/_inputs.py +15 -15
- pulumi_kubernetes/autoscaling/v2/outputs.py +12 -12
- pulumi_kubernetes/batch/v1/_inputs.py +6 -6
- pulumi_kubernetes/batch/v1/outputs.py +4 -4
- pulumi_kubernetes/coordination/__init__.py +0 -3
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +0 -2
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +0 -2
- pulumi_kubernetes/core/v1/Binding.py +2 -2
- pulumi_kubernetes/core/v1/BindingPatch.py +2 -2
- pulumi_kubernetes/core/v1/ServiceAccount.py +4 -4
- pulumi_kubernetes/core/v1/ServiceAccountPatch.py +4 -4
- pulumi_kubernetes/core/v1/_inputs.py +313 -564
- pulumi_kubernetes/core/v1/outputs.py +230 -418
- pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +12 -12
- pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +8 -8
- pulumi_kubernetes/helm/v3/_inputs.py +3 -3
- pulumi_kubernetes/helm/v3/outputs.py +2 -2
- pulumi_kubernetes/helm/v4/Chart.py +0 -6
- pulumi_kubernetes/helm/v4/_inputs.py +3 -3
- pulumi_kubernetes/pulumi-plugin.json +1 -1
- pulumi_kubernetes/resource/__init__.py +0 -3
- pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +1 -1
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +0 -2
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +0 -2
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +8 -8
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +1 -1
- pulumi_kubernetes/resource/v1alpha3/__init__.py +0 -1
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +7 -455
- pulumi_kubernetes/resource/v1alpha3/outputs.py +5 -592
- pulumi_kubernetes/storage/v1/_inputs.py +4 -4
- pulumi_kubernetes/storage/v1/outputs.py +4 -4
- pulumi_kubernetes/yaml/yaml.py +0 -90
- {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/METADATA +6 -6
- {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/RECORD +64 -92
- {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/WHEEL +1 -1
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +0 -214
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +0 -222
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +0 -215
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +0 -234
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +0 -215
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +0 -226
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +0 -216
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +0 -215
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +0 -228
- pulumi_kubernetes/coordination/v1alpha2/__init__.py +0 -12
- pulumi_kubernetes/coordination/v1alpha2/_inputs.py +0 -393
- pulumi_kubernetes/coordination/v1alpha2/outputs.py +0 -313
- pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +0 -245
- pulumi_kubernetes/resource/v1beta1/DeviceClass.py +0 -237
- pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +0 -215
- pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +0 -248
- pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +0 -232
- pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +0 -216
- pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +0 -243
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +0 -229
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +0 -215
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +0 -240
- pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +0 -246
- pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +0 -216
- pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +0 -257
- pulumi_kubernetes/resource/v1beta1/__init__.py +0 -21
- pulumi_kubernetes/resource/v1beta1/_inputs.py +0 -3867
- pulumi_kubernetes/resource/v1beta1/outputs.py +0 -3334
- {pulumi_kubernetes-4.19.0.dist-info → pulumi_kubernetes-4.19.0a1726527720.dist-info}/top_level.txt +0 -0
|
@@ -18,8 +18,6 @@ from ... import core as _core
|
|
|
18
18
|
from ... import meta as _meta
|
|
19
19
|
|
|
20
20
|
__all__ = [
|
|
21
|
-
'AllocatedDeviceStatus',
|
|
22
|
-
'AllocatedDeviceStatusPatch',
|
|
23
21
|
'AllocationResult',
|
|
24
22
|
'AllocationResultPatch',
|
|
25
23
|
'BasicDevice',
|
|
@@ -50,8 +48,6 @@ __all__ = [
|
|
|
50
48
|
'DeviceRequestPatch',
|
|
51
49
|
'DeviceSelector',
|
|
52
50
|
'DeviceSelectorPatch',
|
|
53
|
-
'NetworkDeviceData',
|
|
54
|
-
'NetworkDeviceDataPatch',
|
|
55
51
|
'OpaqueDeviceConfiguration',
|
|
56
52
|
'OpaqueDeviceConfigurationPatch',
|
|
57
53
|
'PodSchedulingContext',
|
|
@@ -73,232 +69,10 @@ __all__ = [
|
|
|
73
69
|
'ResourceClaimTemplateSpecPatch',
|
|
74
70
|
'ResourcePool',
|
|
75
71
|
'ResourcePoolPatch',
|
|
76
|
-
'ResourceSlice',
|
|
77
72
|
'ResourceSliceSpec',
|
|
78
73
|
'ResourceSliceSpecPatch',
|
|
79
74
|
]
|
|
80
75
|
|
|
81
|
-
@pulumi.output_type
|
|
82
|
-
class AllocatedDeviceStatus(dict):
|
|
83
|
-
"""
|
|
84
|
-
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
85
|
-
"""
|
|
86
|
-
@staticmethod
|
|
87
|
-
def __key_warning(key: str):
|
|
88
|
-
suggest = None
|
|
89
|
-
if key == "networkData":
|
|
90
|
-
suggest = "network_data"
|
|
91
|
-
|
|
92
|
-
if suggest:
|
|
93
|
-
pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatus. Access the value via the '{suggest}' property getter instead.")
|
|
94
|
-
|
|
95
|
-
def __getitem__(self, key: str) -> Any:
|
|
96
|
-
AllocatedDeviceStatus.__key_warning(key)
|
|
97
|
-
return super().__getitem__(key)
|
|
98
|
-
|
|
99
|
-
def get(self, key: str, default = None) -> Any:
|
|
100
|
-
AllocatedDeviceStatus.__key_warning(key)
|
|
101
|
-
return super().get(key, default)
|
|
102
|
-
|
|
103
|
-
def __init__(__self__, *,
|
|
104
|
-
device: str,
|
|
105
|
-
driver: str,
|
|
106
|
-
pool: str,
|
|
107
|
-
conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None,
|
|
108
|
-
data: Optional[Any] = None,
|
|
109
|
-
network_data: Optional['outputs.NetworkDeviceData'] = None):
|
|
110
|
-
"""
|
|
111
|
-
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
112
|
-
:param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
113
|
-
:param 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.
|
|
114
|
-
|
|
115
|
-
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
116
|
-
:param 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>`).
|
|
117
|
-
|
|
118
|
-
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
119
|
-
:param Sequence['_meta.v1.ConditionArgs'] conditions: Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
120
|
-
:param Any data: Data contains arbitrary driver-specific data.
|
|
121
|
-
|
|
122
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
123
|
-
:param 'NetworkDeviceDataArgs' network_data: NetworkData contains network-related information specific to the device.
|
|
124
|
-
"""
|
|
125
|
-
pulumi.set(__self__, "device", device)
|
|
126
|
-
pulumi.set(__self__, "driver", driver)
|
|
127
|
-
pulumi.set(__self__, "pool", pool)
|
|
128
|
-
if conditions is not None:
|
|
129
|
-
pulumi.set(__self__, "conditions", conditions)
|
|
130
|
-
if data is not None:
|
|
131
|
-
pulumi.set(__self__, "data", data)
|
|
132
|
-
if network_data is not None:
|
|
133
|
-
pulumi.set(__self__, "network_data", network_data)
|
|
134
|
-
|
|
135
|
-
@property
|
|
136
|
-
@pulumi.getter
|
|
137
|
-
def device(self) -> str:
|
|
138
|
-
"""
|
|
139
|
-
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
140
|
-
"""
|
|
141
|
-
return pulumi.get(self, "device")
|
|
142
|
-
|
|
143
|
-
@property
|
|
144
|
-
@pulumi.getter
|
|
145
|
-
def driver(self) -> str:
|
|
146
|
-
"""
|
|
147
|
-
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.
|
|
148
|
-
|
|
149
|
-
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
150
|
-
"""
|
|
151
|
-
return pulumi.get(self, "driver")
|
|
152
|
-
|
|
153
|
-
@property
|
|
154
|
-
@pulumi.getter
|
|
155
|
-
def pool(self) -> str:
|
|
156
|
-
"""
|
|
157
|
-
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
158
|
-
|
|
159
|
-
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
160
|
-
"""
|
|
161
|
-
return pulumi.get(self, "pool")
|
|
162
|
-
|
|
163
|
-
@property
|
|
164
|
-
@pulumi.getter
|
|
165
|
-
def conditions(self) -> Optional[Sequence['_meta.v1.outputs.Condition']]:
|
|
166
|
-
"""
|
|
167
|
-
Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
168
|
-
"""
|
|
169
|
-
return pulumi.get(self, "conditions")
|
|
170
|
-
|
|
171
|
-
@property
|
|
172
|
-
@pulumi.getter
|
|
173
|
-
def data(self) -> Optional[Any]:
|
|
174
|
-
"""
|
|
175
|
-
Data contains arbitrary driver-specific data.
|
|
176
|
-
|
|
177
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
178
|
-
"""
|
|
179
|
-
return pulumi.get(self, "data")
|
|
180
|
-
|
|
181
|
-
@property
|
|
182
|
-
@pulumi.getter(name="networkData")
|
|
183
|
-
def network_data(self) -> Optional['outputs.NetworkDeviceData']:
|
|
184
|
-
"""
|
|
185
|
-
NetworkData contains network-related information specific to the device.
|
|
186
|
-
"""
|
|
187
|
-
return pulumi.get(self, "network_data")
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
@pulumi.output_type
|
|
191
|
-
class AllocatedDeviceStatusPatch(dict):
|
|
192
|
-
"""
|
|
193
|
-
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
194
|
-
"""
|
|
195
|
-
@staticmethod
|
|
196
|
-
def __key_warning(key: str):
|
|
197
|
-
suggest = None
|
|
198
|
-
if key == "networkData":
|
|
199
|
-
suggest = "network_data"
|
|
200
|
-
|
|
201
|
-
if suggest:
|
|
202
|
-
pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatusPatch. Access the value via the '{suggest}' property getter instead.")
|
|
203
|
-
|
|
204
|
-
def __getitem__(self, key: str) -> Any:
|
|
205
|
-
AllocatedDeviceStatusPatch.__key_warning(key)
|
|
206
|
-
return super().__getitem__(key)
|
|
207
|
-
|
|
208
|
-
def get(self, key: str, default = None) -> Any:
|
|
209
|
-
AllocatedDeviceStatusPatch.__key_warning(key)
|
|
210
|
-
return super().get(key, default)
|
|
211
|
-
|
|
212
|
-
def __init__(__self__, *,
|
|
213
|
-
conditions: Optional[Sequence['_meta.v1.outputs.ConditionPatch']] = None,
|
|
214
|
-
data: Optional[Any] = None,
|
|
215
|
-
device: Optional[str] = None,
|
|
216
|
-
driver: Optional[str] = None,
|
|
217
|
-
network_data: Optional['outputs.NetworkDeviceDataPatch'] = None,
|
|
218
|
-
pool: Optional[str] = None):
|
|
219
|
-
"""
|
|
220
|
-
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
221
|
-
:param Sequence['_meta.v1.ConditionPatchArgs'] conditions: Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
222
|
-
:param Any data: Data contains arbitrary driver-specific data.
|
|
223
|
-
|
|
224
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
225
|
-
:param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
226
|
-
:param 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.
|
|
227
|
-
|
|
228
|
-
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
229
|
-
:param 'NetworkDeviceDataPatchArgs' network_data: NetworkData contains network-related information specific to the device.
|
|
230
|
-
:param 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>`).
|
|
231
|
-
|
|
232
|
-
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
233
|
-
"""
|
|
234
|
-
if conditions is not None:
|
|
235
|
-
pulumi.set(__self__, "conditions", conditions)
|
|
236
|
-
if data is not None:
|
|
237
|
-
pulumi.set(__self__, "data", data)
|
|
238
|
-
if device is not None:
|
|
239
|
-
pulumi.set(__self__, "device", device)
|
|
240
|
-
if driver is not None:
|
|
241
|
-
pulumi.set(__self__, "driver", driver)
|
|
242
|
-
if network_data is not None:
|
|
243
|
-
pulumi.set(__self__, "network_data", network_data)
|
|
244
|
-
if pool is not None:
|
|
245
|
-
pulumi.set(__self__, "pool", pool)
|
|
246
|
-
|
|
247
|
-
@property
|
|
248
|
-
@pulumi.getter
|
|
249
|
-
def conditions(self) -> Optional[Sequence['_meta.v1.outputs.ConditionPatch']]:
|
|
250
|
-
"""
|
|
251
|
-
Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
252
|
-
"""
|
|
253
|
-
return pulumi.get(self, "conditions")
|
|
254
|
-
|
|
255
|
-
@property
|
|
256
|
-
@pulumi.getter
|
|
257
|
-
def data(self) -> Optional[Any]:
|
|
258
|
-
"""
|
|
259
|
-
Data contains arbitrary driver-specific data.
|
|
260
|
-
|
|
261
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
262
|
-
"""
|
|
263
|
-
return pulumi.get(self, "data")
|
|
264
|
-
|
|
265
|
-
@property
|
|
266
|
-
@pulumi.getter
|
|
267
|
-
def device(self) -> Optional[str]:
|
|
268
|
-
"""
|
|
269
|
-
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
270
|
-
"""
|
|
271
|
-
return pulumi.get(self, "device")
|
|
272
|
-
|
|
273
|
-
@property
|
|
274
|
-
@pulumi.getter
|
|
275
|
-
def driver(self) -> Optional[str]:
|
|
276
|
-
"""
|
|
277
|
-
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.
|
|
278
|
-
|
|
279
|
-
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
280
|
-
"""
|
|
281
|
-
return pulumi.get(self, "driver")
|
|
282
|
-
|
|
283
|
-
@property
|
|
284
|
-
@pulumi.getter(name="networkData")
|
|
285
|
-
def network_data(self) -> Optional['outputs.NetworkDeviceDataPatch']:
|
|
286
|
-
"""
|
|
287
|
-
NetworkData contains network-related information specific to the device.
|
|
288
|
-
"""
|
|
289
|
-
return pulumi.get(self, "network_data")
|
|
290
|
-
|
|
291
|
-
@property
|
|
292
|
-
@pulumi.getter
|
|
293
|
-
def pool(self) -> Optional[str]:
|
|
294
|
-
"""
|
|
295
|
-
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
296
|
-
|
|
297
|
-
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
298
|
-
"""
|
|
299
|
-
return pulumi.get(self, "pool")
|
|
300
|
-
|
|
301
|
-
|
|
302
76
|
@pulumi.output_type
|
|
303
77
|
class AllocationResult(dict):
|
|
304
78
|
"""
|
|
@@ -565,8 +339,6 @@ class CELDeviceSelector(dict):
|
|
|
565
339
|
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:
|
|
566
340
|
|
|
567
341
|
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
568
|
-
|
|
569
|
-
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
570
342
|
"""
|
|
571
343
|
pulumi.set(__self__, "expression", expression)
|
|
572
344
|
|
|
@@ -601,8 +373,6 @@ class CELDeviceSelector(dict):
|
|
|
601
373
|
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:
|
|
602
374
|
|
|
603
375
|
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
604
|
-
|
|
605
|
-
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
606
376
|
"""
|
|
607
377
|
return pulumi.get(self, "expression")
|
|
608
378
|
|
|
@@ -643,8 +413,6 @@ class CELDeviceSelectorPatch(dict):
|
|
|
643
413
|
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:
|
|
644
414
|
|
|
645
415
|
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
646
|
-
|
|
647
|
-
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
648
416
|
"""
|
|
649
417
|
if expression is not None:
|
|
650
418
|
pulumi.set(__self__, "expression", expression)
|
|
@@ -680,8 +448,6 @@ class CELDeviceSelectorPatch(dict):
|
|
|
680
448
|
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:
|
|
681
449
|
|
|
682
450
|
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
683
|
-
|
|
684
|
-
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
685
451
|
"""
|
|
686
452
|
return pulumi.get(self, "expression")
|
|
687
453
|
|
|
@@ -1602,8 +1368,6 @@ class DeviceRequest(dict):
|
|
|
1602
1368
|
|
|
1603
1369
|
Must be a DNS label.
|
|
1604
1370
|
:param 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.
|
|
1605
|
-
|
|
1606
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1607
1371
|
:param str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
1608
1372
|
|
|
1609
1373
|
- ExactCount: This request is for a specific number of devices.
|
|
@@ -1658,8 +1422,6 @@ class DeviceRequest(dict):
|
|
|
1658
1422
|
def admin_access(self) -> Optional[bool]:
|
|
1659
1423
|
"""
|
|
1660
1424
|
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.
|
|
1661
|
-
|
|
1662
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1663
1425
|
"""
|
|
1664
1426
|
return pulumi.get(self, "admin_access")
|
|
1665
1427
|
|
|
@@ -1705,29 +1467,11 @@ class DeviceRequestAllocationResult(dict):
|
|
|
1705
1467
|
"""
|
|
1706
1468
|
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
1707
1469
|
"""
|
|
1708
|
-
@staticmethod
|
|
1709
|
-
def __key_warning(key: str):
|
|
1710
|
-
suggest = None
|
|
1711
|
-
if key == "adminAccess":
|
|
1712
|
-
suggest = "admin_access"
|
|
1713
|
-
|
|
1714
|
-
if suggest:
|
|
1715
|
-
pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResult. Access the value via the '{suggest}' property getter instead.")
|
|
1716
|
-
|
|
1717
|
-
def __getitem__(self, key: str) -> Any:
|
|
1718
|
-
DeviceRequestAllocationResult.__key_warning(key)
|
|
1719
|
-
return super().__getitem__(key)
|
|
1720
|
-
|
|
1721
|
-
def get(self, key: str, default = None) -> Any:
|
|
1722
|
-
DeviceRequestAllocationResult.__key_warning(key)
|
|
1723
|
-
return super().get(key, default)
|
|
1724
|
-
|
|
1725
1470
|
def __init__(__self__, *,
|
|
1726
1471
|
device: str,
|
|
1727
1472
|
driver: str,
|
|
1728
1473
|
pool: str,
|
|
1729
|
-
request: str
|
|
1730
|
-
admin_access: Optional[bool] = None):
|
|
1474
|
+
request: str):
|
|
1731
1475
|
"""
|
|
1732
1476
|
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
1733
1477
|
:param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
@@ -1738,16 +1482,11 @@ class DeviceRequestAllocationResult(dict):
|
|
|
1738
1482
|
|
|
1739
1483
|
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
1740
1484
|
:param 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.
|
|
1741
|
-
:param bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1742
|
-
|
|
1743
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1744
1485
|
"""
|
|
1745
1486
|
pulumi.set(__self__, "device", device)
|
|
1746
1487
|
pulumi.set(__self__, "driver", driver)
|
|
1747
1488
|
pulumi.set(__self__, "pool", pool)
|
|
1748
1489
|
pulumi.set(__self__, "request", request)
|
|
1749
|
-
if admin_access is not None:
|
|
1750
|
-
pulumi.set(__self__, "admin_access", admin_access)
|
|
1751
1490
|
|
|
1752
1491
|
@property
|
|
1753
1492
|
@pulumi.getter
|
|
@@ -1785,50 +1524,19 @@ class DeviceRequestAllocationResult(dict):
|
|
|
1785
1524
|
"""
|
|
1786
1525
|
return pulumi.get(self, "request")
|
|
1787
1526
|
|
|
1788
|
-
@property
|
|
1789
|
-
@pulumi.getter(name="adminAccess")
|
|
1790
|
-
def admin_access(self) -> Optional[bool]:
|
|
1791
|
-
"""
|
|
1792
|
-
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1793
|
-
|
|
1794
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1795
|
-
"""
|
|
1796
|
-
return pulumi.get(self, "admin_access")
|
|
1797
|
-
|
|
1798
1527
|
|
|
1799
1528
|
@pulumi.output_type
|
|
1800
1529
|
class DeviceRequestAllocationResultPatch(dict):
|
|
1801
1530
|
"""
|
|
1802
1531
|
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
1803
1532
|
"""
|
|
1804
|
-
@staticmethod
|
|
1805
|
-
def __key_warning(key: str):
|
|
1806
|
-
suggest = None
|
|
1807
|
-
if key == "adminAccess":
|
|
1808
|
-
suggest = "admin_access"
|
|
1809
|
-
|
|
1810
|
-
if suggest:
|
|
1811
|
-
pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
|
|
1812
|
-
|
|
1813
|
-
def __getitem__(self, key: str) -> Any:
|
|
1814
|
-
DeviceRequestAllocationResultPatch.__key_warning(key)
|
|
1815
|
-
return super().__getitem__(key)
|
|
1816
|
-
|
|
1817
|
-
def get(self, key: str, default = None) -> Any:
|
|
1818
|
-
DeviceRequestAllocationResultPatch.__key_warning(key)
|
|
1819
|
-
return super().get(key, default)
|
|
1820
|
-
|
|
1821
1533
|
def __init__(__self__, *,
|
|
1822
|
-
admin_access: Optional[bool] = None,
|
|
1823
1534
|
device: Optional[str] = None,
|
|
1824
1535
|
driver: Optional[str] = None,
|
|
1825
1536
|
pool: Optional[str] = None,
|
|
1826
1537
|
request: Optional[str] = None):
|
|
1827
1538
|
"""
|
|
1828
1539
|
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
1829
|
-
:param bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1830
|
-
|
|
1831
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1832
1540
|
:param str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
1833
1541
|
:param 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.
|
|
1834
1542
|
|
|
@@ -1838,8 +1546,6 @@ class DeviceRequestAllocationResultPatch(dict):
|
|
|
1838
1546
|
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
1839
1547
|
:param 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.
|
|
1840
1548
|
"""
|
|
1841
|
-
if admin_access is not None:
|
|
1842
|
-
pulumi.set(__self__, "admin_access", admin_access)
|
|
1843
1549
|
if device is not None:
|
|
1844
1550
|
pulumi.set(__self__, "device", device)
|
|
1845
1551
|
if driver is not None:
|
|
@@ -1849,16 +1555,6 @@ class DeviceRequestAllocationResultPatch(dict):
|
|
|
1849
1555
|
if request is not None:
|
|
1850
1556
|
pulumi.set(__self__, "request", request)
|
|
1851
1557
|
|
|
1852
|
-
@property
|
|
1853
|
-
@pulumi.getter(name="adminAccess")
|
|
1854
|
-
def admin_access(self) -> Optional[bool]:
|
|
1855
|
-
"""
|
|
1856
|
-
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1857
|
-
|
|
1858
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1859
|
-
"""
|
|
1860
|
-
return pulumi.get(self, "admin_access")
|
|
1861
|
-
|
|
1862
1558
|
@property
|
|
1863
1559
|
@pulumi.getter
|
|
1864
1560
|
def device(self) -> Optional[str]:
|
|
@@ -1936,8 +1632,6 @@ class DeviceRequestPatch(dict):
|
|
|
1936
1632
|
|
|
1937
1633
|
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.
|
|
1938
1634
|
:param 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.
|
|
1939
|
-
|
|
1940
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1941
1635
|
:param str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
1942
1636
|
|
|
1943
1637
|
- ExactCount: This request is for a specific number of devices.
|
|
@@ -1980,8 +1674,6 @@ class DeviceRequestPatch(dict):
|
|
|
1980
1674
|
def admin_access(self) -> Optional[bool]:
|
|
1981
1675
|
"""
|
|
1982
1676
|
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.
|
|
1983
|
-
|
|
1984
|
-
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1985
1677
|
"""
|
|
1986
1678
|
return pulumi.get(self, "admin_access")
|
|
1987
1679
|
|
|
@@ -2090,154 +1782,6 @@ class DeviceSelectorPatch(dict):
|
|
|
2090
1782
|
return pulumi.get(self, "cel")
|
|
2091
1783
|
|
|
2092
1784
|
|
|
2093
|
-
@pulumi.output_type
|
|
2094
|
-
class NetworkDeviceData(dict):
|
|
2095
|
-
"""
|
|
2096
|
-
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
2097
|
-
"""
|
|
2098
|
-
@staticmethod
|
|
2099
|
-
def __key_warning(key: str):
|
|
2100
|
-
suggest = None
|
|
2101
|
-
if key == "hardwareAddress":
|
|
2102
|
-
suggest = "hardware_address"
|
|
2103
|
-
elif key == "interfaceName":
|
|
2104
|
-
suggest = "interface_name"
|
|
2105
|
-
|
|
2106
|
-
if suggest:
|
|
2107
|
-
pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceData. Access the value via the '{suggest}' property getter instead.")
|
|
2108
|
-
|
|
2109
|
-
def __getitem__(self, key: str) -> Any:
|
|
2110
|
-
NetworkDeviceData.__key_warning(key)
|
|
2111
|
-
return super().__getitem__(key)
|
|
2112
|
-
|
|
2113
|
-
def get(self, key: str, default = None) -> Any:
|
|
2114
|
-
NetworkDeviceData.__key_warning(key)
|
|
2115
|
-
return super().get(key, default)
|
|
2116
|
-
|
|
2117
|
-
def __init__(__self__, *,
|
|
2118
|
-
hardware_address: Optional[str] = None,
|
|
2119
|
-
interface_name: Optional[str] = None,
|
|
2120
|
-
ips: Optional[Sequence[str]] = None):
|
|
2121
|
-
"""
|
|
2122
|
-
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
2123
|
-
:param str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2124
|
-
|
|
2125
|
-
Must not be longer than 128 characters.
|
|
2126
|
-
:param str interface_name: InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
2127
|
-
|
|
2128
|
-
Must not be longer than 256 characters.
|
|
2129
|
-
:param Sequence[str] ips: IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
2130
|
-
"""
|
|
2131
|
-
if hardware_address is not None:
|
|
2132
|
-
pulumi.set(__self__, "hardware_address", hardware_address)
|
|
2133
|
-
if interface_name is not None:
|
|
2134
|
-
pulumi.set(__self__, "interface_name", interface_name)
|
|
2135
|
-
if ips is not None:
|
|
2136
|
-
pulumi.set(__self__, "ips", ips)
|
|
2137
|
-
|
|
2138
|
-
@property
|
|
2139
|
-
@pulumi.getter(name="hardwareAddress")
|
|
2140
|
-
def hardware_address(self) -> Optional[str]:
|
|
2141
|
-
"""
|
|
2142
|
-
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2143
|
-
|
|
2144
|
-
Must not be longer than 128 characters.
|
|
2145
|
-
"""
|
|
2146
|
-
return pulumi.get(self, "hardware_address")
|
|
2147
|
-
|
|
2148
|
-
@property
|
|
2149
|
-
@pulumi.getter(name="interfaceName")
|
|
2150
|
-
def interface_name(self) -> Optional[str]:
|
|
2151
|
-
"""
|
|
2152
|
-
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
2153
|
-
|
|
2154
|
-
Must not be longer than 256 characters.
|
|
2155
|
-
"""
|
|
2156
|
-
return pulumi.get(self, "interface_name")
|
|
2157
|
-
|
|
2158
|
-
@property
|
|
2159
|
-
@pulumi.getter
|
|
2160
|
-
def ips(self) -> Optional[Sequence[str]]:
|
|
2161
|
-
"""
|
|
2162
|
-
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
2163
|
-
"""
|
|
2164
|
-
return pulumi.get(self, "ips")
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
@pulumi.output_type
|
|
2168
|
-
class NetworkDeviceDataPatch(dict):
|
|
2169
|
-
"""
|
|
2170
|
-
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
2171
|
-
"""
|
|
2172
|
-
@staticmethod
|
|
2173
|
-
def __key_warning(key: str):
|
|
2174
|
-
suggest = None
|
|
2175
|
-
if key == "hardwareAddress":
|
|
2176
|
-
suggest = "hardware_address"
|
|
2177
|
-
elif key == "interfaceName":
|
|
2178
|
-
suggest = "interface_name"
|
|
2179
|
-
|
|
2180
|
-
if suggest:
|
|
2181
|
-
pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceDataPatch. Access the value via the '{suggest}' property getter instead.")
|
|
2182
|
-
|
|
2183
|
-
def __getitem__(self, key: str) -> Any:
|
|
2184
|
-
NetworkDeviceDataPatch.__key_warning(key)
|
|
2185
|
-
return super().__getitem__(key)
|
|
2186
|
-
|
|
2187
|
-
def get(self, key: str, default = None) -> Any:
|
|
2188
|
-
NetworkDeviceDataPatch.__key_warning(key)
|
|
2189
|
-
return super().get(key, default)
|
|
2190
|
-
|
|
2191
|
-
def __init__(__self__, *,
|
|
2192
|
-
hardware_address: Optional[str] = None,
|
|
2193
|
-
interface_name: Optional[str] = None,
|
|
2194
|
-
ips: Optional[Sequence[str]] = None):
|
|
2195
|
-
"""
|
|
2196
|
-
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
2197
|
-
:param str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2198
|
-
|
|
2199
|
-
Must not be longer than 128 characters.
|
|
2200
|
-
:param str interface_name: InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
2201
|
-
|
|
2202
|
-
Must not be longer than 256 characters.
|
|
2203
|
-
:param Sequence[str] ips: IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
2204
|
-
"""
|
|
2205
|
-
if hardware_address is not None:
|
|
2206
|
-
pulumi.set(__self__, "hardware_address", hardware_address)
|
|
2207
|
-
if interface_name is not None:
|
|
2208
|
-
pulumi.set(__self__, "interface_name", interface_name)
|
|
2209
|
-
if ips is not None:
|
|
2210
|
-
pulumi.set(__self__, "ips", ips)
|
|
2211
|
-
|
|
2212
|
-
@property
|
|
2213
|
-
@pulumi.getter(name="hardwareAddress")
|
|
2214
|
-
def hardware_address(self) -> Optional[str]:
|
|
2215
|
-
"""
|
|
2216
|
-
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2217
|
-
|
|
2218
|
-
Must not be longer than 128 characters.
|
|
2219
|
-
"""
|
|
2220
|
-
return pulumi.get(self, "hardware_address")
|
|
2221
|
-
|
|
2222
|
-
@property
|
|
2223
|
-
@pulumi.getter(name="interfaceName")
|
|
2224
|
-
def interface_name(self) -> Optional[str]:
|
|
2225
|
-
"""
|
|
2226
|
-
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
2227
|
-
|
|
2228
|
-
Must not be longer than 256 characters.
|
|
2229
|
-
"""
|
|
2230
|
-
return pulumi.get(self, "interface_name")
|
|
2231
|
-
|
|
2232
|
-
@property
|
|
2233
|
-
@pulumi.getter
|
|
2234
|
-
def ips(self) -> Optional[Sequence[str]]:
|
|
2235
|
-
"""
|
|
2236
|
-
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
2237
|
-
"""
|
|
2238
|
-
return pulumi.get(self, "ips")
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
1785
|
@pulumi.output_type
|
|
2242
1786
|
class OpaqueDeviceConfiguration(dict):
|
|
2243
1787
|
"""
|
|
@@ -2254,8 +1798,6 @@ class OpaqueDeviceConfiguration(dict):
|
|
|
2254
1798
|
|
|
2255
1799
|
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2256
1800
|
: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.
|
|
2257
|
-
|
|
2258
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2259
1801
|
"""
|
|
2260
1802
|
pulumi.set(__self__, "driver", driver)
|
|
2261
1803
|
pulumi.set(__self__, "parameters", parameters)
|
|
@@ -2277,8 +1819,6 @@ class OpaqueDeviceConfiguration(dict):
|
|
|
2277
1819
|
def parameters(self) -> Any:
|
|
2278
1820
|
"""
|
|
2279
1821
|
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.
|
|
2280
|
-
|
|
2281
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2282
1822
|
"""
|
|
2283
1823
|
return pulumi.get(self, "parameters")
|
|
2284
1824
|
|
|
@@ -2299,8 +1839,6 @@ class OpaqueDeviceConfigurationPatch(dict):
|
|
|
2299
1839
|
|
|
2300
1840
|
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2301
1841
|
: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.
|
|
2302
|
-
|
|
2303
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2304
1842
|
"""
|
|
2305
1843
|
if driver is not None:
|
|
2306
1844
|
pulumi.set(__self__, "driver", driver)
|
|
@@ -2324,8 +1862,6 @@ class OpaqueDeviceConfigurationPatch(dict):
|
|
|
2324
1862
|
def parameters(self) -> Optional[Any]:
|
|
2325
1863
|
"""
|
|
2326
1864
|
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.
|
|
2327
|
-
|
|
2328
|
-
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2329
1865
|
"""
|
|
2330
1866
|
return pulumi.get(self, "parameters")
|
|
2331
1867
|
|
|
@@ -3081,7 +2617,6 @@ class ResourceClaimStatus(dict):
|
|
|
3081
2617
|
def __init__(__self__, *,
|
|
3082
2618
|
allocation: Optional['outputs.AllocationResult'] = None,
|
|
3083
2619
|
deallocation_requested: Optional[bool] = None,
|
|
3084
|
-
devices: Optional[Sequence['outputs.AllocatedDeviceStatus']] = None,
|
|
3085
2620
|
reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
|
|
3086
2621
|
"""
|
|
3087
2622
|
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
@@ -3091,7 +2626,6 @@ class ResourceClaimStatus(dict):
|
|
|
3091
2626
|
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.
|
|
3092
2627
|
|
|
3093
2628
|
This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
|
|
3094
|
-
:param Sequence['AllocatedDeviceStatusArgs'] devices: Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3095
2629
|
:param Sequence['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.
|
|
3096
2630
|
|
|
3097
2631
|
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.
|
|
@@ -3104,8 +2638,6 @@ class ResourceClaimStatus(dict):
|
|
|
3104
2638
|
pulumi.set(__self__, "allocation", allocation)
|
|
3105
2639
|
if deallocation_requested is not None:
|
|
3106
2640
|
pulumi.set(__self__, "deallocation_requested", deallocation_requested)
|
|
3107
|
-
if devices is not None:
|
|
3108
|
-
pulumi.set(__self__, "devices", devices)
|
|
3109
2641
|
if reserved_for is not None:
|
|
3110
2642
|
pulumi.set(__self__, "reserved_for", reserved_for)
|
|
3111
2643
|
|
|
@@ -3129,14 +2661,6 @@ class ResourceClaimStatus(dict):
|
|
|
3129
2661
|
"""
|
|
3130
2662
|
return pulumi.get(self, "deallocation_requested")
|
|
3131
2663
|
|
|
3132
|
-
@property
|
|
3133
|
-
@pulumi.getter
|
|
3134
|
-
def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatus']]:
|
|
3135
|
-
"""
|
|
3136
|
-
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3137
|
-
"""
|
|
3138
|
-
return pulumi.get(self, "devices")
|
|
3139
|
-
|
|
3140
2664
|
@property
|
|
3141
2665
|
@pulumi.getter(name="reservedFor")
|
|
3142
2666
|
def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
|
|
@@ -3179,7 +2703,6 @@ class ResourceClaimStatusPatch(dict):
|
|
|
3179
2703
|
def __init__(__self__, *,
|
|
3180
2704
|
allocation: Optional['outputs.AllocationResultPatch'] = None,
|
|
3181
2705
|
deallocation_requested: Optional[bool] = None,
|
|
3182
|
-
devices: Optional[Sequence['outputs.AllocatedDeviceStatusPatch']] = None,
|
|
3183
2706
|
reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
|
|
3184
2707
|
"""
|
|
3185
2708
|
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
@@ -3189,7 +2712,6 @@ class ResourceClaimStatusPatch(dict):
|
|
|
3189
2712
|
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.
|
|
3190
2713
|
|
|
3191
2714
|
This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
|
|
3192
|
-
:param Sequence['AllocatedDeviceStatusPatchArgs'] devices: Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3193
2715
|
:param Sequence['ResourceClaimConsumerReferencePatchArgs'] 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.
|
|
3194
2716
|
|
|
3195
2717
|
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.
|
|
@@ -3202,8 +2724,6 @@ class ResourceClaimStatusPatch(dict):
|
|
|
3202
2724
|
pulumi.set(__self__, "allocation", allocation)
|
|
3203
2725
|
if deallocation_requested is not None:
|
|
3204
2726
|
pulumi.set(__self__, "deallocation_requested", deallocation_requested)
|
|
3205
|
-
if devices is not None:
|
|
3206
|
-
pulumi.set(__self__, "devices", devices)
|
|
3207
2727
|
if reserved_for is not None:
|
|
3208
2728
|
pulumi.set(__self__, "reserved_for", reserved_for)
|
|
3209
2729
|
|
|
@@ -3227,14 +2747,6 @@ class ResourceClaimStatusPatch(dict):
|
|
|
3227
2747
|
"""
|
|
3228
2748
|
return pulumi.get(self, "deallocation_requested")
|
|
3229
2749
|
|
|
3230
|
-
@property
|
|
3231
|
-
@pulumi.getter
|
|
3232
|
-
def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatusPatch']]:
|
|
3233
|
-
"""
|
|
3234
|
-
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3235
|
-
"""
|
|
3236
|
-
return pulumi.get(self, "devices")
|
|
3237
|
-
|
|
3238
2750
|
@property
|
|
3239
2751
|
@pulumi.getter(name="reservedFor")
|
|
3240
2752
|
def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
|
|
@@ -3344,7 +2856,7 @@ class ResourceClaimTemplateSpec(dict):
|
|
|
3344
2856
|
"""
|
|
3345
2857
|
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
3346
2858
|
:param '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.
|
|
3347
|
-
:param '_meta.v1.ObjectMetaArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the
|
|
2859
|
+
:param '_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.
|
|
3348
2860
|
"""
|
|
3349
2861
|
pulumi.set(__self__, "spec", spec)
|
|
3350
2862
|
if metadata is not None:
|
|
@@ -3362,7 +2874,7 @@ class ResourceClaimTemplateSpec(dict):
|
|
|
3362
2874
|
@pulumi.getter
|
|
3363
2875
|
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
3364
2876
|
"""
|
|
3365
|
-
ObjectMeta may contain labels and annotations that will be copied into the
|
|
2877
|
+
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.
|
|
3366
2878
|
"""
|
|
3367
2879
|
return pulumi.get(self, "metadata")
|
|
3368
2880
|
|
|
@@ -3377,7 +2889,7 @@ class ResourceClaimTemplateSpecPatch(dict):
|
|
|
3377
2889
|
spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
|
|
3378
2890
|
"""
|
|
3379
2891
|
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
3380
|
-
:param '_meta.v1.ObjectMetaPatchArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the
|
|
2892
|
+
:param '_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.
|
|
3381
2893
|
:param '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.
|
|
3382
2894
|
"""
|
|
3383
2895
|
if metadata is not None:
|
|
@@ -3389,7 +2901,7 @@ class ResourceClaimTemplateSpecPatch(dict):
|
|
|
3389
2901
|
@pulumi.getter
|
|
3390
2902
|
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
|
|
3391
2903
|
"""
|
|
3392
|
-
ObjectMeta may contain labels and annotations that will be copied into the
|
|
2904
|
+
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.
|
|
3393
2905
|
"""
|
|
3394
2906
|
return pulumi.get(self, "metadata")
|
|
3395
2907
|
|
|
@@ -3551,105 +3063,6 @@ class ResourcePoolPatch(dict):
|
|
|
3551
3063
|
return pulumi.get(self, "resource_slice_count")
|
|
3552
3064
|
|
|
3553
3065
|
|
|
3554
|
-
@pulumi.output_type
|
|
3555
|
-
class ResourceSlice(dict):
|
|
3556
|
-
"""
|
|
3557
|
-
ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
|
|
3558
|
-
|
|
3559
|
-
At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
|
|
3560
|
-
|
|
3561
|
-
Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
|
|
3562
|
-
|
|
3563
|
-
When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
|
|
3564
|
-
|
|
3565
|
-
For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
|
|
3566
|
-
|
|
3567
|
-
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3568
|
-
"""
|
|
3569
|
-
@staticmethod
|
|
3570
|
-
def __key_warning(key: str):
|
|
3571
|
-
suggest = None
|
|
3572
|
-
if key == "apiVersion":
|
|
3573
|
-
suggest = "api_version"
|
|
3574
|
-
|
|
3575
|
-
if suggest:
|
|
3576
|
-
pulumi.log.warn(f"Key '{key}' not found in ResourceSlice. Access the value via the '{suggest}' property getter instead.")
|
|
3577
|
-
|
|
3578
|
-
def __getitem__(self, key: str) -> Any:
|
|
3579
|
-
ResourceSlice.__key_warning(key)
|
|
3580
|
-
return super().__getitem__(key)
|
|
3581
|
-
|
|
3582
|
-
def get(self, key: str, default = None) -> Any:
|
|
3583
|
-
ResourceSlice.__key_warning(key)
|
|
3584
|
-
return super().get(key, default)
|
|
3585
|
-
|
|
3586
|
-
def __init__(__self__, *,
|
|
3587
|
-
spec: 'outputs.ResourceSliceSpec',
|
|
3588
|
-
api_version: Optional[str] = None,
|
|
3589
|
-
kind: Optional[str] = None,
|
|
3590
|
-
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
|
|
3591
|
-
"""
|
|
3592
|
-
ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
|
|
3593
|
-
|
|
3594
|
-
At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
|
|
3595
|
-
|
|
3596
|
-
Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
|
|
3597
|
-
|
|
3598
|
-
When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
|
|
3599
|
-
|
|
3600
|
-
For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
|
|
3601
|
-
|
|
3602
|
-
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3603
|
-
:param 'ResourceSliceSpecArgs' spec: Contains the information published by the driver.
|
|
3604
|
-
|
|
3605
|
-
Changing the spec automatically increments the metadata.generation number.
|
|
3606
|
-
:param 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
|
|
3607
|
-
:param 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
|
|
3608
|
-
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
|
|
3609
|
-
"""
|
|
3610
|
-
pulumi.set(__self__, "spec", spec)
|
|
3611
|
-
if api_version is not None:
|
|
3612
|
-
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha3')
|
|
3613
|
-
if kind is not None:
|
|
3614
|
-
pulumi.set(__self__, "kind", 'ResourceSlice')
|
|
3615
|
-
if metadata is not None:
|
|
3616
|
-
pulumi.set(__self__, "metadata", metadata)
|
|
3617
|
-
|
|
3618
|
-
@property
|
|
3619
|
-
@pulumi.getter
|
|
3620
|
-
def spec(self) -> 'outputs.ResourceSliceSpec':
|
|
3621
|
-
"""
|
|
3622
|
-
Contains the information published by the driver.
|
|
3623
|
-
|
|
3624
|
-
Changing the spec automatically increments the metadata.generation number.
|
|
3625
|
-
"""
|
|
3626
|
-
return pulumi.get(self, "spec")
|
|
3627
|
-
|
|
3628
|
-
@property
|
|
3629
|
-
@pulumi.getter(name="apiVersion")
|
|
3630
|
-
def api_version(self) -> Optional[str]:
|
|
3631
|
-
"""
|
|
3632
|
-
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
|
|
3633
|
-
"""
|
|
3634
|
-
return pulumi.get(self, "api_version")
|
|
3635
|
-
|
|
3636
|
-
@property
|
|
3637
|
-
@pulumi.getter
|
|
3638
|
-
def kind(self) -> Optional[str]:
|
|
3639
|
-
"""
|
|
3640
|
-
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
|
|
3641
|
-
"""
|
|
3642
|
-
return pulumi.get(self, "kind")
|
|
3643
|
-
|
|
3644
|
-
@property
|
|
3645
|
-
@pulumi.getter
|
|
3646
|
-
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
3647
|
-
"""
|
|
3648
|
-
Standard object metadata
|
|
3649
|
-
"""
|
|
3650
|
-
return pulumi.get(self, "metadata")
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
3066
|
@pulumi.output_type
|
|
3654
3067
|
class ResourceSliceSpec(dict):
|
|
3655
3068
|
"""
|