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