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

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

Potentially problematic release.


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

Files changed (598) hide show
  1. pulumi_kubernetes/__init__.py +123 -3
  2. pulumi_kubernetes/_inputs.py +63 -6
  3. pulumi_kubernetes/_utilities.py +41 -5
  4. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +11 -6
  5. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +11 -6
  6. pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +11 -6
  7. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +226 -0
  8. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +224 -0
  9. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +215 -0
  10. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +236 -0
  11. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +215 -0
  12. pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +238 -0
  13. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +11 -6
  14. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +11 -6
  15. pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +11 -6
  16. pulumi_kubernetes/admissionregistration/v1/__init__.py +6 -0
  17. pulumi_kubernetes/admissionregistration/v1/_inputs.py +4571 -939
  18. pulumi_kubernetes/admissionregistration/v1/outputs.py +2880 -470
  19. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
  20. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
  21. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
  22. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
  23. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
  24. pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
  25. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +12 -7
  26. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +12 -15
  27. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +29 -23
  28. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +12 -15
  29. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +29 -23
  30. pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +12 -7
  31. pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
  32. pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +2514 -141
  33. pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1370 -246
  34. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +11 -6
  35. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +11 -6
  36. pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +11 -6
  37. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +12 -7
  38. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +12 -7
  39. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +29 -23
  40. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +12 -7
  41. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +29 -23
  42. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +12 -7
  43. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +11 -6
  44. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +11 -6
  45. pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +11 -6
  46. pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +1522 -42
  47. pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +9 -4
  48. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +11 -6
  49. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +11 -6
  50. pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +11 -6
  51. pulumi_kubernetes/apiextensions/v1/_inputs.py +1175 -12
  52. pulumi_kubernetes/apiextensions/v1/outputs.py +122 -8
  53. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +10 -5
  54. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +10 -5
  55. pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +10 -5
  56. pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +903 -6
  57. pulumi_kubernetes/apiextensions/v1beta1/outputs.py +5 -0
  58. pulumi_kubernetes/apiregistration/v1/APIService.py +11 -6
  59. pulumi_kubernetes/apiregistration/v1/APIServiceList.py +11 -6
  60. pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +11 -6
  61. pulumi_kubernetes/apiregistration/v1/_inputs.py +194 -0
  62. pulumi_kubernetes/apiregistration/v1/outputs.py +5 -0
  63. pulumi_kubernetes/apiregistration/v1beta1/APIService.py +10 -5
  64. pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +9 -4
  65. pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +10 -5
  66. pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +191 -0
  67. pulumi_kubernetes/apiregistration/v1beta1/outputs.py +5 -0
  68. pulumi_kubernetes/apps/v1/ControllerRevision.py +8 -3
  69. pulumi_kubernetes/apps/v1/ControllerRevisionList.py +11 -6
  70. pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +8 -3
  71. pulumi_kubernetes/apps/v1/DaemonSet.py +11 -6
  72. pulumi_kubernetes/apps/v1/DaemonSetList.py +11 -6
  73. pulumi_kubernetes/apps/v1/DaemonSetPatch.py +11 -6
  74. pulumi_kubernetes/apps/v1/Deployment.py +11 -6
  75. pulumi_kubernetes/apps/v1/DeploymentList.py +11 -6
  76. pulumi_kubernetes/apps/v1/DeploymentPatch.py +11 -6
  77. pulumi_kubernetes/apps/v1/ReplicaSet.py +11 -6
  78. pulumi_kubernetes/apps/v1/ReplicaSetList.py +11 -6
  79. pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +11 -6
  80. pulumi_kubernetes/apps/v1/StatefulSet.py +11 -6
  81. pulumi_kubernetes/apps/v1/StatefulSetList.py +11 -6
  82. pulumi_kubernetes/apps/v1/StatefulSetPatch.py +11 -6
  83. pulumi_kubernetes/apps/v1/_inputs.py +1057 -8
  84. pulumi_kubernetes/apps/v1/outputs.py +13 -8
  85. pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +8 -3
  86. pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +11 -6
  87. pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +8 -3
  88. pulumi_kubernetes/apps/v1beta1/Deployment.py +11 -6
  89. pulumi_kubernetes/apps/v1beta1/DeploymentList.py +11 -6
  90. pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +11 -6
  91. pulumi_kubernetes/apps/v1beta1/StatefulSet.py +10 -5
  92. pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +9 -4
  93. pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +10 -5
  94. pulumi_kubernetes/apps/v1beta1/_inputs.py +603 -0
  95. pulumi_kubernetes/apps/v1beta1/outputs.py +5 -0
  96. pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +8 -3
  97. pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +11 -6
  98. pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +8 -3
  99. pulumi_kubernetes/apps/v1beta2/DaemonSet.py +11 -6
  100. pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +11 -6
  101. pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +11 -6
  102. pulumi_kubernetes/apps/v1beta2/Deployment.py +11 -6
  103. pulumi_kubernetes/apps/v1beta2/DeploymentList.py +11 -6
  104. pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +11 -6
  105. pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +11 -6
  106. pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +11 -6
  107. pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +11 -6
  108. pulumi_kubernetes/apps/v1beta2/StatefulSet.py +10 -5
  109. pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +9 -4
  110. pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +10 -5
  111. pulumi_kubernetes/apps/v1beta2/_inputs.py +935 -0
  112. pulumi_kubernetes/apps/v1beta2/outputs.py +5 -0
  113. pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +10 -5
  114. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +10 -5
  115. pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +10 -5
  116. pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +281 -0
  117. pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +5 -0
  118. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +11 -6
  119. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +11 -6
  120. pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +11 -6
  121. pulumi_kubernetes/autoscaling/v1/_inputs.py +157 -0
  122. pulumi_kubernetes/autoscaling/v1/outputs.py +5 -0
  123. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +11 -6
  124. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +11 -6
  125. pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +11 -6
  126. pulumi_kubernetes/autoscaling/v2/_inputs.py +815 -10
  127. pulumi_kubernetes/autoscaling/v2/outputs.py +17 -12
  128. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +11 -6
  129. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +11 -6
  130. pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +11 -6
  131. pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +652 -0
  132. pulumi_kubernetes/autoscaling/v2beta1/outputs.py +5 -0
  133. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +11 -6
  134. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +11 -6
  135. pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +11 -6
  136. pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +796 -0
  137. pulumi_kubernetes/autoscaling/v2beta2/outputs.py +5 -0
  138. pulumi_kubernetes/batch/v1/CronJob.py +11 -6
  139. pulumi_kubernetes/batch/v1/CronJobList.py +11 -6
  140. pulumi_kubernetes/batch/v1/CronJobPatch.py +11 -6
  141. pulumi_kubernetes/batch/v1/Job.py +11 -6
  142. pulumi_kubernetes/batch/v1/JobList.py +11 -6
  143. pulumi_kubernetes/batch/v1/JobPatch.py +11 -6
  144. pulumi_kubernetes/batch/v1/_inputs.py +1070 -85
  145. pulumi_kubernetes/batch/v1/outputs.py +298 -40
  146. pulumi_kubernetes/batch/v1beta1/CronJob.py +11 -6
  147. pulumi_kubernetes/batch/v1beta1/CronJobList.py +11 -6
  148. pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +11 -6
  149. pulumi_kubernetes/batch/v1beta1/_inputs.py +161 -0
  150. pulumi_kubernetes/batch/v1beta1/outputs.py +5 -0
  151. pulumi_kubernetes/batch/v2alpha1/CronJob.py +11 -6
  152. pulumi_kubernetes/batch/v2alpha1/CronJobList.py +11 -6
  153. pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +11 -6
  154. pulumi_kubernetes/batch/v2alpha1/_inputs.py +161 -0
  155. pulumi_kubernetes/batch/v2alpha1/outputs.py +5 -0
  156. pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +10 -5
  157. pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +10 -5
  158. pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +10 -5
  159. pulumi_kubernetes/certificates/v1/_inputs.py +290 -0
  160. pulumi_kubernetes/certificates/v1/outputs.py +5 -0
  161. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +11 -6
  162. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +11 -6
  163. pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +11 -6
  164. pulumi_kubernetes/certificates/v1alpha1/_inputs.py +94 -0
  165. pulumi_kubernetes/certificates/v1alpha1/outputs.py +5 -0
  166. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +10 -5
  167. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +9 -4
  168. pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +10 -5
  169. pulumi_kubernetes/certificates/v1beta1/_inputs.py +165 -0
  170. pulumi_kubernetes/certificates/v1beta1/outputs.py +5 -0
  171. pulumi_kubernetes/coordination/__init__.py +6 -0
  172. pulumi_kubernetes/coordination/v1/Lease.py +11 -6
  173. pulumi_kubernetes/coordination/v1/LeaseList.py +11 -6
  174. pulumi_kubernetes/coordination/v1/LeasePatch.py +11 -6
  175. pulumi_kubernetes/coordination/v1/_inputs.py +180 -10
  176. pulumi_kubernetes/coordination/v1/outputs.py +67 -10
  177. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +216 -0
  178. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +215 -0
  179. pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +228 -0
  180. pulumi_kubernetes/coordination/v1alpha1/__init__.py +12 -0
  181. pulumi_kubernetes/coordination/v1alpha1/_inputs.py +418 -0
  182. pulumi_kubernetes/coordination/v1alpha1/outputs.py +334 -0
  183. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
  184. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
  185. pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
  186. pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
  187. pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
  188. pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
  189. pulumi_kubernetes/coordination/v1beta1/Lease.py +11 -6
  190. pulumi_kubernetes/coordination/v1beta1/LeaseList.py +11 -6
  191. pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +11 -6
  192. pulumi_kubernetes/coordination/v1beta1/_inputs.py +90 -0
  193. pulumi_kubernetes/coordination/v1beta1/outputs.py +5 -0
  194. pulumi_kubernetes/core/v1/Binding.py +13 -8
  195. pulumi_kubernetes/core/v1/BindingPatch.py +13 -8
  196. pulumi_kubernetes/core/v1/ConfigMap.py +8 -3
  197. pulumi_kubernetes/core/v1/ConfigMapList.py +11 -6
  198. pulumi_kubernetes/core/v1/ConfigMapPatch.py +8 -3
  199. pulumi_kubernetes/core/v1/Endpoints.py +11 -6
  200. pulumi_kubernetes/core/v1/EndpointsList.py +11 -6
  201. pulumi_kubernetes/core/v1/EndpointsPatch.py +11 -6
  202. pulumi_kubernetes/core/v1/Event.py +20 -15
  203. pulumi_kubernetes/core/v1/EventList.py +11 -6
  204. pulumi_kubernetes/core/v1/EventPatch.py +20 -15
  205. pulumi_kubernetes/core/v1/LimitRange.py +11 -6
  206. pulumi_kubernetes/core/v1/LimitRangeList.py +11 -6
  207. pulumi_kubernetes/core/v1/LimitRangePatch.py +11 -6
  208. pulumi_kubernetes/core/v1/Namespace.py +11 -6
  209. pulumi_kubernetes/core/v1/NamespaceList.py +11 -6
  210. pulumi_kubernetes/core/v1/NamespacePatch.py +11 -6
  211. pulumi_kubernetes/core/v1/Node.py +11 -6
  212. pulumi_kubernetes/core/v1/NodeList.py +11 -6
  213. pulumi_kubernetes/core/v1/NodePatch.py +11 -6
  214. pulumi_kubernetes/core/v1/PersistentVolume.py +11 -6
  215. pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +11 -6
  216. pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +11 -6
  217. pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +11 -6
  218. pulumi_kubernetes/core/v1/PersistentVolumeList.py +11 -6
  219. pulumi_kubernetes/core/v1/PersistentVolumePatch.py +11 -6
  220. pulumi_kubernetes/core/v1/Pod.py +11 -6
  221. pulumi_kubernetes/core/v1/PodList.py +11 -6
  222. pulumi_kubernetes/core/v1/PodPatch.py +11 -6
  223. pulumi_kubernetes/core/v1/PodTemplate.py +11 -6
  224. pulumi_kubernetes/core/v1/PodTemplateList.py +11 -6
  225. pulumi_kubernetes/core/v1/PodTemplatePatch.py +11 -6
  226. pulumi_kubernetes/core/v1/ReplicationController.py +11 -6
  227. pulumi_kubernetes/core/v1/ReplicationControllerList.py +11 -6
  228. pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +11 -6
  229. pulumi_kubernetes/core/v1/ResourceQuota.py +11 -6
  230. pulumi_kubernetes/core/v1/ResourceQuotaList.py +11 -6
  231. pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +11 -6
  232. pulumi_kubernetes/core/v1/Secret.py +8 -3
  233. pulumi_kubernetes/core/v1/SecretList.py +11 -6
  234. pulumi_kubernetes/core/v1/SecretPatch.py +8 -3
  235. pulumi_kubernetes/core/v1/Service.py +17 -28
  236. pulumi_kubernetes/core/v1/ServiceAccount.py +17 -12
  237. pulumi_kubernetes/core/v1/ServiceAccountList.py +11 -6
  238. pulumi_kubernetes/core/v1/ServiceAccountPatch.py +17 -12
  239. pulumi_kubernetes/core/v1/ServiceList.py +11 -6
  240. pulumi_kubernetes/core/v1/ServicePatch.py +17 -28
  241. pulumi_kubernetes/core/v1/_inputs.py +11760 -756
  242. pulumi_kubernetes/core/v1/outputs.py +2131 -448
  243. pulumi_kubernetes/discovery/v1/EndpointSlice.py +14 -9
  244. pulumi_kubernetes/discovery/v1/EndpointSliceList.py +11 -6
  245. pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +14 -9
  246. pulumi_kubernetes/discovery/v1/_inputs.py +284 -0
  247. pulumi_kubernetes/discovery/v1/outputs.py +5 -0
  248. pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +14 -9
  249. pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +11 -6
  250. pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +14 -9
  251. pulumi_kubernetes/discovery/v1beta1/_inputs.py +210 -0
  252. pulumi_kubernetes/discovery/v1beta1/outputs.py +5 -0
  253. pulumi_kubernetes/events/v1/Event.py +20 -15
  254. pulumi_kubernetes/events/v1/EventList.py +11 -6
  255. pulumi_kubernetes/events/v1/EventPatch.py +20 -15
  256. pulumi_kubernetes/events/v1/_inputs.py +118 -0
  257. pulumi_kubernetes/events/v1/outputs.py +5 -0
  258. pulumi_kubernetes/events/v1beta1/Event.py +19 -14
  259. pulumi_kubernetes/events/v1beta1/EventList.py +11 -6
  260. pulumi_kubernetes/events/v1beta1/EventPatch.py +19 -14
  261. pulumi_kubernetes/events/v1beta1/_inputs.py +123 -0
  262. pulumi_kubernetes/events/v1beta1/outputs.py +5 -0
  263. pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +11 -6
  264. pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +11 -6
  265. pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +11 -6
  266. pulumi_kubernetes/extensions/v1beta1/Deployment.py +11 -6
  267. pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +11 -6
  268. pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +11 -6
  269. pulumi_kubernetes/extensions/v1beta1/Ingress.py +11 -6
  270. pulumi_kubernetes/extensions/v1beta1/IngressList.py +11 -6
  271. pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +11 -6
  272. pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +11 -6
  273. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +11 -6
  274. pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +11 -6
  275. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +11 -6
  276. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +11 -6
  277. pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +11 -6
  278. pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +11 -6
  279. pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +11 -6
  280. pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +11 -6
  281. pulumi_kubernetes/extensions/v1beta1/_inputs.py +1884 -26
  282. pulumi_kubernetes/extensions/v1beta1/outputs.py +5 -0
  283. pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +11 -6
  284. pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +11 -6
  285. pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +11 -6
  286. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +11 -6
  287. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +11 -6
  288. pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +11 -6
  289. pulumi_kubernetes/flowcontrol/v1/_inputs.py +779 -0
  290. pulumi_kubernetes/flowcontrol/v1/outputs.py +5 -0
  291. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +11 -6
  292. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +11 -6
  293. pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +11 -6
  294. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +11 -6
  295. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +11 -6
  296. pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +11 -6
  297. pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +671 -0
  298. pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +5 -0
  299. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +11 -6
  300. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +11 -6
  301. pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +11 -6
  302. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +11 -6
  303. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +11 -6
  304. pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +11 -6
  305. pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +671 -0
  306. pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +5 -0
  307. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +11 -6
  308. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +11 -6
  309. pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +11 -6
  310. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +11 -6
  311. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +11 -6
  312. pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +11 -6
  313. pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +771 -0
  314. pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +5 -0
  315. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +11 -6
  316. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +11 -6
  317. pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +11 -6
  318. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +11 -6
  319. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +11 -6
  320. pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +11 -6
  321. pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +779 -8
  322. pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +13 -8
  323. pulumi_kubernetes/helm/__init__.py +3 -0
  324. pulumi_kubernetes/helm/v3/Release.py +8 -3
  325. pulumi_kubernetes/helm/v3/_inputs.py +42 -2
  326. pulumi_kubernetes/helm/v3/outputs.py +7 -2
  327. pulumi_kubernetes/helm/v4/Chart.py +721 -0
  328. pulumi_kubernetes/helm/v4/__init__.py +9 -0
  329. pulumi_kubernetes/helm/v4/_inputs.py +216 -0
  330. pulumi_kubernetes/kustomize/__init__.py +8 -0
  331. pulumi_kubernetes/kustomize/v2/Directory.py +219 -0
  332. pulumi_kubernetes/kustomize/v2/__init__.py +8 -0
  333. pulumi_kubernetes/meta/v1/Status.py +11 -6
  334. pulumi_kubernetes/meta/v1/StatusPatch.py +11 -6
  335. pulumi_kubernetes/meta/v1/_inputs.py +596 -0
  336. pulumi_kubernetes/meta/v1/outputs.py +5 -0
  337. pulumi_kubernetes/networking/v1/Ingress.py +11 -6
  338. pulumi_kubernetes/networking/v1/IngressClass.py +11 -6
  339. pulumi_kubernetes/networking/v1/IngressClassList.py +11 -6
  340. pulumi_kubernetes/networking/v1/IngressClassPatch.py +11 -6
  341. pulumi_kubernetes/networking/v1/IngressList.py +11 -6
  342. pulumi_kubernetes/networking/v1/IngressPatch.py +11 -6
  343. pulumi_kubernetes/networking/v1/NetworkPolicy.py +11 -6
  344. pulumi_kubernetes/networking/v1/NetworkPolicyList.py +11 -6
  345. pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +11 -6
  346. pulumi_kubernetes/networking/v1/_inputs.py +840 -0
  347. pulumi_kubernetes/networking/v1/outputs.py +5 -0
  348. pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +11 -6
  349. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +11 -6
  350. pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +11 -6
  351. pulumi_kubernetes/networking/v1alpha1/IPAddress.py +13 -6
  352. pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +11 -6
  353. pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +13 -6
  354. pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +13 -6
  355. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +11 -6
  356. pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +13 -6
  357. pulumi_kubernetes/networking/v1alpha1/_inputs.py +293 -37
  358. pulumi_kubernetes/networking/v1alpha1/outputs.py +26 -24
  359. pulumi_kubernetes/networking/v1beta1/IPAddress.py +216 -0
  360. pulumi_kubernetes/networking/v1beta1/IPAddressList.py +215 -0
  361. pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +228 -0
  362. pulumi_kubernetes/networking/v1beta1/Ingress.py +11 -6
  363. pulumi_kubernetes/networking/v1beta1/IngressClass.py +11 -6
  364. pulumi_kubernetes/networking/v1beta1/IngressClassList.py +11 -6
  365. pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +11 -6
  366. pulumi_kubernetes/networking/v1beta1/IngressList.py +11 -6
  367. pulumi_kubernetes/networking/v1beta1/IngressPatch.py +11 -6
  368. pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +226 -0
  369. pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +215 -0
  370. pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +238 -0
  371. pulumi_kubernetes/networking/v1beta1/__init__.py +6 -0
  372. pulumi_kubernetes/networking/v1beta1/_inputs.py +984 -11
  373. pulumi_kubernetes/networking/v1beta1/outputs.py +466 -0
  374. pulumi_kubernetes/node/v1/RuntimeClass.py +14 -9
  375. pulumi_kubernetes/node/v1/RuntimeClassList.py +11 -6
  376. pulumi_kubernetes/node/v1/RuntimeClassPatch.py +14 -9
  377. pulumi_kubernetes/node/v1/_inputs.py +101 -0
  378. pulumi_kubernetes/node/v1/outputs.py +5 -0
  379. pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +11 -6
  380. pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +11 -6
  381. pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +11 -6
  382. pulumi_kubernetes/node/v1alpha1/_inputs.py +134 -0
  383. pulumi_kubernetes/node/v1alpha1/outputs.py +5 -0
  384. pulumi_kubernetes/node/v1beta1/RuntimeClass.py +14 -9
  385. pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +11 -6
  386. pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +14 -9
  387. pulumi_kubernetes/node/v1beta1/_inputs.py +100 -0
  388. pulumi_kubernetes/node/v1beta1/outputs.py +5 -0
  389. pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +11 -6
  390. pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +11 -6
  391. pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +11 -6
  392. pulumi_kubernetes/policy/v1/_inputs.py +151 -0
  393. pulumi_kubernetes/policy/v1/outputs.py +5 -0
  394. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +10 -5
  395. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +9 -4
  396. pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +10 -5
  397. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +11 -6
  398. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +11 -6
  399. pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +11 -6
  400. pulumi_kubernetes/policy/v1beta1/_inputs.py +713 -0
  401. pulumi_kubernetes/policy/v1beta1/outputs.py +5 -0
  402. pulumi_kubernetes/provider.py +82 -6
  403. pulumi_kubernetes/pulumi-plugin.json +2 -1
  404. pulumi_kubernetes/rbac/v1/ClusterRole.py +14 -9
  405. pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +14 -9
  406. pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +11 -6
  407. pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +14 -9
  408. pulumi_kubernetes/rbac/v1/ClusterRoleList.py +11 -6
  409. pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +14 -9
  410. pulumi_kubernetes/rbac/v1/Role.py +11 -6
  411. pulumi_kubernetes/rbac/v1/RoleBinding.py +14 -9
  412. pulumi_kubernetes/rbac/v1/RoleBindingList.py +11 -6
  413. pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +14 -9
  414. pulumi_kubernetes/rbac/v1/RoleList.py +11 -6
  415. pulumi_kubernetes/rbac/v1/RolePatch.py +11 -6
  416. pulumi_kubernetes/rbac/v1/_inputs.py +295 -0
  417. pulumi_kubernetes/rbac/v1/outputs.py +5 -0
  418. pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +14 -9
  419. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +14 -9
  420. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +11 -6
  421. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +14 -9
  422. pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +11 -6
  423. pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +14 -9
  424. pulumi_kubernetes/rbac/v1alpha1/Role.py +11 -6
  425. pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +14 -9
  426. pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +11 -6
  427. pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +14 -9
  428. pulumi_kubernetes/rbac/v1alpha1/RoleList.py +11 -6
  429. pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +11 -6
  430. pulumi_kubernetes/rbac/v1alpha1/_inputs.py +295 -0
  431. pulumi_kubernetes/rbac/v1alpha1/outputs.py +5 -0
  432. pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +14 -9
  433. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +14 -9
  434. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +11 -6
  435. pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +14 -9
  436. pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +11 -6
  437. pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +14 -9
  438. pulumi_kubernetes/rbac/v1beta1/Role.py +11 -6
  439. pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +14 -9
  440. pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +11 -6
  441. pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +14 -9
  442. pulumi_kubernetes/rbac/v1beta1/RoleList.py +11 -6
  443. pulumi_kubernetes/rbac/v1beta1/RolePatch.py +11 -6
  444. pulumi_kubernetes/rbac/v1beta1/_inputs.py +295 -0
  445. pulumi_kubernetes/rbac/v1beta1/outputs.py +5 -0
  446. pulumi_kubernetes/resource/__init__.py +6 -0
  447. pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +11 -6
  448. pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +11 -6
  449. pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +11 -6
  450. pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +12 -7
  451. pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +11 -6
  452. pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +12 -7
  453. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +12 -7
  454. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +11 -6
  455. pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +12 -7
  456. pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +14 -9
  457. pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +11 -6
  458. pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +14 -9
  459. pulumi_kubernetes/resource/v1alpha1/_inputs.py +458 -0
  460. pulumi_kubernetes/resource/v1alpha1/outputs.py +5 -0
  461. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +13 -6
  462. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +11 -6
  463. pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +13 -6
  464. pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +12 -7
  465. pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +11 -6
  466. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +280 -0
  467. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +215 -0
  468. pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +292 -0
  469. pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +12 -7
  470. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +12 -7
  471. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +11 -6
  472. pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +12 -7
  473. pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +43 -9
  474. pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +11 -6
  475. pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +272 -0
  476. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +215 -0
  477. pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +284 -0
  478. pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +43 -9
  479. pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +283 -0
  480. pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +215 -0
  481. pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +294 -0
  482. pulumi_kubernetes/resource/v1alpha2/__init__.py +9 -0
  483. pulumi_kubernetes/resource/v1alpha2/_inputs.py +3177 -634
  484. pulumi_kubernetes/resource/v1alpha2/outputs.py +2628 -880
  485. pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +238 -0
  486. pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +216 -0
  487. pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +249 -0
  488. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +231 -0
  489. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +215 -0
  490. pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +242 -0
  491. pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +232 -0
  492. pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +216 -0
  493. pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +243 -0
  494. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +229 -0
  495. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +215 -0
  496. pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +240 -0
  497. pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +246 -0
  498. pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
  499. pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +257 -0
  500. pulumi_kubernetes/resource/v1alpha3/__init__.py +24 -0
  501. pulumi_kubernetes/resource/v1alpha3/_inputs.py +4372 -0
  502. pulumi_kubernetes/resource/v1alpha3/outputs.py +3914 -0
  503. pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
  504. pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
  505. pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
  506. pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
  507. pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
  508. pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
  509. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
  510. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
  511. pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
  512. pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
  513. pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
  514. pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
  515. pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
  516. pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
  517. pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
  518. pulumi_kubernetes/scheduling/v1/PriorityClass.py +8 -3
  519. pulumi_kubernetes/scheduling/v1/PriorityClassList.py +11 -6
  520. pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +8 -3
  521. pulumi_kubernetes/scheduling/v1/_inputs.py +44 -0
  522. pulumi_kubernetes/scheduling/v1/outputs.py +5 -0
  523. pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +8 -3
  524. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +11 -6
  525. pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +8 -3
  526. pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +44 -0
  527. pulumi_kubernetes/scheduling/v1alpha1/outputs.py +5 -0
  528. pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +8 -3
  529. pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +11 -6
  530. pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +8 -3
  531. pulumi_kubernetes/scheduling/v1beta1/_inputs.py +44 -0
  532. pulumi_kubernetes/scheduling/v1beta1/outputs.py +5 -0
  533. pulumi_kubernetes/settings/v1alpha1/PodPreset.py +9 -4
  534. pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +11 -6
  535. pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +9 -4
  536. pulumi_kubernetes/settings/v1alpha1/_inputs.py +84 -0
  537. pulumi_kubernetes/settings/v1alpha1/outputs.py +5 -0
  538. pulumi_kubernetes/storage/v1/CSIDriver.py +11 -6
  539. pulumi_kubernetes/storage/v1/CSIDriverList.py +11 -6
  540. pulumi_kubernetes/storage/v1/CSIDriverPatch.py +11 -6
  541. pulumi_kubernetes/storage/v1/CSINode.py +11 -6
  542. pulumi_kubernetes/storage/v1/CSINodeList.py +11 -6
  543. pulumi_kubernetes/storage/v1/CSINodePatch.py +11 -6
  544. pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +11 -6
  545. pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +11 -6
  546. pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +11 -6
  547. pulumi_kubernetes/storage/v1/StorageClass.py +11 -6
  548. pulumi_kubernetes/storage/v1/StorageClassList.py +11 -6
  549. pulumi_kubernetes/storage/v1/StorageClassPatch.py +11 -6
  550. pulumi_kubernetes/storage/v1/VolumeAttachment.py +11 -6
  551. pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +11 -6
  552. pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +11 -6
  553. pulumi_kubernetes/storage/v1/_inputs.py +624 -10
  554. pulumi_kubernetes/storage/v1/outputs.py +17 -12
  555. pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +11 -6
  556. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +11 -6
  557. pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +11 -6
  558. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +10 -3
  559. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +11 -6
  560. pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +10 -3
  561. pulumi_kubernetes/storage/v1alpha1/_inputs.py +187 -0
  562. pulumi_kubernetes/storage/v1alpha1/outputs.py +5 -0
  563. pulumi_kubernetes/storage/v1beta1/CSIDriver.py +11 -6
  564. pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +11 -6
  565. pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +11 -6
  566. pulumi_kubernetes/storage/v1beta1/CSINode.py +11 -6
  567. pulumi_kubernetes/storage/v1beta1/CSINodeList.py +11 -6
  568. pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +11 -6
  569. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +11 -6
  570. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +11 -6
  571. pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +11 -6
  572. pulumi_kubernetes/storage/v1beta1/StorageClass.py +11 -6
  573. pulumi_kubernetes/storage/v1beta1/StorageClassList.py +11 -6
  574. pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +11 -6
  575. pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +11 -6
  576. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +11 -6
  577. pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +11 -6
  578. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +252 -0
  579. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +215 -0
  580. pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +263 -0
  581. pulumi_kubernetes/storage/v1beta1/__init__.py +3 -0
  582. pulumi_kubernetes/storage/v1beta1/_inputs.py +689 -0
  583. pulumi_kubernetes/storage/v1beta1/outputs.py +99 -0
  584. pulumi_kubernetes/storagemigration/__init__.py +14 -0
  585. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +224 -0
  586. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +215 -0
  587. pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +236 -0
  588. pulumi_kubernetes/storagemigration/v1alpha1/__init__.py +12 -0
  589. pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +585 -0
  590. pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +593 -0
  591. pulumi_kubernetes/yaml/v2/ConfigFile.py +81 -4
  592. pulumi_kubernetes/yaml/v2/ConfigGroup.py +123 -42
  593. pulumi_kubernetes/yaml/yaml.py +264 -0
  594. {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/METADATA +8 -7
  595. pulumi_kubernetes-4.20.0a1736823142.dist-info/RECORD +679 -0
  596. {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/WHEEL +1 -1
  597. pulumi_kubernetes-4.10.0a1710288589.dist-info/RECORD +0 -592
  598. {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/top_level.txt +0 -0
@@ -4,52 +4,122 @@
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
  'MutatingWebhookConfigurationArgs',
34
+ 'MutatingWebhookConfigurationArgsDict',
22
35
  'MutatingWebhookPatchArgs',
36
+ 'MutatingWebhookPatchArgsDict',
23
37
  'MutatingWebhookArgs',
38
+ 'MutatingWebhookArgsDict',
24
39
  'NamedRuleWithOperationsPatchArgs',
40
+ 'NamedRuleWithOperationsPatchArgsDict',
25
41
  'NamedRuleWithOperationsArgs',
42
+ 'NamedRuleWithOperationsArgsDict',
26
43
  'ParamKindPatchArgs',
44
+ 'ParamKindPatchArgsDict',
27
45
  'ParamKindArgs',
46
+ 'ParamKindArgsDict',
28
47
  'ParamRefPatchArgs',
48
+ 'ParamRefPatchArgsDict',
29
49
  'ParamRefArgs',
50
+ 'ParamRefArgsDict',
30
51
  'RuleWithOperationsPatchArgs',
52
+ 'RuleWithOperationsPatchArgsDict',
31
53
  'RuleWithOperationsArgs',
54
+ 'RuleWithOperationsArgsDict',
32
55
  'ServiceReferencePatchArgs',
56
+ 'ServiceReferencePatchArgsDict',
33
57
  'ServiceReferenceArgs',
58
+ 'ServiceReferenceArgsDict',
34
59
  'TypeCheckingArgs',
60
+ 'TypeCheckingArgsDict',
35
61
  'ValidatingAdmissionPolicyBindingSpecPatchArgs',
62
+ 'ValidatingAdmissionPolicyBindingSpecPatchArgsDict',
36
63
  'ValidatingAdmissionPolicyBindingSpecArgs',
64
+ 'ValidatingAdmissionPolicyBindingSpecArgsDict',
37
65
  'ValidatingAdmissionPolicyBindingArgs',
66
+ 'ValidatingAdmissionPolicyBindingArgsDict',
38
67
  'ValidatingAdmissionPolicySpecPatchArgs',
68
+ 'ValidatingAdmissionPolicySpecPatchArgsDict',
39
69
  'ValidatingAdmissionPolicySpecArgs',
70
+ 'ValidatingAdmissionPolicySpecArgsDict',
40
71
  'ValidatingAdmissionPolicyStatusArgs',
72
+ 'ValidatingAdmissionPolicyStatusArgsDict',
41
73
  'ValidatingAdmissionPolicyArgs',
74
+ 'ValidatingAdmissionPolicyArgsDict',
42
75
  'ValidatingWebhookConfigurationArgs',
76
+ 'ValidatingWebhookConfigurationArgsDict',
43
77
  'ValidatingWebhookPatchArgs',
78
+ 'ValidatingWebhookPatchArgsDict',
44
79
  'ValidatingWebhookArgs',
80
+ 'ValidatingWebhookArgsDict',
45
81
  'ValidationPatchArgs',
82
+ 'ValidationPatchArgsDict',
46
83
  'ValidationArgs',
84
+ 'ValidationArgsDict',
47
85
  'VariablePatchArgs',
86
+ 'VariablePatchArgsDict',
48
87
  'VariableArgs',
88
+ 'VariableArgsDict',
49
89
  'WebhookClientConfigPatchArgs',
90
+ 'WebhookClientConfigPatchArgsDict',
50
91
  'WebhookClientConfigArgs',
92
+ 'WebhookClientConfigArgsDict',
51
93
  ]
52
94
 
95
+ MYPY = False
96
+
97
+ if not MYPY:
98
+ class AuditAnnotationPatchArgsDict(TypedDict):
99
+ """
100
+ AuditAnnotation describes how to produce an audit annotation for an API request.
101
+ """
102
+ key: NotRequired[pulumi.Input[str]]
103
+ """
104
+ 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.
105
+
106
+ The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
107
+
108
+ 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.
109
+
110
+ Required.
111
+ """
112
+ value_expression: NotRequired[pulumi.Input[str]]
113
+ """
114
+ 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.
115
+
116
+ 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.
117
+
118
+ Required.
119
+ """
120
+ elif False:
121
+ AuditAnnotationPatchArgsDict: TypeAlias = Mapping[str, Any]
122
+
53
123
  @pulumi.input_type
54
124
  class AuditAnnotationPatchArgs:
55
125
  def __init__(__self__, *,
@@ -110,6 +180,32 @@ class AuditAnnotationPatchArgs:
110
180
  pulumi.set(self, "value_expression", value)
111
181
 
112
182
 
183
+ if not MYPY:
184
+ class AuditAnnotationArgsDict(TypedDict):
185
+ """
186
+ AuditAnnotation describes how to produce an audit annotation for an API request.
187
+ """
188
+ key: pulumi.Input[str]
189
+ """
190
+ 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.
191
+
192
+ The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
193
+
194
+ 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.
195
+
196
+ Required.
197
+ """
198
+ value_expression: pulumi.Input[str]
199
+ """
200
+ 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.
201
+
202
+ 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.
203
+
204
+ Required.
205
+ """
206
+ elif False:
207
+ AuditAnnotationArgsDict: TypeAlias = Mapping[str, Any]
208
+
113
209
  @pulumi.input_type
114
210
  class AuditAnnotationArgs:
115
211
  def __init__(__self__, *,
@@ -168,6 +264,22 @@ class AuditAnnotationArgs:
168
264
  pulumi.set(self, "value_expression", value)
169
265
 
170
266
 
267
+ if not MYPY:
268
+ class ExpressionWarningArgsDict(TypedDict):
269
+ """
270
+ ExpressionWarning is a warning information that targets a specific expression.
271
+ """
272
+ field_ref: pulumi.Input[str]
273
+ """
274
+ 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"
275
+ """
276
+ warning: pulumi.Input[str]
277
+ """
278
+ 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.
279
+ """
280
+ elif False:
281
+ ExpressionWarningArgsDict: TypeAlias = Mapping[str, Any]
282
+
171
283
  @pulumi.input_type
172
284
  class ExpressionWarningArgs:
173
285
  def __init__(__self__, *,
@@ -206,6 +318,32 @@ class ExpressionWarningArgs:
206
318
  pulumi.set(self, "warning", value)
207
319
 
208
320
 
321
+ if not MYPY:
322
+ class MatchConditionPatchArgsDict(TypedDict):
323
+ """
324
+ MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.
325
+ """
326
+ expression: NotRequired[pulumi.Input[str]]
327
+ """
328
+ 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:
329
+
330
+ '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.
331
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
332
+ 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
333
+ request resource.
334
+ Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
335
+
336
+ Required.
337
+ """
338
+ name: NotRequired[pulumi.Input[str]]
339
+ """
340
+ 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')
341
+
342
+ Required.
343
+ """
344
+ elif False:
345
+ MatchConditionPatchArgsDict: TypeAlias = Mapping[str, Any]
346
+
209
347
  @pulumi.input_type
210
348
  class MatchConditionPatchArgs:
211
349
  def __init__(__self__, *,
@@ -266,6 +404,32 @@ class MatchConditionPatchArgs:
266
404
  pulumi.set(self, "name", value)
267
405
 
268
406
 
407
+ if not MYPY:
408
+ class MatchConditionArgsDict(TypedDict):
409
+ """
410
+ MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.
411
+ """
412
+ expression: pulumi.Input[str]
413
+ """
414
+ 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:
415
+
416
+ '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.
417
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
418
+ 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
419
+ request resource.
420
+ Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
421
+
422
+ Required.
423
+ """
424
+ name: pulumi.Input[str]
425
+ """
426
+ 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')
427
+
428
+ Required.
429
+ """
430
+ elif False:
431
+ MatchConditionArgsDict: TypeAlias = Mapping[str, Any]
432
+
269
433
  @pulumi.input_type
270
434
  class MatchConditionArgs:
271
435
  def __init__(__self__, *,
@@ -324,6 +488,70 @@ class MatchConditionArgs:
324
488
  pulumi.set(self, "name", value)
325
489
 
326
490
 
491
+ if not MYPY:
492
+ class MatchResourcesPatchArgsDict(TypedDict):
493
+ """
494
+ 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)
495
+ """
496
+ exclude_resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgsDict']]]]
497
+ """
498
+ 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)
499
+ """
500
+ match_policy: NotRequired[pulumi.Input[str]]
501
+ """
502
+ matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
503
+
504
+ - 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.
505
+
506
+ - 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.
507
+
508
+ Defaults to "Equivalent"
509
+ """
510
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
511
+ """
512
+ 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.
513
+
514
+ 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": {
515
+ "matchExpressions": [
516
+ {
517
+ "key": "runlevel",
518
+ "operator": "NotIn",
519
+ "values": [
520
+ "0",
521
+ "1"
522
+ ]
523
+ }
524
+ ]
525
+ }
526
+
527
+ 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": {
528
+ "matchExpressions": [
529
+ {
530
+ "key": "environment",
531
+ "operator": "In",
532
+ "values": [
533
+ "prod",
534
+ "staging"
535
+ ]
536
+ }
537
+ ]
538
+ }
539
+
540
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
541
+
542
+ Default to the empty LabelSelector, which matches everything.
543
+ """
544
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
545
+ """
546
+ 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.
547
+ """
548
+ resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgsDict']]]]
549
+ """
550
+ ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
551
+ """
552
+ elif False:
553
+ MatchResourcesPatchArgsDict: TypeAlias = Mapping[str, Any]
554
+
327
555
  @pulumi.input_type
328
556
  class MatchResourcesPatchArgs:
329
557
  def __init__(__self__, *,
@@ -484,6 +712,70 @@ class MatchResourcesPatchArgs:
484
712
  pulumi.set(self, "resource_rules", value)
485
713
 
486
714
 
715
+ if not MYPY:
716
+ class MatchResourcesArgsDict(TypedDict):
717
+ """
718
+ 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)
719
+ """
720
+ exclude_resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgsDict']]]]
721
+ """
722
+ 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)
723
+ """
724
+ match_policy: NotRequired[pulumi.Input[str]]
725
+ """
726
+ matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
727
+
728
+ - 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.
729
+
730
+ - 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.
731
+
732
+ Defaults to "Equivalent"
733
+ """
734
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
735
+ """
736
+ 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.
737
+
738
+ 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": {
739
+ "matchExpressions": [
740
+ {
741
+ "key": "runlevel",
742
+ "operator": "NotIn",
743
+ "values": [
744
+ "0",
745
+ "1"
746
+ ]
747
+ }
748
+ ]
749
+ }
750
+
751
+ 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": {
752
+ "matchExpressions": [
753
+ {
754
+ "key": "environment",
755
+ "operator": "In",
756
+ "values": [
757
+ "prod",
758
+ "staging"
759
+ ]
760
+ }
761
+ ]
762
+ }
763
+
764
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
765
+
766
+ Default to the empty LabelSelector, which matches everything.
767
+ """
768
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
769
+ """
770
+ 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.
771
+ """
772
+ resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgsDict']]]]
773
+ """
774
+ ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
775
+ """
776
+ elif False:
777
+ MatchResourcesArgsDict: TypeAlias = Mapping[str, Any]
778
+
487
779
  @pulumi.input_type
488
780
  class MatchResourcesArgs:
489
781
  def __init__(__self__, *,
@@ -644,6 +936,30 @@ class MatchResourcesArgs:
644
936
  pulumi.set(self, "resource_rules", value)
645
937
 
646
938
 
939
+ if not MYPY:
940
+ class MutatingWebhookConfigurationArgsDict(TypedDict):
941
+ """
942
+ MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 MutatingWebhookConfiguration instead.
943
+ """
944
+ api_version: NotRequired[pulumi.Input[str]]
945
+ """
946
+ 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
947
+ """
948
+ kind: NotRequired[pulumi.Input[str]]
949
+ """
950
+ 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
951
+ """
952
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
953
+ """
954
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
955
+ """
956
+ webhooks: NotRequired[pulumi.Input[Sequence[pulumi.Input['MutatingWebhookArgsDict']]]]
957
+ """
958
+ Webhooks is a list of webhooks and the affected resources and operations.
959
+ """
960
+ elif False:
961
+ MutatingWebhookConfigurationArgsDict: TypeAlias = Mapping[str, Any]
962
+
647
963
  @pulumi.input_type
648
964
  class MutatingWebhookConfigurationArgs:
649
965
  def __init__(__self__, *,
@@ -716,6 +1032,100 @@ class MutatingWebhookConfigurationArgs:
716
1032
  pulumi.set(self, "webhooks", value)
717
1033
 
718
1034
 
1035
+ if not MYPY:
1036
+ class MutatingWebhookPatchArgsDict(TypedDict):
1037
+ """
1038
+ MutatingWebhook describes an admission webhook and the resources and operations it applies to.
1039
+ """
1040
+ admission_review_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1041
+ """
1042
+ AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.
1043
+ """
1044
+ client_config: NotRequired[pulumi.Input['WebhookClientConfigPatchArgsDict']]
1045
+ """
1046
+ ClientConfig defines how to communicate with the hook. Required
1047
+ """
1048
+ failure_policy: NotRequired[pulumi.Input[str]]
1049
+ """
1050
+ FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.
1051
+ """
1052
+ match_policy: NotRequired[pulumi.Input[str]]
1053
+ """
1054
+ matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
1055
+
1056
+ - 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 webhook.
1057
+
1058
+ - 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 webhook.
1059
+
1060
+ Defaults to "Exact"
1061
+ """
1062
+ name: NotRequired[pulumi.Input[str]]
1063
+ """
1064
+ The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
1065
+ """
1066
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
1067
+ """
1068
+ NamespaceSelector decides whether to run the webhook 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 webhook.
1069
+
1070
+ 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": {
1071
+ "matchExpressions": [
1072
+ {
1073
+ "key": "runlevel",
1074
+ "operator": "NotIn",
1075
+ "values": [
1076
+ "0",
1077
+ "1"
1078
+ ]
1079
+ }
1080
+ ]
1081
+ }
1082
+
1083
+ If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
1084
+ "matchExpressions": [
1085
+ {
1086
+ "key": "environment",
1087
+ "operator": "In",
1088
+ "values": [
1089
+ "prod",
1090
+ "staging"
1091
+ ]
1092
+ }
1093
+ ]
1094
+ }
1095
+
1096
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
1097
+
1098
+ Default to the empty LabelSelector, which matches everything.
1099
+ """
1100
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
1101
+ """
1102
+ ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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.
1103
+ """
1104
+ reinvocation_policy: NotRequired[pulumi.Input[str]]
1105
+ """
1106
+ reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
1107
+
1108
+ Never: the webhook will not be called more than once in a single admission evaluation.
1109
+
1110
+ IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
1111
+
1112
+ Defaults to "Never".
1113
+ """
1114
+ rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['RuleWithOperationsPatchArgsDict']]]]
1115
+ """
1116
+ Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
1117
+ """
1118
+ side_effects: NotRequired[pulumi.Input[str]]
1119
+ """
1120
+ SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.
1121
+ """
1122
+ timeout_seconds: NotRequired[pulumi.Input[int]]
1123
+ """
1124
+ TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.
1125
+ """
1126
+ elif False:
1127
+ MutatingWebhookPatchArgsDict: TypeAlias = Mapping[str, Any]
1128
+
719
1129
  @pulumi.input_type
720
1130
  class MutatingWebhookPatchArgs:
721
1131
  def __init__(__self__, *,
@@ -984,6 +1394,100 @@ class MutatingWebhookPatchArgs:
984
1394
  pulumi.set(self, "timeout_seconds", value)
985
1395
 
986
1396
 
1397
+ if not MYPY:
1398
+ class MutatingWebhookArgsDict(TypedDict):
1399
+ """
1400
+ MutatingWebhook describes an admission webhook and the resources and operations it applies to.
1401
+ """
1402
+ client_config: pulumi.Input['WebhookClientConfigArgsDict']
1403
+ """
1404
+ ClientConfig defines how to communicate with the hook. Required
1405
+ """
1406
+ name: pulumi.Input[str]
1407
+ """
1408
+ The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
1409
+ """
1410
+ admission_review_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1411
+ """
1412
+ AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.
1413
+ """
1414
+ failure_policy: NotRequired[pulumi.Input[str]]
1415
+ """
1416
+ FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.
1417
+ """
1418
+ match_policy: NotRequired[pulumi.Input[str]]
1419
+ """
1420
+ matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
1421
+
1422
+ - 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 webhook.
1423
+
1424
+ - 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 webhook.
1425
+
1426
+ Defaults to "Exact"
1427
+ """
1428
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
1429
+ """
1430
+ NamespaceSelector decides whether to run the webhook 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 webhook.
1431
+
1432
+ 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": {
1433
+ "matchExpressions": [
1434
+ {
1435
+ "key": "runlevel",
1436
+ "operator": "NotIn",
1437
+ "values": [
1438
+ "0",
1439
+ "1"
1440
+ ]
1441
+ }
1442
+ ]
1443
+ }
1444
+
1445
+ If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
1446
+ "matchExpressions": [
1447
+ {
1448
+ "key": "environment",
1449
+ "operator": "In",
1450
+ "values": [
1451
+ "prod",
1452
+ "staging"
1453
+ ]
1454
+ }
1455
+ ]
1456
+ }
1457
+
1458
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
1459
+
1460
+ Default to the empty LabelSelector, which matches everything.
1461
+ """
1462
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
1463
+ """
1464
+ ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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.
1465
+ """
1466
+ reinvocation_policy: NotRequired[pulumi.Input[str]]
1467
+ """
1468
+ reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
1469
+
1470
+ Never: the webhook will not be called more than once in a single admission evaluation.
1471
+
1472
+ IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
1473
+
1474
+ Defaults to "Never".
1475
+ """
1476
+ rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['RuleWithOperationsArgsDict']]]]
1477
+ """
1478
+ Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
1479
+ """
1480
+ side_effects: NotRequired[pulumi.Input[str]]
1481
+ """
1482
+ SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.
1483
+ """
1484
+ timeout_seconds: NotRequired[pulumi.Input[int]]
1485
+ """
1486
+ TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.
1487
+ """
1488
+ elif False:
1489
+ MutatingWebhookArgsDict: TypeAlias = Mapping[str, Any]
1490
+
987
1491
  @pulumi.input_type
988
1492
  class MutatingWebhookArgs:
989
1493
  def __init__(__self__, *,
@@ -1250,6 +1754,44 @@ class MutatingWebhookArgs:
1250
1754
  pulumi.set(self, "timeout_seconds", value)
1251
1755
 
1252
1756
 
1757
+ if not MYPY:
1758
+ class NamedRuleWithOperationsPatchArgsDict(TypedDict):
1759
+ """
1760
+ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
1761
+ """
1762
+ api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1763
+ """
1764
+ APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
1765
+ """
1766
+ api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1767
+ """
1768
+ APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
1769
+ """
1770
+ operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1771
+ """
1772
+ 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.
1773
+ """
1774
+ resource_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1775
+ """
1776
+ ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
1777
+ """
1778
+ resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1779
+ """
1780
+ Resources is a list of resources this rule applies to.
1781
+
1782
+ 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.
1783
+
1784
+ If wildcard is present, the validation rule will ensure resources do not overlap with each other.
1785
+
1786
+ Depending on the enclosing object, subresources might not be allowed. Required.
1787
+ """
1788
+ scope: NotRequired[pulumi.Input[str]]
1789
+ """
1790
+ 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 "*".
1791
+ """
1792
+ elif False:
1793
+ NamedRuleWithOperationsPatchArgsDict: TypeAlias = Mapping[str, Any]
1794
+
1253
1795
  @pulumi.input_type
1254
1796
  class NamedRuleWithOperationsPatchArgs:
1255
1797
  def __init__(__self__, *,
@@ -1366,6 +1908,44 @@ class NamedRuleWithOperationsPatchArgs:
1366
1908
  pulumi.set(self, "scope", value)
1367
1909
 
1368
1910
 
1911
+ if not MYPY:
1912
+ class NamedRuleWithOperationsArgsDict(TypedDict):
1913
+ """
1914
+ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
1915
+ """
1916
+ api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1917
+ """
1918
+ APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
1919
+ """
1920
+ api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1921
+ """
1922
+ APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
1923
+ """
1924
+ operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1925
+ """
1926
+ 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.
1927
+ """
1928
+ resource_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1929
+ """
1930
+ ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
1931
+ """
1932
+ resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
1933
+ """
1934
+ Resources is a list of resources this rule applies to.
1935
+
1936
+ 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.
1937
+
1938
+ If wildcard is present, the validation rule will ensure resources do not overlap with each other.
1939
+
1940
+ Depending on the enclosing object, subresources might not be allowed. Required.
1941
+ """
1942
+ scope: NotRequired[pulumi.Input[str]]
1943
+ """
1944
+ 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 "*".
1945
+ """
1946
+ elif False:
1947
+ NamedRuleWithOperationsArgsDict: TypeAlias = Mapping[str, Any]
1948
+
1369
1949
  @pulumi.input_type
1370
1950
  class NamedRuleWithOperationsArgs:
1371
1951
  def __init__(__self__, *,
@@ -1482,6 +2062,22 @@ class NamedRuleWithOperationsArgs:
1482
2062
  pulumi.set(self, "scope", value)
1483
2063
 
1484
2064
 
2065
+ if not MYPY:
2066
+ class ParamKindPatchArgsDict(TypedDict):
2067
+ """
2068
+ ParamKind is a tuple of Group Kind and Version.
2069
+ """
2070
+ api_version: NotRequired[pulumi.Input[str]]
2071
+ """
2072
+ APIVersion is the API group version the resources belong to. In format of "group/version". Required.
2073
+ """
2074
+ kind: NotRequired[pulumi.Input[str]]
2075
+ """
2076
+ Kind is the API kind the resources belong to. Required.
2077
+ """
2078
+ elif False:
2079
+ ParamKindPatchArgsDict: TypeAlias = Mapping[str, Any]
2080
+
1485
2081
  @pulumi.input_type
1486
2082
  class ParamKindPatchArgs:
1487
2083
  def __init__(__self__, *,
@@ -1522,6 +2118,22 @@ class ParamKindPatchArgs:
1522
2118
  pulumi.set(self, "kind", value)
1523
2119
 
1524
2120
 
2121
+ if not MYPY:
2122
+ class ParamKindArgsDict(TypedDict):
2123
+ """
2124
+ ParamKind is a tuple of Group Kind and Version.
2125
+ """
2126
+ api_version: NotRequired[pulumi.Input[str]]
2127
+ """
2128
+ APIVersion is the API group version the resources belong to. In format of "group/version". Required.
2129
+ """
2130
+ kind: NotRequired[pulumi.Input[str]]
2131
+ """
2132
+ Kind is the API kind the resources belong to. Required.
2133
+ """
2134
+ elif False:
2135
+ ParamKindArgsDict: TypeAlias = Mapping[str, Any]
2136
+
1525
2137
  @pulumi.input_type
1526
2138
  class ParamKindArgs:
1527
2139
  def __init__(__self__, *,
@@ -1562,6 +2174,48 @@ class ParamKindArgs:
1562
2174
  pulumi.set(self, "kind", value)
1563
2175
 
1564
2176
 
2177
+ if not MYPY:
2178
+ class ParamRefPatchArgsDict(TypedDict):
2179
+ """
2180
+ ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
2181
+ """
2182
+ name: NotRequired[pulumi.Input[str]]
2183
+ """
2184
+ name is the name of the resource being referenced.
2185
+
2186
+ 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.
2187
+
2188
+ A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.
2189
+ """
2190
+ namespace: NotRequired[pulumi.Input[str]]
2191
+ """
2192
+ 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.
2193
+
2194
+ A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
2195
+
2196
+ - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
2197
+
2198
+ - 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.
2199
+ """
2200
+ parameter_not_found_action: NotRequired[pulumi.Input[str]]
2201
+ """
2202
+ `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.
2203
+
2204
+ Allowed values are `Allow` or `Deny`
2205
+
2206
+ Required
2207
+ """
2208
+ selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
2209
+ """
2210
+ selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
2211
+
2212
+ If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
2213
+
2214
+ 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.
2215
+ """
2216
+ elif False:
2217
+ ParamRefPatchArgsDict: TypeAlias = Mapping[str, Any]
2218
+
1565
2219
  @pulumi.input_type
1566
2220
  class ParamRefPatchArgs:
1567
2221
  def __init__(__self__, *,
@@ -1670,6 +2324,48 @@ class ParamRefPatchArgs:
1670
2324
  pulumi.set(self, "selector", value)
1671
2325
 
1672
2326
 
2327
+ if not MYPY:
2328
+ class ParamRefArgsDict(TypedDict):
2329
+ """
2330
+ ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
2331
+ """
2332
+ name: NotRequired[pulumi.Input[str]]
2333
+ """
2334
+ name is the name of the resource being referenced.
2335
+
2336
+ 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.
2337
+
2338
+ A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped.
2339
+ """
2340
+ namespace: NotRequired[pulumi.Input[str]]
2341
+ """
2342
+ 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.
2343
+
2344
+ A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
2345
+
2346
+ - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
2347
+
2348
+ - 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.
2349
+ """
2350
+ parameter_not_found_action: NotRequired[pulumi.Input[str]]
2351
+ """
2352
+ `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.
2353
+
2354
+ Allowed values are `Allow` or `Deny`
2355
+
2356
+ Required
2357
+ """
2358
+ selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
2359
+ """
2360
+ selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
2361
+
2362
+ If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
2363
+
2364
+ 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.
2365
+ """
2366
+ elif False:
2367
+ ParamRefArgsDict: TypeAlias = Mapping[str, Any]
2368
+
1673
2369
  @pulumi.input_type
1674
2370
  class ParamRefArgs:
1675
2371
  def __init__(__self__, *,
@@ -1778,6 +2474,40 @@ class ParamRefArgs:
1778
2474
  pulumi.set(self, "selector", value)
1779
2475
 
1780
2476
 
2477
+ if not MYPY:
2478
+ class RuleWithOperationsPatchArgsDict(TypedDict):
2479
+ """
2480
+ RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.
2481
+ """
2482
+ api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2483
+ """
2484
+ APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
2485
+ """
2486
+ api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2487
+ """
2488
+ APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
2489
+ """
2490
+ operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2491
+ """
2492
+ Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.
2493
+ """
2494
+ resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2495
+ """
2496
+ Resources is a list of resources this rule applies to.
2497
+
2498
+ 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.
2499
+
2500
+ If wildcard is present, the validation rule will ensure resources do not overlap with each other.
2501
+
2502
+ Depending on the enclosing object, subresources might not be allowed. Required.
2503
+ """
2504
+ scope: NotRequired[pulumi.Input[str]]
2505
+ """
2506
+ 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 "*".
2507
+ """
2508
+ elif False:
2509
+ RuleWithOperationsPatchArgsDict: TypeAlias = Mapping[str, Any]
2510
+
1781
2511
  @pulumi.input_type
1782
2512
  class RuleWithOperationsPatchArgs:
1783
2513
  def __init__(__self__, *,
@@ -1878,6 +2608,40 @@ class RuleWithOperationsPatchArgs:
1878
2608
  pulumi.set(self, "scope", value)
1879
2609
 
1880
2610
 
2611
+ if not MYPY:
2612
+ class RuleWithOperationsArgsDict(TypedDict):
2613
+ """
2614
+ RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.
2615
+ """
2616
+ api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2617
+ """
2618
+ APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
2619
+ """
2620
+ api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2621
+ """
2622
+ APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
2623
+ """
2624
+ operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2625
+ """
2626
+ Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.
2627
+ """
2628
+ resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2629
+ """
2630
+ Resources is a list of resources this rule applies to.
2631
+
2632
+ 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.
2633
+
2634
+ If wildcard is present, the validation rule will ensure resources do not overlap with each other.
2635
+
2636
+ Depending on the enclosing object, subresources might not be allowed. Required.
2637
+ """
2638
+ scope: NotRequired[pulumi.Input[str]]
2639
+ """
2640
+ 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 "*".
2641
+ """
2642
+ elif False:
2643
+ RuleWithOperationsArgsDict: TypeAlias = Mapping[str, Any]
2644
+
1881
2645
  @pulumi.input_type
1882
2646
  class RuleWithOperationsArgs:
1883
2647
  def __init__(__self__, *,
@@ -1978,6 +2742,30 @@ class RuleWithOperationsArgs:
1978
2742
  pulumi.set(self, "scope", value)
1979
2743
 
1980
2744
 
2745
+ if not MYPY:
2746
+ class ServiceReferencePatchArgsDict(TypedDict):
2747
+ """
2748
+ ServiceReference holds a reference to Service.legacy.k8s.io
2749
+ """
2750
+ name: NotRequired[pulumi.Input[str]]
2751
+ """
2752
+ `name` is the name of the service. Required
2753
+ """
2754
+ namespace: NotRequired[pulumi.Input[str]]
2755
+ """
2756
+ `namespace` is the namespace of the service. Required
2757
+ """
2758
+ path: NotRequired[pulumi.Input[str]]
2759
+ """
2760
+ `path` is an optional URL path which will be sent in any request to this service.
2761
+ """
2762
+ port: NotRequired[pulumi.Input[int]]
2763
+ """
2764
+ If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
2765
+ """
2766
+ elif False:
2767
+ ServiceReferencePatchArgsDict: TypeAlias = Mapping[str, Any]
2768
+
1981
2769
  @pulumi.input_type
1982
2770
  class ServiceReferencePatchArgs:
1983
2771
  def __init__(__self__, *,
@@ -2050,6 +2838,30 @@ class ServiceReferencePatchArgs:
2050
2838
  pulumi.set(self, "port", value)
2051
2839
 
2052
2840
 
2841
+ if not MYPY:
2842
+ class ServiceReferenceArgsDict(TypedDict):
2843
+ """
2844
+ ServiceReference holds a reference to Service.legacy.k8s.io
2845
+ """
2846
+ name: pulumi.Input[str]
2847
+ """
2848
+ `name` is the name of the service. Required
2849
+ """
2850
+ namespace: pulumi.Input[str]
2851
+ """
2852
+ `namespace` is the namespace of the service. Required
2853
+ """
2854
+ path: NotRequired[pulumi.Input[str]]
2855
+ """
2856
+ `path` is an optional URL path which will be sent in any request to this service.
2857
+ """
2858
+ port: NotRequired[pulumi.Input[int]]
2859
+ """
2860
+ If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
2861
+ """
2862
+ elif False:
2863
+ ServiceReferenceArgsDict: TypeAlias = Mapping[str, Any]
2864
+
2053
2865
  @pulumi.input_type
2054
2866
  class ServiceReferenceArgs:
2055
2867
  def __init__(__self__, *,
@@ -2120,6 +2932,18 @@ class ServiceReferenceArgs:
2120
2932
  pulumi.set(self, "port", value)
2121
2933
 
2122
2934
 
2935
+ if not MYPY:
2936
+ class TypeCheckingArgsDict(TypedDict):
2937
+ """
2938
+ TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
2939
+ """
2940
+ expression_warnings: NotRequired[pulumi.Input[Sequence[pulumi.Input['ExpressionWarningArgsDict']]]]
2941
+ """
2942
+ The type checking warnings for each expression.
2943
+ """
2944
+ elif False:
2945
+ TypeCheckingArgsDict: TypeAlias = Mapping[str, Any]
2946
+
2123
2947
  @pulumi.input_type
2124
2948
  class TypeCheckingArgs:
2125
2949
  def __init__(__self__, *,
@@ -2144,6 +2968,48 @@ class TypeCheckingArgs:
2144
2968
  pulumi.set(self, "expression_warnings", value)
2145
2969
 
2146
2970
 
2971
+ if not MYPY:
2972
+ class ValidatingAdmissionPolicyBindingSpecPatchArgsDict(TypedDict):
2973
+ """
2974
+ ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
2975
+ """
2976
+ match_resources: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
2977
+ """
2978
+ 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.
2979
+ """
2980
+ param_ref: NotRequired[pulumi.Input['ParamRefPatchArgsDict']]
2981
+ """
2982
+ 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.
2983
+ """
2984
+ policy_name: NotRequired[pulumi.Input[str]]
2985
+ """
2986
+ 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.
2987
+ """
2988
+ validation_actions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2989
+ """
2990
+ validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
2991
+
2992
+ 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.
2993
+
2994
+ validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
2995
+
2996
+ The supported actions values are:
2997
+
2998
+ "Deny" specifies that a validation failure results in a denied request.
2999
+
3000
+ "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.
3001
+
3002
+ "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\\"]}]"`
3003
+
3004
+ Clients should expect to handle additional values by ignoring any values not recognized.
3005
+
3006
+ "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.
3007
+
3008
+ Required.
3009
+ """
3010
+ elif False:
3011
+ ValidatingAdmissionPolicyBindingSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
3012
+
2147
3013
  @pulumi.input_type
2148
3014
  class ValidatingAdmissionPolicyBindingSpecPatchArgs:
2149
3015
  def __init__(__self__, *,
@@ -2168,7 +3034,7 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
2168
3034
 
2169
3035
  "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.
2170
3036
 
2171
- "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"]}]"`
3037
+ "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\\"]}]"`
2172
3038
 
2173
3039
  Clients should expect to handle additional values by ignoring any values not recognized.
2174
3040
 
@@ -2215,15 +3081,61 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
2215
3081
  """
2216
3082
  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.
2217
3083
  """
2218
- return pulumi.get(self, "policy_name")
2219
-
2220
- @policy_name.setter
2221
- def policy_name(self, value: Optional[pulumi.Input[str]]):
2222
- pulumi.set(self, "policy_name", value)
2223
-
2224
- @property
2225
- @pulumi.getter(name="validationActions")
2226
- def validation_actions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
3084
+ return pulumi.get(self, "policy_name")
3085
+
3086
+ @policy_name.setter
3087
+ def policy_name(self, value: Optional[pulumi.Input[str]]):
3088
+ pulumi.set(self, "policy_name", value)
3089
+
3090
+ @property
3091
+ @pulumi.getter(name="validationActions")
3092
+ def validation_actions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
3093
+ """
3094
+ validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
3095
+
3096
+ 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.
3097
+
3098
+ validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
3099
+
3100
+ The supported actions values are:
3101
+
3102
+ "Deny" specifies that a validation failure results in a denied request.
3103
+
3104
+ "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.
3105
+
3106
+ "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\\"]}]"`
3107
+
3108
+ Clients should expect to handle additional values by ignoring any values not recognized.
3109
+
3110
+ "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.
3111
+
3112
+ Required.
3113
+ """
3114
+ return pulumi.get(self, "validation_actions")
3115
+
3116
+ @validation_actions.setter
3117
+ def validation_actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
3118
+ pulumi.set(self, "validation_actions", value)
3119
+
3120
+
3121
+ if not MYPY:
3122
+ class ValidatingAdmissionPolicyBindingSpecArgsDict(TypedDict):
3123
+ """
3124
+ ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
3125
+ """
3126
+ match_resources: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
3127
+ """
3128
+ 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.
3129
+ """
3130
+ param_ref: NotRequired[pulumi.Input['ParamRefArgsDict']]
3131
+ """
3132
+ 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.
3133
+ """
3134
+ policy_name: NotRequired[pulumi.Input[str]]
3135
+ """
3136
+ 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.
3137
+ """
3138
+ validation_actions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
2227
3139
  """
2228
3140
  validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
2229
3141
 
@@ -2237,7 +3149,7 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
2237
3149
 
2238
3150
  "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.
2239
3151
 
2240
- "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"]}]"`
3152
+ "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\\"]}]"`
2241
3153
 
2242
3154
  Clients should expect to handle additional values by ignoring any values not recognized.
2243
3155
 
@@ -2245,12 +3157,8 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
2245
3157
 
2246
3158
  Required.
2247
3159
  """
2248
- return pulumi.get(self, "validation_actions")
2249
-
2250
- @validation_actions.setter
2251
- def validation_actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
2252
- pulumi.set(self, "validation_actions", value)
2253
-
3160
+ elif False:
3161
+ ValidatingAdmissionPolicyBindingSpecArgsDict: TypeAlias = Mapping[str, Any]
2254
3162
 
2255
3163
  @pulumi.input_type
2256
3164
  class ValidatingAdmissionPolicyBindingSpecArgs:
@@ -2276,7 +3184,7 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
2276
3184
 
2277
3185
  "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.
2278
3186
 
2279
- "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"]}]"`
3187
+ "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\\"]}]"`
2280
3188
 
2281
3189
  Clients should expect to handle additional values by ignoring any values not recognized.
2282
3190
 
@@ -2345,7 +3253,7 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
2345
3253
 
2346
3254
  "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.
2347
3255
 
2348
- "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"]}]"`
3256
+ "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\\"]}]"`
2349
3257
 
2350
3258
  Clients should expect to handle additional values by ignoring any values not recognized.
2351
3259
 
@@ -2360,6 +3268,34 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
2360
3268
  pulumi.set(self, "validation_actions", value)
2361
3269
 
2362
3270
 
3271
+ if not MYPY:
3272
+ class ValidatingAdmissionPolicyBindingArgsDict(TypedDict):
3273
+ """
3274
+ ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
3275
+
3276
+ 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.
3277
+
3278
+ 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.
3279
+ """
3280
+ api_version: NotRequired[pulumi.Input[str]]
3281
+ """
3282
+ 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
3283
+ """
3284
+ kind: NotRequired[pulumi.Input[str]]
3285
+ """
3286
+ 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
3287
+ """
3288
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
3289
+ """
3290
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
3291
+ """
3292
+ spec: NotRequired[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgsDict']]
3293
+ """
3294
+ Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
3295
+ """
3296
+ elif False:
3297
+ ValidatingAdmissionPolicyBindingArgsDict: TypeAlias = Mapping[str, Any]
3298
+
2363
3299
  @pulumi.input_type
2364
3300
  class ValidatingAdmissionPolicyBindingArgs:
2365
3301
  def __init__(__self__, *,
@@ -2436,6 +3372,61 @@ class ValidatingAdmissionPolicyBindingArgs:
2436
3372
  pulumi.set(self, "spec", value)
2437
3373
 
2438
3374
 
3375
+ if not MYPY:
3376
+ class ValidatingAdmissionPolicySpecPatchArgsDict(TypedDict):
3377
+ """
3378
+ ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
3379
+ """
3380
+ audit_annotations: NotRequired[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationPatchArgsDict']]]]
3381
+ """
3382
+ 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.
3383
+ """
3384
+ failure_policy: NotRequired[pulumi.Input[str]]
3385
+ """
3386
+ 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.
3387
+
3388
+ 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.
3389
+
3390
+ failurePolicy does not define how validations that evaluate to false are handled.
3391
+
3392
+ When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
3393
+
3394
+ Allowed values are Ignore or Fail. Defaults to Fail.
3395
+ """
3396
+ match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgsDict']]]]
3397
+ """
3398
+ 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.
3399
+
3400
+ If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
3401
+
3402
+ The exact matching logic is (in order):
3403
+ 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
3404
+ 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
3405
+ 3. If any matchCondition evaluates to an error (but none are FALSE):
3406
+ - If failurePolicy=Fail, reject the request
3407
+ - If failurePolicy=Ignore, the policy is skipped
3408
+ """
3409
+ match_constraints: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
3410
+ """
3411
+ 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.
3412
+ """
3413
+ param_kind: NotRequired[pulumi.Input['ParamKindPatchArgsDict']]
3414
+ """
3415
+ 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.
3416
+ """
3417
+ validations: NotRequired[pulumi.Input[Sequence[pulumi.Input['ValidationPatchArgsDict']]]]
3418
+ """
3419
+ 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.
3420
+ """
3421
+ variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgsDict']]]]
3422
+ """
3423
+ 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.
3424
+
3425
+ 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.
3426
+ """
3427
+ elif False:
3428
+ ValidatingAdmissionPolicySpecPatchArgsDict: TypeAlias = Mapping[str, Any]
3429
+
2439
3430
  @pulumi.input_type
2440
3431
  class ValidatingAdmissionPolicySpecPatchArgs:
2441
3432
  def __init__(__self__, *,
@@ -2594,6 +3585,61 @@ class ValidatingAdmissionPolicySpecPatchArgs:
2594
3585
  pulumi.set(self, "variables", value)
2595
3586
 
2596
3587
 
3588
+ if not MYPY:
3589
+ class ValidatingAdmissionPolicySpecArgsDict(TypedDict):
3590
+ """
3591
+ ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
3592
+ """
3593
+ audit_annotations: NotRequired[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationArgsDict']]]]
3594
+ """
3595
+ 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.
3596
+ """
3597
+ failure_policy: NotRequired[pulumi.Input[str]]
3598
+ """
3599
+ 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.
3600
+
3601
+ 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.
3602
+
3603
+ failurePolicy does not define how validations that evaluate to false are handled.
3604
+
3605
+ When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
3606
+
3607
+ Allowed values are Ignore or Fail. Defaults to Fail.
3608
+ """
3609
+ match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgsDict']]]]
3610
+ """
3611
+ 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.
3612
+
3613
+ If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
3614
+
3615
+ The exact matching logic is (in order):
3616
+ 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
3617
+ 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
3618
+ 3. If any matchCondition evaluates to an error (but none are FALSE):
3619
+ - If failurePolicy=Fail, reject the request
3620
+ - If failurePolicy=Ignore, the policy is skipped
3621
+ """
3622
+ match_constraints: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
3623
+ """
3624
+ 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.
3625
+ """
3626
+ param_kind: NotRequired[pulumi.Input['ParamKindArgsDict']]
3627
+ """
3628
+ 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.
3629
+ """
3630
+ validations: NotRequired[pulumi.Input[Sequence[pulumi.Input['ValidationArgsDict']]]]
3631
+ """
3632
+ 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.
3633
+ """
3634
+ variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariableArgsDict']]]]
3635
+ """
3636
+ 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.
3637
+
3638
+ 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.
3639
+ """
3640
+ elif False:
3641
+ ValidatingAdmissionPolicySpecArgsDict: TypeAlias = Mapping[str, Any]
3642
+
2597
3643
  @pulumi.input_type
2598
3644
  class ValidatingAdmissionPolicySpecArgs:
2599
3645
  def __init__(__self__, *,
@@ -2752,6 +3798,26 @@ class ValidatingAdmissionPolicySpecArgs:
2752
3798
  pulumi.set(self, "variables", value)
2753
3799
 
2754
3800
 
3801
+ if not MYPY:
3802
+ class ValidatingAdmissionPolicyStatusArgsDict(TypedDict):
3803
+ """
3804
+ ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.
3805
+ """
3806
+ conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgsDict']]]]
3807
+ """
3808
+ The conditions represent the latest available observations of a policy's current state.
3809
+ """
3810
+ observed_generation: NotRequired[pulumi.Input[int]]
3811
+ """
3812
+ The generation observed by the controller.
3813
+ """
3814
+ type_checking: NotRequired[pulumi.Input['TypeCheckingArgsDict']]
3815
+ """
3816
+ The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
3817
+ """
3818
+ elif False:
3819
+ ValidatingAdmissionPolicyStatusArgsDict: TypeAlias = Mapping[str, Any]
3820
+
2755
3821
  @pulumi.input_type
2756
3822
  class ValidatingAdmissionPolicyStatusArgs:
2757
3823
  def __init__(__self__, *,
@@ -2808,6 +3874,34 @@ class ValidatingAdmissionPolicyStatusArgs:
2808
3874
  pulumi.set(self, "type_checking", value)
2809
3875
 
2810
3876
 
3877
+ if not MYPY:
3878
+ class ValidatingAdmissionPolicyArgsDict(TypedDict):
3879
+ """
3880
+ ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
3881
+ """
3882
+ api_version: NotRequired[pulumi.Input[str]]
3883
+ """
3884
+ 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
3885
+ """
3886
+ kind: NotRequired[pulumi.Input[str]]
3887
+ """
3888
+ 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
3889
+ """
3890
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
3891
+ """
3892
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
3893
+ """
3894
+ spec: NotRequired[pulumi.Input['ValidatingAdmissionPolicySpecArgsDict']]
3895
+ """
3896
+ Specification of the desired behavior of the ValidatingAdmissionPolicy.
3897
+ """
3898
+ status: NotRequired[pulumi.Input['ValidatingAdmissionPolicyStatusArgsDict']]
3899
+ """
3900
+ 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.
3901
+ """
3902
+ elif False:
3903
+ ValidatingAdmissionPolicyArgsDict: TypeAlias = Mapping[str, Any]
3904
+
2811
3905
  @pulumi.input_type
2812
3906
  class ValidatingAdmissionPolicyArgs:
2813
3907
  def __init__(__self__, *,
@@ -2896,6 +3990,30 @@ class ValidatingAdmissionPolicyArgs:
2896
3990
  pulumi.set(self, "status", value)
2897
3991
 
2898
3992
 
3993
+ if not MYPY:
3994
+ class ValidatingWebhookConfigurationArgsDict(TypedDict):
3995
+ """
3996
+ ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. Deprecated in v1.16, planned for removal in v1.19. Use admissionregistration.k8s.io/v1 ValidatingWebhookConfiguration instead.
3997
+ """
3998
+ api_version: NotRequired[pulumi.Input[str]]
3999
+ """
4000
+ 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
4001
+ """
4002
+ kind: NotRequired[pulumi.Input[str]]
4003
+ """
4004
+ 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
4005
+ """
4006
+ metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
4007
+ """
4008
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
4009
+ """
4010
+ webhooks: NotRequired[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgsDict']]]]
4011
+ """
4012
+ Webhooks is a list of webhooks and the affected resources and operations.
4013
+ """
4014
+ elif False:
4015
+ ValidatingWebhookConfigurationArgsDict: TypeAlias = Mapping[str, Any]
4016
+
2899
4017
  @pulumi.input_type
2900
4018
  class ValidatingWebhookConfigurationArgs:
2901
4019
  def __init__(__self__, *,
@@ -2939,34 +4057,118 @@ class ValidatingWebhookConfigurationArgs:
2939
4057
  """
2940
4058
  return pulumi.get(self, "kind")
2941
4059
 
2942
- @kind.setter
2943
- def kind(self, value: Optional[pulumi.Input[str]]):
2944
- pulumi.set(self, "kind", value)
4060
+ @kind.setter
4061
+ def kind(self, value: Optional[pulumi.Input[str]]):
4062
+ pulumi.set(self, "kind", value)
4063
+
4064
+ @property
4065
+ @pulumi.getter
4066
+ def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
4067
+ """
4068
+ Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
4069
+ """
4070
+ return pulumi.get(self, "metadata")
4071
+
4072
+ @metadata.setter
4073
+ def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
4074
+ pulumi.set(self, "metadata", value)
4075
+
4076
+ @property
4077
+ @pulumi.getter
4078
+ def webhooks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]:
4079
+ """
4080
+ Webhooks is a list of webhooks and the affected resources and operations.
4081
+ """
4082
+ return pulumi.get(self, "webhooks")
4083
+
4084
+ @webhooks.setter
4085
+ def webhooks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]):
4086
+ pulumi.set(self, "webhooks", value)
4087
+
4088
+
4089
+ if not MYPY:
4090
+ class ValidatingWebhookPatchArgsDict(TypedDict):
4091
+ """
4092
+ ValidatingWebhook describes an admission webhook and the resources and operations it applies to.
4093
+ """
4094
+ admission_review_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
4095
+ """
4096
+ AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.
4097
+ """
4098
+ client_config: NotRequired[pulumi.Input['WebhookClientConfigPatchArgsDict']]
4099
+ """
4100
+ ClientConfig defines how to communicate with the hook. Required
4101
+ """
4102
+ failure_policy: NotRequired[pulumi.Input[str]]
4103
+ """
4104
+ FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.
4105
+ """
4106
+ match_policy: NotRequired[pulumi.Input[str]]
4107
+ """
4108
+ matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
4109
+
4110
+ - 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 webhook.
4111
+
4112
+ - 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 webhook.
4113
+
4114
+ Defaults to "Exact"
4115
+ """
4116
+ name: NotRequired[pulumi.Input[str]]
4117
+ """
4118
+ The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
4119
+ """
4120
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
4121
+ """
4122
+ NamespaceSelector decides whether to run the webhook 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 webhook.
4123
+
4124
+ 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": {
4125
+ "matchExpressions": [
4126
+ {
4127
+ "key": "runlevel",
4128
+ "operator": "NotIn",
4129
+ "values": [
4130
+ "0",
4131
+ "1"
4132
+ ]
4133
+ }
4134
+ ]
4135
+ }
4136
+
4137
+ If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
4138
+ "matchExpressions": [
4139
+ {
4140
+ "key": "environment",
4141
+ "operator": "In",
4142
+ "values": [
4143
+ "prod",
4144
+ "staging"
4145
+ ]
4146
+ }
4147
+ ]
4148
+ }
4149
+
4150
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.
2945
4151
 
2946
- @property
2947
- @pulumi.getter
2948
- def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
4152
+ Default to the empty LabelSelector, which matches everything.
2949
4153
  """
2950
- Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
4154
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
2951
4155
  """
2952
- return pulumi.get(self, "metadata")
2953
-
2954
- @metadata.setter
2955
- def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
2956
- pulumi.set(self, "metadata", value)
2957
-
2958
- @property
2959
- @pulumi.getter
2960
- def webhooks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]:
4156
+ ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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.
2961
4157
  """
2962
- Webhooks is a list of webhooks and the affected resources and operations.
4158
+ rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['RuleWithOperationsPatchArgsDict']]]]
2963
4159
  """
2964
- return pulumi.get(self, "webhooks")
2965
-
2966
- @webhooks.setter
2967
- def webhooks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ValidatingWebhookArgs']]]]):
2968
- pulumi.set(self, "webhooks", value)
2969
-
4160
+ Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
4161
+ """
4162
+ side_effects: NotRequired[pulumi.Input[str]]
4163
+ """
4164
+ SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.
4165
+ """
4166
+ timeout_seconds: NotRequired[pulumi.Input[int]]
4167
+ """
4168
+ TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.
4169
+ """
4170
+ elif False:
4171
+ ValidatingWebhookPatchArgsDict: TypeAlias = Mapping[str, Any]
2970
4172
 
2971
4173
  @pulumi.input_type
2972
4174
  class ValidatingWebhookPatchArgs:
@@ -3208,6 +4410,90 @@ class ValidatingWebhookPatchArgs:
3208
4410
  pulumi.set(self, "timeout_seconds", value)
3209
4411
 
3210
4412
 
4413
+ if not MYPY:
4414
+ class ValidatingWebhookArgsDict(TypedDict):
4415
+ """
4416
+ ValidatingWebhook describes an admission webhook and the resources and operations it applies to.
4417
+ """
4418
+ client_config: pulumi.Input['WebhookClientConfigArgsDict']
4419
+ """
4420
+ ClientConfig defines how to communicate with the hook. Required
4421
+ """
4422
+ name: pulumi.Input[str]
4423
+ """
4424
+ The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the webhook, and kubernetes.io is the name of the organization. Required.
4425
+ """
4426
+ admission_review_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
4427
+ """
4428
+ AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.
4429
+ """
4430
+ failure_policy: NotRequired[pulumi.Input[str]]
4431
+ """
4432
+ FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.
4433
+ """
4434
+ match_policy: NotRequired[pulumi.Input[str]]
4435
+ """
4436
+ matchPolicy defines how the "rules" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
4437
+
4438
+ - 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 webhook.
4439
+
4440
+ - 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 webhook.
4441
+
4442
+ Defaults to "Exact"
4443
+ """
4444
+ namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
4445
+ """
4446
+ NamespaceSelector decides whether to run the webhook 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 webhook.
4447
+
4448
+ 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": {
4449
+ "matchExpressions": [
4450
+ {
4451
+ "key": "runlevel",
4452
+ "operator": "NotIn",
4453
+ "values": [
4454
+ "0",
4455
+ "1"
4456
+ ]
4457
+ }
4458
+ ]
4459
+ }
4460
+
4461
+ If instead you want to only run the webhook on any objects whose namespace is associated with the "environment" of "prod" or "staging"; you will set the selector as follows: "namespaceSelector": {
4462
+ "matchExpressions": [
4463
+ {
4464
+ "key": "environment",
4465
+ "operator": "In",
4466
+ "values": [
4467
+ "prod",
4468
+ "staging"
4469
+ ]
4470
+ }
4471
+ ]
4472
+ }
4473
+
4474
+ See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.
4475
+
4476
+ Default to the empty LabelSelector, which matches everything.
4477
+ """
4478
+ object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
4479
+ """
4480
+ ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, 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.
4481
+ """
4482
+ rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['RuleWithOperationsArgsDict']]]]
4483
+ """
4484
+ Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
4485
+ """
4486
+ side_effects: NotRequired[pulumi.Input[str]]
4487
+ """
4488
+ SideEffects states whether this webhook has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.
4489
+ """
4490
+ timeout_seconds: NotRequired[pulumi.Input[int]]
4491
+ """
4492
+ TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.
4493
+ """
4494
+ elif False:
4495
+ ValidatingWebhookArgsDict: TypeAlias = Mapping[str, Any]
4496
+
3211
4497
  @pulumi.input_type
3212
4498
  class ValidatingWebhookArgs:
3213
4499
  def __init__(__self__, *,
@@ -3446,6 +4732,55 @@ class ValidatingWebhookArgs:
3446
4732
  pulumi.set(self, "timeout_seconds", value)
3447
4733
 
3448
4734
 
4735
+ if not MYPY:
4736
+ class ValidationPatchArgsDict(TypedDict):
4737
+ """
4738
+ Validation specifies the CEL expression which is used to apply the validation.
4739
+ """
4740
+ expression: NotRequired[pulumi.Input[str]]
4741
+ """
4742
+ 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:
4743
+
4744
+ - '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.
4745
+ For example, a variable named 'foo' can be accessed as 'variables.foo'.
4746
+ - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
4747
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
4748
+ - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
4749
+ request resource.
4750
+
4751
+ The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
4752
+
4753
+ 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:
4754
+ "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
4755
+ "import", "let", "loop", "package", "namespace", "return".
4756
+ Examples:
4757
+ - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
4758
+ - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
4759
+ - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
4760
+
4761
+ 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:
4762
+ - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
4763
+ non-intersecting elements in `Y` are appended, retaining their partial order.
4764
+ - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
4765
+ are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
4766
+ non-intersecting keys are appended, retaining their partial order.
4767
+ Required.
4768
+ """
4769
+ message: NotRequired[pulumi.Input[str]]
4770
+ """
4771
+ 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}".
4772
+ """
4773
+ message_expression: NotRequired[pulumi.Input[str]]
4774
+ """
4775
+ 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)+")"
4776
+ """
4777
+ reason: NotRequired[pulumi.Input[str]]
4778
+ """
4779
+ 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.
4780
+ """
4781
+ elif False:
4782
+ ValidationPatchArgsDict: TypeAlias = Mapping[str, Any]
4783
+
3449
4784
  @pulumi.input_type
3450
4785
  class ValidationPatchArgs:
3451
4786
  def __init__(__self__, *,
@@ -3568,6 +4903,55 @@ class ValidationPatchArgs:
3568
4903
  pulumi.set(self, "reason", value)
3569
4904
 
3570
4905
 
4906
+ if not MYPY:
4907
+ class ValidationArgsDict(TypedDict):
4908
+ """
4909
+ Validation specifies the CEL expression which is used to apply the validation.
4910
+ """
4911
+ expression: pulumi.Input[str]
4912
+ """
4913
+ 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:
4914
+
4915
+ - '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.
4916
+ For example, a variable named 'foo' can be accessed as 'variables.foo'.
4917
+ - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
4918
+ See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
4919
+ - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
4920
+ request resource.
4921
+
4922
+ The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
4923
+
4924
+ 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:
4925
+ "true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
4926
+ "import", "let", "loop", "package", "namespace", "return".
4927
+ Examples:
4928
+ - Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
4929
+ - Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
4930
+ - Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
4931
+
4932
+ 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:
4933
+ - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
4934
+ non-intersecting elements in `Y` are appended, retaining their partial order.
4935
+ - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
4936
+ are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
4937
+ non-intersecting keys are appended, retaining their partial order.
4938
+ Required.
4939
+ """
4940
+ message: NotRequired[pulumi.Input[str]]
4941
+ """
4942
+ 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}".
4943
+ """
4944
+ message_expression: NotRequired[pulumi.Input[str]]
4945
+ """
4946
+ 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)+")"
4947
+ """
4948
+ reason: NotRequired[pulumi.Input[str]]
4949
+ """
4950
+ 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.
4951
+ """
4952
+ elif False:
4953
+ ValidationArgsDict: TypeAlias = Mapping[str, Any]
4954
+
3571
4955
  @pulumi.input_type
3572
4956
  class ValidationArgs:
3573
4957
  def __init__(__self__, *,
@@ -3689,6 +5073,22 @@ class ValidationArgs:
3689
5073
  pulumi.set(self, "reason", value)
3690
5074
 
3691
5075
 
5076
+ if not MYPY:
5077
+ class VariablePatchArgsDict(TypedDict):
5078
+ """
5079
+ Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
5080
+ """
5081
+ expression: NotRequired[pulumi.Input[str]]
5082
+ """
5083
+ 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.
5084
+ """
5085
+ name: NotRequired[pulumi.Input[str]]
5086
+ """
5087
+ 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`
5088
+ """
5089
+ elif False:
5090
+ VariablePatchArgsDict: TypeAlias = Mapping[str, Any]
5091
+
3692
5092
  @pulumi.input_type
3693
5093
  class VariablePatchArgs:
3694
5094
  def __init__(__self__, *,
@@ -3729,6 +5129,22 @@ class VariablePatchArgs:
3729
5129
  pulumi.set(self, "name", value)
3730
5130
 
3731
5131
 
5132
+ if not MYPY:
5133
+ class VariableArgsDict(TypedDict):
5134
+ """
5135
+ Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.
5136
+ """
5137
+ expression: pulumi.Input[str]
5138
+ """
5139
+ 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.
5140
+ """
5141
+ name: pulumi.Input[str]
5142
+ """
5143
+ 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`
5144
+ """
5145
+ elif False:
5146
+ VariableArgsDict: TypeAlias = Mapping[str, Any]
5147
+
3732
5148
  @pulumi.input_type
3733
5149
  class VariableArgs:
3734
5150
  def __init__(__self__, *,
@@ -3767,6 +5183,38 @@ class VariableArgs:
3767
5183
  pulumi.set(self, "name", value)
3768
5184
 
3769
5185
 
5186
+ if not MYPY:
5187
+ class WebhookClientConfigPatchArgsDict(TypedDict):
5188
+ """
5189
+ WebhookClientConfig contains the information to make a TLS connection with the webhook
5190
+ """
5191
+ ca_bundle: NotRequired[pulumi.Input[str]]
5192
+ """
5193
+ `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.
5194
+ """
5195
+ service: NotRequired[pulumi.Input['ServiceReferencePatchArgsDict']]
5196
+ """
5197
+ `service` is a reference to the service for this webhook. Either `service` or `url` must be specified.
5198
+
5199
+ If the webhook is running within the cluster, then you should use `service`.
5200
+ """
5201
+ url: NotRequired[pulumi.Input[str]]
5202
+ """
5203
+ `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.
5204
+
5205
+ The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.
5206
+
5207
+ Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.
5208
+
5209
+ The scheme must be "https"; the URL must begin with "https://".
5210
+
5211
+ A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.
5212
+
5213
+ Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either.
5214
+ """
5215
+ elif False:
5216
+ WebhookClientConfigPatchArgsDict: TypeAlias = Mapping[str, Any]
5217
+
3770
5218
  @pulumi.input_type
3771
5219
  class WebhookClientConfigPatchArgs:
3772
5220
  def __init__(__self__, *,
@@ -3847,6 +5295,38 @@ class WebhookClientConfigPatchArgs:
3847
5295
  pulumi.set(self, "url", value)
3848
5296
 
3849
5297
 
5298
+ if not MYPY:
5299
+ class WebhookClientConfigArgsDict(TypedDict):
5300
+ """
5301
+ WebhookClientConfig contains the information to make a TLS connection with the webhook
5302
+ """
5303
+ ca_bundle: NotRequired[pulumi.Input[str]]
5304
+ """
5305
+ `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.
5306
+ """
5307
+ service: NotRequired[pulumi.Input['ServiceReferenceArgsDict']]
5308
+ """
5309
+ `service` is a reference to the service for this webhook. Either `service` or `url` must be specified.
5310
+
5311
+ If the webhook is running within the cluster, then you should use `service`.
5312
+ """
5313
+ url: NotRequired[pulumi.Input[str]]
5314
+ """
5315
+ `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.
5316
+
5317
+ The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.
5318
+
5319
+ Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.
5320
+
5321
+ The scheme must be "https"; the URL must begin with "https://".
5322
+
5323
+ A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.
5324
+
5325
+ Attempting to use a user or basic auth e.g. "user:password@" is not allowed. Fragments ("#...") and query parameters ("?...") are not allowed, either.
5326
+ """
5327
+ elif False:
5328
+ WebhookClientConfigArgsDict: TypeAlias = Mapping[str, Any]
5329
+
3850
5330
  @pulumi.input_type
3851
5331
  class WebhookClientConfigArgs:
3852
5332
  def __init__(__self__, *,