pulumi-kubernetes 4.13.1__py3-none-any.whl → 4.14.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (523) hide show
  1. pulumi_kubernetes/_inputs.py +57 -0
  2. pulumi_kubernetes/_utilities.py +35 -0
  3. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +11 -6
  4. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +11 -6
  5. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +11 -6
  6. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +11 -6
  7. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +11 -6
  8. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +11 -6
  9. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +11 -6
  10. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +11 -6
  11. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +11 -6
  12. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +11 -6
  13. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +11 -6
  14. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +11 -6
  15. pulumi_kubernetes/admissionregistration/v1/_inputs.py +1553 -29
  16. pulumi_kubernetes/admissionregistration/v1/outputs.py +5 -0
  17. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +11 -6
  18. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +11 -6
  19. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +11 -6
  20. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +11 -6
  21. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +11 -6
  22. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +11 -6
  23. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +876 -6
  24. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +5 -0
  25. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +11 -6
  26. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +11 -6
  27. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +11 -6
  28. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +11 -6
  29. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +11 -6
  30. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +11 -6
  31. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +11 -6
  32. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +11 -6
  33. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +11 -6
  34. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +11 -6
  35. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +11 -6
  36. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +11 -6
  37. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +1525 -45
  38. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +5 -0
  39. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +11 -6
  40. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +11 -6
  41. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +11 -6
  42. pulumi_kubernetes/apiextensions/v1/_inputs.py +1097 -15
  43. pulumi_kubernetes/apiextensions/v1/outputs.py +5 -0
  44. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +10 -5
  45. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +10 -5
  46. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +10 -5
  47. pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +903 -6
  48. pulumi_kubernetes/apiextensions/v1beta1/outputs.py +5 -0
  49. pulumi_kubernetes/apiregistration/v1/APIService.py +11 -6
  50. pulumi_kubernetes/apiregistration/v1/APIServiceList.py +11 -6
  51. pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +11 -6
  52. pulumi_kubernetes/apiregistration/v1/_inputs.py +194 -0
  53. pulumi_kubernetes/apiregistration/v1/outputs.py +5 -0
  54. pulumi_kubernetes/apiregistration/v1beta1/APIService.py +10 -5
  55. pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +9 -4
  56. pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +10 -5
  57. pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +191 -0
  58. pulumi_kubernetes/apiregistration/v1beta1/outputs.py +5 -0
  59. pulumi_kubernetes/apps/v1/ControllerRevision.py +8 -3
  60. pulumi_kubernetes/apps/v1/ControllerRevisionList.py +11 -6
  61. pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +8 -3
  62. pulumi_kubernetes/apps/v1/DaemonSet.py +11 -6
  63. pulumi_kubernetes/apps/v1/DaemonSetList.py +11 -6
  64. pulumi_kubernetes/apps/v1/DaemonSetPatch.py +11 -6
  65. pulumi_kubernetes/apps/v1/Deployment.py +11 -6
  66. pulumi_kubernetes/apps/v1/DeploymentList.py +11 -6
  67. pulumi_kubernetes/apps/v1/DeploymentPatch.py +11 -6
  68. pulumi_kubernetes/apps/v1/ReplicaSet.py +11 -6
  69. pulumi_kubernetes/apps/v1/ReplicaSetList.py +11 -6
  70. pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +11 -6
  71. pulumi_kubernetes/apps/v1/StatefulSet.py +11 -6
  72. pulumi_kubernetes/apps/v1/StatefulSetList.py +11 -6
  73. pulumi_kubernetes/apps/v1/StatefulSetPatch.py +11 -6
  74. pulumi_kubernetes/apps/v1/_inputs.py +1049 -0
  75. pulumi_kubernetes/apps/v1/outputs.py +5 -0
  76. pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +8 -3
  77. pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +11 -6
  78. pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +8 -3
  79. pulumi_kubernetes/apps/v1beta1/Deployment.py +11 -6
  80. pulumi_kubernetes/apps/v1beta1/DeploymentList.py +11 -6
  81. pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +11 -6
  82. pulumi_kubernetes/apps/v1beta1/StatefulSet.py +10 -5
  83. pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +9 -4
  84. pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +10 -5
  85. pulumi_kubernetes/apps/v1beta1/_inputs.py +603 -0
  86. pulumi_kubernetes/apps/v1beta1/outputs.py +5 -0
  87. pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +8 -3
  88. pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +11 -6
  89. pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +8 -3
  90. pulumi_kubernetes/apps/v1beta2/DaemonSet.py +11 -6
  91. pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +11 -6
  92. pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +11 -6
  93. pulumi_kubernetes/apps/v1beta2/Deployment.py +11 -6
  94. pulumi_kubernetes/apps/v1beta2/DeploymentList.py +11 -6
  95. pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +11 -6
  96. pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +11 -6
  97. pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +11 -6
  98. pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +11 -6
  99. pulumi_kubernetes/apps/v1beta2/StatefulSet.py +10 -5
  100. pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +9 -4
  101. pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +10 -5
  102. pulumi_kubernetes/apps/v1beta2/_inputs.py +935 -0
  103. pulumi_kubernetes/apps/v1beta2/outputs.py +5 -0
  104. pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +10 -5
  105. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +10 -5
  106. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +10 -5
  107. pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +281 -0
  108. pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +5 -0
  109. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +11 -6
  110. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +11 -6
  111. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +11 -6
  112. pulumi_kubernetes/autoscaling/v1/_inputs.py +157 -0
  113. pulumi_kubernetes/autoscaling/v1/outputs.py +5 -0
  114. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +11 -6
  115. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +11 -6
  116. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +11 -6
  117. pulumi_kubernetes/autoscaling/v2/_inputs.py +805 -0
  118. pulumi_kubernetes/autoscaling/v2/outputs.py +5 -0
  119. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +11 -6
  120. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +11 -6
  121. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +11 -6
  122. pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +652 -0
  123. pulumi_kubernetes/autoscaling/v2beta1/outputs.py +5 -0
  124. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +11 -6
  125. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +11 -6
  126. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +11 -6
  127. pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +796 -0
  128. pulumi_kubernetes/autoscaling/v2beta2/outputs.py +5 -0
  129. pulumi_kubernetes/batch/v1/CronJob.py +11 -6
  130. pulumi_kubernetes/batch/v1/CronJobList.py +11 -6
  131. pulumi_kubernetes/batch/v1/CronJobPatch.py +11 -6
  132. pulumi_kubernetes/batch/v1/Job.py +11 -6
  133. pulumi_kubernetes/batch/v1/JobList.py +11 -6
  134. pulumi_kubernetes/batch/v1/JobPatch.py +11 -6
  135. pulumi_kubernetes/batch/v1/_inputs.py +773 -3
  136. pulumi_kubernetes/batch/v1/outputs.py +5 -0
  137. pulumi_kubernetes/batch/v1beta1/CronJob.py +11 -6
  138. pulumi_kubernetes/batch/v1beta1/CronJobList.py +11 -6
  139. pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +11 -6
  140. pulumi_kubernetes/batch/v1beta1/_inputs.py +161 -0
  141. pulumi_kubernetes/batch/v1beta1/outputs.py +5 -0
  142. pulumi_kubernetes/batch/v2alpha1/CronJob.py +11 -6
  143. pulumi_kubernetes/batch/v2alpha1/CronJobList.py +11 -6
  144. pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +11 -6
  145. pulumi_kubernetes/batch/v2alpha1/_inputs.py +161 -0
  146. pulumi_kubernetes/batch/v2alpha1/outputs.py +5 -0
  147. pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +10 -5
  148. pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +10 -5
  149. pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +10 -5
  150. pulumi_kubernetes/certificates/v1/_inputs.py +290 -0
  151. pulumi_kubernetes/certificates/v1/outputs.py +5 -0
  152. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +11 -6
  153. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +11 -6
  154. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +11 -6
  155. pulumi_kubernetes/certificates/v1alpha1/_inputs.py +94 -0
  156. pulumi_kubernetes/certificates/v1alpha1/outputs.py +5 -0
  157. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +10 -5
  158. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +9 -4
  159. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +10 -5
  160. pulumi_kubernetes/certificates/v1beta1/_inputs.py +165 -0
  161. pulumi_kubernetes/certificates/v1beta1/outputs.py +5 -0
  162. pulumi_kubernetes/coordination/v1/Lease.py +11 -6
  163. pulumi_kubernetes/coordination/v1/LeaseList.py +11 -6
  164. pulumi_kubernetes/coordination/v1/LeasePatch.py +11 -6
  165. pulumi_kubernetes/coordination/v1/_inputs.py +90 -0
  166. pulumi_kubernetes/coordination/v1/outputs.py +5 -0
  167. pulumi_kubernetes/coordination/v1beta1/Lease.py +11 -6
  168. pulumi_kubernetes/coordination/v1beta1/LeaseList.py +11 -6
  169. pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +11 -6
  170. pulumi_kubernetes/coordination/v1beta1/_inputs.py +90 -0
  171. pulumi_kubernetes/coordination/v1beta1/outputs.py +5 -0
  172. pulumi_kubernetes/core/v1/Binding.py +11 -6
  173. pulumi_kubernetes/core/v1/BindingPatch.py +11 -6
  174. pulumi_kubernetes/core/v1/ConfigMap.py +8 -3
  175. pulumi_kubernetes/core/v1/ConfigMapList.py +11 -6
  176. pulumi_kubernetes/core/v1/ConfigMapPatch.py +8 -3
  177. pulumi_kubernetes/core/v1/Endpoints.py +11 -6
  178. pulumi_kubernetes/core/v1/EndpointsList.py +11 -6
  179. pulumi_kubernetes/core/v1/EndpointsPatch.py +11 -6
  180. pulumi_kubernetes/core/v1/Event.py +20 -15
  181. pulumi_kubernetes/core/v1/EventList.py +11 -6
  182. pulumi_kubernetes/core/v1/EventPatch.py +20 -15
  183. pulumi_kubernetes/core/v1/LimitRange.py +11 -6
  184. pulumi_kubernetes/core/v1/LimitRangeList.py +11 -6
  185. pulumi_kubernetes/core/v1/LimitRangePatch.py +11 -6
  186. pulumi_kubernetes/core/v1/Namespace.py +11 -6
  187. pulumi_kubernetes/core/v1/NamespaceList.py +11 -6
  188. pulumi_kubernetes/core/v1/NamespacePatch.py +11 -6
  189. pulumi_kubernetes/core/v1/Node.py +11 -6
  190. pulumi_kubernetes/core/v1/NodeList.py +11 -6
  191. pulumi_kubernetes/core/v1/NodePatch.py +11 -6
  192. pulumi_kubernetes/core/v1/PersistentVolume.py +11 -6
  193. pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +11 -6
  194. pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +11 -6
  195. pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +11 -6
  196. pulumi_kubernetes/core/v1/PersistentVolumeList.py +11 -6
  197. pulumi_kubernetes/core/v1/PersistentVolumePatch.py +11 -6
  198. pulumi_kubernetes/core/v1/Pod.py +11 -6
  199. pulumi_kubernetes/core/v1/PodList.py +11 -6
  200. pulumi_kubernetes/core/v1/PodPatch.py +11 -6
  201. pulumi_kubernetes/core/v1/PodTemplate.py +11 -6
  202. pulumi_kubernetes/core/v1/PodTemplateList.py +11 -6
  203. pulumi_kubernetes/core/v1/PodTemplatePatch.py +11 -6
  204. pulumi_kubernetes/core/v1/ReplicationController.py +11 -6
  205. pulumi_kubernetes/core/v1/ReplicationControllerList.py +11 -6
  206. pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +11 -6
  207. pulumi_kubernetes/core/v1/ResourceQuota.py +11 -6
  208. pulumi_kubernetes/core/v1/ResourceQuotaList.py +11 -6
  209. pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +11 -6
  210. pulumi_kubernetes/core/v1/Secret.py +8 -3
  211. pulumi_kubernetes/core/v1/SecretList.py +11 -6
  212. pulumi_kubernetes/core/v1/SecretPatch.py +8 -3
  213. pulumi_kubernetes/core/v1/Service.py +11 -6
  214. pulumi_kubernetes/core/v1/ServiceAccount.py +14 -9
  215. pulumi_kubernetes/core/v1/ServiceAccountList.py +11 -6
  216. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +14 -9
  217. pulumi_kubernetes/core/v1/ServiceList.py +11 -6
  218. pulumi_kubernetes/core/v1/ServicePatch.py +11 -6
  219. pulumi_kubernetes/core/v1/_inputs.py +10070 -478
  220. pulumi_kubernetes/core/v1/outputs.py +5 -0
  221. pulumi_kubernetes/discovery/v1/EndpointSlice.py +14 -9
  222. pulumi_kubernetes/discovery/v1/EndpointSliceList.py +11 -6
  223. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +14 -9
  224. pulumi_kubernetes/discovery/v1/_inputs.py +284 -0
  225. pulumi_kubernetes/discovery/v1/outputs.py +5 -0
  226. pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +14 -9
  227. pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +11 -6
  228. pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +14 -9
  229. pulumi_kubernetes/discovery/v1beta1/_inputs.py +210 -0
  230. pulumi_kubernetes/discovery/v1beta1/outputs.py +5 -0
  231. pulumi_kubernetes/events/v1/Event.py +20 -15
  232. pulumi_kubernetes/events/v1/EventList.py +11 -6
  233. pulumi_kubernetes/events/v1/EventPatch.py +20 -15
  234. pulumi_kubernetes/events/v1/_inputs.py +118 -0
  235. pulumi_kubernetes/events/v1/outputs.py +5 -0
  236. pulumi_kubernetes/events/v1beta1/Event.py +19 -14
  237. pulumi_kubernetes/events/v1beta1/EventList.py +11 -6
  238. pulumi_kubernetes/events/v1beta1/EventPatch.py +19 -14
  239. pulumi_kubernetes/events/v1beta1/_inputs.py +123 -0
  240. pulumi_kubernetes/events/v1beta1/outputs.py +5 -0
  241. pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +11 -6
  242. pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +11 -6
  243. pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +11 -6
  244. pulumi_kubernetes/extensions/v1beta1/Deployment.py +11 -6
  245. pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +11 -6
  246. pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +11 -6
  247. pulumi_kubernetes/extensions/v1beta1/Ingress.py +11 -6
  248. pulumi_kubernetes/extensions/v1beta1/IngressList.py +11 -6
  249. pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +11 -6
  250. pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +11 -6
  251. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +11 -6
  252. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +11 -6
  253. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +11 -6
  254. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +11 -6
  255. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +11 -6
  256. pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +11 -6
  257. pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +11 -6
  258. pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +11 -6
  259. pulumi_kubernetes/extensions/v1beta1/_inputs.py +1884 -26
  260. pulumi_kubernetes/extensions/v1beta1/outputs.py +5 -0
  261. pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +11 -6
  262. pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +11 -6
  263. pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +11 -6
  264. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +11 -6
  265. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +11 -6
  266. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +11 -6
  267. pulumi_kubernetes/flowcontrol/v1/_inputs.py +779 -0
  268. pulumi_kubernetes/flowcontrol/v1/outputs.py +5 -0
  269. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +11 -6
  270. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +11 -6
  271. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +11 -6
  272. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +11 -6
  273. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +11 -6
  274. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +11 -6
  275. pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +671 -0
  276. pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +5 -0
  277. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +11 -6
  278. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +11 -6
  279. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +11 -6
  280. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +11 -6
  281. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +11 -6
  282. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +11 -6
  283. pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +671 -0
  284. pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +5 -0
  285. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +11 -6
  286. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +11 -6
  287. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +11 -6
  288. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +11 -6
  289. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +11 -6
  290. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +11 -6
  291. pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +771 -0
  292. pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +5 -0
  293. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +11 -6
  294. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +11 -6
  295. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +11 -6
  296. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +11 -6
  297. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +11 -6
  298. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +11 -6
  299. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +771 -0
  300. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +5 -0
  301. pulumi_kubernetes/helm/v3/Release.py +8 -3
  302. pulumi_kubernetes/helm/v3/_inputs.py +40 -0
  303. pulumi_kubernetes/helm/v3/outputs.py +5 -0
  304. pulumi_kubernetes/helm/v4/Chart.py +15 -6
  305. pulumi_kubernetes/helm/v4/_inputs.py +57 -0
  306. pulumi_kubernetes/kustomize/v2/Directory.py +5 -0
  307. pulumi_kubernetes/meta/v1/Status.py +11 -6
  308. pulumi_kubernetes/meta/v1/StatusPatch.py +11 -6
  309. pulumi_kubernetes/meta/v1/_inputs.py +596 -0
  310. pulumi_kubernetes/meta/v1/outputs.py +5 -0
  311. pulumi_kubernetes/networking/v1/Ingress.py +11 -6
  312. pulumi_kubernetes/networking/v1/IngressClass.py +11 -6
  313. pulumi_kubernetes/networking/v1/IngressClassList.py +11 -6
  314. pulumi_kubernetes/networking/v1/IngressClassPatch.py +11 -6
  315. pulumi_kubernetes/networking/v1/IngressList.py +11 -6
  316. pulumi_kubernetes/networking/v1/IngressPatch.py +11 -6
  317. pulumi_kubernetes/networking/v1/NetworkPolicy.py +11 -6
  318. pulumi_kubernetes/networking/v1/NetworkPolicyList.py +11 -6
  319. pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +11 -6
  320. pulumi_kubernetes/networking/v1/_inputs.py +840 -0
  321. pulumi_kubernetes/networking/v1/outputs.py +5 -0
  322. pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +11 -6
  323. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +11 -6
  324. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +11 -6
  325. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +11 -6
  326. pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +11 -6
  327. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +11 -6
  328. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +11 -6
  329. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +11 -6
  330. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +11 -6
  331. pulumi_kubernetes/networking/v1alpha1/_inputs.py +259 -0
  332. pulumi_kubernetes/networking/v1alpha1/outputs.py +5 -0
  333. pulumi_kubernetes/networking/v1beta1/Ingress.py +11 -6
  334. pulumi_kubernetes/networking/v1beta1/IngressClass.py +11 -6
  335. pulumi_kubernetes/networking/v1beta1/IngressClassList.py +11 -6
  336. pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +11 -6
  337. pulumi_kubernetes/networking/v1beta1/IngressList.py +11 -6
  338. pulumi_kubernetes/networking/v1beta1/IngressPatch.py +11 -6
  339. pulumi_kubernetes/networking/v1beta1/_inputs.py +374 -0
  340. pulumi_kubernetes/networking/v1beta1/outputs.py +5 -0
  341. pulumi_kubernetes/node/v1/RuntimeClass.py +14 -9
  342. pulumi_kubernetes/node/v1/RuntimeClassList.py +11 -6
  343. pulumi_kubernetes/node/v1/RuntimeClassPatch.py +14 -9
  344. pulumi_kubernetes/node/v1/_inputs.py +101 -0
  345. pulumi_kubernetes/node/v1/outputs.py +5 -0
  346. pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +11 -6
  347. pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +11 -6
  348. pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +11 -6
  349. pulumi_kubernetes/node/v1alpha1/_inputs.py +134 -0
  350. pulumi_kubernetes/node/v1alpha1/outputs.py +5 -0
  351. pulumi_kubernetes/node/v1beta1/RuntimeClass.py +14 -9
  352. pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +11 -6
  353. pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +14 -9
  354. pulumi_kubernetes/node/v1beta1/_inputs.py +100 -0
  355. pulumi_kubernetes/node/v1beta1/outputs.py +5 -0
  356. pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +11 -6
  357. pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +11 -6
  358. pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +11 -6
  359. pulumi_kubernetes/policy/v1/_inputs.py +151 -0
  360. pulumi_kubernetes/policy/v1/outputs.py +5 -0
  361. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +10 -5
  362. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +9 -4
  363. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +10 -5
  364. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +11 -6
  365. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +11 -6
  366. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +11 -6
  367. pulumi_kubernetes/policy/v1beta1/_inputs.py +713 -0
  368. pulumi_kubernetes/policy/v1beta1/outputs.py +5 -0
  369. pulumi_kubernetes/provider.py +11 -6
  370. pulumi_kubernetes/pulumi-plugin.json +1 -1
  371. pulumi_kubernetes/rbac/v1/ClusterRole.py +14 -9
  372. pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +14 -9
  373. pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +11 -6
  374. pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +14 -9
  375. pulumi_kubernetes/rbac/v1/ClusterRoleList.py +11 -6
  376. pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +14 -9
  377. pulumi_kubernetes/rbac/v1/Role.py +11 -6
  378. pulumi_kubernetes/rbac/v1/RoleBinding.py +14 -9
  379. pulumi_kubernetes/rbac/v1/RoleBindingList.py +11 -6
  380. pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +14 -9
  381. pulumi_kubernetes/rbac/v1/RoleList.py +11 -6
  382. pulumi_kubernetes/rbac/v1/RolePatch.py +11 -6
  383. pulumi_kubernetes/rbac/v1/_inputs.py +295 -0
  384. pulumi_kubernetes/rbac/v1/outputs.py +5 -0
  385. pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +14 -9
  386. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +14 -9
  387. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +11 -6
  388. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +14 -9
  389. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +11 -6
  390. pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +14 -9
  391. pulumi_kubernetes/rbac/v1alpha1/Role.py +11 -6
  392. pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +14 -9
  393. pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +11 -6
  394. pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +14 -9
  395. pulumi_kubernetes/rbac/v1alpha1/RoleList.py +11 -6
  396. pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +11 -6
  397. pulumi_kubernetes/rbac/v1alpha1/_inputs.py +295 -0
  398. pulumi_kubernetes/rbac/v1alpha1/outputs.py +5 -0
  399. pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +14 -9
  400. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +14 -9
  401. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +11 -6
  402. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +14 -9
  403. pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +11 -6
  404. pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +14 -9
  405. pulumi_kubernetes/rbac/v1beta1/Role.py +11 -6
  406. pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +14 -9
  407. pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +11 -6
  408. pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +14 -9
  409. pulumi_kubernetes/rbac/v1beta1/RoleList.py +11 -6
  410. pulumi_kubernetes/rbac/v1beta1/RolePatch.py +11 -6
  411. pulumi_kubernetes/rbac/v1beta1/_inputs.py +295 -0
  412. pulumi_kubernetes/rbac/v1beta1/outputs.py +5 -0
  413. pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +11 -6
  414. pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +11 -6
  415. pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +11 -6
  416. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +11 -6
  417. pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +11 -6
  418. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +11 -6
  419. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +11 -6
  420. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +11 -6
  421. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +11 -6
  422. pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +14 -9
  423. pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +11 -6
  424. pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +14 -9
  425. pulumi_kubernetes/resource/v1alpha1/_inputs.py +458 -0
  426. pulumi_kubernetes/resource/v1alpha1/outputs.py +5 -0
  427. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +11 -6
  428. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +11 -6
  429. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +11 -6
  430. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +11 -6
  431. pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +11 -6
  432. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +14 -9
  433. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +11 -6
  434. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +14 -9
  435. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +11 -6
  436. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +11 -6
  437. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +11 -6
  438. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +11 -6
  439. pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +14 -9
  440. pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +11 -6
  441. pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +17 -12
  442. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +11 -6
  443. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +17 -12
  444. pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +14 -9
  445. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +11 -6
  446. pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +11 -6
  447. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +11 -6
  448. pulumi_kubernetes/resource/v1alpha2/_inputs.py +1059 -6
  449. pulumi_kubernetes/resource/v1alpha2/outputs.py +5 -0
  450. pulumi_kubernetes/scheduling/v1/PriorityClass.py +8 -3
  451. pulumi_kubernetes/scheduling/v1/PriorityClassList.py +11 -6
  452. pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +8 -3
  453. pulumi_kubernetes/scheduling/v1/_inputs.py +44 -0
  454. pulumi_kubernetes/scheduling/v1/outputs.py +5 -0
  455. pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +8 -3
  456. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +11 -6
  457. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +8 -3
  458. pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +44 -0
  459. pulumi_kubernetes/scheduling/v1alpha1/outputs.py +5 -0
  460. pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +8 -3
  461. pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +11 -6
  462. pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +8 -3
  463. pulumi_kubernetes/scheduling/v1beta1/_inputs.py +44 -0
  464. pulumi_kubernetes/scheduling/v1beta1/outputs.py +5 -0
  465. pulumi_kubernetes/settings/v1alpha1/PodPreset.py +9 -4
  466. pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +11 -6
  467. pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +9 -4
  468. pulumi_kubernetes/settings/v1alpha1/_inputs.py +84 -0
  469. pulumi_kubernetes/settings/v1alpha1/outputs.py +5 -0
  470. pulumi_kubernetes/storage/v1/CSIDriver.py +11 -6
  471. pulumi_kubernetes/storage/v1/CSIDriverList.py +11 -6
  472. pulumi_kubernetes/storage/v1/CSIDriverPatch.py +11 -6
  473. pulumi_kubernetes/storage/v1/CSINode.py +11 -6
  474. pulumi_kubernetes/storage/v1/CSINodeList.py +11 -6
  475. pulumi_kubernetes/storage/v1/CSINodePatch.py +11 -6
  476. pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +11 -6
  477. pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +11 -6
  478. pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +11 -6
  479. pulumi_kubernetes/storage/v1/StorageClass.py +11 -6
  480. pulumi_kubernetes/storage/v1/StorageClassList.py +11 -6
  481. pulumi_kubernetes/storage/v1/StorageClassPatch.py +11 -6
  482. pulumi_kubernetes/storage/v1/VolumeAttachment.py +11 -6
  483. pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +11 -6
  484. pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +11 -6
  485. pulumi_kubernetes/storage/v1/_inputs.py +614 -0
  486. pulumi_kubernetes/storage/v1/outputs.py +5 -0
  487. pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +11 -6
  488. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +11 -6
  489. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +11 -6
  490. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +8 -3
  491. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +11 -6
  492. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +8 -3
  493. pulumi_kubernetes/storage/v1alpha1/_inputs.py +187 -0
  494. pulumi_kubernetes/storage/v1alpha1/outputs.py +5 -0
  495. pulumi_kubernetes/storage/v1beta1/CSIDriver.py +11 -6
  496. pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +11 -6
  497. pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +11 -6
  498. pulumi_kubernetes/storage/v1beta1/CSINode.py +11 -6
  499. pulumi_kubernetes/storage/v1beta1/CSINodeList.py +11 -6
  500. pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +11 -6
  501. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +11 -6
  502. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +11 -6
  503. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +11 -6
  504. pulumi_kubernetes/storage/v1beta1/StorageClass.py +11 -6
  505. pulumi_kubernetes/storage/v1beta1/StorageClassList.py +11 -6
  506. pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +11 -6
  507. pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +11 -6
  508. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +11 -6
  509. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +11 -6
  510. pulumi_kubernetes/storage/v1beta1/_inputs.py +566 -0
  511. pulumi_kubernetes/storage/v1beta1/outputs.py +5 -0
  512. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +11 -6
  513. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +11 -6
  514. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +11 -6
  515. pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +158 -0
  516. pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +5 -0
  517. pulumi_kubernetes/yaml/v2/ConfigFile.py +5 -0
  518. pulumi_kubernetes/yaml/v2/ConfigGroup.py +5 -0
  519. {pulumi_kubernetes-4.13.1.dist-info → pulumi_kubernetes-4.14.0.dist-info}/METADATA +2 -1
  520. pulumi_kubernetes-4.14.0.dist-info/RECORD +619 -0
  521. {pulumi_kubernetes-4.13.1.dist-info → pulumi_kubernetes-4.14.0.dist-info}/WHEEL +1 -1
  522. pulumi_kubernetes-4.13.1.dist-info/RECORD +0 -619
  523. {pulumi_kubernetes-4.13.1.dist-info → pulumi_kubernetes-4.14.0.dist-info}/top_level.txt +0 -0
@@ -4,40 +4,98 @@
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 meta as _meta
12
17
 
13
18
  __all__ = [
14
19
  'AuditAnnotationPatchArgs',
20
+ 'AuditAnnotationPatchArgsDict',
15
21
  'AuditAnnotationArgs',
22
+ 'AuditAnnotationArgsDict',
16
23
  'ExpressionWarningArgs',
24
+ 'ExpressionWarningArgsDict',
17
25
  'MatchConditionPatchArgs',
26
+ 'MatchConditionPatchArgsDict',
18
27
  'MatchConditionArgs',
28
+ 'MatchConditionArgsDict',
19
29
  'MatchResourcesPatchArgs',
30
+ 'MatchResourcesPatchArgsDict',
20
31
  'MatchResourcesArgs',
32
+ 'MatchResourcesArgsDict',
21
33
  'NamedRuleWithOperationsPatchArgs',
34
+ 'NamedRuleWithOperationsPatchArgsDict',
22
35
  'NamedRuleWithOperationsArgs',
36
+ 'NamedRuleWithOperationsArgsDict',
23
37
  'ParamKindPatchArgs',
38
+ 'ParamKindPatchArgsDict',
24
39
  'ParamKindArgs',
40
+ 'ParamKindArgsDict',
25
41
  'ParamRefPatchArgs',
42
+ 'ParamRefPatchArgsDict',
26
43
  'ParamRefArgs',
44
+ 'ParamRefArgsDict',
27
45
  'TypeCheckingArgs',
46
+ 'TypeCheckingArgsDict',
28
47
  'ValidatingAdmissionPolicyBindingSpecPatchArgs',
48
+ 'ValidatingAdmissionPolicyBindingSpecPatchArgsDict',
29
49
  'ValidatingAdmissionPolicyBindingSpecArgs',
50
+ 'ValidatingAdmissionPolicyBindingSpecArgsDict',
30
51
  'ValidatingAdmissionPolicyBindingArgs',
52
+ 'ValidatingAdmissionPolicyBindingArgsDict',
31
53
  'ValidatingAdmissionPolicySpecPatchArgs',
54
+ 'ValidatingAdmissionPolicySpecPatchArgsDict',
32
55
  'ValidatingAdmissionPolicySpecArgs',
56
+ 'ValidatingAdmissionPolicySpecArgsDict',
33
57
  'ValidatingAdmissionPolicyStatusArgs',
58
+ 'ValidatingAdmissionPolicyStatusArgsDict',
34
59
  'ValidatingAdmissionPolicyArgs',
60
+ 'ValidatingAdmissionPolicyArgsDict',
35
61
  'ValidationPatchArgs',
62
+ 'ValidationPatchArgsDict',
36
63
  'ValidationArgs',
64
+ 'ValidationArgsDict',
37
65
  'VariablePatchArgs',
66
+ 'VariablePatchArgsDict',
38
67
  'VariableArgs',
68
+ 'VariableArgsDict',
39
69
  ]
40
70
 
71
+ MYPY = False
72
+
73
+ if not MYPY:
74
+ class AuditAnnotationPatchArgsDict(TypedDict):
75
+ """
76
+ AuditAnnotation describes how to produce an audit annotation for an API request.
77
+ """
78
+ key: NotRequired[pulumi.Input[str]]
79
+ """
80
+ key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
81
+
82
+ The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
83
+
84
+ If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.
85
+
86
+ Required.
87
+ """
88
+ value_expression: NotRequired[pulumi.Input[str]]
89
+ """
90
+ valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.
91
+
92
+ If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.
93
+
94
+ Required.
95
+ """
96
+ elif False:
97
+ AuditAnnotationPatchArgsDict: TypeAlias = Mapping[str, Any]
98
+
41
99
  @pulumi.input_type
42
100
  class AuditAnnotationPatchArgs:
43
101
  def __init__(__self__, *,
@@ -98,6 +156,32 @@ class AuditAnnotationPatchArgs:
98
156
  pulumi.set(self, "value_expression", value)
99
157
 
100
158
 
159
+ if not MYPY:
160
+ class AuditAnnotationArgsDict(TypedDict):
161
+ """
162
+ AuditAnnotation describes how to produce an audit annotation for an API request.
163
+ """
164
+ key: pulumi.Input[str]
165
+ """
166
+ key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
167
+
168
+ The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
169
+
170
+ If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded.
171
+
172
+ Required.
173
+ """
174
+ value_expression: pulumi.Input[str]
175
+ """
176
+ valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb.
177
+
178
+ If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list.
179
+
180
+ Required.
181
+ """
182
+ elif False:
183
+ AuditAnnotationArgsDict: TypeAlias = Mapping[str, Any]
184
+
101
185
  @pulumi.input_type
102
186
  class AuditAnnotationArgs:
103
187
  def __init__(__self__, *,
@@ -156,6 +240,22 @@ class AuditAnnotationArgs:
156
240
  pulumi.set(self, "value_expression", value)
157
241
 
158
242
 
243
+ if not MYPY:
244
+ class ExpressionWarningArgsDict(TypedDict):
245
+ """
246
+ ExpressionWarning is a warning information that targets a specific expression.
247
+ """
248
+ field_ref: pulumi.Input[str]
249
+ """
250
+ The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is "spec.validations[0].expression"
251
+ """
252
+ warning: pulumi.Input[str]
253
+ """
254
+ The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.
255
+ """
256
+ elif False:
257
+ ExpressionWarningArgsDict: TypeAlias = Mapping[str, Any]
258
+
159
259
  @pulumi.input_type
160
260
  class ExpressionWarningArgs:
161
261
  def __init__(__self__, *,
@@ -194,6 +294,29 @@ class ExpressionWarningArgs:
194
294
  pulumi.set(self, "warning", value)
195
295
 
196
296
 
297
+ if not MYPY:
298
+ class MatchConditionPatchArgsDict(TypedDict):
299
+ expression: NotRequired[pulumi.Input[str]]
300
+ """
301
+ Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
302
+
303
+ 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
304
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
305
+ 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
306
+ request resource.
307
+ Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
308
+
309
+ Required.
310
+ """
311
+ name: NotRequired[pulumi.Input[str]]
312
+ """
313
+ Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
314
+
315
+ Required.
316
+ """
317
+ elif False:
318
+ MatchConditionPatchArgsDict: TypeAlias = Mapping[str, Any]
319
+
197
320
  @pulumi.input_type
198
321
  class MatchConditionPatchArgs:
199
322
  def __init__(__self__, *,
@@ -253,6 +376,29 @@ class MatchConditionPatchArgs:
253
376
  pulumi.set(self, "name", value)
254
377
 
255
378
 
379
+ if not MYPY:
380
+ class MatchConditionArgsDict(TypedDict):
381
+ expression: pulumi.Input[str]
382
+ """
383
+ Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
384
+
385
+ 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
386
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
387
+ 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
388
+ request resource.
389
+ Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
390
+
391
+ Required.
392
+ """
393
+ name: pulumi.Input[str]
394
+ """
395
+ Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
396
+
397
+ Required.
398
+ """
399
+ elif False:
400
+ MatchConditionArgsDict: TypeAlias = Mapping[str, Any]
401
+
256
402
  @pulumi.input_type
257
403
  class MatchConditionArgs:
258
404
  def __init__(__self__, *,
@@ -310,6 +456,70 @@ class MatchConditionArgs:
310
456
  pulumi.set(self, "name", value)
311
457
 
312
458
 
459
+ if not MYPY:
460
+ class MatchResourcesPatchArgsDict(TypedDict):
461
+ """
462
+ MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
463
+ """
464
+ exclude_resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgsDict']]]]
465
+ """
466
+ ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
467
+ """
468
+ match_policy: NotRequired[pulumi.Input[str]]
469
+ """
470
+ matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
471
+
472
+ - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
473
+
474
+ - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
475
+
476
+ Defaults to "Equivalent"
477
+ """
478
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
479
+ """
480
+ NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.
481
+
482
+ For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
483
+ "matchExpressions": [
484
+ {
485
+ "key": "runlevel",
486
+ "operator": "NotIn",
487
+ "values": [
488
+ "0",
489
+ "1"
490
+ ]
491
+ }
492
+ ]
493
+ }
494
+
495
+ If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
496
+ "matchExpressions": [
497
+ {
498
+ "key": "environment",
499
+ "operator": "In",
500
+ "values": [
501
+ "prod",
502
+ "staging"
503
+ ]
504
+ }
505
+ ]
506
+ }
507
+
508
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
509
+
510
+ Default to the empty LabelSelector, which matches everything.
511
+ """
512
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
513
+ """
514
+ ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
515
+ """
516
+ resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgsDict']]]]
517
+ """
518
+ ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
519
+ """
520
+ elif False:
521
+ MatchResourcesPatchArgsDict: TypeAlias = Mapping[str, Any]
522
+
313
523
  @pulumi.input_type
314
524
  class MatchResourcesPatchArgs:
315
525
  def __init__(__self__, *,
@@ -470,6 +680,70 @@ class MatchResourcesPatchArgs:
470
680
  pulumi.set(self, "resource_rules", value)
471
681
 
472
682
 
683
+ if not MYPY:
684
+ class MatchResourcesArgsDict(TypedDict):
685
+ """
686
+ MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
687
+ """
688
+ exclude_resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgsDict']]]]
689
+ """
690
+ ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
691
+ """
692
+ match_policy: NotRequired[pulumi.Input[str]]
693
+ """
694
+ matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
695
+
696
+ - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
697
+
698
+ - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
699
+
700
+ Defaults to "Equivalent"
701
+ """
702
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
703
+ """
704
+ NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.
705
+
706
+ For example, to run the webhook on any objects whose namespace is not associated with "runlevel" of "0" or "1"; you will set the selector as follows: "namespaceSelector": {
707
+ "matchExpressions": [
708
+ {
709
+ "key": "runlevel",
710
+ "operator": "NotIn",
711
+ "values": [
712
+ "0",
713
+ "1"
714
+ ]
715
+ }
716
+ ]
717
+ }
718
+
719
+ If instead you want to only run the policy on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
720
+ "matchExpressions": [
721
+ {
722
+ "key": "environment",
723
+ "operator": "In",
724
+ "values": [
725
+ "prod",
726
+ "staging"
727
+ ]
728
+ }
729
+ ]
730
+ }
731
+
732
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
733
+
734
+ Default to the empty LabelSelector, which matches everything.
735
+ """
736
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
737
+ """
738
+ ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything.
739
+ """
740
+ resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgsDict']]]]
741
+ """
742
+ ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
743
+ """
744
+ elif False:
745
+ MatchResourcesArgsDict: TypeAlias = Mapping[str, Any]
746
+
473
747
  @pulumi.input_type
474
748
  class MatchResourcesArgs:
475
749
  def __init__(__self__, *,
@@ -630,6 +904,44 @@ class MatchResourcesArgs:
630
904
  pulumi.set(self, "resource_rules", value)
631
905
 
632
906
 
907
+ if not MYPY:
908
+ class NamedRuleWithOperationsPatchArgsDict(TypedDict):
909
+ """
910
+ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
911
+ """
912
+ api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
913
+ """
914
+ APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
915
+ """
916
+ api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
917
+ """
918
+ APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
919
+ """
920
+ operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
921
+ """
922
+ Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
923
+ """
924
+ resource_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
925
+ """
926
+ ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
927
+ """
928
+ resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
929
+ """
930
+ Resources is a list of resources this rule applies to.
931
+
932
+ For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
933
+
934
+ If wildcard is present, the validation rule will ensure resources do not overlap with each other.
935
+
936
+ Depending on the enclosing object, subresources might not be allowed. Required.
937
+ """
938
+ scope: NotRequired[pulumi.Input[str]]
939
+ """
940
+ scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
941
+ """
942
+ elif False:
943
+ NamedRuleWithOperationsPatchArgsDict: TypeAlias = Mapping[str, Any]
944
+
633
945
  @pulumi.input_type
634
946
  class NamedRuleWithOperationsPatchArgs:
635
947
  def __init__(__self__, *,
@@ -746,6 +1058,44 @@ class NamedRuleWithOperationsPatchArgs:
746
1058
  pulumi.set(self, "scope", value)
747
1059
 
748
1060
 
1061
+ if not MYPY:
1062
+ class NamedRuleWithOperationsArgsDict(TypedDict):
1063
+ """
1064
+ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
1065
+ """
1066
+ api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1067
+ """
1068
+ APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
1069
+ """
1070
+ api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1071
+ """
1072
+ APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
1073
+ """
1074
+ operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1075
+ """
1076
+ Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.
1077
+ """
1078
+ resource_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1079
+ """
1080
+ ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
1081
+ """
1082
+ resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1083
+ """
1084
+ Resources is a list of resources this rule applies to.
1085
+
1086
+ For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.
1087
+
1088
+ If wildcard is present, the validation rule will ensure resources do not overlap with each other.
1089
+
1090
+ Depending on the enclosing object, subresources might not be allowed. Required.
1091
+ """
1092
+ scope: NotRequired[pulumi.Input[str]]
1093
+ """
1094
+ scope specifies the scope of this rule. Valid values are "Cluster", "Namespaced", and "*" "Cluster" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. "Namespaced" means that only namespaced resources will match this rule. "*" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is "*".
1095
+ """
1096
+ elif False:
1097
+ NamedRuleWithOperationsArgsDict: TypeAlias = Mapping[str, Any]
1098
+
749
1099
  @pulumi.input_type
750
1100
  class NamedRuleWithOperationsArgs:
751
1101
  def __init__(__self__, *,
@@ -862,6 +1212,22 @@ class NamedRuleWithOperationsArgs:
862
1212
  pulumi.set(self, "scope", value)
863
1213
 
864
1214
 
1215
+ if not MYPY:
1216
+ class ParamKindPatchArgsDict(TypedDict):
1217
+ """
1218
+ ParamKind is a tuple of Group Kind and Version.
1219
+ """
1220
+ api_version: NotRequired[pulumi.Input[str]]
1221
+ """
1222
+ APIVersion is the API group version the resources belong to. In format of "group/version". Required.
1223
+ """
1224
+ kind: NotRequired[pulumi.Input[str]]
1225
+ """
1226
+ Kind is the API kind the resources belong to. Required.
1227
+ """
1228
+ elif False:
1229
+ ParamKindPatchArgsDict: TypeAlias = Mapping[str, Any]
1230
+
865
1231
  @pulumi.input_type
866
1232
  class ParamKindPatchArgs:
867
1233
  def __init__(__self__, *,
@@ -902,6 +1268,22 @@ class ParamKindPatchArgs:
902
1268
  pulumi.set(self, "kind", value)
903
1269
 
904
1270
 
1271
+ if not MYPY:
1272
+ class ParamKindArgsDict(TypedDict):
1273
+ """
1274
+ ParamKind is a tuple of Group Kind and Version.
1275
+ """
1276
+ api_version: NotRequired[pulumi.Input[str]]
1277
+ """
1278
+ APIVersion is the API group version the resources belong to. In format of "group/version". Required.
1279
+ """
1280
+ kind: NotRequired[pulumi.Input[str]]
1281
+ """
1282
+ Kind is the API kind the resources belong to. Required.
1283
+ """
1284
+ elif False:
1285
+ ParamKindArgsDict: TypeAlias = Mapping[str, Any]
1286
+
905
1287
  @pulumi.input_type
906
1288
  class ParamKindArgs:
907
1289
  def __init__(__self__, *,
@@ -942,6 +1324,44 @@ class ParamKindArgs:
942
1324
  pulumi.set(self, "kind", value)
943
1325
 
944
1326
 
1327
+ if not MYPY:
1328
+ class ParamRefPatchArgsDict(TypedDict):
1329
+ """
1330
+ ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
1331
+ """
1332
+ name: NotRequired[pulumi.Input[str]]
1333
+ """
1334
+ `name` is the name of the resource being referenced.
1335
+
1336
+ `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
1337
+ """
1338
+ namespace: NotRequired[pulumi.Input[str]]
1339
+ """
1340
+ namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.
1341
+
1342
+ A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
1343
+
1344
+ - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
1345
+
1346
+ - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.
1347
+ """
1348
+ parameter_not_found_action: NotRequired[pulumi.Input[str]]
1349
+ """
1350
+ `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.
1351
+
1352
+ Allowed values are `Allow` or `Deny` Default to `Deny`
1353
+ """
1354
+ selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
1355
+ """
1356
+ selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
1357
+
1358
+ If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
1359
+
1360
+ One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
1361
+ """
1362
+ elif False:
1363
+ ParamRefPatchArgsDict: TypeAlias = Mapping[str, Any]
1364
+
945
1365
  @pulumi.input_type
946
1366
  class ParamRefPatchArgs:
947
1367
  def __init__(__self__, *,
@@ -1042,6 +1462,44 @@ class ParamRefPatchArgs:
1042
1462
  pulumi.set(self, "selector", value)
1043
1463
 
1044
1464
 
1465
+ if not MYPY:
1466
+ class ParamRefArgsDict(TypedDict):
1467
+ """
1468
+ ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
1469
+ """
1470
+ name: NotRequired[pulumi.Input[str]]
1471
+ """
1472
+ `name` is the name of the resource being referenced.
1473
+
1474
+ `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
1475
+ """
1476
+ namespace: NotRequired[pulumi.Input[str]]
1477
+ """
1478
+ namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields.
1479
+
1480
+ A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
1481
+
1482
+ - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
1483
+
1484
+ - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error.
1485
+ """
1486
+ parameter_not_found_action: NotRequired[pulumi.Input[str]]
1487
+ """
1488
+ `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.
1489
+
1490
+ Allowed values are `Allow` or `Deny` Default to `Deny`
1491
+ """
1492
+ selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
1493
+ """
1494
+ selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
1495
+
1496
+ If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
1497
+
1498
+ One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
1499
+ """
1500
+ elif False:
1501
+ ParamRefArgsDict: TypeAlias = Mapping[str, Any]
1502
+
1045
1503
  @pulumi.input_type
1046
1504
  class ParamRefArgs:
1047
1505
  def __init__(__self__, *,
@@ -1142,6 +1600,18 @@ class ParamRefArgs:
1142
1600
  pulumi.set(self, "selector", value)
1143
1601
 
1144
1602
 
1603
+ if not MYPY:
1604
+ class TypeCheckingArgsDict(TypedDict):
1605
+ """
1606
+ TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
1607
+ """
1608
+ expression_warnings: NotRequired[pulumi.Input[Sequence[pulumi.Input['ExpressionWarningArgsDict']]]]
1609
+ """
1610
+ The type checking warnings for each expression.
1611
+ """
1612
+ elif False:
1613
+ TypeCheckingArgsDict: TypeAlias = Mapping[str, Any]
1614
+
1145
1615
  @pulumi.input_type
1146
1616
  class TypeCheckingArgs:
1147
1617
  def __init__(__self__, *,
@@ -1166,6 +1636,48 @@ class TypeCheckingArgs:
1166
1636
  pulumi.set(self, "expression_warnings", value)
1167
1637
 
1168
1638
 
1639
+ if not MYPY:
1640
+ class ValidatingAdmissionPolicyBindingSpecPatchArgsDict(TypedDict):
1641
+ """
1642
+ ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
1643
+ """
1644
+ match_resources: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
1645
+ """
1646
+ MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
1647
+ """
1648
+ param_ref: NotRequired[pulumi.Input['ParamRefPatchArgsDict']]
1649
+ """
1650
+ paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
1651
+ """
1652
+ policy_name: NotRequired[pulumi.Input[str]]
1653
+ """
1654
+ PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
1655
+ """
1656
+ validation_actions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1657
+ """
1658
+ validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
1659
+
1660
+ Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.
1661
+
1662
+ validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
1663
+
1664
+ The supported actions values are:
1665
+
1666
+ "Deny" specifies that a validation failure results in a denied request.
1667
+
1668
+ "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
1669
+
1670
+ "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
1671
+
1672
+ Clients should expect to handle additional values by ignoring any values not recognized.
1673
+
1674
+ "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.
1675
+
1676
+ Required.
1677
+ """
1678
+ elif False:
1679
+ ValidatingAdmissionPolicyBindingSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
1680
+
1169
1681
  @pulumi.input_type
1170
1682
  class ValidatingAdmissionPolicyBindingSpecPatchArgs:
1171
1683
  def __init__(__self__, *,
@@ -1267,12 +1779,54 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
1267
1779
 
1268
1780
  Required.
1269
1781
  """
1270
- return pulumi.get(self, "validation_actions")
1271
-
1272
- @validation_actions.setter
1273
- def validation_actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
1274
- pulumi.set(self, "validation_actions", value)
1275
-
1782
+ return pulumi.get(self, "validation_actions")
1783
+
1784
+ @validation_actions.setter
1785
+ def validation_actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
1786
+ pulumi.set(self, "validation_actions", value)
1787
+
1788
+
1789
+ if not MYPY:
1790
+ class ValidatingAdmissionPolicyBindingSpecArgsDict(TypedDict):
1791
+ """
1792
+ ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
1793
+ """
1794
+ match_resources: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
1795
+ """
1796
+ MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required.
1797
+ """
1798
+ param_ref: NotRequired[pulumi.Input['ParamRefArgsDict']]
1799
+ """
1800
+ paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
1801
+ """
1802
+ policy_name: NotRequired[pulumi.Input[str]]
1803
+ """
1804
+ PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
1805
+ """
1806
+ validation_actions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1807
+ """
1808
+ validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
1809
+
1810
+ Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy.
1811
+
1812
+ validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
1813
+
1814
+ The supported actions values are:
1815
+
1816
+ "Deny" specifies that a validation failure results in a denied request.
1817
+
1818
+ "Warn" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses.
1819
+
1820
+ "Audit" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `"validation.policy.admission.k8s.io/validation_failure": "[{"message": "Invalid value", {"policy": "policy.example.com", {"binding": "policybinding.example.com", {"expressionIndex": "1", {"validationActions": ["Audit"]}]"`
1821
+
1822
+ Clients should expect to handle additional values by ignoring any values not recognized.
1823
+
1824
+ "Deny" and "Warn" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers.
1825
+
1826
+ Required.
1827
+ """
1828
+ elif False:
1829
+ ValidatingAdmissionPolicyBindingSpecArgsDict: TypeAlias = Mapping[str, Any]
1276
1830
 
1277
1831
  @pulumi.input_type
1278
1832
  class ValidatingAdmissionPolicyBindingSpecArgs:
@@ -1382,6 +1936,34 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
1382
1936
  pulumi.set(self, "validation_actions", value)
1383
1937
 
1384
1938
 
1939
+ if not MYPY:
1940
+ class ValidatingAdmissionPolicyBindingArgsDict(TypedDict):
1941
+ """
1942
+ ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
1943
+
1944
+ For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding.
1945
+
1946
+ The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
1947
+ """
1948
+ api_version: NotRequired[pulumi.Input[str]]
1949
+ """
1950
+ 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
1951
+ """
1952
+ kind: NotRequired[pulumi.Input[str]]
1953
+ """
1954
+ 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
1955
+ """
1956
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
1957
+ """
1958
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
1959
+ """
1960
+ spec: NotRequired[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgsDict']]
1961
+ """
1962
+ Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
1963
+ """
1964
+ elif False:
1965
+ ValidatingAdmissionPolicyBindingArgsDict: TypeAlias = Mapping[str, Any]
1966
+
1385
1967
  @pulumi.input_type
1386
1968
  class ValidatingAdmissionPolicyBindingArgs:
1387
1969
  def __init__(__self__, *,
@@ -1458,6 +2040,61 @@ class ValidatingAdmissionPolicyBindingArgs:
1458
2040
  pulumi.set(self, "spec", value)
1459
2041
 
1460
2042
 
2043
+ if not MYPY:
2044
+ class ValidatingAdmissionPolicySpecPatchArgsDict(TypedDict):
2045
+ """
2046
+ ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
2047
+ """
2048
+ audit_annotations: NotRequired[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationPatchArgsDict']]]]
2049
+ """
2050
+ auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.
2051
+ """
2052
+ failure_policy: NotRequired[pulumi.Input[str]]
2053
+ """
2054
+ failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.
2055
+
2056
+ A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.
2057
+
2058
+ failurePolicy does not define how validations that evaluate to false are handled.
2059
+
2060
+ When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
2061
+
2062
+ Allowed values are Ignore or Fail. Defaults to Fail.
2063
+ """
2064
+ match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgsDict']]]]
2065
+ """
2066
+ MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
2067
+
2068
+ If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
2069
+
2070
+ The exact matching logic is (in order):
2071
+ 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
2072
+ 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
2073
+ 3. If any matchCondition evaluates to an error (but none are FALSE):
2074
+ - If failurePolicy=Fail, reject the request
2075
+ - If failurePolicy=Ignore, the policy is skipped
2076
+ """
2077
+ match_constraints: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
2078
+ """
2079
+ MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.
2080
+ """
2081
+ param_kind: NotRequired[pulumi.Input['ParamKindPatchArgsDict']]
2082
+ """
2083
+ ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
2084
+ """
2085
+ validations: NotRequired[pulumi.Input[Sequence[pulumi.Input['ValidationPatchArgsDict']]]]
2086
+ """
2087
+ Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.
2088
+ """
2089
+ variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgsDict']]]]
2090
+ """
2091
+ Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.
2092
+
2093
+ The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.
2094
+ """
2095
+ elif False:
2096
+ ValidatingAdmissionPolicySpecPatchArgsDict: TypeAlias = Mapping[str, Any]
2097
+
1461
2098
  @pulumi.input_type
1462
2099
  class ValidatingAdmissionPolicySpecPatchArgs:
1463
2100
  def __init__(__self__, *,
@@ -1616,6 +2253,61 @@ class ValidatingAdmissionPolicySpecPatchArgs:
1616
2253
  pulumi.set(self, "variables", value)
1617
2254
 
1618
2255
 
2256
+ if not MYPY:
2257
+ class ValidatingAdmissionPolicySpecArgsDict(TypedDict):
2258
+ """
2259
+ ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
2260
+ """
2261
+ validations: pulumi.Input[Sequence[pulumi.Input['ValidationArgsDict']]]
2262
+ """
2263
+ Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.
2264
+ """
2265
+ audit_annotations: NotRequired[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationArgsDict']]]]
2266
+ """
2267
+ auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required.
2268
+ """
2269
+ failure_policy: NotRequired[pulumi.Input[str]]
2270
+ """
2271
+ failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.
2272
+
2273
+ A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource.
2274
+
2275
+ failurePolicy does not define how validations that evaluate to false are handled.
2276
+
2277
+ When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
2278
+
2279
+ Allowed values are Ignore or Fail. Defaults to Fail.
2280
+ """
2281
+ match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgsDict']]]]
2282
+ """
2283
+ MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
2284
+
2285
+ If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
2286
+
2287
+ The exact matching logic is (in order):
2288
+ 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
2289
+ 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
2290
+ 3. If any matchCondition evaluates to an error (but none are FALSE):
2291
+ - If failurePolicy=Fail, reject the request
2292
+ - If failurePolicy=Ignore, the policy is skipped
2293
+ """
2294
+ match_constraints: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
2295
+ """
2296
+ MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required.
2297
+ """
2298
+ param_kind: NotRequired[pulumi.Input['ParamKindArgsDict']]
2299
+ """
2300
+ ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
2301
+ """
2302
+ variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariableArgsDict']]]]
2303
+ """
2304
+ Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.
2305
+
2306
+ The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.
2307
+ """
2308
+ elif False:
2309
+ ValidatingAdmissionPolicySpecArgsDict: TypeAlias = Mapping[str, Any]
2310
+
1619
2311
  @pulumi.input_type
1620
2312
  class ValidatingAdmissionPolicySpecArgs:
1621
2313
  def __init__(__self__, *,
@@ -1773,6 +2465,26 @@ class ValidatingAdmissionPolicySpecArgs:
1773
2465
  pulumi.set(self, "variables", value)
1774
2466
 
1775
2467
 
2468
+ if not MYPY:
2469
+ class ValidatingAdmissionPolicyStatusArgsDict(TypedDict):
2470
+ """
2471
+ ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
2472
+ """
2473
+ conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgsDict']]]]
2474
+ """
2475
+ The conditions represent the latest available observations of a policy's current state.
2476
+ """
2477
+ observed_generation: NotRequired[pulumi.Input[int]]
2478
+ """
2479
+ The generation observed by the controller.
2480
+ """
2481
+ type_checking: NotRequired[pulumi.Input['TypeCheckingArgsDict']]
2482
+ """
2483
+ The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
2484
+ """
2485
+ elif False:
2486
+ ValidatingAdmissionPolicyStatusArgsDict: TypeAlias = Mapping[str, Any]
2487
+
1776
2488
  @pulumi.input_type
1777
2489
  class ValidatingAdmissionPolicyStatusArgs:
1778
2490
  def __init__(__self__, *,
@@ -1829,6 +2541,34 @@ class ValidatingAdmissionPolicyStatusArgs:
1829
2541
  pulumi.set(self, "type_checking", value)
1830
2542
 
1831
2543
 
2544
+ if not MYPY:
2545
+ class ValidatingAdmissionPolicyArgsDict(TypedDict):
2546
+ """
2547
+ ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
2548
+ """
2549
+ api_version: NotRequired[pulumi.Input[str]]
2550
+ """
2551
+ 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
2552
+ """
2553
+ kind: NotRequired[pulumi.Input[str]]
2554
+ """
2555
+ 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
2556
+ """
2557
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
2558
+ """
2559
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
2560
+ """
2561
+ spec: NotRequired[pulumi.Input['ValidatingAdmissionPolicySpecArgsDict']]
2562
+ """
2563
+ Specification of the desired behavior of the ValidatingAdmissionPolicy.
2564
+ """
2565
+ status: NotRequired[pulumi.Input['ValidatingAdmissionPolicyStatusArgsDict']]
2566
+ """
2567
+ The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only.
2568
+ """
2569
+ elif False:
2570
+ ValidatingAdmissionPolicyArgsDict: TypeAlias = Mapping[str, Any]
2571
+
1832
2572
  @pulumi.input_type
1833
2573
  class ValidatingAdmissionPolicyArgs:
1834
2574
  def __init__(__self__, *,
@@ -1917,6 +2657,55 @@ class ValidatingAdmissionPolicyArgs:
1917
2657
  pulumi.set(self, "status", value)
1918
2658
 
1919
2659
 
2660
+ if not MYPY:
2661
+ class ValidationPatchArgsDict(TypedDict):
2662
+ """
2663
+ Validation specifies the CEL expression which is used to apply the validation.
2664
+ """
2665
+ expression: NotRequired[pulumi.Input[str]]
2666
+ """
2667
+ Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
2668
+
2669
+ - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
2670
+ For example, a variable named 'foo' can be accessed as 'variables.foo'.
2671
+ - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
2672
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
2673
+ - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
2674
+ request resource.
2675
+
2676
+ The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
2677
+
2678
+ Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
2679
+ "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
2680
+ "import", "let", "loop", "package", "namespace", "return".
2681
+ Examples:
2682
+ - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
2683
+ - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
2684
+ - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
2685
+
2686
+ Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
2687
+ - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
2688
+ non-intersecting elements in `Y` are appended, retaining their partial order.
2689
+ - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
2690
+ are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
2691
+ non-intersecting keys are appended, retaining their partial order.
2692
+ Required.
2693
+ """
2694
+ message: NotRequired[pulumi.Input[str]]
2695
+ """
2696
+ Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}".
2697
+ """
2698
+ message_expression: NotRequired[pulumi.Input[str]]
2699
+ """
2700
+ messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")"
2701
+ """
2702
+ reason: NotRequired[pulumi.Input[str]]
2703
+ """
2704
+ Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client.
2705
+ """
2706
+ elif False:
2707
+ ValidationPatchArgsDict: TypeAlias = Mapping[str, Any]
2708
+
1920
2709
  @pulumi.input_type
1921
2710
  class ValidationPatchArgs:
1922
2711
  def __init__(__self__, *,
@@ -2039,6 +2828,55 @@ class ValidationPatchArgs:
2039
2828
  pulumi.set(self, "reason", value)
2040
2829
 
2041
2830
 
2831
+ if not MYPY:
2832
+ class ValidationArgsDict(TypedDict):
2833
+ """
2834
+ Validation specifies the CEL expression which is used to apply the validation.
2835
+ """
2836
+ expression: pulumi.Input[str]
2837
+ """
2838
+ Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
2839
+
2840
+ - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
2841
+ For example, a variable named 'foo' can be accessed as 'variables.foo'.
2842
+ - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
2843
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
2844
+ - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
2845
+ request resource.
2846
+
2847
+ The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
2848
+
2849
+ Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:
2850
+ "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
2851
+ "import", "let", "loop", "package", "namespace", "return".
2852
+ Examples:
2853
+ - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
2854
+ - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
2855
+ - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
2856
+
2857
+ Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:
2858
+ - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
2859
+ non-intersecting elements in `Y` are appended, retaining their partial order.
2860
+ - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
2861
+ are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
2862
+ non-intersecting keys are appended, retaining their partial order.
2863
+ Required.
2864
+ """
2865
+ message: NotRequired[pulumi.Input[str]]
2866
+ """
2867
+ Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is "failed rule: {Rule}". e.g. "must be a URL with the host matching spec.host" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is "failed Expression: {Expression}".
2868
+ """
2869
+ message_expression: NotRequired[pulumi.Input[str]]
2870
+ """
2871
+ messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: "object.x must be less than max ("+string(params.max)+")"
2872
+ """
2873
+ reason: NotRequired[pulumi.Input[str]]
2874
+ """
2875
+ Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: "Unauthorized", "Forbidden", "Invalid", "RequestEntityTooLarge". If not set, StatusReasonInvalid is used in the response to the client.
2876
+ """
2877
+ elif False:
2878
+ ValidationArgsDict: TypeAlias = Mapping[str, Any]
2879
+
2042
2880
  @pulumi.input_type
2043
2881
  class ValidationArgs:
2044
2882
  def __init__(__self__, *,
@@ -2160,6 +2998,22 @@ class ValidationArgs:
2160
2998
  pulumi.set(self, "reason", value)
2161
2999
 
2162
3000
 
3001
+ if not MYPY:
3002
+ class VariablePatchArgsDict(TypedDict):
3003
+ """
3004
+ Variable is the definition of a variable that is used for composition.
3005
+ """
3006
+ expression: NotRequired[pulumi.Input[str]]
3007
+ """
3008
+ Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
3009
+ """
3010
+ name: NotRequired[pulumi.Input[str]]
3011
+ """
3012
+ Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
3013
+ """
3014
+ elif False:
3015
+ VariablePatchArgsDict: TypeAlias = Mapping[str, Any]
3016
+
2163
3017
  @pulumi.input_type
2164
3018
  class VariablePatchArgs:
2165
3019
  def __init__(__self__, *,
@@ -2200,6 +3054,22 @@ class VariablePatchArgs:
2200
3054
  pulumi.set(self, "name", value)
2201
3055
 
2202
3056
 
3057
+ if not MYPY:
3058
+ class VariableArgsDict(TypedDict):
3059
+ """
3060
+ Variable is the definition of a variable that is used for composition.
3061
+ """
3062
+ expression: pulumi.Input[str]
3063
+ """
3064
+ Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.
3065
+ """
3066
+ name: pulumi.Input[str]
3067
+ """
3068
+ Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is "foo", the variable will be available as `variables.foo`
3069
+ """
3070
+ elif False:
3071
+ VariableArgsDict: TypeAlias = Mapping[str, Any]
3072
+
2203
3073
  @pulumi.input_type
2204
3074
  class VariableArgs:
2205
3075
  def __init__(__self__, *,