pulumi-kubernetes 4.10.0a1710288589__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.0a1710288589.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.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/WHEEL +1 -1
  597. pulumi_kubernetes-4.10.0a1710288589.dist-info/RECORD +0 -592
  598. {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/top_level.txt +0 -0
@@ -4,36 +4,113 @@
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 core as _core
12
17
  from ... import meta as _meta
13
18
 
14
19
  __all__ = [
15
20
  'CronJobSpecPatchArgs',
21
+ 'CronJobSpecPatchArgsDict',
16
22
  'CronJobSpecArgs',
23
+ 'CronJobSpecArgsDict',
17
24
  'CronJobStatusArgs',
25
+ 'CronJobStatusArgsDict',
18
26
  'CronJobArgs',
27
+ 'CronJobArgsDict',
19
28
  'JobConditionArgs',
29
+ 'JobConditionArgsDict',
20
30
  'JobSpecPatchArgs',
31
+ 'JobSpecPatchArgsDict',
21
32
  'JobSpecArgs',
33
+ 'JobSpecArgsDict',
22
34
  'JobStatusArgs',
35
+ 'JobStatusArgsDict',
23
36
  'JobTemplateSpecPatchArgs',
37
+ 'JobTemplateSpecPatchArgsDict',
24
38
  'JobTemplateSpecArgs',
39
+ 'JobTemplateSpecArgsDict',
25
40
  'JobArgs',
41
+ 'JobArgsDict',
26
42
  'PodFailurePolicyOnExitCodesRequirementPatchArgs',
43
+ 'PodFailurePolicyOnExitCodesRequirementPatchArgsDict',
27
44
  'PodFailurePolicyOnExitCodesRequirementArgs',
45
+ 'PodFailurePolicyOnExitCodesRequirementArgsDict',
28
46
  'PodFailurePolicyOnPodConditionsPatternPatchArgs',
47
+ 'PodFailurePolicyOnPodConditionsPatternPatchArgsDict',
29
48
  'PodFailurePolicyOnPodConditionsPatternArgs',
49
+ 'PodFailurePolicyOnPodConditionsPatternArgsDict',
30
50
  'PodFailurePolicyPatchArgs',
51
+ 'PodFailurePolicyPatchArgsDict',
31
52
  'PodFailurePolicyRulePatchArgs',
53
+ 'PodFailurePolicyRulePatchArgsDict',
32
54
  'PodFailurePolicyRuleArgs',
55
+ 'PodFailurePolicyRuleArgsDict',
33
56
  'PodFailurePolicyArgs',
57
+ 'PodFailurePolicyArgsDict',
58
+ 'SuccessPolicyPatchArgs',
59
+ 'SuccessPolicyPatchArgsDict',
60
+ 'SuccessPolicyRulePatchArgs',
61
+ 'SuccessPolicyRulePatchArgsDict',
62
+ 'SuccessPolicyRuleArgs',
63
+ 'SuccessPolicyRuleArgsDict',
64
+ 'SuccessPolicyArgs',
65
+ 'SuccessPolicyArgsDict',
34
66
  'UncountedTerminatedPodsArgs',
67
+ 'UncountedTerminatedPodsArgsDict',
35
68
  ]
36
69
 
70
+ MYPY = False
71
+
72
+ if not MYPY:
73
+ class CronJobSpecPatchArgsDict(TypedDict):
74
+ """
75
+ CronJobSpec describes how the job execution will look like and when it will actually run.
76
+ """
77
+ concurrency_policy: NotRequired[pulumi.Input[str]]
78
+ """
79
+ Specifies how to treat concurrent executions of a Job. Valid values are:
80
+
81
+ - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
82
+ """
83
+ failed_jobs_history_limit: NotRequired[pulumi.Input[int]]
84
+ """
85
+ The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.
86
+ """
87
+ job_template: NotRequired[pulumi.Input['JobTemplateSpecPatchArgsDict']]
88
+ """
89
+ Specifies the job that will be created when executing a CronJob.
90
+ """
91
+ schedule: NotRequired[pulumi.Input[str]]
92
+ """
93
+ The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
94
+ """
95
+ starting_deadline_seconds: NotRequired[pulumi.Input[int]]
96
+ """
97
+ Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
98
+ """
99
+ successful_jobs_history_limit: NotRequired[pulumi.Input[int]]
100
+ """
101
+ The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.
102
+ """
103
+ suspend: NotRequired[pulumi.Input[bool]]
104
+ """
105
+ This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.
106
+ """
107
+ time_zone: NotRequired[pulumi.Input[str]]
108
+ """
109
+ The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones
110
+ """
111
+ elif False:
112
+ CronJobSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
113
+
37
114
  @pulumi.input_type
38
115
  class CronJobSpecPatchArgs:
39
116
  def __init__(__self__, *,
@@ -174,6 +251,48 @@ class CronJobSpecPatchArgs:
174
251
  pulumi.set(self, "time_zone", value)
175
252
 
176
253
 
254
+ if not MYPY:
255
+ class CronJobSpecArgsDict(TypedDict):
256
+ """
257
+ CronJobSpec describes how the job execution will look like and when it will actually run.
258
+ """
259
+ job_template: pulumi.Input['JobTemplateSpecArgsDict']
260
+ """
261
+ Specifies the job that will be created when executing a CronJob.
262
+ """
263
+ schedule: pulumi.Input[str]
264
+ """
265
+ The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
266
+ """
267
+ concurrency_policy: NotRequired[pulumi.Input[str]]
268
+ """
269
+ Specifies how to treat concurrent executions of a Job. Valid values are:
270
+
271
+ - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
272
+ """
273
+ failed_jobs_history_limit: NotRequired[pulumi.Input[int]]
274
+ """
275
+ The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.
276
+ """
277
+ starting_deadline_seconds: NotRequired[pulumi.Input[int]]
278
+ """
279
+ Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
280
+ """
281
+ successful_jobs_history_limit: NotRequired[pulumi.Input[int]]
282
+ """
283
+ The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.
284
+ """
285
+ suspend: NotRequired[pulumi.Input[bool]]
286
+ """
287
+ This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.
288
+ """
289
+ time_zone: NotRequired[pulumi.Input[str]]
290
+ """
291
+ The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones
292
+ """
293
+ elif False:
294
+ CronJobSpecArgsDict: TypeAlias = Mapping[str, Any]
295
+
177
296
  @pulumi.input_type
178
297
  class CronJobSpecArgs:
179
298
  def __init__(__self__, *,
@@ -312,6 +431,26 @@ class CronJobSpecArgs:
312
431
  pulumi.set(self, "time_zone", value)
313
432
 
314
433
 
434
+ if not MYPY:
435
+ class CronJobStatusArgsDict(TypedDict):
436
+ """
437
+ CronJobStatus represents the current state of a cron job.
438
+ """
439
+ active: NotRequired[pulumi.Input[Sequence[pulumi.Input['_core.v1.ObjectReferenceArgsDict']]]]
440
+ """
441
+ A list of pointers to currently running jobs.
442
+ """
443
+ last_schedule_time: NotRequired[pulumi.Input[str]]
444
+ """
445
+ Information when was the last time the job was successfully scheduled.
446
+ """
447
+ last_successful_time: NotRequired[pulumi.Input[str]]
448
+ """
449
+ Information when was the last time the job successfully completed.
450
+ """
451
+ elif False:
452
+ CronJobStatusArgsDict: TypeAlias = Mapping[str, Any]
453
+
315
454
  @pulumi.input_type
316
455
  class CronJobStatusArgs:
317
456
  def __init__(__self__, *,
@@ -368,6 +507,34 @@ class CronJobStatusArgs:
368
507
  pulumi.set(self, "last_successful_time", value)
369
508
 
370
509
 
510
+ if not MYPY:
511
+ class CronJobArgsDict(TypedDict):
512
+ """
513
+ CronJob represents the configuration of a single cron job.
514
+ """
515
+ api_version: NotRequired[pulumi.Input[str]]
516
+ """
517
+ 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
518
+ """
519
+ kind: NotRequired[pulumi.Input[str]]
520
+ """
521
+ 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
522
+ """
523
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
524
+ """
525
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
526
+ """
527
+ spec: NotRequired[pulumi.Input['CronJobSpecArgsDict']]
528
+ """
529
+ Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
530
+ """
531
+ status: NotRequired[pulumi.Input['CronJobStatusArgsDict']]
532
+ """
533
+ Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
534
+ """
535
+ elif False:
536
+ CronJobArgsDict: TypeAlias = Mapping[str, Any]
537
+
371
538
  @pulumi.input_type
372
539
  class CronJobArgs:
373
540
  def __init__(__self__, *,
@@ -456,6 +623,38 @@ class CronJobArgs:
456
623
  pulumi.set(self, "status", value)
457
624
 
458
625
 
626
+ if not MYPY:
627
+ class JobConditionArgsDict(TypedDict):
628
+ """
629
+ JobCondition describes current state of a job.
630
+ """
631
+ status: pulumi.Input[str]
632
+ """
633
+ Status of the condition, one of True, False, Unknown.
634
+ """
635
+ type: pulumi.Input[str]
636
+ """
637
+ Type of job condition, Complete or Failed.
638
+ """
639
+ last_probe_time: NotRequired[pulumi.Input[str]]
640
+ """
641
+ Last time the condition was checked.
642
+ """
643
+ last_transition_time: NotRequired[pulumi.Input[str]]
644
+ """
645
+ Last time the condition transit from one status to another.
646
+ """
647
+ message: NotRequired[pulumi.Input[str]]
648
+ """
649
+ Human readable message indicating details about last transition.
650
+ """
651
+ reason: NotRequired[pulumi.Input[str]]
652
+ """
653
+ (brief) reason for the condition's last transition.
654
+ """
655
+ elif False:
656
+ JobConditionArgsDict: TypeAlias = Mapping[str, Any]
657
+
459
658
  @pulumi.input_type
460
659
  class JobConditionArgs:
461
660
  def __init__(__self__, *,
@@ -558,6 +757,93 @@ class JobConditionArgs:
558
757
  pulumi.set(self, "reason", value)
559
758
 
560
759
 
760
+ if not MYPY:
761
+ class JobSpecPatchArgsDict(TypedDict):
762
+ """
763
+ JobSpec describes how the job execution will look like.
764
+ """
765
+ active_deadline_seconds: NotRequired[pulumi.Input[int]]
766
+ """
767
+ Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.
768
+ """
769
+ backoff_limit: NotRequired[pulumi.Input[int]]
770
+ """
771
+ Specifies the number of retries before marking this job failed. Defaults to 6
772
+ """
773
+ backoff_limit_per_index: NotRequired[pulumi.Input[int]]
774
+ """
775
+ Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
776
+ """
777
+ completion_mode: NotRequired[pulumi.Input[str]]
778
+ """
779
+ completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.
780
+
781
+ `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.
782
+
783
+ `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.
784
+
785
+ More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
786
+ """
787
+ completions: NotRequired[pulumi.Input[int]]
788
+ """
789
+ Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
790
+ """
791
+ managed_by: NotRequired[pulumi.Input[str]]
792
+ """
793
+ ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
794
+
795
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
796
+ """
797
+ manual_selector: NotRequired[pulumi.Input[bool]]
798
+ """
799
+ manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
800
+ """
801
+ max_failed_indexes: NotRequired[pulumi.Input[int]]
802
+ """
803
+ Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
804
+ """
805
+ parallelism: NotRequired[pulumi.Input[int]]
806
+ """
807
+ Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
808
+ """
809
+ pod_failure_policy: NotRequired[pulumi.Input['PodFailurePolicyPatchArgsDict']]
810
+ """
811
+ Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
812
+ """
813
+ pod_replacement_policy: NotRequired[pulumi.Input[str]]
814
+ """
815
+ podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
816
+ when they are terminating (has a metadata.deletionTimestamp) or failed.
817
+ - Failed means to wait until a previously created Pod is fully terminated (has phase
818
+ Failed or Succeeded) before creating a replacement Pod.
819
+
820
+ When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.
821
+ """
822
+ selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
823
+ """
824
+ A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
825
+ """
826
+ success_policy: NotRequired[pulumi.Input['SuccessPolicyPatchArgsDict']]
827
+ """
828
+ successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
829
+
830
+ This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
831
+ """
832
+ suspend: NotRequired[pulumi.Input[bool]]
833
+ """
834
+ suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
835
+ """
836
+ template: NotRequired[pulumi.Input['_core.v1.PodTemplateSpecPatchArgsDict']]
837
+ """
838
+ Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
839
+ """
840
+ ttl_seconds_after_finished: NotRequired[pulumi.Input[int]]
841
+ """
842
+ ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
843
+ """
844
+ elif False:
845
+ JobSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
846
+
561
847
  @pulumi.input_type
562
848
  class JobSpecPatchArgs:
563
849
  def __init__(__self__, *,
@@ -566,12 +852,14 @@ class JobSpecPatchArgs:
566
852
  backoff_limit_per_index: Optional[pulumi.Input[int]] = None,
567
853
  completion_mode: Optional[pulumi.Input[str]] = None,
568
854
  completions: Optional[pulumi.Input[int]] = None,
855
+ managed_by: Optional[pulumi.Input[str]] = None,
569
856
  manual_selector: Optional[pulumi.Input[bool]] = None,
570
857
  max_failed_indexes: Optional[pulumi.Input[int]] = None,
571
858
  parallelism: Optional[pulumi.Input[int]] = None,
572
859
  pod_failure_policy: Optional[pulumi.Input['PodFailurePolicyPatchArgs']] = None,
573
860
  pod_replacement_policy: Optional[pulumi.Input[str]] = None,
574
861
  selector: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']] = None,
862
+ success_policy: Optional[pulumi.Input['SuccessPolicyPatchArgs']] = None,
575
863
  suspend: Optional[pulumi.Input[bool]] = None,
576
864
  template: Optional[pulumi.Input['_core.v1.PodTemplateSpecPatchArgs']] = None,
577
865
  ttl_seconds_after_finished: Optional[pulumi.Input[int]] = None):
@@ -588,12 +876,13 @@ class JobSpecPatchArgs:
588
876
 
589
877
  More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
590
878
  :param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
879
+ :param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
880
+
881
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
591
882
  :param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
592
883
  :param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
593
884
  :param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
594
885
  :param pulumi.Input['PodFailurePolicyPatchArgs'] pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
595
-
596
- This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
597
886
  :param pulumi.Input[str] pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
598
887
  when they are terminating (has a metadata.deletionTimestamp) or failed.
599
888
  - Failed means to wait until a previously created Pod is fully terminated (has phase
@@ -601,6 +890,9 @@ class JobSpecPatchArgs:
601
890
 
602
891
  When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.
603
892
  :param pulumi.Input['_meta.v1.LabelSelectorPatchArgs'] selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
893
+ :param pulumi.Input['SuccessPolicyPatchArgs'] success_policy: successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
894
+
895
+ This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
604
896
  :param pulumi.Input[bool] suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
605
897
  :param pulumi.Input['_core.v1.PodTemplateSpecPatchArgs'] template: Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
606
898
  :param pulumi.Input[int] ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
@@ -615,6 +907,8 @@ class JobSpecPatchArgs:
615
907
  pulumi.set(__self__, "completion_mode", completion_mode)
616
908
  if completions is not None:
617
909
  pulumi.set(__self__, "completions", completions)
910
+ if managed_by is not None:
911
+ pulumi.set(__self__, "managed_by", managed_by)
618
912
  if manual_selector is not None:
619
913
  pulumi.set(__self__, "manual_selector", manual_selector)
620
914
  if max_failed_indexes is not None:
@@ -627,6 +921,8 @@ class JobSpecPatchArgs:
627
921
  pulumi.set(__self__, "pod_replacement_policy", pod_replacement_policy)
628
922
  if selector is not None:
629
923
  pulumi.set(__self__, "selector", selector)
924
+ if success_policy is not None:
925
+ pulumi.set(__self__, "success_policy", success_policy)
630
926
  if suspend is not None:
631
927
  pulumi.set(__self__, "suspend", suspend)
632
928
  if template is not None:
@@ -700,6 +996,20 @@ class JobSpecPatchArgs:
700
996
  def completions(self, value: Optional[pulumi.Input[int]]):
701
997
  pulumi.set(self, "completions", value)
702
998
 
999
+ @property
1000
+ @pulumi.getter(name="managedBy")
1001
+ def managed_by(self) -> Optional[pulumi.Input[str]]:
1002
+ """
1003
+ ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1004
+
1005
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1006
+ """
1007
+ return pulumi.get(self, "managed_by")
1008
+
1009
+ @managed_by.setter
1010
+ def managed_by(self, value: Optional[pulumi.Input[str]]):
1011
+ pulumi.set(self, "managed_by", value)
1012
+
703
1013
  @property
704
1014
  @pulumi.getter(name="manualSelector")
705
1015
  def manual_selector(self) -> Optional[pulumi.Input[bool]]:
@@ -741,8 +1051,6 @@ class JobSpecPatchArgs:
741
1051
  def pod_failure_policy(self) -> Optional[pulumi.Input['PodFailurePolicyPatchArgs']]:
742
1052
  """
743
1053
  Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
744
-
745
- This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
746
1054
  """
747
1055
  return pulumi.get(self, "pod_failure_policy")
748
1056
 
@@ -779,6 +1087,20 @@ class JobSpecPatchArgs:
779
1087
  def selector(self, value: Optional[pulumi.Input['_meta.v1.LabelSelectorPatchArgs']]):
780
1088
  pulumi.set(self, "selector", value)
781
1089
 
1090
+ @property
1091
+ @pulumi.getter(name="successPolicy")
1092
+ def success_policy(self) -> Optional[pulumi.Input['SuccessPolicyPatchArgs']]:
1093
+ """
1094
+ successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
1095
+
1096
+ This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
1097
+ """
1098
+ return pulumi.get(self, "success_policy")
1099
+
1100
+ @success_policy.setter
1101
+ def success_policy(self, value: Optional[pulumi.Input['SuccessPolicyPatchArgs']]):
1102
+ pulumi.set(self, "success_policy", value)
1103
+
782
1104
  @property
783
1105
  @pulumi.getter
784
1106
  def suspend(self) -> Optional[pulumi.Input[bool]]:
@@ -816,76 +1138,173 @@ class JobSpecPatchArgs:
816
1138
  pulumi.set(self, "ttl_seconds_after_finished", value)
817
1139
 
818
1140
 
819
- @pulumi.input_type
820
- class JobSpecArgs:
821
- def __init__(__self__, *,
822
- template: pulumi.Input['_core.v1.PodTemplateSpecArgs'],
823
- active_deadline_seconds: Optional[pulumi.Input[int]] = None,
824
- backoff_limit: Optional[pulumi.Input[int]] = None,
825
- backoff_limit_per_index: Optional[pulumi.Input[int]] = None,
826
- completion_mode: Optional[pulumi.Input[str]] = None,
827
- completions: Optional[pulumi.Input[int]] = None,
828
- manual_selector: Optional[pulumi.Input[bool]] = None,
829
- max_failed_indexes: Optional[pulumi.Input[int]] = None,
830
- parallelism: Optional[pulumi.Input[int]] = None,
831
- pod_failure_policy: Optional[pulumi.Input['PodFailurePolicyArgs']] = None,
832
- pod_replacement_policy: Optional[pulumi.Input[str]] = None,
833
- selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None,
834
- suspend: Optional[pulumi.Input[bool]] = None,
835
- ttl_seconds_after_finished: Optional[pulumi.Input[int]] = None):
1141
+ if not MYPY:
1142
+ class JobSpecArgsDict(TypedDict):
836
1143
  """
837
1144
  JobSpec describes how the job execution will look like.
838
- :param pulumi.Input['_core.v1.PodTemplateSpecArgs'] template: Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
839
- :param pulumi.Input[int] active_deadline_seconds: Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.
840
- :param pulumi.Input[int] backoff_limit: Specifies the number of retries before marking this job failed. Defaults to 6
841
- :param pulumi.Input[int] backoff_limit_per_index: Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
842
- :param pulumi.Input[str] completion_mode: completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.
843
-
844
- `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.
845
-
846
- `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.
847
-
848
- More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
849
- :param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
850
- :param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
851
- :param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
852
- :param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
853
- :param pulumi.Input['PodFailurePolicyArgs'] pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
854
-
855
- This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
856
- :param pulumi.Input[str] pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
857
- when they are terminating (has a metadata.deletionTimestamp) or failed.
858
- - Failed means to wait until a previously created Pod is fully terminated (has phase
859
- Failed or Succeeded) before creating a replacement Pod.
860
-
861
- When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.
862
- :param pulumi.Input['_meta.v1.LabelSelectorArgs'] selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
863
- :param pulumi.Input[bool] suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
864
- :param pulumi.Input[int] ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
865
1145
  """
866
- pulumi.set(__self__, "template", template)
867
- if active_deadline_seconds is not None:
868
- pulumi.set(__self__, "active_deadline_seconds", active_deadline_seconds)
869
- if backoff_limit is not None:
870
- pulumi.set(__self__, "backoff_limit", backoff_limit)
871
- if backoff_limit_per_index is not None:
872
- pulumi.set(__self__, "backoff_limit_per_index", backoff_limit_per_index)
873
- if completion_mode is not None:
874
- pulumi.set(__self__, "completion_mode", completion_mode)
875
- if completions is not None:
876
- pulumi.set(__self__, "completions", completions)
877
- if manual_selector is not None:
878
- pulumi.set(__self__, "manual_selector", manual_selector)
879
- if max_failed_indexes is not None:
880
- pulumi.set(__self__, "max_failed_indexes", max_failed_indexes)
881
- if parallelism is not None:
882
- pulumi.set(__self__, "parallelism", parallelism)
883
- if pod_failure_policy is not None:
884
- pulumi.set(__self__, "pod_failure_policy", pod_failure_policy)
1146
+ template: pulumi.Input['_core.v1.PodTemplateSpecArgsDict']
1147
+ """
1148
+ Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1149
+ """
1150
+ active_deadline_seconds: NotRequired[pulumi.Input[int]]
1151
+ """
1152
+ Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.
1153
+ """
1154
+ backoff_limit: NotRequired[pulumi.Input[int]]
1155
+ """
1156
+ Specifies the number of retries before marking this job failed. Defaults to 6
1157
+ """
1158
+ backoff_limit_per_index: NotRequired[pulumi.Input[int]]
1159
+ """
1160
+ Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1161
+ """
1162
+ completion_mode: NotRequired[pulumi.Input[str]]
1163
+ """
1164
+ completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.
1165
+
1166
+ `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.
1167
+
1168
+ `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.
1169
+
1170
+ More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
1171
+ """
1172
+ completions: NotRequired[pulumi.Input[int]]
1173
+ """
1174
+ Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1175
+ """
1176
+ managed_by: NotRequired[pulumi.Input[str]]
1177
+ """
1178
+ ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1179
+
1180
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1181
+ """
1182
+ manual_selector: NotRequired[pulumi.Input[bool]]
1183
+ """
1184
+ manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
1185
+ """
1186
+ max_failed_indexes: NotRequired[pulumi.Input[int]]
1187
+ """
1188
+ Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1189
+ """
1190
+ parallelism: NotRequired[pulumi.Input[int]]
1191
+ """
1192
+ Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1193
+ """
1194
+ pod_failure_policy: NotRequired[pulumi.Input['PodFailurePolicyArgsDict']]
1195
+ """
1196
+ Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
1197
+ """
1198
+ pod_replacement_policy: NotRequired[pulumi.Input[str]]
1199
+ """
1200
+ podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
1201
+ when they are terminating (has a metadata.deletionTimestamp) or failed.
1202
+ - Failed means to wait until a previously created Pod is fully terminated (has phase
1203
+ Failed or Succeeded) before creating a replacement Pod.
1204
+
1205
+ When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.
1206
+ """
1207
+ selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
1208
+ """
1209
+ A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
1210
+ """
1211
+ success_policy: NotRequired[pulumi.Input['SuccessPolicyArgsDict']]
1212
+ """
1213
+ successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
1214
+
1215
+ This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
1216
+ """
1217
+ suspend: NotRequired[pulumi.Input[bool]]
1218
+ """
1219
+ suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
1220
+ """
1221
+ ttl_seconds_after_finished: NotRequired[pulumi.Input[int]]
1222
+ """
1223
+ ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
1224
+ """
1225
+ elif False:
1226
+ JobSpecArgsDict: TypeAlias = Mapping[str, Any]
1227
+
1228
+ @pulumi.input_type
1229
+ class JobSpecArgs:
1230
+ def __init__(__self__, *,
1231
+ template: pulumi.Input['_core.v1.PodTemplateSpecArgs'],
1232
+ active_deadline_seconds: Optional[pulumi.Input[int]] = None,
1233
+ backoff_limit: Optional[pulumi.Input[int]] = None,
1234
+ backoff_limit_per_index: Optional[pulumi.Input[int]] = None,
1235
+ completion_mode: Optional[pulumi.Input[str]] = None,
1236
+ completions: Optional[pulumi.Input[int]] = None,
1237
+ managed_by: Optional[pulumi.Input[str]] = None,
1238
+ manual_selector: Optional[pulumi.Input[bool]] = None,
1239
+ max_failed_indexes: Optional[pulumi.Input[int]] = None,
1240
+ parallelism: Optional[pulumi.Input[int]] = None,
1241
+ pod_failure_policy: Optional[pulumi.Input['PodFailurePolicyArgs']] = None,
1242
+ pod_replacement_policy: Optional[pulumi.Input[str]] = None,
1243
+ selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None,
1244
+ success_policy: Optional[pulumi.Input['SuccessPolicyArgs']] = None,
1245
+ suspend: Optional[pulumi.Input[bool]] = None,
1246
+ ttl_seconds_after_finished: Optional[pulumi.Input[int]] = None):
1247
+ """
1248
+ JobSpec describes how the job execution will look like.
1249
+ :param pulumi.Input['_core.v1.PodTemplateSpecArgs'] template: Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1250
+ :param pulumi.Input[int] active_deadline_seconds: Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.
1251
+ :param pulumi.Input[int] backoff_limit: Specifies the number of retries before marking this job failed. Defaults to 6
1252
+ :param pulumi.Input[int] backoff_limit_per_index: Specifies the limit for the number of retries within an index before marking this index as failed. When enabled the number of failures per index is kept in the pod's batch.kubernetes.io/job-index-failure-count annotation. It can only be set when Job's completionMode=Indexed, and the Pod's restart policy is Never. The field is immutable. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1253
+ :param pulumi.Input[str] completion_mode: completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.
1254
+
1255
+ `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.
1256
+
1257
+ `Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.
1258
+
1259
+ More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.
1260
+ :param pulumi.Input[int] completions: Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1261
+ :param pulumi.Input[str] managed_by: ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1262
+
1263
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1264
+ :param pulumi.Input[bool] manual_selector: manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector
1265
+ :param pulumi.Input[int] max_failed_indexes: Specifies the maximal number of failed indexes before marking the Job as failed, when backoffLimitPerIndex is set. Once the number of failed indexes exceeds this number the entire Job is marked as Failed and its execution is terminated. When left as null the job continues execution of all of its indexes and is marked with the `Complete` Job condition. It can only be specified when backoffLimitPerIndex is set. It can be null or up to completions. It is required and must be less than or equal to 10^4 when is completions greater than 10^5. This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1266
+ :param pulumi.Input[int] parallelism: Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1267
+ :param pulumi.Input['PodFailurePolicyArgs'] pod_failure_policy: Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
1268
+ :param pulumi.Input[str] pod_replacement_policy: podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods
1269
+ when they are terminating (has a metadata.deletionTimestamp) or failed.
1270
+ - Failed means to wait until a previously created Pod is fully terminated (has phase
1271
+ Failed or Succeeded) before creating a replacement Pod.
1272
+
1273
+ When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default.
1274
+ :param pulumi.Input['_meta.v1.LabelSelectorArgs'] selector: A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
1275
+ :param pulumi.Input['SuccessPolicyArgs'] success_policy: successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
1276
+
1277
+ This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
1278
+ :param pulumi.Input[bool] suspend: suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.
1279
+ :param pulumi.Input[int] ttl_seconds_after_finished: ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.
1280
+ """
1281
+ pulumi.set(__self__, "template", template)
1282
+ if active_deadline_seconds is not None:
1283
+ pulumi.set(__self__, "active_deadline_seconds", active_deadline_seconds)
1284
+ if backoff_limit is not None:
1285
+ pulumi.set(__self__, "backoff_limit", backoff_limit)
1286
+ if backoff_limit_per_index is not None:
1287
+ pulumi.set(__self__, "backoff_limit_per_index", backoff_limit_per_index)
1288
+ if completion_mode is not None:
1289
+ pulumi.set(__self__, "completion_mode", completion_mode)
1290
+ if completions is not None:
1291
+ pulumi.set(__self__, "completions", completions)
1292
+ if managed_by is not None:
1293
+ pulumi.set(__self__, "managed_by", managed_by)
1294
+ if manual_selector is not None:
1295
+ pulumi.set(__self__, "manual_selector", manual_selector)
1296
+ if max_failed_indexes is not None:
1297
+ pulumi.set(__self__, "max_failed_indexes", max_failed_indexes)
1298
+ if parallelism is not None:
1299
+ pulumi.set(__self__, "parallelism", parallelism)
1300
+ if pod_failure_policy is not None:
1301
+ pulumi.set(__self__, "pod_failure_policy", pod_failure_policy)
885
1302
  if pod_replacement_policy is not None:
886
1303
  pulumi.set(__self__, "pod_replacement_policy", pod_replacement_policy)
887
1304
  if selector is not None:
888
1305
  pulumi.set(__self__, "selector", selector)
1306
+ if success_policy is not None:
1307
+ pulumi.set(__self__, "success_policy", success_policy)
889
1308
  if suspend is not None:
890
1309
  pulumi.set(__self__, "suspend", suspend)
891
1310
  if ttl_seconds_after_finished is not None:
@@ -969,6 +1388,20 @@ class JobSpecArgs:
969
1388
  def completions(self, value: Optional[pulumi.Input[int]]):
970
1389
  pulumi.set(self, "completions", value)
971
1390
 
1391
+ @property
1392
+ @pulumi.getter(name="managedBy")
1393
+ def managed_by(self) -> Optional[pulumi.Input[str]]:
1394
+ """
1395
+ ManagedBy field indicates the controller that manages a Job. The k8s Job controller reconciles jobs which don't have this field at all or the field value is the reserved string `kubernetes.io/job-controller`, but skips reconciling Jobs with a custom value for this field. The value must be a valid domain-prefixed path (e.g. acme.io/foo) - all characters before the first "/" must be a valid subdomain as defined by RFC 1123. All characters trailing the first "/" must be valid HTTP Path characters as defined by RFC 3986. The value cannot exceed 63 characters. This field is immutable.
1396
+
1397
+ This field is beta-level. The job controller accepts setting the field when the feature gate JobManagedBy is enabled (enabled by default).
1398
+ """
1399
+ return pulumi.get(self, "managed_by")
1400
+
1401
+ @managed_by.setter
1402
+ def managed_by(self, value: Optional[pulumi.Input[str]]):
1403
+ pulumi.set(self, "managed_by", value)
1404
+
972
1405
  @property
973
1406
  @pulumi.getter(name="manualSelector")
974
1407
  def manual_selector(self) -> Optional[pulumi.Input[bool]]:
@@ -1010,8 +1443,6 @@ class JobSpecArgs:
1010
1443
  def pod_failure_policy(self) -> Optional[pulumi.Input['PodFailurePolicyArgs']]:
1011
1444
  """
1012
1445
  Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.
1013
-
1014
- This field is beta-level. It can be used when the `JobPodFailurePolicy` feature gate is enabled (enabled by default).
1015
1446
  """
1016
1447
  return pulumi.get(self, "pod_failure_policy")
1017
1448
 
@@ -1048,6 +1479,20 @@ class JobSpecArgs:
1048
1479
  def selector(self, value: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]):
1049
1480
  pulumi.set(self, "selector", value)
1050
1481
 
1482
+ @property
1483
+ @pulumi.getter(name="successPolicy")
1484
+ def success_policy(self) -> Optional[pulumi.Input['SuccessPolicyArgs']]:
1485
+ """
1486
+ successPolicy specifies the policy when the Job can be declared as succeeded. If empty, the default behavior applies - the Job is declared as succeeded only when the number of succeeded pods equals to the completions. When the field is specified, it must be immutable and works only for the Indexed Jobs. Once the Job meets the SuccessPolicy, the lingering pods are terminated.
1487
+
1488
+ This field is beta-level. To use this field, you must enable the `JobSuccessPolicy` feature gate (enabled by default).
1489
+ """
1490
+ return pulumi.get(self, "success_policy")
1491
+
1492
+ @success_policy.setter
1493
+ def success_policy(self, value: Optional[pulumi.Input['SuccessPolicyArgs']]):
1494
+ pulumi.set(self, "success_policy", value)
1495
+
1051
1496
  @property
1052
1497
  @pulumi.getter
1053
1498
  def suspend(self) -> Optional[pulumi.Input[bool]]:
@@ -1073,6 +1518,75 @@ class JobSpecArgs:
1073
1518
  pulumi.set(self, "ttl_seconds_after_finished", value)
1074
1519
 
1075
1520
 
1521
+ if not MYPY:
1522
+ class JobStatusArgsDict(TypedDict):
1523
+ """
1524
+ JobStatus represents the current state of a Job.
1525
+ """
1526
+ active: NotRequired[pulumi.Input[int]]
1527
+ """
1528
+ The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
1529
+ """
1530
+ completed_indexes: NotRequired[pulumi.Input[str]]
1531
+ """
1532
+ completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
1533
+ """
1534
+ completion_time: NotRequired[pulumi.Input[str]]
1535
+ """
1536
+ Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.
1537
+ """
1538
+ conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['JobConditionArgsDict']]]]
1539
+ """
1540
+ The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
1541
+
1542
+ A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
1543
+
1544
+ More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1545
+ """
1546
+ failed: NotRequired[pulumi.Input[int]]
1547
+ """
1548
+ The number of pods which reached phase Failed. The value increases monotonically.
1549
+ """
1550
+ failed_indexes: NotRequired[pulumi.Input[str]]
1551
+ """
1552
+ FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
1553
+
1554
+ This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1555
+ """
1556
+ ready: NotRequired[pulumi.Input[int]]
1557
+ """
1558
+ The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
1559
+ """
1560
+ start_time: NotRequired[pulumi.Input[str]]
1561
+ """
1562
+ Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
1563
+
1564
+ Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
1565
+ """
1566
+ succeeded: NotRequired[pulumi.Input[int]]
1567
+ """
1568
+ The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
1569
+ """
1570
+ terminating: NotRequired[pulumi.Input[int]]
1571
+ """
1572
+ The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).
1573
+
1574
+ This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).
1575
+ """
1576
+ uncounted_terminated_pods: NotRequired[pulumi.Input['UncountedTerminatedPodsArgsDict']]
1577
+ """
1578
+ uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.
1579
+
1580
+ The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:
1581
+
1582
+ 1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding
1583
+ counter.
1584
+
1585
+ Old jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.
1586
+ """
1587
+ elif False:
1588
+ JobStatusArgsDict: TypeAlias = Mapping[str, Any]
1589
+
1076
1590
  @pulumi.input_type
1077
1591
  class JobStatusArgs:
1078
1592
  def __init__(__self__, *,
@@ -1089,15 +1603,23 @@ class JobStatusArgs:
1089
1603
  uncounted_terminated_pods: Optional[pulumi.Input['UncountedTerminatedPodsArgs']] = None):
1090
1604
  """
1091
1605
  JobStatus represents the current state of a Job.
1092
- :param pulumi.Input[int] active: The number of pending and running pods.
1606
+ :param pulumi.Input[int] active: The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
1093
1607
  :param pulumi.Input[str] completed_indexes: completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
1094
- :param pulumi.Input[str] completion_time: Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.
1095
- :param pulumi.Input[Sequence[pulumi.Input['JobConditionArgs']]] conditions: The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1096
- :param pulumi.Input[int] failed: The number of pods which reached phase Failed.
1097
- :param pulumi.Input[str] failed_indexes: FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1098
- :param pulumi.Input[int] ready: The number of pods which have a Ready condition.
1608
+ :param pulumi.Input[str] completion_time: Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.
1609
+ :param pulumi.Input[Sequence[pulumi.Input['JobConditionArgs']]] conditions: The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
1610
+
1611
+ A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
1612
+
1613
+ More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1614
+ :param pulumi.Input[int] failed: The number of pods which reached phase Failed. The value increases monotonically.
1615
+ :param pulumi.Input[str] failed_indexes: FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
1616
+
1617
+ This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1618
+ :param pulumi.Input[int] ready: The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
1099
1619
  :param pulumi.Input[str] start_time: Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
1100
- :param pulumi.Input[int] succeeded: The number of pods which reached phase Succeeded.
1620
+
1621
+ Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
1622
+ :param pulumi.Input[int] succeeded: The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
1101
1623
  :param pulumi.Input[int] terminating: The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).
1102
1624
 
1103
1625
  This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).
@@ -1108,7 +1630,7 @@ class JobStatusArgs:
1108
1630
  1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding
1109
1631
  counter.
1110
1632
 
1111
- Old jobs might not be tracked using this field, in which case the field remains null.
1633
+ Old jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.
1112
1634
  """
1113
1635
  if active is not None:
1114
1636
  pulumi.set(__self__, "active", active)
@@ -1137,7 +1659,7 @@ class JobStatusArgs:
1137
1659
  @pulumi.getter
1138
1660
  def active(self) -> Optional[pulumi.Input[int]]:
1139
1661
  """
1140
- The number of pending and running pods.
1662
+ The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
1141
1663
  """
1142
1664
  return pulumi.get(self, "active")
1143
1665
 
@@ -1161,7 +1683,7 @@ class JobStatusArgs:
1161
1683
  @pulumi.getter(name="completionTime")
1162
1684
  def completion_time(self) -> Optional[pulumi.Input[str]]:
1163
1685
  """
1164
- Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.
1686
+ Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.
1165
1687
  """
1166
1688
  return pulumi.get(self, "completion_time")
1167
1689
 
@@ -1173,7 +1695,11 @@ class JobStatusArgs:
1173
1695
  @pulumi.getter
1174
1696
  def conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['JobConditionArgs']]]]:
1175
1697
  """
1176
- The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1698
+ The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
1699
+
1700
+ A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
1701
+
1702
+ More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
1177
1703
  """
1178
1704
  return pulumi.get(self, "conditions")
1179
1705
 
@@ -1185,7 +1711,7 @@ class JobStatusArgs:
1185
1711
  @pulumi.getter
1186
1712
  def failed(self) -> Optional[pulumi.Input[int]]:
1187
1713
  """
1188
- The number of pods which reached phase Failed.
1714
+ The number of pods which reached phase Failed. The value increases monotonically.
1189
1715
  """
1190
1716
  return pulumi.get(self, "failed")
1191
1717
 
@@ -1197,7 +1723,9 @@ class JobStatusArgs:
1197
1723
  @pulumi.getter(name="failedIndexes")
1198
1724
  def failed_indexes(self) -> Optional[pulumi.Input[str]]:
1199
1725
  """
1200
- FailedIndexes holds the failed indexes when backoffLimitPerIndex=true. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1726
+ FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
1727
+
1728
+ This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
1201
1729
  """
1202
1730
  return pulumi.get(self, "failed_indexes")
1203
1731
 
@@ -1209,7 +1737,7 @@ class JobStatusArgs:
1209
1737
  @pulumi.getter
1210
1738
  def ready(self) -> Optional[pulumi.Input[int]]:
1211
1739
  """
1212
- The number of pods which have a Ready condition.
1740
+ The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
1213
1741
  """
1214
1742
  return pulumi.get(self, "ready")
1215
1743
 
@@ -1222,6 +1750,8 @@ class JobStatusArgs:
1222
1750
  def start_time(self) -> Optional[pulumi.Input[str]]:
1223
1751
  """
1224
1752
  Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
1753
+
1754
+ Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
1225
1755
  """
1226
1756
  return pulumi.get(self, "start_time")
1227
1757
 
@@ -1233,7 +1763,7 @@ class JobStatusArgs:
1233
1763
  @pulumi.getter
1234
1764
  def succeeded(self) -> Optional[pulumi.Input[int]]:
1235
1765
  """
1236
- The number of pods which reached phase Succeeded.
1766
+ The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
1237
1767
  """
1238
1768
  return pulumi.get(self, "succeeded")
1239
1769
 
@@ -1266,7 +1796,7 @@ class JobStatusArgs:
1266
1796
  1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding
1267
1797
  counter.
1268
1798
 
1269
- Old jobs might not be tracked using this field, in which case the field remains null.
1799
+ Old jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.
1270
1800
  """
1271
1801
  return pulumi.get(self, "uncounted_terminated_pods")
1272
1802
 
@@ -1275,6 +1805,22 @@ class JobStatusArgs:
1275
1805
  pulumi.set(self, "uncounted_terminated_pods", value)
1276
1806
 
1277
1807
 
1808
+ if not MYPY:
1809
+ class JobTemplateSpecPatchArgsDict(TypedDict):
1810
+ """
1811
+ JobTemplateSpec describes the data a Job should have when created from a template
1812
+ """
1813
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaPatchArgsDict']]
1814
+ """
1815
+ Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1816
+ """
1817
+ spec: NotRequired[pulumi.Input['JobSpecPatchArgsDict']]
1818
+ """
1819
+ Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
1820
+ """
1821
+ elif False:
1822
+ JobTemplateSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
1823
+
1278
1824
  @pulumi.input_type
1279
1825
  class JobTemplateSpecPatchArgs:
1280
1826
  def __init__(__self__, *,
@@ -1315,6 +1861,22 @@ class JobTemplateSpecPatchArgs:
1315
1861
  pulumi.set(self, "spec", value)
1316
1862
 
1317
1863
 
1864
+ if not MYPY:
1865
+ class JobTemplateSpecArgsDict(TypedDict):
1866
+ """
1867
+ JobTemplateSpec describes the data a Job should have when created from a template
1868
+ """
1869
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
1870
+ """
1871
+ Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1872
+ """
1873
+ spec: NotRequired[pulumi.Input['JobSpecArgsDict']]
1874
+ """
1875
+ Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
1876
+ """
1877
+ elif False:
1878
+ JobTemplateSpecArgsDict: TypeAlias = Mapping[str, Any]
1879
+
1318
1880
  @pulumi.input_type
1319
1881
  class JobTemplateSpecArgs:
1320
1882
  def __init__(__self__, *,
@@ -1355,6 +1917,54 @@ class JobTemplateSpecArgs:
1355
1917
  pulumi.set(self, "spec", value)
1356
1918
 
1357
1919
 
1920
+ if not MYPY:
1921
+ class JobArgsDict(TypedDict):
1922
+ """
1923
+ Job represents the configuration of a single job.
1924
+
1925
+ This resource waits until its status is ready before registering success
1926
+ for create/update, and populating output properties from the current state of the resource.
1927
+ The following conditions are used to determine whether the resource creation has
1928
+ succeeded or failed:
1929
+
1930
+ 1. The Job's '.status.startTime' is set, which indicates that the Job has started running.
1931
+ 2. The Job's '.status.conditions' has a status of type 'Complete', and a 'status' set
1932
+ to 'True'.
1933
+ 3. The Job's '.status.conditions' do not have a status of type 'Failed', with a
1934
+ 'status' set to 'True'. If this condition is set, we should fail the Job immediately.
1935
+
1936
+ If the Job has not reached a Ready state after 10 minutes, it will
1937
+ time out and mark the resource update as Failed. You can override the default timeout value
1938
+ by setting the 'customTimeouts' option on the resource.
1939
+
1940
+ By default, if a resource failed to become ready in a previous update,
1941
+ Pulumi will continue to wait for readiness on the next update. If you would prefer
1942
+ to schedule a replacement for an unready resource on the next update, you can add the
1943
+ "pulumi.com/replaceUnready": "true" annotation to the resource definition.
1944
+ """
1945
+ api_version: NotRequired[pulumi.Input[str]]
1946
+ """
1947
+ 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
1948
+ """
1949
+ kind: NotRequired[pulumi.Input[str]]
1950
+ """
1951
+ 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
1952
+ """
1953
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
1954
+ """
1955
+ Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
1956
+ """
1957
+ spec: NotRequired[pulumi.Input['JobSpecArgsDict']]
1958
+ """
1959
+ Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
1960
+ """
1961
+ status: NotRequired[pulumi.Input['JobStatusArgsDict']]
1962
+ """
1963
+ Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
1964
+ """
1965
+ elif False:
1966
+ JobArgsDict: TypeAlias = Mapping[str, Any]
1967
+
1358
1968
  @pulumi.input_type
1359
1969
  class JobArgs:
1360
1970
  def __init__(__self__, *,
@@ -1463,6 +2073,34 @@ class JobArgs:
1463
2073
  pulumi.set(self, "status", value)
1464
2074
 
1465
2075
 
2076
+ if not MYPY:
2077
+ class PodFailurePolicyOnExitCodesRequirementPatchArgsDict(TypedDict):
2078
+ """
2079
+ PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.
2080
+ """
2081
+ container_name: NotRequired[pulumi.Input[str]]
2082
+ """
2083
+ Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.
2084
+ """
2085
+ operator: NotRequired[pulumi.Input[str]]
2086
+ """
2087
+ Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:
2088
+
2089
+ - In: the requirement is satisfied if at least one container exit code
2090
+ (might be multiple if there are multiple containers not restricted
2091
+ by the 'containerName' field) is in the set of specified values.
2092
+ - NotIn: the requirement is satisfied if at least one container exit code
2093
+ (might be multiple if there are multiple containers not restricted
2094
+ by the 'containerName' field) is not in the set of specified values.
2095
+ Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.
2096
+ """
2097
+ values: NotRequired[pulumi.Input[Sequence[pulumi.Input[int]]]]
2098
+ """
2099
+ Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.
2100
+ """
2101
+ elif False:
2102
+ PodFailurePolicyOnExitCodesRequirementPatchArgsDict: TypeAlias = Mapping[str, Any]
2103
+
1466
2104
  @pulumi.input_type
1467
2105
  class PodFailurePolicyOnExitCodesRequirementPatchArgs:
1468
2106
  def __init__(__self__, *,
@@ -1535,6 +2173,34 @@ class PodFailurePolicyOnExitCodesRequirementPatchArgs:
1535
2173
  pulumi.set(self, "values", value)
1536
2174
 
1537
2175
 
2176
+ if not MYPY:
2177
+ class PodFailurePolicyOnExitCodesRequirementArgsDict(TypedDict):
2178
+ """
2179
+ PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.
2180
+ """
2181
+ operator: pulumi.Input[str]
2182
+ """
2183
+ Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:
2184
+
2185
+ - In: the requirement is satisfied if at least one container exit code
2186
+ (might be multiple if there are multiple containers not restricted
2187
+ by the 'containerName' field) is in the set of specified values.
2188
+ - NotIn: the requirement is satisfied if at least one container exit code
2189
+ (might be multiple if there are multiple containers not restricted
2190
+ by the 'containerName' field) is not in the set of specified values.
2191
+ Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.
2192
+ """
2193
+ values: pulumi.Input[Sequence[pulumi.Input[int]]]
2194
+ """
2195
+ Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.
2196
+ """
2197
+ container_name: NotRequired[pulumi.Input[str]]
2198
+ """
2199
+ Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.
2200
+ """
2201
+ elif False:
2202
+ PodFailurePolicyOnExitCodesRequirementArgsDict: TypeAlias = Mapping[str, Any]
2203
+
1538
2204
  @pulumi.input_type
1539
2205
  class PodFailurePolicyOnExitCodesRequirementArgs:
1540
2206
  def __init__(__self__, *,
@@ -1605,6 +2271,22 @@ class PodFailurePolicyOnExitCodesRequirementArgs:
1605
2271
  pulumi.set(self, "container_name", value)
1606
2272
 
1607
2273
 
2274
+ if not MYPY:
2275
+ class PodFailurePolicyOnPodConditionsPatternPatchArgsDict(TypedDict):
2276
+ """
2277
+ PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
2278
+ """
2279
+ status: NotRequired[pulumi.Input[str]]
2280
+ """
2281
+ Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
2282
+ """
2283
+ type: NotRequired[pulumi.Input[str]]
2284
+ """
2285
+ Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
2286
+ """
2287
+ elif False:
2288
+ PodFailurePolicyOnPodConditionsPatternPatchArgsDict: TypeAlias = Mapping[str, Any]
2289
+
1608
2290
  @pulumi.input_type
1609
2291
  class PodFailurePolicyOnPodConditionsPatternPatchArgs:
1610
2292
  def __init__(__self__, *,
@@ -1645,6 +2327,22 @@ class PodFailurePolicyOnPodConditionsPatternPatchArgs:
1645
2327
  pulumi.set(self, "type", value)
1646
2328
 
1647
2329
 
2330
+ if not MYPY:
2331
+ class PodFailurePolicyOnPodConditionsPatternArgsDict(TypedDict):
2332
+ """
2333
+ PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.
2334
+ """
2335
+ status: pulumi.Input[str]
2336
+ """
2337
+ Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.
2338
+ """
2339
+ type: pulumi.Input[str]
2340
+ """
2341
+ Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.
2342
+ """
2343
+ elif False:
2344
+ PodFailurePolicyOnPodConditionsPatternArgsDict: TypeAlias = Mapping[str, Any]
2345
+
1648
2346
  @pulumi.input_type
1649
2347
  class PodFailurePolicyOnPodConditionsPatternArgs:
1650
2348
  def __init__(__self__, *,
@@ -1683,6 +2381,18 @@ class PodFailurePolicyOnPodConditionsPatternArgs:
1683
2381
  pulumi.set(self, "type", value)
1684
2382
 
1685
2383
 
2384
+ if not MYPY:
2385
+ class PodFailurePolicyPatchArgsDict(TypedDict):
2386
+ """
2387
+ PodFailurePolicy describes how failed pods influence the backoffLimit.
2388
+ """
2389
+ rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyRulePatchArgsDict']]]]
2390
+ """
2391
+ A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
2392
+ """
2393
+ elif False:
2394
+ PodFailurePolicyPatchArgsDict: TypeAlias = Mapping[str, Any]
2395
+
1686
2396
  @pulumi.input_type
1687
2397
  class PodFailurePolicyPatchArgs:
1688
2398
  def __init__(__self__, *,
@@ -1707,6 +2417,38 @@ class PodFailurePolicyPatchArgs:
1707
2417
  pulumi.set(self, "rules", value)
1708
2418
 
1709
2419
 
2420
+ if not MYPY:
2421
+ class PodFailurePolicyRulePatchArgsDict(TypedDict):
2422
+ """
2423
+ PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.
2424
+ """
2425
+ action: NotRequired[pulumi.Input[str]]
2426
+ """
2427
+ Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:
2428
+
2429
+ - FailJob: indicates that the pod's job is marked as Failed and all
2430
+ running pods are terminated.
2431
+ - FailIndex: indicates that the pod's index is marked as Failed and will
2432
+ not be restarted.
2433
+ This value is beta-level. It can be used when the
2434
+ `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
2435
+ - Ignore: indicates that the counter towards the .backoffLimit is not
2436
+ incremented and a replacement pod is created.
2437
+ - Count: indicates that the pod is handled in the default way - the
2438
+ counter towards the .backoffLimit is incremented.
2439
+ Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
2440
+ """
2441
+ on_exit_codes: NotRequired[pulumi.Input['PodFailurePolicyOnExitCodesRequirementPatchArgsDict']]
2442
+ """
2443
+ Represents the requirement on the container exit codes.
2444
+ """
2445
+ on_pod_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyOnPodConditionsPatternPatchArgsDict']]]]
2446
+ """
2447
+ Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.
2448
+ """
2449
+ elif False:
2450
+ PodFailurePolicyRulePatchArgsDict: TypeAlias = Mapping[str, Any]
2451
+
1710
2452
  @pulumi.input_type
1711
2453
  class PodFailurePolicyRulePatchArgs:
1712
2454
  def __init__(__self__, *,
@@ -1787,6 +2529,38 @@ class PodFailurePolicyRulePatchArgs:
1787
2529
  pulumi.set(self, "on_pod_conditions", value)
1788
2530
 
1789
2531
 
2532
+ if not MYPY:
2533
+ class PodFailurePolicyRuleArgsDict(TypedDict):
2534
+ """
2535
+ PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.
2536
+ """
2537
+ action: pulumi.Input[str]
2538
+ """
2539
+ Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:
2540
+
2541
+ - FailJob: indicates that the pod's job is marked as Failed and all
2542
+ running pods are terminated.
2543
+ - FailIndex: indicates that the pod's index is marked as Failed and will
2544
+ not be restarted.
2545
+ This value is beta-level. It can be used when the
2546
+ `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
2547
+ - Ignore: indicates that the counter towards the .backoffLimit is not
2548
+ incremented and a replacement pod is created.
2549
+ - Count: indicates that the pod is handled in the default way - the
2550
+ counter towards the .backoffLimit is incremented.
2551
+ Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.
2552
+ """
2553
+ on_exit_codes: NotRequired[pulumi.Input['PodFailurePolicyOnExitCodesRequirementArgsDict']]
2554
+ """
2555
+ Represents the requirement on the container exit codes.
2556
+ """
2557
+ on_pod_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyOnPodConditionsPatternArgsDict']]]]
2558
+ """
2559
+ Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.
2560
+ """
2561
+ elif False:
2562
+ PodFailurePolicyRuleArgsDict: TypeAlias = Mapping[str, Any]
2563
+
1790
2564
  @pulumi.input_type
1791
2565
  class PodFailurePolicyRuleArgs:
1792
2566
  def __init__(__self__, *,
@@ -1866,6 +2640,18 @@ class PodFailurePolicyRuleArgs:
1866
2640
  pulumi.set(self, "on_pod_conditions", value)
1867
2641
 
1868
2642
 
2643
+ if not MYPY:
2644
+ class PodFailurePolicyArgsDict(TypedDict):
2645
+ """
2646
+ PodFailurePolicy describes how failed pods influence the backoffLimit.
2647
+ """
2648
+ rules: pulumi.Input[Sequence[pulumi.Input['PodFailurePolicyRuleArgsDict']]]
2649
+ """
2650
+ A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.
2651
+ """
2652
+ elif False:
2653
+ PodFailurePolicyArgsDict: TypeAlias = Mapping[str, Any]
2654
+
1869
2655
  @pulumi.input_type
1870
2656
  class PodFailurePolicyArgs:
1871
2657
  def __init__(__self__, *,
@@ -1889,6 +2675,205 @@ class PodFailurePolicyArgs:
1889
2675
  pulumi.set(self, "rules", value)
1890
2676
 
1891
2677
 
2678
+ if not MYPY:
2679
+ class SuccessPolicyPatchArgsDict(TypedDict):
2680
+ """
2681
+ SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
2682
+ """
2683
+ rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRulePatchArgsDict']]]]
2684
+ """
2685
+ rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
2686
+ """
2687
+ elif False:
2688
+ SuccessPolicyPatchArgsDict: TypeAlias = Mapping[str, Any]
2689
+
2690
+ @pulumi.input_type
2691
+ class SuccessPolicyPatchArgs:
2692
+ def __init__(__self__, *,
2693
+ rules: Optional[pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRulePatchArgs']]]] = None):
2694
+ """
2695
+ SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
2696
+ :param pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRulePatchArgs']]] rules: rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
2697
+ """
2698
+ if rules is not None:
2699
+ pulumi.set(__self__, "rules", rules)
2700
+
2701
+ @property
2702
+ @pulumi.getter
2703
+ def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRulePatchArgs']]]]:
2704
+ """
2705
+ rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
2706
+ """
2707
+ return pulumi.get(self, "rules")
2708
+
2709
+ @rules.setter
2710
+ def rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRulePatchArgs']]]]):
2711
+ pulumi.set(self, "rules", value)
2712
+
2713
+
2714
+ if not MYPY:
2715
+ class SuccessPolicyRulePatchArgsDict(TypedDict):
2716
+ """
2717
+ SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.
2718
+ """
2719
+ succeeded_count: NotRequired[pulumi.Input[int]]
2720
+ """
2721
+ succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
2722
+ """
2723
+ succeeded_indexes: NotRequired[pulumi.Input[str]]
2724
+ """
2725
+ succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
2726
+ """
2727
+ elif False:
2728
+ SuccessPolicyRulePatchArgsDict: TypeAlias = Mapping[str, Any]
2729
+
2730
+ @pulumi.input_type
2731
+ class SuccessPolicyRulePatchArgs:
2732
+ def __init__(__self__, *,
2733
+ succeeded_count: Optional[pulumi.Input[int]] = None,
2734
+ succeeded_indexes: Optional[pulumi.Input[str]] = None):
2735
+ """
2736
+ SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.
2737
+ :param pulumi.Input[int] succeeded_count: succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
2738
+ :param pulumi.Input[str] succeeded_indexes: succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
2739
+ """
2740
+ if succeeded_count is not None:
2741
+ pulumi.set(__self__, "succeeded_count", succeeded_count)
2742
+ if succeeded_indexes is not None:
2743
+ pulumi.set(__self__, "succeeded_indexes", succeeded_indexes)
2744
+
2745
+ @property
2746
+ @pulumi.getter(name="succeededCount")
2747
+ def succeeded_count(self) -> Optional[pulumi.Input[int]]:
2748
+ """
2749
+ succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
2750
+ """
2751
+ return pulumi.get(self, "succeeded_count")
2752
+
2753
+ @succeeded_count.setter
2754
+ def succeeded_count(self, value: Optional[pulumi.Input[int]]):
2755
+ pulumi.set(self, "succeeded_count", value)
2756
+
2757
+ @property
2758
+ @pulumi.getter(name="succeededIndexes")
2759
+ def succeeded_indexes(self) -> Optional[pulumi.Input[str]]:
2760
+ """
2761
+ succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
2762
+ """
2763
+ return pulumi.get(self, "succeeded_indexes")
2764
+
2765
+ @succeeded_indexes.setter
2766
+ def succeeded_indexes(self, value: Optional[pulumi.Input[str]]):
2767
+ pulumi.set(self, "succeeded_indexes", value)
2768
+
2769
+
2770
+ if not MYPY:
2771
+ class SuccessPolicyRuleArgsDict(TypedDict):
2772
+ """
2773
+ SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.
2774
+ """
2775
+ succeeded_count: NotRequired[pulumi.Input[int]]
2776
+ """
2777
+ succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
2778
+ """
2779
+ succeeded_indexes: NotRequired[pulumi.Input[str]]
2780
+ """
2781
+ succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
2782
+ """
2783
+ elif False:
2784
+ SuccessPolicyRuleArgsDict: TypeAlias = Mapping[str, Any]
2785
+
2786
+ @pulumi.input_type
2787
+ class SuccessPolicyRuleArgs:
2788
+ def __init__(__self__, *,
2789
+ succeeded_count: Optional[pulumi.Input[int]] = None,
2790
+ succeeded_indexes: Optional[pulumi.Input[str]] = None):
2791
+ """
2792
+ SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the "succeededIndexes" or "succeededCount" specified.
2793
+ :param pulumi.Input[int] succeeded_count: succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
2794
+ :param pulumi.Input[str] succeeded_indexes: succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
2795
+ """
2796
+ if succeeded_count is not None:
2797
+ pulumi.set(__self__, "succeeded_count", succeeded_count)
2798
+ if succeeded_indexes is not None:
2799
+ pulumi.set(__self__, "succeeded_indexes", succeeded_indexes)
2800
+
2801
+ @property
2802
+ @pulumi.getter(name="succeededCount")
2803
+ def succeeded_count(self) -> Optional[pulumi.Input[int]]:
2804
+ """
2805
+ succeededCount specifies the minimal required size of the actual set of the succeeded indexes for the Job. When succeededCount is used along with succeededIndexes, the check is constrained only to the set of indexes specified by succeededIndexes. For example, given that succeededIndexes is "1-4", succeededCount is "3", and completed indexes are "1", "3", and "5", the Job isn't declared as succeeded because only "1" and "3" indexes are considered in that rules. When this field is null, this doesn't default to any value and is never evaluated at any time. When specified it needs to be a positive integer.
2806
+ """
2807
+ return pulumi.get(self, "succeeded_count")
2808
+
2809
+ @succeeded_count.setter
2810
+ def succeeded_count(self, value: Optional[pulumi.Input[int]]):
2811
+ pulumi.set(self, "succeeded_count", value)
2812
+
2813
+ @property
2814
+ @pulumi.getter(name="succeededIndexes")
2815
+ def succeeded_indexes(self) -> Optional[pulumi.Input[str]]:
2816
+ """
2817
+ succeededIndexes specifies the set of indexes which need to be contained in the actual set of the succeeded indexes for the Job. The list of indexes must be within 0 to ".spec.completions-1" and must not contain duplicates. At least one element is required. The indexes are represented as intervals separated by commas. The intervals can be a decimal integer or a pair of decimal integers separated by a hyphen. The number are listed in represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". When this field is null, this field doesn't default to any value and is never evaluated at any time.
2818
+ """
2819
+ return pulumi.get(self, "succeeded_indexes")
2820
+
2821
+ @succeeded_indexes.setter
2822
+ def succeeded_indexes(self, value: Optional[pulumi.Input[str]]):
2823
+ pulumi.set(self, "succeeded_indexes", value)
2824
+
2825
+
2826
+ if not MYPY:
2827
+ class SuccessPolicyArgsDict(TypedDict):
2828
+ """
2829
+ SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
2830
+ """
2831
+ rules: pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRuleArgsDict']]]
2832
+ """
2833
+ rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
2834
+ """
2835
+ elif False:
2836
+ SuccessPolicyArgsDict: TypeAlias = Mapping[str, Any]
2837
+
2838
+ @pulumi.input_type
2839
+ class SuccessPolicyArgs:
2840
+ def __init__(__self__, *,
2841
+ rules: pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRuleArgs']]]):
2842
+ """
2843
+ SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.
2844
+ :param pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRuleArgs']]] rules: rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
2845
+ """
2846
+ pulumi.set(__self__, "rules", rules)
2847
+
2848
+ @property
2849
+ @pulumi.getter
2850
+ def rules(self) -> pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRuleArgs']]]:
2851
+ """
2852
+ rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the "SucceededCriteriaMet" condition is added, and the lingering pods are removed. The terminal state for such a Job has the "Complete" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed.
2853
+ """
2854
+ return pulumi.get(self, "rules")
2855
+
2856
+ @rules.setter
2857
+ def rules(self, value: pulumi.Input[Sequence[pulumi.Input['SuccessPolicyRuleArgs']]]):
2858
+ pulumi.set(self, "rules", value)
2859
+
2860
+
2861
+ if not MYPY:
2862
+ class UncountedTerminatedPodsArgsDict(TypedDict):
2863
+ """
2864
+ UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.
2865
+ """
2866
+ failed: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2867
+ """
2868
+ failed holds UIDs of failed Pods.
2869
+ """
2870
+ succeeded: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2871
+ """
2872
+ succeeded holds UIDs of succeeded Pods.
2873
+ """
2874
+ elif False:
2875
+ UncountedTerminatedPodsArgsDict: TypeAlias = Mapping[str, Any]
2876
+
1892
2877
  @pulumi.input_type
1893
2878
  class UncountedTerminatedPodsArgs:
1894
2879
  def __init__(__self__, *,