pulumi-kubernetes 4.10.0a1710355461__py3-none-any.whl → 4.20.0a1736823142__py3-none-any.whl

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

Potentially problematic release.


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

Files changed (598) hide show
  1. pulumi_kubernetes/__init__.py +123 -3
  2. pulumi_kubernetes/_inputs.py +63 -6
  3. pulumi_kubernetes/_utilities.py +41 -5
  4. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +11 -6
  5. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +11 -6
  6. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +11 -6
  7. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +226 -0
  8. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +224 -0
  9. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +215 -0
  10. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +236 -0
  11. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +215 -0
  12. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +238 -0
  13. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +11 -6
  14. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +11 -6
  15. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +11 -6
  16. pulumi_kubernetes/admissionregistration/v1/__init__.py +6 -0
  17. pulumi_kubernetes/admissionregistration/v1/_inputs.py +4571 -939
  18. pulumi_kubernetes/admissionregistration/v1/outputs.py +2880 -470
  19. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
  20. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
  21. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
  22. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
  23. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
  24. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
  25. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +12 -7
  26. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +12 -15
  27. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +29 -23
  28. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +12 -15
  29. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +29 -23
  30. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +12 -7
  31. pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
  32. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +2514 -141
  33. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1370 -246
  34. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +11 -6
  35. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +11 -6
  36. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +11 -6
  37. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +12 -7
  38. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +12 -7
  39. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +29 -23
  40. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +12 -7
  41. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +29 -23
  42. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +12 -7
  43. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +11 -6
  44. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +11 -6
  45. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +11 -6
  46. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +1522 -42
  47. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +9 -4
  48. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +11 -6
  49. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +11 -6
  50. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +11 -6
  51. pulumi_kubernetes/apiextensions/v1/_inputs.py +1175 -12
  52. pulumi_kubernetes/apiextensions/v1/outputs.py +122 -8
  53. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +10 -5
  54. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +10 -5
  55. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +10 -5
  56. pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +903 -6
  57. pulumi_kubernetes/apiextensions/v1beta1/outputs.py +5 -0
  58. pulumi_kubernetes/apiregistration/v1/APIService.py +11 -6
  59. pulumi_kubernetes/apiregistration/v1/APIServiceList.py +11 -6
  60. pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +11 -6
  61. pulumi_kubernetes/apiregistration/v1/_inputs.py +194 -0
  62. pulumi_kubernetes/apiregistration/v1/outputs.py +5 -0
  63. pulumi_kubernetes/apiregistration/v1beta1/APIService.py +10 -5
  64. pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +9 -4
  65. pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +10 -5
  66. pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +191 -0
  67. pulumi_kubernetes/apiregistration/v1beta1/outputs.py +5 -0
  68. pulumi_kubernetes/apps/v1/ControllerRevision.py +8 -3
  69. pulumi_kubernetes/apps/v1/ControllerRevisionList.py +11 -6
  70. pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +8 -3
  71. pulumi_kubernetes/apps/v1/DaemonSet.py +11 -6
  72. pulumi_kubernetes/apps/v1/DaemonSetList.py +11 -6
  73. pulumi_kubernetes/apps/v1/DaemonSetPatch.py +11 -6
  74. pulumi_kubernetes/apps/v1/Deployment.py +11 -6
  75. pulumi_kubernetes/apps/v1/DeploymentList.py +11 -6
  76. pulumi_kubernetes/apps/v1/DeploymentPatch.py +11 -6
  77. pulumi_kubernetes/apps/v1/ReplicaSet.py +11 -6
  78. pulumi_kubernetes/apps/v1/ReplicaSetList.py +11 -6
  79. pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +11 -6
  80. pulumi_kubernetes/apps/v1/StatefulSet.py +11 -6
  81. pulumi_kubernetes/apps/v1/StatefulSetList.py +11 -6
  82. pulumi_kubernetes/apps/v1/StatefulSetPatch.py +11 -6
  83. pulumi_kubernetes/apps/v1/_inputs.py +1057 -8
  84. pulumi_kubernetes/apps/v1/outputs.py +13 -8
  85. pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +8 -3
  86. pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +11 -6
  87. pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +8 -3
  88. pulumi_kubernetes/apps/v1beta1/Deployment.py +11 -6
  89. pulumi_kubernetes/apps/v1beta1/DeploymentList.py +11 -6
  90. pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +11 -6
  91. pulumi_kubernetes/apps/v1beta1/StatefulSet.py +10 -5
  92. pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +9 -4
  93. pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +10 -5
  94. pulumi_kubernetes/apps/v1beta1/_inputs.py +603 -0
  95. pulumi_kubernetes/apps/v1beta1/outputs.py +5 -0
  96. pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +8 -3
  97. pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +11 -6
  98. pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +8 -3
  99. pulumi_kubernetes/apps/v1beta2/DaemonSet.py +11 -6
  100. pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +11 -6
  101. pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +11 -6
  102. pulumi_kubernetes/apps/v1beta2/Deployment.py +11 -6
  103. pulumi_kubernetes/apps/v1beta2/DeploymentList.py +11 -6
  104. pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +11 -6
  105. pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +11 -6
  106. pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +11 -6
  107. pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +11 -6
  108. pulumi_kubernetes/apps/v1beta2/StatefulSet.py +10 -5
  109. pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +9 -4
  110. pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +10 -5
  111. pulumi_kubernetes/apps/v1beta2/_inputs.py +935 -0
  112. pulumi_kubernetes/apps/v1beta2/outputs.py +5 -0
  113. pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +10 -5
  114. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +10 -5
  115. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +10 -5
  116. pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +281 -0
  117. pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +5 -0
  118. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +11 -6
  119. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +11 -6
  120. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +11 -6
  121. pulumi_kubernetes/autoscaling/v1/_inputs.py +157 -0
  122. pulumi_kubernetes/autoscaling/v1/outputs.py +5 -0
  123. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +11 -6
  124. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +11 -6
  125. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +11 -6
  126. pulumi_kubernetes/autoscaling/v2/_inputs.py +815 -10
  127. pulumi_kubernetes/autoscaling/v2/outputs.py +17 -12
  128. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +11 -6
  129. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +11 -6
  130. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +11 -6
  131. pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +652 -0
  132. pulumi_kubernetes/autoscaling/v2beta1/outputs.py +5 -0
  133. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +11 -6
  134. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +11 -6
  135. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +11 -6
  136. pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +796 -0
  137. pulumi_kubernetes/autoscaling/v2beta2/outputs.py +5 -0
  138. pulumi_kubernetes/batch/v1/CronJob.py +11 -6
  139. pulumi_kubernetes/batch/v1/CronJobList.py +11 -6
  140. pulumi_kubernetes/batch/v1/CronJobPatch.py +11 -6
  141. pulumi_kubernetes/batch/v1/Job.py +11 -6
  142. pulumi_kubernetes/batch/v1/JobList.py +11 -6
  143. pulumi_kubernetes/batch/v1/JobPatch.py +11 -6
  144. pulumi_kubernetes/batch/v1/_inputs.py +1070 -85
  145. pulumi_kubernetes/batch/v1/outputs.py +298 -40
  146. pulumi_kubernetes/batch/v1beta1/CronJob.py +11 -6
  147. pulumi_kubernetes/batch/v1beta1/CronJobList.py +11 -6
  148. pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +11 -6
  149. pulumi_kubernetes/batch/v1beta1/_inputs.py +161 -0
  150. pulumi_kubernetes/batch/v1beta1/outputs.py +5 -0
  151. pulumi_kubernetes/batch/v2alpha1/CronJob.py +11 -6
  152. pulumi_kubernetes/batch/v2alpha1/CronJobList.py +11 -6
  153. pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +11 -6
  154. pulumi_kubernetes/batch/v2alpha1/_inputs.py +161 -0
  155. pulumi_kubernetes/batch/v2alpha1/outputs.py +5 -0
  156. pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +10 -5
  157. pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +10 -5
  158. pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +10 -5
  159. pulumi_kubernetes/certificates/v1/_inputs.py +290 -0
  160. pulumi_kubernetes/certificates/v1/outputs.py +5 -0
  161. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +11 -6
  162. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +11 -6
  163. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +11 -6
  164. pulumi_kubernetes/certificates/v1alpha1/_inputs.py +94 -0
  165. pulumi_kubernetes/certificates/v1alpha1/outputs.py +5 -0
  166. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +10 -5
  167. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +9 -4
  168. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +10 -5
  169. pulumi_kubernetes/certificates/v1beta1/_inputs.py +165 -0
  170. pulumi_kubernetes/certificates/v1beta1/outputs.py +5 -0
  171. pulumi_kubernetes/coordination/__init__.py +6 -0
  172. pulumi_kubernetes/coordination/v1/Lease.py +11 -6
  173. pulumi_kubernetes/coordination/v1/LeaseList.py +11 -6
  174. pulumi_kubernetes/coordination/v1/LeasePatch.py +11 -6
  175. pulumi_kubernetes/coordination/v1/_inputs.py +180 -10
  176. pulumi_kubernetes/coordination/v1/outputs.py +67 -10
  177. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +216 -0
  178. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +215 -0
  179. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +228 -0
  180. pulumi_kubernetes/coordination/v1alpha1/__init__.py +12 -0
  181. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +418 -0
  182. pulumi_kubernetes/coordination/v1alpha1/outputs.py +334 -0
  183. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
  184. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
  185. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
  186. pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
  187. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
  188. pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
  189. pulumi_kubernetes/coordination/v1beta1/Lease.py +11 -6
  190. pulumi_kubernetes/coordination/v1beta1/LeaseList.py +11 -6
  191. pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +11 -6
  192. pulumi_kubernetes/coordination/v1beta1/_inputs.py +90 -0
  193. pulumi_kubernetes/coordination/v1beta1/outputs.py +5 -0
  194. pulumi_kubernetes/core/v1/Binding.py +13 -8
  195. pulumi_kubernetes/core/v1/BindingPatch.py +13 -8
  196. pulumi_kubernetes/core/v1/ConfigMap.py +8 -3
  197. pulumi_kubernetes/core/v1/ConfigMapList.py +11 -6
  198. pulumi_kubernetes/core/v1/ConfigMapPatch.py +8 -3
  199. pulumi_kubernetes/core/v1/Endpoints.py +11 -6
  200. pulumi_kubernetes/core/v1/EndpointsList.py +11 -6
  201. pulumi_kubernetes/core/v1/EndpointsPatch.py +11 -6
  202. pulumi_kubernetes/core/v1/Event.py +20 -15
  203. pulumi_kubernetes/core/v1/EventList.py +11 -6
  204. pulumi_kubernetes/core/v1/EventPatch.py +20 -15
  205. pulumi_kubernetes/core/v1/LimitRange.py +11 -6
  206. pulumi_kubernetes/core/v1/LimitRangeList.py +11 -6
  207. pulumi_kubernetes/core/v1/LimitRangePatch.py +11 -6
  208. pulumi_kubernetes/core/v1/Namespace.py +11 -6
  209. pulumi_kubernetes/core/v1/NamespaceList.py +11 -6
  210. pulumi_kubernetes/core/v1/NamespacePatch.py +11 -6
  211. pulumi_kubernetes/core/v1/Node.py +11 -6
  212. pulumi_kubernetes/core/v1/NodeList.py +11 -6
  213. pulumi_kubernetes/core/v1/NodePatch.py +11 -6
  214. pulumi_kubernetes/core/v1/PersistentVolume.py +11 -6
  215. pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +11 -6
  216. pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +11 -6
  217. pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +11 -6
  218. pulumi_kubernetes/core/v1/PersistentVolumeList.py +11 -6
  219. pulumi_kubernetes/core/v1/PersistentVolumePatch.py +11 -6
  220. pulumi_kubernetes/core/v1/Pod.py +11 -6
  221. pulumi_kubernetes/core/v1/PodList.py +11 -6
  222. pulumi_kubernetes/core/v1/PodPatch.py +11 -6
  223. pulumi_kubernetes/core/v1/PodTemplate.py +11 -6
  224. pulumi_kubernetes/core/v1/PodTemplateList.py +11 -6
  225. pulumi_kubernetes/core/v1/PodTemplatePatch.py +11 -6
  226. pulumi_kubernetes/core/v1/ReplicationController.py +11 -6
  227. pulumi_kubernetes/core/v1/ReplicationControllerList.py +11 -6
  228. pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +11 -6
  229. pulumi_kubernetes/core/v1/ResourceQuota.py +11 -6
  230. pulumi_kubernetes/core/v1/ResourceQuotaList.py +11 -6
  231. pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +11 -6
  232. pulumi_kubernetes/core/v1/Secret.py +8 -3
  233. pulumi_kubernetes/core/v1/SecretList.py +11 -6
  234. pulumi_kubernetes/core/v1/SecretPatch.py +8 -3
  235. pulumi_kubernetes/core/v1/Service.py +17 -28
  236. pulumi_kubernetes/core/v1/ServiceAccount.py +17 -12
  237. pulumi_kubernetes/core/v1/ServiceAccountList.py +11 -6
  238. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +17 -12
  239. pulumi_kubernetes/core/v1/ServiceList.py +11 -6
  240. pulumi_kubernetes/core/v1/ServicePatch.py +17 -28
  241. pulumi_kubernetes/core/v1/_inputs.py +11760 -756
  242. pulumi_kubernetes/core/v1/outputs.py +2131 -448
  243. pulumi_kubernetes/discovery/v1/EndpointSlice.py +14 -9
  244. pulumi_kubernetes/discovery/v1/EndpointSliceList.py +11 -6
  245. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +14 -9
  246. pulumi_kubernetes/discovery/v1/_inputs.py +284 -0
  247. pulumi_kubernetes/discovery/v1/outputs.py +5 -0
  248. pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +14 -9
  249. pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +11 -6
  250. pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +14 -9
  251. pulumi_kubernetes/discovery/v1beta1/_inputs.py +210 -0
  252. pulumi_kubernetes/discovery/v1beta1/outputs.py +5 -0
  253. pulumi_kubernetes/events/v1/Event.py +20 -15
  254. pulumi_kubernetes/events/v1/EventList.py +11 -6
  255. pulumi_kubernetes/events/v1/EventPatch.py +20 -15
  256. pulumi_kubernetes/events/v1/_inputs.py +118 -0
  257. pulumi_kubernetes/events/v1/outputs.py +5 -0
  258. pulumi_kubernetes/events/v1beta1/Event.py +19 -14
  259. pulumi_kubernetes/events/v1beta1/EventList.py +11 -6
  260. pulumi_kubernetes/events/v1beta1/EventPatch.py +19 -14
  261. pulumi_kubernetes/events/v1beta1/_inputs.py +123 -0
  262. pulumi_kubernetes/events/v1beta1/outputs.py +5 -0
  263. pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +11 -6
  264. pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +11 -6
  265. pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +11 -6
  266. pulumi_kubernetes/extensions/v1beta1/Deployment.py +11 -6
  267. pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +11 -6
  268. pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +11 -6
  269. pulumi_kubernetes/extensions/v1beta1/Ingress.py +11 -6
  270. pulumi_kubernetes/extensions/v1beta1/IngressList.py +11 -6
  271. pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +11 -6
  272. pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +11 -6
  273. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +11 -6
  274. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +11 -6
  275. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +11 -6
  276. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +11 -6
  277. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +11 -6
  278. pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +11 -6
  279. pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +11 -6
  280. pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +11 -6
  281. pulumi_kubernetes/extensions/v1beta1/_inputs.py +1884 -26
  282. pulumi_kubernetes/extensions/v1beta1/outputs.py +5 -0
  283. pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +11 -6
  284. pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +11 -6
  285. pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +11 -6
  286. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +11 -6
  287. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +11 -6
  288. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +11 -6
  289. pulumi_kubernetes/flowcontrol/v1/_inputs.py +779 -0
  290. pulumi_kubernetes/flowcontrol/v1/outputs.py +5 -0
  291. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +11 -6
  292. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +11 -6
  293. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +11 -6
  294. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +11 -6
  295. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +11 -6
  296. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +11 -6
  297. pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +671 -0
  298. pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +5 -0
  299. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +11 -6
  300. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +11 -6
  301. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +11 -6
  302. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +11 -6
  303. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +11 -6
  304. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +11 -6
  305. pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +671 -0
  306. pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +5 -0
  307. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +11 -6
  308. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +11 -6
  309. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +11 -6
  310. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +11 -6
  311. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +11 -6
  312. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +11 -6
  313. pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +771 -0
  314. pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +5 -0
  315. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +11 -6
  316. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +11 -6
  317. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +11 -6
  318. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +11 -6
  319. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +11 -6
  320. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +11 -6
  321. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +779 -8
  322. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +13 -8
  323. pulumi_kubernetes/helm/__init__.py +3 -0
  324. pulumi_kubernetes/helm/v3/Release.py +8 -3
  325. pulumi_kubernetes/helm/v3/_inputs.py +42 -2
  326. pulumi_kubernetes/helm/v3/outputs.py +7 -2
  327. pulumi_kubernetes/helm/v4/Chart.py +721 -0
  328. pulumi_kubernetes/helm/v4/__init__.py +9 -0
  329. pulumi_kubernetes/helm/v4/_inputs.py +216 -0
  330. pulumi_kubernetes/kustomize/__init__.py +8 -0
  331. pulumi_kubernetes/kustomize/v2/Directory.py +219 -0
  332. pulumi_kubernetes/kustomize/v2/__init__.py +8 -0
  333. pulumi_kubernetes/meta/v1/Status.py +11 -6
  334. pulumi_kubernetes/meta/v1/StatusPatch.py +11 -6
  335. pulumi_kubernetes/meta/v1/_inputs.py +596 -0
  336. pulumi_kubernetes/meta/v1/outputs.py +5 -0
  337. pulumi_kubernetes/networking/v1/Ingress.py +11 -6
  338. pulumi_kubernetes/networking/v1/IngressClass.py +11 -6
  339. pulumi_kubernetes/networking/v1/IngressClassList.py +11 -6
  340. pulumi_kubernetes/networking/v1/IngressClassPatch.py +11 -6
  341. pulumi_kubernetes/networking/v1/IngressList.py +11 -6
  342. pulumi_kubernetes/networking/v1/IngressPatch.py +11 -6
  343. pulumi_kubernetes/networking/v1/NetworkPolicy.py +11 -6
  344. pulumi_kubernetes/networking/v1/NetworkPolicyList.py +11 -6
  345. pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +11 -6
  346. pulumi_kubernetes/networking/v1/_inputs.py +840 -0
  347. pulumi_kubernetes/networking/v1/outputs.py +5 -0
  348. pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +11 -6
  349. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +11 -6
  350. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +11 -6
  351. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +13 -6
  352. pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +11 -6
  353. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +13 -6
  354. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +13 -6
  355. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +11 -6
  356. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +13 -6
  357. pulumi_kubernetes/networking/v1alpha1/_inputs.py +293 -37
  358. pulumi_kubernetes/networking/v1alpha1/outputs.py +26 -24
  359. pulumi_kubernetes/networking/v1beta1/IPAddress.py +216 -0
  360. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +215 -0
  361. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +228 -0
  362. pulumi_kubernetes/networking/v1beta1/Ingress.py +11 -6
  363. pulumi_kubernetes/networking/v1beta1/IngressClass.py +11 -6
  364. pulumi_kubernetes/networking/v1beta1/IngressClassList.py +11 -6
  365. pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +11 -6
  366. pulumi_kubernetes/networking/v1beta1/IngressList.py +11 -6
  367. pulumi_kubernetes/networking/v1beta1/IngressPatch.py +11 -6
  368. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +226 -0
  369. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +215 -0
  370. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +238 -0
  371. pulumi_kubernetes/networking/v1beta1/__init__.py +6 -0
  372. pulumi_kubernetes/networking/v1beta1/_inputs.py +984 -11
  373. pulumi_kubernetes/networking/v1beta1/outputs.py +466 -0
  374. pulumi_kubernetes/node/v1/RuntimeClass.py +14 -9
  375. pulumi_kubernetes/node/v1/RuntimeClassList.py +11 -6
  376. pulumi_kubernetes/node/v1/RuntimeClassPatch.py +14 -9
  377. pulumi_kubernetes/node/v1/_inputs.py +101 -0
  378. pulumi_kubernetes/node/v1/outputs.py +5 -0
  379. pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +11 -6
  380. pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +11 -6
  381. pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +11 -6
  382. pulumi_kubernetes/node/v1alpha1/_inputs.py +134 -0
  383. pulumi_kubernetes/node/v1alpha1/outputs.py +5 -0
  384. pulumi_kubernetes/node/v1beta1/RuntimeClass.py +14 -9
  385. pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +11 -6
  386. pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +14 -9
  387. pulumi_kubernetes/node/v1beta1/_inputs.py +100 -0
  388. pulumi_kubernetes/node/v1beta1/outputs.py +5 -0
  389. pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +11 -6
  390. pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +11 -6
  391. pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +11 -6
  392. pulumi_kubernetes/policy/v1/_inputs.py +151 -0
  393. pulumi_kubernetes/policy/v1/outputs.py +5 -0
  394. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +10 -5
  395. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +9 -4
  396. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +10 -5
  397. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +11 -6
  398. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +11 -6
  399. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +11 -6
  400. pulumi_kubernetes/policy/v1beta1/_inputs.py +713 -0
  401. pulumi_kubernetes/policy/v1beta1/outputs.py +5 -0
  402. pulumi_kubernetes/provider.py +82 -6
  403. pulumi_kubernetes/pulumi-plugin.json +2 -1
  404. pulumi_kubernetes/rbac/v1/ClusterRole.py +14 -9
  405. pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +14 -9
  406. pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +11 -6
  407. pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +14 -9
  408. pulumi_kubernetes/rbac/v1/ClusterRoleList.py +11 -6
  409. pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +14 -9
  410. pulumi_kubernetes/rbac/v1/Role.py +11 -6
  411. pulumi_kubernetes/rbac/v1/RoleBinding.py +14 -9
  412. pulumi_kubernetes/rbac/v1/RoleBindingList.py +11 -6
  413. pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +14 -9
  414. pulumi_kubernetes/rbac/v1/RoleList.py +11 -6
  415. pulumi_kubernetes/rbac/v1/RolePatch.py +11 -6
  416. pulumi_kubernetes/rbac/v1/_inputs.py +295 -0
  417. pulumi_kubernetes/rbac/v1/outputs.py +5 -0
  418. pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +14 -9
  419. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +14 -9
  420. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +11 -6
  421. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +14 -9
  422. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +11 -6
  423. pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +14 -9
  424. pulumi_kubernetes/rbac/v1alpha1/Role.py +11 -6
  425. pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +14 -9
  426. pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +11 -6
  427. pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +14 -9
  428. pulumi_kubernetes/rbac/v1alpha1/RoleList.py +11 -6
  429. pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +11 -6
  430. pulumi_kubernetes/rbac/v1alpha1/_inputs.py +295 -0
  431. pulumi_kubernetes/rbac/v1alpha1/outputs.py +5 -0
  432. pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +14 -9
  433. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +14 -9
  434. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +11 -6
  435. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +14 -9
  436. pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +11 -6
  437. pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +14 -9
  438. pulumi_kubernetes/rbac/v1beta1/Role.py +11 -6
  439. pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +14 -9
  440. pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +11 -6
  441. pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +14 -9
  442. pulumi_kubernetes/rbac/v1beta1/RoleList.py +11 -6
  443. pulumi_kubernetes/rbac/v1beta1/RolePatch.py +11 -6
  444. pulumi_kubernetes/rbac/v1beta1/_inputs.py +295 -0
  445. pulumi_kubernetes/rbac/v1beta1/outputs.py +5 -0
  446. pulumi_kubernetes/resource/__init__.py +6 -0
  447. pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +11 -6
  448. pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +11 -6
  449. pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +11 -6
  450. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +12 -7
  451. pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +11 -6
  452. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +12 -7
  453. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +12 -7
  454. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +11 -6
  455. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +12 -7
  456. pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +14 -9
  457. pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +11 -6
  458. pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +14 -9
  459. pulumi_kubernetes/resource/v1alpha1/_inputs.py +458 -0
  460. pulumi_kubernetes/resource/v1alpha1/outputs.py +5 -0
  461. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +13 -6
  462. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +11 -6
  463. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +13 -6
  464. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +12 -7
  465. pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +11 -6
  466. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +280 -0
  467. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +215 -0
  468. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +292 -0
  469. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +12 -7
  470. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +12 -7
  471. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +11 -6
  472. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +12 -7
  473. pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +43 -9
  474. pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +11 -6
  475. pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +272 -0
  476. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +215 -0
  477. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +284 -0
  478. pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +43 -9
  479. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +283 -0
  480. pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +215 -0
  481. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +294 -0
  482. pulumi_kubernetes/resource/v1alpha2/__init__.py +9 -0
  483. pulumi_kubernetes/resource/v1alpha2/_inputs.py +3177 -634
  484. pulumi_kubernetes/resource/v1alpha2/outputs.py +2628 -880
  485. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +238 -0
  486. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +216 -0
  487. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +249 -0
  488. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +231 -0
  489. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +215 -0
  490. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +242 -0
  491. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +232 -0
  492. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +216 -0
  493. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +243 -0
  494. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +229 -0
  495. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +215 -0
  496. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +240 -0
  497. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +246 -0
  498. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
  499. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +257 -0
  500. pulumi_kubernetes/resource/v1alpha3/__init__.py +24 -0
  501. pulumi_kubernetes/resource/v1alpha3/_inputs.py +4372 -0
  502. pulumi_kubernetes/resource/v1alpha3/outputs.py +3914 -0
  503. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
  504. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
  505. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
  506. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
  507. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
  508. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
  509. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
  510. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
  511. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
  512. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
  513. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
  514. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
  515. pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
  516. pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
  517. pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
  518. pulumi_kubernetes/scheduling/v1/PriorityClass.py +8 -3
  519. pulumi_kubernetes/scheduling/v1/PriorityClassList.py +11 -6
  520. pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +8 -3
  521. pulumi_kubernetes/scheduling/v1/_inputs.py +44 -0
  522. pulumi_kubernetes/scheduling/v1/outputs.py +5 -0
  523. pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +8 -3
  524. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +11 -6
  525. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +8 -3
  526. pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +44 -0
  527. pulumi_kubernetes/scheduling/v1alpha1/outputs.py +5 -0
  528. pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +8 -3
  529. pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +11 -6
  530. pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +8 -3
  531. pulumi_kubernetes/scheduling/v1beta1/_inputs.py +44 -0
  532. pulumi_kubernetes/scheduling/v1beta1/outputs.py +5 -0
  533. pulumi_kubernetes/settings/v1alpha1/PodPreset.py +9 -4
  534. pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +11 -6
  535. pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +9 -4
  536. pulumi_kubernetes/settings/v1alpha1/_inputs.py +84 -0
  537. pulumi_kubernetes/settings/v1alpha1/outputs.py +5 -0
  538. pulumi_kubernetes/storage/v1/CSIDriver.py +11 -6
  539. pulumi_kubernetes/storage/v1/CSIDriverList.py +11 -6
  540. pulumi_kubernetes/storage/v1/CSIDriverPatch.py +11 -6
  541. pulumi_kubernetes/storage/v1/CSINode.py +11 -6
  542. pulumi_kubernetes/storage/v1/CSINodeList.py +11 -6
  543. pulumi_kubernetes/storage/v1/CSINodePatch.py +11 -6
  544. pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +11 -6
  545. pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +11 -6
  546. pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +11 -6
  547. pulumi_kubernetes/storage/v1/StorageClass.py +11 -6
  548. pulumi_kubernetes/storage/v1/StorageClassList.py +11 -6
  549. pulumi_kubernetes/storage/v1/StorageClassPatch.py +11 -6
  550. pulumi_kubernetes/storage/v1/VolumeAttachment.py +11 -6
  551. pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +11 -6
  552. pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +11 -6
  553. pulumi_kubernetes/storage/v1/_inputs.py +624 -10
  554. pulumi_kubernetes/storage/v1/outputs.py +17 -12
  555. pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +11 -6
  556. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +11 -6
  557. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +11 -6
  558. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +10 -3
  559. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +11 -6
  560. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +10 -3
  561. pulumi_kubernetes/storage/v1alpha1/_inputs.py +187 -0
  562. pulumi_kubernetes/storage/v1alpha1/outputs.py +5 -0
  563. pulumi_kubernetes/storage/v1beta1/CSIDriver.py +11 -6
  564. pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +11 -6
  565. pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +11 -6
  566. pulumi_kubernetes/storage/v1beta1/CSINode.py +11 -6
  567. pulumi_kubernetes/storage/v1beta1/CSINodeList.py +11 -6
  568. pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +11 -6
  569. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +11 -6
  570. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +11 -6
  571. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +11 -6
  572. pulumi_kubernetes/storage/v1beta1/StorageClass.py +11 -6
  573. pulumi_kubernetes/storage/v1beta1/StorageClassList.py +11 -6
  574. pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +11 -6
  575. pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +11 -6
  576. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +11 -6
  577. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +11 -6
  578. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +252 -0
  579. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +215 -0
  580. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +263 -0
  581. pulumi_kubernetes/storage/v1beta1/__init__.py +3 -0
  582. pulumi_kubernetes/storage/v1beta1/_inputs.py +689 -0
  583. pulumi_kubernetes/storage/v1beta1/outputs.py +99 -0
  584. pulumi_kubernetes/storagemigration/__init__.py +14 -0
  585. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +224 -0
  586. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +215 -0
  587. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +236 -0
  588. pulumi_kubernetes/storagemigration/v1alpha1/__init__.py +12 -0
  589. pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +585 -0
  590. pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +593 -0
  591. pulumi_kubernetes/yaml/v2/ConfigFile.py +81 -4
  592. pulumi_kubernetes/yaml/v2/ConfigGroup.py +123 -42
  593. pulumi_kubernetes/yaml/yaml.py +264 -0
  594. {pulumi_kubernetes-4.10.0a1710355461.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/METADATA +8 -7
  595. pulumi_kubernetes-4.20.0a1736823142.dist-info/RECORD +679 -0
  596. {pulumi_kubernetes-4.10.0a1710355461.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/WHEEL +1 -1
  597. pulumi_kubernetes-4.10.0a1710355461.dist-info/RECORD +0 -592
  598. {pulumi_kubernetes-4.10.0a1710355461.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from ... import _utilities
11
16
  from . import outputs
12
17
  from ... import core as _core
@@ -15,6 +20,26 @@ from ... import meta as _meta
15
20
  __all__ = [
16
21
  'AllocationResult',
17
22
  'AllocationResultPatch',
23
+ 'DriverAllocationResult',
24
+ 'DriverAllocationResultPatch',
25
+ 'DriverRequests',
26
+ 'DriverRequestsPatch',
27
+ 'NamedResourcesAllocationResult',
28
+ 'NamedResourcesAllocationResultPatch',
29
+ 'NamedResourcesAttribute',
30
+ 'NamedResourcesAttributePatch',
31
+ 'NamedResourcesFilter',
32
+ 'NamedResourcesFilterPatch',
33
+ 'NamedResourcesInstance',
34
+ 'NamedResourcesInstancePatch',
35
+ 'NamedResourcesIntSlice',
36
+ 'NamedResourcesIntSlicePatch',
37
+ 'NamedResourcesRequest',
38
+ 'NamedResourcesRequestPatch',
39
+ 'NamedResourcesResources',
40
+ 'NamedResourcesResourcesPatch',
41
+ 'NamedResourcesStringSlice',
42
+ 'NamedResourcesStringSlicePatch',
18
43
  'PodSchedulingContext',
19
44
  'PodSchedulingContextSpec',
20
45
  'PodSchedulingContextSpecPatch',
@@ -23,6 +48,7 @@ __all__ = [
23
48
  'ResourceClaim',
24
49
  'ResourceClaimConsumerReference',
25
50
  'ResourceClaimConsumerReferencePatch',
51
+ 'ResourceClaimParameters',
26
52
  'ResourceClaimParametersReference',
27
53
  'ResourceClaimParametersReferencePatch',
28
54
  'ResourceClaimSchedulingStatus',
@@ -35,10 +61,20 @@ __all__ = [
35
61
  'ResourceClaimTemplateSpec',
36
62
  'ResourceClaimTemplateSpecPatch',
37
63
  'ResourceClass',
64
+ 'ResourceClassParameters',
38
65
  'ResourceClassParametersReference',
39
66
  'ResourceClassParametersReferencePatch',
67
+ 'ResourceFilter',
68
+ 'ResourceFilterPatch',
40
69
  'ResourceHandle',
41
70
  'ResourceHandlePatch',
71
+ 'ResourceRequest',
72
+ 'ResourceRequestPatch',
73
+ 'ResourceSlice',
74
+ 'StructuredResourceHandle',
75
+ 'StructuredResourceHandlePatch',
76
+ 'VendorParameters',
77
+ 'VendorParametersPatch',
42
78
  ]
43
79
 
44
80
  @pulumi.output_type
@@ -190,1251 +226,2968 @@ class AllocationResultPatch(dict):
190
226
 
191
227
 
192
228
  @pulumi.output_type
193
- class PodSchedulingContext(dict):
229
+ class DriverAllocationResult(dict):
194
230
  """
195
- PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
196
-
197
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
231
+ DriverAllocationResult contains vendor parameters and the allocation result for one request.
198
232
  """
199
233
  @staticmethod
200
234
  def __key_warning(key: str):
201
235
  suggest = None
202
- if key == "apiVersion":
203
- suggest = "api_version"
236
+ if key == "namedResources":
237
+ suggest = "named_resources"
238
+ elif key == "vendorRequestParameters":
239
+ suggest = "vendor_request_parameters"
204
240
 
205
241
  if suggest:
206
- pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContext. Access the value via the '{suggest}' property getter instead.")
242
+ pulumi.log.warn(f"Key '{key}' not found in DriverAllocationResult. Access the value via the '{suggest}' property getter instead.")
207
243
 
208
244
  def __getitem__(self, key: str) -> Any:
209
- PodSchedulingContext.__key_warning(key)
245
+ DriverAllocationResult.__key_warning(key)
210
246
  return super().__getitem__(key)
211
247
 
212
248
  def get(self, key: str, default = None) -> Any:
213
- PodSchedulingContext.__key_warning(key)
249
+ DriverAllocationResult.__key_warning(key)
214
250
  return super().get(key, default)
215
251
 
216
252
  def __init__(__self__, *,
217
- spec: 'outputs.PodSchedulingContextSpec',
218
- api_version: Optional[str] = None,
219
- kind: Optional[str] = None,
220
- metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
221
- status: Optional['outputs.PodSchedulingContextStatus'] = None):
222
- """
223
- PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
224
-
225
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
226
- :param 'PodSchedulingContextSpecArgs' spec: Spec describes where resources for the Pod are needed.
227
- :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
228
- :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
229
- :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
230
- :param 'PodSchedulingContextStatusArgs' status: Status describes where resources for the Pod can be allocated.
231
- """
232
- pulumi.set(__self__, "spec", spec)
233
- if api_version is not None:
234
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
235
- if kind is not None:
236
- pulumi.set(__self__, "kind", 'PodSchedulingContext')
237
- if metadata is not None:
238
- pulumi.set(__self__, "metadata", metadata)
239
- if status is not None:
240
- pulumi.set(__self__, "status", status)
241
-
242
- @property
243
- @pulumi.getter
244
- def spec(self) -> 'outputs.PodSchedulingContextSpec':
245
- """
246
- Spec describes where resources for the Pod are needed.
247
- """
248
- return pulumi.get(self, "spec")
249
-
250
- @property
251
- @pulumi.getter(name="apiVersion")
252
- def api_version(self) -> Optional[str]:
253
- """
254
- 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
255
- """
256
- return pulumi.get(self, "api_version")
257
-
258
- @property
259
- @pulumi.getter
260
- def kind(self) -> Optional[str]:
253
+ named_resources: Optional['outputs.NamedResourcesAllocationResult'] = None,
254
+ vendor_request_parameters: Optional[Any] = None):
261
255
  """
262
- 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
256
+ DriverAllocationResult contains vendor parameters and the allocation result for one request.
257
+ :param 'NamedResourcesAllocationResultArgs' named_resources: NamedResources describes the allocation result when using the named resources model.
258
+ :param Any vendor_request_parameters: VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated.
263
259
  """
264
- return pulumi.get(self, "kind")
260
+ if named_resources is not None:
261
+ pulumi.set(__self__, "named_resources", named_resources)
262
+ if vendor_request_parameters is not None:
263
+ pulumi.set(__self__, "vendor_request_parameters", vendor_request_parameters)
265
264
 
266
265
  @property
267
- @pulumi.getter
268
- def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
266
+ @pulumi.getter(name="namedResources")
267
+ def named_resources(self) -> Optional['outputs.NamedResourcesAllocationResult']:
269
268
  """
270
- Standard object metadata
269
+ NamedResources describes the allocation result when using the named resources model.
271
270
  """
272
- return pulumi.get(self, "metadata")
271
+ return pulumi.get(self, "named_resources")
273
272
 
274
273
  @property
275
- @pulumi.getter
276
- def status(self) -> Optional['outputs.PodSchedulingContextStatus']:
274
+ @pulumi.getter(name="vendorRequestParameters")
275
+ def vendor_request_parameters(self) -> Optional[Any]:
277
276
  """
278
- Status describes where resources for the Pod can be allocated.
277
+ VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated.
279
278
  """
280
- return pulumi.get(self, "status")
279
+ return pulumi.get(self, "vendor_request_parameters")
281
280
 
282
281
 
283
282
  @pulumi.output_type
284
- class PodSchedulingContextSpec(dict):
283
+ class DriverAllocationResultPatch(dict):
285
284
  """
286
- PodSchedulingContextSpec describes where resources for the Pod are needed.
285
+ DriverAllocationResult contains vendor parameters and the allocation result for one request.
287
286
  """
288
287
  @staticmethod
289
288
  def __key_warning(key: str):
290
289
  suggest = None
291
- if key == "potentialNodes":
292
- suggest = "potential_nodes"
293
- elif key == "selectedNode":
294
- suggest = "selected_node"
290
+ if key == "namedResources":
291
+ suggest = "named_resources"
292
+ elif key == "vendorRequestParameters":
293
+ suggest = "vendor_request_parameters"
295
294
 
296
295
  if suggest:
297
- pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextSpec. Access the value via the '{suggest}' property getter instead.")
296
+ pulumi.log.warn(f"Key '{key}' not found in DriverAllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
298
297
 
299
298
  def __getitem__(self, key: str) -> Any:
300
- PodSchedulingContextSpec.__key_warning(key)
299
+ DriverAllocationResultPatch.__key_warning(key)
301
300
  return super().__getitem__(key)
302
301
 
303
302
  def get(self, key: str, default = None) -> Any:
304
- PodSchedulingContextSpec.__key_warning(key)
303
+ DriverAllocationResultPatch.__key_warning(key)
305
304
  return super().get(key, default)
306
305
 
307
306
  def __init__(__self__, *,
308
- potential_nodes: Optional[Sequence[str]] = None,
309
- selected_node: Optional[str] = None):
307
+ named_resources: Optional['outputs.NamedResourcesAllocationResultPatch'] = None,
308
+ vendor_request_parameters: Optional[Any] = None):
310
309
  """
311
- PodSchedulingContextSpec describes where resources for the Pod are needed.
312
- :param Sequence[str] potential_nodes: PotentialNodes lists nodes where the Pod might be able to run.
313
-
314
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
315
- :param str selected_node: SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
310
+ DriverAllocationResult contains vendor parameters and the allocation result for one request.
311
+ :param 'NamedResourcesAllocationResultPatchArgs' named_resources: NamedResources describes the allocation result when using the named resources model.
312
+ :param Any vendor_request_parameters: VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated.
316
313
  """
317
- if potential_nodes is not None:
318
- pulumi.set(__self__, "potential_nodes", potential_nodes)
319
- if selected_node is not None:
320
- pulumi.set(__self__, "selected_node", selected_node)
314
+ if named_resources is not None:
315
+ pulumi.set(__self__, "named_resources", named_resources)
316
+ if vendor_request_parameters is not None:
317
+ pulumi.set(__self__, "vendor_request_parameters", vendor_request_parameters)
321
318
 
322
319
  @property
323
- @pulumi.getter(name="potentialNodes")
324
- def potential_nodes(self) -> Optional[Sequence[str]]:
320
+ @pulumi.getter(name="namedResources")
321
+ def named_resources(self) -> Optional['outputs.NamedResourcesAllocationResultPatch']:
325
322
  """
326
- PotentialNodes lists nodes where the Pod might be able to run.
327
-
328
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
323
+ NamedResources describes the allocation result when using the named resources model.
329
324
  """
330
- return pulumi.get(self, "potential_nodes")
325
+ return pulumi.get(self, "named_resources")
331
326
 
332
327
  @property
333
- @pulumi.getter(name="selectedNode")
334
- def selected_node(self) -> Optional[str]:
328
+ @pulumi.getter(name="vendorRequestParameters")
329
+ def vendor_request_parameters(self) -> Optional[Any]:
335
330
  """
336
- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
331
+ VendorRequestParameters are the per-request configuration parameters from the time that the claim was allocated.
337
332
  """
338
- return pulumi.get(self, "selected_node")
333
+ return pulumi.get(self, "vendor_request_parameters")
339
334
 
340
335
 
341
336
  @pulumi.output_type
342
- class PodSchedulingContextSpecPatch(dict):
337
+ class DriverRequests(dict):
343
338
  """
344
- PodSchedulingContextSpec describes where resources for the Pod are needed.
339
+ DriverRequests describes all resources that are needed from one particular driver.
345
340
  """
346
341
  @staticmethod
347
342
  def __key_warning(key: str):
348
343
  suggest = None
349
- if key == "potentialNodes":
350
- suggest = "potential_nodes"
351
- elif key == "selectedNode":
352
- suggest = "selected_node"
344
+ if key == "driverName":
345
+ suggest = "driver_name"
346
+ elif key == "vendorParameters":
347
+ suggest = "vendor_parameters"
353
348
 
354
349
  if suggest:
355
- pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextSpecPatch. Access the value via the '{suggest}' property getter instead.")
350
+ pulumi.log.warn(f"Key '{key}' not found in DriverRequests. Access the value via the '{suggest}' property getter instead.")
356
351
 
357
352
  def __getitem__(self, key: str) -> Any:
358
- PodSchedulingContextSpecPatch.__key_warning(key)
353
+ DriverRequests.__key_warning(key)
359
354
  return super().__getitem__(key)
360
355
 
361
356
  def get(self, key: str, default = None) -> Any:
362
- PodSchedulingContextSpecPatch.__key_warning(key)
357
+ DriverRequests.__key_warning(key)
363
358
  return super().get(key, default)
364
359
 
365
360
  def __init__(__self__, *,
366
- potential_nodes: Optional[Sequence[str]] = None,
367
- selected_node: Optional[str] = None):
361
+ driver_name: Optional[str] = None,
362
+ requests: Optional[Sequence['outputs.ResourceRequest']] = None,
363
+ vendor_parameters: Optional[Any] = None):
368
364
  """
369
- PodSchedulingContextSpec describes where resources for the Pod are needed.
370
- :param Sequence[str] potential_nodes: PotentialNodes lists nodes where the Pod might be able to run.
371
-
372
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
373
- :param str selected_node: SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
365
+ DriverRequests describes all resources that are needed from one particular driver.
366
+ :param str driver_name: DriverName is the name used by the DRA driver kubelet plugin.
367
+ :param Sequence['ResourceRequestArgs'] requests: Requests describes all resources that are needed from the driver.
368
+ :param Any vendor_parameters: VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
374
369
  """
375
- if potential_nodes is not None:
376
- pulumi.set(__self__, "potential_nodes", potential_nodes)
377
- if selected_node is not None:
378
- pulumi.set(__self__, "selected_node", selected_node)
370
+ if driver_name is not None:
371
+ pulumi.set(__self__, "driver_name", driver_name)
372
+ if requests is not None:
373
+ pulumi.set(__self__, "requests", requests)
374
+ if vendor_parameters is not None:
375
+ pulumi.set(__self__, "vendor_parameters", vendor_parameters)
379
376
 
380
377
  @property
381
- @pulumi.getter(name="potentialNodes")
382
- def potential_nodes(self) -> Optional[Sequence[str]]:
378
+ @pulumi.getter(name="driverName")
379
+ def driver_name(self) -> Optional[str]:
383
380
  """
384
- PotentialNodes lists nodes where the Pod might be able to run.
381
+ DriverName is the name used by the DRA driver kubelet plugin.
382
+ """
383
+ return pulumi.get(self, "driver_name")
385
384
 
386
- The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
385
+ @property
386
+ @pulumi.getter
387
+ def requests(self) -> Optional[Sequence['outputs.ResourceRequest']]:
387
388
  """
388
- return pulumi.get(self, "potential_nodes")
389
+ Requests describes all resources that are needed from the driver.
390
+ """
391
+ return pulumi.get(self, "requests")
389
392
 
390
393
  @property
391
- @pulumi.getter(name="selectedNode")
392
- def selected_node(self) -> Optional[str]:
394
+ @pulumi.getter(name="vendorParameters")
395
+ def vendor_parameters(self) -> Optional[Any]:
393
396
  """
394
- SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
397
+ VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
395
398
  """
396
- return pulumi.get(self, "selected_node")
399
+ return pulumi.get(self, "vendor_parameters")
397
400
 
398
401
 
399
402
  @pulumi.output_type
400
- class PodSchedulingContextStatus(dict):
403
+ class DriverRequestsPatch(dict):
401
404
  """
402
- PodSchedulingContextStatus describes where resources for the Pod can be allocated.
405
+ DriverRequests describes all resources that are needed from one particular driver.
403
406
  """
404
407
  @staticmethod
405
408
  def __key_warning(key: str):
406
409
  suggest = None
407
- if key == "resourceClaims":
408
- suggest = "resource_claims"
410
+ if key == "driverName":
411
+ suggest = "driver_name"
412
+ elif key == "vendorParameters":
413
+ suggest = "vendor_parameters"
409
414
 
410
415
  if suggest:
411
- pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextStatus. Access the value via the '{suggest}' property getter instead.")
416
+ pulumi.log.warn(f"Key '{key}' not found in DriverRequestsPatch. Access the value via the '{suggest}' property getter instead.")
412
417
 
413
418
  def __getitem__(self, key: str) -> Any:
414
- PodSchedulingContextStatus.__key_warning(key)
419
+ DriverRequestsPatch.__key_warning(key)
415
420
  return super().__getitem__(key)
416
421
 
417
422
  def get(self, key: str, default = None) -> Any:
418
- PodSchedulingContextStatus.__key_warning(key)
423
+ DriverRequestsPatch.__key_warning(key)
419
424
  return super().get(key, default)
420
425
 
421
426
  def __init__(__self__, *,
422
- resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatus']] = None):
427
+ driver_name: Optional[str] = None,
428
+ requests: Optional[Sequence['outputs.ResourceRequestPatch']] = None,
429
+ vendor_parameters: Optional[Any] = None):
423
430
  """
424
- PodSchedulingContextStatus describes where resources for the Pod can be allocated.
425
- :param Sequence['ResourceClaimSchedulingStatusArgs'] resource_claims: ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
431
+ DriverRequests describes all resources that are needed from one particular driver.
432
+ :param str driver_name: DriverName is the name used by the DRA driver kubelet plugin.
433
+ :param Sequence['ResourceRequestPatchArgs'] requests: Requests describes all resources that are needed from the driver.
434
+ :param Any vendor_parameters: VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
426
435
  """
427
- if resource_claims is not None:
428
- pulumi.set(__self__, "resource_claims", resource_claims)
436
+ if driver_name is not None:
437
+ pulumi.set(__self__, "driver_name", driver_name)
438
+ if requests is not None:
439
+ pulumi.set(__self__, "requests", requests)
440
+ if vendor_parameters is not None:
441
+ pulumi.set(__self__, "vendor_parameters", vendor_parameters)
429
442
 
430
443
  @property
431
- @pulumi.getter(name="resourceClaims")
432
- def resource_claims(self) -> Optional[Sequence['outputs.ResourceClaimSchedulingStatus']]:
444
+ @pulumi.getter(name="driverName")
445
+ def driver_name(self) -> Optional[str]:
433
446
  """
434
- ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
447
+ DriverName is the name used by the DRA driver kubelet plugin.
435
448
  """
436
- return pulumi.get(self, "resource_claims")
449
+ return pulumi.get(self, "driver_name")
450
+
451
+ @property
452
+ @pulumi.getter
453
+ def requests(self) -> Optional[Sequence['outputs.ResourceRequestPatch']]:
454
+ """
455
+ Requests describes all resources that are needed from the driver.
456
+ """
457
+ return pulumi.get(self, "requests")
458
+
459
+ @property
460
+ @pulumi.getter(name="vendorParameters")
461
+ def vendor_parameters(self) -> Optional[Any]:
462
+ """
463
+ VendorParameters are arbitrary setup parameters for all requests of the claim. They are ignored while allocating the claim.
464
+ """
465
+ return pulumi.get(self, "vendor_parameters")
437
466
 
438
467
 
439
468
  @pulumi.output_type
440
- class PodSchedulingContextStatusPatch(dict):
469
+ class NamedResourcesAllocationResult(dict):
441
470
  """
442
- PodSchedulingContextStatus describes where resources for the Pod can be allocated.
471
+ NamedResourcesAllocationResult is used in AllocationResultModel.
443
472
  """
444
- @staticmethod
445
- def __key_warning(key: str):
446
- suggest = None
447
- if key == "resourceClaims":
448
- suggest = "resource_claims"
449
-
450
- if suggest:
451
- pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextStatusPatch. Access the value via the '{suggest}' property getter instead.")
473
+ def __init__(__self__, *,
474
+ name: str):
475
+ """
476
+ NamedResourcesAllocationResult is used in AllocationResultModel.
477
+ :param str name: Name is the name of the selected resource instance.
478
+ """
479
+ pulumi.set(__self__, "name", name)
452
480
 
453
- def __getitem__(self, key: str) -> Any:
454
- PodSchedulingContextStatusPatch.__key_warning(key)
455
- return super().__getitem__(key)
481
+ @property
482
+ @pulumi.getter
483
+ def name(self) -> str:
484
+ """
485
+ Name is the name of the selected resource instance.
486
+ """
487
+ return pulumi.get(self, "name")
456
488
 
457
- def get(self, key: str, default = None) -> Any:
458
- PodSchedulingContextStatusPatch.__key_warning(key)
459
- return super().get(key, default)
460
489
 
490
+ @pulumi.output_type
491
+ class NamedResourcesAllocationResultPatch(dict):
492
+ """
493
+ NamedResourcesAllocationResult is used in AllocationResultModel.
494
+ """
461
495
  def __init__(__self__, *,
462
- resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatusPatch']] = None):
496
+ name: Optional[str] = None):
463
497
  """
464
- PodSchedulingContextStatus describes where resources for the Pod can be allocated.
465
- :param Sequence['ResourceClaimSchedulingStatusPatchArgs'] resource_claims: ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
498
+ NamedResourcesAllocationResult is used in AllocationResultModel.
499
+ :param str name: Name is the name of the selected resource instance.
466
500
  """
467
- if resource_claims is not None:
468
- pulumi.set(__self__, "resource_claims", resource_claims)
501
+ if name is not None:
502
+ pulumi.set(__self__, "name", name)
469
503
 
470
504
  @property
471
- @pulumi.getter(name="resourceClaims")
472
- def resource_claims(self) -> Optional[Sequence['outputs.ResourceClaimSchedulingStatusPatch']]:
505
+ @pulumi.getter
506
+ def name(self) -> Optional[str]:
473
507
  """
474
- ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
508
+ Name is the name of the selected resource instance.
475
509
  """
476
- return pulumi.get(self, "resource_claims")
510
+ return pulumi.get(self, "name")
477
511
 
478
512
 
479
513
  @pulumi.output_type
480
- class ResourceClaim(dict):
514
+ class NamedResourcesAttribute(dict):
481
515
  """
482
- ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.
483
-
484
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
516
+ NamedResourcesAttribute is a combination of an attribute name and its value.
485
517
  """
486
518
  @staticmethod
487
519
  def __key_warning(key: str):
488
520
  suggest = None
489
- if key == "apiVersion":
490
- suggest = "api_version"
521
+ if key == "intSlice":
522
+ suggest = "int_slice"
523
+ elif key == "stringSlice":
524
+ suggest = "string_slice"
491
525
 
492
526
  if suggest:
493
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaim. Access the value via the '{suggest}' property getter instead.")
527
+ pulumi.log.warn(f"Key '{key}' not found in NamedResourcesAttribute. Access the value via the '{suggest}' property getter instead.")
494
528
 
495
529
  def __getitem__(self, key: str) -> Any:
496
- ResourceClaim.__key_warning(key)
530
+ NamedResourcesAttribute.__key_warning(key)
497
531
  return super().__getitem__(key)
498
532
 
499
533
  def get(self, key: str, default = None) -> Any:
500
- ResourceClaim.__key_warning(key)
534
+ NamedResourcesAttribute.__key_warning(key)
501
535
  return super().get(key, default)
502
536
 
503
537
  def __init__(__self__, *,
504
- spec: 'outputs.ResourceClaimSpec',
505
- api_version: Optional[str] = None,
506
- kind: Optional[str] = None,
507
- metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
508
- status: Optional['outputs.ResourceClaimStatus'] = None):
509
- """
510
- ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.
511
-
512
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
513
- :param 'ResourceClaimSpecArgs' spec: Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.
514
- :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
515
- :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
516
- :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
517
- :param 'ResourceClaimStatusArgs' status: Status describes whether the resource is available and with which attributes.
538
+ name: str,
539
+ bool: Optional[bool] = None,
540
+ int: Optional[int] = None,
541
+ int_slice: Optional['outputs.NamedResourcesIntSlice'] = None,
542
+ quantity: Optional[str] = None,
543
+ string: Optional[str] = None,
544
+ string_slice: Optional['outputs.NamedResourcesStringSlice'] = None,
545
+ version: Optional[str] = None):
546
+ """
547
+ NamedResourcesAttribute is a combination of an attribute name and its value.
548
+ :param str name: Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
549
+ :param bool bool: BoolValue is a true/false value.
550
+ :param int int: IntValue is a 64-bit integer.
551
+ :param 'NamedResourcesIntSliceArgs' int_slice: IntSliceValue is an array of 64-bit integers.
552
+ :param str quantity: QuantityValue is a quantity.
553
+ :param str string: StringValue is a string.
554
+ :param 'NamedResourcesStringSliceArgs' string_slice: StringSliceValue is an array of strings.
555
+ :param str version: VersionValue is a semantic version according to semver.org spec 2.0.0.
518
556
  """
519
- pulumi.set(__self__, "spec", spec)
520
- if api_version is not None:
521
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
522
- if kind is not None:
523
- pulumi.set(__self__, "kind", 'ResourceClaim')
524
- if metadata is not None:
525
- pulumi.set(__self__, "metadata", metadata)
526
- if status is not None:
527
- pulumi.set(__self__, "status", status)
557
+ pulumi.set(__self__, "name", name)
558
+ if bool is not None:
559
+ pulumi.set(__self__, "bool", bool)
560
+ if int is not None:
561
+ pulumi.set(__self__, "int", int)
562
+ if int_slice is not None:
563
+ pulumi.set(__self__, "int_slice", int_slice)
564
+ if quantity is not None:
565
+ pulumi.set(__self__, "quantity", quantity)
566
+ if string is not None:
567
+ pulumi.set(__self__, "string", string)
568
+ if string_slice is not None:
569
+ pulumi.set(__self__, "string_slice", string_slice)
570
+ if version is not None:
571
+ pulumi.set(__self__, "version", version)
528
572
 
529
573
  @property
530
574
  @pulumi.getter
531
- def spec(self) -> 'outputs.ResourceClaimSpec':
575
+ def name(self) -> str:
532
576
  """
533
- Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.
577
+ Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
534
578
  """
535
- return pulumi.get(self, "spec")
579
+ return pulumi.get(self, "name")
536
580
 
537
581
  @property
538
- @pulumi.getter(name="apiVersion")
539
- def api_version(self) -> Optional[str]:
582
+ @pulumi.getter
583
+ def bool(self) -> Optional[bool]:
540
584
  """
541
- 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
585
+ BoolValue is a true/false value.
542
586
  """
543
- return pulumi.get(self, "api_version")
587
+ return pulumi.get(self, "bool")
544
588
 
545
589
  @property
546
590
  @pulumi.getter
547
- def kind(self) -> Optional[str]:
591
+ def int(self) -> Optional[int]:
548
592
  """
549
- 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
593
+ IntValue is a 64-bit integer.
550
594
  """
551
- return pulumi.get(self, "kind")
595
+ return pulumi.get(self, "int")
552
596
 
553
597
  @property
554
- @pulumi.getter
555
- def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
598
+ @pulumi.getter(name="intSlice")
599
+ def int_slice(self) -> Optional['outputs.NamedResourcesIntSlice']:
556
600
  """
557
- Standard object metadata
601
+ IntSliceValue is an array of 64-bit integers.
558
602
  """
559
- return pulumi.get(self, "metadata")
603
+ return pulumi.get(self, "int_slice")
560
604
 
561
605
  @property
562
606
  @pulumi.getter
563
- def status(self) -> Optional['outputs.ResourceClaimStatus']:
564
- """
565
- Status describes whether the resource is available and with which attributes.
566
- """
567
- return pulumi.get(self, "status")
568
-
569
-
570
- @pulumi.output_type
571
- class ResourceClaimConsumerReference(dict):
572
- """
573
- 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.
574
- """
575
- @staticmethod
576
- def __key_warning(key: str):
577
- suggest = None
578
- if key == "apiGroup":
579
- suggest = "api_group"
580
-
581
- if suggest:
582
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReference. Access the value via the '{suggest}' property getter instead.")
583
-
584
- def __getitem__(self, key: str) -> Any:
585
- ResourceClaimConsumerReference.__key_warning(key)
586
- return super().__getitem__(key)
587
-
588
- def get(self, key: str, default = None) -> Any:
589
- ResourceClaimConsumerReference.__key_warning(key)
590
- return super().get(key, default)
591
-
592
- def __init__(__self__, *,
593
- name: str,
594
- resource: str,
595
- uid: str,
596
- api_group: Optional[str] = None):
607
+ def quantity(self) -> Optional[str]:
597
608
  """
598
- 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.
599
- :param str name: Name is the name of resource being referenced.
600
- :param str resource: Resource is the type of resource being referenced, for example "pods".
601
- :param str uid: UID identifies exactly one incarnation of the resource.
602
- :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
609
+ QuantityValue is a quantity.
603
610
  """
604
- pulumi.set(__self__, "name", name)
605
- pulumi.set(__self__, "resource", resource)
606
- pulumi.set(__self__, "uid", uid)
607
- if api_group is not None:
608
- pulumi.set(__self__, "api_group", api_group)
611
+ return pulumi.get(self, "quantity")
609
612
 
610
613
  @property
611
614
  @pulumi.getter
612
- def name(self) -> str:
615
+ def string(self) -> Optional[str]:
613
616
  """
614
- Name is the name of resource being referenced.
617
+ StringValue is a string.
615
618
  """
616
- return pulumi.get(self, "name")
619
+ return pulumi.get(self, "string")
617
620
 
618
621
  @property
619
- @pulumi.getter
620
- def resource(self) -> str:
622
+ @pulumi.getter(name="stringSlice")
623
+ def string_slice(self) -> Optional['outputs.NamedResourcesStringSlice']:
621
624
  """
622
- Resource is the type of resource being referenced, for example "pods".
625
+ StringSliceValue is an array of strings.
623
626
  """
624
- return pulumi.get(self, "resource")
627
+ return pulumi.get(self, "string_slice")
625
628
 
626
629
  @property
627
630
  @pulumi.getter
628
- def uid(self) -> str:
629
- """
630
- UID identifies exactly one incarnation of the resource.
631
- """
632
- return pulumi.get(self, "uid")
633
-
634
- @property
635
- @pulumi.getter(name="apiGroup")
636
- def api_group(self) -> Optional[str]:
631
+ def version(self) -> Optional[str]:
637
632
  """
638
- 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.
633
+ VersionValue is a semantic version according to semver.org spec 2.0.0.
639
634
  """
640
- return pulumi.get(self, "api_group")
635
+ return pulumi.get(self, "version")
641
636
 
642
637
 
643
638
  @pulumi.output_type
644
- class ResourceClaimConsumerReferencePatch(dict):
639
+ class NamedResourcesAttributePatch(dict):
645
640
  """
646
- 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.
641
+ NamedResourcesAttribute is a combination of an attribute name and its value.
647
642
  """
648
643
  @staticmethod
649
644
  def __key_warning(key: str):
650
645
  suggest = None
651
- if key == "apiGroup":
652
- suggest = "api_group"
646
+ if key == "intSlice":
647
+ suggest = "int_slice"
648
+ elif key == "stringSlice":
649
+ suggest = "string_slice"
653
650
 
654
651
  if suggest:
655
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReferencePatch. Access the value via the '{suggest}' property getter instead.")
652
+ pulumi.log.warn(f"Key '{key}' not found in NamedResourcesAttributePatch. Access the value via the '{suggest}' property getter instead.")
656
653
 
657
654
  def __getitem__(self, key: str) -> Any:
658
- ResourceClaimConsumerReferencePatch.__key_warning(key)
655
+ NamedResourcesAttributePatch.__key_warning(key)
659
656
  return super().__getitem__(key)
660
657
 
661
658
  def get(self, key: str, default = None) -> Any:
662
- ResourceClaimConsumerReferencePatch.__key_warning(key)
659
+ NamedResourcesAttributePatch.__key_warning(key)
663
660
  return super().get(key, default)
664
661
 
665
662
  def __init__(__self__, *,
666
- api_group: Optional[str] = None,
663
+ bool: Optional[bool] = None,
664
+ int: Optional[int] = None,
665
+ int_slice: Optional['outputs.NamedResourcesIntSlicePatch'] = None,
667
666
  name: Optional[str] = None,
668
- resource: Optional[str] = None,
669
- uid: Optional[str] = None):
670
- """
671
- 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.
672
- :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
673
- :param str name: Name is the name of resource being referenced.
674
- :param str resource: Resource is the type of resource being referenced, for example "pods".
675
- :param str uid: UID identifies exactly one incarnation of the resource.
676
- """
677
- if api_group is not None:
678
- pulumi.set(__self__, "api_group", api_group)
667
+ quantity: Optional[str] = None,
668
+ string: Optional[str] = None,
669
+ string_slice: Optional['outputs.NamedResourcesStringSlicePatch'] = None,
670
+ version: Optional[str] = None):
671
+ """
672
+ NamedResourcesAttribute is a combination of an attribute name and its value.
673
+ :param bool bool: BoolValue is a true/false value.
674
+ :param int int: IntValue is a 64-bit integer.
675
+ :param 'NamedResourcesIntSlicePatchArgs' int_slice: IntSliceValue is an array of 64-bit integers.
676
+ :param str name: Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
677
+ :param str quantity: QuantityValue is a quantity.
678
+ :param str string: StringValue is a string.
679
+ :param 'NamedResourcesStringSlicePatchArgs' string_slice: StringSliceValue is an array of strings.
680
+ :param str version: VersionValue is a semantic version according to semver.org spec 2.0.0.
681
+ """
682
+ if bool is not None:
683
+ pulumi.set(__self__, "bool", bool)
684
+ if int is not None:
685
+ pulumi.set(__self__, "int", int)
686
+ if int_slice is not None:
687
+ pulumi.set(__self__, "int_slice", int_slice)
679
688
  if name is not None:
680
689
  pulumi.set(__self__, "name", name)
681
- if resource is not None:
682
- pulumi.set(__self__, "resource", resource)
683
- if uid is not None:
684
- pulumi.set(__self__, "uid", uid)
690
+ if quantity is not None:
691
+ pulumi.set(__self__, "quantity", quantity)
692
+ if string is not None:
693
+ pulumi.set(__self__, "string", string)
694
+ if string_slice is not None:
695
+ pulumi.set(__self__, "string_slice", string_slice)
696
+ if version is not None:
697
+ pulumi.set(__self__, "version", version)
685
698
 
686
699
  @property
687
- @pulumi.getter(name="apiGroup")
688
- def api_group(self) -> Optional[str]:
700
+ @pulumi.getter
701
+ def bool(self) -> Optional[bool]:
689
702
  """
690
- 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.
703
+ BoolValue is a true/false value.
691
704
  """
692
- return pulumi.get(self, "api_group")
705
+ return pulumi.get(self, "bool")
706
+
707
+ @property
708
+ @pulumi.getter
709
+ def int(self) -> Optional[int]:
710
+ """
711
+ IntValue is a 64-bit integer.
712
+ """
713
+ return pulumi.get(self, "int")
714
+
715
+ @property
716
+ @pulumi.getter(name="intSlice")
717
+ def int_slice(self) -> Optional['outputs.NamedResourcesIntSlicePatch']:
718
+ """
719
+ IntSliceValue is an array of 64-bit integers.
720
+ """
721
+ return pulumi.get(self, "int_slice")
693
722
 
694
723
  @property
695
724
  @pulumi.getter
696
725
  def name(self) -> Optional[str]:
697
726
  """
698
- Name is the name of resource being referenced.
727
+ Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
699
728
  """
700
729
  return pulumi.get(self, "name")
701
730
 
702
731
  @property
703
732
  @pulumi.getter
704
- def resource(self) -> Optional[str]:
733
+ def quantity(self) -> Optional[str]:
705
734
  """
706
- Resource is the type of resource being referenced, for example "pods".
735
+ QuantityValue is a quantity.
707
736
  """
708
- return pulumi.get(self, "resource")
737
+ return pulumi.get(self, "quantity")
709
738
 
710
739
  @property
711
740
  @pulumi.getter
712
- def uid(self) -> Optional[str]:
741
+ def string(self) -> Optional[str]:
713
742
  """
714
- UID identifies exactly one incarnation of the resource.
743
+ StringValue is a string.
715
744
  """
716
- return pulumi.get(self, "uid")
745
+ return pulumi.get(self, "string")
746
+
747
+ @property
748
+ @pulumi.getter(name="stringSlice")
749
+ def string_slice(self) -> Optional['outputs.NamedResourcesStringSlicePatch']:
750
+ """
751
+ StringSliceValue is an array of strings.
752
+ """
753
+ return pulumi.get(self, "string_slice")
754
+
755
+ @property
756
+ @pulumi.getter
757
+ def version(self) -> Optional[str]:
758
+ """
759
+ VersionValue is a semantic version according to semver.org spec 2.0.0.
760
+ """
761
+ return pulumi.get(self, "version")
717
762
 
718
763
 
719
764
  @pulumi.output_type
720
- class ResourceClaimParametersReference(dict):
765
+ class NamedResourcesFilter(dict):
721
766
  """
722
- ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
767
+ NamedResourcesFilter is used in ResourceFilterModel.
723
768
  """
724
- @staticmethod
725
- def __key_warning(key: str):
726
- suggest = None
727
- if key == "apiGroup":
728
- suggest = "api_group"
769
+ def __init__(__self__, *,
770
+ selector: str):
771
+ """
772
+ NamedResourcesFilter is used in ResourceFilterModel.
773
+ :param str selector: Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
774
+
775
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
776
+
777
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
778
+ attributes.stringslice["b"].isSorted()
779
+ """
780
+ pulumi.set(__self__, "selector", selector)
729
781
 
730
- if suggest:
731
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimParametersReference. Access the value via the '{suggest}' property getter instead.")
782
+ @property
783
+ @pulumi.getter
784
+ def selector(self) -> str:
785
+ """
786
+ Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
732
787
 
733
- def __getitem__(self, key: str) -> Any:
734
- ResourceClaimParametersReference.__key_warning(key)
735
- return super().__getitem__(key)
788
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
789
+
790
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
791
+ attributes.stringslice["b"].isSorted()
792
+ """
793
+ return pulumi.get(self, "selector")
736
794
 
737
- def get(self, key: str, default = None) -> Any:
738
- ResourceClaimParametersReference.__key_warning(key)
739
- return super().get(key, default)
740
795
 
796
+ @pulumi.output_type
797
+ class NamedResourcesFilterPatch(dict):
798
+ """
799
+ NamedResourcesFilter is used in ResourceFilterModel.
800
+ """
741
801
  def __init__(__self__, *,
742
- kind: str,
743
- name: str,
744
- api_group: Optional[str] = None):
802
+ selector: Optional[str] = None):
745
803
  """
746
- ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
747
- :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
748
- :param str name: Name is the name of resource being referenced.
749
- :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
804
+ NamedResourcesFilter is used in ResourceFilterModel.
805
+ :param str selector: Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
806
+
807
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
808
+
809
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
810
+ attributes.stringslice["b"].isSorted()
750
811
  """
751
- pulumi.set(__self__, "kind", kind)
752
- pulumi.set(__self__, "name", name)
753
- if api_group is not None:
754
- pulumi.set(__self__, "api_group", api_group)
812
+ if selector is not None:
813
+ pulumi.set(__self__, "selector", selector)
755
814
 
756
815
  @property
757
816
  @pulumi.getter
758
- def kind(self) -> str:
817
+ def selector(self) -> Optional[str]:
759
818
  """
760
- Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
819
+ Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
820
+
821
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
822
+
823
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
824
+ attributes.stringslice["b"].isSorted()
761
825
  """
762
- return pulumi.get(self, "kind")
826
+ return pulumi.get(self, "selector")
827
+
828
+
829
+ @pulumi.output_type
830
+ class NamedResourcesInstance(dict):
831
+ """
832
+ NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.
833
+ """
834
+ def __init__(__self__, *,
835
+ name: str,
836
+ attributes: Optional[Sequence['outputs.NamedResourcesAttribute']] = None):
837
+ """
838
+ NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.
839
+ :param str name: Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
840
+ :param Sequence['NamedResourcesAttributeArgs'] attributes: Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
841
+ """
842
+ pulumi.set(__self__, "name", name)
843
+ if attributes is not None:
844
+ pulumi.set(__self__, "attributes", attributes)
763
845
 
764
846
  @property
765
847
  @pulumi.getter
766
848
  def name(self) -> str:
767
849
  """
768
- Name is the name of resource being referenced.
850
+ Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
769
851
  """
770
852
  return pulumi.get(self, "name")
771
853
 
772
854
  @property
773
- @pulumi.getter(name="apiGroup")
774
- def api_group(self) -> Optional[str]:
855
+ @pulumi.getter
856
+ def attributes(self) -> Optional[Sequence['outputs.NamedResourcesAttribute']]:
775
857
  """
776
- 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.
858
+ Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
777
859
  """
778
- return pulumi.get(self, "api_group")
860
+ return pulumi.get(self, "attributes")
779
861
 
780
862
 
781
863
  @pulumi.output_type
782
- class ResourceClaimParametersReferencePatch(dict):
864
+ class NamedResourcesInstancePatch(dict):
783
865
  """
784
- ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
866
+ NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.
785
867
  """
786
- @staticmethod
787
- def __key_warning(key: str):
788
- suggest = None
789
- if key == "apiGroup":
790
- suggest = "api_group"
791
-
792
- if suggest:
793
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimParametersReferencePatch. Access the value via the '{suggest}' property getter instead.")
794
-
795
- def __getitem__(self, key: str) -> Any:
796
- ResourceClaimParametersReferencePatch.__key_warning(key)
797
- return super().__getitem__(key)
798
-
799
- def get(self, key: str, default = None) -> Any:
800
- ResourceClaimParametersReferencePatch.__key_warning(key)
801
- return super().get(key, default)
802
-
803
868
  def __init__(__self__, *,
804
- api_group: Optional[str] = None,
805
- kind: Optional[str] = None,
869
+ attributes: Optional[Sequence['outputs.NamedResourcesAttributePatch']] = None,
806
870
  name: Optional[str] = None):
807
871
  """
808
- ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
809
- :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
810
- :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
811
- :param str name: Name is the name of resource being referenced.
872
+ NamedResourcesInstance represents one individual hardware instance that can be selected based on its attributes.
873
+ :param Sequence['NamedResourcesAttributePatchArgs'] attributes: Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
874
+ :param str name: Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
812
875
  """
813
- if api_group is not None:
814
- pulumi.set(__self__, "api_group", api_group)
815
- if kind is not None:
816
- pulumi.set(__self__, "kind", kind)
876
+ if attributes is not None:
877
+ pulumi.set(__self__, "attributes", attributes)
817
878
  if name is not None:
818
879
  pulumi.set(__self__, "name", name)
819
880
 
820
- @property
821
- @pulumi.getter(name="apiGroup")
822
- def api_group(self) -> Optional[str]:
823
- """
824
- 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.
825
- """
826
- return pulumi.get(self, "api_group")
827
-
828
881
  @property
829
882
  @pulumi.getter
830
- def kind(self) -> Optional[str]:
883
+ def attributes(self) -> Optional[Sequence['outputs.NamedResourcesAttributePatch']]:
831
884
  """
832
- Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
885
+ Attributes defines the attributes of this resource instance. The name of each attribute must be unique.
833
886
  """
834
- return pulumi.get(self, "kind")
887
+ return pulumi.get(self, "attributes")
835
888
 
836
889
  @property
837
890
  @pulumi.getter
838
891
  def name(self) -> Optional[str]:
839
892
  """
840
- Name is the name of resource being referenced.
893
+ Name is unique identifier among all resource instances managed by the driver on the node. It must be a DNS subdomain.
841
894
  """
842
895
  return pulumi.get(self, "name")
843
896
 
844
897
 
845
898
  @pulumi.output_type
846
- class ResourceClaimSchedulingStatus(dict):
899
+ class NamedResourcesIntSlice(dict):
847
900
  """
848
- ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
901
+ NamedResourcesIntSlice contains a slice of 64-bit integers.
849
902
  """
850
- @staticmethod
851
- def __key_warning(key: str):
852
- suggest = None
853
- if key == "unsuitableNodes":
854
- suggest = "unsuitable_nodes"
855
-
856
- if suggest:
857
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSchedulingStatus. Access the value via the '{suggest}' property getter instead.")
858
-
859
- def __getitem__(self, key: str) -> Any:
860
- ResourceClaimSchedulingStatus.__key_warning(key)
861
- return super().__getitem__(key)
862
-
863
- def get(self, key: str, default = None) -> Any:
864
- ResourceClaimSchedulingStatus.__key_warning(key)
865
- return super().get(key, default)
866
-
867
903
  def __init__(__self__, *,
868
- name: Optional[str] = None,
869
- unsuitable_nodes: Optional[Sequence[str]] = None):
904
+ ints: Sequence[int]):
870
905
  """
871
- ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
872
- :param str name: Name matches the pod.spec.resourceClaims[*].Name field.
873
- :param Sequence[str] unsuitable_nodes: UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
874
-
875
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
906
+ NamedResourcesIntSlice contains a slice of 64-bit integers.
907
+ :param Sequence[int] ints: Ints is the slice of 64-bit integers.
876
908
  """
877
- if name is not None:
878
- pulumi.set(__self__, "name", name)
879
- if unsuitable_nodes is not None:
880
- pulumi.set(__self__, "unsuitable_nodes", unsuitable_nodes)
909
+ pulumi.set(__self__, "ints", ints)
881
910
 
882
911
  @property
883
912
  @pulumi.getter
884
- def name(self) -> Optional[str]:
913
+ def ints(self) -> Sequence[int]:
885
914
  """
886
- Name matches the pod.spec.resourceClaims[*].Name field.
915
+ Ints is the slice of 64-bit integers.
916
+ """
917
+ return pulumi.get(self, "ints")
918
+
919
+
920
+ @pulumi.output_type
921
+ class NamedResourcesIntSlicePatch(dict):
922
+ """
923
+ NamedResourcesIntSlice contains a slice of 64-bit integers.
924
+ """
925
+ def __init__(__self__, *,
926
+ ints: Optional[Sequence[int]] = None):
927
+ """
928
+ NamedResourcesIntSlice contains a slice of 64-bit integers.
929
+ :param Sequence[int] ints: Ints is the slice of 64-bit integers.
930
+ """
931
+ if ints is not None:
932
+ pulumi.set(__self__, "ints", ints)
933
+
934
+ @property
935
+ @pulumi.getter
936
+ def ints(self) -> Optional[Sequence[int]]:
937
+ """
938
+ Ints is the slice of 64-bit integers.
939
+ """
940
+ return pulumi.get(self, "ints")
941
+
942
+
943
+ @pulumi.output_type
944
+ class NamedResourcesRequest(dict):
945
+ """
946
+ NamedResourcesRequest is used in ResourceRequestModel.
947
+ """
948
+ def __init__(__self__, *,
949
+ selector: str):
950
+ """
951
+ NamedResourcesRequest is used in ResourceRequestModel.
952
+ :param str selector: Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
953
+
954
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
955
+
956
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
957
+ attributes.stringslice["b"].isSorted()
958
+ """
959
+ pulumi.set(__self__, "selector", selector)
960
+
961
+ @property
962
+ @pulumi.getter
963
+ def selector(self) -> str:
964
+ """
965
+ Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
966
+
967
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
968
+
969
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
970
+ attributes.stringslice["b"].isSorted()
971
+ """
972
+ return pulumi.get(self, "selector")
973
+
974
+
975
+ @pulumi.output_type
976
+ class NamedResourcesRequestPatch(dict):
977
+ """
978
+ NamedResourcesRequest is used in ResourceRequestModel.
979
+ """
980
+ def __init__(__self__, *,
981
+ selector: Optional[str] = None):
982
+ """
983
+ NamedResourcesRequest is used in ResourceRequestModel.
984
+ :param str selector: Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
985
+
986
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
987
+
988
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
989
+ attributes.stringslice["b"].isSorted()
990
+ """
991
+ if selector is not None:
992
+ pulumi.set(__self__, "selector", selector)
993
+
994
+ @property
995
+ @pulumi.getter
996
+ def selector(self) -> Optional[str]:
997
+ """
998
+ Selector is a CEL expression which must evaluate to true if a resource instance is suitable. The language is as defined in https://kubernetes.io/docs/reference/using-api/cel/
999
+
1000
+ In addition, for each type NamedResourcesin AttributeValue there is a map that resolves to the corresponding value of the instance under evaluation. For example:
1001
+
1002
+ attributes.quantity["a"].isGreaterThan(quantity("0")) &&
1003
+ attributes.stringslice["b"].isSorted()
1004
+ """
1005
+ return pulumi.get(self, "selector")
1006
+
1007
+
1008
+ @pulumi.output_type
1009
+ class NamedResourcesResources(dict):
1010
+ """
1011
+ NamedResourcesResources is used in ResourceModel.
1012
+ """
1013
+ def __init__(__self__, *,
1014
+ instances: Sequence['outputs.NamedResourcesInstance']):
1015
+ """
1016
+ NamedResourcesResources is used in ResourceModel.
1017
+ :param Sequence['NamedResourcesInstanceArgs'] instances: The list of all individual resources instances currently available.
1018
+ """
1019
+ pulumi.set(__self__, "instances", instances)
1020
+
1021
+ @property
1022
+ @pulumi.getter
1023
+ def instances(self) -> Sequence['outputs.NamedResourcesInstance']:
1024
+ """
1025
+ The list of all individual resources instances currently available.
1026
+ """
1027
+ return pulumi.get(self, "instances")
1028
+
1029
+
1030
+ @pulumi.output_type
1031
+ class NamedResourcesResourcesPatch(dict):
1032
+ """
1033
+ NamedResourcesResources is used in ResourceModel.
1034
+ """
1035
+ def __init__(__self__, *,
1036
+ instances: Optional[Sequence['outputs.NamedResourcesInstancePatch']] = None):
1037
+ """
1038
+ NamedResourcesResources is used in ResourceModel.
1039
+ :param Sequence['NamedResourcesInstancePatchArgs'] instances: The list of all individual resources instances currently available.
1040
+ """
1041
+ if instances is not None:
1042
+ pulumi.set(__self__, "instances", instances)
1043
+
1044
+ @property
1045
+ @pulumi.getter
1046
+ def instances(self) -> Optional[Sequence['outputs.NamedResourcesInstancePatch']]:
1047
+ """
1048
+ The list of all individual resources instances currently available.
1049
+ """
1050
+ return pulumi.get(self, "instances")
1051
+
1052
+
1053
+ @pulumi.output_type
1054
+ class NamedResourcesStringSlice(dict):
1055
+ """
1056
+ NamedResourcesStringSlice contains a slice of strings.
1057
+ """
1058
+ def __init__(__self__, *,
1059
+ strings: Sequence[str]):
1060
+ """
1061
+ NamedResourcesStringSlice contains a slice of strings.
1062
+ :param Sequence[str] strings: Strings is the slice of strings.
1063
+ """
1064
+ pulumi.set(__self__, "strings", strings)
1065
+
1066
+ @property
1067
+ @pulumi.getter
1068
+ def strings(self) -> Sequence[str]:
1069
+ """
1070
+ Strings is the slice of strings.
1071
+ """
1072
+ return pulumi.get(self, "strings")
1073
+
1074
+
1075
+ @pulumi.output_type
1076
+ class NamedResourcesStringSlicePatch(dict):
1077
+ """
1078
+ NamedResourcesStringSlice contains a slice of strings.
1079
+ """
1080
+ def __init__(__self__, *,
1081
+ strings: Optional[Sequence[str]] = None):
1082
+ """
1083
+ NamedResourcesStringSlice contains a slice of strings.
1084
+ :param Sequence[str] strings: Strings is the slice of strings.
1085
+ """
1086
+ if strings is not None:
1087
+ pulumi.set(__self__, "strings", strings)
1088
+
1089
+ @property
1090
+ @pulumi.getter
1091
+ def strings(self) -> Optional[Sequence[str]]:
1092
+ """
1093
+ Strings is the slice of strings.
1094
+ """
1095
+ return pulumi.get(self, "strings")
1096
+
1097
+
1098
+ @pulumi.output_type
1099
+ class PodSchedulingContext(dict):
1100
+ """
1101
+ PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
1102
+
1103
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1104
+ """
1105
+ @staticmethod
1106
+ def __key_warning(key: str):
1107
+ suggest = None
1108
+ if key == "apiVersion":
1109
+ suggest = "api_version"
1110
+
1111
+ if suggest:
1112
+ pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContext. Access the value via the '{suggest}' property getter instead.")
1113
+
1114
+ def __getitem__(self, key: str) -> Any:
1115
+ PodSchedulingContext.__key_warning(key)
1116
+ return super().__getitem__(key)
1117
+
1118
+ def get(self, key: str, default = None) -> Any:
1119
+ PodSchedulingContext.__key_warning(key)
1120
+ return super().get(key, default)
1121
+
1122
+ def __init__(__self__, *,
1123
+ spec: 'outputs.PodSchedulingContextSpec',
1124
+ api_version: Optional[str] = None,
1125
+ kind: Optional[str] = None,
1126
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
1127
+ status: Optional['outputs.PodSchedulingContextStatus'] = None):
1128
+ """
1129
+ PodSchedulingContext objects hold information that is needed to schedule a Pod with ResourceClaims that use "WaitForFirstConsumer" allocation mode.
1130
+
1131
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1132
+ :param 'PodSchedulingContextSpecArgs' spec: Spec describes where resources for the Pod are needed.
1133
+ :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1134
+ :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1135
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1136
+ :param 'PodSchedulingContextStatusArgs' status: Status describes where resources for the Pod can be allocated.
1137
+ """
1138
+ pulumi.set(__self__, "spec", spec)
1139
+ if api_version is not None:
1140
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
1141
+ if kind is not None:
1142
+ pulumi.set(__self__, "kind", 'PodSchedulingContext')
1143
+ if metadata is not None:
1144
+ pulumi.set(__self__, "metadata", metadata)
1145
+ if status is not None:
1146
+ pulumi.set(__self__, "status", status)
1147
+
1148
+ @property
1149
+ @pulumi.getter
1150
+ def spec(self) -> 'outputs.PodSchedulingContextSpec':
1151
+ """
1152
+ Spec describes where resources for the Pod are needed.
1153
+ """
1154
+ return pulumi.get(self, "spec")
1155
+
1156
+ @property
1157
+ @pulumi.getter(name="apiVersion")
1158
+ def api_version(self) -> Optional[str]:
1159
+ """
1160
+ 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
1161
+ """
1162
+ return pulumi.get(self, "api_version")
1163
+
1164
+ @property
1165
+ @pulumi.getter
1166
+ def kind(self) -> Optional[str]:
1167
+ """
1168
+ 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
1169
+ """
1170
+ return pulumi.get(self, "kind")
1171
+
1172
+ @property
1173
+ @pulumi.getter
1174
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1175
+ """
1176
+ Standard object metadata
1177
+ """
1178
+ return pulumi.get(self, "metadata")
1179
+
1180
+ @property
1181
+ @pulumi.getter
1182
+ def status(self) -> Optional['outputs.PodSchedulingContextStatus']:
1183
+ """
1184
+ Status describes where resources for the Pod can be allocated.
1185
+ """
1186
+ return pulumi.get(self, "status")
1187
+
1188
+
1189
+ @pulumi.output_type
1190
+ class PodSchedulingContextSpec(dict):
1191
+ """
1192
+ PodSchedulingContextSpec describes where resources for the Pod are needed.
1193
+ """
1194
+ @staticmethod
1195
+ def __key_warning(key: str):
1196
+ suggest = None
1197
+ if key == "potentialNodes":
1198
+ suggest = "potential_nodes"
1199
+ elif key == "selectedNode":
1200
+ suggest = "selected_node"
1201
+
1202
+ if suggest:
1203
+ pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextSpec. Access the value via the '{suggest}' property getter instead.")
1204
+
1205
+ def __getitem__(self, key: str) -> Any:
1206
+ PodSchedulingContextSpec.__key_warning(key)
1207
+ return super().__getitem__(key)
1208
+
1209
+ def get(self, key: str, default = None) -> Any:
1210
+ PodSchedulingContextSpec.__key_warning(key)
1211
+ return super().get(key, default)
1212
+
1213
+ def __init__(__self__, *,
1214
+ potential_nodes: Optional[Sequence[str]] = None,
1215
+ selected_node: Optional[str] = None):
1216
+ """
1217
+ PodSchedulingContextSpec describes where resources for the Pod are needed.
1218
+ :param Sequence[str] potential_nodes: PotentialNodes lists nodes where the Pod might be able to run.
1219
+
1220
+ The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
1221
+ :param str selected_node: SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
1222
+ """
1223
+ if potential_nodes is not None:
1224
+ pulumi.set(__self__, "potential_nodes", potential_nodes)
1225
+ if selected_node is not None:
1226
+ pulumi.set(__self__, "selected_node", selected_node)
1227
+
1228
+ @property
1229
+ @pulumi.getter(name="potentialNodes")
1230
+ def potential_nodes(self) -> Optional[Sequence[str]]:
1231
+ """
1232
+ PotentialNodes lists nodes where the Pod might be able to run.
1233
+
1234
+ The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
1235
+ """
1236
+ return pulumi.get(self, "potential_nodes")
1237
+
1238
+ @property
1239
+ @pulumi.getter(name="selectedNode")
1240
+ def selected_node(self) -> Optional[str]:
1241
+ """
1242
+ SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
1243
+ """
1244
+ return pulumi.get(self, "selected_node")
1245
+
1246
+
1247
+ @pulumi.output_type
1248
+ class PodSchedulingContextSpecPatch(dict):
1249
+ """
1250
+ PodSchedulingContextSpec describes where resources for the Pod are needed.
1251
+ """
1252
+ @staticmethod
1253
+ def __key_warning(key: str):
1254
+ suggest = None
1255
+ if key == "potentialNodes":
1256
+ suggest = "potential_nodes"
1257
+ elif key == "selectedNode":
1258
+ suggest = "selected_node"
1259
+
1260
+ if suggest:
1261
+ pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextSpecPatch. Access the value via the '{suggest}' property getter instead.")
1262
+
1263
+ def __getitem__(self, key: str) -> Any:
1264
+ PodSchedulingContextSpecPatch.__key_warning(key)
1265
+ return super().__getitem__(key)
1266
+
1267
+ def get(self, key: str, default = None) -> Any:
1268
+ PodSchedulingContextSpecPatch.__key_warning(key)
1269
+ return super().get(key, default)
1270
+
1271
+ def __init__(__self__, *,
1272
+ potential_nodes: Optional[Sequence[str]] = None,
1273
+ selected_node: Optional[str] = None):
1274
+ """
1275
+ PodSchedulingContextSpec describes where resources for the Pod are needed.
1276
+ :param Sequence[str] potential_nodes: PotentialNodes lists nodes where the Pod might be able to run.
1277
+
1278
+ The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
1279
+ :param str selected_node: SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
1280
+ """
1281
+ if potential_nodes is not None:
1282
+ pulumi.set(__self__, "potential_nodes", potential_nodes)
1283
+ if selected_node is not None:
1284
+ pulumi.set(__self__, "selected_node", selected_node)
1285
+
1286
+ @property
1287
+ @pulumi.getter(name="potentialNodes")
1288
+ def potential_nodes(self) -> Optional[Sequence[str]]:
1289
+ """
1290
+ PotentialNodes lists nodes where the Pod might be able to run.
1291
+
1292
+ The size of this field is limited to 128. This is large enough for many clusters. Larger clusters may need more attempts to find a node that suits all pending resources. This may get increased in the future, but not reduced.
1293
+ """
1294
+ return pulumi.get(self, "potential_nodes")
1295
+
1296
+ @property
1297
+ @pulumi.getter(name="selectedNode")
1298
+ def selected_node(self) -> Optional[str]:
1299
+ """
1300
+ SelectedNode is the node for which allocation of ResourceClaims that are referenced by the Pod and that use "WaitForFirstConsumer" allocation is to be attempted.
1301
+ """
1302
+ return pulumi.get(self, "selected_node")
1303
+
1304
+
1305
+ @pulumi.output_type
1306
+ class PodSchedulingContextStatus(dict):
1307
+ """
1308
+ PodSchedulingContextStatus describes where resources for the Pod can be allocated.
1309
+ """
1310
+ @staticmethod
1311
+ def __key_warning(key: str):
1312
+ suggest = None
1313
+ if key == "resourceClaims":
1314
+ suggest = "resource_claims"
1315
+
1316
+ if suggest:
1317
+ pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextStatus. Access the value via the '{suggest}' property getter instead.")
1318
+
1319
+ def __getitem__(self, key: str) -> Any:
1320
+ PodSchedulingContextStatus.__key_warning(key)
1321
+ return super().__getitem__(key)
1322
+
1323
+ def get(self, key: str, default = None) -> Any:
1324
+ PodSchedulingContextStatus.__key_warning(key)
1325
+ return super().get(key, default)
1326
+
1327
+ def __init__(__self__, *,
1328
+ resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatus']] = None):
1329
+ """
1330
+ PodSchedulingContextStatus describes where resources for the Pod can be allocated.
1331
+ :param Sequence['ResourceClaimSchedulingStatusArgs'] resource_claims: ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
1332
+ """
1333
+ if resource_claims is not None:
1334
+ pulumi.set(__self__, "resource_claims", resource_claims)
1335
+
1336
+ @property
1337
+ @pulumi.getter(name="resourceClaims")
1338
+ def resource_claims(self) -> Optional[Sequence['outputs.ResourceClaimSchedulingStatus']]:
1339
+ """
1340
+ ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
1341
+ """
1342
+ return pulumi.get(self, "resource_claims")
1343
+
1344
+
1345
+ @pulumi.output_type
1346
+ class PodSchedulingContextStatusPatch(dict):
1347
+ """
1348
+ PodSchedulingContextStatus describes where resources for the Pod can be allocated.
1349
+ """
1350
+ @staticmethod
1351
+ def __key_warning(key: str):
1352
+ suggest = None
1353
+ if key == "resourceClaims":
1354
+ suggest = "resource_claims"
1355
+
1356
+ if suggest:
1357
+ pulumi.log.warn(f"Key '{key}' not found in PodSchedulingContextStatusPatch. Access the value via the '{suggest}' property getter instead.")
1358
+
1359
+ def __getitem__(self, key: str) -> Any:
1360
+ PodSchedulingContextStatusPatch.__key_warning(key)
1361
+ return super().__getitem__(key)
1362
+
1363
+ def get(self, key: str, default = None) -> Any:
1364
+ PodSchedulingContextStatusPatch.__key_warning(key)
1365
+ return super().get(key, default)
1366
+
1367
+ def __init__(__self__, *,
1368
+ resource_claims: Optional[Sequence['outputs.ResourceClaimSchedulingStatusPatch']] = None):
1369
+ """
1370
+ PodSchedulingContextStatus describes where resources for the Pod can be allocated.
1371
+ :param Sequence['ResourceClaimSchedulingStatusPatchArgs'] resource_claims: ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
1372
+ """
1373
+ if resource_claims is not None:
1374
+ pulumi.set(__self__, "resource_claims", resource_claims)
1375
+
1376
+ @property
1377
+ @pulumi.getter(name="resourceClaims")
1378
+ def resource_claims(self) -> Optional[Sequence['outputs.ResourceClaimSchedulingStatusPatch']]:
1379
+ """
1380
+ ResourceClaims describes resource availability for each pod.spec.resourceClaim entry where the corresponding ResourceClaim uses "WaitForFirstConsumer" allocation mode.
1381
+ """
1382
+ return pulumi.get(self, "resource_claims")
1383
+
1384
+
1385
+ @pulumi.output_type
1386
+ class ResourceClaim(dict):
1387
+ """
1388
+ ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.
1389
+
1390
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1391
+ """
1392
+ @staticmethod
1393
+ def __key_warning(key: str):
1394
+ suggest = None
1395
+ if key == "apiVersion":
1396
+ suggest = "api_version"
1397
+
1398
+ if suggest:
1399
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaim. Access the value via the '{suggest}' property getter instead.")
1400
+
1401
+ def __getitem__(self, key: str) -> Any:
1402
+ ResourceClaim.__key_warning(key)
1403
+ return super().__getitem__(key)
1404
+
1405
+ def get(self, key: str, default = None) -> Any:
1406
+ ResourceClaim.__key_warning(key)
1407
+ return super().get(key, default)
1408
+
1409
+ def __init__(__self__, *,
1410
+ spec: 'outputs.ResourceClaimSpec',
1411
+ api_version: Optional[str] = None,
1412
+ kind: Optional[str] = None,
1413
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
1414
+ status: Optional['outputs.ResourceClaimStatus'] = None):
1415
+ """
1416
+ ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.
1417
+
1418
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1419
+ :param 'ResourceClaimSpecArgs' spec: Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.
1420
+ :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1421
+ :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1422
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1423
+ :param 'ResourceClaimStatusArgs' status: Status describes whether the resource is available and with which attributes.
1424
+ """
1425
+ pulumi.set(__self__, "spec", spec)
1426
+ if api_version is not None:
1427
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
1428
+ if kind is not None:
1429
+ pulumi.set(__self__, "kind", 'ResourceClaim')
1430
+ if metadata is not None:
1431
+ pulumi.set(__self__, "metadata", metadata)
1432
+ if status is not None:
1433
+ pulumi.set(__self__, "status", status)
1434
+
1435
+ @property
1436
+ @pulumi.getter
1437
+ def spec(self) -> 'outputs.ResourceClaimSpec':
1438
+ """
1439
+ Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.
1440
+ """
1441
+ return pulumi.get(self, "spec")
1442
+
1443
+ @property
1444
+ @pulumi.getter(name="apiVersion")
1445
+ def api_version(self) -> Optional[str]:
1446
+ """
1447
+ 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
1448
+ """
1449
+ return pulumi.get(self, "api_version")
1450
+
1451
+ @property
1452
+ @pulumi.getter
1453
+ def kind(self) -> Optional[str]:
1454
+ """
1455
+ 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
1456
+ """
1457
+ return pulumi.get(self, "kind")
1458
+
1459
+ @property
1460
+ @pulumi.getter
1461
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1462
+ """
1463
+ Standard object metadata
1464
+ """
1465
+ return pulumi.get(self, "metadata")
1466
+
1467
+ @property
1468
+ @pulumi.getter
1469
+ def status(self) -> Optional['outputs.ResourceClaimStatus']:
1470
+ """
1471
+ Status describes whether the resource is available and with which attributes.
1472
+ """
1473
+ return pulumi.get(self, "status")
1474
+
1475
+
1476
+ @pulumi.output_type
1477
+ class ResourceClaimConsumerReference(dict):
1478
+ """
1479
+ 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.
1480
+ """
1481
+ @staticmethod
1482
+ def __key_warning(key: str):
1483
+ suggest = None
1484
+ if key == "apiGroup":
1485
+ suggest = "api_group"
1486
+
1487
+ if suggest:
1488
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReference. Access the value via the '{suggest}' property getter instead.")
1489
+
1490
+ def __getitem__(self, key: str) -> Any:
1491
+ ResourceClaimConsumerReference.__key_warning(key)
1492
+ return super().__getitem__(key)
1493
+
1494
+ def get(self, key: str, default = None) -> Any:
1495
+ ResourceClaimConsumerReference.__key_warning(key)
1496
+ return super().get(key, default)
1497
+
1498
+ def __init__(__self__, *,
1499
+ name: str,
1500
+ resource: str,
1501
+ uid: str,
1502
+ api_group: Optional[str] = None):
1503
+ """
1504
+ 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.
1505
+ :param str name: Name is the name of resource being referenced.
1506
+ :param str resource: Resource is the type of resource being referenced, for example "pods".
1507
+ :param str uid: UID identifies exactly one incarnation of the resource.
1508
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
1509
+ """
1510
+ pulumi.set(__self__, "name", name)
1511
+ pulumi.set(__self__, "resource", resource)
1512
+ pulumi.set(__self__, "uid", uid)
1513
+ if api_group is not None:
1514
+ pulumi.set(__self__, "api_group", api_group)
1515
+
1516
+ @property
1517
+ @pulumi.getter
1518
+ def name(self) -> str:
1519
+ """
1520
+ Name is the name of resource being referenced.
1521
+ """
1522
+ return pulumi.get(self, "name")
1523
+
1524
+ @property
1525
+ @pulumi.getter
1526
+ def resource(self) -> str:
1527
+ """
1528
+ Resource is the type of resource being referenced, for example "pods".
1529
+ """
1530
+ return pulumi.get(self, "resource")
1531
+
1532
+ @property
1533
+ @pulumi.getter
1534
+ def uid(self) -> str:
1535
+ """
1536
+ UID identifies exactly one incarnation of the resource.
1537
+ """
1538
+ return pulumi.get(self, "uid")
1539
+
1540
+ @property
1541
+ @pulumi.getter(name="apiGroup")
1542
+ def api_group(self) -> Optional[str]:
1543
+ """
1544
+ 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.
1545
+ """
1546
+ return pulumi.get(self, "api_group")
1547
+
1548
+
1549
+ @pulumi.output_type
1550
+ class ResourceClaimConsumerReferencePatch(dict):
1551
+ """
1552
+ 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.
1553
+ """
1554
+ @staticmethod
1555
+ def __key_warning(key: str):
1556
+ suggest = None
1557
+ if key == "apiGroup":
1558
+ suggest = "api_group"
1559
+
1560
+ if suggest:
1561
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReferencePatch. Access the value via the '{suggest}' property getter instead.")
1562
+
1563
+ def __getitem__(self, key: str) -> Any:
1564
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
1565
+ return super().__getitem__(key)
1566
+
1567
+ def get(self, key: str, default = None) -> Any:
1568
+ ResourceClaimConsumerReferencePatch.__key_warning(key)
1569
+ return super().get(key, default)
1570
+
1571
+ def __init__(__self__, *,
1572
+ api_group: Optional[str] = None,
1573
+ name: Optional[str] = None,
1574
+ resource: Optional[str] = None,
1575
+ uid: Optional[str] = None):
1576
+ """
1577
+ 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.
1578
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
1579
+ :param str name: Name is the name of resource being referenced.
1580
+ :param str resource: Resource is the type of resource being referenced, for example "pods".
1581
+ :param str uid: UID identifies exactly one incarnation of the resource.
1582
+ """
1583
+ if api_group is not None:
1584
+ pulumi.set(__self__, "api_group", api_group)
1585
+ if name is not None:
1586
+ pulumi.set(__self__, "name", name)
1587
+ if resource is not None:
1588
+ pulumi.set(__self__, "resource", resource)
1589
+ if uid is not None:
1590
+ pulumi.set(__self__, "uid", uid)
1591
+
1592
+ @property
1593
+ @pulumi.getter(name="apiGroup")
1594
+ def api_group(self) -> Optional[str]:
1595
+ """
1596
+ 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.
1597
+ """
1598
+ return pulumi.get(self, "api_group")
1599
+
1600
+ @property
1601
+ @pulumi.getter
1602
+ def name(self) -> Optional[str]:
1603
+ """
1604
+ Name is the name of resource being referenced.
1605
+ """
1606
+ return pulumi.get(self, "name")
1607
+
1608
+ @property
1609
+ @pulumi.getter
1610
+ def resource(self) -> Optional[str]:
1611
+ """
1612
+ Resource is the type of resource being referenced, for example "pods".
1613
+ """
1614
+ return pulumi.get(self, "resource")
1615
+
1616
+ @property
1617
+ @pulumi.getter
1618
+ def uid(self) -> Optional[str]:
1619
+ """
1620
+ UID identifies exactly one incarnation of the resource.
1621
+ """
1622
+ return pulumi.get(self, "uid")
1623
+
1624
+
1625
+ @pulumi.output_type
1626
+ class ResourceClaimParameters(dict):
1627
+ """
1628
+ ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes.
1629
+ """
1630
+ @staticmethod
1631
+ def __key_warning(key: str):
1632
+ suggest = None
1633
+ if key == "apiVersion":
1634
+ suggest = "api_version"
1635
+ elif key == "driverRequests":
1636
+ suggest = "driver_requests"
1637
+ elif key == "generatedFrom":
1638
+ suggest = "generated_from"
1639
+
1640
+ if suggest:
1641
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimParameters. Access the value via the '{suggest}' property getter instead.")
1642
+
1643
+ def __getitem__(self, key: str) -> Any:
1644
+ ResourceClaimParameters.__key_warning(key)
1645
+ return super().__getitem__(key)
1646
+
1647
+ def get(self, key: str, default = None) -> Any:
1648
+ ResourceClaimParameters.__key_warning(key)
1649
+ return super().get(key, default)
1650
+
1651
+ def __init__(__self__, *,
1652
+ api_version: Optional[str] = None,
1653
+ driver_requests: Optional[Sequence['outputs.DriverRequests']] = None,
1654
+ generated_from: Optional['outputs.ResourceClaimParametersReference'] = None,
1655
+ kind: Optional[str] = None,
1656
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
1657
+ shareable: Optional[bool] = None):
1658
+ """
1659
+ ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes.
1660
+ :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1661
+ :param Sequence['DriverRequestsArgs'] driver_requests: DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests.
1662
+
1663
+ May be empty, in which case the claim can always be allocated.
1664
+ :param 'ResourceClaimParametersReferenceArgs' generated_from: If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the claim parameters when the parameter reference of the claim refers to some unknown type.
1665
+ :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1666
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1667
+ :param bool shareable: Shareable indicates whether the allocated claim is meant to be shareable by multiple consumers at the same time.
1668
+ """
1669
+ if api_version is not None:
1670
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
1671
+ if driver_requests is not None:
1672
+ pulumi.set(__self__, "driver_requests", driver_requests)
1673
+ if generated_from is not None:
1674
+ pulumi.set(__self__, "generated_from", generated_from)
1675
+ if kind is not None:
1676
+ pulumi.set(__self__, "kind", 'ResourceClaimParameters')
1677
+ if metadata is not None:
1678
+ pulumi.set(__self__, "metadata", metadata)
1679
+ if shareable is not None:
1680
+ pulumi.set(__self__, "shareable", shareable)
1681
+
1682
+ @property
1683
+ @pulumi.getter(name="apiVersion")
1684
+ def api_version(self) -> Optional[str]:
1685
+ """
1686
+ 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
1687
+ """
1688
+ return pulumi.get(self, "api_version")
1689
+
1690
+ @property
1691
+ @pulumi.getter(name="driverRequests")
1692
+ def driver_requests(self) -> Optional[Sequence['outputs.DriverRequests']]:
1693
+ """
1694
+ DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests.
1695
+
1696
+ May be empty, in which case the claim can always be allocated.
1697
+ """
1698
+ return pulumi.get(self, "driver_requests")
1699
+
1700
+ @property
1701
+ @pulumi.getter(name="generatedFrom")
1702
+ def generated_from(self) -> Optional['outputs.ResourceClaimParametersReference']:
1703
+ """
1704
+ If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the claim parameters when the parameter reference of the claim refers to some unknown type.
1705
+ """
1706
+ return pulumi.get(self, "generated_from")
1707
+
1708
+ @property
1709
+ @pulumi.getter
1710
+ def kind(self) -> Optional[str]:
1711
+ """
1712
+ 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
1713
+ """
1714
+ return pulumi.get(self, "kind")
1715
+
1716
+ @property
1717
+ @pulumi.getter
1718
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
1719
+ """
1720
+ Standard object metadata
1721
+ """
1722
+ return pulumi.get(self, "metadata")
1723
+
1724
+ @property
1725
+ @pulumi.getter
1726
+ def shareable(self) -> Optional[bool]:
1727
+ """
1728
+ Shareable indicates whether the allocated claim is meant to be shareable by multiple consumers at the same time.
1729
+ """
1730
+ return pulumi.get(self, "shareable")
1731
+
1732
+
1733
+ @pulumi.output_type
1734
+ class ResourceClaimParametersReference(dict):
1735
+ """
1736
+ ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
1737
+ """
1738
+ @staticmethod
1739
+ def __key_warning(key: str):
1740
+ suggest = None
1741
+ if key == "apiGroup":
1742
+ suggest = "api_group"
1743
+
1744
+ if suggest:
1745
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimParametersReference. Access the value via the '{suggest}' property getter instead.")
1746
+
1747
+ def __getitem__(self, key: str) -> Any:
1748
+ ResourceClaimParametersReference.__key_warning(key)
1749
+ return super().__getitem__(key)
1750
+
1751
+ def get(self, key: str, default = None) -> Any:
1752
+ ResourceClaimParametersReference.__key_warning(key)
1753
+ return super().get(key, default)
1754
+
1755
+ def __init__(__self__, *,
1756
+ kind: str,
1757
+ name: str,
1758
+ api_group: Optional[str] = None):
1759
+ """
1760
+ ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
1761
+ :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
1762
+ :param str name: Name is the name of resource being referenced.
1763
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
1764
+ """
1765
+ pulumi.set(__self__, "kind", kind)
1766
+ pulumi.set(__self__, "name", name)
1767
+ if api_group is not None:
1768
+ pulumi.set(__self__, "api_group", api_group)
1769
+
1770
+ @property
1771
+ @pulumi.getter
1772
+ def kind(self) -> str:
1773
+ """
1774
+ Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
1775
+ """
1776
+ return pulumi.get(self, "kind")
1777
+
1778
+ @property
1779
+ @pulumi.getter
1780
+ def name(self) -> str:
1781
+ """
1782
+ Name is the name of resource being referenced.
1783
+ """
1784
+ return pulumi.get(self, "name")
1785
+
1786
+ @property
1787
+ @pulumi.getter(name="apiGroup")
1788
+ def api_group(self) -> Optional[str]:
1789
+ """
1790
+ 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.
1791
+ """
1792
+ return pulumi.get(self, "api_group")
1793
+
1794
+
1795
+ @pulumi.output_type
1796
+ class ResourceClaimParametersReferencePatch(dict):
1797
+ """
1798
+ ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
1799
+ """
1800
+ @staticmethod
1801
+ def __key_warning(key: str):
1802
+ suggest = None
1803
+ if key == "apiGroup":
1804
+ suggest = "api_group"
1805
+
1806
+ if suggest:
1807
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimParametersReferencePatch. Access the value via the '{suggest}' property getter instead.")
1808
+
1809
+ def __getitem__(self, key: str) -> Any:
1810
+ ResourceClaimParametersReferencePatch.__key_warning(key)
1811
+ return super().__getitem__(key)
1812
+
1813
+ def get(self, key: str, default = None) -> Any:
1814
+ ResourceClaimParametersReferencePatch.__key_warning(key)
1815
+ return super().get(key, default)
1816
+
1817
+ def __init__(__self__, *,
1818
+ api_group: Optional[str] = None,
1819
+ kind: Optional[str] = None,
1820
+ name: Optional[str] = None):
1821
+ """
1822
+ ResourceClaimParametersReference contains enough information to let you locate the parameters for a ResourceClaim. The object must be in the same namespace as the ResourceClaim.
1823
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
1824
+ :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
1825
+ :param str name: Name is the name of resource being referenced.
1826
+ """
1827
+ if api_group is not None:
1828
+ pulumi.set(__self__, "api_group", api_group)
1829
+ if kind is not None:
1830
+ pulumi.set(__self__, "kind", kind)
1831
+ if name is not None:
1832
+ pulumi.set(__self__, "name", name)
1833
+
1834
+ @property
1835
+ @pulumi.getter(name="apiGroup")
1836
+ def api_group(self) -> Optional[str]:
1837
+ """
1838
+ 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.
1839
+ """
1840
+ return pulumi.get(self, "api_group")
1841
+
1842
+ @property
1843
+ @pulumi.getter
1844
+ def kind(self) -> Optional[str]:
1845
+ """
1846
+ Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata, for example "ConfigMap".
1847
+ """
1848
+ return pulumi.get(self, "kind")
1849
+
1850
+ @property
1851
+ @pulumi.getter
1852
+ def name(self) -> Optional[str]:
1853
+ """
1854
+ Name is the name of resource being referenced.
1855
+ """
1856
+ return pulumi.get(self, "name")
1857
+
1858
+
1859
+ @pulumi.output_type
1860
+ class ResourceClaimSchedulingStatus(dict):
1861
+ """
1862
+ ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
1863
+ """
1864
+ @staticmethod
1865
+ def __key_warning(key: str):
1866
+ suggest = None
1867
+ if key == "unsuitableNodes":
1868
+ suggest = "unsuitable_nodes"
1869
+
1870
+ if suggest:
1871
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSchedulingStatus. Access the value via the '{suggest}' property getter instead.")
1872
+
1873
+ def __getitem__(self, key: str) -> Any:
1874
+ ResourceClaimSchedulingStatus.__key_warning(key)
1875
+ return super().__getitem__(key)
1876
+
1877
+ def get(self, key: str, default = None) -> Any:
1878
+ ResourceClaimSchedulingStatus.__key_warning(key)
1879
+ return super().get(key, default)
1880
+
1881
+ def __init__(__self__, *,
1882
+ name: Optional[str] = None,
1883
+ unsuitable_nodes: Optional[Sequence[str]] = None):
1884
+ """
1885
+ ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
1886
+ :param str name: Name matches the pod.spec.resourceClaims[*].Name field.
1887
+ :param Sequence[str] unsuitable_nodes: UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
1888
+
1889
+ The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
1890
+ """
1891
+ if name is not None:
1892
+ pulumi.set(__self__, "name", name)
1893
+ if unsuitable_nodes is not None:
1894
+ pulumi.set(__self__, "unsuitable_nodes", unsuitable_nodes)
1895
+
1896
+ @property
1897
+ @pulumi.getter
1898
+ def name(self) -> Optional[str]:
1899
+ """
1900
+ Name matches the pod.spec.resourceClaims[*].Name field.
1901
+ """
1902
+ return pulumi.get(self, "name")
1903
+
1904
+ @property
1905
+ @pulumi.getter(name="unsuitableNodes")
1906
+ def unsuitable_nodes(self) -> Optional[Sequence[str]]:
1907
+ """
1908
+ UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
1909
+
1910
+ The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
1911
+ """
1912
+ return pulumi.get(self, "unsuitable_nodes")
1913
+
1914
+
1915
+ @pulumi.output_type
1916
+ class ResourceClaimSchedulingStatusPatch(dict):
1917
+ """
1918
+ ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
1919
+ """
1920
+ @staticmethod
1921
+ def __key_warning(key: str):
1922
+ suggest = None
1923
+ if key == "unsuitableNodes":
1924
+ suggest = "unsuitable_nodes"
1925
+
1926
+ if suggest:
1927
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSchedulingStatusPatch. Access the value via the '{suggest}' property getter instead.")
1928
+
1929
+ def __getitem__(self, key: str) -> Any:
1930
+ ResourceClaimSchedulingStatusPatch.__key_warning(key)
1931
+ return super().__getitem__(key)
1932
+
1933
+ def get(self, key: str, default = None) -> Any:
1934
+ ResourceClaimSchedulingStatusPatch.__key_warning(key)
1935
+ return super().get(key, default)
1936
+
1937
+ def __init__(__self__, *,
1938
+ name: Optional[str] = None,
1939
+ unsuitable_nodes: Optional[Sequence[str]] = None):
1940
+ """
1941
+ ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
1942
+ :param str name: Name matches the pod.spec.resourceClaims[*].Name field.
1943
+ :param Sequence[str] unsuitable_nodes: UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
1944
+
1945
+ The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
1946
+ """
1947
+ if name is not None:
1948
+ pulumi.set(__self__, "name", name)
1949
+ if unsuitable_nodes is not None:
1950
+ pulumi.set(__self__, "unsuitable_nodes", unsuitable_nodes)
1951
+
1952
+ @property
1953
+ @pulumi.getter
1954
+ def name(self) -> Optional[str]:
1955
+ """
1956
+ Name matches the pod.spec.resourceClaims[*].Name field.
887
1957
  """
888
1958
  return pulumi.get(self, "name")
889
1959
 
890
1960
  @property
891
- @pulumi.getter(name="unsuitableNodes")
892
- def unsuitable_nodes(self) -> Optional[Sequence[str]]:
1961
+ @pulumi.getter(name="unsuitableNodes")
1962
+ def unsuitable_nodes(self) -> Optional[Sequence[str]]:
1963
+ """
1964
+ UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
1965
+
1966
+ The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
1967
+ """
1968
+ return pulumi.get(self, "unsuitable_nodes")
1969
+
1970
+
1971
+ @pulumi.output_type
1972
+ class ResourceClaimSpec(dict):
1973
+ """
1974
+ ResourceClaimSpec defines how a resource is to be allocated.
1975
+ """
1976
+ @staticmethod
1977
+ def __key_warning(key: str):
1978
+ suggest = None
1979
+ if key == "resourceClassName":
1980
+ suggest = "resource_class_name"
1981
+ elif key == "allocationMode":
1982
+ suggest = "allocation_mode"
1983
+ elif key == "parametersRef":
1984
+ suggest = "parameters_ref"
1985
+
1986
+ if suggest:
1987
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSpec. Access the value via the '{suggest}' property getter instead.")
1988
+
1989
+ def __getitem__(self, key: str) -> Any:
1990
+ ResourceClaimSpec.__key_warning(key)
1991
+ return super().__getitem__(key)
1992
+
1993
+ def get(self, key: str, default = None) -> Any:
1994
+ ResourceClaimSpec.__key_warning(key)
1995
+ return super().get(key, default)
1996
+
1997
+ def __init__(__self__, *,
1998
+ resource_class_name: str,
1999
+ allocation_mode: Optional[str] = None,
2000
+ parameters_ref: Optional['outputs.ResourceClaimParametersReference'] = None):
2001
+ """
2002
+ ResourceClaimSpec defines how a resource is to be allocated.
2003
+ :param str resource_class_name: ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
2004
+ :param str allocation_mode: Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
2005
+ :param 'ResourceClaimParametersReferenceArgs' parameters_ref: ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
2006
+
2007
+ The object must be in the same namespace as the ResourceClaim.
2008
+ """
2009
+ pulumi.set(__self__, "resource_class_name", resource_class_name)
2010
+ if allocation_mode is not None:
2011
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
2012
+ if parameters_ref is not None:
2013
+ pulumi.set(__self__, "parameters_ref", parameters_ref)
2014
+
2015
+ @property
2016
+ @pulumi.getter(name="resourceClassName")
2017
+ def resource_class_name(self) -> str:
2018
+ """
2019
+ ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
2020
+ """
2021
+ return pulumi.get(self, "resource_class_name")
2022
+
2023
+ @property
2024
+ @pulumi.getter(name="allocationMode")
2025
+ def allocation_mode(self) -> Optional[str]:
2026
+ """
2027
+ Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
2028
+ """
2029
+ return pulumi.get(self, "allocation_mode")
2030
+
2031
+ @property
2032
+ @pulumi.getter(name="parametersRef")
2033
+ def parameters_ref(self) -> Optional['outputs.ResourceClaimParametersReference']:
2034
+ """
2035
+ ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
2036
+
2037
+ The object must be in the same namespace as the ResourceClaim.
2038
+ """
2039
+ return pulumi.get(self, "parameters_ref")
2040
+
2041
+
2042
+ @pulumi.output_type
2043
+ class ResourceClaimSpecPatch(dict):
2044
+ """
2045
+ ResourceClaimSpec defines how a resource is to be allocated.
2046
+ """
2047
+ @staticmethod
2048
+ def __key_warning(key: str):
2049
+ suggest = None
2050
+ if key == "allocationMode":
2051
+ suggest = "allocation_mode"
2052
+ elif key == "parametersRef":
2053
+ suggest = "parameters_ref"
2054
+ elif key == "resourceClassName":
2055
+ suggest = "resource_class_name"
2056
+
2057
+ if suggest:
2058
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSpecPatch. Access the value via the '{suggest}' property getter instead.")
2059
+
2060
+ def __getitem__(self, key: str) -> Any:
2061
+ ResourceClaimSpecPatch.__key_warning(key)
2062
+ return super().__getitem__(key)
2063
+
2064
+ def get(self, key: str, default = None) -> Any:
2065
+ ResourceClaimSpecPatch.__key_warning(key)
2066
+ return super().get(key, default)
2067
+
2068
+ def __init__(__self__, *,
2069
+ allocation_mode: Optional[str] = None,
2070
+ parameters_ref: Optional['outputs.ResourceClaimParametersReferencePatch'] = None,
2071
+ resource_class_name: Optional[str] = None):
2072
+ """
2073
+ ResourceClaimSpec defines how a resource is to be allocated.
2074
+ :param str allocation_mode: Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
2075
+ :param 'ResourceClaimParametersReferencePatchArgs' parameters_ref: ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
2076
+
2077
+ The object must be in the same namespace as the ResourceClaim.
2078
+ :param str resource_class_name: ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
2079
+ """
2080
+ if allocation_mode is not None:
2081
+ pulumi.set(__self__, "allocation_mode", allocation_mode)
2082
+ if parameters_ref is not None:
2083
+ pulumi.set(__self__, "parameters_ref", parameters_ref)
2084
+ if resource_class_name is not None:
2085
+ pulumi.set(__self__, "resource_class_name", resource_class_name)
2086
+
2087
+ @property
2088
+ @pulumi.getter(name="allocationMode")
2089
+ def allocation_mode(self) -> Optional[str]:
2090
+ """
2091
+ Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
2092
+ """
2093
+ return pulumi.get(self, "allocation_mode")
2094
+
2095
+ @property
2096
+ @pulumi.getter(name="parametersRef")
2097
+ def parameters_ref(self) -> Optional['outputs.ResourceClaimParametersReferencePatch']:
2098
+ """
2099
+ ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
2100
+
2101
+ The object must be in the same namespace as the ResourceClaim.
2102
+ """
2103
+ return pulumi.get(self, "parameters_ref")
2104
+
2105
+ @property
2106
+ @pulumi.getter(name="resourceClassName")
2107
+ def resource_class_name(self) -> Optional[str]:
2108
+ """
2109
+ ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
2110
+ """
2111
+ return pulumi.get(self, "resource_class_name")
2112
+
2113
+
2114
+ @pulumi.output_type
2115
+ class ResourceClaimStatus(dict):
2116
+ """
2117
+ ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
2118
+ """
2119
+ @staticmethod
2120
+ def __key_warning(key: str):
2121
+ suggest = None
2122
+ if key == "deallocationRequested":
2123
+ suggest = "deallocation_requested"
2124
+ elif key == "driverName":
2125
+ suggest = "driver_name"
2126
+ elif key == "reservedFor":
2127
+ suggest = "reserved_for"
2128
+
2129
+ if suggest:
2130
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatus. Access the value via the '{suggest}' property getter instead.")
2131
+
2132
+ def __getitem__(self, key: str) -> Any:
2133
+ ResourceClaimStatus.__key_warning(key)
2134
+ return super().__getitem__(key)
2135
+
2136
+ def get(self, key: str, default = None) -> Any:
2137
+ ResourceClaimStatus.__key_warning(key)
2138
+ return super().get(key, default)
2139
+
2140
+ def __init__(__self__, *,
2141
+ allocation: Optional['outputs.AllocationResult'] = None,
2142
+ deallocation_requested: Optional[bool] = None,
2143
+ driver_name: Optional[str] = None,
2144
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
2145
+ """
2146
+ ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
2147
+ :param 'AllocationResultArgs' allocation: Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
2148
+ :param bool deallocation_requested: DeallocationRequested indicates that a ResourceClaim is to be deallocated.
2149
+
2150
+ The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2151
+
2152
+ While DeallocationRequested is set, no new consumers may be added to ReservedFor.
2153
+ :param str driver_name: DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
2154
+ :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.
2155
+
2156
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2157
+ """
2158
+ if allocation is not None:
2159
+ pulumi.set(__self__, "allocation", allocation)
2160
+ if deallocation_requested is not None:
2161
+ pulumi.set(__self__, "deallocation_requested", deallocation_requested)
2162
+ if driver_name is not None:
2163
+ pulumi.set(__self__, "driver_name", driver_name)
2164
+ if reserved_for is not None:
2165
+ pulumi.set(__self__, "reserved_for", reserved_for)
2166
+
2167
+ @property
2168
+ @pulumi.getter
2169
+ def allocation(self) -> Optional['outputs.AllocationResult']:
2170
+ """
2171
+ Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
2172
+ """
2173
+ return pulumi.get(self, "allocation")
2174
+
2175
+ @property
2176
+ @pulumi.getter(name="deallocationRequested")
2177
+ def deallocation_requested(self) -> Optional[bool]:
2178
+ """
2179
+ DeallocationRequested indicates that a ResourceClaim is to be deallocated.
2180
+
2181
+ The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2182
+
2183
+ While DeallocationRequested is set, no new consumers may be added to ReservedFor.
2184
+ """
2185
+ return pulumi.get(self, "deallocation_requested")
2186
+
2187
+ @property
2188
+ @pulumi.getter(name="driverName")
2189
+ def driver_name(self) -> Optional[str]:
2190
+ """
2191
+ DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
2192
+ """
2193
+ return pulumi.get(self, "driver_name")
2194
+
2195
+ @property
2196
+ @pulumi.getter(name="reservedFor")
2197
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
2198
+ """
2199
+ 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.
2200
+
2201
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2202
+ """
2203
+ return pulumi.get(self, "reserved_for")
2204
+
2205
+
2206
+ @pulumi.output_type
2207
+ class ResourceClaimStatusPatch(dict):
2208
+ """
2209
+ ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
2210
+ """
2211
+ @staticmethod
2212
+ def __key_warning(key: str):
2213
+ suggest = None
2214
+ if key == "deallocationRequested":
2215
+ suggest = "deallocation_requested"
2216
+ elif key == "driverName":
2217
+ suggest = "driver_name"
2218
+ elif key == "reservedFor":
2219
+ suggest = "reserved_for"
2220
+
2221
+ if suggest:
2222
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatusPatch. Access the value via the '{suggest}' property getter instead.")
2223
+
2224
+ def __getitem__(self, key: str) -> Any:
2225
+ ResourceClaimStatusPatch.__key_warning(key)
2226
+ return super().__getitem__(key)
2227
+
2228
+ def get(self, key: str, default = None) -> Any:
2229
+ ResourceClaimStatusPatch.__key_warning(key)
2230
+ return super().get(key, default)
2231
+
2232
+ def __init__(__self__, *,
2233
+ allocation: Optional['outputs.AllocationResultPatch'] = None,
2234
+ deallocation_requested: Optional[bool] = None,
2235
+ driver_name: Optional[str] = None,
2236
+ reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
2237
+ """
2238
+ ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
2239
+ :param 'AllocationResultPatchArgs' allocation: Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
2240
+ :param bool deallocation_requested: DeallocationRequested indicates that a ResourceClaim is to be deallocated.
2241
+
2242
+ The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2243
+
2244
+ While DeallocationRequested is set, no new consumers may be added to ReservedFor.
2245
+ :param str driver_name: DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
2246
+ :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.
2247
+
2248
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2249
+ """
2250
+ if allocation is not None:
2251
+ pulumi.set(__self__, "allocation", allocation)
2252
+ if deallocation_requested is not None:
2253
+ pulumi.set(__self__, "deallocation_requested", deallocation_requested)
2254
+ if driver_name is not None:
2255
+ pulumi.set(__self__, "driver_name", driver_name)
2256
+ if reserved_for is not None:
2257
+ pulumi.set(__self__, "reserved_for", reserved_for)
2258
+
2259
+ @property
2260
+ @pulumi.getter
2261
+ def allocation(self) -> Optional['outputs.AllocationResultPatch']:
2262
+ """
2263
+ Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
2264
+ """
2265
+ return pulumi.get(self, "allocation")
2266
+
2267
+ @property
2268
+ @pulumi.getter(name="deallocationRequested")
2269
+ def deallocation_requested(self) -> Optional[bool]:
2270
+ """
2271
+ DeallocationRequested indicates that a ResourceClaim is to be deallocated.
2272
+
2273
+ The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2274
+
2275
+ While DeallocationRequested is set, no new consumers may be added to ReservedFor.
2276
+ """
2277
+ return pulumi.get(self, "deallocation_requested")
2278
+
2279
+ @property
2280
+ @pulumi.getter(name="driverName")
2281
+ def driver_name(self) -> Optional[str]:
2282
+ """
2283
+ DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
2284
+ """
2285
+ return pulumi.get(self, "driver_name")
2286
+
2287
+ @property
2288
+ @pulumi.getter(name="reservedFor")
2289
+ def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
2290
+ """
2291
+ 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.
2292
+
2293
+ There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2294
+ """
2295
+ return pulumi.get(self, "reserved_for")
2296
+
2297
+
2298
+ @pulumi.output_type
2299
+ class ResourceClaimTemplate(dict):
2300
+ """
2301
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
2302
+ """
2303
+ @staticmethod
2304
+ def __key_warning(key: str):
2305
+ suggest = None
2306
+ if key == "apiVersion":
2307
+ suggest = "api_version"
2308
+
2309
+ if suggest:
2310
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClaimTemplate. Access the value via the '{suggest}' property getter instead.")
2311
+
2312
+ def __getitem__(self, key: str) -> Any:
2313
+ ResourceClaimTemplate.__key_warning(key)
2314
+ return super().__getitem__(key)
2315
+
2316
+ def get(self, key: str, default = None) -> Any:
2317
+ ResourceClaimTemplate.__key_warning(key)
2318
+ return super().get(key, default)
2319
+
2320
+ def __init__(__self__, *,
2321
+ spec: 'outputs.ResourceClaimTemplateSpec',
2322
+ api_version: Optional[str] = None,
2323
+ kind: Optional[str] = None,
2324
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
2325
+ """
2326
+ ResourceClaimTemplate is used to produce ResourceClaim objects.
2327
+ :param 'ResourceClaimTemplateSpecArgs' spec: Describes the ResourceClaim that is to be generated.
2328
+
2329
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
2330
+ :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2331
+ :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2332
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
2333
+ """
2334
+ pulumi.set(__self__, "spec", spec)
2335
+ if api_version is not None:
2336
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
2337
+ if kind is not None:
2338
+ pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
2339
+ if metadata is not None:
2340
+ pulumi.set(__self__, "metadata", metadata)
2341
+
2342
+ @property
2343
+ @pulumi.getter
2344
+ def spec(self) -> 'outputs.ResourceClaimTemplateSpec':
2345
+ """
2346
+ Describes the ResourceClaim that is to be generated.
2347
+
2348
+ This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
2349
+ """
2350
+ return pulumi.get(self, "spec")
2351
+
2352
+ @property
2353
+ @pulumi.getter(name="apiVersion")
2354
+ def api_version(self) -> Optional[str]:
2355
+ """
2356
+ 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
2357
+ """
2358
+ return pulumi.get(self, "api_version")
2359
+
2360
+ @property
2361
+ @pulumi.getter
2362
+ def kind(self) -> Optional[str]:
2363
+ """
2364
+ 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
2365
+ """
2366
+ return pulumi.get(self, "kind")
2367
+
2368
+ @property
2369
+ @pulumi.getter
2370
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2371
+ """
2372
+ Standard object metadata
2373
+ """
2374
+ return pulumi.get(self, "metadata")
2375
+
2376
+
2377
+ @pulumi.output_type
2378
+ class ResourceClaimTemplateSpec(dict):
2379
+ """
2380
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2381
+ """
2382
+ def __init__(__self__, *,
2383
+ spec: 'outputs.ResourceClaimSpec',
2384
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
2385
+ """
2386
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2387
+ :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.
2388
+ :param '_meta.v1.ObjectMetaArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
2389
+ """
2390
+ pulumi.set(__self__, "spec", spec)
2391
+ if metadata is not None:
2392
+ pulumi.set(__self__, "metadata", metadata)
2393
+
2394
+ @property
2395
+ @pulumi.getter
2396
+ def spec(self) -> 'outputs.ResourceClaimSpec':
2397
+ """
2398
+ 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.
2399
+ """
2400
+ return pulumi.get(self, "spec")
2401
+
2402
+ @property
2403
+ @pulumi.getter
2404
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2405
+ """
2406
+ ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
2407
+ """
2408
+ return pulumi.get(self, "metadata")
2409
+
2410
+
2411
+ @pulumi.output_type
2412
+ class ResourceClaimTemplateSpecPatch(dict):
2413
+ """
2414
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2415
+ """
2416
+ def __init__(__self__, *,
2417
+ metadata: Optional['_meta.v1.outputs.ObjectMetaPatch'] = None,
2418
+ spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
2419
+ """
2420
+ ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
2421
+ :param '_meta.v1.ObjectMetaPatchArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
2422
+ :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.
2423
+ """
2424
+ if metadata is not None:
2425
+ pulumi.set(__self__, "metadata", metadata)
2426
+ if spec is not None:
2427
+ pulumi.set(__self__, "spec", spec)
2428
+
2429
+ @property
2430
+ @pulumi.getter
2431
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
2432
+ """
2433
+ ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
2434
+ """
2435
+ return pulumi.get(self, "metadata")
2436
+
2437
+ @property
2438
+ @pulumi.getter
2439
+ def spec(self) -> Optional['outputs.ResourceClaimSpecPatch']:
2440
+ """
2441
+ 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.
2442
+ """
2443
+ return pulumi.get(self, "spec")
2444
+
2445
+
2446
+ @pulumi.output_type
2447
+ class ResourceClass(dict):
2448
+ """
2449
+ ResourceClass is used by administrators to influence how resources are allocated.
2450
+
2451
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2452
+ """
2453
+ @staticmethod
2454
+ def __key_warning(key: str):
2455
+ suggest = None
2456
+ if key == "driverName":
2457
+ suggest = "driver_name"
2458
+ elif key == "apiVersion":
2459
+ suggest = "api_version"
2460
+ elif key == "parametersRef":
2461
+ suggest = "parameters_ref"
2462
+ elif key == "structuredParameters":
2463
+ suggest = "structured_parameters"
2464
+ elif key == "suitableNodes":
2465
+ suggest = "suitable_nodes"
2466
+
2467
+ if suggest:
2468
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClass. Access the value via the '{suggest}' property getter instead.")
2469
+
2470
+ def __getitem__(self, key: str) -> Any:
2471
+ ResourceClass.__key_warning(key)
2472
+ return super().__getitem__(key)
2473
+
2474
+ def get(self, key: str, default = None) -> Any:
2475
+ ResourceClass.__key_warning(key)
2476
+ return super().get(key, default)
2477
+
2478
+ def __init__(__self__, *,
2479
+ driver_name: str,
2480
+ api_version: Optional[str] = None,
2481
+ kind: Optional[str] = None,
2482
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
2483
+ parameters_ref: Optional['outputs.ResourceClassParametersReference'] = None,
2484
+ structured_parameters: Optional[bool] = None,
2485
+ suitable_nodes: Optional['_core.v1.outputs.NodeSelector'] = None):
2486
+ """
2487
+ ResourceClass is used by administrators to influence how resources are allocated.
2488
+
2489
+ This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
2490
+ :param str driver_name: DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.
2491
+
2492
+ Resource drivers have a unique name in forward domain order (acme.example.com).
2493
+ :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2494
+ :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2495
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
2496
+ :param 'ResourceClassParametersReferenceArgs' parameters_ref: ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.
2497
+ :param bool structured_parameters: If and only if allocation of claims using this class is handled via structured parameters, then StructuredParameters must be set to true.
2498
+ :param '_core.v1.NodeSelectorArgs' suitable_nodes: Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.
2499
+
2500
+ Setting this field is optional. If null, all nodes are candidates.
2501
+ """
2502
+ pulumi.set(__self__, "driver_name", driver_name)
2503
+ if api_version is not None:
2504
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
2505
+ if kind is not None:
2506
+ pulumi.set(__self__, "kind", 'ResourceClass')
2507
+ if metadata is not None:
2508
+ pulumi.set(__self__, "metadata", metadata)
2509
+ if parameters_ref is not None:
2510
+ pulumi.set(__self__, "parameters_ref", parameters_ref)
2511
+ if structured_parameters is not None:
2512
+ pulumi.set(__self__, "structured_parameters", structured_parameters)
2513
+ if suitable_nodes is not None:
2514
+ pulumi.set(__self__, "suitable_nodes", suitable_nodes)
2515
+
2516
+ @property
2517
+ @pulumi.getter(name="driverName")
2518
+ def driver_name(self) -> str:
893
2519
  """
894
- UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
2520
+ DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.
895
2521
 
896
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
2522
+ Resource drivers have a unique name in forward domain order (acme.example.com).
897
2523
  """
898
- return pulumi.get(self, "unsuitable_nodes")
2524
+ return pulumi.get(self, "driver_name")
2525
+
2526
+ @property
2527
+ @pulumi.getter(name="apiVersion")
2528
+ def api_version(self) -> Optional[str]:
2529
+ """
2530
+ 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
2531
+ """
2532
+ return pulumi.get(self, "api_version")
2533
+
2534
+ @property
2535
+ @pulumi.getter
2536
+ def kind(self) -> Optional[str]:
2537
+ """
2538
+ 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
2539
+ """
2540
+ return pulumi.get(self, "kind")
2541
+
2542
+ @property
2543
+ @pulumi.getter
2544
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2545
+ """
2546
+ Standard object metadata
2547
+ """
2548
+ return pulumi.get(self, "metadata")
2549
+
2550
+ @property
2551
+ @pulumi.getter(name="parametersRef")
2552
+ def parameters_ref(self) -> Optional['outputs.ResourceClassParametersReference']:
2553
+ """
2554
+ ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.
2555
+ """
2556
+ return pulumi.get(self, "parameters_ref")
2557
+
2558
+ @property
2559
+ @pulumi.getter(name="structuredParameters")
2560
+ def structured_parameters(self) -> Optional[bool]:
2561
+ """
2562
+ If and only if allocation of claims using this class is handled via structured parameters, then StructuredParameters must be set to true.
2563
+ """
2564
+ return pulumi.get(self, "structured_parameters")
2565
+
2566
+ @property
2567
+ @pulumi.getter(name="suitableNodes")
2568
+ def suitable_nodes(self) -> Optional['_core.v1.outputs.NodeSelector']:
2569
+ """
2570
+ Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.
2571
+
2572
+ Setting this field is optional. If null, all nodes are candidates.
2573
+ """
2574
+ return pulumi.get(self, "suitable_nodes")
899
2575
 
900
2576
 
901
2577
  @pulumi.output_type
902
- class ResourceClaimSchedulingStatusPatch(dict):
2578
+ class ResourceClassParameters(dict):
903
2579
  """
904
- ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
2580
+ ResourceClassParameters defines resource requests for a ResourceClass in an in-tree format understood by Kubernetes.
905
2581
  """
906
2582
  @staticmethod
907
2583
  def __key_warning(key: str):
908
2584
  suggest = None
909
- if key == "unsuitableNodes":
910
- suggest = "unsuitable_nodes"
2585
+ if key == "apiVersion":
2586
+ suggest = "api_version"
2587
+ elif key == "generatedFrom":
2588
+ suggest = "generated_from"
2589
+ elif key == "vendorParameters":
2590
+ suggest = "vendor_parameters"
911
2591
 
912
2592
  if suggest:
913
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSchedulingStatusPatch. Access the value via the '{suggest}' property getter instead.")
2593
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClassParameters. Access the value via the '{suggest}' property getter instead.")
914
2594
 
915
2595
  def __getitem__(self, key: str) -> Any:
916
- ResourceClaimSchedulingStatusPatch.__key_warning(key)
2596
+ ResourceClassParameters.__key_warning(key)
917
2597
  return super().__getitem__(key)
918
2598
 
919
2599
  def get(self, key: str, default = None) -> Any:
920
- ResourceClaimSchedulingStatusPatch.__key_warning(key)
2600
+ ResourceClassParameters.__key_warning(key)
921
2601
  return super().get(key, default)
922
2602
 
923
2603
  def __init__(__self__, *,
924
- name: Optional[str] = None,
925
- unsuitable_nodes: Optional[Sequence[str]] = None):
2604
+ api_version: Optional[str] = None,
2605
+ filters: Optional[Sequence['outputs.ResourceFilter']] = None,
2606
+ generated_from: Optional['outputs.ResourceClassParametersReference'] = None,
2607
+ kind: Optional[str] = None,
2608
+ metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
2609
+ vendor_parameters: Optional[Sequence['outputs.VendorParameters']] = None):
926
2610
  """
927
- ResourceClaimSchedulingStatus contains information about one particular ResourceClaim with "WaitForFirstConsumer" allocation mode.
928
- :param str name: Name matches the pod.spec.resourceClaims[*].Name field.
929
- :param Sequence[str] unsuitable_nodes: UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
930
-
931
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
2611
+ ResourceClassParameters defines resource requests for a ResourceClass in an in-tree format understood by Kubernetes.
2612
+ :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
2613
+ :param Sequence['ResourceFilterArgs'] filters: Filters describes additional contraints that must be met when using the class.
2614
+ :param 'ResourceClassParametersReferenceArgs' generated_from: If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the class parameters when the parameter reference of the class refers to some unknown type.
2615
+ :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
2616
+ :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
2617
+ :param Sequence['VendorParametersArgs'] vendor_parameters: VendorParameters are arbitrary setup parameters for all claims using this class. They are ignored while allocating the claim. There must not be more than one entry per driver.
932
2618
  """
933
- if name is not None:
934
- pulumi.set(__self__, "name", name)
935
- if unsuitable_nodes is not None:
936
- pulumi.set(__self__, "unsuitable_nodes", unsuitable_nodes)
2619
+ if api_version is not None:
2620
+ pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
2621
+ if filters is not None:
2622
+ pulumi.set(__self__, "filters", filters)
2623
+ if generated_from is not None:
2624
+ pulumi.set(__self__, "generated_from", generated_from)
2625
+ if kind is not None:
2626
+ pulumi.set(__self__, "kind", 'ResourceClassParameters')
2627
+ if metadata is not None:
2628
+ pulumi.set(__self__, "metadata", metadata)
2629
+ if vendor_parameters is not None:
2630
+ pulumi.set(__self__, "vendor_parameters", vendor_parameters)
2631
+
2632
+ @property
2633
+ @pulumi.getter(name="apiVersion")
2634
+ def api_version(self) -> Optional[str]:
2635
+ """
2636
+ 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
2637
+ """
2638
+ return pulumi.get(self, "api_version")
937
2639
 
938
2640
  @property
939
2641
  @pulumi.getter
940
- def name(self) -> Optional[str]:
2642
+ def filters(self) -> Optional[Sequence['outputs.ResourceFilter']]:
941
2643
  """
942
- Name matches the pod.spec.resourceClaims[*].Name field.
2644
+ Filters describes additional contraints that must be met when using the class.
2645
+ """
2646
+ return pulumi.get(self, "filters")
2647
+
2648
+ @property
2649
+ @pulumi.getter(name="generatedFrom")
2650
+ def generated_from(self) -> Optional['outputs.ResourceClassParametersReference']:
2651
+ """
2652
+ If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the class parameters when the parameter reference of the class refers to some unknown type.
2653
+ """
2654
+ return pulumi.get(self, "generated_from")
2655
+
2656
+ @property
2657
+ @pulumi.getter
2658
+ def kind(self) -> Optional[str]:
2659
+ """
2660
+ 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
2661
+ """
2662
+ return pulumi.get(self, "kind")
2663
+
2664
+ @property
2665
+ @pulumi.getter
2666
+ def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
2667
+ """
2668
+ Standard object metadata
2669
+ """
2670
+ return pulumi.get(self, "metadata")
2671
+
2672
+ @property
2673
+ @pulumi.getter(name="vendorParameters")
2674
+ def vendor_parameters(self) -> Optional[Sequence['outputs.VendorParameters']]:
2675
+ """
2676
+ VendorParameters are arbitrary setup parameters for all claims using this class. They are ignored while allocating the claim. There must not be more than one entry per driver.
2677
+ """
2678
+ return pulumi.get(self, "vendor_parameters")
2679
+
2680
+
2681
+ @pulumi.output_type
2682
+ class ResourceClassParametersReference(dict):
2683
+ """
2684
+ ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
2685
+ """
2686
+ @staticmethod
2687
+ def __key_warning(key: str):
2688
+ suggest = None
2689
+ if key == "apiGroup":
2690
+ suggest = "api_group"
2691
+
2692
+ if suggest:
2693
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClassParametersReference. Access the value via the '{suggest}' property getter instead.")
2694
+
2695
+ def __getitem__(self, key: str) -> Any:
2696
+ ResourceClassParametersReference.__key_warning(key)
2697
+ return super().__getitem__(key)
2698
+
2699
+ def get(self, key: str, default = None) -> Any:
2700
+ ResourceClassParametersReference.__key_warning(key)
2701
+ return super().get(key, default)
2702
+
2703
+ def __init__(__self__, *,
2704
+ kind: str,
2705
+ name: str,
2706
+ api_group: Optional[str] = None,
2707
+ namespace: Optional[str] = None):
2708
+ """
2709
+ ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
2710
+ :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
2711
+ :param str name: Name is the name of resource being referenced.
2712
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2713
+ :param str namespace: Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
2714
+ """
2715
+ pulumi.set(__self__, "kind", kind)
2716
+ pulumi.set(__self__, "name", name)
2717
+ if api_group is not None:
2718
+ pulumi.set(__self__, "api_group", api_group)
2719
+ if namespace is not None:
2720
+ pulumi.set(__self__, "namespace", namespace)
2721
+
2722
+ @property
2723
+ @pulumi.getter
2724
+ def kind(self) -> str:
2725
+ """
2726
+ Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
2727
+ """
2728
+ return pulumi.get(self, "kind")
2729
+
2730
+ @property
2731
+ @pulumi.getter
2732
+ def name(self) -> str:
2733
+ """
2734
+ Name is the name of resource being referenced.
943
2735
  """
944
2736
  return pulumi.get(self, "name")
945
2737
 
946
2738
  @property
947
- @pulumi.getter(name="unsuitableNodes")
948
- def unsuitable_nodes(self) -> Optional[Sequence[str]]:
2739
+ @pulumi.getter(name="apiGroup")
2740
+ def api_group(self) -> Optional[str]:
949
2741
  """
950
- UnsuitableNodes lists nodes that the ResourceClaim cannot be allocated for.
2742
+ 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.
2743
+ """
2744
+ return pulumi.get(self, "api_group")
951
2745
 
952
- The size of this field is limited to 128, the same as for PodSchedulingSpec.PotentialNodes. This may get increased in the future, but not reduced.
2746
+ @property
2747
+ @pulumi.getter
2748
+ def namespace(self) -> Optional[str]:
953
2749
  """
954
- return pulumi.get(self, "unsuitable_nodes")
2750
+ Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
2751
+ """
2752
+ return pulumi.get(self, "namespace")
955
2753
 
956
2754
 
957
2755
  @pulumi.output_type
958
- class ResourceClaimSpec(dict):
2756
+ class ResourceClassParametersReferencePatch(dict):
959
2757
  """
960
- ResourceClaimSpec defines how a resource is to be allocated.
2758
+ ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
961
2759
  """
962
2760
  @staticmethod
963
2761
  def __key_warning(key: str):
964
2762
  suggest = None
965
- if key == "resourceClassName":
966
- suggest = "resource_class_name"
967
- elif key == "allocationMode":
968
- suggest = "allocation_mode"
969
- elif key == "parametersRef":
970
- suggest = "parameters_ref"
2763
+ if key == "apiGroup":
2764
+ suggest = "api_group"
971
2765
 
972
2766
  if suggest:
973
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSpec. Access the value via the '{suggest}' property getter instead.")
2767
+ pulumi.log.warn(f"Key '{key}' not found in ResourceClassParametersReferencePatch. Access the value via the '{suggest}' property getter instead.")
974
2768
 
975
2769
  def __getitem__(self, key: str) -> Any:
976
- ResourceClaimSpec.__key_warning(key)
2770
+ ResourceClassParametersReferencePatch.__key_warning(key)
977
2771
  return super().__getitem__(key)
978
2772
 
979
2773
  def get(self, key: str, default = None) -> Any:
980
- ResourceClaimSpec.__key_warning(key)
2774
+ ResourceClassParametersReferencePatch.__key_warning(key)
981
2775
  return super().get(key, default)
982
2776
 
983
2777
  def __init__(__self__, *,
984
- resource_class_name: str,
985
- allocation_mode: Optional[str] = None,
986
- parameters_ref: Optional['outputs.ResourceClaimParametersReference'] = None):
2778
+ api_group: Optional[str] = None,
2779
+ kind: Optional[str] = None,
2780
+ name: Optional[str] = None,
2781
+ namespace: Optional[str] = None):
987
2782
  """
988
- ResourceClaimSpec defines how a resource is to be allocated.
989
- :param str resource_class_name: ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
990
- :param str allocation_mode: Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
991
- :param 'ResourceClaimParametersReferenceArgs' parameters_ref: ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
992
-
993
- The object must be in the same namespace as the ResourceClaim.
2783
+ ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
2784
+ :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
2785
+ :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
2786
+ :param str name: Name is the name of resource being referenced.
2787
+ :param str namespace: Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
994
2788
  """
995
- pulumi.set(__self__, "resource_class_name", resource_class_name)
996
- if allocation_mode is not None:
997
- pulumi.set(__self__, "allocation_mode", allocation_mode)
998
- if parameters_ref is not None:
999
- pulumi.set(__self__, "parameters_ref", parameters_ref)
2789
+ if api_group is not None:
2790
+ pulumi.set(__self__, "api_group", api_group)
2791
+ if kind is not None:
2792
+ pulumi.set(__self__, "kind", kind)
2793
+ if name is not None:
2794
+ pulumi.set(__self__, "name", name)
2795
+ if namespace is not None:
2796
+ pulumi.set(__self__, "namespace", namespace)
2797
+
2798
+ @property
2799
+ @pulumi.getter(name="apiGroup")
2800
+ def api_group(self) -> Optional[str]:
2801
+ """
2802
+ 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.
2803
+ """
2804
+ return pulumi.get(self, "api_group")
1000
2805
 
1001
2806
  @property
1002
- @pulumi.getter(name="resourceClassName")
1003
- def resource_class_name(self) -> str:
2807
+ @pulumi.getter
2808
+ def kind(self) -> Optional[str]:
1004
2809
  """
1005
- ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
2810
+ Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
1006
2811
  """
1007
- return pulumi.get(self, "resource_class_name")
2812
+ return pulumi.get(self, "kind")
1008
2813
 
1009
2814
  @property
1010
- @pulumi.getter(name="allocationMode")
1011
- def allocation_mode(self) -> Optional[str]:
2815
+ @pulumi.getter
2816
+ def name(self) -> Optional[str]:
1012
2817
  """
1013
- Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
2818
+ Name is the name of resource being referenced.
1014
2819
  """
1015
- return pulumi.get(self, "allocation_mode")
2820
+ return pulumi.get(self, "name")
1016
2821
 
1017
2822
  @property
1018
- @pulumi.getter(name="parametersRef")
1019
- def parameters_ref(self) -> Optional['outputs.ResourceClaimParametersReference']:
2823
+ @pulumi.getter
2824
+ def namespace(self) -> Optional[str]:
1020
2825
  """
1021
- ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
1022
-
1023
- The object must be in the same namespace as the ResourceClaim.
2826
+ Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
1024
2827
  """
1025
- return pulumi.get(self, "parameters_ref")
2828
+ return pulumi.get(self, "namespace")
1026
2829
 
1027
2830
 
1028
2831
  @pulumi.output_type
1029
- class ResourceClaimSpecPatch(dict):
2832
+ class ResourceFilter(dict):
1030
2833
  """
1031
- ResourceClaimSpec defines how a resource is to be allocated.
2834
+ ResourceFilter is a filter for resources from one particular driver.
1032
2835
  """
1033
2836
  @staticmethod
1034
2837
  def __key_warning(key: str):
1035
2838
  suggest = None
1036
- if key == "allocationMode":
1037
- suggest = "allocation_mode"
1038
- elif key == "parametersRef":
1039
- suggest = "parameters_ref"
1040
- elif key == "resourceClassName":
1041
- suggest = "resource_class_name"
2839
+ if key == "driverName":
2840
+ suggest = "driver_name"
2841
+ elif key == "namedResources":
2842
+ suggest = "named_resources"
1042
2843
 
1043
2844
  if suggest:
1044
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimSpecPatch. Access the value via the '{suggest}' property getter instead.")
2845
+ pulumi.log.warn(f"Key '{key}' not found in ResourceFilter. Access the value via the '{suggest}' property getter instead.")
1045
2846
 
1046
2847
  def __getitem__(self, key: str) -> Any:
1047
- ResourceClaimSpecPatch.__key_warning(key)
2848
+ ResourceFilter.__key_warning(key)
1048
2849
  return super().__getitem__(key)
1049
2850
 
1050
2851
  def get(self, key: str, default = None) -> Any:
1051
- ResourceClaimSpecPatch.__key_warning(key)
2852
+ ResourceFilter.__key_warning(key)
1052
2853
  return super().get(key, default)
1053
2854
 
1054
2855
  def __init__(__self__, *,
1055
- allocation_mode: Optional[str] = None,
1056
- parameters_ref: Optional['outputs.ResourceClaimParametersReferencePatch'] = None,
1057
- resource_class_name: Optional[str] = None):
1058
- """
1059
- ResourceClaimSpec defines how a resource is to be allocated.
1060
- :param str allocation_mode: Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
1061
- :param 'ResourceClaimParametersReferencePatchArgs' parameters_ref: ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
1062
-
1063
- The object must be in the same namespace as the ResourceClaim.
1064
- :param str resource_class_name: ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
1065
- """
1066
- if allocation_mode is not None:
1067
- pulumi.set(__self__, "allocation_mode", allocation_mode)
1068
- if parameters_ref is not None:
1069
- pulumi.set(__self__, "parameters_ref", parameters_ref)
1070
- if resource_class_name is not None:
1071
- pulumi.set(__self__, "resource_class_name", resource_class_name)
1072
-
1073
- @property
1074
- @pulumi.getter(name="allocationMode")
1075
- def allocation_mode(self) -> Optional[str]:
2856
+ driver_name: Optional[str] = None,
2857
+ named_resources: Optional['outputs.NamedResourcesFilter'] = None):
1076
2858
  """
1077
- Allocation can start immediately or when a Pod wants to use the resource. "WaitForFirstConsumer" is the default.
2859
+ ResourceFilter is a filter for resources from one particular driver.
2860
+ :param str driver_name: DriverName is the name used by the DRA driver kubelet plugin.
2861
+ :param 'NamedResourcesFilterArgs' named_resources: NamedResources describes a resource filter using the named resources model.
1078
2862
  """
1079
- return pulumi.get(self, "allocation_mode")
2863
+ if driver_name is not None:
2864
+ pulumi.set(__self__, "driver_name", driver_name)
2865
+ if named_resources is not None:
2866
+ pulumi.set(__self__, "named_resources", named_resources)
1080
2867
 
1081
2868
  @property
1082
- @pulumi.getter(name="parametersRef")
1083
- def parameters_ref(self) -> Optional['outputs.ResourceClaimParametersReferencePatch']:
2869
+ @pulumi.getter(name="driverName")
2870
+ def driver_name(self) -> Optional[str]:
1084
2871
  """
1085
- ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
1086
-
1087
- The object must be in the same namespace as the ResourceClaim.
2872
+ DriverName is the name used by the DRA driver kubelet plugin.
1088
2873
  """
1089
- return pulumi.get(self, "parameters_ref")
2874
+ return pulumi.get(self, "driver_name")
1090
2875
 
1091
2876
  @property
1092
- @pulumi.getter(name="resourceClassName")
1093
- def resource_class_name(self) -> Optional[str]:
2877
+ @pulumi.getter(name="namedResources")
2878
+ def named_resources(self) -> Optional['outputs.NamedResourcesFilter']:
1094
2879
  """
1095
- ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
2880
+ NamedResources describes a resource filter using the named resources model.
1096
2881
  """
1097
- return pulumi.get(self, "resource_class_name")
2882
+ return pulumi.get(self, "named_resources")
1098
2883
 
1099
2884
 
1100
2885
  @pulumi.output_type
1101
- class ResourceClaimStatus(dict):
2886
+ class ResourceFilterPatch(dict):
1102
2887
  """
1103
- ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
2888
+ ResourceFilter is a filter for resources from one particular driver.
1104
2889
  """
1105
2890
  @staticmethod
1106
2891
  def __key_warning(key: str):
1107
2892
  suggest = None
1108
- if key == "deallocationRequested":
1109
- suggest = "deallocation_requested"
1110
- elif key == "driverName":
2893
+ if key == "driverName":
1111
2894
  suggest = "driver_name"
1112
- elif key == "reservedFor":
1113
- suggest = "reserved_for"
2895
+ elif key == "namedResources":
2896
+ suggest = "named_resources"
1114
2897
 
1115
2898
  if suggest:
1116
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatus. Access the value via the '{suggest}' property getter instead.")
2899
+ pulumi.log.warn(f"Key '{key}' not found in ResourceFilterPatch. Access the value via the '{suggest}' property getter instead.")
1117
2900
 
1118
2901
  def __getitem__(self, key: str) -> Any:
1119
- ResourceClaimStatus.__key_warning(key)
2902
+ ResourceFilterPatch.__key_warning(key)
1120
2903
  return super().__getitem__(key)
1121
2904
 
1122
2905
  def get(self, key: str, default = None) -> Any:
1123
- ResourceClaimStatus.__key_warning(key)
2906
+ ResourceFilterPatch.__key_warning(key)
1124
2907
  return super().get(key, default)
1125
2908
 
1126
2909
  def __init__(__self__, *,
1127
- allocation: Optional['outputs.AllocationResult'] = None,
1128
- deallocation_requested: Optional[bool] = None,
1129
2910
  driver_name: Optional[str] = None,
1130
- reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
2911
+ named_resources: Optional['outputs.NamedResourcesFilterPatch'] = None):
1131
2912
  """
1132
- ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
1133
- :param 'AllocationResultArgs' allocation: Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
1134
- :param bool deallocation_requested: DeallocationRequested indicates that a ResourceClaim is to be deallocated.
1135
-
1136
- The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
1137
-
1138
- While DeallocationRequested is set, no new consumers may be added to ReservedFor.
1139
- :param str driver_name: DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
1140
- :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.
1141
-
1142
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2913
+ ResourceFilter is a filter for resources from one particular driver.
2914
+ :param str driver_name: DriverName is the name used by the DRA driver kubelet plugin.
2915
+ :param 'NamedResourcesFilterPatchArgs' named_resources: NamedResources describes a resource filter using the named resources model.
1143
2916
  """
1144
- if allocation is not None:
1145
- pulumi.set(__self__, "allocation", allocation)
1146
- if deallocation_requested is not None:
1147
- pulumi.set(__self__, "deallocation_requested", deallocation_requested)
1148
2917
  if driver_name is not None:
1149
2918
  pulumi.set(__self__, "driver_name", driver_name)
1150
- if reserved_for is not None:
1151
- pulumi.set(__self__, "reserved_for", reserved_for)
1152
-
1153
- @property
1154
- @pulumi.getter
1155
- def allocation(self) -> Optional['outputs.AllocationResult']:
1156
- """
1157
- Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
1158
- """
1159
- return pulumi.get(self, "allocation")
1160
-
1161
- @property
1162
- @pulumi.getter(name="deallocationRequested")
1163
- def deallocation_requested(self) -> Optional[bool]:
1164
- """
1165
- DeallocationRequested indicates that a ResourceClaim is to be deallocated.
1166
-
1167
- The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
1168
-
1169
- While DeallocationRequested is set, no new consumers may be added to ReservedFor.
1170
- """
1171
- return pulumi.get(self, "deallocation_requested")
2919
+ if named_resources is not None:
2920
+ pulumi.set(__self__, "named_resources", named_resources)
1172
2921
 
1173
2922
  @property
1174
2923
  @pulumi.getter(name="driverName")
1175
2924
  def driver_name(self) -> Optional[str]:
1176
2925
  """
1177
- DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
2926
+ DriverName is the name used by the DRA driver kubelet plugin.
1178
2927
  """
1179
2928
  return pulumi.get(self, "driver_name")
1180
2929
 
1181
2930
  @property
1182
- @pulumi.getter(name="reservedFor")
1183
- def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
2931
+ @pulumi.getter(name="namedResources")
2932
+ def named_resources(self) -> Optional['outputs.NamedResourcesFilterPatch']:
1184
2933
  """
1185
- 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.
1186
-
1187
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2934
+ NamedResources describes a resource filter using the named resources model.
1188
2935
  """
1189
- return pulumi.get(self, "reserved_for")
2936
+ return pulumi.get(self, "named_resources")
1190
2937
 
1191
2938
 
1192
2939
  @pulumi.output_type
1193
- class ResourceClaimStatusPatch(dict):
2940
+ class ResourceHandle(dict):
1194
2941
  """
1195
- ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
2942
+ ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
1196
2943
  """
1197
2944
  @staticmethod
1198
2945
  def __key_warning(key: str):
1199
2946
  suggest = None
1200
- if key == "deallocationRequested":
1201
- suggest = "deallocation_requested"
1202
- elif key == "driverName":
2947
+ if key == "driverName":
1203
2948
  suggest = "driver_name"
1204
- elif key == "reservedFor":
1205
- suggest = "reserved_for"
2949
+ elif key == "structuredData":
2950
+ suggest = "structured_data"
1206
2951
 
1207
2952
  if suggest:
1208
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatusPatch. Access the value via the '{suggest}' property getter instead.")
2953
+ pulumi.log.warn(f"Key '{key}' not found in ResourceHandle. Access the value via the '{suggest}' property getter instead.")
1209
2954
 
1210
2955
  def __getitem__(self, key: str) -> Any:
1211
- ResourceClaimStatusPatch.__key_warning(key)
2956
+ ResourceHandle.__key_warning(key)
1212
2957
  return super().__getitem__(key)
1213
2958
 
1214
2959
  def get(self, key: str, default = None) -> Any:
1215
- ResourceClaimStatusPatch.__key_warning(key)
2960
+ ResourceHandle.__key_warning(key)
1216
2961
  return super().get(key, default)
1217
2962
 
1218
2963
  def __init__(__self__, *,
1219
- allocation: Optional['outputs.AllocationResultPatch'] = None,
1220
- deallocation_requested: Optional[bool] = None,
2964
+ data: Optional[str] = None,
1221
2965
  driver_name: Optional[str] = None,
1222
- reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
2966
+ structured_data: Optional['outputs.StructuredResourceHandle'] = None):
1223
2967
  """
1224
- ResourceClaimStatus tracks whether the resource has been allocated and what the resulting attributes are.
1225
- :param 'AllocationResultPatchArgs' allocation: Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
1226
- :param bool deallocation_requested: DeallocationRequested indicates that a ResourceClaim is to be deallocated.
1227
-
1228
- The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
1229
-
1230
- While DeallocationRequested is set, no new consumers may be added to ReservedFor.
1231
- :param str driver_name: DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
1232
- :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.
2968
+ ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
2969
+ :param str data: Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1233
2970
 
1234
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
2971
+ The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
2972
+ :param str driver_name: DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
2973
+ :param 'StructuredResourceHandleArgs' structured_data: If StructuredData is set, then it needs to be used instead of Data.
1235
2974
  """
1236
- if allocation is not None:
1237
- pulumi.set(__self__, "allocation", allocation)
1238
- if deallocation_requested is not None:
1239
- pulumi.set(__self__, "deallocation_requested", deallocation_requested)
2975
+ if data is not None:
2976
+ pulumi.set(__self__, "data", data)
1240
2977
  if driver_name is not None:
1241
2978
  pulumi.set(__self__, "driver_name", driver_name)
1242
- if reserved_for is not None:
1243
- pulumi.set(__self__, "reserved_for", reserved_for)
2979
+ if structured_data is not None:
2980
+ pulumi.set(__self__, "structured_data", structured_data)
1244
2981
 
1245
2982
  @property
1246
2983
  @pulumi.getter
1247
- def allocation(self) -> Optional['outputs.AllocationResultPatch']:
1248
- """
1249
- Allocation is set by the resource driver once a resource or set of resources has been allocated successfully. If this is not specified, the resources have not been allocated yet.
1250
- """
1251
- return pulumi.get(self, "allocation")
1252
-
1253
- @property
1254
- @pulumi.getter(name="deallocationRequested")
1255
- def deallocation_requested(self) -> Optional[bool]:
2984
+ def data(self) -> Optional[str]:
1256
2985
  """
1257
- DeallocationRequested indicates that a ResourceClaim is to be deallocated.
1258
-
1259
- The driver then must deallocate this claim and reset the field together with clearing the Allocation field.
2986
+ Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1260
2987
 
1261
- While DeallocationRequested is set, no new consumers may be added to ReservedFor.
2988
+ The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
1262
2989
  """
1263
- return pulumi.get(self, "deallocation_requested")
2990
+ return pulumi.get(self, "data")
1264
2991
 
1265
2992
  @property
1266
2993
  @pulumi.getter(name="driverName")
1267
2994
  def driver_name(self) -> Optional[str]:
1268
2995
  """
1269
- DriverName is a copy of the driver name from the ResourceClass at the time when allocation started.
2996
+ DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
1270
2997
  """
1271
2998
  return pulumi.get(self, "driver_name")
1272
2999
 
1273
3000
  @property
1274
- @pulumi.getter(name="reservedFor")
1275
- def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
3001
+ @pulumi.getter(name="structuredData")
3002
+ def structured_data(self) -> Optional['outputs.StructuredResourceHandle']:
1276
3003
  """
1277
- 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.
1278
-
1279
- There can be at most 32 such reservations. This may get increased in the future, but not reduced.
3004
+ If StructuredData is set, then it needs to be used instead of Data.
1280
3005
  """
1281
- return pulumi.get(self, "reserved_for")
3006
+ return pulumi.get(self, "structured_data")
1282
3007
 
1283
3008
 
1284
3009
  @pulumi.output_type
1285
- class ResourceClaimTemplate(dict):
3010
+ class ResourceHandlePatch(dict):
1286
3011
  """
1287
- ResourceClaimTemplate is used to produce ResourceClaim objects.
3012
+ ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
1288
3013
  """
1289
3014
  @staticmethod
1290
3015
  def __key_warning(key: str):
1291
3016
  suggest = None
1292
- if key == "apiVersion":
1293
- suggest = "api_version"
3017
+ if key == "driverName":
3018
+ suggest = "driver_name"
3019
+ elif key == "structuredData":
3020
+ suggest = "structured_data"
1294
3021
 
1295
3022
  if suggest:
1296
- pulumi.log.warn(f"Key '{key}' not found in ResourceClaimTemplate. Access the value via the '{suggest}' property getter instead.")
3023
+ pulumi.log.warn(f"Key '{key}' not found in ResourceHandlePatch. Access the value via the '{suggest}' property getter instead.")
1297
3024
 
1298
3025
  def __getitem__(self, key: str) -> Any:
1299
- ResourceClaimTemplate.__key_warning(key)
3026
+ ResourceHandlePatch.__key_warning(key)
1300
3027
  return super().__getitem__(key)
1301
3028
 
1302
3029
  def get(self, key: str, default = None) -> Any:
1303
- ResourceClaimTemplate.__key_warning(key)
3030
+ ResourceHandlePatch.__key_warning(key)
1304
3031
  return super().get(key, default)
1305
3032
 
1306
3033
  def __init__(__self__, *,
1307
- spec: 'outputs.ResourceClaimTemplateSpec',
1308
- api_version: Optional[str] = None,
1309
- kind: Optional[str] = None,
1310
- metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
3034
+ data: Optional[str] = None,
3035
+ driver_name: Optional[str] = None,
3036
+ structured_data: Optional['outputs.StructuredResourceHandlePatch'] = None):
1311
3037
  """
1312
- ResourceClaimTemplate is used to produce ResourceClaim objects.
1313
- :param 'ResourceClaimTemplateSpecArgs' spec: Describes the ResourceClaim that is to be generated.
3038
+ ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
3039
+ :param str data: Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1314
3040
 
1315
- This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
1316
- :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1317
- :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1318
- :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1319
- """
1320
- pulumi.set(__self__, "spec", spec)
1321
- if api_version is not None:
1322
- pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
1323
- if kind is not None:
1324
- pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
1325
- if metadata is not None:
1326
- pulumi.set(__self__, "metadata", metadata)
1327
-
1328
- @property
1329
- @pulumi.getter
1330
- def spec(self) -> 'outputs.ResourceClaimTemplateSpec':
1331
- """
1332
- Describes the ResourceClaim that is to be generated.
1333
-
1334
- This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
3041
+ The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
3042
+ :param str driver_name: DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
3043
+ :param 'StructuredResourceHandlePatchArgs' structured_data: If StructuredData is set, then it needs to be used instead of Data.
1335
3044
  """
1336
- return pulumi.get(self, "spec")
3045
+ if data is not None:
3046
+ pulumi.set(__self__, "data", data)
3047
+ if driver_name is not None:
3048
+ pulumi.set(__self__, "driver_name", driver_name)
3049
+ if structured_data is not None:
3050
+ pulumi.set(__self__, "structured_data", structured_data)
1337
3051
 
1338
3052
  @property
1339
- @pulumi.getter(name="apiVersion")
1340
- def api_version(self) -> Optional[str]:
3053
+ @pulumi.getter
3054
+ def data(self) -> Optional[str]:
1341
3055
  """
1342
- 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
3056
+ Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
3057
+
3058
+ The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
1343
3059
  """
1344
- return pulumi.get(self, "api_version")
3060
+ return pulumi.get(self, "data")
1345
3061
 
1346
3062
  @property
1347
- @pulumi.getter
1348
- def kind(self) -> Optional[str]:
3063
+ @pulumi.getter(name="driverName")
3064
+ def driver_name(self) -> Optional[str]:
1349
3065
  """
1350
- 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
3066
+ DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
1351
3067
  """
1352
- return pulumi.get(self, "kind")
3068
+ return pulumi.get(self, "driver_name")
1353
3069
 
1354
3070
  @property
1355
- @pulumi.getter
1356
- def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
3071
+ @pulumi.getter(name="structuredData")
3072
+ def structured_data(self) -> Optional['outputs.StructuredResourceHandlePatch']:
1357
3073
  """
1358
- Standard object metadata
3074
+ If StructuredData is set, then it needs to be used instead of Data.
1359
3075
  """
1360
- return pulumi.get(self, "metadata")
3076
+ return pulumi.get(self, "structured_data")
1361
3077
 
1362
3078
 
1363
3079
  @pulumi.output_type
1364
- class ResourceClaimTemplateSpec(dict):
3080
+ class ResourceRequest(dict):
1365
3081
  """
1366
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
3082
+ ResourceRequest is a request for resources from one particular driver.
1367
3083
  """
3084
+ @staticmethod
3085
+ def __key_warning(key: str):
3086
+ suggest = None
3087
+ if key == "namedResources":
3088
+ suggest = "named_resources"
3089
+ elif key == "vendorParameters":
3090
+ suggest = "vendor_parameters"
3091
+
3092
+ if suggest:
3093
+ pulumi.log.warn(f"Key '{key}' not found in ResourceRequest. Access the value via the '{suggest}' property getter instead.")
3094
+
3095
+ def __getitem__(self, key: str) -> Any:
3096
+ ResourceRequest.__key_warning(key)
3097
+ return super().__getitem__(key)
3098
+
3099
+ def get(self, key: str, default = None) -> Any:
3100
+ ResourceRequest.__key_warning(key)
3101
+ return super().get(key, default)
3102
+
1368
3103
  def __init__(__self__, *,
1369
- spec: 'outputs.ResourceClaimSpec',
1370
- metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
3104
+ named_resources: Optional['outputs.NamedResourcesRequest'] = None,
3105
+ vendor_parameters: Optional[Any] = None):
1371
3106
  """
1372
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
1373
- :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.
1374
- :param '_meta.v1.ObjectMetaArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3107
+ ResourceRequest is a request for resources from one particular driver.
3108
+ :param 'NamedResourcesRequestArgs' named_resources: NamedResources describes a request for resources with the named resources model.
3109
+ :param Any vendor_parameters: VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim.
1375
3110
  """
1376
- pulumi.set(__self__, "spec", spec)
1377
- if metadata is not None:
1378
- pulumi.set(__self__, "metadata", metadata)
3111
+ if named_resources is not None:
3112
+ pulumi.set(__self__, "named_resources", named_resources)
3113
+ if vendor_parameters is not None:
3114
+ pulumi.set(__self__, "vendor_parameters", vendor_parameters)
1379
3115
 
1380
3116
  @property
1381
- @pulumi.getter
1382
- def spec(self) -> 'outputs.ResourceClaimSpec':
3117
+ @pulumi.getter(name="namedResources")
3118
+ def named_resources(self) -> Optional['outputs.NamedResourcesRequest']:
1383
3119
  """
1384
- 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.
3120
+ NamedResources describes a request for resources with the named resources model.
1385
3121
  """
1386
- return pulumi.get(self, "spec")
3122
+ return pulumi.get(self, "named_resources")
1387
3123
 
1388
3124
  @property
1389
- @pulumi.getter
1390
- def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
3125
+ @pulumi.getter(name="vendorParameters")
3126
+ def vendor_parameters(self) -> Optional[Any]:
1391
3127
  """
1392
- ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3128
+ VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim.
1393
3129
  """
1394
- return pulumi.get(self, "metadata")
3130
+ return pulumi.get(self, "vendor_parameters")
1395
3131
 
1396
3132
 
1397
3133
  @pulumi.output_type
1398
- class ResourceClaimTemplateSpecPatch(dict):
3134
+ class ResourceRequestPatch(dict):
1399
3135
  """
1400
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
3136
+ ResourceRequest is a request for resources from one particular driver.
1401
3137
  """
3138
+ @staticmethod
3139
+ def __key_warning(key: str):
3140
+ suggest = None
3141
+ if key == "namedResources":
3142
+ suggest = "named_resources"
3143
+ elif key == "vendorParameters":
3144
+ suggest = "vendor_parameters"
3145
+
3146
+ if suggest:
3147
+ pulumi.log.warn(f"Key '{key}' not found in ResourceRequestPatch. Access the value via the '{suggest}' property getter instead.")
3148
+
3149
+ def __getitem__(self, key: str) -> Any:
3150
+ ResourceRequestPatch.__key_warning(key)
3151
+ return super().__getitem__(key)
3152
+
3153
+ def get(self, key: str, default = None) -> Any:
3154
+ ResourceRequestPatch.__key_warning(key)
3155
+ return super().get(key, default)
3156
+
1402
3157
  def __init__(__self__, *,
1403
- metadata: Optional['_meta.v1.outputs.ObjectMetaPatch'] = None,
1404
- spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
3158
+ named_resources: Optional['outputs.NamedResourcesRequestPatch'] = None,
3159
+ vendor_parameters: Optional[Any] = None):
1405
3160
  """
1406
- ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
1407
- :param '_meta.v1.ObjectMetaPatchArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
1408
- :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.
3161
+ ResourceRequest is a request for resources from one particular driver.
3162
+ :param 'NamedResourcesRequestPatchArgs' named_resources: NamedResources describes a request for resources with the named resources model.
3163
+ :param Any vendor_parameters: VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim.
1409
3164
  """
1410
- if metadata is not None:
1411
- pulumi.set(__self__, "metadata", metadata)
1412
- if spec is not None:
1413
- pulumi.set(__self__, "spec", spec)
3165
+ if named_resources is not None:
3166
+ pulumi.set(__self__, "named_resources", named_resources)
3167
+ if vendor_parameters is not None:
3168
+ pulumi.set(__self__, "vendor_parameters", vendor_parameters)
1414
3169
 
1415
3170
  @property
1416
- @pulumi.getter
1417
- def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
3171
+ @pulumi.getter(name="namedResources")
3172
+ def named_resources(self) -> Optional['outputs.NamedResourcesRequestPatch']:
1418
3173
  """
1419
- ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
3174
+ NamedResources describes a request for resources with the named resources model.
1420
3175
  """
1421
- return pulumi.get(self, "metadata")
3176
+ return pulumi.get(self, "named_resources")
1422
3177
 
1423
3178
  @property
1424
- @pulumi.getter
1425
- def spec(self) -> Optional['outputs.ResourceClaimSpecPatch']:
3179
+ @pulumi.getter(name="vendorParameters")
3180
+ def vendor_parameters(self) -> Optional[Any]:
1426
3181
  """
1427
- 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.
3182
+ VendorParameters are arbitrary setup parameters for the requested resource. They are ignored while allocating a claim.
1428
3183
  """
1429
- return pulumi.get(self, "spec")
3184
+ return pulumi.get(self, "vendor_parameters")
1430
3185
 
1431
3186
 
1432
3187
  @pulumi.output_type
1433
- class ResourceClass(dict):
3188
+ class ResourceSlice(dict):
1434
3189
  """
1435
- ResourceClass is used by administrators to influence how resources are allocated.
1436
-
1437
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
3190
+ ResourceSlice provides information about available resources on individual nodes.
1438
3191
  """
1439
3192
  @staticmethod
1440
3193
  def __key_warning(key: str):
@@ -1443,20 +3196,20 @@ class ResourceClass(dict):
1443
3196
  suggest = "driver_name"
1444
3197
  elif key == "apiVersion":
1445
3198
  suggest = "api_version"
1446
- elif key == "parametersRef":
1447
- suggest = "parameters_ref"
1448
- elif key == "suitableNodes":
1449
- suggest = "suitable_nodes"
3199
+ elif key == "namedResources":
3200
+ suggest = "named_resources"
3201
+ elif key == "nodeName":
3202
+ suggest = "node_name"
1450
3203
 
1451
3204
  if suggest:
1452
- pulumi.log.warn(f"Key '{key}' not found in ResourceClass. Access the value via the '{suggest}' property getter instead.")
3205
+ pulumi.log.warn(f"Key '{key}' not found in ResourceSlice. Access the value via the '{suggest}' property getter instead.")
1453
3206
 
1454
3207
  def __getitem__(self, key: str) -> Any:
1455
- ResourceClass.__key_warning(key)
3208
+ ResourceSlice.__key_warning(key)
1456
3209
  return super().__getitem__(key)
1457
3210
 
1458
3211
  def get(self, key: str, default = None) -> Any:
1459
- ResourceClass.__key_warning(key)
3212
+ ResourceSlice.__key_warning(key)
1460
3213
  return super().get(key, default)
1461
3214
 
1462
3215
  def __init__(__self__, *,
@@ -1464,42 +3217,36 @@ class ResourceClass(dict):
1464
3217
  api_version: Optional[str] = None,
1465
3218
  kind: Optional[str] = None,
1466
3219
  metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
1467
- parameters_ref: Optional['outputs.ResourceClassParametersReference'] = None,
1468
- suitable_nodes: Optional['_core.v1.outputs.NodeSelector'] = None):
3220
+ named_resources: Optional['outputs.NamedResourcesResources'] = None,
3221
+ node_name: Optional[str] = None):
1469
3222
  """
1470
- ResourceClass is used by administrators to influence how resources are allocated.
1471
-
1472
- This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
1473
- :param str driver_name: DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.
1474
-
1475
- Resource drivers have a unique name in forward domain order (acme.example.com).
3223
+ ResourceSlice provides information about available resources on individual nodes.
3224
+ :param str driver_name: DriverName identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
1476
3225
  :param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1477
3226
  :param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1478
3227
  :param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
1479
- :param 'ResourceClassParametersReferenceArgs' parameters_ref: ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.
1480
- :param '_core.v1.NodeSelectorArgs' suitable_nodes: Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.
3228
+ :param 'NamedResourcesResourcesArgs' named_resources: NamedResources describes available resources using the named resources model.
3229
+ :param str node_name: NodeName identifies the node which provides the resources if they are local to a node.
1481
3230
 
1482
- Setting this field is optional. If null, all nodes are candidates.
3231
+ A field selector can be used to list only ResourceSlice objects with a certain node name.
1483
3232
  """
1484
3233
  pulumi.set(__self__, "driver_name", driver_name)
1485
3234
  if api_version is not None:
1486
3235
  pulumi.set(__self__, "api_version", 'resource.k8s.io/v1alpha2')
1487
3236
  if kind is not None:
1488
- pulumi.set(__self__, "kind", 'ResourceClass')
3237
+ pulumi.set(__self__, "kind", 'ResourceSlice')
1489
3238
  if metadata is not None:
1490
3239
  pulumi.set(__self__, "metadata", metadata)
1491
- if parameters_ref is not None:
1492
- pulumi.set(__self__, "parameters_ref", parameters_ref)
1493
- if suitable_nodes is not None:
1494
- pulumi.set(__self__, "suitable_nodes", suitable_nodes)
3240
+ if named_resources is not None:
3241
+ pulumi.set(__self__, "named_resources", named_resources)
3242
+ if node_name is not None:
3243
+ pulumi.set(__self__, "node_name", node_name)
1495
3244
 
1496
3245
  @property
1497
3246
  @pulumi.getter(name="driverName")
1498
3247
  def driver_name(self) -> str:
1499
3248
  """
1500
- DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.
1501
-
1502
- Resource drivers have a unique name in forward domain order (acme.example.com).
3249
+ DriverName identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
1503
3250
  """
1504
3251
  return pulumi.get(self, "driver_name")
1505
3252
 
@@ -1528,178 +3275,187 @@ class ResourceClass(dict):
1528
3275
  return pulumi.get(self, "metadata")
1529
3276
 
1530
3277
  @property
1531
- @pulumi.getter(name="parametersRef")
1532
- def parameters_ref(self) -> Optional['outputs.ResourceClassParametersReference']:
3278
+ @pulumi.getter(name="namedResources")
3279
+ def named_resources(self) -> Optional['outputs.NamedResourcesResources']:
1533
3280
  """
1534
- ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.
3281
+ NamedResources describes available resources using the named resources model.
1535
3282
  """
1536
- return pulumi.get(self, "parameters_ref")
3283
+ return pulumi.get(self, "named_resources")
1537
3284
 
1538
3285
  @property
1539
- @pulumi.getter(name="suitableNodes")
1540
- def suitable_nodes(self) -> Optional['_core.v1.outputs.NodeSelector']:
3286
+ @pulumi.getter(name="nodeName")
3287
+ def node_name(self) -> Optional[str]:
1541
3288
  """
1542
- Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.
3289
+ NodeName identifies the node which provides the resources if they are local to a node.
1543
3290
 
1544
- Setting this field is optional. If null, all nodes are candidates.
3291
+ A field selector can be used to list only ResourceSlice objects with a certain node name.
1545
3292
  """
1546
- return pulumi.get(self, "suitable_nodes")
3293
+ return pulumi.get(self, "node_name")
1547
3294
 
1548
3295
 
1549
3296
  @pulumi.output_type
1550
- class ResourceClassParametersReference(dict):
3297
+ class StructuredResourceHandle(dict):
1551
3298
  """
1552
- ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
3299
+ StructuredResourceHandle is the in-tree representation of the allocation result.
1553
3300
  """
1554
3301
  @staticmethod
1555
3302
  def __key_warning(key: str):
1556
3303
  suggest = None
1557
- if key == "apiGroup":
1558
- suggest = "api_group"
3304
+ if key == "nodeName":
3305
+ suggest = "node_name"
3306
+ elif key == "vendorClaimParameters":
3307
+ suggest = "vendor_claim_parameters"
3308
+ elif key == "vendorClassParameters":
3309
+ suggest = "vendor_class_parameters"
1559
3310
 
1560
3311
  if suggest:
1561
- pulumi.log.warn(f"Key '{key}' not found in ResourceClassParametersReference. Access the value via the '{suggest}' property getter instead.")
3312
+ pulumi.log.warn(f"Key '{key}' not found in StructuredResourceHandle. Access the value via the '{suggest}' property getter instead.")
1562
3313
 
1563
3314
  def __getitem__(self, key: str) -> Any:
1564
- ResourceClassParametersReference.__key_warning(key)
3315
+ StructuredResourceHandle.__key_warning(key)
1565
3316
  return super().__getitem__(key)
1566
3317
 
1567
3318
  def get(self, key: str, default = None) -> Any:
1568
- ResourceClassParametersReference.__key_warning(key)
3319
+ StructuredResourceHandle.__key_warning(key)
1569
3320
  return super().get(key, default)
1570
3321
 
1571
3322
  def __init__(__self__, *,
1572
- kind: str,
1573
- name: str,
1574
- api_group: Optional[str] = None,
1575
- namespace: Optional[str] = None):
1576
- """
1577
- ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
1578
- :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
1579
- :param str name: Name is the name of resource being referenced.
1580
- :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
1581
- :param str namespace: Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
1582
- """
1583
- pulumi.set(__self__, "kind", kind)
1584
- pulumi.set(__self__, "name", name)
1585
- if api_group is not None:
1586
- pulumi.set(__self__, "api_group", api_group)
1587
- if namespace is not None:
1588
- pulumi.set(__self__, "namespace", namespace)
3323
+ results: Sequence['outputs.DriverAllocationResult'],
3324
+ node_name: Optional[str] = None,
3325
+ vendor_claim_parameters: Optional[Any] = None,
3326
+ vendor_class_parameters: Optional[Any] = None):
3327
+ """
3328
+ StructuredResourceHandle is the in-tree representation of the allocation result.
3329
+ :param Sequence['DriverAllocationResultArgs'] results: Results lists all allocated driver resources.
3330
+ :param str node_name: NodeName is the name of the node providing the necessary resources if the resources are local to a node.
3331
+ :param Any vendor_claim_parameters: VendorClaimParameters are the per-claim configuration parameters from the resource claim parameters at the time that the claim was allocated.
3332
+ :param Any vendor_class_parameters: VendorClassParameters are the per-claim configuration parameters from the resource class at the time that the claim was allocated.
3333
+ """
3334
+ pulumi.set(__self__, "results", results)
3335
+ if node_name is not None:
3336
+ pulumi.set(__self__, "node_name", node_name)
3337
+ if vendor_claim_parameters is not None:
3338
+ pulumi.set(__self__, "vendor_claim_parameters", vendor_claim_parameters)
3339
+ if vendor_class_parameters is not None:
3340
+ pulumi.set(__self__, "vendor_class_parameters", vendor_class_parameters)
1589
3341
 
1590
3342
  @property
1591
3343
  @pulumi.getter
1592
- def kind(self) -> str:
3344
+ def results(self) -> Sequence['outputs.DriverAllocationResult']:
1593
3345
  """
1594
- Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
3346
+ Results lists all allocated driver resources.
1595
3347
  """
1596
- return pulumi.get(self, "kind")
3348
+ return pulumi.get(self, "results")
1597
3349
 
1598
3350
  @property
1599
- @pulumi.getter
1600
- def name(self) -> str:
3351
+ @pulumi.getter(name="nodeName")
3352
+ def node_name(self) -> Optional[str]:
1601
3353
  """
1602
- Name is the name of resource being referenced.
3354
+ NodeName is the name of the node providing the necessary resources if the resources are local to a node.
1603
3355
  """
1604
- return pulumi.get(self, "name")
3356
+ return pulumi.get(self, "node_name")
1605
3357
 
1606
3358
  @property
1607
- @pulumi.getter(name="apiGroup")
1608
- def api_group(self) -> Optional[str]:
3359
+ @pulumi.getter(name="vendorClaimParameters")
3360
+ def vendor_claim_parameters(self) -> Optional[Any]:
1609
3361
  """
1610
- 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.
3362
+ VendorClaimParameters are the per-claim configuration parameters from the resource claim parameters at the time that the claim was allocated.
1611
3363
  """
1612
- return pulumi.get(self, "api_group")
3364
+ return pulumi.get(self, "vendor_claim_parameters")
1613
3365
 
1614
3366
  @property
1615
- @pulumi.getter
1616
- def namespace(self) -> Optional[str]:
3367
+ @pulumi.getter(name="vendorClassParameters")
3368
+ def vendor_class_parameters(self) -> Optional[Any]:
1617
3369
  """
1618
- Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
3370
+ VendorClassParameters are the per-claim configuration parameters from the resource class at the time that the claim was allocated.
1619
3371
  """
1620
- return pulumi.get(self, "namespace")
3372
+ return pulumi.get(self, "vendor_class_parameters")
1621
3373
 
1622
3374
 
1623
3375
  @pulumi.output_type
1624
- class ResourceClassParametersReferencePatch(dict):
3376
+ class StructuredResourceHandlePatch(dict):
1625
3377
  """
1626
- ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
3378
+ StructuredResourceHandle is the in-tree representation of the allocation result.
1627
3379
  """
1628
3380
  @staticmethod
1629
3381
  def __key_warning(key: str):
1630
3382
  suggest = None
1631
- if key == "apiGroup":
1632
- suggest = "api_group"
3383
+ if key == "nodeName":
3384
+ suggest = "node_name"
3385
+ elif key == "vendorClaimParameters":
3386
+ suggest = "vendor_claim_parameters"
3387
+ elif key == "vendorClassParameters":
3388
+ suggest = "vendor_class_parameters"
1633
3389
 
1634
3390
  if suggest:
1635
- pulumi.log.warn(f"Key '{key}' not found in ResourceClassParametersReferencePatch. Access the value via the '{suggest}' property getter instead.")
3391
+ pulumi.log.warn(f"Key '{key}' not found in StructuredResourceHandlePatch. Access the value via the '{suggest}' property getter instead.")
1636
3392
 
1637
3393
  def __getitem__(self, key: str) -> Any:
1638
- ResourceClassParametersReferencePatch.__key_warning(key)
3394
+ StructuredResourceHandlePatch.__key_warning(key)
1639
3395
  return super().__getitem__(key)
1640
3396
 
1641
3397
  def get(self, key: str, default = None) -> Any:
1642
- ResourceClassParametersReferencePatch.__key_warning(key)
3398
+ StructuredResourceHandlePatch.__key_warning(key)
1643
3399
  return super().get(key, default)
1644
3400
 
1645
3401
  def __init__(__self__, *,
1646
- api_group: Optional[str] = None,
1647
- kind: Optional[str] = None,
1648
- name: Optional[str] = None,
1649
- namespace: Optional[str] = None):
3402
+ node_name: Optional[str] = None,
3403
+ results: Optional[Sequence['outputs.DriverAllocationResultPatch']] = None,
3404
+ vendor_claim_parameters: Optional[Any] = None,
3405
+ vendor_class_parameters: Optional[Any] = None):
1650
3406
  """
1651
- ResourceClassParametersReference contains enough information to let you locate the parameters for a ResourceClass.
1652
- :param str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
1653
- :param str kind: Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
1654
- :param str name: Name is the name of resource being referenced.
1655
- :param str namespace: Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
3407
+ StructuredResourceHandle is the in-tree representation of the allocation result.
3408
+ :param str node_name: NodeName is the name of the node providing the necessary resources if the resources are local to a node.
3409
+ :param Sequence['DriverAllocationResultPatchArgs'] results: Results lists all allocated driver resources.
3410
+ :param Any vendor_claim_parameters: VendorClaimParameters are the per-claim configuration parameters from the resource claim parameters at the time that the claim was allocated.
3411
+ :param Any vendor_class_parameters: VendorClassParameters are the per-claim configuration parameters from the resource class at the time that the claim was allocated.
1656
3412
  """
1657
- if api_group is not None:
1658
- pulumi.set(__self__, "api_group", api_group)
1659
- if kind is not None:
1660
- pulumi.set(__self__, "kind", kind)
1661
- if name is not None:
1662
- pulumi.set(__self__, "name", name)
1663
- if namespace is not None:
1664
- pulumi.set(__self__, "namespace", namespace)
3413
+ if node_name is not None:
3414
+ pulumi.set(__self__, "node_name", node_name)
3415
+ if results is not None:
3416
+ pulumi.set(__self__, "results", results)
3417
+ if vendor_claim_parameters is not None:
3418
+ pulumi.set(__self__, "vendor_claim_parameters", vendor_claim_parameters)
3419
+ if vendor_class_parameters is not None:
3420
+ pulumi.set(__self__, "vendor_class_parameters", vendor_class_parameters)
1665
3421
 
1666
3422
  @property
1667
- @pulumi.getter(name="apiGroup")
1668
- def api_group(self) -> Optional[str]:
3423
+ @pulumi.getter(name="nodeName")
3424
+ def node_name(self) -> Optional[str]:
1669
3425
  """
1670
- 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.
3426
+ NodeName is the name of the node providing the necessary resources if the resources are local to a node.
1671
3427
  """
1672
- return pulumi.get(self, "api_group")
3428
+ return pulumi.get(self, "node_name")
1673
3429
 
1674
3430
  @property
1675
3431
  @pulumi.getter
1676
- def kind(self) -> Optional[str]:
3432
+ def results(self) -> Optional[Sequence['outputs.DriverAllocationResultPatch']]:
1677
3433
  """
1678
- Kind is the type of resource being referenced. This is the same value as in the parameter object's metadata.
3434
+ Results lists all allocated driver resources.
1679
3435
  """
1680
- return pulumi.get(self, "kind")
3436
+ return pulumi.get(self, "results")
1681
3437
 
1682
3438
  @property
1683
- @pulumi.getter
1684
- def name(self) -> Optional[str]:
3439
+ @pulumi.getter(name="vendorClaimParameters")
3440
+ def vendor_claim_parameters(self) -> Optional[Any]:
1685
3441
  """
1686
- Name is the name of resource being referenced.
3442
+ VendorClaimParameters are the per-claim configuration parameters from the resource claim parameters at the time that the claim was allocated.
1687
3443
  """
1688
- return pulumi.get(self, "name")
3444
+ return pulumi.get(self, "vendor_claim_parameters")
1689
3445
 
1690
3446
  @property
1691
- @pulumi.getter
1692
- def namespace(self) -> Optional[str]:
3447
+ @pulumi.getter(name="vendorClassParameters")
3448
+ def vendor_class_parameters(self) -> Optional[Any]:
1693
3449
  """
1694
- Namespace that contains the referenced resource. Must be empty for cluster-scoped resources and non-empty for namespaced resources.
3450
+ VendorClassParameters are the per-claim configuration parameters from the resource class at the time that the claim was allocated.
1695
3451
  """
1696
- return pulumi.get(self, "namespace")
3452
+ return pulumi.get(self, "vendor_class_parameters")
1697
3453
 
1698
3454
 
1699
3455
  @pulumi.output_type
1700
- class ResourceHandle(dict):
3456
+ class VendorParameters(dict):
1701
3457
  """
1702
- ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
3458
+ VendorParameters are opaque parameters for one particular driver.
1703
3459
  """
1704
3460
  @staticmethod
1705
3461
  def __key_warning(key: str):
@@ -1708,54 +3464,50 @@ class ResourceHandle(dict):
1708
3464
  suggest = "driver_name"
1709
3465
 
1710
3466
  if suggest:
1711
- pulumi.log.warn(f"Key '{key}' not found in ResourceHandle. Access the value via the '{suggest}' property getter instead.")
3467
+ pulumi.log.warn(f"Key '{key}' not found in VendorParameters. Access the value via the '{suggest}' property getter instead.")
1712
3468
 
1713
3469
  def __getitem__(self, key: str) -> Any:
1714
- ResourceHandle.__key_warning(key)
3470
+ VendorParameters.__key_warning(key)
1715
3471
  return super().__getitem__(key)
1716
3472
 
1717
3473
  def get(self, key: str, default = None) -> Any:
1718
- ResourceHandle.__key_warning(key)
3474
+ VendorParameters.__key_warning(key)
1719
3475
  return super().get(key, default)
1720
3476
 
1721
3477
  def __init__(__self__, *,
1722
- data: Optional[str] = None,
1723
- driver_name: Optional[str] = None):
3478
+ driver_name: Optional[str] = None,
3479
+ parameters: Optional[Any] = None):
1724
3480
  """
1725
- ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
1726
- :param str data: Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1727
-
1728
- The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
1729
- :param str driver_name: DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
3481
+ VendorParameters are opaque parameters for one particular driver.
3482
+ :param str driver_name: DriverName is the name used by the DRA driver kubelet plugin.
3483
+ :param Any parameters: Parameters can be arbitrary setup parameters. They are ignored while allocating a claim.
1730
3484
  """
1731
- if data is not None:
1732
- pulumi.set(__self__, "data", data)
1733
3485
  if driver_name is not None:
1734
3486
  pulumi.set(__self__, "driver_name", driver_name)
3487
+ if parameters is not None:
3488
+ pulumi.set(__self__, "parameters", parameters)
1735
3489
 
1736
3490
  @property
1737
- @pulumi.getter
1738
- def data(self) -> Optional[str]:
3491
+ @pulumi.getter(name="driverName")
3492
+ def driver_name(self) -> Optional[str]:
1739
3493
  """
1740
- Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1741
-
1742
- The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
3494
+ DriverName is the name used by the DRA driver kubelet plugin.
1743
3495
  """
1744
- return pulumi.get(self, "data")
3496
+ return pulumi.get(self, "driver_name")
1745
3497
 
1746
3498
  @property
1747
- @pulumi.getter(name="driverName")
1748
- def driver_name(self) -> Optional[str]:
3499
+ @pulumi.getter
3500
+ def parameters(self) -> Optional[Any]:
1749
3501
  """
1750
- DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
3502
+ Parameters can be arbitrary setup parameters. They are ignored while allocating a claim.
1751
3503
  """
1752
- return pulumi.get(self, "driver_name")
3504
+ return pulumi.get(self, "parameters")
1753
3505
 
1754
3506
 
1755
3507
  @pulumi.output_type
1756
- class ResourceHandlePatch(dict):
3508
+ class VendorParametersPatch(dict):
1757
3509
  """
1758
- ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
3510
+ VendorParameters are opaque parameters for one particular driver.
1759
3511
  """
1760
3512
  @staticmethod
1761
3513
  def __key_warning(key: str):
@@ -1764,47 +3516,43 @@ class ResourceHandlePatch(dict):
1764
3516
  suggest = "driver_name"
1765
3517
 
1766
3518
  if suggest:
1767
- pulumi.log.warn(f"Key '{key}' not found in ResourceHandlePatch. Access the value via the '{suggest}' property getter instead.")
3519
+ pulumi.log.warn(f"Key '{key}' not found in VendorParametersPatch. Access the value via the '{suggest}' property getter instead.")
1768
3520
 
1769
3521
  def __getitem__(self, key: str) -> Any:
1770
- ResourceHandlePatch.__key_warning(key)
3522
+ VendorParametersPatch.__key_warning(key)
1771
3523
  return super().__getitem__(key)
1772
3524
 
1773
3525
  def get(self, key: str, default = None) -> Any:
1774
- ResourceHandlePatch.__key_warning(key)
3526
+ VendorParametersPatch.__key_warning(key)
1775
3527
  return super().get(key, default)
1776
3528
 
1777
3529
  def __init__(__self__, *,
1778
- data: Optional[str] = None,
1779
- driver_name: Optional[str] = None):
3530
+ driver_name: Optional[str] = None,
3531
+ parameters: Optional[Any] = None):
1780
3532
  """
1781
- ResourceHandle holds opaque resource data for processing by a specific kubelet plugin.
1782
- :param str data: Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1783
-
1784
- The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
1785
- :param str driver_name: DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
3533
+ VendorParameters are opaque parameters for one particular driver.
3534
+ :param str driver_name: DriverName is the name used by the DRA driver kubelet plugin.
3535
+ :param Any parameters: Parameters can be arbitrary setup parameters. They are ignored while allocating a claim.
1786
3536
  """
1787
- if data is not None:
1788
- pulumi.set(__self__, "data", data)
1789
3537
  if driver_name is not None:
1790
3538
  pulumi.set(__self__, "driver_name", driver_name)
3539
+ if parameters is not None:
3540
+ pulumi.set(__self__, "parameters", parameters)
1791
3541
 
1792
3542
  @property
1793
- @pulumi.getter
1794
- def data(self) -> Optional[str]:
3543
+ @pulumi.getter(name="driverName")
3544
+ def driver_name(self) -> Optional[str]:
1795
3545
  """
1796
- Data contains the opaque data associated with this ResourceHandle. It is set by the controller component of the resource driver whose name matches the DriverName set in the ResourceClaimStatus this ResourceHandle is embedded in. It is set at allocation time and is intended for processing by the kubelet plugin whose name matches the DriverName set in this ResourceHandle.
1797
-
1798
- The maximum size of this field is 16KiB. This may get increased in the future, but not reduced.
3546
+ DriverName is the name used by the DRA driver kubelet plugin.
1799
3547
  """
1800
- return pulumi.get(self, "data")
3548
+ return pulumi.get(self, "driver_name")
1801
3549
 
1802
3550
  @property
1803
- @pulumi.getter(name="driverName")
1804
- def driver_name(self) -> Optional[str]:
3551
+ @pulumi.getter
3552
+ def parameters(self) -> Optional[Any]:
1805
3553
  """
1806
- DriverName specifies the name of the resource driver whose kubelet plugin should be invoked to process this ResourceHandle's data once it lands on a node. This may differ from the DriverName set in ResourceClaimStatus this ResourceHandle is embedded in.
3554
+ Parameters can be arbitrary setup parameters. They are ignored while allocating a claim.
1807
3555
  """
1808
- return pulumi.get(self, "driver_name")
3556
+ return pulumi.get(self, "parameters")
1809
3557
 
1810
3558