pulumi-kubernetes 4.23.0a1746131759__py3-none-any.whl → 4.23.0a1746153578__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 (520) hide show
  1. pulumi_kubernetes/__init__.py +36 -2
  2. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +1 -3
  3. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +1 -3
  4. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +1 -3
  5. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +1 -3
  6. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +1 -3
  7. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +1 -3
  8. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +1 -3
  9. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +1 -3
  10. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +1 -3
  11. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +1 -3
  12. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +1 -3
  13. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +1 -3
  14. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +1 -3
  15. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +1 -3
  16. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +1 -3
  17. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +1 -3
  18. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +1 -3
  19. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +1 -3
  20. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +1 -3
  21. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +1 -3
  22. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +1 -3
  23. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +1 -3
  24. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +1 -3
  25. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +1 -3
  26. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +30 -30
  27. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +20 -20
  28. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +1 -3
  29. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +1 -3
  30. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +1 -3
  31. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +1 -3
  32. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +1 -3
  33. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +1 -3
  34. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +1 -3
  35. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +1 -3
  36. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +1 -3
  37. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +1 -3
  38. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +1 -3
  39. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +1 -3
  40. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +1 -3
  41. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +1 -3
  42. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +1 -3
  43. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +1 -3
  44. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +1 -3
  45. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +1 -3
  46. pulumi_kubernetes/apiregistration/v1/APIService.py +1 -3
  47. pulumi_kubernetes/apiregistration/v1/APIServiceList.py +1 -3
  48. pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +1 -3
  49. pulumi_kubernetes/apiregistration/v1beta1/APIService.py +1 -3
  50. pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +1 -3
  51. pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +1 -3
  52. pulumi_kubernetes/apps/v1/ControllerRevision.py +1 -3
  53. pulumi_kubernetes/apps/v1/ControllerRevisionList.py +1 -3
  54. pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +1 -3
  55. pulumi_kubernetes/apps/v1/DaemonSet.py +1 -3
  56. pulumi_kubernetes/apps/v1/DaemonSetList.py +1 -3
  57. pulumi_kubernetes/apps/v1/DaemonSetPatch.py +1 -3
  58. pulumi_kubernetes/apps/v1/Deployment.py +1 -3
  59. pulumi_kubernetes/apps/v1/DeploymentList.py +1 -3
  60. pulumi_kubernetes/apps/v1/DeploymentPatch.py +1 -3
  61. pulumi_kubernetes/apps/v1/ReplicaSet.py +1 -3
  62. pulumi_kubernetes/apps/v1/ReplicaSetList.py +5 -7
  63. pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +1 -3
  64. pulumi_kubernetes/apps/v1/StatefulSet.py +1 -3
  65. pulumi_kubernetes/apps/v1/StatefulSetList.py +1 -3
  66. pulumi_kubernetes/apps/v1/StatefulSetPatch.py +1 -3
  67. pulumi_kubernetes/apps/v1/_inputs.py +109 -56
  68. pulumi_kubernetes/apps/v1/outputs.py +129 -56
  69. pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +1 -3
  70. pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +1 -3
  71. pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +1 -3
  72. pulumi_kubernetes/apps/v1beta1/Deployment.py +1 -3
  73. pulumi_kubernetes/apps/v1beta1/DeploymentList.py +1 -3
  74. pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +1 -3
  75. pulumi_kubernetes/apps/v1beta1/StatefulSet.py +1 -3
  76. pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +1 -3
  77. pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +1 -3
  78. pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +1 -3
  79. pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +1 -3
  80. pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +1 -3
  81. pulumi_kubernetes/apps/v1beta2/DaemonSet.py +1 -3
  82. pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +1 -3
  83. pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +1 -3
  84. pulumi_kubernetes/apps/v1beta2/Deployment.py +1 -3
  85. pulumi_kubernetes/apps/v1beta2/DeploymentList.py +1 -3
  86. pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +1 -3
  87. pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +1 -3
  88. pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +1 -3
  89. pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +1 -3
  90. pulumi_kubernetes/apps/v1beta2/StatefulSet.py +1 -3
  91. pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +1 -3
  92. pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +1 -3
  93. pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +1 -3
  94. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +1 -3
  95. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +1 -3
  96. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +1 -3
  97. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +1 -3
  98. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +1 -3
  99. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +1 -3
  100. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +1 -3
  101. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +1 -3
  102. pulumi_kubernetes/autoscaling/v2/_inputs.py +92 -12
  103. pulumi_kubernetes/autoscaling/v2/outputs.py +66 -10
  104. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +1 -3
  105. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +1 -3
  106. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +1 -3
  107. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +1 -3
  108. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +1 -3
  109. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +1 -3
  110. pulumi_kubernetes/batch/v1/CronJob.py +1 -3
  111. pulumi_kubernetes/batch/v1/CronJobList.py +1 -3
  112. pulumi_kubernetes/batch/v1/CronJobPatch.py +1 -3
  113. pulumi_kubernetes/batch/v1/Job.py +1 -3
  114. pulumi_kubernetes/batch/v1/JobList.py +1 -3
  115. pulumi_kubernetes/batch/v1/JobPatch.py +1 -3
  116. pulumi_kubernetes/batch/v1/_inputs.py +12 -42
  117. pulumi_kubernetes/batch/v1/outputs.py +8 -32
  118. pulumi_kubernetes/batch/v1beta1/CronJob.py +1 -3
  119. pulumi_kubernetes/batch/v1beta1/CronJobList.py +1 -3
  120. pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +1 -3
  121. pulumi_kubernetes/batch/v2alpha1/CronJob.py +1 -3
  122. pulumi_kubernetes/batch/v2alpha1/CronJobList.py +1 -3
  123. pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +1 -3
  124. pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +1 -3
  125. pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +1 -3
  126. pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +1 -3
  127. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +3 -3
  128. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +1 -3
  129. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +3 -3
  130. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +1 -3
  131. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +1 -3
  132. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +1 -3
  133. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +227 -0
  134. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +217 -0
  135. pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +238 -0
  136. pulumi_kubernetes/certificates/v1beta1/__init__.py +3 -0
  137. pulumi_kubernetes/certificates/v1beta1/_inputs.py +292 -0
  138. pulumi_kubernetes/certificates/v1beta1/outputs.py +241 -0
  139. pulumi_kubernetes/coordination/v1/Lease.py +1 -3
  140. pulumi_kubernetes/coordination/v1/LeaseList.py +1 -3
  141. pulumi_kubernetes/coordination/v1/LeasePatch.py +1 -3
  142. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +2 -4
  143. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +1 -3
  144. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +2 -4
  145. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +2 -4
  146. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +1 -3
  147. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +2 -4
  148. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +6 -6
  149. pulumi_kubernetes/coordination/v1alpha2/outputs.py +4 -4
  150. pulumi_kubernetes/coordination/v1beta1/Lease.py +1 -3
  151. pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +218 -0
  152. pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +217 -0
  153. pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +230 -0
  154. pulumi_kubernetes/coordination/v1beta1/LeaseList.py +1 -3
  155. pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +1 -3
  156. pulumi_kubernetes/coordination/v1beta1/__init__.py +3 -0
  157. pulumi_kubernetes/coordination/v1beta1/_inputs.py +371 -0
  158. pulumi_kubernetes/coordination/v1beta1/outputs.py +292 -0
  159. pulumi_kubernetes/core/v1/Binding.py +1 -3
  160. pulumi_kubernetes/core/v1/BindingPatch.py +1 -3
  161. pulumi_kubernetes/core/v1/ConfigMap.py +1 -3
  162. pulumi_kubernetes/core/v1/ConfigMapList.py +1 -3
  163. pulumi_kubernetes/core/v1/ConfigMapPatch.py +1 -3
  164. pulumi_kubernetes/core/v1/Endpoints.py +9 -3
  165. pulumi_kubernetes/core/v1/EndpointsList.py +3 -5
  166. pulumi_kubernetes/core/v1/EndpointsPatch.py +9 -3
  167. pulumi_kubernetes/core/v1/Event.py +1 -3
  168. pulumi_kubernetes/core/v1/EventList.py +1 -3
  169. pulumi_kubernetes/core/v1/EventPatch.py +1 -3
  170. pulumi_kubernetes/core/v1/LimitRange.py +1 -3
  171. pulumi_kubernetes/core/v1/LimitRangeList.py +1 -3
  172. pulumi_kubernetes/core/v1/LimitRangePatch.py +1 -3
  173. pulumi_kubernetes/core/v1/Namespace.py +1 -3
  174. pulumi_kubernetes/core/v1/NamespaceList.py +1 -3
  175. pulumi_kubernetes/core/v1/NamespacePatch.py +1 -3
  176. pulumi_kubernetes/core/v1/Node.py +1 -3
  177. pulumi_kubernetes/core/v1/NodeList.py +1 -3
  178. pulumi_kubernetes/core/v1/NodePatch.py +1 -3
  179. pulumi_kubernetes/core/v1/PersistentVolume.py +1 -3
  180. pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +1 -3
  181. pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +1 -3
  182. pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +1 -3
  183. pulumi_kubernetes/core/v1/PersistentVolumeList.py +1 -3
  184. pulumi_kubernetes/core/v1/PersistentVolumePatch.py +1 -3
  185. pulumi_kubernetes/core/v1/Pod.py +1 -3
  186. pulumi_kubernetes/core/v1/PodList.py +1 -3
  187. pulumi_kubernetes/core/v1/PodPatch.py +1 -3
  188. pulumi_kubernetes/core/v1/PodTemplate.py +1 -3
  189. pulumi_kubernetes/core/v1/PodTemplateList.py +1 -3
  190. pulumi_kubernetes/core/v1/PodTemplatePatch.py +1 -3
  191. pulumi_kubernetes/core/v1/ReplicationController.py +1 -3
  192. pulumi_kubernetes/core/v1/ReplicationControllerList.py +1 -3
  193. pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +1 -3
  194. pulumi_kubernetes/core/v1/ResourceQuota.py +1 -3
  195. pulumi_kubernetes/core/v1/ResourceQuotaList.py +1 -3
  196. pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +1 -3
  197. pulumi_kubernetes/core/v1/Secret.py +1 -3
  198. pulumi_kubernetes/core/v1/SecretList.py +1 -3
  199. pulumi_kubernetes/core/v1/SecretPatch.py +1 -3
  200. pulumi_kubernetes/core/v1/Service.py +1 -3
  201. pulumi_kubernetes/core/v1/ServiceAccount.py +1 -3
  202. pulumi_kubernetes/core/v1/ServiceAccountList.py +1 -3
  203. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +1 -3
  204. pulumi_kubernetes/core/v1/ServiceList.py +1 -3
  205. pulumi_kubernetes/core/v1/ServicePatch.py +1 -3
  206. pulumi_kubernetes/core/v1/_enums.py +2 -1
  207. pulumi_kubernetes/core/v1/_inputs.py +240 -66
  208. pulumi_kubernetes/core/v1/outputs.py +251 -51
  209. pulumi_kubernetes/discovery/v1/EndpointSlice.py +11 -13
  210. pulumi_kubernetes/discovery/v1/EndpointSliceList.py +1 -3
  211. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +11 -13
  212. pulumi_kubernetes/discovery/v1/_inputs.py +159 -44
  213. pulumi_kubernetes/discovery/v1/outputs.py +107 -32
  214. pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +1 -3
  215. pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +1 -3
  216. pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +1 -3
  217. pulumi_kubernetes/events/v1/Event.py +1 -3
  218. pulumi_kubernetes/events/v1/EventList.py +1 -3
  219. pulumi_kubernetes/events/v1/EventPatch.py +1 -3
  220. pulumi_kubernetes/events/v1beta1/Event.py +1 -3
  221. pulumi_kubernetes/events/v1beta1/EventList.py +1 -3
  222. pulumi_kubernetes/events/v1beta1/EventPatch.py +1 -3
  223. pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +1 -3
  224. pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +1 -3
  225. pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +1 -3
  226. pulumi_kubernetes/extensions/v1beta1/Deployment.py +1 -3
  227. pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +1 -3
  228. pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +1 -3
  229. pulumi_kubernetes/extensions/v1beta1/Ingress.py +1 -3
  230. pulumi_kubernetes/extensions/v1beta1/IngressList.py +1 -3
  231. pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +1 -3
  232. pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +1 -3
  233. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +1 -3
  234. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +1 -3
  235. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +1 -3
  236. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +1 -3
  237. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +1 -3
  238. pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +1 -3
  239. pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +1 -3
  240. pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +1 -3
  241. pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +1 -3
  242. pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +1 -3
  243. pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +1 -3
  244. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +1 -3
  245. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +1 -3
  246. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +1 -3
  247. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +1 -3
  248. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +1 -3
  249. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +1 -3
  250. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +1 -3
  251. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +1 -3
  252. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +1 -3
  253. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +1 -3
  254. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +1 -3
  255. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +1 -3
  256. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +1 -3
  257. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +1 -3
  258. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +1 -3
  259. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +1 -3
  260. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +1 -3
  261. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +1 -3
  262. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +1 -3
  263. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +1 -3
  264. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +1 -3
  265. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +1 -3
  266. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +1 -3
  267. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +1 -3
  268. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +1 -3
  269. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +1 -3
  270. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +1 -3
  271. pulumi_kubernetes/helm/v3/Release.py +1 -3
  272. pulumi_kubernetes/helm/v4/Chart.py +1 -3
  273. pulumi_kubernetes/kustomize/v2/Directory.py +1 -3
  274. pulumi_kubernetes/meta/v1/Status.py +1 -3
  275. pulumi_kubernetes/meta/v1/StatusPatch.py +1 -3
  276. pulumi_kubernetes/networking/v1/IPAddress.py +218 -0
  277. pulumi_kubernetes/networking/v1/IPAddressList.py +217 -0
  278. pulumi_kubernetes/networking/v1/IPAddressPatch.py +230 -0
  279. pulumi_kubernetes/networking/v1/Ingress.py +1 -3
  280. pulumi_kubernetes/networking/v1/IngressClass.py +1 -3
  281. pulumi_kubernetes/networking/v1/IngressClassList.py +1 -3
  282. pulumi_kubernetes/networking/v1/IngressClassPatch.py +1 -3
  283. pulumi_kubernetes/networking/v1/IngressList.py +1 -3
  284. pulumi_kubernetes/networking/v1/IngressPatch.py +1 -3
  285. pulumi_kubernetes/networking/v1/NetworkPolicy.py +1 -3
  286. pulumi_kubernetes/networking/v1/NetworkPolicyList.py +1 -3
  287. pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +1 -3
  288. pulumi_kubernetes/networking/v1/ServiceCIDR.py +228 -0
  289. pulumi_kubernetes/networking/v1/ServiceCIDRList.py +217 -0
  290. pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +240 -0
  291. pulumi_kubernetes/networking/v1/__init__.py +6 -0
  292. pulumi_kubernetes/networking/v1/_inputs.py +599 -0
  293. pulumi_kubernetes/networking/v1/outputs.py +461 -0
  294. pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +1 -3
  295. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +1 -3
  296. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +1 -3
  297. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +2 -4
  298. pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +1 -3
  299. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +2 -4
  300. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +2 -4
  301. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +1 -3
  302. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +2 -4
  303. pulumi_kubernetes/networking/v1beta1/IPAddress.py +2 -4
  304. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +1 -3
  305. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +2 -4
  306. pulumi_kubernetes/networking/v1beta1/Ingress.py +1 -3
  307. pulumi_kubernetes/networking/v1beta1/IngressClass.py +1 -3
  308. pulumi_kubernetes/networking/v1beta1/IngressClassList.py +1 -3
  309. pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +1 -3
  310. pulumi_kubernetes/networking/v1beta1/IngressList.py +1 -3
  311. pulumi_kubernetes/networking/v1beta1/IngressPatch.py +1 -3
  312. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +2 -4
  313. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +1 -3
  314. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +2 -4
  315. pulumi_kubernetes/node/v1/RuntimeClass.py +1 -3
  316. pulumi_kubernetes/node/v1/RuntimeClassList.py +1 -3
  317. pulumi_kubernetes/node/v1/RuntimeClassPatch.py +1 -3
  318. pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +1 -3
  319. pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +1 -3
  320. pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +1 -3
  321. pulumi_kubernetes/node/v1beta1/RuntimeClass.py +1 -3
  322. pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +1 -3
  323. pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +1 -3
  324. pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +1 -3
  325. pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +1 -3
  326. pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +1 -3
  327. pulumi_kubernetes/policy/v1/_inputs.py +0 -12
  328. pulumi_kubernetes/policy/v1/outputs.py +0 -8
  329. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +1 -3
  330. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +1 -3
  331. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +1 -3
  332. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +1 -3
  333. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +1 -3
  334. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +1 -3
  335. pulumi_kubernetes/provider.py +1 -3
  336. pulumi_kubernetes/pulumi-plugin.json +1 -1
  337. pulumi_kubernetes/rbac/v1/ClusterRole.py +1 -3
  338. pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +1 -3
  339. pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +1 -3
  340. pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +1 -3
  341. pulumi_kubernetes/rbac/v1/ClusterRoleList.py +1 -3
  342. pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +1 -3
  343. pulumi_kubernetes/rbac/v1/Role.py +1 -3
  344. pulumi_kubernetes/rbac/v1/RoleBinding.py +1 -3
  345. pulumi_kubernetes/rbac/v1/RoleBindingList.py +1 -3
  346. pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +1 -3
  347. pulumi_kubernetes/rbac/v1/RoleList.py +1 -3
  348. pulumi_kubernetes/rbac/v1/RolePatch.py +1 -3
  349. pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +1 -3
  350. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +1 -3
  351. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +1 -3
  352. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +1 -3
  353. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +1 -3
  354. pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +1 -3
  355. pulumi_kubernetes/rbac/v1alpha1/Role.py +1 -3
  356. pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +1 -3
  357. pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +1 -3
  358. pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +1 -3
  359. pulumi_kubernetes/rbac/v1alpha1/RoleList.py +1 -3
  360. pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +1 -3
  361. pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +1 -3
  362. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +1 -3
  363. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +1 -3
  364. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +1 -3
  365. pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +1 -3
  366. pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +1 -3
  367. pulumi_kubernetes/rbac/v1beta1/Role.py +1 -3
  368. pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +1 -3
  369. pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +1 -3
  370. pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +1 -3
  371. pulumi_kubernetes/rbac/v1beta1/RoleList.py +1 -3
  372. pulumi_kubernetes/rbac/v1beta1/RolePatch.py +1 -3
  373. pulumi_kubernetes/resource/__init__.py +3 -0
  374. pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +1 -3
  375. pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +1 -3
  376. pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +1 -3
  377. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +2 -4
  378. pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +1 -3
  379. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +2 -4
  380. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +2 -4
  381. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +1 -3
  382. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +2 -4
  383. pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +1 -3
  384. pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +1 -3
  385. pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +1 -3
  386. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +1 -3
  387. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +1 -3
  388. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +1 -3
  389. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +2 -4
  390. pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +1 -3
  391. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +1 -3
  392. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +1 -3
  393. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +1 -3
  394. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +2 -4
  395. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +2 -4
  396. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +1 -3
  397. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +2 -4
  398. pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +1 -3
  399. pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +1 -3
  400. pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +1 -3
  401. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +1 -3
  402. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +1 -3
  403. pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +1 -3
  404. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +2 -4
  405. pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +1 -3
  406. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +2 -4
  407. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +2 -4
  408. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +1 -3
  409. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +2 -4
  410. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +225 -0
  411. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +217 -0
  412. pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +236 -0
  413. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +1 -3
  414. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +1 -3
  415. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +1 -3
  416. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +2 -4
  417. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +1 -3
  418. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +2 -4
  419. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +2 -4
  420. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +1 -3
  421. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +2 -4
  422. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +2 -4
  423. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +1 -3
  424. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +2 -4
  425. pulumi_kubernetes/resource/v1alpha3/__init__.py +3 -0
  426. pulumi_kubernetes/resource/v1alpha3/_inputs.py +2559 -213
  427. pulumi_kubernetes/resource/v1alpha3/outputs.py +2037 -256
  428. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +2 -4
  429. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +1 -3
  430. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +2 -4
  431. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +2 -4
  432. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +1 -3
  433. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +2 -4
  434. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +2 -4
  435. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +1 -3
  436. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +2 -4
  437. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +2 -4
  438. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +1 -3
  439. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +2 -4
  440. pulumi_kubernetes/resource/v1beta1/_inputs.py +2044 -176
  441. pulumi_kubernetes/resource/v1beta1/outputs.py +1536 -134
  442. pulumi_kubernetes/resource/v1beta2/DeviceClass.py +239 -0
  443. pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +217 -0
  444. pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +250 -0
  445. pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +234 -0
  446. pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +218 -0
  447. pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +245 -0
  448. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +231 -0
  449. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +217 -0
  450. pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +242 -0
  451. pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +248 -0
  452. pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +218 -0
  453. pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +259 -0
  454. pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
  455. pulumi_kubernetes/resource/v1beta2/_inputs.py +5681 -0
  456. pulumi_kubernetes/resource/v1beta2/outputs.py +4726 -0
  457. pulumi_kubernetes/scheduling/v1/PriorityClass.py +1 -3
  458. pulumi_kubernetes/scheduling/v1/PriorityClassList.py +1 -3
  459. pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +1 -3
  460. pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +1 -3
  461. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +1 -3
  462. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +1 -3
  463. pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +1 -3
  464. pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +1 -3
  465. pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +1 -3
  466. pulumi_kubernetes/settings/v1alpha1/PodPreset.py +1 -3
  467. pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +1 -3
  468. pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +1 -3
  469. pulumi_kubernetes/storage/v1/CSIDriver.py +1 -3
  470. pulumi_kubernetes/storage/v1/CSIDriverList.py +1 -3
  471. pulumi_kubernetes/storage/v1/CSIDriverPatch.py +1 -3
  472. pulumi_kubernetes/storage/v1/CSINode.py +1 -3
  473. pulumi_kubernetes/storage/v1/CSINodeList.py +1 -3
  474. pulumi_kubernetes/storage/v1/CSINodePatch.py +1 -3
  475. pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +1 -3
  476. pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +1 -3
  477. pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +1 -3
  478. pulumi_kubernetes/storage/v1/StorageClass.py +1 -3
  479. pulumi_kubernetes/storage/v1/StorageClassList.py +1 -3
  480. pulumi_kubernetes/storage/v1/StorageClassPatch.py +1 -3
  481. pulumi_kubernetes/storage/v1/VolumeAttachment.py +1 -3
  482. pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +1 -3
  483. pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +1 -3
  484. pulumi_kubernetes/storage/v1/_inputs.py +90 -0
  485. pulumi_kubernetes/storage/v1/outputs.py +110 -0
  486. pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +1 -3
  487. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +1 -3
  488. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +1 -3
  489. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +1 -3
  490. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +1 -3
  491. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +1 -3
  492. pulumi_kubernetes/storage/v1beta1/CSIDriver.py +1 -3
  493. pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +1 -3
  494. pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +1 -3
  495. pulumi_kubernetes/storage/v1beta1/CSINode.py +1 -3
  496. pulumi_kubernetes/storage/v1beta1/CSINodeList.py +1 -3
  497. pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +1 -3
  498. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +1 -3
  499. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +1 -3
  500. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +1 -3
  501. pulumi_kubernetes/storage/v1beta1/StorageClass.py +1 -3
  502. pulumi_kubernetes/storage/v1beta1/StorageClassList.py +1 -3
  503. pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +1 -3
  504. pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +1 -3
  505. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +1 -3
  506. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +1 -3
  507. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +1 -3
  508. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +1 -3
  509. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +1 -3
  510. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +1 -3
  511. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +1 -3
  512. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +1 -3
  513. pulumi_kubernetes/yaml/v2/ConfigFile.py +1 -3
  514. pulumi_kubernetes/yaml/v2/ConfigGroup.py +1 -3
  515. pulumi_kubernetes/yaml/yaml.py +108 -0
  516. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746153578.dist-info}/METADATA +2 -2
  517. pulumi_kubernetes-4.23.0a1746153578.dist-info/RECORD +709 -0
  518. pulumi_kubernetes-4.23.0a1746131759.dist-info/RECORD +0 -679
  519. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746153578.dist-info}/WHEEL +0 -0
  520. {pulumi_kubernetes-4.23.0a1746131759.dist-info → pulumi_kubernetes-4.23.0a1746153578.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4726 @@
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 builtins
6
+ import copy
7
+ import warnings
8
+ import sys
9
+ import pulumi
10
+ import pulumi.runtime
11
+ from typing import Any, Mapping, Optional, Sequence, Union, overload
12
+ if sys.version_info >= (3, 11):
13
+ from typing import NotRequired, TypedDict, TypeAlias
14
+ else:
15
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
16
+ from ... import _utilities
17
+ from . import outputs
18
+ from ... import core as _core
19
+ from ... import meta as _meta
20
+
21
+ __all__ = [
22
+ 'AllocatedDeviceStatus',
23
+ 'AllocatedDeviceStatusPatch',
24
+ 'AllocationResult',
25
+ 'AllocationResultPatch',
26
+ 'CELDeviceSelector',
27
+ 'CELDeviceSelectorPatch',
28
+ 'Counter',
29
+ 'CounterSet',
30
+ 'CounterSetPatch',
31
+ 'Device',
32
+ 'DeviceAllocationConfiguration',
33
+ 'DeviceAllocationConfigurationPatch',
34
+ 'DeviceAllocationResult',
35
+ 'DeviceAllocationResultPatch',
36
+ 'DeviceAttribute',
37
+ 'DeviceCapacity',
38
+ 'DeviceClaim',
39
+ 'DeviceClaimConfiguration',
40
+ 'DeviceClaimConfigurationPatch',
41
+ 'DeviceClaimPatch',
42
+ 'DeviceClass',
43
+ 'DeviceClassConfiguration',
44
+ 'DeviceClassConfigurationPatch',
45
+ 'DeviceClassSpec',
46
+ 'DeviceClassSpecPatch',
47
+ 'DeviceConstraint',
48
+ 'DeviceConstraintPatch',
49
+ 'DeviceCounterConsumption',
50
+ 'DeviceCounterConsumptionPatch',
51
+ 'DevicePatch',
52
+ 'DeviceRequest',
53
+ 'DeviceRequestAllocationResult',
54
+ 'DeviceRequestAllocationResultPatch',
55
+ 'DeviceRequestPatch',
56
+ 'DeviceSelector',
57
+ 'DeviceSelectorPatch',
58
+ 'DeviceSubRequest',
59
+ 'DeviceSubRequestPatch',
60
+ 'DeviceTaint',
61
+ 'DeviceTaintPatch',
62
+ 'DeviceToleration',
63
+ 'DeviceTolerationPatch',
64
+ 'ExactDeviceRequest',
65
+ 'ExactDeviceRequestPatch',
66
+ 'NetworkDeviceData',
67
+ 'NetworkDeviceDataPatch',
68
+ 'OpaqueDeviceConfiguration',
69
+ 'OpaqueDeviceConfigurationPatch',
70
+ 'ResourceClaim',
71
+ 'ResourceClaimConsumerReference',
72
+ 'ResourceClaimConsumerReferencePatch',
73
+ 'ResourceClaimSpec',
74
+ 'ResourceClaimSpecPatch',
75
+ 'ResourceClaimStatus',
76
+ 'ResourceClaimStatusPatch',
77
+ 'ResourceClaimTemplate',
78
+ 'ResourceClaimTemplateSpec',
79
+ 'ResourceClaimTemplateSpecPatch',
80
+ 'ResourcePool',
81
+ 'ResourcePoolPatch',
82
+ 'ResourceSlice',
83
+ 'ResourceSliceSpec',
84
+ 'ResourceSliceSpecPatch',
85
+ ]
86
+
87
+ @pulumi.output_type
88
+ class AllocatedDeviceStatus(dict):
89
+ """
90
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
91
+ """
92
+ @staticmethod
93
+ def __key_warning(key: str):
94
+ suggest = None
95
+ if key == "networkData":
96
+ suggest = "network_data"
97
+
98
+ if suggest:
99
+ pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatus. Access the value via the '{suggest}' property getter instead.")
100
+
101
+ def __getitem__(self, key: str) -> Any:
102
+ AllocatedDeviceStatus.__key_warning(key)
103
+ return super().__getitem__(key)
104
+
105
+ def get(self, key: str, default = None) -> Any:
106
+ AllocatedDeviceStatus.__key_warning(key)
107
+ return super().get(key, default)
108
+
109
+ def __init__(__self__, *,
110
+ device: builtins.str,
111
+ driver: builtins.str,
112
+ pool: builtins.str,
113
+ conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None,
114
+ data: Optional[Any] = None,
115
+ network_data: Optional['outputs.NetworkDeviceData'] = None):
116
+ """
117
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
118
+ :param builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
119
+ :param builtins.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.
120
+
121
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
122
+ :param builtins.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>`).
123
+
124
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
125
+ :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.
126
+
127
+ Must not contain more than 8 entries.
128
+ :param Any data: Data contains arbitrary driver-specific data.
129
+
130
+ The length of the raw data must be smaller or equal to 10 Ki.
131
+ :param 'NetworkDeviceDataArgs' network_data: NetworkData contains network-related information specific to the device.
132
+ """
133
+ pulumi.set(__self__, "device", device)
134
+ pulumi.set(__self__, "driver", driver)
135
+ pulumi.set(__self__, "pool", pool)
136
+ if conditions is not None:
137
+ pulumi.set(__self__, "conditions", conditions)
138
+ if data is not None:
139
+ pulumi.set(__self__, "data", data)
140
+ if network_data is not None:
141
+ pulumi.set(__self__, "network_data", network_data)
142
+
143
+ @property
144
+ @pulumi.getter
145
+ def device(self) -> builtins.str:
146
+ """
147
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
148
+ """
149
+ return pulumi.get(self, "device")
150
+
151
+ @property
152
+ @pulumi.getter
153
+ def driver(self) -> builtins.str:
154
+ """
155
+ 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.
156
+
157
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
158
+ """
159
+ return pulumi.get(self, "driver")
160
+
161
+ @property
162
+ @pulumi.getter
163
+ def pool(self) -> builtins.str:
164
+ """
165
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
166
+
167
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
168
+ """
169
+ return pulumi.get(self, "pool")
170
+
171
+ @property
172
+ @pulumi.getter
173
+ def conditions(self) -> Optional[Sequence['_meta.v1.outputs.Condition']]:
174
+ """
175
+ 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.
176
+
177
+ Must not contain more than 8 entries.
178
+ """
179
+ return pulumi.get(self, "conditions")
180
+
181
+ @property
182
+ @pulumi.getter
183
+ def data(self) -> Optional[Any]:
184
+ """
185
+ Data contains arbitrary driver-specific data.
186
+
187
+ The length of the raw data must be smaller or equal to 10 Ki.
188
+ """
189
+ return pulumi.get(self, "data")
190
+
191
+ @property
192
+ @pulumi.getter(name="networkData")
193
+ def network_data(self) -> Optional['outputs.NetworkDeviceData']:
194
+ """
195
+ NetworkData contains network-related information specific to the device.
196
+ """
197
+ return pulumi.get(self, "network_data")
198
+
199
+
200
+ @pulumi.output_type
201
+ class AllocatedDeviceStatusPatch(dict):
202
+ """
203
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
204
+ """
205
+ @staticmethod
206
+ def __key_warning(key: str):
207
+ suggest = None
208
+ if key == "networkData":
209
+ suggest = "network_data"
210
+
211
+ if suggest:
212
+ pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatusPatch. Access the value via the '{suggest}' property getter instead.")
213
+
214
+ def __getitem__(self, key: str) -> Any:
215
+ AllocatedDeviceStatusPatch.__key_warning(key)
216
+ return super().__getitem__(key)
217
+
218
+ def get(self, key: str, default = None) -> Any:
219
+ AllocatedDeviceStatusPatch.__key_warning(key)
220
+ return super().get(key, default)
221
+
222
+ def __init__(__self__, *,
223
+ conditions: Optional[Sequence['_meta.v1.outputs.ConditionPatch']] = None,
224
+ data: Optional[Any] = None,
225
+ device: Optional[builtins.str] = None,
226
+ driver: Optional[builtins.str] = None,
227
+ network_data: Optional['outputs.NetworkDeviceDataPatch'] = None,
228
+ pool: Optional[builtins.str] = None):
229
+ """
230
+ AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
231
+ :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.
232
+
233
+ Must not contain more than 8 entries.
234
+ :param Any data: Data contains arbitrary driver-specific data.
235
+
236
+ The length of the raw data must be smaller or equal to 10 Ki.
237
+ :param builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
238
+ :param builtins.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.
239
+
240
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
241
+ :param 'NetworkDeviceDataPatchArgs' network_data: NetworkData contains network-related information specific to the device.
242
+ :param builtins.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>`).
243
+
244
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
245
+ """
246
+ if conditions is not None:
247
+ pulumi.set(__self__, "conditions", conditions)
248
+ if data is not None:
249
+ pulumi.set(__self__, "data", data)
250
+ if device is not None:
251
+ pulumi.set(__self__, "device", device)
252
+ if driver is not None:
253
+ pulumi.set(__self__, "driver", driver)
254
+ if network_data is not None:
255
+ pulumi.set(__self__, "network_data", network_data)
256
+ if pool is not None:
257
+ pulumi.set(__self__, "pool", pool)
258
+
259
+ @property
260
+ @pulumi.getter
261
+ def conditions(self) -> Optional[Sequence['_meta.v1.outputs.ConditionPatch']]:
262
+ """
263
+ 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.
264
+
265
+ Must not contain more than 8 entries.
266
+ """
267
+ return pulumi.get(self, "conditions")
268
+
269
+ @property
270
+ @pulumi.getter
271
+ def data(self) -> Optional[Any]:
272
+ """
273
+ Data contains arbitrary driver-specific data.
274
+
275
+ The length of the raw data must be smaller or equal to 10 Ki.
276
+ """
277
+ return pulumi.get(self, "data")
278
+
279
+ @property
280
+ @pulumi.getter
281
+ def device(self) -> Optional[builtins.str]:
282
+ """
283
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
284
+ """
285
+ return pulumi.get(self, "device")
286
+
287
+ @property
288
+ @pulumi.getter
289
+ def driver(self) -> Optional[builtins.str]:
290
+ """
291
+ 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.
292
+
293
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
294
+ """
295
+ return pulumi.get(self, "driver")
296
+
297
+ @property
298
+ @pulumi.getter(name="networkData")
299
+ def network_data(self) -> Optional['outputs.NetworkDeviceDataPatch']:
300
+ """
301
+ NetworkData contains network-related information specific to the device.
302
+ """
303
+ return pulumi.get(self, "network_data")
304
+
305
+ @property
306
+ @pulumi.getter
307
+ def pool(self) -> Optional[builtins.str]:
308
+ """
309
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
310
+
311
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
312
+ """
313
+ return pulumi.get(self, "pool")
314
+
315
+
316
+ @pulumi.output_type
317
+ class AllocationResult(dict):
318
+ """
319
+ AllocationResult contains attributes of an allocated resource.
320
+ """
321
+ @staticmethod
322
+ def __key_warning(key: str):
323
+ suggest = None
324
+ if key == "nodeSelector":
325
+ suggest = "node_selector"
326
+
327
+ if suggest:
328
+ pulumi.log.warn(f"Key '{key}' not found in AllocationResult. Access the value via the '{suggest}' property getter instead.")
329
+
330
+ def __getitem__(self, key: str) -> Any:
331
+ AllocationResult.__key_warning(key)
332
+ return super().__getitem__(key)
333
+
334
+ def get(self, key: str, default = None) -> Any:
335
+ AllocationResult.__key_warning(key)
336
+ return super().get(key, default)
337
+
338
+ def __init__(__self__, *,
339
+ devices: Optional['outputs.DeviceAllocationResult'] = None,
340
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None):
341
+ """
342
+ AllocationResult contains attributes of an allocated resource.
343
+ :param 'DeviceAllocationResultArgs' devices: Devices is the result of allocating devices.
344
+ :param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
345
+ """
346
+ if devices is not None:
347
+ pulumi.set(__self__, "devices", devices)
348
+ if node_selector is not None:
349
+ pulumi.set(__self__, "node_selector", node_selector)
350
+
351
+ @property
352
+ @pulumi.getter
353
+ def devices(self) -> Optional['outputs.DeviceAllocationResult']:
354
+ """
355
+ Devices is the result of allocating devices.
356
+ """
357
+ return pulumi.get(self, "devices")
358
+
359
+ @property
360
+ @pulumi.getter(name="nodeSelector")
361
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
362
+ """
363
+ NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
364
+ """
365
+ return pulumi.get(self, "node_selector")
366
+
367
+
368
+ @pulumi.output_type
369
+ class AllocationResultPatch(dict):
370
+ """
371
+ AllocationResult contains attributes of an allocated resource.
372
+ """
373
+ @staticmethod
374
+ def __key_warning(key: str):
375
+ suggest = None
376
+ if key == "nodeSelector":
377
+ suggest = "node_selector"
378
+
379
+ if suggest:
380
+ pulumi.log.warn(f"Key '{key}' not found in AllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
381
+
382
+ def __getitem__(self, key: str) -> Any:
383
+ AllocationResultPatch.__key_warning(key)
384
+ return super().__getitem__(key)
385
+
386
+ def get(self, key: str, default = None) -> Any:
387
+ AllocationResultPatch.__key_warning(key)
388
+ return super().get(key, default)
389
+
390
+ def __init__(__self__, *,
391
+ devices: Optional['outputs.DeviceAllocationResultPatch'] = None,
392
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None):
393
+ """
394
+ AllocationResult contains attributes of an allocated resource.
395
+ :param 'DeviceAllocationResultPatchArgs' devices: Devices is the result of allocating devices.
396
+ :param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
397
+ """
398
+ if devices is not None:
399
+ pulumi.set(__self__, "devices", devices)
400
+ if node_selector is not None:
401
+ pulumi.set(__self__, "node_selector", node_selector)
402
+
403
+ @property
404
+ @pulumi.getter
405
+ def devices(self) -> Optional['outputs.DeviceAllocationResultPatch']:
406
+ """
407
+ Devices is the result of allocating devices.
408
+ """
409
+ return pulumi.get(self, "devices")
410
+
411
+ @property
412
+ @pulumi.getter(name="nodeSelector")
413
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
414
+ """
415
+ NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
416
+ """
417
+ return pulumi.get(self, "node_selector")
418
+
419
+
420
+ @pulumi.output_type
421
+ class CELDeviceSelector(dict):
422
+ """
423
+ CELDeviceSelector contains a CEL expression for selecting a device.
424
+ """
425
+ def __init__(__self__, *,
426
+ expression: builtins.str):
427
+ """
428
+ CELDeviceSelector contains a CEL expression for selecting a device.
429
+ :param builtins.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.
430
+
431
+ The expression's input is an object named "device", which carries the following properties:
432
+ - driver (string): the name of the driver which defines this device.
433
+ - attributes (map[string]object): the device's attributes, grouped by prefix
434
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
435
+ of the attributes which were prefixed by "dra.example.com".
436
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
437
+
438
+ 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:
439
+
440
+ device.driver
441
+ device.attributes["dra.example.com"].model
442
+ device.attributes["ext.example.com"].family
443
+ device.capacity["dra.example.com"].modules
444
+
445
+ 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.
446
+
447
+ 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.
448
+
449
+ 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.
450
+
451
+ A robust expression should check for the existence of attributes before referencing them.
452
+
453
+ 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:
454
+
455
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
456
+
457
+ 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.
458
+ """
459
+ pulumi.set(__self__, "expression", expression)
460
+
461
+ @property
462
+ @pulumi.getter
463
+ def expression(self) -> builtins.str:
464
+ """
465
+ 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.
466
+
467
+ The expression's input is an object named "device", which carries the following properties:
468
+ - driver (string): the name of the driver which defines this device.
469
+ - attributes (map[string]object): the device's attributes, grouped by prefix
470
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
471
+ of the attributes which were prefixed by "dra.example.com".
472
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
473
+
474
+ 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:
475
+
476
+ device.driver
477
+ device.attributes["dra.example.com"].model
478
+ device.attributes["ext.example.com"].family
479
+ device.capacity["dra.example.com"].modules
480
+
481
+ 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.
482
+
483
+ 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.
484
+
485
+ 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.
486
+
487
+ A robust expression should check for the existence of attributes before referencing them.
488
+
489
+ 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:
490
+
491
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
492
+
493
+ 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.
494
+ """
495
+ return pulumi.get(self, "expression")
496
+
497
+
498
+ @pulumi.output_type
499
+ class CELDeviceSelectorPatch(dict):
500
+ """
501
+ CELDeviceSelector contains a CEL expression for selecting a device.
502
+ """
503
+ def __init__(__self__, *,
504
+ expression: Optional[builtins.str] = None):
505
+ """
506
+ CELDeviceSelector contains a CEL expression for selecting a device.
507
+ :param builtins.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.
508
+
509
+ The expression's input is an object named "device", which carries the following properties:
510
+ - driver (string): the name of the driver which defines this device.
511
+ - attributes (map[string]object): the device's attributes, grouped by prefix
512
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
513
+ of the attributes which were prefixed by "dra.example.com".
514
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
515
+
516
+ 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:
517
+
518
+ device.driver
519
+ device.attributes["dra.example.com"].model
520
+ device.attributes["ext.example.com"].family
521
+ device.capacity["dra.example.com"].modules
522
+
523
+ 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.
524
+
525
+ 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.
526
+
527
+ 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.
528
+
529
+ A robust expression should check for the existence of attributes before referencing them.
530
+
531
+ 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:
532
+
533
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
534
+
535
+ 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.
536
+ """
537
+ if expression is not None:
538
+ pulumi.set(__self__, "expression", expression)
539
+
540
+ @property
541
+ @pulumi.getter
542
+ def expression(self) -> Optional[builtins.str]:
543
+ """
544
+ 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.
545
+
546
+ The expression's input is an object named "device", which carries the following properties:
547
+ - driver (string): the name of the driver which defines this device.
548
+ - attributes (map[string]object): the device's attributes, grouped by prefix
549
+ (e.g. device.attributes["dra.example.com"] evaluates to an object with all
550
+ of the attributes which were prefixed by "dra.example.com".
551
+ - capacity (map[string]object): the device's capacities, grouped by prefix.
552
+
553
+ 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:
554
+
555
+ device.driver
556
+ device.attributes["dra.example.com"].model
557
+ device.attributes["ext.example.com"].family
558
+ device.capacity["dra.example.com"].modules
559
+
560
+ 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.
561
+
562
+ 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.
563
+
564
+ 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.
565
+
566
+ A robust expression should check for the existence of attributes before referencing them.
567
+
568
+ 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:
569
+
570
+ cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
571
+
572
+ 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.
573
+ """
574
+ return pulumi.get(self, "expression")
575
+
576
+
577
+ @pulumi.output_type
578
+ class Counter(dict):
579
+ """
580
+ Counter describes a quantity associated with a device.
581
+ """
582
+ def __init__(__self__, *,
583
+ value: builtins.str):
584
+ """
585
+ Counter describes a quantity associated with a device.
586
+ :param builtins.str value: Value defines how much of a certain device counter is available.
587
+ """
588
+ pulumi.set(__self__, "value", value)
589
+
590
+ @property
591
+ @pulumi.getter
592
+ def value(self) -> builtins.str:
593
+ """
594
+ Value defines how much of a certain device counter is available.
595
+ """
596
+ return pulumi.get(self, "value")
597
+
598
+
599
+ @pulumi.output_type
600
+ class CounterSet(dict):
601
+ """
602
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
603
+
604
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
605
+ """
606
+ def __init__(__self__, *,
607
+ counters: Mapping[str, 'outputs.Counter'],
608
+ name: builtins.str):
609
+ """
610
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
611
+
612
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
613
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
614
+
615
+ The maximum number of counters in all sets is 32.
616
+ :param builtins.str name: Name defines the name of the counter set. It must be a DNS label.
617
+ """
618
+ pulumi.set(__self__, "counters", counters)
619
+ pulumi.set(__self__, "name", name)
620
+
621
+ @property
622
+ @pulumi.getter
623
+ def counters(self) -> Mapping[str, 'outputs.Counter']:
624
+ """
625
+ Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
626
+
627
+ The maximum number of counters in all sets is 32.
628
+ """
629
+ return pulumi.get(self, "counters")
630
+
631
+ @property
632
+ @pulumi.getter
633
+ def name(self) -> builtins.str:
634
+ """
635
+ Name defines the name of the counter set. It must be a DNS label.
636
+ """
637
+ return pulumi.get(self, "name")
638
+
639
+
640
+ @pulumi.output_type
641
+ class CounterSetPatch(dict):
642
+ """
643
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
644
+
645
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
646
+ """
647
+ def __init__(__self__, *,
648
+ counters: Optional[Mapping[str, 'outputs.Counter']] = None,
649
+ name: Optional[builtins.str] = None):
650
+ """
651
+ CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
652
+
653
+ The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
654
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
655
+
656
+ The maximum number of counters in all sets is 32.
657
+ :param builtins.str name: Name defines the name of the counter set. It must be a DNS label.
658
+ """
659
+ if counters is not None:
660
+ pulumi.set(__self__, "counters", counters)
661
+ if name is not None:
662
+ pulumi.set(__self__, "name", name)
663
+
664
+ @property
665
+ @pulumi.getter
666
+ def counters(self) -> Optional[Mapping[str, 'outputs.Counter']]:
667
+ """
668
+ Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
669
+
670
+ The maximum number of counters in all sets is 32.
671
+ """
672
+ return pulumi.get(self, "counters")
673
+
674
+ @property
675
+ @pulumi.getter
676
+ def name(self) -> Optional[builtins.str]:
677
+ """
678
+ Name defines the name of the counter set. It must be a DNS label.
679
+ """
680
+ return pulumi.get(self, "name")
681
+
682
+
683
+ @pulumi.output_type
684
+ class Device(dict):
685
+ """
686
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
687
+ """
688
+ @staticmethod
689
+ def __key_warning(key: str):
690
+ suggest = None
691
+ if key == "allNodes":
692
+ suggest = "all_nodes"
693
+ elif key == "consumesCounters":
694
+ suggest = "consumes_counters"
695
+ elif key == "nodeName":
696
+ suggest = "node_name"
697
+ elif key == "nodeSelector":
698
+ suggest = "node_selector"
699
+
700
+ if suggest:
701
+ pulumi.log.warn(f"Key '{key}' not found in Device. Access the value via the '{suggest}' property getter instead.")
702
+
703
+ def __getitem__(self, key: str) -> Any:
704
+ Device.__key_warning(key)
705
+ return super().__getitem__(key)
706
+
707
+ def get(self, key: str, default = None) -> Any:
708
+ Device.__key_warning(key)
709
+ return super().get(key, default)
710
+
711
+ def __init__(__self__, *,
712
+ name: builtins.str,
713
+ all_nodes: Optional[builtins.bool] = None,
714
+ attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
715
+ capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None,
716
+ consumes_counters: Optional[Sequence['outputs.DeviceCounterConsumption']] = None,
717
+ node_name: Optional[builtins.str] = None,
718
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None,
719
+ taints: Optional[Sequence['outputs.DeviceTaint']] = None):
720
+ """
721
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
722
+ :param builtins.str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
723
+ :param builtins.bool all_nodes: AllNodes indicates that all nodes have access to the device.
724
+
725
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
726
+ :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.
727
+
728
+ The maximum number of attributes and capacities combined is 32.
729
+ :param Mapping[str, 'DeviceCapacityArgs'] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
730
+
731
+ The maximum number of attributes and capacities combined is 32.
732
+ :param Sequence['DeviceCounterConsumptionArgs'] consumes_counters: ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
733
+
734
+ There can only be a single entry per counterSet.
735
+
736
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
737
+ :param builtins.str node_name: NodeName identifies the node where the device is available.
738
+
739
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
740
+ :param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines the nodes where the device is available.
741
+
742
+ Must use exactly one term.
743
+
744
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
745
+ :param Sequence['DeviceTaintArgs'] taints: If specified, these are the driver-defined taints.
746
+
747
+ The maximum number of taints is 4.
748
+
749
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
750
+ """
751
+ pulumi.set(__self__, "name", name)
752
+ if all_nodes is not None:
753
+ pulumi.set(__self__, "all_nodes", all_nodes)
754
+ if attributes is not None:
755
+ pulumi.set(__self__, "attributes", attributes)
756
+ if capacity is not None:
757
+ pulumi.set(__self__, "capacity", capacity)
758
+ if consumes_counters is not None:
759
+ pulumi.set(__self__, "consumes_counters", consumes_counters)
760
+ if node_name is not None:
761
+ pulumi.set(__self__, "node_name", node_name)
762
+ if node_selector is not None:
763
+ pulumi.set(__self__, "node_selector", node_selector)
764
+ if taints is not None:
765
+ pulumi.set(__self__, "taints", taints)
766
+
767
+ @property
768
+ @pulumi.getter
769
+ def name(self) -> builtins.str:
770
+ """
771
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
772
+ """
773
+ return pulumi.get(self, "name")
774
+
775
+ @property
776
+ @pulumi.getter(name="allNodes")
777
+ def all_nodes(self) -> Optional[builtins.bool]:
778
+ """
779
+ AllNodes indicates that all nodes have access to the device.
780
+
781
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
782
+ """
783
+ return pulumi.get(self, "all_nodes")
784
+
785
+ @property
786
+ @pulumi.getter
787
+ def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
788
+ """
789
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
790
+
791
+ The maximum number of attributes and capacities combined is 32.
792
+ """
793
+ return pulumi.get(self, "attributes")
794
+
795
+ @property
796
+ @pulumi.getter
797
+ def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
798
+ """
799
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
800
+
801
+ The maximum number of attributes and capacities combined is 32.
802
+ """
803
+ return pulumi.get(self, "capacity")
804
+
805
+ @property
806
+ @pulumi.getter(name="consumesCounters")
807
+ def consumes_counters(self) -> Optional[Sequence['outputs.DeviceCounterConsumption']]:
808
+ """
809
+ ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
810
+
811
+ There can only be a single entry per counterSet.
812
+
813
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
814
+ """
815
+ return pulumi.get(self, "consumes_counters")
816
+
817
+ @property
818
+ @pulumi.getter(name="nodeName")
819
+ def node_name(self) -> Optional[builtins.str]:
820
+ """
821
+ NodeName identifies the node where the device is available.
822
+
823
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
824
+ """
825
+ return pulumi.get(self, "node_name")
826
+
827
+ @property
828
+ @pulumi.getter(name="nodeSelector")
829
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
830
+ """
831
+ NodeSelector defines the nodes where the device is available.
832
+
833
+ Must use exactly one term.
834
+
835
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
836
+ """
837
+ return pulumi.get(self, "node_selector")
838
+
839
+ @property
840
+ @pulumi.getter
841
+ def taints(self) -> Optional[Sequence['outputs.DeviceTaint']]:
842
+ """
843
+ If specified, these are the driver-defined taints.
844
+
845
+ The maximum number of taints is 4.
846
+
847
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
848
+ """
849
+ return pulumi.get(self, "taints")
850
+
851
+
852
+ @pulumi.output_type
853
+ class DeviceAllocationConfiguration(dict):
854
+ """
855
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
856
+ """
857
+ def __init__(__self__, *,
858
+ source: builtins.str,
859
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
860
+ requests: Optional[Sequence[builtins.str]] = None):
861
+ """
862
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
863
+ :param builtins.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.
864
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
865
+ :param Sequence[builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
866
+
867
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
868
+ """
869
+ pulumi.set(__self__, "source", source)
870
+ if opaque is not None:
871
+ pulumi.set(__self__, "opaque", opaque)
872
+ if requests is not None:
873
+ pulumi.set(__self__, "requests", requests)
874
+
875
+ @property
876
+ @pulumi.getter
877
+ def source(self) -> builtins.str:
878
+ """
879
+ 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.
880
+ """
881
+ return pulumi.get(self, "source")
882
+
883
+ @property
884
+ @pulumi.getter
885
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
886
+ """
887
+ Opaque provides driver-specific configuration parameters.
888
+ """
889
+ return pulumi.get(self, "opaque")
890
+
891
+ @property
892
+ @pulumi.getter
893
+ def requests(self) -> Optional[Sequence[builtins.str]]:
894
+ """
895
+ Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
896
+
897
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
898
+ """
899
+ return pulumi.get(self, "requests")
900
+
901
+
902
+ @pulumi.output_type
903
+ class DeviceAllocationConfigurationPatch(dict):
904
+ """
905
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
906
+ """
907
+ def __init__(__self__, *,
908
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
909
+ requests: Optional[Sequence[builtins.str]] = None,
910
+ source: Optional[builtins.str] = None):
911
+ """
912
+ DeviceAllocationConfiguration gets embedded in an AllocationResult.
913
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
914
+ :param Sequence[builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
915
+
916
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
917
+ :param builtins.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.
918
+ """
919
+ if opaque is not None:
920
+ pulumi.set(__self__, "opaque", opaque)
921
+ if requests is not None:
922
+ pulumi.set(__self__, "requests", requests)
923
+ if source is not None:
924
+ pulumi.set(__self__, "source", source)
925
+
926
+ @property
927
+ @pulumi.getter
928
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
929
+ """
930
+ Opaque provides driver-specific configuration parameters.
931
+ """
932
+ return pulumi.get(self, "opaque")
933
+
934
+ @property
935
+ @pulumi.getter
936
+ def requests(self) -> Optional[Sequence[builtins.str]]:
937
+ """
938
+ Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
939
+
940
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
941
+ """
942
+ return pulumi.get(self, "requests")
943
+
944
+ @property
945
+ @pulumi.getter
946
+ def source(self) -> Optional[builtins.str]:
947
+ """
948
+ 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.
949
+ """
950
+ return pulumi.get(self, "source")
951
+
952
+
953
+ @pulumi.output_type
954
+ class DeviceAllocationResult(dict):
955
+ """
956
+ DeviceAllocationResult is the result of allocating devices.
957
+ """
958
+ def __init__(__self__, *,
959
+ config: Optional[Sequence['outputs.DeviceAllocationConfiguration']] = None,
960
+ results: Optional[Sequence['outputs.DeviceRequestAllocationResult']] = None):
961
+ """
962
+ DeviceAllocationResult is the result of allocating devices.
963
+ :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.
964
+
965
+ 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.
966
+ :param Sequence['DeviceRequestAllocationResultArgs'] results: Results lists all allocated devices.
967
+ """
968
+ if config is not None:
969
+ pulumi.set(__self__, "config", config)
970
+ if results is not None:
971
+ pulumi.set(__self__, "results", results)
972
+
973
+ @property
974
+ @pulumi.getter
975
+ def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfiguration']]:
976
+ """
977
+ This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
978
+
979
+ 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.
980
+ """
981
+ return pulumi.get(self, "config")
982
+
983
+ @property
984
+ @pulumi.getter
985
+ def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResult']]:
986
+ """
987
+ Results lists all allocated devices.
988
+ """
989
+ return pulumi.get(self, "results")
990
+
991
+
992
+ @pulumi.output_type
993
+ class DeviceAllocationResultPatch(dict):
994
+ """
995
+ DeviceAllocationResult is the result of allocating devices.
996
+ """
997
+ def __init__(__self__, *,
998
+ config: Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']] = None,
999
+ results: Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']] = None):
1000
+ """
1001
+ DeviceAllocationResult is the result of allocating devices.
1002
+ :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.
1003
+
1004
+ 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.
1005
+ :param Sequence['DeviceRequestAllocationResultPatchArgs'] results: Results lists all allocated devices.
1006
+ """
1007
+ if config is not None:
1008
+ pulumi.set(__self__, "config", config)
1009
+ if results is not None:
1010
+ pulumi.set(__self__, "results", results)
1011
+
1012
+ @property
1013
+ @pulumi.getter
1014
+ def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']]:
1015
+ """
1016
+ This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
1017
+
1018
+ 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.
1019
+ """
1020
+ return pulumi.get(self, "config")
1021
+
1022
+ @property
1023
+ @pulumi.getter
1024
+ def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']]:
1025
+ """
1026
+ Results lists all allocated devices.
1027
+ """
1028
+ return pulumi.get(self, "results")
1029
+
1030
+
1031
+ @pulumi.output_type
1032
+ class DeviceAttribute(dict):
1033
+ """
1034
+ DeviceAttribute must have exactly one field set.
1035
+ """
1036
+ def __init__(__self__, *,
1037
+ bool: Optional[builtins.bool] = None,
1038
+ int: Optional[builtins.int] = None,
1039
+ string: Optional[builtins.str] = None,
1040
+ version: Optional[builtins.str] = None):
1041
+ """
1042
+ DeviceAttribute must have exactly one field set.
1043
+ :param builtins.bool bool: BoolValue is a true/false value.
1044
+ :param builtins.int int: IntValue is a number.
1045
+ :param builtins.str string: StringValue is a string. Must not be longer than 64 characters.
1046
+ :param builtins.str version: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
1047
+ """
1048
+ if bool is not None:
1049
+ pulumi.set(__self__, "bool", bool)
1050
+ if int is not None:
1051
+ pulumi.set(__self__, "int", int)
1052
+ if string is not None:
1053
+ pulumi.set(__self__, "string", string)
1054
+ if version is not None:
1055
+ pulumi.set(__self__, "version", version)
1056
+
1057
+ @property
1058
+ @pulumi.getter
1059
+ def bool(self) -> Optional[builtins.bool]:
1060
+ """
1061
+ BoolValue is a true/false value.
1062
+ """
1063
+ return pulumi.get(self, "bool")
1064
+
1065
+ @property
1066
+ @pulumi.getter
1067
+ def int(self) -> Optional[builtins.int]:
1068
+ """
1069
+ IntValue is a number.
1070
+ """
1071
+ return pulumi.get(self, "int")
1072
+
1073
+ @property
1074
+ @pulumi.getter
1075
+ def string(self) -> Optional[builtins.str]:
1076
+ """
1077
+ StringValue is a string. Must not be longer than 64 characters.
1078
+ """
1079
+ return pulumi.get(self, "string")
1080
+
1081
+ @property
1082
+ @pulumi.getter
1083
+ def version(self) -> Optional[builtins.str]:
1084
+ """
1085
+ VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
1086
+ """
1087
+ return pulumi.get(self, "version")
1088
+
1089
+
1090
+ @pulumi.output_type
1091
+ class DeviceCapacity(dict):
1092
+ """
1093
+ DeviceCapacity describes a quantity associated with a device.
1094
+ """
1095
+ def __init__(__self__, *,
1096
+ value: builtins.str):
1097
+ """
1098
+ DeviceCapacity describes a quantity associated with a device.
1099
+ :param builtins.str value: Value defines how much of a certain device capacity is available.
1100
+ """
1101
+ pulumi.set(__self__, "value", value)
1102
+
1103
+ @property
1104
+ @pulumi.getter
1105
+ def value(self) -> builtins.str:
1106
+ """
1107
+ Value defines how much of a certain device capacity is available.
1108
+ """
1109
+ return pulumi.get(self, "value")
1110
+
1111
+
1112
+ @pulumi.output_type
1113
+ class DeviceClaim(dict):
1114
+ """
1115
+ DeviceClaim defines how to request devices with a ResourceClaim.
1116
+ """
1117
+ def __init__(__self__, *,
1118
+ config: Optional[Sequence['outputs.DeviceClaimConfiguration']] = None,
1119
+ constraints: Optional[Sequence['outputs.DeviceConstraint']] = None,
1120
+ requests: Optional[Sequence['outputs.DeviceRequest']] = None):
1121
+ """
1122
+ DeviceClaim defines how to request devices with a ResourceClaim.
1123
+ :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.
1124
+ :param Sequence['DeviceConstraintArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
1125
+ :param Sequence['DeviceRequestArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1126
+ """
1127
+ if config is not None:
1128
+ pulumi.set(__self__, "config", config)
1129
+ if constraints is not None:
1130
+ pulumi.set(__self__, "constraints", constraints)
1131
+ if requests is not None:
1132
+ pulumi.set(__self__, "requests", requests)
1133
+
1134
+ @property
1135
+ @pulumi.getter
1136
+ def config(self) -> Optional[Sequence['outputs.DeviceClaimConfiguration']]:
1137
+ """
1138
+ This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1139
+ """
1140
+ return pulumi.get(self, "config")
1141
+
1142
+ @property
1143
+ @pulumi.getter
1144
+ def constraints(self) -> Optional[Sequence['outputs.DeviceConstraint']]:
1145
+ """
1146
+ These constraints must be satisfied by the set of devices that get allocated for the claim.
1147
+ """
1148
+ return pulumi.get(self, "constraints")
1149
+
1150
+ @property
1151
+ @pulumi.getter
1152
+ def requests(self) -> Optional[Sequence['outputs.DeviceRequest']]:
1153
+ """
1154
+ Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1155
+ """
1156
+ return pulumi.get(self, "requests")
1157
+
1158
+
1159
+ @pulumi.output_type
1160
+ class DeviceClaimConfiguration(dict):
1161
+ """
1162
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1163
+ """
1164
+ def __init__(__self__, *,
1165
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
1166
+ requests: Optional[Sequence[builtins.str]] = None):
1167
+ """
1168
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1169
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
1170
+ :param Sequence[builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1171
+
1172
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1173
+ """
1174
+ if opaque is not None:
1175
+ pulumi.set(__self__, "opaque", opaque)
1176
+ if requests is not None:
1177
+ pulumi.set(__self__, "requests", requests)
1178
+
1179
+ @property
1180
+ @pulumi.getter
1181
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
1182
+ """
1183
+ Opaque provides driver-specific configuration parameters.
1184
+ """
1185
+ return pulumi.get(self, "opaque")
1186
+
1187
+ @property
1188
+ @pulumi.getter
1189
+ def requests(self) -> Optional[Sequence[builtins.str]]:
1190
+ """
1191
+ Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1192
+
1193
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1194
+ """
1195
+ return pulumi.get(self, "requests")
1196
+
1197
+
1198
+ @pulumi.output_type
1199
+ class DeviceClaimConfigurationPatch(dict):
1200
+ """
1201
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1202
+ """
1203
+ def __init__(__self__, *,
1204
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
1205
+ requests: Optional[Sequence[builtins.str]] = None):
1206
+ """
1207
+ DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
1208
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
1209
+ :param Sequence[builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1210
+
1211
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1212
+ """
1213
+ if opaque is not None:
1214
+ pulumi.set(__self__, "opaque", opaque)
1215
+ if requests is not None:
1216
+ pulumi.set(__self__, "requests", requests)
1217
+
1218
+ @property
1219
+ @pulumi.getter
1220
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
1221
+ """
1222
+ Opaque provides driver-specific configuration parameters.
1223
+ """
1224
+ return pulumi.get(self, "opaque")
1225
+
1226
+ @property
1227
+ @pulumi.getter
1228
+ def requests(self) -> Optional[Sequence[builtins.str]]:
1229
+ """
1230
+ Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
1231
+
1232
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
1233
+ """
1234
+ return pulumi.get(self, "requests")
1235
+
1236
+
1237
+ @pulumi.output_type
1238
+ class DeviceClaimPatch(dict):
1239
+ """
1240
+ DeviceClaim defines how to request devices with a ResourceClaim.
1241
+ """
1242
+ def __init__(__self__, *,
1243
+ config: Optional[Sequence['outputs.DeviceClaimConfigurationPatch']] = None,
1244
+ constraints: Optional[Sequence['outputs.DeviceConstraintPatch']] = None,
1245
+ requests: Optional[Sequence['outputs.DeviceRequestPatch']] = None):
1246
+ """
1247
+ DeviceClaim defines how to request devices with a ResourceClaim.
1248
+ :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.
1249
+ :param Sequence['DeviceConstraintPatchArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
1250
+ :param Sequence['DeviceRequestPatchArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1251
+ """
1252
+ if config is not None:
1253
+ pulumi.set(__self__, "config", config)
1254
+ if constraints is not None:
1255
+ pulumi.set(__self__, "constraints", constraints)
1256
+ if requests is not None:
1257
+ pulumi.set(__self__, "requests", requests)
1258
+
1259
+ @property
1260
+ @pulumi.getter
1261
+ def config(self) -> Optional[Sequence['outputs.DeviceClaimConfigurationPatch']]:
1262
+ """
1263
+ This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
1264
+ """
1265
+ return pulumi.get(self, "config")
1266
+
1267
+ @property
1268
+ @pulumi.getter
1269
+ def constraints(self) -> Optional[Sequence['outputs.DeviceConstraintPatch']]:
1270
+ """
1271
+ These constraints must be satisfied by the set of devices that get allocated for the claim.
1272
+ """
1273
+ return pulumi.get(self, "constraints")
1274
+
1275
+ @property
1276
+ @pulumi.getter
1277
+ def requests(self) -> Optional[Sequence['outputs.DeviceRequestPatch']]:
1278
+ """
1279
+ Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
1280
+ """
1281
+ return pulumi.get(self, "requests")
1282
+
1283
+
1284
+ @pulumi.output_type
1285
+ class DeviceClass(dict):
1286
+ """
1287
+ 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.
1288
+
1289
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1290
+ """
1291
+ @staticmethod
1292
+ def __key_warning(key: str):
1293
+ suggest = None
1294
+ if key == "apiVersion":
1295
+ suggest = "api_version"
1296
+
1297
+ if suggest:
1298
+ pulumi.log.warn(f"Key '{key}' not found in DeviceClass. Access the value via the '{suggest}' property getter instead.")
1299
+
1300
+ def __getitem__(self, key: str) -> Any:
1301
+ DeviceClass.__key_warning(key)
1302
+ return super().__getitem__(key)
1303
+
1304
+ def get(self, key: str, default = None) -> Any:
1305
+ DeviceClass.__key_warning(key)
1306
+ return super().get(key, default)
1307
+
1308
+ def __init__(__self__, *,
1309
+ spec: 'outputs.DeviceClassSpec',
1310
+ api_version: Optional[builtins.str] = None,
1311
+ kind: Optional[builtins.str] = None,
1312
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
1313
+ """
1314
+ 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.
1315
+
1316
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1317
+ :param 'DeviceClassSpecArgs' spec: Spec defines what can be allocated and how to configure it.
1318
+
1319
+ 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.
1320
+
1321
+ Changing the spec automatically increments the metadata.generation number.
1322
+ :param builtins.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
1323
+ :param builtins.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
1324
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1325
+ """
1326
+ pulumi.set(__self__, "spec", spec)
1327
+ if api_version is not None:
1328
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
1329
+ if kind is not None:
1330
+ pulumi.set(__self__, "kind", 'DeviceClass')
1331
+ if metadata is not None:
1332
+ pulumi.set(__self__, "metadata", metadata)
1333
+
1334
+ @property
1335
+ @pulumi.getter
1336
+ def spec(self) -> 'outputs.DeviceClassSpec':
1337
+ """
1338
+ Spec defines what can be allocated and how to configure it.
1339
+
1340
+ 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.
1341
+
1342
+ Changing the spec automatically increments the metadata.generation number.
1343
+ """
1344
+ return pulumi.get(self, "spec")
1345
+
1346
+ @property
1347
+ @pulumi.getter(name="apiVersion")
1348
+ def api_version(self) -> Optional[builtins.str]:
1349
+ """
1350
+ 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
1351
+ """
1352
+ return pulumi.get(self, "api_version")
1353
+
1354
+ @property
1355
+ @pulumi.getter
1356
+ def kind(self) -> Optional[builtins.str]:
1357
+ """
1358
+ 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
1359
+ """
1360
+ return pulumi.get(self, "kind")
1361
+
1362
+ @property
1363
+ @pulumi.getter
1364
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1365
+ """
1366
+ Standard object metadata
1367
+ """
1368
+ return pulumi.get(self, "metadata")
1369
+
1370
+
1371
+ @pulumi.output_type
1372
+ class DeviceClassConfiguration(dict):
1373
+ """
1374
+ DeviceClassConfiguration is used in DeviceClass.
1375
+ """
1376
+ def __init__(__self__, *,
1377
+ opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None):
1378
+ """
1379
+ DeviceClassConfiguration is used in DeviceClass.
1380
+ :param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
1381
+ """
1382
+ if opaque is not None:
1383
+ pulumi.set(__self__, "opaque", opaque)
1384
+
1385
+ @property
1386
+ @pulumi.getter
1387
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
1388
+ """
1389
+ Opaque provides driver-specific configuration parameters.
1390
+ """
1391
+ return pulumi.get(self, "opaque")
1392
+
1393
+
1394
+ @pulumi.output_type
1395
+ class DeviceClassConfigurationPatch(dict):
1396
+ """
1397
+ DeviceClassConfiguration is used in DeviceClass.
1398
+ """
1399
+ def __init__(__self__, *,
1400
+ opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None):
1401
+ """
1402
+ DeviceClassConfiguration is used in DeviceClass.
1403
+ :param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
1404
+ """
1405
+ if opaque is not None:
1406
+ pulumi.set(__self__, "opaque", opaque)
1407
+
1408
+ @property
1409
+ @pulumi.getter
1410
+ def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
1411
+ """
1412
+ Opaque provides driver-specific configuration parameters.
1413
+ """
1414
+ return pulumi.get(self, "opaque")
1415
+
1416
+
1417
+ @pulumi.output_type
1418
+ class DeviceClassSpec(dict):
1419
+ """
1420
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1421
+ """
1422
+ def __init__(__self__, *,
1423
+ config: Optional[Sequence['outputs.DeviceClassConfiguration']] = None,
1424
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None):
1425
+ """
1426
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1427
+ :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.
1428
+
1429
+ They are passed to the driver, but are not considered while allocating the claim.
1430
+ :param Sequence['DeviceSelectorArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
1431
+ """
1432
+ if config is not None:
1433
+ pulumi.set(__self__, "config", config)
1434
+ if selectors is not None:
1435
+ pulumi.set(__self__, "selectors", selectors)
1436
+
1437
+ @property
1438
+ @pulumi.getter
1439
+ def config(self) -> Optional[Sequence['outputs.DeviceClassConfiguration']]:
1440
+ """
1441
+ 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.
1442
+
1443
+ They are passed to the driver, but are not considered while allocating the claim.
1444
+ """
1445
+ return pulumi.get(self, "config")
1446
+
1447
+ @property
1448
+ @pulumi.getter
1449
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
1450
+ """
1451
+ Each selector must be satisfied by a device which is claimed via this class.
1452
+ """
1453
+ return pulumi.get(self, "selectors")
1454
+
1455
+
1456
+ @pulumi.output_type
1457
+ class DeviceClassSpecPatch(dict):
1458
+ """
1459
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1460
+ """
1461
+ def __init__(__self__, *,
1462
+ config: Optional[Sequence['outputs.DeviceClassConfigurationPatch']] = None,
1463
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None):
1464
+ """
1465
+ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
1466
+ :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.
1467
+
1468
+ They are passed to the driver, but are not considered while allocating the claim.
1469
+ :param Sequence['DeviceSelectorPatchArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
1470
+ """
1471
+ if config is not None:
1472
+ pulumi.set(__self__, "config", config)
1473
+ if selectors is not None:
1474
+ pulumi.set(__self__, "selectors", selectors)
1475
+
1476
+ @property
1477
+ @pulumi.getter
1478
+ def config(self) -> Optional[Sequence['outputs.DeviceClassConfigurationPatch']]:
1479
+ """
1480
+ 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.
1481
+
1482
+ They are passed to the driver, but are not considered while allocating the claim.
1483
+ """
1484
+ return pulumi.get(self, "config")
1485
+
1486
+ @property
1487
+ @pulumi.getter
1488
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
1489
+ """
1490
+ Each selector must be satisfied by a device which is claimed via this class.
1491
+ """
1492
+ return pulumi.get(self, "selectors")
1493
+
1494
+
1495
+ @pulumi.output_type
1496
+ class DeviceConstraint(dict):
1497
+ """
1498
+ DeviceConstraint must have exactly one field set besides Requests.
1499
+ """
1500
+ @staticmethod
1501
+ def __key_warning(key: str):
1502
+ suggest = None
1503
+ if key == "matchAttribute":
1504
+ suggest = "match_attribute"
1505
+
1506
+ if suggest:
1507
+ pulumi.log.warn(f"Key '{key}' not found in DeviceConstraint. Access the value via the '{suggest}' property getter instead.")
1508
+
1509
+ def __getitem__(self, key: str) -> Any:
1510
+ DeviceConstraint.__key_warning(key)
1511
+ return super().__getitem__(key)
1512
+
1513
+ def get(self, key: str, default = None) -> Any:
1514
+ DeviceConstraint.__key_warning(key)
1515
+ return super().get(key, default)
1516
+
1517
+ def __init__(__self__, *,
1518
+ match_attribute: Optional[builtins.str] = None,
1519
+ requests: Optional[Sequence[builtins.str]] = None):
1520
+ """
1521
+ DeviceConstraint must have exactly one field set besides Requests.
1522
+ :param builtins.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.
1523
+
1524
+ 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.
1525
+
1526
+ Must include the domain qualifier.
1527
+ :param Sequence[builtins.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.
1528
+
1529
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1530
+ """
1531
+ if match_attribute is not None:
1532
+ pulumi.set(__self__, "match_attribute", match_attribute)
1533
+ if requests is not None:
1534
+ pulumi.set(__self__, "requests", requests)
1535
+
1536
+ @property
1537
+ @pulumi.getter(name="matchAttribute")
1538
+ def match_attribute(self) -> Optional[builtins.str]:
1539
+ """
1540
+ MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1541
+
1542
+ 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.
1543
+
1544
+ Must include the domain qualifier.
1545
+ """
1546
+ return pulumi.get(self, "match_attribute")
1547
+
1548
+ @property
1549
+ @pulumi.getter
1550
+ def requests(self) -> Optional[Sequence[builtins.str]]:
1551
+ """
1552
+ 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.
1553
+
1554
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1555
+ """
1556
+ return pulumi.get(self, "requests")
1557
+
1558
+
1559
+ @pulumi.output_type
1560
+ class DeviceConstraintPatch(dict):
1561
+ """
1562
+ DeviceConstraint must have exactly one field set besides Requests.
1563
+ """
1564
+ @staticmethod
1565
+ def __key_warning(key: str):
1566
+ suggest = None
1567
+ if key == "matchAttribute":
1568
+ suggest = "match_attribute"
1569
+
1570
+ if suggest:
1571
+ pulumi.log.warn(f"Key '{key}' not found in DeviceConstraintPatch. Access the value via the '{suggest}' property getter instead.")
1572
+
1573
+ def __getitem__(self, key: str) -> Any:
1574
+ DeviceConstraintPatch.__key_warning(key)
1575
+ return super().__getitem__(key)
1576
+
1577
+ def get(self, key: str, default = None) -> Any:
1578
+ DeviceConstraintPatch.__key_warning(key)
1579
+ return super().get(key, default)
1580
+
1581
+ def __init__(__self__, *,
1582
+ match_attribute: Optional[builtins.str] = None,
1583
+ requests: Optional[Sequence[builtins.str]] = None):
1584
+ """
1585
+ DeviceConstraint must have exactly one field set besides Requests.
1586
+ :param builtins.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.
1587
+
1588
+ 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.
1589
+
1590
+ Must include the domain qualifier.
1591
+ :param Sequence[builtins.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.
1592
+
1593
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1594
+ """
1595
+ if match_attribute is not None:
1596
+ pulumi.set(__self__, "match_attribute", match_attribute)
1597
+ if requests is not None:
1598
+ pulumi.set(__self__, "requests", requests)
1599
+
1600
+ @property
1601
+ @pulumi.getter(name="matchAttribute")
1602
+ def match_attribute(self) -> Optional[builtins.str]:
1603
+ """
1604
+ MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
1605
+
1606
+ 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.
1607
+
1608
+ Must include the domain qualifier.
1609
+ """
1610
+ return pulumi.get(self, "match_attribute")
1611
+
1612
+ @property
1613
+ @pulumi.getter
1614
+ def requests(self) -> Optional[Sequence[builtins.str]]:
1615
+ """
1616
+ 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.
1617
+
1618
+ References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
1619
+ """
1620
+ return pulumi.get(self, "requests")
1621
+
1622
+
1623
+ @pulumi.output_type
1624
+ class DeviceCounterConsumption(dict):
1625
+ """
1626
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1627
+ """
1628
+ @staticmethod
1629
+ def __key_warning(key: str):
1630
+ suggest = None
1631
+ if key == "counterSet":
1632
+ suggest = "counter_set"
1633
+
1634
+ if suggest:
1635
+ pulumi.log.warn(f"Key '{key}' not found in DeviceCounterConsumption. Access the value via the '{suggest}' property getter instead.")
1636
+
1637
+ def __getitem__(self, key: str) -> Any:
1638
+ DeviceCounterConsumption.__key_warning(key)
1639
+ return super().__getitem__(key)
1640
+
1641
+ def get(self, key: str, default = None) -> Any:
1642
+ DeviceCounterConsumption.__key_warning(key)
1643
+ return super().get(key, default)
1644
+
1645
+ def __init__(__self__, *,
1646
+ counter_set: builtins.str,
1647
+ counters: Mapping[str, 'outputs.Counter']):
1648
+ """
1649
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1650
+ :param builtins.str counter_set: CounterSet is the name of the set from which the counters defined will be consumed.
1651
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the counters that will be consumed by the device.
1652
+
1653
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1654
+ """
1655
+ pulumi.set(__self__, "counter_set", counter_set)
1656
+ pulumi.set(__self__, "counters", counters)
1657
+
1658
+ @property
1659
+ @pulumi.getter(name="counterSet")
1660
+ def counter_set(self) -> builtins.str:
1661
+ """
1662
+ CounterSet is the name of the set from which the counters defined will be consumed.
1663
+ """
1664
+ return pulumi.get(self, "counter_set")
1665
+
1666
+ @property
1667
+ @pulumi.getter
1668
+ def counters(self) -> Mapping[str, 'outputs.Counter']:
1669
+ """
1670
+ Counters defines the counters that will be consumed by the device.
1671
+
1672
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1673
+ """
1674
+ return pulumi.get(self, "counters")
1675
+
1676
+
1677
+ @pulumi.output_type
1678
+ class DeviceCounterConsumptionPatch(dict):
1679
+ """
1680
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1681
+ """
1682
+ @staticmethod
1683
+ def __key_warning(key: str):
1684
+ suggest = None
1685
+ if key == "counterSet":
1686
+ suggest = "counter_set"
1687
+
1688
+ if suggest:
1689
+ pulumi.log.warn(f"Key '{key}' not found in DeviceCounterConsumptionPatch. Access the value via the '{suggest}' property getter instead.")
1690
+
1691
+ def __getitem__(self, key: str) -> Any:
1692
+ DeviceCounterConsumptionPatch.__key_warning(key)
1693
+ return super().__getitem__(key)
1694
+
1695
+ def get(self, key: str, default = None) -> Any:
1696
+ DeviceCounterConsumptionPatch.__key_warning(key)
1697
+ return super().get(key, default)
1698
+
1699
+ def __init__(__self__, *,
1700
+ counter_set: Optional[builtins.str] = None,
1701
+ counters: Optional[Mapping[str, 'outputs.Counter']] = None):
1702
+ """
1703
+ DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
1704
+ :param builtins.str counter_set: CounterSet is the name of the set from which the counters defined will be consumed.
1705
+ :param Mapping[str, 'CounterArgs'] counters: Counters defines the counters that will be consumed by the device.
1706
+
1707
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1708
+ """
1709
+ if counter_set is not None:
1710
+ pulumi.set(__self__, "counter_set", counter_set)
1711
+ if counters is not None:
1712
+ pulumi.set(__self__, "counters", counters)
1713
+
1714
+ @property
1715
+ @pulumi.getter(name="counterSet")
1716
+ def counter_set(self) -> Optional[builtins.str]:
1717
+ """
1718
+ CounterSet is the name of the set from which the counters defined will be consumed.
1719
+ """
1720
+ return pulumi.get(self, "counter_set")
1721
+
1722
+ @property
1723
+ @pulumi.getter
1724
+ def counters(self) -> Optional[Mapping[str, 'outputs.Counter']]:
1725
+ """
1726
+ Counters defines the counters that will be consumed by the device.
1727
+
1728
+ The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
1729
+ """
1730
+ return pulumi.get(self, "counters")
1731
+
1732
+
1733
+ @pulumi.output_type
1734
+ class DevicePatch(dict):
1735
+ """
1736
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1737
+ """
1738
+ @staticmethod
1739
+ def __key_warning(key: str):
1740
+ suggest = None
1741
+ if key == "allNodes":
1742
+ suggest = "all_nodes"
1743
+ elif key == "consumesCounters":
1744
+ suggest = "consumes_counters"
1745
+ elif key == "nodeName":
1746
+ suggest = "node_name"
1747
+ elif key == "nodeSelector":
1748
+ suggest = "node_selector"
1749
+
1750
+ if suggest:
1751
+ pulumi.log.warn(f"Key '{key}' not found in DevicePatch. Access the value via the '{suggest}' property getter instead.")
1752
+
1753
+ def __getitem__(self, key: str) -> Any:
1754
+ DevicePatch.__key_warning(key)
1755
+ return super().__getitem__(key)
1756
+
1757
+ def get(self, key: str, default = None) -> Any:
1758
+ DevicePatch.__key_warning(key)
1759
+ return super().get(key, default)
1760
+
1761
+ def __init__(__self__, *,
1762
+ all_nodes: Optional[builtins.bool] = None,
1763
+ attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
1764
+ capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None,
1765
+ consumes_counters: Optional[Sequence['outputs.DeviceCounterConsumptionPatch']] = None,
1766
+ name: Optional[builtins.str] = None,
1767
+ node_name: Optional[builtins.str] = None,
1768
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
1769
+ taints: Optional[Sequence['outputs.DeviceTaintPatch']] = None):
1770
+ """
1771
+ Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
1772
+ :param builtins.bool all_nodes: AllNodes indicates that all nodes have access to the device.
1773
+
1774
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1775
+ :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.
1776
+
1777
+ The maximum number of attributes and capacities combined is 32.
1778
+ :param Mapping[str, 'DeviceCapacityArgs'] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
1779
+
1780
+ The maximum number of attributes and capacities combined is 32.
1781
+ :param Sequence['DeviceCounterConsumptionPatchArgs'] consumes_counters: ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
1782
+
1783
+ There can only be a single entry per counterSet.
1784
+
1785
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
1786
+ :param builtins.str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1787
+ :param builtins.str node_name: NodeName identifies the node where the device is available.
1788
+
1789
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1790
+ :param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines the nodes where the device is available.
1791
+
1792
+ Must use exactly one term.
1793
+
1794
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1795
+ :param Sequence['DeviceTaintPatchArgs'] taints: If specified, these are the driver-defined taints.
1796
+
1797
+ The maximum number of taints is 4.
1798
+
1799
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
1800
+ """
1801
+ if all_nodes is not None:
1802
+ pulumi.set(__self__, "all_nodes", all_nodes)
1803
+ if attributes is not None:
1804
+ pulumi.set(__self__, "attributes", attributes)
1805
+ if capacity is not None:
1806
+ pulumi.set(__self__, "capacity", capacity)
1807
+ if consumes_counters is not None:
1808
+ pulumi.set(__self__, "consumes_counters", consumes_counters)
1809
+ if name is not None:
1810
+ pulumi.set(__self__, "name", name)
1811
+ if node_name is not None:
1812
+ pulumi.set(__self__, "node_name", node_name)
1813
+ if node_selector is not None:
1814
+ pulumi.set(__self__, "node_selector", node_selector)
1815
+ if taints is not None:
1816
+ pulumi.set(__self__, "taints", taints)
1817
+
1818
+ @property
1819
+ @pulumi.getter(name="allNodes")
1820
+ def all_nodes(self) -> Optional[builtins.bool]:
1821
+ """
1822
+ AllNodes indicates that all nodes have access to the device.
1823
+
1824
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1825
+ """
1826
+ return pulumi.get(self, "all_nodes")
1827
+
1828
+ @property
1829
+ @pulumi.getter
1830
+ def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
1831
+ """
1832
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
1833
+
1834
+ The maximum number of attributes and capacities combined is 32.
1835
+ """
1836
+ return pulumi.get(self, "attributes")
1837
+
1838
+ @property
1839
+ @pulumi.getter
1840
+ def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
1841
+ """
1842
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
1843
+
1844
+ The maximum number of attributes and capacities combined is 32.
1845
+ """
1846
+ return pulumi.get(self, "capacity")
1847
+
1848
+ @property
1849
+ @pulumi.getter(name="consumesCounters")
1850
+ def consumes_counters(self) -> Optional[Sequence['outputs.DeviceCounterConsumptionPatch']]:
1851
+ """
1852
+ ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
1853
+
1854
+ There can only be a single entry per counterSet.
1855
+
1856
+ The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
1857
+ """
1858
+ return pulumi.get(self, "consumes_counters")
1859
+
1860
+ @property
1861
+ @pulumi.getter
1862
+ def name(self) -> Optional[builtins.str]:
1863
+ """
1864
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
1865
+ """
1866
+ return pulumi.get(self, "name")
1867
+
1868
+ @property
1869
+ @pulumi.getter(name="nodeName")
1870
+ def node_name(self) -> Optional[builtins.str]:
1871
+ """
1872
+ NodeName identifies the node where the device is available.
1873
+
1874
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1875
+ """
1876
+ return pulumi.get(self, "node_name")
1877
+
1878
+ @property
1879
+ @pulumi.getter(name="nodeSelector")
1880
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
1881
+ """
1882
+ NodeSelector defines the nodes where the device is available.
1883
+
1884
+ Must use exactly one term.
1885
+
1886
+ Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
1887
+ """
1888
+ return pulumi.get(self, "node_selector")
1889
+
1890
+ @property
1891
+ @pulumi.getter
1892
+ def taints(self) -> Optional[Sequence['outputs.DeviceTaintPatch']]:
1893
+ """
1894
+ If specified, these are the driver-defined taints.
1895
+
1896
+ The maximum number of taints is 4.
1897
+
1898
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
1899
+ """
1900
+ return pulumi.get(self, "taints")
1901
+
1902
+
1903
+ @pulumi.output_type
1904
+ class DeviceRequest(dict):
1905
+ """
1906
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
1907
+ """
1908
+ @staticmethod
1909
+ def __key_warning(key: str):
1910
+ suggest = None
1911
+ if key == "firstAvailable":
1912
+ suggest = "first_available"
1913
+
1914
+ if suggest:
1915
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequest. Access the value via the '{suggest}' property getter instead.")
1916
+
1917
+ def __getitem__(self, key: str) -> Any:
1918
+ DeviceRequest.__key_warning(key)
1919
+ return super().__getitem__(key)
1920
+
1921
+ def get(self, key: str, default = None) -> Any:
1922
+ DeviceRequest.__key_warning(key)
1923
+ return super().get(key, default)
1924
+
1925
+ def __init__(__self__, *,
1926
+ name: builtins.str,
1927
+ exactly: Optional['outputs.ExactDeviceRequest'] = None,
1928
+ first_available: Optional[Sequence['outputs.DeviceSubRequest']] = None):
1929
+ """
1930
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
1931
+ :param builtins.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.
1932
+
1933
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
1934
+
1935
+ Must be a DNS label.
1936
+ :param 'ExactDeviceRequestArgs' exactly: Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
1937
+
1938
+ One of Exactly or FirstAvailable must be set.
1939
+ :param Sequence['DeviceSubRequestArgs'] first_available: FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
1940
+
1941
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
1942
+ """
1943
+ pulumi.set(__self__, "name", name)
1944
+ if exactly is not None:
1945
+ pulumi.set(__self__, "exactly", exactly)
1946
+ if first_available is not None:
1947
+ pulumi.set(__self__, "first_available", first_available)
1948
+
1949
+ @property
1950
+ @pulumi.getter
1951
+ def name(self) -> builtins.str:
1952
+ """
1953
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
1954
+
1955
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
1956
+
1957
+ Must be a DNS label.
1958
+ """
1959
+ return pulumi.get(self, "name")
1960
+
1961
+ @property
1962
+ @pulumi.getter
1963
+ def exactly(self) -> Optional['outputs.ExactDeviceRequest']:
1964
+ """
1965
+ Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
1966
+
1967
+ One of Exactly or FirstAvailable must be set.
1968
+ """
1969
+ return pulumi.get(self, "exactly")
1970
+
1971
+ @property
1972
+ @pulumi.getter(name="firstAvailable")
1973
+ def first_available(self) -> Optional[Sequence['outputs.DeviceSubRequest']]:
1974
+ """
1975
+ FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
1976
+
1977
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
1978
+ """
1979
+ return pulumi.get(self, "first_available")
1980
+
1981
+
1982
+ @pulumi.output_type
1983
+ class DeviceRequestAllocationResult(dict):
1984
+ """
1985
+ DeviceRequestAllocationResult contains the allocation result for one request.
1986
+ """
1987
+ @staticmethod
1988
+ def __key_warning(key: str):
1989
+ suggest = None
1990
+ if key == "adminAccess":
1991
+ suggest = "admin_access"
1992
+
1993
+ if suggest:
1994
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResult. Access the value via the '{suggest}' property getter instead.")
1995
+
1996
+ def __getitem__(self, key: str) -> Any:
1997
+ DeviceRequestAllocationResult.__key_warning(key)
1998
+ return super().__getitem__(key)
1999
+
2000
+ def get(self, key: str, default = None) -> Any:
2001
+ DeviceRequestAllocationResult.__key_warning(key)
2002
+ return super().get(key, default)
2003
+
2004
+ def __init__(__self__, *,
2005
+ device: builtins.str,
2006
+ driver: builtins.str,
2007
+ pool: builtins.str,
2008
+ request: builtins.str,
2009
+ admin_access: Optional[builtins.bool] = None,
2010
+ tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
2011
+ """
2012
+ DeviceRequestAllocationResult contains the allocation result for one request.
2013
+ :param builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2014
+ :param builtins.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.
2015
+
2016
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2017
+ :param builtins.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>`).
2018
+
2019
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2020
+ :param builtins.str request: Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2021
+
2022
+ Multiple devices may have been allocated per request.
2023
+ :param builtins.bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2024
+
2025
+ 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.
2026
+ :param Sequence['DeviceTolerationArgs'] tolerations: A copy of all tolerations specified in the request at the time when the device got allocated.
2027
+
2028
+ The maximum number of tolerations is 16.
2029
+
2030
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2031
+ """
2032
+ pulumi.set(__self__, "device", device)
2033
+ pulumi.set(__self__, "driver", driver)
2034
+ pulumi.set(__self__, "pool", pool)
2035
+ pulumi.set(__self__, "request", request)
2036
+ if admin_access is not None:
2037
+ pulumi.set(__self__, "admin_access", admin_access)
2038
+ if tolerations is not None:
2039
+ pulumi.set(__self__, "tolerations", tolerations)
2040
+
2041
+ @property
2042
+ @pulumi.getter
2043
+ def device(self) -> builtins.str:
2044
+ """
2045
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2046
+ """
2047
+ return pulumi.get(self, "device")
2048
+
2049
+ @property
2050
+ @pulumi.getter
2051
+ def driver(self) -> builtins.str:
2052
+ """
2053
+ 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.
2054
+
2055
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2056
+ """
2057
+ return pulumi.get(self, "driver")
2058
+
2059
+ @property
2060
+ @pulumi.getter
2061
+ def pool(self) -> builtins.str:
2062
+ """
2063
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
2064
+
2065
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2066
+ """
2067
+ return pulumi.get(self, "pool")
2068
+
2069
+ @property
2070
+ @pulumi.getter
2071
+ def request(self) -> builtins.str:
2072
+ """
2073
+ Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2074
+
2075
+ Multiple devices may have been allocated per request.
2076
+ """
2077
+ return pulumi.get(self, "request")
2078
+
2079
+ @property
2080
+ @pulumi.getter(name="adminAccess")
2081
+ def admin_access(self) -> Optional[builtins.bool]:
2082
+ """
2083
+ AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2084
+
2085
+ 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.
2086
+ """
2087
+ return pulumi.get(self, "admin_access")
2088
+
2089
+ @property
2090
+ @pulumi.getter
2091
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
2092
+ """
2093
+ A copy of all tolerations specified in the request at the time when the device got allocated.
2094
+
2095
+ The maximum number of tolerations is 16.
2096
+
2097
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2098
+ """
2099
+ return pulumi.get(self, "tolerations")
2100
+
2101
+
2102
+ @pulumi.output_type
2103
+ class DeviceRequestAllocationResultPatch(dict):
2104
+ """
2105
+ DeviceRequestAllocationResult contains the allocation result for one request.
2106
+ """
2107
+ @staticmethod
2108
+ def __key_warning(key: str):
2109
+ suggest = None
2110
+ if key == "adminAccess":
2111
+ suggest = "admin_access"
2112
+
2113
+ if suggest:
2114
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
2115
+
2116
+ def __getitem__(self, key: str) -> Any:
2117
+ DeviceRequestAllocationResultPatch.__key_warning(key)
2118
+ return super().__getitem__(key)
2119
+
2120
+ def get(self, key: str, default = None) -> Any:
2121
+ DeviceRequestAllocationResultPatch.__key_warning(key)
2122
+ return super().get(key, default)
2123
+
2124
+ def __init__(__self__, *,
2125
+ admin_access: Optional[builtins.bool] = None,
2126
+ device: Optional[builtins.str] = None,
2127
+ driver: Optional[builtins.str] = None,
2128
+ pool: Optional[builtins.str] = None,
2129
+ request: Optional[builtins.str] = None,
2130
+ tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
2131
+ """
2132
+ DeviceRequestAllocationResult contains the allocation result for one request.
2133
+ :param builtins.bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2134
+
2135
+ 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.
2136
+ :param builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2137
+ :param builtins.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.
2138
+
2139
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2140
+ :param builtins.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>`).
2141
+
2142
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2143
+ :param builtins.str request: Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2144
+
2145
+ Multiple devices may have been allocated per request.
2146
+ :param Sequence['DeviceTolerationPatchArgs'] tolerations: A copy of all tolerations specified in the request at the time when the device got allocated.
2147
+
2148
+ The maximum number of tolerations is 16.
2149
+
2150
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2151
+ """
2152
+ if admin_access is not None:
2153
+ pulumi.set(__self__, "admin_access", admin_access)
2154
+ if device is not None:
2155
+ pulumi.set(__self__, "device", device)
2156
+ if driver is not None:
2157
+ pulumi.set(__self__, "driver", driver)
2158
+ if pool is not None:
2159
+ pulumi.set(__self__, "pool", pool)
2160
+ if request is not None:
2161
+ pulumi.set(__self__, "request", request)
2162
+ if tolerations is not None:
2163
+ pulumi.set(__self__, "tolerations", tolerations)
2164
+
2165
+ @property
2166
+ @pulumi.getter(name="adminAccess")
2167
+ def admin_access(self) -> Optional[builtins.bool]:
2168
+ """
2169
+ AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
2170
+
2171
+ 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.
2172
+ """
2173
+ return pulumi.get(self, "admin_access")
2174
+
2175
+ @property
2176
+ @pulumi.getter
2177
+ def device(self) -> Optional[builtins.str]:
2178
+ """
2179
+ Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
2180
+ """
2181
+ return pulumi.get(self, "device")
2182
+
2183
+ @property
2184
+ @pulumi.getter
2185
+ def driver(self) -> Optional[builtins.str]:
2186
+ """
2187
+ 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.
2188
+
2189
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
2190
+ """
2191
+ return pulumi.get(self, "driver")
2192
+
2193
+ @property
2194
+ @pulumi.getter
2195
+ def pool(self) -> Optional[builtins.str]:
2196
+ """
2197
+ This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
2198
+
2199
+ Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
2200
+ """
2201
+ return pulumi.get(self, "pool")
2202
+
2203
+ @property
2204
+ @pulumi.getter
2205
+ def request(self) -> Optional[builtins.str]:
2206
+ """
2207
+ Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
2208
+
2209
+ Multiple devices may have been allocated per request.
2210
+ """
2211
+ return pulumi.get(self, "request")
2212
+
2213
+ @property
2214
+ @pulumi.getter
2215
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
2216
+ """
2217
+ A copy of all tolerations specified in the request at the time when the device got allocated.
2218
+
2219
+ The maximum number of tolerations is 16.
2220
+
2221
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2222
+ """
2223
+ return pulumi.get(self, "tolerations")
2224
+
2225
+
2226
+ @pulumi.output_type
2227
+ class DeviceRequestPatch(dict):
2228
+ """
2229
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
2230
+ """
2231
+ @staticmethod
2232
+ def __key_warning(key: str):
2233
+ suggest = None
2234
+ if key == "firstAvailable":
2235
+ suggest = "first_available"
2236
+
2237
+ if suggest:
2238
+ pulumi.log.warn(f"Key '{key}' not found in DeviceRequestPatch. Access the value via the '{suggest}' property getter instead.")
2239
+
2240
+ def __getitem__(self, key: str) -> Any:
2241
+ DeviceRequestPatch.__key_warning(key)
2242
+ return super().__getitem__(key)
2243
+
2244
+ def get(self, key: str, default = None) -> Any:
2245
+ DeviceRequestPatch.__key_warning(key)
2246
+ return super().get(key, default)
2247
+
2248
+ def __init__(__self__, *,
2249
+ exactly: Optional['outputs.ExactDeviceRequestPatch'] = None,
2250
+ first_available: Optional[Sequence['outputs.DeviceSubRequestPatch']] = None,
2251
+ name: Optional[builtins.str] = None):
2252
+ """
2253
+ 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. With FirstAvailable it is also possible to provide a prioritized list of requests.
2254
+ :param 'ExactDeviceRequestPatchArgs' exactly: Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
2255
+
2256
+ One of Exactly or FirstAvailable must be set.
2257
+ :param Sequence['DeviceSubRequestPatchArgs'] first_available: FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
2258
+
2259
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
2260
+ :param builtins.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.
2261
+
2262
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
2263
+
2264
+ Must be a DNS label.
2265
+ """
2266
+ if exactly is not None:
2267
+ pulumi.set(__self__, "exactly", exactly)
2268
+ if first_available is not None:
2269
+ pulumi.set(__self__, "first_available", first_available)
2270
+ if name is not None:
2271
+ pulumi.set(__self__, "name", name)
2272
+
2273
+ @property
2274
+ @pulumi.getter
2275
+ def exactly(self) -> Optional['outputs.ExactDeviceRequestPatch']:
2276
+ """
2277
+ Exactly specifies the details for a single request that must be met exactly for the request to be satisfied.
2278
+
2279
+ One of Exactly or FirstAvailable must be set.
2280
+ """
2281
+ return pulumi.get(self, "exactly")
2282
+
2283
+ @property
2284
+ @pulumi.getter(name="firstAvailable")
2285
+ def first_available(self) -> Optional[Sequence['outputs.DeviceSubRequestPatch']]:
2286
+ """
2287
+ FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used.
2288
+
2289
+ DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
2290
+ """
2291
+ return pulumi.get(self, "first_available")
2292
+
2293
+ @property
2294
+ @pulumi.getter
2295
+ def name(self) -> Optional[builtins.str]:
2296
+ """
2297
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
2298
+
2299
+ References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler.
2300
+
2301
+ Must be a DNS label.
2302
+ """
2303
+ return pulumi.get(self, "name")
2304
+
2305
+
2306
+ @pulumi.output_type
2307
+ class DeviceSelector(dict):
2308
+ """
2309
+ DeviceSelector must have exactly one field set.
2310
+ """
2311
+ def __init__(__self__, *,
2312
+ cel: Optional['outputs.CELDeviceSelector'] = None):
2313
+ """
2314
+ DeviceSelector must have exactly one field set.
2315
+ :param 'CELDeviceSelectorArgs' cel: CEL contains a CEL expression for selecting a device.
2316
+ """
2317
+ if cel is not None:
2318
+ pulumi.set(__self__, "cel", cel)
2319
+
2320
+ @property
2321
+ @pulumi.getter
2322
+ def cel(self) -> Optional['outputs.CELDeviceSelector']:
2323
+ """
2324
+ CEL contains a CEL expression for selecting a device.
2325
+ """
2326
+ return pulumi.get(self, "cel")
2327
+
2328
+
2329
+ @pulumi.output_type
2330
+ class DeviceSelectorPatch(dict):
2331
+ """
2332
+ DeviceSelector must have exactly one field set.
2333
+ """
2334
+ def __init__(__self__, *,
2335
+ cel: Optional['outputs.CELDeviceSelectorPatch'] = None):
2336
+ """
2337
+ DeviceSelector must have exactly one field set.
2338
+ :param 'CELDeviceSelectorPatchArgs' cel: CEL contains a CEL expression for selecting a device.
2339
+ """
2340
+ if cel is not None:
2341
+ pulumi.set(__self__, "cel", cel)
2342
+
2343
+ @property
2344
+ @pulumi.getter
2345
+ def cel(self) -> Optional['outputs.CELDeviceSelectorPatch']:
2346
+ """
2347
+ CEL contains a CEL expression for selecting a device.
2348
+ """
2349
+ return pulumi.get(self, "cel")
2350
+
2351
+
2352
+ @pulumi.output_type
2353
+ class DeviceSubRequest(dict):
2354
+ """
2355
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2356
+
2357
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2358
+ """
2359
+ @staticmethod
2360
+ def __key_warning(key: str):
2361
+ suggest = None
2362
+ if key == "deviceClassName":
2363
+ suggest = "device_class_name"
2364
+ elif key == "allocationMode":
2365
+ suggest = "allocation_mode"
2366
+
2367
+ if suggest:
2368
+ pulumi.log.warn(f"Key '{key}' not found in DeviceSubRequest. Access the value via the '{suggest}' property getter instead.")
2369
+
2370
+ def __getitem__(self, key: str) -> Any:
2371
+ DeviceSubRequest.__key_warning(key)
2372
+ return super().__getitem__(key)
2373
+
2374
+ def get(self, key: str, default = None) -> Any:
2375
+ DeviceSubRequest.__key_warning(key)
2376
+ return super().get(key, default)
2377
+
2378
+ def __init__(__self__, *,
2379
+ device_class_name: builtins.str,
2380
+ name: builtins.str,
2381
+ allocation_mode: Optional[builtins.str] = None,
2382
+ count: Optional[builtins.int] = None,
2383
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None,
2384
+ tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
2385
+ """
2386
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2387
+
2388
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2389
+ :param builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2390
+
2391
+ A class is required. Which classes are available depends on the cluster.
2392
+
2393
+ 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.
2394
+ :param builtins.str name: Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2395
+
2396
+ Must be a DNS label.
2397
+ :param builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2398
+
2399
+ - ExactCount: This request is for a specific number of devices.
2400
+ This is the default. The exact number is provided in the
2401
+ count field.
2402
+
2403
+ - All: This subrequest is for all of the matching devices in a pool.
2404
+ Allocation will fail if some devices are already allocated,
2405
+ unless adminAccess is requested.
2406
+
2407
+ If AllocationMode 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 subrequests must specify this field.
2408
+
2409
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2410
+ :param builtins.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.
2411
+ :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 subrequest. All selectors must be satisfied for a device to be considered.
2412
+ :param Sequence['DeviceTolerationArgs'] tolerations: If specified, the request's tolerations.
2413
+
2414
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2415
+
2416
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2417
+
2418
+ The maximum number of tolerations is 16.
2419
+
2420
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2421
+ """
2422
+ pulumi.set(__self__, "device_class_name", device_class_name)
2423
+ pulumi.set(__self__, "name", name)
2424
+ if allocation_mode is not None:
2425
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
2426
+ if count is not None:
2427
+ pulumi.set(__self__, "count", count)
2428
+ if selectors is not None:
2429
+ pulumi.set(__self__, "selectors", selectors)
2430
+ if tolerations is not None:
2431
+ pulumi.set(__self__, "tolerations", tolerations)
2432
+
2433
+ @property
2434
+ @pulumi.getter(name="deviceClassName")
2435
+ def device_class_name(self) -> builtins.str:
2436
+ """
2437
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2438
+
2439
+ A class is required. Which classes are available depends on the cluster.
2440
+
2441
+ 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.
2442
+ """
2443
+ return pulumi.get(self, "device_class_name")
2444
+
2445
+ @property
2446
+ @pulumi.getter
2447
+ def name(self) -> builtins.str:
2448
+ """
2449
+ Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2450
+
2451
+ Must be a DNS label.
2452
+ """
2453
+ return pulumi.get(self, "name")
2454
+
2455
+ @property
2456
+ @pulumi.getter(name="allocationMode")
2457
+ def allocation_mode(self) -> Optional[builtins.str]:
2458
+ """
2459
+ AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2460
+
2461
+ - ExactCount: This request is for a specific number of devices.
2462
+ This is the default. The exact number is provided in the
2463
+ count field.
2464
+
2465
+ - All: This subrequest is for all of the matching devices in a pool.
2466
+ Allocation will fail if some devices are already allocated,
2467
+ unless adminAccess is requested.
2468
+
2469
+ If AllocationMode 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 subrequests must specify this field.
2470
+
2471
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2472
+ """
2473
+ return pulumi.get(self, "allocation_mode")
2474
+
2475
+ @property
2476
+ @pulumi.getter
2477
+ def count(self) -> Optional[builtins.int]:
2478
+ """
2479
+ 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.
2480
+ """
2481
+ return pulumi.get(self, "count")
2482
+
2483
+ @property
2484
+ @pulumi.getter
2485
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
2486
+ """
2487
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
2488
+ """
2489
+ return pulumi.get(self, "selectors")
2490
+
2491
+ @property
2492
+ @pulumi.getter
2493
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
2494
+ """
2495
+ If specified, the request's tolerations.
2496
+
2497
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2498
+
2499
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2500
+
2501
+ The maximum number of tolerations is 16.
2502
+
2503
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2504
+ """
2505
+ return pulumi.get(self, "tolerations")
2506
+
2507
+
2508
+ @pulumi.output_type
2509
+ class DeviceSubRequestPatch(dict):
2510
+ """
2511
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2512
+
2513
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2514
+ """
2515
+ @staticmethod
2516
+ def __key_warning(key: str):
2517
+ suggest = None
2518
+ if key == "allocationMode":
2519
+ suggest = "allocation_mode"
2520
+ elif key == "deviceClassName":
2521
+ suggest = "device_class_name"
2522
+
2523
+ if suggest:
2524
+ pulumi.log.warn(f"Key '{key}' not found in DeviceSubRequestPatch. Access the value via the '{suggest}' property getter instead.")
2525
+
2526
+ def __getitem__(self, key: str) -> Any:
2527
+ DeviceSubRequestPatch.__key_warning(key)
2528
+ return super().__getitem__(key)
2529
+
2530
+ def get(self, key: str, default = None) -> Any:
2531
+ DeviceSubRequestPatch.__key_warning(key)
2532
+ return super().get(key, default)
2533
+
2534
+ def __init__(__self__, *,
2535
+ allocation_mode: Optional[builtins.str] = None,
2536
+ count: Optional[builtins.int] = None,
2537
+ device_class_name: Optional[builtins.str] = None,
2538
+ name: Optional[builtins.str] = None,
2539
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None,
2540
+ tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
2541
+ """
2542
+ DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
2543
+
2544
+ DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.
2545
+ :param builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2546
+
2547
+ - ExactCount: This request is for a specific number of devices.
2548
+ This is the default. The exact number is provided in the
2549
+ count field.
2550
+
2551
+ - All: This subrequest is for all of the matching devices in a pool.
2552
+ Allocation will fail if some devices are already allocated,
2553
+ unless adminAccess is requested.
2554
+
2555
+ If AllocationMode 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 subrequests must specify this field.
2556
+
2557
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2558
+ :param builtins.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.
2559
+ :param builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2560
+
2561
+ A class is required. Which classes are available depends on the cluster.
2562
+
2563
+ 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.
2564
+ :param builtins.str name: Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2565
+
2566
+ Must be a DNS label.
2567
+ :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 subrequest. All selectors must be satisfied for a device to be considered.
2568
+ :param Sequence['DeviceTolerationPatchArgs'] tolerations: If specified, the request's tolerations.
2569
+
2570
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2571
+
2572
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2573
+
2574
+ The maximum number of tolerations is 16.
2575
+
2576
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2577
+ """
2578
+ if allocation_mode is not None:
2579
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
2580
+ if count is not None:
2581
+ pulumi.set(__self__, "count", count)
2582
+ if device_class_name is not None:
2583
+ pulumi.set(__self__, "device_class_name", device_class_name)
2584
+ if name is not None:
2585
+ pulumi.set(__self__, "name", name)
2586
+ if selectors is not None:
2587
+ pulumi.set(__self__, "selectors", selectors)
2588
+ if tolerations is not None:
2589
+ pulumi.set(__self__, "tolerations", tolerations)
2590
+
2591
+ @property
2592
+ @pulumi.getter(name="allocationMode")
2593
+ def allocation_mode(self) -> Optional[builtins.str]:
2594
+ """
2595
+ AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
2596
+
2597
+ - ExactCount: This request is for a specific number of devices.
2598
+ This is the default. The exact number is provided in the
2599
+ count field.
2600
+
2601
+ - All: This subrequest is for all of the matching devices in a pool.
2602
+ Allocation will fail if some devices are already allocated,
2603
+ unless adminAccess is requested.
2604
+
2605
+ If AllocationMode 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 subrequests must specify this field.
2606
+
2607
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
2608
+ """
2609
+ return pulumi.get(self, "allocation_mode")
2610
+
2611
+ @property
2612
+ @pulumi.getter
2613
+ def count(self) -> Optional[builtins.int]:
2614
+ """
2615
+ 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.
2616
+ """
2617
+ return pulumi.get(self, "count")
2618
+
2619
+ @property
2620
+ @pulumi.getter(name="deviceClassName")
2621
+ def device_class_name(self) -> Optional[builtins.str]:
2622
+ """
2623
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
2624
+
2625
+ A class is required. Which classes are available depends on the cluster.
2626
+
2627
+ 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.
2628
+ """
2629
+ return pulumi.get(self, "device_class_name")
2630
+
2631
+ @property
2632
+ @pulumi.getter
2633
+ def name(self) -> Optional[builtins.str]:
2634
+ """
2635
+ Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
2636
+
2637
+ Must be a DNS label.
2638
+ """
2639
+ return pulumi.get(self, "name")
2640
+
2641
+ @property
2642
+ @pulumi.getter
2643
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
2644
+ """
2645
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
2646
+ """
2647
+ return pulumi.get(self, "selectors")
2648
+
2649
+ @property
2650
+ @pulumi.getter
2651
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
2652
+ """
2653
+ If specified, the request's tolerations.
2654
+
2655
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
2656
+
2657
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
2658
+
2659
+ The maximum number of tolerations is 16.
2660
+
2661
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
2662
+ """
2663
+ return pulumi.get(self, "tolerations")
2664
+
2665
+
2666
+ @pulumi.output_type
2667
+ class DeviceTaint(dict):
2668
+ """
2669
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2670
+ """
2671
+ @staticmethod
2672
+ def __key_warning(key: str):
2673
+ suggest = None
2674
+ if key == "timeAdded":
2675
+ suggest = "time_added"
2676
+
2677
+ if suggest:
2678
+ pulumi.log.warn(f"Key '{key}' not found in DeviceTaint. Access the value via the '{suggest}' property getter instead.")
2679
+
2680
+ def __getitem__(self, key: str) -> Any:
2681
+ DeviceTaint.__key_warning(key)
2682
+ return super().__getitem__(key)
2683
+
2684
+ def get(self, key: str, default = None) -> Any:
2685
+ DeviceTaint.__key_warning(key)
2686
+ return super().get(key, default)
2687
+
2688
+ def __init__(__self__, *,
2689
+ effect: builtins.str,
2690
+ key: builtins.str,
2691
+ time_added: Optional[builtins.str] = None,
2692
+ value: Optional[builtins.str] = None):
2693
+ """
2694
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2695
+ :param builtins.str effect: The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2696
+ :param builtins.str key: The taint key to be applied to a device. Must be a label name.
2697
+ :param builtins.str time_added: TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2698
+ :param builtins.str value: The taint value corresponding to the taint key. Must be a label value.
2699
+ """
2700
+ pulumi.set(__self__, "effect", effect)
2701
+ pulumi.set(__self__, "key", key)
2702
+ if time_added is not None:
2703
+ pulumi.set(__self__, "time_added", time_added)
2704
+ if value is not None:
2705
+ pulumi.set(__self__, "value", value)
2706
+
2707
+ @property
2708
+ @pulumi.getter
2709
+ def effect(self) -> builtins.str:
2710
+ """
2711
+ The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2712
+ """
2713
+ return pulumi.get(self, "effect")
2714
+
2715
+ @property
2716
+ @pulumi.getter
2717
+ def key(self) -> builtins.str:
2718
+ """
2719
+ The taint key to be applied to a device. Must be a label name.
2720
+ """
2721
+ return pulumi.get(self, "key")
2722
+
2723
+ @property
2724
+ @pulumi.getter(name="timeAdded")
2725
+ def time_added(self) -> Optional[builtins.str]:
2726
+ """
2727
+ TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2728
+ """
2729
+ return pulumi.get(self, "time_added")
2730
+
2731
+ @property
2732
+ @pulumi.getter
2733
+ def value(self) -> Optional[builtins.str]:
2734
+ """
2735
+ The taint value corresponding to the taint key. Must be a label value.
2736
+ """
2737
+ return pulumi.get(self, "value")
2738
+
2739
+
2740
+ @pulumi.output_type
2741
+ class DeviceTaintPatch(dict):
2742
+ """
2743
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2744
+ """
2745
+ @staticmethod
2746
+ def __key_warning(key: str):
2747
+ suggest = None
2748
+ if key == "timeAdded":
2749
+ suggest = "time_added"
2750
+
2751
+ if suggest:
2752
+ pulumi.log.warn(f"Key '{key}' not found in DeviceTaintPatch. Access the value via the '{suggest}' property getter instead.")
2753
+
2754
+ def __getitem__(self, key: str) -> Any:
2755
+ DeviceTaintPatch.__key_warning(key)
2756
+ return super().__getitem__(key)
2757
+
2758
+ def get(self, key: str, default = None) -> Any:
2759
+ DeviceTaintPatch.__key_warning(key)
2760
+ return super().get(key, default)
2761
+
2762
+ def __init__(__self__, *,
2763
+ effect: Optional[builtins.str] = None,
2764
+ key: Optional[builtins.str] = None,
2765
+ time_added: Optional[builtins.str] = None,
2766
+ value: Optional[builtins.str] = None):
2767
+ """
2768
+ The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
2769
+ :param builtins.str effect: The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2770
+ :param builtins.str key: The taint key to be applied to a device. Must be a label name.
2771
+ :param builtins.str time_added: TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2772
+ :param builtins.str value: The taint value corresponding to the taint key. Must be a label value.
2773
+ """
2774
+ if effect is not None:
2775
+ pulumi.set(__self__, "effect", effect)
2776
+ if key is not None:
2777
+ pulumi.set(__self__, "key", key)
2778
+ if time_added is not None:
2779
+ pulumi.set(__self__, "time_added", time_added)
2780
+ if value is not None:
2781
+ pulumi.set(__self__, "value", value)
2782
+
2783
+ @property
2784
+ @pulumi.getter
2785
+ def effect(self) -> Optional[builtins.str]:
2786
+ """
2787
+ The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
2788
+ """
2789
+ return pulumi.get(self, "effect")
2790
+
2791
+ @property
2792
+ @pulumi.getter
2793
+ def key(self) -> Optional[builtins.str]:
2794
+ """
2795
+ The taint key to be applied to a device. Must be a label name.
2796
+ """
2797
+ return pulumi.get(self, "key")
2798
+
2799
+ @property
2800
+ @pulumi.getter(name="timeAdded")
2801
+ def time_added(self) -> Optional[builtins.str]:
2802
+ """
2803
+ TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
2804
+ """
2805
+ return pulumi.get(self, "time_added")
2806
+
2807
+ @property
2808
+ @pulumi.getter
2809
+ def value(self) -> Optional[builtins.str]:
2810
+ """
2811
+ The taint value corresponding to the taint key. Must be a label value.
2812
+ """
2813
+ return pulumi.get(self, "value")
2814
+
2815
+
2816
+ @pulumi.output_type
2817
+ class DeviceToleration(dict):
2818
+ """
2819
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2820
+ """
2821
+ @staticmethod
2822
+ def __key_warning(key: str):
2823
+ suggest = None
2824
+ if key == "tolerationSeconds":
2825
+ suggest = "toleration_seconds"
2826
+
2827
+ if suggest:
2828
+ pulumi.log.warn(f"Key '{key}' not found in DeviceToleration. Access the value via the '{suggest}' property getter instead.")
2829
+
2830
+ def __getitem__(self, key: str) -> Any:
2831
+ DeviceToleration.__key_warning(key)
2832
+ return super().__getitem__(key)
2833
+
2834
+ def get(self, key: str, default = None) -> Any:
2835
+ DeviceToleration.__key_warning(key)
2836
+ return super().get(key, default)
2837
+
2838
+ def __init__(__self__, *,
2839
+ effect: Optional[builtins.str] = None,
2840
+ key: Optional[builtins.str] = None,
2841
+ operator: Optional[builtins.str] = None,
2842
+ toleration_seconds: Optional[builtins.int] = None,
2843
+ value: Optional[builtins.str] = None):
2844
+ """
2845
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2846
+ :param builtins.str effect: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2847
+ :param builtins.str key: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2848
+ :param builtins.str operator: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2849
+ :param builtins.int toleration_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2850
+ :param builtins.str value: Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2851
+ """
2852
+ if effect is not None:
2853
+ pulumi.set(__self__, "effect", effect)
2854
+ if key is not None:
2855
+ pulumi.set(__self__, "key", key)
2856
+ if operator is not None:
2857
+ pulumi.set(__self__, "operator", operator)
2858
+ if toleration_seconds is not None:
2859
+ pulumi.set(__self__, "toleration_seconds", toleration_seconds)
2860
+ if value is not None:
2861
+ pulumi.set(__self__, "value", value)
2862
+
2863
+ @property
2864
+ @pulumi.getter
2865
+ def effect(self) -> Optional[builtins.str]:
2866
+ """
2867
+ Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2868
+ """
2869
+ return pulumi.get(self, "effect")
2870
+
2871
+ @property
2872
+ @pulumi.getter
2873
+ def key(self) -> Optional[builtins.str]:
2874
+ """
2875
+ Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2876
+ """
2877
+ return pulumi.get(self, "key")
2878
+
2879
+ @property
2880
+ @pulumi.getter
2881
+ def operator(self) -> Optional[builtins.str]:
2882
+ """
2883
+ Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2884
+ """
2885
+ return pulumi.get(self, "operator")
2886
+
2887
+ @property
2888
+ @pulumi.getter(name="tolerationSeconds")
2889
+ def toleration_seconds(self) -> Optional[builtins.int]:
2890
+ """
2891
+ TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2892
+ """
2893
+ return pulumi.get(self, "toleration_seconds")
2894
+
2895
+ @property
2896
+ @pulumi.getter
2897
+ def value(self) -> Optional[builtins.str]:
2898
+ """
2899
+ Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2900
+ """
2901
+ return pulumi.get(self, "value")
2902
+
2903
+
2904
+ @pulumi.output_type
2905
+ class DeviceTolerationPatch(dict):
2906
+ """
2907
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2908
+ """
2909
+ @staticmethod
2910
+ def __key_warning(key: str):
2911
+ suggest = None
2912
+ if key == "tolerationSeconds":
2913
+ suggest = "toleration_seconds"
2914
+
2915
+ if suggest:
2916
+ pulumi.log.warn(f"Key '{key}' not found in DeviceTolerationPatch. Access the value via the '{suggest}' property getter instead.")
2917
+
2918
+ def __getitem__(self, key: str) -> Any:
2919
+ DeviceTolerationPatch.__key_warning(key)
2920
+ return super().__getitem__(key)
2921
+
2922
+ def get(self, key: str, default = None) -> Any:
2923
+ DeviceTolerationPatch.__key_warning(key)
2924
+ return super().get(key, default)
2925
+
2926
+ def __init__(__self__, *,
2927
+ effect: Optional[builtins.str] = None,
2928
+ key: Optional[builtins.str] = None,
2929
+ operator: Optional[builtins.str] = None,
2930
+ toleration_seconds: Optional[builtins.int] = None,
2931
+ value: Optional[builtins.str] = None):
2932
+ """
2933
+ The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
2934
+ :param builtins.str effect: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2935
+ :param builtins.str key: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2936
+ :param builtins.str operator: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2937
+ :param builtins.int toleration_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2938
+ :param builtins.str value: Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2939
+ """
2940
+ if effect is not None:
2941
+ pulumi.set(__self__, "effect", effect)
2942
+ if key is not None:
2943
+ pulumi.set(__self__, "key", key)
2944
+ if operator is not None:
2945
+ pulumi.set(__self__, "operator", operator)
2946
+ if toleration_seconds is not None:
2947
+ pulumi.set(__self__, "toleration_seconds", toleration_seconds)
2948
+ if value is not None:
2949
+ pulumi.set(__self__, "value", value)
2950
+
2951
+ @property
2952
+ @pulumi.getter
2953
+ def effect(self) -> Optional[builtins.str]:
2954
+ """
2955
+ Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
2956
+ """
2957
+ return pulumi.get(self, "effect")
2958
+
2959
+ @property
2960
+ @pulumi.getter
2961
+ def key(self) -> Optional[builtins.str]:
2962
+ """
2963
+ Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
2964
+ """
2965
+ return pulumi.get(self, "key")
2966
+
2967
+ @property
2968
+ @pulumi.getter
2969
+ def operator(self) -> Optional[builtins.str]:
2970
+ """
2971
+ Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
2972
+ """
2973
+ return pulumi.get(self, "operator")
2974
+
2975
+ @property
2976
+ @pulumi.getter(name="tolerationSeconds")
2977
+ def toleration_seconds(self) -> Optional[builtins.int]:
2978
+ """
2979
+ TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
2980
+ """
2981
+ return pulumi.get(self, "toleration_seconds")
2982
+
2983
+ @property
2984
+ @pulumi.getter
2985
+ def value(self) -> Optional[builtins.str]:
2986
+ """
2987
+ Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
2988
+ """
2989
+ return pulumi.get(self, "value")
2990
+
2991
+
2992
+ @pulumi.output_type
2993
+ class ExactDeviceRequest(dict):
2994
+ """
2995
+ ExactDeviceRequest is a request for one or more identical devices.
2996
+ """
2997
+ @staticmethod
2998
+ def __key_warning(key: str):
2999
+ suggest = None
3000
+ if key == "deviceClassName":
3001
+ suggest = "device_class_name"
3002
+ elif key == "adminAccess":
3003
+ suggest = "admin_access"
3004
+ elif key == "allocationMode":
3005
+ suggest = "allocation_mode"
3006
+
3007
+ if suggest:
3008
+ pulumi.log.warn(f"Key '{key}' not found in ExactDeviceRequest. Access the value via the '{suggest}' property getter instead.")
3009
+
3010
+ def __getitem__(self, key: str) -> Any:
3011
+ ExactDeviceRequest.__key_warning(key)
3012
+ return super().__getitem__(key)
3013
+
3014
+ def get(self, key: str, default = None) -> Any:
3015
+ ExactDeviceRequest.__key_warning(key)
3016
+ return super().get(key, default)
3017
+
3018
+ def __init__(__self__, *,
3019
+ device_class_name: builtins.str,
3020
+ admin_access: Optional[builtins.bool] = None,
3021
+ allocation_mode: Optional[builtins.str] = None,
3022
+ count: Optional[builtins.int] = None,
3023
+ selectors: Optional[Sequence['outputs.DeviceSelector']] = None,
3024
+ tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
3025
+ """
3026
+ ExactDeviceRequest is a request for one or more identical devices.
3027
+ :param builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3028
+
3029
+ A DeviceClassName is required.
3030
+
3031
+ 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.
3032
+ :param builtins.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.
3033
+
3034
+ 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.
3035
+ :param builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3036
+
3037
+ - ExactCount: This request is for a specific number of devices.
3038
+ This is the default. The exact number is provided in the
3039
+ count field.
3040
+
3041
+ - All: This request is for all of the matching devices in a pool.
3042
+ At least one device must exist on the node for the allocation to succeed.
3043
+ Allocation will fail if some devices are already allocated,
3044
+ unless adminAccess is requested.
3045
+
3046
+ If AllocationMode 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.
3047
+
3048
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3049
+ :param builtins.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.
3050
+ :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.
3051
+ :param Sequence['DeviceTolerationArgs'] tolerations: If specified, the request's tolerations.
3052
+
3053
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3054
+
3055
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3056
+
3057
+ The maximum number of tolerations is 16.
3058
+
3059
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3060
+ """
3061
+ pulumi.set(__self__, "device_class_name", device_class_name)
3062
+ if admin_access is not None:
3063
+ pulumi.set(__self__, "admin_access", admin_access)
3064
+ if allocation_mode is not None:
3065
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
3066
+ if count is not None:
3067
+ pulumi.set(__self__, "count", count)
3068
+ if selectors is not None:
3069
+ pulumi.set(__self__, "selectors", selectors)
3070
+ if tolerations is not None:
3071
+ pulumi.set(__self__, "tolerations", tolerations)
3072
+
3073
+ @property
3074
+ @pulumi.getter(name="deviceClassName")
3075
+ def device_class_name(self) -> builtins.str:
3076
+ """
3077
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3078
+
3079
+ A DeviceClassName is required.
3080
+
3081
+ 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.
3082
+ """
3083
+ return pulumi.get(self, "device_class_name")
3084
+
3085
+ @property
3086
+ @pulumi.getter(name="adminAccess")
3087
+ def admin_access(self) -> Optional[builtins.bool]:
3088
+ """
3089
+ 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.
3090
+
3091
+ 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.
3092
+ """
3093
+ return pulumi.get(self, "admin_access")
3094
+
3095
+ @property
3096
+ @pulumi.getter(name="allocationMode")
3097
+ def allocation_mode(self) -> Optional[builtins.str]:
3098
+ """
3099
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3100
+
3101
+ - ExactCount: This request is for a specific number of devices.
3102
+ This is the default. The exact number is provided in the
3103
+ count field.
3104
+
3105
+ - All: This request is for all of the matching devices in a pool.
3106
+ At least one device must exist on the node for the allocation to succeed.
3107
+ Allocation will fail if some devices are already allocated,
3108
+ unless adminAccess is requested.
3109
+
3110
+ If AllocationMode 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.
3111
+
3112
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3113
+ """
3114
+ return pulumi.get(self, "allocation_mode")
3115
+
3116
+ @property
3117
+ @pulumi.getter
3118
+ def count(self) -> Optional[builtins.int]:
3119
+ """
3120
+ 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.
3121
+ """
3122
+ return pulumi.get(self, "count")
3123
+
3124
+ @property
3125
+ @pulumi.getter
3126
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
3127
+ """
3128
+ 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.
3129
+ """
3130
+ return pulumi.get(self, "selectors")
3131
+
3132
+ @property
3133
+ @pulumi.getter
3134
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
3135
+ """
3136
+ If specified, the request's tolerations.
3137
+
3138
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3139
+
3140
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3141
+
3142
+ The maximum number of tolerations is 16.
3143
+
3144
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3145
+ """
3146
+ return pulumi.get(self, "tolerations")
3147
+
3148
+
3149
+ @pulumi.output_type
3150
+ class ExactDeviceRequestPatch(dict):
3151
+ """
3152
+ ExactDeviceRequest is a request for one or more identical devices.
3153
+ """
3154
+ @staticmethod
3155
+ def __key_warning(key: str):
3156
+ suggest = None
3157
+ if key == "adminAccess":
3158
+ suggest = "admin_access"
3159
+ elif key == "allocationMode":
3160
+ suggest = "allocation_mode"
3161
+ elif key == "deviceClassName":
3162
+ suggest = "device_class_name"
3163
+
3164
+ if suggest:
3165
+ pulumi.log.warn(f"Key '{key}' not found in ExactDeviceRequestPatch. Access the value via the '{suggest}' property getter instead.")
3166
+
3167
+ def __getitem__(self, key: str) -> Any:
3168
+ ExactDeviceRequestPatch.__key_warning(key)
3169
+ return super().__getitem__(key)
3170
+
3171
+ def get(self, key: str, default = None) -> Any:
3172
+ ExactDeviceRequestPatch.__key_warning(key)
3173
+ return super().get(key, default)
3174
+
3175
+ def __init__(__self__, *,
3176
+ admin_access: Optional[builtins.bool] = None,
3177
+ allocation_mode: Optional[builtins.str] = None,
3178
+ count: Optional[builtins.int] = None,
3179
+ device_class_name: Optional[builtins.str] = None,
3180
+ selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None,
3181
+ tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
3182
+ """
3183
+ ExactDeviceRequest is a request for one or more identical devices.
3184
+ :param builtins.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.
3185
+
3186
+ 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.
3187
+ :param builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3188
+
3189
+ - ExactCount: This request is for a specific number of devices.
3190
+ This is the default. The exact number is provided in the
3191
+ count field.
3192
+
3193
+ - All: This request is for all of the matching devices in a pool.
3194
+ At least one device must exist on the node for the allocation to succeed.
3195
+ Allocation will fail if some devices are already allocated,
3196
+ unless adminAccess is requested.
3197
+
3198
+ If AllocationMode 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.
3199
+
3200
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3201
+ :param builtins.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.
3202
+ :param builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3203
+
3204
+ A DeviceClassName is required.
3205
+
3206
+ 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.
3207
+ :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.
3208
+ :param Sequence['DeviceTolerationPatchArgs'] tolerations: If specified, the request's tolerations.
3209
+
3210
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3211
+
3212
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3213
+
3214
+ The maximum number of tolerations is 16.
3215
+
3216
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3217
+ """
3218
+ if admin_access is not None:
3219
+ pulumi.set(__self__, "admin_access", admin_access)
3220
+ if allocation_mode is not None:
3221
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
3222
+ if count is not None:
3223
+ pulumi.set(__self__, "count", count)
3224
+ if device_class_name is not None:
3225
+ pulumi.set(__self__, "device_class_name", device_class_name)
3226
+ if selectors is not None:
3227
+ pulumi.set(__self__, "selectors", selectors)
3228
+ if tolerations is not None:
3229
+ pulumi.set(__self__, "tolerations", tolerations)
3230
+
3231
+ @property
3232
+ @pulumi.getter(name="adminAccess")
3233
+ def admin_access(self) -> Optional[builtins.bool]:
3234
+ """
3235
+ 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.
3236
+
3237
+ 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.
3238
+ """
3239
+ return pulumi.get(self, "admin_access")
3240
+
3241
+ @property
3242
+ @pulumi.getter(name="allocationMode")
3243
+ def allocation_mode(self) -> Optional[builtins.str]:
3244
+ """
3245
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
3246
+
3247
+ - ExactCount: This request is for a specific number of devices.
3248
+ This is the default. The exact number is provided in the
3249
+ count field.
3250
+
3251
+ - All: This request is for all of the matching devices in a pool.
3252
+ At least one device must exist on the node for the allocation to succeed.
3253
+ Allocation will fail if some devices are already allocated,
3254
+ unless adminAccess is requested.
3255
+
3256
+ If AllocationMode 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.
3257
+
3258
+ More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
3259
+ """
3260
+ return pulumi.get(self, "allocation_mode")
3261
+
3262
+ @property
3263
+ @pulumi.getter
3264
+ def count(self) -> Optional[builtins.int]:
3265
+ """
3266
+ 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.
3267
+ """
3268
+ return pulumi.get(self, "count")
3269
+
3270
+ @property
3271
+ @pulumi.getter(name="deviceClassName")
3272
+ def device_class_name(self) -> Optional[builtins.str]:
3273
+ """
3274
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
3275
+
3276
+ A DeviceClassName is required.
3277
+
3278
+ 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.
3279
+ """
3280
+ return pulumi.get(self, "device_class_name")
3281
+
3282
+ @property
3283
+ @pulumi.getter
3284
+ def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
3285
+ """
3286
+ 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.
3287
+ """
3288
+ return pulumi.get(self, "selectors")
3289
+
3290
+ @property
3291
+ @pulumi.getter
3292
+ def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
3293
+ """
3294
+ If specified, the request's tolerations.
3295
+
3296
+ Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
3297
+
3298
+ In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
3299
+
3300
+ The maximum number of tolerations is 16.
3301
+
3302
+ This is an alpha field and requires enabling the DRADeviceTaints feature gate.
3303
+ """
3304
+ return pulumi.get(self, "tolerations")
3305
+
3306
+
3307
+ @pulumi.output_type
3308
+ class NetworkDeviceData(dict):
3309
+ """
3310
+ 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.
3311
+ """
3312
+ @staticmethod
3313
+ def __key_warning(key: str):
3314
+ suggest = None
3315
+ if key == "hardwareAddress":
3316
+ suggest = "hardware_address"
3317
+ elif key == "interfaceName":
3318
+ suggest = "interface_name"
3319
+
3320
+ if suggest:
3321
+ pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceData. Access the value via the '{suggest}' property getter instead.")
3322
+
3323
+ def __getitem__(self, key: str) -> Any:
3324
+ NetworkDeviceData.__key_warning(key)
3325
+ return super().__getitem__(key)
3326
+
3327
+ def get(self, key: str, default = None) -> Any:
3328
+ NetworkDeviceData.__key_warning(key)
3329
+ return super().get(key, default)
3330
+
3331
+ def __init__(__self__, *,
3332
+ hardware_address: Optional[builtins.str] = None,
3333
+ interface_name: Optional[builtins.str] = None,
3334
+ ips: Optional[Sequence[builtins.str]] = None):
3335
+ """
3336
+ 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.
3337
+ :param builtins.str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3338
+
3339
+ Must not be longer than 128 characters.
3340
+ :param builtins.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.
3341
+
3342
+ Must not be longer than 256 characters.
3343
+ :param Sequence[builtins.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.
3344
+ """
3345
+ if hardware_address is not None:
3346
+ pulumi.set(__self__, "hardware_address", hardware_address)
3347
+ if interface_name is not None:
3348
+ pulumi.set(__self__, "interface_name", interface_name)
3349
+ if ips is not None:
3350
+ pulumi.set(__self__, "ips", ips)
3351
+
3352
+ @property
3353
+ @pulumi.getter(name="hardwareAddress")
3354
+ def hardware_address(self) -> Optional[builtins.str]:
3355
+ """
3356
+ HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3357
+
3358
+ Must not be longer than 128 characters.
3359
+ """
3360
+ return pulumi.get(self, "hardware_address")
3361
+
3362
+ @property
3363
+ @pulumi.getter(name="interfaceName")
3364
+ def interface_name(self) -> Optional[builtins.str]:
3365
+ """
3366
+ 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.
3367
+
3368
+ Must not be longer than 256 characters.
3369
+ """
3370
+ return pulumi.get(self, "interface_name")
3371
+
3372
+ @property
3373
+ @pulumi.getter
3374
+ def ips(self) -> Optional[Sequence[builtins.str]]:
3375
+ """
3376
+ 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.
3377
+ """
3378
+ return pulumi.get(self, "ips")
3379
+
3380
+
3381
+ @pulumi.output_type
3382
+ class NetworkDeviceDataPatch(dict):
3383
+ """
3384
+ 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.
3385
+ """
3386
+ @staticmethod
3387
+ def __key_warning(key: str):
3388
+ suggest = None
3389
+ if key == "hardwareAddress":
3390
+ suggest = "hardware_address"
3391
+ elif key == "interfaceName":
3392
+ suggest = "interface_name"
3393
+
3394
+ if suggest:
3395
+ pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceDataPatch. Access the value via the '{suggest}' property getter instead.")
3396
+
3397
+ def __getitem__(self, key: str) -> Any:
3398
+ NetworkDeviceDataPatch.__key_warning(key)
3399
+ return super().__getitem__(key)
3400
+
3401
+ def get(self, key: str, default = None) -> Any:
3402
+ NetworkDeviceDataPatch.__key_warning(key)
3403
+ return super().get(key, default)
3404
+
3405
+ def __init__(__self__, *,
3406
+ hardware_address: Optional[builtins.str] = None,
3407
+ interface_name: Optional[builtins.str] = None,
3408
+ ips: Optional[Sequence[builtins.str]] = None):
3409
+ """
3410
+ 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.
3411
+ :param builtins.str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3412
+
3413
+ Must not be longer than 128 characters.
3414
+ :param builtins.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.
3415
+
3416
+ Must not be longer than 256 characters.
3417
+ :param Sequence[builtins.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.
3418
+ """
3419
+ if hardware_address is not None:
3420
+ pulumi.set(__self__, "hardware_address", hardware_address)
3421
+ if interface_name is not None:
3422
+ pulumi.set(__self__, "interface_name", interface_name)
3423
+ if ips is not None:
3424
+ pulumi.set(__self__, "ips", ips)
3425
+
3426
+ @property
3427
+ @pulumi.getter(name="hardwareAddress")
3428
+ def hardware_address(self) -> Optional[builtins.str]:
3429
+ """
3430
+ HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
3431
+
3432
+ Must not be longer than 128 characters.
3433
+ """
3434
+ return pulumi.get(self, "hardware_address")
3435
+
3436
+ @property
3437
+ @pulumi.getter(name="interfaceName")
3438
+ def interface_name(self) -> Optional[builtins.str]:
3439
+ """
3440
+ 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.
3441
+
3442
+ Must not be longer than 256 characters.
3443
+ """
3444
+ return pulumi.get(self, "interface_name")
3445
+
3446
+ @property
3447
+ @pulumi.getter
3448
+ def ips(self) -> Optional[Sequence[builtins.str]]:
3449
+ """
3450
+ 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.
3451
+ """
3452
+ return pulumi.get(self, "ips")
3453
+
3454
+
3455
+ @pulumi.output_type
3456
+ class OpaqueDeviceConfiguration(dict):
3457
+ """
3458
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3459
+ """
3460
+ def __init__(__self__, *,
3461
+ driver: builtins.str,
3462
+ parameters: Any):
3463
+ """
3464
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3465
+ :param builtins.str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3466
+
3467
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3468
+
3469
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3470
+ :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.
3471
+
3472
+ The length of the raw data must be smaller or equal to 10 Ki.
3473
+ """
3474
+ pulumi.set(__self__, "driver", driver)
3475
+ pulumi.set(__self__, "parameters", parameters)
3476
+
3477
+ @property
3478
+ @pulumi.getter
3479
+ def driver(self) -> builtins.str:
3480
+ """
3481
+ Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3482
+
3483
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3484
+
3485
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3486
+ """
3487
+ return pulumi.get(self, "driver")
3488
+
3489
+ @property
3490
+ @pulumi.getter
3491
+ def parameters(self) -> Any:
3492
+ """
3493
+ 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.
3494
+
3495
+ The length of the raw data must be smaller or equal to 10 Ki.
3496
+ """
3497
+ return pulumi.get(self, "parameters")
3498
+
3499
+
3500
+ @pulumi.output_type
3501
+ class OpaqueDeviceConfigurationPatch(dict):
3502
+ """
3503
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3504
+ """
3505
+ def __init__(__self__, *,
3506
+ driver: Optional[builtins.str] = None,
3507
+ parameters: Optional[Any] = None):
3508
+ """
3509
+ OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
3510
+ :param builtins.str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3511
+
3512
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3513
+
3514
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3515
+ :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.
3516
+
3517
+ The length of the raw data must be smaller or equal to 10 Ki.
3518
+ """
3519
+ if driver is not None:
3520
+ pulumi.set(__self__, "driver", driver)
3521
+ if parameters is not None:
3522
+ pulumi.set(__self__, "parameters", parameters)
3523
+
3524
+ @property
3525
+ @pulumi.getter
3526
+ def driver(self) -> Optional[builtins.str]:
3527
+ """
3528
+ Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
3529
+
3530
+ An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
3531
+
3532
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
3533
+ """
3534
+ return pulumi.get(self, "driver")
3535
+
3536
+ @property
3537
+ @pulumi.getter
3538
+ def parameters(self) -> Optional[Any]:
3539
+ """
3540
+ 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.
3541
+
3542
+ The length of the raw data must be smaller or equal to 10 Ki.
3543
+ """
3544
+ return pulumi.get(self, "parameters")
3545
+
3546
+
3547
+ @pulumi.output_type
3548
+ class ResourceClaim(dict):
3549
+ """
3550
+ 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.
3551
+
3552
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3553
+ """
3554
+ @staticmethod
3555
+ def __key_warning(key: str):
3556
+ suggest = None
3557
+ if key == "apiVersion":
3558
+ suggest = "api_version"
3559
+
3560
+ if suggest:
3561
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaim. Access the value via the '{suggest}' property getter instead.")
3562
+
3563
+ def __getitem__(self, key: str) -> Any:
3564
+ ResourceClaim.__key_warning(key)
3565
+ return super().__getitem__(key)
3566
+
3567
+ def get(self, key: str, default = None) -> Any:
3568
+ ResourceClaim.__key_warning(key)
3569
+ return super().get(key, default)
3570
+
3571
+ def __init__(__self__, *,
3572
+ spec: 'outputs.ResourceClaimSpec',
3573
+ api_version: Optional[builtins.str] = None,
3574
+ kind: Optional[builtins.str] = None,
3575
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
3576
+ status: Optional['outputs.ResourceClaimStatus'] = None):
3577
+ """
3578
+ 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.
3579
+
3580
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3581
+ :param 'ResourceClaimSpecArgs' spec: Spec describes what is being requested and how to configure it. The spec is immutable.
3582
+ :param builtins.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
3583
+ :param builtins.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
3584
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
3585
+ :param 'ResourceClaimStatusArgs' status: Status describes whether the claim is ready to use and what has been allocated.
3586
+ """
3587
+ pulumi.set(__self__, "spec", spec)
3588
+ if api_version is not None:
3589
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
3590
+ if kind is not None:
3591
+ pulumi.set(__self__, "kind", 'ResourceClaim')
3592
+ if metadata is not None:
3593
+ pulumi.set(__self__, "metadata", metadata)
3594
+ if status is not None:
3595
+ pulumi.set(__self__, "status", status)
3596
+
3597
+ @property
3598
+ @pulumi.getter
3599
+ def spec(self) -> 'outputs.ResourceClaimSpec':
3600
+ """
3601
+ Spec describes what is being requested and how to configure it. The spec is immutable.
3602
+ """
3603
+ return pulumi.get(self, "spec")
3604
+
3605
+ @property
3606
+ @pulumi.getter(name="apiVersion")
3607
+ def api_version(self) -> Optional[builtins.str]:
3608
+ """
3609
+ 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
3610
+ """
3611
+ return pulumi.get(self, "api_version")
3612
+
3613
+ @property
3614
+ @pulumi.getter
3615
+ def kind(self) -> Optional[builtins.str]:
3616
+ """
3617
+ 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
3618
+ """
3619
+ return pulumi.get(self, "kind")
3620
+
3621
+ @property
3622
+ @pulumi.getter
3623
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
3624
+ """
3625
+ Standard object metadata
3626
+ """
3627
+ return pulumi.get(self, "metadata")
3628
+
3629
+ @property
3630
+ @pulumi.getter
3631
+ def status(self) -> Optional['outputs.ResourceClaimStatus']:
3632
+ """
3633
+ Status describes whether the claim is ready to use and what has been allocated.
3634
+ """
3635
+ return pulumi.get(self, "status")
3636
+
3637
+
3638
+ @pulumi.output_type
3639
+ class ResourceClaimConsumerReference(dict):
3640
+ """
3641
+ 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.
3642
+ """
3643
+ @staticmethod
3644
+ def __key_warning(key: str):
3645
+ suggest = None
3646
+ if key == "apiGroup":
3647
+ suggest = "api_group"
3648
+
3649
+ if suggest:
3650
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReference. Access the value via the '{suggest}' property getter instead.")
3651
+
3652
+ def __getitem__(self, key: str) -> Any:
3653
+ ResourceClaimConsumerReference.__key_warning(key)
3654
+ return super().__getitem__(key)
3655
+
3656
+ def get(self, key: str, default = None) -> Any:
3657
+ ResourceClaimConsumerReference.__key_warning(key)
3658
+ return super().get(key, default)
3659
+
3660
+ def __init__(__self__, *,
3661
+ name: builtins.str,
3662
+ resource: builtins.str,
3663
+ uid: builtins.str,
3664
+ api_group: Optional[builtins.str] = None):
3665
+ """
3666
+ 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.
3667
+ :param builtins.str name: Name is the name of resource being referenced.
3668
+ :param builtins.str resource: Resource is the type of resource being referenced, for example "pods".
3669
+ :param builtins.str uid: UID identifies exactly one incarnation of the resource.
3670
+ :param builtins.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.
3671
+ """
3672
+ pulumi.set(__self__, "name", name)
3673
+ pulumi.set(__self__, "resource", resource)
3674
+ pulumi.set(__self__, "uid", uid)
3675
+ if api_group is not None:
3676
+ pulumi.set(__self__, "api_group", api_group)
3677
+
3678
+ @property
3679
+ @pulumi.getter
3680
+ def name(self) -> builtins.str:
3681
+ """
3682
+ Name is the name of resource being referenced.
3683
+ """
3684
+ return pulumi.get(self, "name")
3685
+
3686
+ @property
3687
+ @pulumi.getter
3688
+ def resource(self) -> builtins.str:
3689
+ """
3690
+ Resource is the type of resource being referenced, for example "pods".
3691
+ """
3692
+ return pulumi.get(self, "resource")
3693
+
3694
+ @property
3695
+ @pulumi.getter
3696
+ def uid(self) -> builtins.str:
3697
+ """
3698
+ UID identifies exactly one incarnation of the resource.
3699
+ """
3700
+ return pulumi.get(self, "uid")
3701
+
3702
+ @property
3703
+ @pulumi.getter(name="apiGroup")
3704
+ def api_group(self) -> Optional[builtins.str]:
3705
+ """
3706
+ 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.
3707
+ """
3708
+ return pulumi.get(self, "api_group")
3709
+
3710
+
3711
+ @pulumi.output_type
3712
+ class ResourceClaimConsumerReferencePatch(dict):
3713
+ """
3714
+ 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.
3715
+ """
3716
+ @staticmethod
3717
+ def __key_warning(key: str):
3718
+ suggest = None
3719
+ if key == "apiGroup":
3720
+ suggest = "api_group"
3721
+
3722
+ if suggest:
3723
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReferencePatch. Access the value via the '{suggest}' property getter instead.")
3724
+
3725
+ def __getitem__(self, key: str) -> Any:
3726
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
3727
+ return super().__getitem__(key)
3728
+
3729
+ def get(self, key: str, default = None) -> Any:
3730
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
3731
+ return super().get(key, default)
3732
+
3733
+ def __init__(__self__, *,
3734
+ api_group: Optional[builtins.str] = None,
3735
+ name: Optional[builtins.str] = None,
3736
+ resource: Optional[builtins.str] = None,
3737
+ uid: Optional[builtins.str] = None):
3738
+ """
3739
+ 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.
3740
+ :param builtins.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.
3741
+ :param builtins.str name: Name is the name of resource being referenced.
3742
+ :param builtins.str resource: Resource is the type of resource being referenced, for example "pods".
3743
+ :param builtins.str uid: UID identifies exactly one incarnation of the resource.
3744
+ """
3745
+ if api_group is not None:
3746
+ pulumi.set(__self__, "api_group", api_group)
3747
+ if name is not None:
3748
+ pulumi.set(__self__, "name", name)
3749
+ if resource is not None:
3750
+ pulumi.set(__self__, "resource", resource)
3751
+ if uid is not None:
3752
+ pulumi.set(__self__, "uid", uid)
3753
+
3754
+ @property
3755
+ @pulumi.getter(name="apiGroup")
3756
+ def api_group(self) -> Optional[builtins.str]:
3757
+ """
3758
+ 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.
3759
+ """
3760
+ return pulumi.get(self, "api_group")
3761
+
3762
+ @property
3763
+ @pulumi.getter
3764
+ def name(self) -> Optional[builtins.str]:
3765
+ """
3766
+ Name is the name of resource being referenced.
3767
+ """
3768
+ return pulumi.get(self, "name")
3769
+
3770
+ @property
3771
+ @pulumi.getter
3772
+ def resource(self) -> Optional[builtins.str]:
3773
+ """
3774
+ Resource is the type of resource being referenced, for example "pods".
3775
+ """
3776
+ return pulumi.get(self, "resource")
3777
+
3778
+ @property
3779
+ @pulumi.getter
3780
+ def uid(self) -> Optional[builtins.str]:
3781
+ """
3782
+ UID identifies exactly one incarnation of the resource.
3783
+ """
3784
+ return pulumi.get(self, "uid")
3785
+
3786
+
3787
+ @pulumi.output_type
3788
+ class ResourceClaimSpec(dict):
3789
+ """
3790
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3791
+ """
3792
+ def __init__(__self__, *,
3793
+ devices: Optional['outputs.DeviceClaim'] = None):
3794
+ """
3795
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3796
+ :param 'DeviceClaimArgs' devices: Devices defines how to request devices.
3797
+ """
3798
+ if devices is not None:
3799
+ pulumi.set(__self__, "devices", devices)
3800
+
3801
+ @property
3802
+ @pulumi.getter
3803
+ def devices(self) -> Optional['outputs.DeviceClaim']:
3804
+ """
3805
+ Devices defines how to request devices.
3806
+ """
3807
+ return pulumi.get(self, "devices")
3808
+
3809
+
3810
+ @pulumi.output_type
3811
+ class ResourceClaimSpecPatch(dict):
3812
+ """
3813
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3814
+ """
3815
+ def __init__(__self__, *,
3816
+ devices: Optional['outputs.DeviceClaimPatch'] = None):
3817
+ """
3818
+ ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
3819
+ :param 'DeviceClaimPatchArgs' devices: Devices defines how to request devices.
3820
+ """
3821
+ if devices is not None:
3822
+ pulumi.set(__self__, "devices", devices)
3823
+
3824
+ @property
3825
+ @pulumi.getter
3826
+ def devices(self) -> Optional['outputs.DeviceClaimPatch']:
3827
+ """
3828
+ Devices defines how to request devices.
3829
+ """
3830
+ return pulumi.get(self, "devices")
3831
+
3832
+
3833
+ @pulumi.output_type
3834
+ class ResourceClaimStatus(dict):
3835
+ """
3836
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3837
+ """
3838
+ @staticmethod
3839
+ def __key_warning(key: str):
3840
+ suggest = None
3841
+ if key == "reservedFor":
3842
+ suggest = "reserved_for"
3843
+
3844
+ if suggest:
3845
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatus. Access the value via the '{suggest}' property getter instead.")
3846
+
3847
+ def __getitem__(self, key: str) -> Any:
3848
+ ResourceClaimStatus.__key_warning(key)
3849
+ return super().__getitem__(key)
3850
+
3851
+ def get(self, key: str, default = None) -> Any:
3852
+ ResourceClaimStatus.__key_warning(key)
3853
+ return super().get(key, default)
3854
+
3855
+ def __init__(__self__, *,
3856
+ allocation: Optional['outputs.AllocationResult'] = None,
3857
+ devices: Optional[Sequence['outputs.AllocatedDeviceStatus']] = None,
3858
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
3859
+ """
3860
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3861
+ :param 'AllocationResultArgs' allocation: Allocation is set once the claim has been allocated successfully.
3862
+ :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.
3863
+ :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.
3864
+
3865
+ 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.
3866
+
3867
+ 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.
3868
+
3869
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3870
+ """
3871
+ if allocation is not None:
3872
+ pulumi.set(__self__, "allocation", allocation)
3873
+ if devices is not None:
3874
+ pulumi.set(__self__, "devices", devices)
3875
+ if reserved_for is not None:
3876
+ pulumi.set(__self__, "reserved_for", reserved_for)
3877
+
3878
+ @property
3879
+ @pulumi.getter
3880
+ def allocation(self) -> Optional['outputs.AllocationResult']:
3881
+ """
3882
+ Allocation is set once the claim has been allocated successfully.
3883
+ """
3884
+ return pulumi.get(self, "allocation")
3885
+
3886
+ @property
3887
+ @pulumi.getter
3888
+ def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatus']]:
3889
+ """
3890
+ 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.
3891
+ """
3892
+ return pulumi.get(self, "devices")
3893
+
3894
+ @property
3895
+ @pulumi.getter(name="reservedFor")
3896
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
3897
+ """
3898
+ 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.
3899
+
3900
+ 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.
3901
+
3902
+ 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.
3903
+
3904
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3905
+ """
3906
+ return pulumi.get(self, "reserved_for")
3907
+
3908
+
3909
+ @pulumi.output_type
3910
+ class ResourceClaimStatusPatch(dict):
3911
+ """
3912
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3913
+ """
3914
+ @staticmethod
3915
+ def __key_warning(key: str):
3916
+ suggest = None
3917
+ if key == "reservedFor":
3918
+ suggest = "reserved_for"
3919
+
3920
+ if suggest:
3921
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatusPatch. Access the value via the '{suggest}' property getter instead.")
3922
+
3923
+ def __getitem__(self, key: str) -> Any:
3924
+ ResourceClaimStatusPatch.__key_warning(key)
3925
+ return super().__getitem__(key)
3926
+
3927
+ def get(self, key: str, default = None) -> Any:
3928
+ ResourceClaimStatusPatch.__key_warning(key)
3929
+ return super().get(key, default)
3930
+
3931
+ def __init__(__self__, *,
3932
+ allocation: Optional['outputs.AllocationResultPatch'] = None,
3933
+ devices: Optional[Sequence['outputs.AllocatedDeviceStatusPatch']] = None,
3934
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
3935
+ """
3936
+ ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
3937
+ :param 'AllocationResultPatchArgs' allocation: Allocation is set once the claim has been allocated successfully.
3938
+ :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.
3939
+ :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.
3940
+
3941
+ 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.
3942
+
3943
+ 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.
3944
+
3945
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3946
+ """
3947
+ if allocation is not None:
3948
+ pulumi.set(__self__, "allocation", allocation)
3949
+ if devices is not None:
3950
+ pulumi.set(__self__, "devices", devices)
3951
+ if reserved_for is not None:
3952
+ pulumi.set(__self__, "reserved_for", reserved_for)
3953
+
3954
+ @property
3955
+ @pulumi.getter
3956
+ def allocation(self) -> Optional['outputs.AllocationResultPatch']:
3957
+ """
3958
+ Allocation is set once the claim has been allocated successfully.
3959
+ """
3960
+ return pulumi.get(self, "allocation")
3961
+
3962
+ @property
3963
+ @pulumi.getter
3964
+ def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatusPatch']]:
3965
+ """
3966
+ 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.
3967
+ """
3968
+ return pulumi.get(self, "devices")
3969
+
3970
+ @property
3971
+ @pulumi.getter(name="reservedFor")
3972
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
3973
+ """
3974
+ 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.
3975
+
3976
+ 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.
3977
+
3978
+ 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.
3979
+
3980
+ There can be at most 256 such reservations. This may get increased in the future, but not reduced.
3981
+ """
3982
+ return pulumi.get(self, "reserved_for")
3983
+
3984
+
3985
+ @pulumi.output_type
3986
+ class ResourceClaimTemplate(dict):
3987
+ """
3988
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
3989
+
3990
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3991
+ """
3992
+ @staticmethod
3993
+ def __key_warning(key: str):
3994
+ suggest = None
3995
+ if key == "apiVersion":
3996
+ suggest = "api_version"
3997
+
3998
+ if suggest:
3999
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimTemplate. Access the value via the '{suggest}' property getter instead.")
4000
+
4001
+ def __getitem__(self, key: str) -> Any:
4002
+ ResourceClaimTemplate.__key_warning(key)
4003
+ return super().__getitem__(key)
4004
+
4005
+ def get(self, key: str, default = None) -> Any:
4006
+ ResourceClaimTemplate.__key_warning(key)
4007
+ return super().get(key, default)
4008
+
4009
+ def __init__(__self__, *,
4010
+ spec: 'outputs.ResourceClaimTemplateSpec',
4011
+ api_version: Optional[builtins.str] = None,
4012
+ kind: Optional[builtins.str] = None,
4013
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
4014
+ """
4015
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
4016
+
4017
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
4018
+ :param 'ResourceClaimTemplateSpecArgs' spec: Describes the ResourceClaim that is to be generated.
4019
+
4020
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
4021
+ :param builtins.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
4022
+ :param builtins.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
4023
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
4024
+ """
4025
+ pulumi.set(__self__, "spec", spec)
4026
+ if api_version is not None:
4027
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
4028
+ if kind is not None:
4029
+ pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
4030
+ if metadata is not None:
4031
+ pulumi.set(__self__, "metadata", metadata)
4032
+
4033
+ @property
4034
+ @pulumi.getter
4035
+ def spec(self) -> 'outputs.ResourceClaimTemplateSpec':
4036
+ """
4037
+ Describes the ResourceClaim that is to be generated.
4038
+
4039
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
4040
+ """
4041
+ return pulumi.get(self, "spec")
4042
+
4043
+ @property
4044
+ @pulumi.getter(name="apiVersion")
4045
+ def api_version(self) -> Optional[builtins.str]:
4046
+ """
4047
+ 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
4048
+ """
4049
+ return pulumi.get(self, "api_version")
4050
+
4051
+ @property
4052
+ @pulumi.getter
4053
+ def kind(self) -> Optional[builtins.str]:
4054
+ """
4055
+ 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
4056
+ """
4057
+ return pulumi.get(self, "kind")
4058
+
4059
+ @property
4060
+ @pulumi.getter
4061
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
4062
+ """
4063
+ Standard object metadata
4064
+ """
4065
+ return pulumi.get(self, "metadata")
4066
+
4067
+
4068
+ @pulumi.output_type
4069
+ class ResourceClaimTemplateSpec(dict):
4070
+ """
4071
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4072
+ """
4073
+ def __init__(__self__, *,
4074
+ spec: 'outputs.ResourceClaimSpec',
4075
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
4076
+ """
4077
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4078
+ :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.
4079
+ :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.
4080
+ """
4081
+ pulumi.set(__self__, "spec", spec)
4082
+ if metadata is not None:
4083
+ pulumi.set(__self__, "metadata", metadata)
4084
+
4085
+ @property
4086
+ @pulumi.getter
4087
+ def spec(self) -> 'outputs.ResourceClaimSpec':
4088
+ """
4089
+ 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.
4090
+ """
4091
+ return pulumi.get(self, "spec")
4092
+
4093
+ @property
4094
+ @pulumi.getter
4095
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
4096
+ """
4097
+ 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.
4098
+ """
4099
+ return pulumi.get(self, "metadata")
4100
+
4101
+
4102
+ @pulumi.output_type
4103
+ class ResourceClaimTemplateSpecPatch(dict):
4104
+ """
4105
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4106
+ """
4107
+ def __init__(__self__, *,
4108
+ metadata: Optional['_meta.v1.outputs.ObjectMetaPatch'] = None,
4109
+ spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
4110
+ """
4111
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
4112
+ :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.
4113
+ :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.
4114
+ """
4115
+ if metadata is not None:
4116
+ pulumi.set(__self__, "metadata", metadata)
4117
+ if spec is not None:
4118
+ pulumi.set(__self__, "spec", spec)
4119
+
4120
+ @property
4121
+ @pulumi.getter
4122
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
4123
+ """
4124
+ 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.
4125
+ """
4126
+ return pulumi.get(self, "metadata")
4127
+
4128
+ @property
4129
+ @pulumi.getter
4130
+ def spec(self) -> Optional['outputs.ResourceClaimSpecPatch']:
4131
+ """
4132
+ 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.
4133
+ """
4134
+ return pulumi.get(self, "spec")
4135
+
4136
+
4137
+ @pulumi.output_type
4138
+ class ResourcePool(dict):
4139
+ """
4140
+ ResourcePool describes the pool that ResourceSlices belong to.
4141
+ """
4142
+ @staticmethod
4143
+ def __key_warning(key: str):
4144
+ suggest = None
4145
+ if key == "resourceSliceCount":
4146
+ suggest = "resource_slice_count"
4147
+
4148
+ if suggest:
4149
+ pulumi.log.warn(f"Key '{key}' not found in ResourcePool. Access the value via the '{suggest}' property getter instead.")
4150
+
4151
+ def __getitem__(self, key: str) -> Any:
4152
+ ResourcePool.__key_warning(key)
4153
+ return super().__getitem__(key)
4154
+
4155
+ def get(self, key: str, default = None) -> Any:
4156
+ ResourcePool.__key_warning(key)
4157
+ return super().get(key, default)
4158
+
4159
+ def __init__(__self__, *,
4160
+ generation: builtins.int,
4161
+ name: builtins.str,
4162
+ resource_slice_count: builtins.int):
4163
+ """
4164
+ ResourcePool describes the pool that ResourceSlices belong to.
4165
+ :param builtins.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.
4166
+
4167
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4168
+ :param builtins.str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4169
+
4170
+ 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.
4171
+ :param builtins.int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4172
+
4173
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4174
+ """
4175
+ pulumi.set(__self__, "generation", generation)
4176
+ pulumi.set(__self__, "name", name)
4177
+ pulumi.set(__self__, "resource_slice_count", resource_slice_count)
4178
+
4179
+ @property
4180
+ @pulumi.getter
4181
+ def generation(self) -> builtins.int:
4182
+ """
4183
+ 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.
4184
+
4185
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4186
+ """
4187
+ return pulumi.get(self, "generation")
4188
+
4189
+ @property
4190
+ @pulumi.getter
4191
+ def name(self) -> builtins.str:
4192
+ """
4193
+ Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4194
+
4195
+ 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.
4196
+ """
4197
+ return pulumi.get(self, "name")
4198
+
4199
+ @property
4200
+ @pulumi.getter(name="resourceSliceCount")
4201
+ def resource_slice_count(self) -> builtins.int:
4202
+ """
4203
+ ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4204
+
4205
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4206
+ """
4207
+ return pulumi.get(self, "resource_slice_count")
4208
+
4209
+
4210
+ @pulumi.output_type
4211
+ class ResourcePoolPatch(dict):
4212
+ """
4213
+ ResourcePool describes the pool that ResourceSlices belong to.
4214
+ """
4215
+ @staticmethod
4216
+ def __key_warning(key: str):
4217
+ suggest = None
4218
+ if key == "resourceSliceCount":
4219
+ suggest = "resource_slice_count"
4220
+
4221
+ if suggest:
4222
+ pulumi.log.warn(f"Key '{key}' not found in ResourcePoolPatch. Access the value via the '{suggest}' property getter instead.")
4223
+
4224
+ def __getitem__(self, key: str) -> Any:
4225
+ ResourcePoolPatch.__key_warning(key)
4226
+ return super().__getitem__(key)
4227
+
4228
+ def get(self, key: str, default = None) -> Any:
4229
+ ResourcePoolPatch.__key_warning(key)
4230
+ return super().get(key, default)
4231
+
4232
+ def __init__(__self__, *,
4233
+ generation: Optional[builtins.int] = None,
4234
+ name: Optional[builtins.str] = None,
4235
+ resource_slice_count: Optional[builtins.int] = None):
4236
+ """
4237
+ ResourcePool describes the pool that ResourceSlices belong to.
4238
+ :param builtins.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.
4239
+
4240
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4241
+ :param builtins.str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4242
+
4243
+ 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.
4244
+ :param builtins.int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4245
+
4246
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4247
+ """
4248
+ if generation is not None:
4249
+ pulumi.set(__self__, "generation", generation)
4250
+ if name is not None:
4251
+ pulumi.set(__self__, "name", name)
4252
+ if resource_slice_count is not None:
4253
+ pulumi.set(__self__, "resource_slice_count", resource_slice_count)
4254
+
4255
+ @property
4256
+ @pulumi.getter
4257
+ def generation(self) -> Optional[builtins.int]:
4258
+ """
4259
+ 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.
4260
+
4261
+ Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
4262
+ """
4263
+ return pulumi.get(self, "generation")
4264
+
4265
+ @property
4266
+ @pulumi.getter
4267
+ def name(self) -> Optional[builtins.str]:
4268
+ """
4269
+ Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
4270
+
4271
+ 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.
4272
+ """
4273
+ return pulumi.get(self, "name")
4274
+
4275
+ @property
4276
+ @pulumi.getter(name="resourceSliceCount")
4277
+ def resource_slice_count(self) -> Optional[builtins.int]:
4278
+ """
4279
+ ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
4280
+
4281
+ Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
4282
+ """
4283
+ return pulumi.get(self, "resource_slice_count")
4284
+
4285
+
4286
+ @pulumi.output_type
4287
+ class ResourceSlice(dict):
4288
+ """
4289
+ 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.
4290
+
4291
+ 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>.
4292
+
4293
+ 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.
4294
+
4295
+ 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.
4296
+
4297
+ 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.
4298
+
4299
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
4300
+ """
4301
+ @staticmethod
4302
+ def __key_warning(key: str):
4303
+ suggest = None
4304
+ if key == "apiVersion":
4305
+ suggest = "api_version"
4306
+
4307
+ if suggest:
4308
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSlice. Access the value via the '{suggest}' property getter instead.")
4309
+
4310
+ def __getitem__(self, key: str) -> Any:
4311
+ ResourceSlice.__key_warning(key)
4312
+ return super().__getitem__(key)
4313
+
4314
+ def get(self, key: str, default = None) -> Any:
4315
+ ResourceSlice.__key_warning(key)
4316
+ return super().get(key, default)
4317
+
4318
+ def __init__(__self__, *,
4319
+ spec: 'outputs.ResourceSliceSpec',
4320
+ api_version: Optional[builtins.str] = None,
4321
+ kind: Optional[builtins.str] = None,
4322
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
4323
+ """
4324
+ 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.
4325
+
4326
+ 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>.
4327
+
4328
+ 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.
4329
+
4330
+ 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.
4331
+
4332
+ 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.
4333
+
4334
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
4335
+ :param 'ResourceSliceSpecArgs' spec: Contains the information published by the driver.
4336
+
4337
+ Changing the spec automatically increments the metadata.generation number.
4338
+ :param builtins.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
4339
+ :param builtins.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
4340
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
4341
+ """
4342
+ pulumi.set(__self__, "spec", spec)
4343
+ if api_version is not None:
4344
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta2')
4345
+ if kind is not None:
4346
+ pulumi.set(__self__, "kind", 'ResourceSlice')
4347
+ if metadata is not None:
4348
+ pulumi.set(__self__, "metadata", metadata)
4349
+
4350
+ @property
4351
+ @pulumi.getter
4352
+ def spec(self) -> 'outputs.ResourceSliceSpec':
4353
+ """
4354
+ Contains the information published by the driver.
4355
+
4356
+ Changing the spec automatically increments the metadata.generation number.
4357
+ """
4358
+ return pulumi.get(self, "spec")
4359
+
4360
+ @property
4361
+ @pulumi.getter(name="apiVersion")
4362
+ def api_version(self) -> Optional[builtins.str]:
4363
+ """
4364
+ 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
4365
+ """
4366
+ return pulumi.get(self, "api_version")
4367
+
4368
+ @property
4369
+ @pulumi.getter
4370
+ def kind(self) -> Optional[builtins.str]:
4371
+ """
4372
+ 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
4373
+ """
4374
+ return pulumi.get(self, "kind")
4375
+
4376
+ @property
4377
+ @pulumi.getter
4378
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
4379
+ """
4380
+ Standard object metadata
4381
+ """
4382
+ return pulumi.get(self, "metadata")
4383
+
4384
+
4385
+ @pulumi.output_type
4386
+ class ResourceSliceSpec(dict):
4387
+ """
4388
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4389
+ """
4390
+ @staticmethod
4391
+ def __key_warning(key: str):
4392
+ suggest = None
4393
+ if key == "allNodes":
4394
+ suggest = "all_nodes"
4395
+ elif key == "nodeName":
4396
+ suggest = "node_name"
4397
+ elif key == "nodeSelector":
4398
+ suggest = "node_selector"
4399
+ elif key == "perDeviceNodeSelection":
4400
+ suggest = "per_device_node_selection"
4401
+ elif key == "sharedCounters":
4402
+ suggest = "shared_counters"
4403
+
4404
+ if suggest:
4405
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpec. Access the value via the '{suggest}' property getter instead.")
4406
+
4407
+ def __getitem__(self, key: str) -> Any:
4408
+ ResourceSliceSpec.__key_warning(key)
4409
+ return super().__getitem__(key)
4410
+
4411
+ def get(self, key: str, default = None) -> Any:
4412
+ ResourceSliceSpec.__key_warning(key)
4413
+ return super().get(key, default)
4414
+
4415
+ def __init__(__self__, *,
4416
+ driver: builtins.str,
4417
+ pool: 'outputs.ResourcePool',
4418
+ all_nodes: Optional[builtins.bool] = None,
4419
+ devices: Optional[Sequence['outputs.Device']] = None,
4420
+ node_name: Optional[builtins.str] = None,
4421
+ node_selector: Optional['_core.v1.outputs.NodeSelector'] = None,
4422
+ per_device_node_selection: Optional[builtins.bool] = None,
4423
+ shared_counters: Optional[Sequence['outputs.CounterSet']] = None):
4424
+ """
4425
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4426
+ :param builtins.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.
4427
+
4428
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4429
+ :param 'ResourcePoolArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
4430
+ :param builtins.bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
4431
+
4432
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4433
+ :param Sequence['DeviceArgs'] devices: Devices lists some or all of the devices in this pool.
4434
+
4435
+ Must not have more than 128 entries.
4436
+ :param builtins.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.
4437
+
4438
+ 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.
4439
+
4440
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4441
+ :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.
4442
+
4443
+ Must use exactly one term.
4444
+
4445
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4446
+ :param builtins.bool per_device_node_selection: PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4447
+
4448
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4449
+ :param Sequence['CounterSetArgs'] shared_counters: SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4450
+
4451
+ The names of the SharedCounters must be unique in the ResourceSlice.
4452
+
4453
+ The maximum number of counters in all sets is 32.
4454
+ """
4455
+ pulumi.set(__self__, "driver", driver)
4456
+ pulumi.set(__self__, "pool", pool)
4457
+ if all_nodes is not None:
4458
+ pulumi.set(__self__, "all_nodes", all_nodes)
4459
+ if devices is not None:
4460
+ pulumi.set(__self__, "devices", devices)
4461
+ if node_name is not None:
4462
+ pulumi.set(__self__, "node_name", node_name)
4463
+ if node_selector is not None:
4464
+ pulumi.set(__self__, "node_selector", node_selector)
4465
+ if per_device_node_selection is not None:
4466
+ pulumi.set(__self__, "per_device_node_selection", per_device_node_selection)
4467
+ if shared_counters is not None:
4468
+ pulumi.set(__self__, "shared_counters", shared_counters)
4469
+
4470
+ @property
4471
+ @pulumi.getter
4472
+ def driver(self) -> builtins.str:
4473
+ """
4474
+ 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.
4475
+
4476
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4477
+ """
4478
+ return pulumi.get(self, "driver")
4479
+
4480
+ @property
4481
+ @pulumi.getter
4482
+ def pool(self) -> 'outputs.ResourcePool':
4483
+ """
4484
+ Pool describes the pool that this ResourceSlice belongs to.
4485
+ """
4486
+ return pulumi.get(self, "pool")
4487
+
4488
+ @property
4489
+ @pulumi.getter(name="allNodes")
4490
+ def all_nodes(self) -> Optional[builtins.bool]:
4491
+ """
4492
+ AllNodes indicates that all nodes have access to the resources in the pool.
4493
+
4494
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4495
+ """
4496
+ return pulumi.get(self, "all_nodes")
4497
+
4498
+ @property
4499
+ @pulumi.getter
4500
+ def devices(self) -> Optional[Sequence['outputs.Device']]:
4501
+ """
4502
+ Devices lists some or all of the devices in this pool.
4503
+
4504
+ Must not have more than 128 entries.
4505
+ """
4506
+ return pulumi.get(self, "devices")
4507
+
4508
+ @property
4509
+ @pulumi.getter(name="nodeName")
4510
+ def node_name(self) -> Optional[builtins.str]:
4511
+ """
4512
+ 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.
4513
+
4514
+ 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.
4515
+
4516
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4517
+ """
4518
+ return pulumi.get(self, "node_name")
4519
+
4520
+ @property
4521
+ @pulumi.getter(name="nodeSelector")
4522
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
4523
+ """
4524
+ NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
4525
+
4526
+ Must use exactly one term.
4527
+
4528
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4529
+ """
4530
+ return pulumi.get(self, "node_selector")
4531
+
4532
+ @property
4533
+ @pulumi.getter(name="perDeviceNodeSelection")
4534
+ def per_device_node_selection(self) -> Optional[builtins.bool]:
4535
+ """
4536
+ PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4537
+
4538
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4539
+ """
4540
+ return pulumi.get(self, "per_device_node_selection")
4541
+
4542
+ @property
4543
+ @pulumi.getter(name="sharedCounters")
4544
+ def shared_counters(self) -> Optional[Sequence['outputs.CounterSet']]:
4545
+ """
4546
+ SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4547
+
4548
+ The names of the SharedCounters must be unique in the ResourceSlice.
4549
+
4550
+ The maximum number of counters in all sets is 32.
4551
+ """
4552
+ return pulumi.get(self, "shared_counters")
4553
+
4554
+
4555
+ @pulumi.output_type
4556
+ class ResourceSliceSpecPatch(dict):
4557
+ """
4558
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4559
+ """
4560
+ @staticmethod
4561
+ def __key_warning(key: str):
4562
+ suggest = None
4563
+ if key == "allNodes":
4564
+ suggest = "all_nodes"
4565
+ elif key == "nodeName":
4566
+ suggest = "node_name"
4567
+ elif key == "nodeSelector":
4568
+ suggest = "node_selector"
4569
+ elif key == "perDeviceNodeSelection":
4570
+ suggest = "per_device_node_selection"
4571
+ elif key == "sharedCounters":
4572
+ suggest = "shared_counters"
4573
+
4574
+ if suggest:
4575
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpecPatch. Access the value via the '{suggest}' property getter instead.")
4576
+
4577
+ def __getitem__(self, key: str) -> Any:
4578
+ ResourceSliceSpecPatch.__key_warning(key)
4579
+ return super().__getitem__(key)
4580
+
4581
+ def get(self, key: str, default = None) -> Any:
4582
+ ResourceSliceSpecPatch.__key_warning(key)
4583
+ return super().get(key, default)
4584
+
4585
+ def __init__(__self__, *,
4586
+ all_nodes: Optional[builtins.bool] = None,
4587
+ devices: Optional[Sequence['outputs.DevicePatch']] = None,
4588
+ driver: Optional[builtins.str] = None,
4589
+ node_name: Optional[builtins.str] = None,
4590
+ node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
4591
+ per_device_node_selection: Optional[builtins.bool] = None,
4592
+ pool: Optional['outputs.ResourcePoolPatch'] = None,
4593
+ shared_counters: Optional[Sequence['outputs.CounterSetPatch']] = None):
4594
+ """
4595
+ ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
4596
+ :param builtins.bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
4597
+
4598
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4599
+ :param Sequence['DevicePatchArgs'] devices: Devices lists some or all of the devices in this pool.
4600
+
4601
+ Must not have more than 128 entries.
4602
+ :param builtins.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.
4603
+
4604
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4605
+ :param builtins.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.
4606
+
4607
+ 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.
4608
+
4609
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4610
+ :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.
4611
+
4612
+ Must use exactly one term.
4613
+
4614
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4615
+ :param builtins.bool per_device_node_selection: PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4616
+
4617
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4618
+ :param 'ResourcePoolPatchArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
4619
+ :param Sequence['CounterSetPatchArgs'] shared_counters: SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4620
+
4621
+ The names of the SharedCounters must be unique in the ResourceSlice.
4622
+
4623
+ The maximum number of counters in all sets is 32.
4624
+ """
4625
+ if all_nodes is not None:
4626
+ pulumi.set(__self__, "all_nodes", all_nodes)
4627
+ if devices is not None:
4628
+ pulumi.set(__self__, "devices", devices)
4629
+ if driver is not None:
4630
+ pulumi.set(__self__, "driver", driver)
4631
+ if node_name is not None:
4632
+ pulumi.set(__self__, "node_name", node_name)
4633
+ if node_selector is not None:
4634
+ pulumi.set(__self__, "node_selector", node_selector)
4635
+ if per_device_node_selection is not None:
4636
+ pulumi.set(__self__, "per_device_node_selection", per_device_node_selection)
4637
+ if pool is not None:
4638
+ pulumi.set(__self__, "pool", pool)
4639
+ if shared_counters is not None:
4640
+ pulumi.set(__self__, "shared_counters", shared_counters)
4641
+
4642
+ @property
4643
+ @pulumi.getter(name="allNodes")
4644
+ def all_nodes(self) -> Optional[builtins.bool]:
4645
+ """
4646
+ AllNodes indicates that all nodes have access to the resources in the pool.
4647
+
4648
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4649
+ """
4650
+ return pulumi.get(self, "all_nodes")
4651
+
4652
+ @property
4653
+ @pulumi.getter
4654
+ def devices(self) -> Optional[Sequence['outputs.DevicePatch']]:
4655
+ """
4656
+ Devices lists some or all of the devices in this pool.
4657
+
4658
+ Must not have more than 128 entries.
4659
+ """
4660
+ return pulumi.get(self, "devices")
4661
+
4662
+ @property
4663
+ @pulumi.getter
4664
+ def driver(self) -> Optional[builtins.str]:
4665
+ """
4666
+ 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.
4667
+
4668
+ Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
4669
+ """
4670
+ return pulumi.get(self, "driver")
4671
+
4672
+ @property
4673
+ @pulumi.getter(name="nodeName")
4674
+ def node_name(self) -> Optional[builtins.str]:
4675
+ """
4676
+ 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.
4677
+
4678
+ 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.
4679
+
4680
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
4681
+ """
4682
+ return pulumi.get(self, "node_name")
4683
+
4684
+ @property
4685
+ @pulumi.getter(name="nodeSelector")
4686
+ def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
4687
+ """
4688
+ NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
4689
+
4690
+ Must use exactly one term.
4691
+
4692
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4693
+ """
4694
+ return pulumi.get(self, "node_selector")
4695
+
4696
+ @property
4697
+ @pulumi.getter(name="perDeviceNodeSelection")
4698
+ def per_device_node_selection(self) -> Optional[builtins.bool]:
4699
+ """
4700
+ PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
4701
+
4702
+ Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
4703
+ """
4704
+ return pulumi.get(self, "per_device_node_selection")
4705
+
4706
+ @property
4707
+ @pulumi.getter
4708
+ def pool(self) -> Optional['outputs.ResourcePoolPatch']:
4709
+ """
4710
+ Pool describes the pool that this ResourceSlice belongs to.
4711
+ """
4712
+ return pulumi.get(self, "pool")
4713
+
4714
+ @property
4715
+ @pulumi.getter(name="sharedCounters")
4716
+ def shared_counters(self) -> Optional[Sequence['outputs.CounterSetPatch']]:
4717
+ """
4718
+ SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
4719
+
4720
+ The names of the SharedCounters must be unique in the ResourceSlice.
4721
+
4722
+ The maximum number of counters in all sets is 32.
4723
+ """
4724
+ return pulumi.get(self, "shared_counters")
4725
+
4726
+