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.
- pulumi_kubernetes/__init__.py +123 -3
- pulumi_kubernetes/_inputs.py +63 -6
- pulumi_kubernetes/_utilities.py +41 -5
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +226 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +224 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +236 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +238 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/__init__.py +6 -0
- pulumi_kubernetes/admissionregistration/v1/_inputs.py +4571 -939
- pulumi_kubernetes/admissionregistration/v1/outputs.py +2880 -470
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +12 -7
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +12 -15
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +12 -15
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +12 -7
- pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +2514 -141
- pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1370 -246
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +1522 -42
- pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +9 -4
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +11 -6
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +11 -6
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +11 -6
- pulumi_kubernetes/apiextensions/v1/_inputs.py +1175 -12
- pulumi_kubernetes/apiextensions/v1/outputs.py +122 -8
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +10 -5
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +10 -5
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +10 -5
- pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +903 -6
- pulumi_kubernetes/apiextensions/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/apiregistration/v1/APIService.py +11 -6
- pulumi_kubernetes/apiregistration/v1/APIServiceList.py +11 -6
- pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +11 -6
- pulumi_kubernetes/apiregistration/v1/_inputs.py +194 -0
- pulumi_kubernetes/apiregistration/v1/outputs.py +5 -0
- pulumi_kubernetes/apiregistration/v1beta1/APIService.py +10 -5
- pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +9 -4
- pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +10 -5
- pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +191 -0
- pulumi_kubernetes/apiregistration/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/apps/v1/ControllerRevision.py +8 -3
- pulumi_kubernetes/apps/v1/ControllerRevisionList.py +11 -6
- pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +8 -3
- pulumi_kubernetes/apps/v1/DaemonSet.py +11 -6
- pulumi_kubernetes/apps/v1/DaemonSetList.py +11 -6
- pulumi_kubernetes/apps/v1/DaemonSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1/Deployment.py +11 -6
- pulumi_kubernetes/apps/v1/DeploymentList.py +11 -6
- pulumi_kubernetes/apps/v1/DeploymentPatch.py +11 -6
- pulumi_kubernetes/apps/v1/ReplicaSet.py +11 -6
- pulumi_kubernetes/apps/v1/ReplicaSetList.py +11 -6
- pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1/StatefulSet.py +11 -6
- pulumi_kubernetes/apps/v1/StatefulSetList.py +11 -6
- pulumi_kubernetes/apps/v1/StatefulSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1/_inputs.py +1057 -8
- pulumi_kubernetes/apps/v1/outputs.py +13 -8
- pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +8 -3
- pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +11 -6
- pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +8 -3
- pulumi_kubernetes/apps/v1beta1/Deployment.py +11 -6
- pulumi_kubernetes/apps/v1beta1/DeploymentList.py +11 -6
- pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta1/StatefulSet.py +10 -5
- pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +9 -4
- pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +10 -5
- pulumi_kubernetes/apps/v1beta1/_inputs.py +603 -0
- pulumi_kubernetes/apps/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +8 -3
- pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +8 -3
- pulumi_kubernetes/apps/v1beta2/DaemonSet.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta2/Deployment.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DeploymentList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta2/StatefulSet.py +10 -5
- pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +9 -4
- pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +10 -5
- pulumi_kubernetes/apps/v1beta2/_inputs.py +935 -0
- pulumi_kubernetes/apps/v1beta2/outputs.py +5 -0
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +10 -5
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +10 -5
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +10 -5
- pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +281 -0
- pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v1/_inputs.py +157 -0
- pulumi_kubernetes/autoscaling/v1/outputs.py +5 -0
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v2/_inputs.py +815 -10
- pulumi_kubernetes/autoscaling/v2/outputs.py +17 -12
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +652 -0
- pulumi_kubernetes/autoscaling/v2beta1/outputs.py +5 -0
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +796 -0
- pulumi_kubernetes/autoscaling/v2beta2/outputs.py +5 -0
- pulumi_kubernetes/batch/v1/CronJob.py +11 -6
- pulumi_kubernetes/batch/v1/CronJobList.py +11 -6
- pulumi_kubernetes/batch/v1/CronJobPatch.py +11 -6
- pulumi_kubernetes/batch/v1/Job.py +11 -6
- pulumi_kubernetes/batch/v1/JobList.py +11 -6
- pulumi_kubernetes/batch/v1/JobPatch.py +11 -6
- pulumi_kubernetes/batch/v1/_inputs.py +1070 -85
- pulumi_kubernetes/batch/v1/outputs.py +298 -40
- pulumi_kubernetes/batch/v1beta1/CronJob.py +11 -6
- pulumi_kubernetes/batch/v1beta1/CronJobList.py +11 -6
- pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +11 -6
- pulumi_kubernetes/batch/v1beta1/_inputs.py +161 -0
- pulumi_kubernetes/batch/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/batch/v2alpha1/CronJob.py +11 -6
- pulumi_kubernetes/batch/v2alpha1/CronJobList.py +11 -6
- pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +11 -6
- pulumi_kubernetes/batch/v2alpha1/_inputs.py +161 -0
- pulumi_kubernetes/batch/v2alpha1/outputs.py +5 -0
- pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +10 -5
- pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +10 -5
- pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +10 -5
- pulumi_kubernetes/certificates/v1/_inputs.py +290 -0
- pulumi_kubernetes/certificates/v1/outputs.py +5 -0
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +11 -6
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +11 -6
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +11 -6
- pulumi_kubernetes/certificates/v1alpha1/_inputs.py +94 -0
- pulumi_kubernetes/certificates/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +10 -5
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +9 -4
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +10 -5
- pulumi_kubernetes/certificates/v1beta1/_inputs.py +165 -0
- pulumi_kubernetes/certificates/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/coordination/__init__.py +6 -0
- pulumi_kubernetes/coordination/v1/Lease.py +11 -6
- pulumi_kubernetes/coordination/v1/LeaseList.py +11 -6
- pulumi_kubernetes/coordination/v1/LeasePatch.py +11 -6
- pulumi_kubernetes/coordination/v1/_inputs.py +180 -10
- pulumi_kubernetes/coordination/v1/outputs.py +67 -10
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +216 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +215 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +228 -0
- pulumi_kubernetes/coordination/v1alpha1/__init__.py +12 -0
- pulumi_kubernetes/coordination/v1alpha1/_inputs.py +418 -0
- pulumi_kubernetes/coordination/v1alpha1/outputs.py +334 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
- pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
- pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
- pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
- pulumi_kubernetes/coordination/v1beta1/Lease.py +11 -6
- pulumi_kubernetes/coordination/v1beta1/LeaseList.py +11 -6
- pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +11 -6
- pulumi_kubernetes/coordination/v1beta1/_inputs.py +90 -0
- pulumi_kubernetes/coordination/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/core/v1/Binding.py +13 -8
- pulumi_kubernetes/core/v1/BindingPatch.py +13 -8
- pulumi_kubernetes/core/v1/ConfigMap.py +8 -3
- pulumi_kubernetes/core/v1/ConfigMapList.py +11 -6
- pulumi_kubernetes/core/v1/ConfigMapPatch.py +8 -3
- pulumi_kubernetes/core/v1/Endpoints.py +11 -6
- pulumi_kubernetes/core/v1/EndpointsList.py +11 -6
- pulumi_kubernetes/core/v1/EndpointsPatch.py +11 -6
- pulumi_kubernetes/core/v1/Event.py +20 -15
- pulumi_kubernetes/core/v1/EventList.py +11 -6
- pulumi_kubernetes/core/v1/EventPatch.py +20 -15
- pulumi_kubernetes/core/v1/LimitRange.py +11 -6
- pulumi_kubernetes/core/v1/LimitRangeList.py +11 -6
- pulumi_kubernetes/core/v1/LimitRangePatch.py +11 -6
- pulumi_kubernetes/core/v1/Namespace.py +11 -6
- pulumi_kubernetes/core/v1/NamespaceList.py +11 -6
- pulumi_kubernetes/core/v1/NamespacePatch.py +11 -6
- pulumi_kubernetes/core/v1/Node.py +11 -6
- pulumi_kubernetes/core/v1/NodeList.py +11 -6
- pulumi_kubernetes/core/v1/NodePatch.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolume.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeList.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumePatch.py +11 -6
- pulumi_kubernetes/core/v1/Pod.py +11 -6
- pulumi_kubernetes/core/v1/PodList.py +11 -6
- pulumi_kubernetes/core/v1/PodPatch.py +11 -6
- pulumi_kubernetes/core/v1/PodTemplate.py +11 -6
- pulumi_kubernetes/core/v1/PodTemplateList.py +11 -6
- pulumi_kubernetes/core/v1/PodTemplatePatch.py +11 -6
- pulumi_kubernetes/core/v1/ReplicationController.py +11 -6
- pulumi_kubernetes/core/v1/ReplicationControllerList.py +11 -6
- pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +11 -6
- pulumi_kubernetes/core/v1/ResourceQuota.py +11 -6
- pulumi_kubernetes/core/v1/ResourceQuotaList.py +11 -6
- pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +11 -6
- pulumi_kubernetes/core/v1/Secret.py +8 -3
- pulumi_kubernetes/core/v1/SecretList.py +11 -6
- pulumi_kubernetes/core/v1/SecretPatch.py +8 -3
- pulumi_kubernetes/core/v1/Service.py +17 -28
- pulumi_kubernetes/core/v1/ServiceAccount.py +17 -12
- pulumi_kubernetes/core/v1/ServiceAccountList.py +11 -6
- pulumi_kubernetes/core/v1/ServiceAccountPatch.py +17 -12
- pulumi_kubernetes/core/v1/ServiceList.py +11 -6
- pulumi_kubernetes/core/v1/ServicePatch.py +17 -28
- pulumi_kubernetes/core/v1/_inputs.py +11760 -756
- pulumi_kubernetes/core/v1/outputs.py +2131 -448
- pulumi_kubernetes/discovery/v1/EndpointSlice.py +14 -9
- pulumi_kubernetes/discovery/v1/EndpointSliceList.py +11 -6
- pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +14 -9
- pulumi_kubernetes/discovery/v1/_inputs.py +284 -0
- pulumi_kubernetes/discovery/v1/outputs.py +5 -0
- pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +14 -9
- pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +11 -6
- pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +14 -9
- pulumi_kubernetes/discovery/v1beta1/_inputs.py +210 -0
- pulumi_kubernetes/discovery/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/events/v1/Event.py +20 -15
- pulumi_kubernetes/events/v1/EventList.py +11 -6
- pulumi_kubernetes/events/v1/EventPatch.py +20 -15
- pulumi_kubernetes/events/v1/_inputs.py +118 -0
- pulumi_kubernetes/events/v1/outputs.py +5 -0
- pulumi_kubernetes/events/v1beta1/Event.py +19 -14
- pulumi_kubernetes/events/v1beta1/EventList.py +11 -6
- pulumi_kubernetes/events/v1beta1/EventPatch.py +19 -14
- pulumi_kubernetes/events/v1beta1/_inputs.py +123 -0
- pulumi_kubernetes/events/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/Deployment.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/Ingress.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/IngressList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/_inputs.py +1884 -26
- pulumi_kubernetes/extensions/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/_inputs.py +779 -0
- pulumi_kubernetes/flowcontrol/v1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +671 -0
- pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +671 -0
- pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +771 -0
- pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +779 -8
- pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +13 -8
- pulumi_kubernetes/helm/__init__.py +3 -0
- pulumi_kubernetes/helm/v3/Release.py +8 -3
- pulumi_kubernetes/helm/v3/_inputs.py +42 -2
- pulumi_kubernetes/helm/v3/outputs.py +7 -2
- pulumi_kubernetes/helm/v4/Chart.py +721 -0
- pulumi_kubernetes/helm/v4/__init__.py +9 -0
- pulumi_kubernetes/helm/v4/_inputs.py +216 -0
- pulumi_kubernetes/kustomize/__init__.py +8 -0
- pulumi_kubernetes/kustomize/v2/Directory.py +219 -0
- pulumi_kubernetes/kustomize/v2/__init__.py +8 -0
- pulumi_kubernetes/meta/v1/Status.py +11 -6
- pulumi_kubernetes/meta/v1/StatusPatch.py +11 -6
- pulumi_kubernetes/meta/v1/_inputs.py +596 -0
- pulumi_kubernetes/meta/v1/outputs.py +5 -0
- pulumi_kubernetes/networking/v1/Ingress.py +11 -6
- pulumi_kubernetes/networking/v1/IngressClass.py +11 -6
- pulumi_kubernetes/networking/v1/IngressClassList.py +11 -6
- pulumi_kubernetes/networking/v1/IngressClassPatch.py +11 -6
- pulumi_kubernetes/networking/v1/IngressList.py +11 -6
- pulumi_kubernetes/networking/v1/IngressPatch.py +11 -6
- pulumi_kubernetes/networking/v1/NetworkPolicy.py +11 -6
- pulumi_kubernetes/networking/v1/NetworkPolicyList.py +11 -6
- pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +11 -6
- pulumi_kubernetes/networking/v1/_inputs.py +840 -0
- pulumi_kubernetes/networking/v1/outputs.py +5 -0
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/IPAddress.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/_inputs.py +293 -37
- pulumi_kubernetes/networking/v1alpha1/outputs.py +26 -24
- pulumi_kubernetes/networking/v1beta1/IPAddress.py +216 -0
- pulumi_kubernetes/networking/v1beta1/IPAddressList.py +215 -0
- pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +228 -0
- pulumi_kubernetes/networking/v1beta1/Ingress.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressClass.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressClassList.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressList.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressPatch.py +11 -6
- pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +226 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +215 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +238 -0
- pulumi_kubernetes/networking/v1beta1/__init__.py +6 -0
- pulumi_kubernetes/networking/v1beta1/_inputs.py +984 -11
- pulumi_kubernetes/networking/v1beta1/outputs.py +466 -0
- pulumi_kubernetes/node/v1/RuntimeClass.py +14 -9
- pulumi_kubernetes/node/v1/RuntimeClassList.py +11 -6
- pulumi_kubernetes/node/v1/RuntimeClassPatch.py +14 -9
- pulumi_kubernetes/node/v1/_inputs.py +101 -0
- pulumi_kubernetes/node/v1/outputs.py +5 -0
- pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +11 -6
- pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +11 -6
- pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +11 -6
- pulumi_kubernetes/node/v1alpha1/_inputs.py +134 -0
- pulumi_kubernetes/node/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/node/v1beta1/RuntimeClass.py +14 -9
- pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +11 -6
- pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +14 -9
- pulumi_kubernetes/node/v1beta1/_inputs.py +100 -0
- pulumi_kubernetes/node/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +11 -6
- pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +11 -6
- pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +11 -6
- pulumi_kubernetes/policy/v1/_inputs.py +151 -0
- pulumi_kubernetes/policy/v1/outputs.py +5 -0
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +10 -5
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +9 -4
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +10 -5
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +11 -6
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +11 -6
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +11 -6
- pulumi_kubernetes/policy/v1beta1/_inputs.py +713 -0
- pulumi_kubernetes/policy/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/provider.py +82 -6
- pulumi_kubernetes/pulumi-plugin.json +2 -1
- pulumi_kubernetes/rbac/v1/ClusterRole.py +14 -9
- pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1/ClusterRoleList.py +11 -6
- pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +14 -9
- pulumi_kubernetes/rbac/v1/Role.py +11 -6
- pulumi_kubernetes/rbac/v1/RoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1/RoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1/RoleList.py +11 -6
- pulumi_kubernetes/rbac/v1/RolePatch.py +11 -6
- pulumi_kubernetes/rbac/v1/_inputs.py +295 -0
- pulumi_kubernetes/rbac/v1/outputs.py +5 -0
- pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/Role.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/RoleList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/_inputs.py +295 -0
- pulumi_kubernetes/rbac/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/Role.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/RoleList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/RolePatch.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/_inputs.py +295 -0
- pulumi_kubernetes/rbac/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/resource/__init__.py +6 -0
- pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +14 -9
- pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +14 -9
- pulumi_kubernetes/resource/v1alpha1/_inputs.py +458 -0
- pulumi_kubernetes/resource/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +13 -6
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +13 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +280 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +215 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +292 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +43 -9
- pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +272 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +215 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +284 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +43 -9
- pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +283 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +215 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +294 -0
- pulumi_kubernetes/resource/v1alpha2/__init__.py +9 -0
- pulumi_kubernetes/resource/v1alpha2/_inputs.py +3177 -634
- pulumi_kubernetes/resource/v1alpha2/outputs.py +2628 -880
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +238 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +249 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +231 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +215 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +242 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +232 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +243 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +229 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +215 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +240 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +246 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +257 -0
- pulumi_kubernetes/resource/v1alpha3/__init__.py +24 -0
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +4372 -0
- pulumi_kubernetes/resource/v1alpha3/outputs.py +3914 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
- pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
- pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
- pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
- pulumi_kubernetes/scheduling/v1/PriorityClass.py +8 -3
- pulumi_kubernetes/scheduling/v1/PriorityClassList.py +11 -6
- pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +8 -3
- pulumi_kubernetes/scheduling/v1/_inputs.py +44 -0
- pulumi_kubernetes/scheduling/v1/outputs.py +5 -0
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +8 -3
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +11 -6
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +8 -3
- pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +44 -0
- pulumi_kubernetes/scheduling/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +8 -3
- pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +11 -6
- pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +8 -3
- pulumi_kubernetes/scheduling/v1beta1/_inputs.py +44 -0
- pulumi_kubernetes/scheduling/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/settings/v1alpha1/PodPreset.py +9 -4
- pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +11 -6
- pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +9 -4
- pulumi_kubernetes/settings/v1alpha1/_inputs.py +84 -0
- pulumi_kubernetes/settings/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/storage/v1/CSIDriver.py +11 -6
- pulumi_kubernetes/storage/v1/CSIDriverList.py +11 -6
- pulumi_kubernetes/storage/v1/CSIDriverPatch.py +11 -6
- pulumi_kubernetes/storage/v1/CSINode.py +11 -6
- pulumi_kubernetes/storage/v1/CSINodeList.py +11 -6
- pulumi_kubernetes/storage/v1/CSINodePatch.py +11 -6
- pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +11 -6
- pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +11 -6
- pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +11 -6
- pulumi_kubernetes/storage/v1/StorageClass.py +11 -6
- pulumi_kubernetes/storage/v1/StorageClassList.py +11 -6
- pulumi_kubernetes/storage/v1/StorageClassPatch.py +11 -6
- pulumi_kubernetes/storage/v1/VolumeAttachment.py +11 -6
- pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +11 -6
- pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +11 -6
- pulumi_kubernetes/storage/v1/_inputs.py +624 -10
- pulumi_kubernetes/storage/v1/outputs.py +17 -12
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +10 -3
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +10 -3
- pulumi_kubernetes/storage/v1alpha1/_inputs.py +187 -0
- pulumi_kubernetes/storage/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/storage/v1beta1/CSIDriver.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSINode.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSINodeList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/StorageClass.py +11 -6
- pulumi_kubernetes/storage/v1beta1/StorageClassList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +252 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +215 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +263 -0
- pulumi_kubernetes/storage/v1beta1/__init__.py +3 -0
- pulumi_kubernetes/storage/v1beta1/_inputs.py +689 -0
- pulumi_kubernetes/storage/v1beta1/outputs.py +99 -0
- pulumi_kubernetes/storagemigration/__init__.py +14 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +224 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +215 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +236 -0
- pulumi_kubernetes/storagemigration/v1alpha1/__init__.py +12 -0
- pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +585 -0
- pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +593 -0
- pulumi_kubernetes/yaml/v2/ConfigFile.py +81 -4
- pulumi_kubernetes/yaml/v2/ConfigGroup.py +123 -42
- pulumi_kubernetes/yaml/yaml.py +264 -0
- {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/METADATA +8 -7
- pulumi_kubernetes-4.20.0a1736823142.dist-info/RECORD +679 -0
- {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/WHEEL +1 -1
- pulumi_kubernetes-4.10.0a1710288589.dist-info/RECORD +0 -592
- {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0a1736823142.dist-info}/top_level.txt +0 -0
|
@@ -4,40 +4,356 @@
|
|
|
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__ = [
|
|
19
|
+
'ApplyConfigurationPatchArgs',
|
|
20
|
+
'ApplyConfigurationPatchArgsDict',
|
|
21
|
+
'ApplyConfigurationArgs',
|
|
22
|
+
'ApplyConfigurationArgsDict',
|
|
14
23
|
'AuditAnnotationPatchArgs',
|
|
24
|
+
'AuditAnnotationPatchArgsDict',
|
|
15
25
|
'AuditAnnotationArgs',
|
|
26
|
+
'AuditAnnotationArgsDict',
|
|
16
27
|
'ExpressionWarningArgs',
|
|
28
|
+
'ExpressionWarningArgsDict',
|
|
29
|
+
'JSONPatchPatchArgs',
|
|
30
|
+
'JSONPatchPatchArgsDict',
|
|
31
|
+
'JSONPatchArgs',
|
|
32
|
+
'JSONPatchArgsDict',
|
|
17
33
|
'MatchConditionPatchArgs',
|
|
34
|
+
'MatchConditionPatchArgsDict',
|
|
18
35
|
'MatchConditionArgs',
|
|
36
|
+
'MatchConditionArgsDict',
|
|
19
37
|
'MatchResourcesPatchArgs',
|
|
38
|
+
'MatchResourcesPatchArgsDict',
|
|
20
39
|
'MatchResourcesArgs',
|
|
40
|
+
'MatchResourcesArgsDict',
|
|
41
|
+
'MutatingAdmissionPolicyBindingSpecPatchArgs',
|
|
42
|
+
'MutatingAdmissionPolicyBindingSpecPatchArgsDict',
|
|
43
|
+
'MutatingAdmissionPolicyBindingSpecArgs',
|
|
44
|
+
'MutatingAdmissionPolicyBindingSpecArgsDict',
|
|
45
|
+
'MutatingAdmissionPolicyBindingArgs',
|
|
46
|
+
'MutatingAdmissionPolicyBindingArgsDict',
|
|
47
|
+
'MutatingAdmissionPolicySpecPatchArgs',
|
|
48
|
+
'MutatingAdmissionPolicySpecPatchArgsDict',
|
|
49
|
+
'MutatingAdmissionPolicySpecArgs',
|
|
50
|
+
'MutatingAdmissionPolicySpecArgsDict',
|
|
51
|
+
'MutatingAdmissionPolicyArgs',
|
|
52
|
+
'MutatingAdmissionPolicyArgsDict',
|
|
53
|
+
'MutationPatchArgs',
|
|
54
|
+
'MutationPatchArgsDict',
|
|
55
|
+
'MutationArgs',
|
|
56
|
+
'MutationArgsDict',
|
|
21
57
|
'NamedRuleWithOperationsPatchArgs',
|
|
58
|
+
'NamedRuleWithOperationsPatchArgsDict',
|
|
22
59
|
'NamedRuleWithOperationsArgs',
|
|
60
|
+
'NamedRuleWithOperationsArgsDict',
|
|
23
61
|
'ParamKindPatchArgs',
|
|
62
|
+
'ParamKindPatchArgsDict',
|
|
24
63
|
'ParamKindArgs',
|
|
64
|
+
'ParamKindArgsDict',
|
|
25
65
|
'ParamRefPatchArgs',
|
|
66
|
+
'ParamRefPatchArgsDict',
|
|
26
67
|
'ParamRefArgs',
|
|
68
|
+
'ParamRefArgsDict',
|
|
27
69
|
'TypeCheckingArgs',
|
|
70
|
+
'TypeCheckingArgsDict',
|
|
28
71
|
'ValidatingAdmissionPolicyBindingSpecPatchArgs',
|
|
72
|
+
'ValidatingAdmissionPolicyBindingSpecPatchArgsDict',
|
|
29
73
|
'ValidatingAdmissionPolicyBindingSpecArgs',
|
|
74
|
+
'ValidatingAdmissionPolicyBindingSpecArgsDict',
|
|
30
75
|
'ValidatingAdmissionPolicyBindingArgs',
|
|
76
|
+
'ValidatingAdmissionPolicyBindingArgsDict',
|
|
31
77
|
'ValidatingAdmissionPolicySpecPatchArgs',
|
|
78
|
+
'ValidatingAdmissionPolicySpecPatchArgsDict',
|
|
32
79
|
'ValidatingAdmissionPolicySpecArgs',
|
|
80
|
+
'ValidatingAdmissionPolicySpecArgsDict',
|
|
33
81
|
'ValidatingAdmissionPolicyStatusArgs',
|
|
82
|
+
'ValidatingAdmissionPolicyStatusArgsDict',
|
|
34
83
|
'ValidatingAdmissionPolicyArgs',
|
|
84
|
+
'ValidatingAdmissionPolicyArgsDict',
|
|
35
85
|
'ValidationPatchArgs',
|
|
86
|
+
'ValidationPatchArgsDict',
|
|
36
87
|
'ValidationArgs',
|
|
88
|
+
'ValidationArgsDict',
|
|
37
89
|
'VariablePatchArgs',
|
|
90
|
+
'VariablePatchArgsDict',
|
|
38
91
|
'VariableArgs',
|
|
92
|
+
'VariableArgsDict',
|
|
39
93
|
]
|
|
40
94
|
|
|
95
|
+
MYPY = False
|
|
96
|
+
|
|
97
|
+
if not MYPY:
|
|
98
|
+
class ApplyConfigurationPatchArgsDict(TypedDict):
|
|
99
|
+
"""
|
|
100
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
101
|
+
"""
|
|
102
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
103
|
+
"""
|
|
104
|
+
expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
105
|
+
|
|
106
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
107
|
+
|
|
108
|
+
Object{
|
|
109
|
+
spec: Object.spec{
|
|
110
|
+
serviceAccountName: "example"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.
|
|
115
|
+
|
|
116
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
117
|
+
|
|
118
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
119
|
+
|
|
120
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
121
|
+
|
|
122
|
+
- '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.
|
|
123
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
124
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
125
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
126
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
127
|
+
request resource.
|
|
128
|
+
|
|
129
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
130
|
+
|
|
131
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
132
|
+
"""
|
|
133
|
+
elif False:
|
|
134
|
+
ApplyConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
135
|
+
|
|
136
|
+
@pulumi.input_type
|
|
137
|
+
class ApplyConfigurationPatchArgs:
|
|
138
|
+
def __init__(__self__, *,
|
|
139
|
+
expression: Optional[pulumi.Input[str]] = None):
|
|
140
|
+
"""
|
|
141
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
142
|
+
:param pulumi.Input[str] expression: expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
143
|
+
|
|
144
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
145
|
+
|
|
146
|
+
Object{
|
|
147
|
+
spec: Object.spec{
|
|
148
|
+
serviceAccountName: "example"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.
|
|
153
|
+
|
|
154
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
155
|
+
|
|
156
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
157
|
+
|
|
158
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
159
|
+
|
|
160
|
+
- '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.
|
|
161
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
162
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
163
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
164
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
165
|
+
request resource.
|
|
166
|
+
|
|
167
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
168
|
+
|
|
169
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
170
|
+
"""
|
|
171
|
+
if expression is not None:
|
|
172
|
+
pulumi.set(__self__, "expression", expression)
|
|
173
|
+
|
|
174
|
+
@property
|
|
175
|
+
@pulumi.getter
|
|
176
|
+
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
177
|
+
"""
|
|
178
|
+
expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
179
|
+
|
|
180
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
181
|
+
|
|
182
|
+
Object{
|
|
183
|
+
spec: Object.spec{
|
|
184
|
+
serviceAccountName: "example"
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.
|
|
189
|
+
|
|
190
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
191
|
+
|
|
192
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
193
|
+
|
|
194
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
195
|
+
|
|
196
|
+
- '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.
|
|
197
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
198
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
199
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
200
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
201
|
+
request resource.
|
|
202
|
+
|
|
203
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
204
|
+
|
|
205
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
206
|
+
"""
|
|
207
|
+
return pulumi.get(self, "expression")
|
|
208
|
+
|
|
209
|
+
@expression.setter
|
|
210
|
+
def expression(self, value: Optional[pulumi.Input[str]]):
|
|
211
|
+
pulumi.set(self, "expression", value)
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
if not MYPY:
|
|
215
|
+
class ApplyConfigurationArgsDict(TypedDict):
|
|
216
|
+
"""
|
|
217
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
218
|
+
"""
|
|
219
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
220
|
+
"""
|
|
221
|
+
expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
222
|
+
|
|
223
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
224
|
+
|
|
225
|
+
Object{
|
|
226
|
+
spec: Object.spec{
|
|
227
|
+
serviceAccountName: "example"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.
|
|
232
|
+
|
|
233
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
234
|
+
|
|
235
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
236
|
+
|
|
237
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
238
|
+
|
|
239
|
+
- '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.
|
|
240
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
241
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
242
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
243
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
244
|
+
request resource.
|
|
245
|
+
|
|
246
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
247
|
+
|
|
248
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
249
|
+
"""
|
|
250
|
+
elif False:
|
|
251
|
+
ApplyConfigurationArgsDict: TypeAlias = Mapping[str, Any]
|
|
252
|
+
|
|
253
|
+
@pulumi.input_type
|
|
254
|
+
class ApplyConfigurationArgs:
|
|
255
|
+
def __init__(__self__, *,
|
|
256
|
+
expression: Optional[pulumi.Input[str]] = None):
|
|
257
|
+
"""
|
|
258
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
259
|
+
:param pulumi.Input[str] expression: expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
260
|
+
|
|
261
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
262
|
+
|
|
263
|
+
Object{
|
|
264
|
+
spec: Object.spec{
|
|
265
|
+
serviceAccountName: "example"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.
|
|
270
|
+
|
|
271
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
272
|
+
|
|
273
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
274
|
+
|
|
275
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
276
|
+
|
|
277
|
+
- '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.
|
|
278
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
279
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
280
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
281
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
282
|
+
request resource.
|
|
283
|
+
|
|
284
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
285
|
+
|
|
286
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
287
|
+
"""
|
|
288
|
+
if expression is not None:
|
|
289
|
+
pulumi.set(__self__, "expression", expression)
|
|
290
|
+
|
|
291
|
+
@property
|
|
292
|
+
@pulumi.getter
|
|
293
|
+
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
294
|
+
"""
|
|
295
|
+
expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
296
|
+
|
|
297
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
298
|
+
|
|
299
|
+
Object{
|
|
300
|
+
spec: Object.spec{
|
|
301
|
+
serviceAccountName: "example"
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.
|
|
306
|
+
|
|
307
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
308
|
+
|
|
309
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
310
|
+
|
|
311
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
312
|
+
|
|
313
|
+
- '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.
|
|
314
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
315
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
316
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
317
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
318
|
+
request resource.
|
|
319
|
+
|
|
320
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
321
|
+
|
|
322
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
323
|
+
"""
|
|
324
|
+
return pulumi.get(self, "expression")
|
|
325
|
+
|
|
326
|
+
@expression.setter
|
|
327
|
+
def expression(self, value: Optional[pulumi.Input[str]]):
|
|
328
|
+
pulumi.set(self, "expression", value)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
if not MYPY:
|
|
332
|
+
class AuditAnnotationPatchArgsDict(TypedDict):
|
|
333
|
+
"""
|
|
334
|
+
AuditAnnotation describes how to produce an audit annotation for an API request.
|
|
335
|
+
"""
|
|
336
|
+
key: NotRequired[pulumi.Input[str]]
|
|
337
|
+
"""
|
|
338
|
+
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.
|
|
339
|
+
|
|
340
|
+
The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
|
|
341
|
+
|
|
342
|
+
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.
|
|
343
|
+
|
|
344
|
+
Required.
|
|
345
|
+
"""
|
|
346
|
+
value_expression: NotRequired[pulumi.Input[str]]
|
|
347
|
+
"""
|
|
348
|
+
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.
|
|
349
|
+
|
|
350
|
+
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.
|
|
351
|
+
|
|
352
|
+
Required.
|
|
353
|
+
"""
|
|
354
|
+
elif False:
|
|
355
|
+
AuditAnnotationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
356
|
+
|
|
41
357
|
@pulumi.input_type
|
|
42
358
|
class AuditAnnotationPatchArgs:
|
|
43
359
|
def __init__(__self__, *,
|
|
@@ -98,6 +414,32 @@ class AuditAnnotationPatchArgs:
|
|
|
98
414
|
pulumi.set(self, "value_expression", value)
|
|
99
415
|
|
|
100
416
|
|
|
417
|
+
if not MYPY:
|
|
418
|
+
class AuditAnnotationArgsDict(TypedDict):
|
|
419
|
+
"""
|
|
420
|
+
AuditAnnotation describes how to produce an audit annotation for an API request.
|
|
421
|
+
"""
|
|
422
|
+
key: pulumi.Input[str]
|
|
423
|
+
"""
|
|
424
|
+
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.
|
|
425
|
+
|
|
426
|
+
The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
|
|
427
|
+
|
|
428
|
+
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.
|
|
429
|
+
|
|
430
|
+
Required.
|
|
431
|
+
"""
|
|
432
|
+
value_expression: pulumi.Input[str]
|
|
433
|
+
"""
|
|
434
|
+
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.
|
|
435
|
+
|
|
436
|
+
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.
|
|
437
|
+
|
|
438
|
+
Required.
|
|
439
|
+
"""
|
|
440
|
+
elif False:
|
|
441
|
+
AuditAnnotationArgsDict: TypeAlias = Mapping[str, Any]
|
|
442
|
+
|
|
101
443
|
@pulumi.input_type
|
|
102
444
|
class AuditAnnotationArgs:
|
|
103
445
|
def __init__(__self__, *,
|
|
@@ -156,6 +498,22 @@ class AuditAnnotationArgs:
|
|
|
156
498
|
pulumi.set(self, "value_expression", value)
|
|
157
499
|
|
|
158
500
|
|
|
501
|
+
if not MYPY:
|
|
502
|
+
class ExpressionWarningArgsDict(TypedDict):
|
|
503
|
+
"""
|
|
504
|
+
ExpressionWarning is a warning information that targets a specific expression.
|
|
505
|
+
"""
|
|
506
|
+
field_ref: pulumi.Input[str]
|
|
507
|
+
"""
|
|
508
|
+
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"
|
|
509
|
+
"""
|
|
510
|
+
warning: pulumi.Input[str]
|
|
511
|
+
"""
|
|
512
|
+
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.
|
|
513
|
+
"""
|
|
514
|
+
elif False:
|
|
515
|
+
ExpressionWarningArgsDict: TypeAlias = Mapping[str, Any]
|
|
516
|
+
|
|
159
517
|
@pulumi.input_type
|
|
160
518
|
class ExpressionWarningArgs:
|
|
161
519
|
def __init__(__self__, *,
|
|
@@ -194,45 +552,458 @@ class ExpressionWarningArgs:
|
|
|
194
552
|
pulumi.set(self, "warning", value)
|
|
195
553
|
|
|
196
554
|
|
|
555
|
+
if not MYPY:
|
|
556
|
+
class JSONPatchPatchArgsDict(TypedDict):
|
|
557
|
+
"""
|
|
558
|
+
JSONPatch defines a JSON Patch.
|
|
559
|
+
"""
|
|
560
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
561
|
+
"""
|
|
562
|
+
expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
563
|
+
|
|
564
|
+
expression must return an array of JSONPatch values.
|
|
565
|
+
|
|
566
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
567
|
+
|
|
568
|
+
[
|
|
569
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
570
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
571
|
+
]
|
|
572
|
+
|
|
573
|
+
To define an object for the patch value, use Object types. For example:
|
|
574
|
+
|
|
575
|
+
[
|
|
576
|
+
JSONPatch{
|
|
577
|
+
op: "add",
|
|
578
|
+
path: "/spec/selector",
|
|
579
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
580
|
+
}
|
|
581
|
+
]
|
|
582
|
+
|
|
583
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
584
|
+
|
|
585
|
+
[
|
|
586
|
+
JSONPatch{
|
|
587
|
+
op: "add",
|
|
588
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
589
|
+
value: "test"
|
|
590
|
+
},
|
|
591
|
+
]
|
|
592
|
+
|
|
593
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
594
|
+
|
|
595
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
596
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
597
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
598
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
599
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
600
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
601
|
+
|
|
602
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
603
|
+
|
|
604
|
+
- '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.
|
|
605
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
606
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
607
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
608
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
609
|
+
request resource.
|
|
610
|
+
|
|
611
|
+
CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:
|
|
612
|
+
|
|
613
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
614
|
+
|
|
615
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
616
|
+
"""
|
|
617
|
+
elif False:
|
|
618
|
+
JSONPatchPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
619
|
+
|
|
197
620
|
@pulumi.input_type
|
|
198
|
-
class
|
|
621
|
+
class JSONPatchPatchArgs:
|
|
199
622
|
def __init__(__self__, *,
|
|
200
|
-
expression: Optional[pulumi.Input[str]] = None
|
|
201
|
-
name: Optional[pulumi.Input[str]] = None):
|
|
623
|
+
expression: Optional[pulumi.Input[str]] = None):
|
|
202
624
|
"""
|
|
203
|
-
|
|
625
|
+
JSONPatch defines a JSON Patch.
|
|
626
|
+
:param pulumi.Input[str] expression: expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
204
627
|
|
|
205
|
-
|
|
628
|
+
expression must return an array of JSONPatch values.
|
|
629
|
+
|
|
630
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
631
|
+
|
|
632
|
+
[
|
|
633
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
634
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
635
|
+
]
|
|
636
|
+
|
|
637
|
+
To define an object for the patch value, use Object types. For example:
|
|
638
|
+
|
|
639
|
+
[
|
|
640
|
+
JSONPatch{
|
|
641
|
+
op: "add",
|
|
642
|
+
path: "/spec/selector",
|
|
643
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
|
+
|
|
647
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
648
|
+
|
|
649
|
+
[
|
|
650
|
+
JSONPatch{
|
|
651
|
+
op: "add",
|
|
652
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
653
|
+
value: "test"
|
|
654
|
+
},
|
|
655
|
+
]
|
|
656
|
+
|
|
657
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
658
|
+
|
|
659
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
660
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
661
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
662
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
663
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
664
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
665
|
+
|
|
666
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
667
|
+
|
|
668
|
+
- '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.
|
|
669
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
670
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
206
671
|
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
207
|
-
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
672
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
208
673
|
request resource.
|
|
209
|
-
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
210
674
|
|
|
211
|
-
|
|
212
|
-
:param pulumi.Input[str] name: 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')
|
|
675
|
+
CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:
|
|
213
676
|
|
|
214
|
-
|
|
677
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
678
|
+
|
|
679
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
215
680
|
"""
|
|
216
681
|
if expression is not None:
|
|
217
682
|
pulumi.set(__self__, "expression", expression)
|
|
218
|
-
if name is not None:
|
|
219
|
-
pulumi.set(__self__, "name", name)
|
|
220
683
|
|
|
221
684
|
@property
|
|
222
685
|
@pulumi.getter
|
|
223
686
|
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
224
687
|
"""
|
|
225
|
-
|
|
688
|
+
expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
226
689
|
|
|
227
|
-
|
|
228
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
229
|
-
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
230
|
-
request resource.
|
|
231
|
-
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
690
|
+
expression must return an array of JSONPatch values.
|
|
232
691
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
692
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
693
|
+
|
|
694
|
+
[
|
|
695
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
696
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
697
|
+
]
|
|
698
|
+
|
|
699
|
+
To define an object for the patch value, use Object types. For example:
|
|
700
|
+
|
|
701
|
+
[
|
|
702
|
+
JSONPatch{
|
|
703
|
+
op: "add",
|
|
704
|
+
path: "/spec/selector",
|
|
705
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
706
|
+
}
|
|
707
|
+
]
|
|
708
|
+
|
|
709
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
710
|
+
|
|
711
|
+
[
|
|
712
|
+
JSONPatch{
|
|
713
|
+
op: "add",
|
|
714
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
715
|
+
value: "test"
|
|
716
|
+
},
|
|
717
|
+
]
|
|
718
|
+
|
|
719
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
720
|
+
|
|
721
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
722
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
723
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
724
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
725
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
726
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
727
|
+
|
|
728
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
729
|
+
|
|
730
|
+
- '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.
|
|
731
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
732
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
733
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
734
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
735
|
+
request resource.
|
|
736
|
+
|
|
737
|
+
CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:
|
|
738
|
+
|
|
739
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
740
|
+
|
|
741
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
742
|
+
"""
|
|
743
|
+
return pulumi.get(self, "expression")
|
|
744
|
+
|
|
745
|
+
@expression.setter
|
|
746
|
+
def expression(self, value: Optional[pulumi.Input[str]]):
|
|
747
|
+
pulumi.set(self, "expression", value)
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
if not MYPY:
|
|
751
|
+
class JSONPatchArgsDict(TypedDict):
|
|
752
|
+
"""
|
|
753
|
+
JSONPatch defines a JSON Patch.
|
|
754
|
+
"""
|
|
755
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
756
|
+
"""
|
|
757
|
+
expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
758
|
+
|
|
759
|
+
expression must return an array of JSONPatch values.
|
|
760
|
+
|
|
761
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
762
|
+
|
|
763
|
+
[
|
|
764
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
765
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
766
|
+
]
|
|
767
|
+
|
|
768
|
+
To define an object for the patch value, use Object types. For example:
|
|
769
|
+
|
|
770
|
+
[
|
|
771
|
+
JSONPatch{
|
|
772
|
+
op: "add",
|
|
773
|
+
path: "/spec/selector",
|
|
774
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
775
|
+
}
|
|
776
|
+
]
|
|
777
|
+
|
|
778
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
779
|
+
|
|
780
|
+
[
|
|
781
|
+
JSONPatch{
|
|
782
|
+
op: "add",
|
|
783
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
784
|
+
value: "test"
|
|
785
|
+
},
|
|
786
|
+
]
|
|
787
|
+
|
|
788
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
789
|
+
|
|
790
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
791
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
792
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
793
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
794
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
795
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
796
|
+
|
|
797
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
798
|
+
|
|
799
|
+
- '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.
|
|
800
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
801
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
802
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
803
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
804
|
+
request resource.
|
|
805
|
+
|
|
806
|
+
CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:
|
|
807
|
+
|
|
808
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
809
|
+
|
|
810
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
811
|
+
"""
|
|
812
|
+
elif False:
|
|
813
|
+
JSONPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
814
|
+
|
|
815
|
+
@pulumi.input_type
|
|
816
|
+
class JSONPatchArgs:
|
|
817
|
+
def __init__(__self__, *,
|
|
818
|
+
expression: Optional[pulumi.Input[str]] = None):
|
|
819
|
+
"""
|
|
820
|
+
JSONPatch defines a JSON Patch.
|
|
821
|
+
:param pulumi.Input[str] expression: expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
822
|
+
|
|
823
|
+
expression must return an array of JSONPatch values.
|
|
824
|
+
|
|
825
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
826
|
+
|
|
827
|
+
[
|
|
828
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
829
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
830
|
+
]
|
|
831
|
+
|
|
832
|
+
To define an object for the patch value, use Object types. For example:
|
|
833
|
+
|
|
834
|
+
[
|
|
835
|
+
JSONPatch{
|
|
836
|
+
op: "add",
|
|
837
|
+
path: "/spec/selector",
|
|
838
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
839
|
+
}
|
|
840
|
+
]
|
|
841
|
+
|
|
842
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
843
|
+
|
|
844
|
+
[
|
|
845
|
+
JSONPatch{
|
|
846
|
+
op: "add",
|
|
847
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
848
|
+
value: "test"
|
|
849
|
+
},
|
|
850
|
+
]
|
|
851
|
+
|
|
852
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
853
|
+
|
|
854
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
855
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
856
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
857
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
858
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
859
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
860
|
+
|
|
861
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
862
|
+
|
|
863
|
+
- '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.
|
|
864
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
865
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
866
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
867
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
868
|
+
request resource.
|
|
869
|
+
|
|
870
|
+
CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:
|
|
871
|
+
|
|
872
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
873
|
+
|
|
874
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
875
|
+
"""
|
|
876
|
+
if expression is not None:
|
|
877
|
+
pulumi.set(__self__, "expression", expression)
|
|
878
|
+
|
|
879
|
+
@property
|
|
880
|
+
@pulumi.getter
|
|
881
|
+
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
882
|
+
"""
|
|
883
|
+
expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
884
|
+
|
|
885
|
+
expression must return an array of JSONPatch values.
|
|
886
|
+
|
|
887
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
888
|
+
|
|
889
|
+
[
|
|
890
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
891
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
892
|
+
]
|
|
893
|
+
|
|
894
|
+
To define an object for the patch value, use Object types. For example:
|
|
895
|
+
|
|
896
|
+
[
|
|
897
|
+
JSONPatch{
|
|
898
|
+
op: "add",
|
|
899
|
+
path: "/spec/selector",
|
|
900
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
901
|
+
}
|
|
902
|
+
]
|
|
903
|
+
|
|
904
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
905
|
+
|
|
906
|
+
[
|
|
907
|
+
JSONPatch{
|
|
908
|
+
op: "add",
|
|
909
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
910
|
+
value: "test"
|
|
911
|
+
},
|
|
912
|
+
]
|
|
913
|
+
|
|
914
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
915
|
+
|
|
916
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
917
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
918
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
919
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
920
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
921
|
+
- 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
|
|
922
|
+
|
|
923
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
924
|
+
|
|
925
|
+
- '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.
|
|
926
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
927
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
928
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
929
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
930
|
+
request resource.
|
|
931
|
+
|
|
932
|
+
CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:
|
|
933
|
+
|
|
934
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
935
|
+
|
|
936
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
937
|
+
"""
|
|
938
|
+
return pulumi.get(self, "expression")
|
|
939
|
+
|
|
940
|
+
@expression.setter
|
|
941
|
+
def expression(self, value: Optional[pulumi.Input[str]]):
|
|
942
|
+
pulumi.set(self, "expression", value)
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
if not MYPY:
|
|
946
|
+
class MatchConditionPatchArgsDict(TypedDict):
|
|
947
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
948
|
+
"""
|
|
949
|
+
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:
|
|
950
|
+
|
|
951
|
+
'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.
|
|
952
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
953
|
+
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
954
|
+
request resource.
|
|
955
|
+
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
956
|
+
|
|
957
|
+
Required.
|
|
958
|
+
"""
|
|
959
|
+
name: NotRequired[pulumi.Input[str]]
|
|
960
|
+
"""
|
|
961
|
+
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')
|
|
962
|
+
|
|
963
|
+
Required.
|
|
964
|
+
"""
|
|
965
|
+
elif False:
|
|
966
|
+
MatchConditionPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
967
|
+
|
|
968
|
+
@pulumi.input_type
|
|
969
|
+
class MatchConditionPatchArgs:
|
|
970
|
+
def __init__(__self__, *,
|
|
971
|
+
expression: Optional[pulumi.Input[str]] = None,
|
|
972
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
973
|
+
"""
|
|
974
|
+
:param pulumi.Input[str] expression: 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:
|
|
975
|
+
|
|
976
|
+
'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.
|
|
977
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
978
|
+
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
979
|
+
request resource.
|
|
980
|
+
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
981
|
+
|
|
982
|
+
Required.
|
|
983
|
+
:param pulumi.Input[str] name: 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')
|
|
984
|
+
|
|
985
|
+
Required.
|
|
986
|
+
"""
|
|
987
|
+
if expression is not None:
|
|
988
|
+
pulumi.set(__self__, "expression", expression)
|
|
989
|
+
if name is not None:
|
|
990
|
+
pulumi.set(__self__, "name", name)
|
|
991
|
+
|
|
992
|
+
@property
|
|
993
|
+
@pulumi.getter
|
|
994
|
+
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
995
|
+
"""
|
|
996
|
+
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:
|
|
997
|
+
|
|
998
|
+
'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.
|
|
999
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
1000
|
+
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
1001
|
+
request resource.
|
|
1002
|
+
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
1003
|
+
|
|
1004
|
+
Required.
|
|
1005
|
+
"""
|
|
1006
|
+
return pulumi.get(self, "expression")
|
|
236
1007
|
|
|
237
1008
|
@expression.setter
|
|
238
1009
|
def expression(self, value: Optional[pulumi.Input[str]]):
|
|
@@ -253,6 +1024,29 @@ class MatchConditionPatchArgs:
|
|
|
253
1024
|
pulumi.set(self, "name", value)
|
|
254
1025
|
|
|
255
1026
|
|
|
1027
|
+
if not MYPY:
|
|
1028
|
+
class MatchConditionArgsDict(TypedDict):
|
|
1029
|
+
expression: pulumi.Input[str]
|
|
1030
|
+
"""
|
|
1031
|
+
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:
|
|
1032
|
+
|
|
1033
|
+
'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.
|
|
1034
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
1035
|
+
'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
1036
|
+
request resource.
|
|
1037
|
+
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
1038
|
+
|
|
1039
|
+
Required.
|
|
1040
|
+
"""
|
|
1041
|
+
name: pulumi.Input[str]
|
|
1042
|
+
"""
|
|
1043
|
+
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')
|
|
1044
|
+
|
|
1045
|
+
Required.
|
|
1046
|
+
"""
|
|
1047
|
+
elif False:
|
|
1048
|
+
MatchConditionArgsDict: TypeAlias = Mapping[str, Any]
|
|
1049
|
+
|
|
256
1050
|
@pulumi.input_type
|
|
257
1051
|
class MatchConditionArgs:
|
|
258
1052
|
def __init__(__self__, *,
|
|
@@ -310,6 +1104,70 @@ class MatchConditionArgs:
|
|
|
310
1104
|
pulumi.set(self, "name", value)
|
|
311
1105
|
|
|
312
1106
|
|
|
1107
|
+
if not MYPY:
|
|
1108
|
+
class MatchResourcesPatchArgsDict(TypedDict):
|
|
1109
|
+
"""
|
|
1110
|
+
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)
|
|
1111
|
+
"""
|
|
1112
|
+
exclude_resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgsDict']]]]
|
|
1113
|
+
"""
|
|
1114
|
+
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)
|
|
1115
|
+
"""
|
|
1116
|
+
match_policy: NotRequired[pulumi.Input[str]]
|
|
1117
|
+
"""
|
|
1118
|
+
matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
1119
|
+
|
|
1120
|
+
- 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.
|
|
1121
|
+
|
|
1122
|
+
- 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.
|
|
1123
|
+
|
|
1124
|
+
Defaults to "Equivalent"
|
|
1125
|
+
"""
|
|
1126
|
+
namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
|
|
1127
|
+
"""
|
|
1128
|
+
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.
|
|
1129
|
+
|
|
1130
|
+
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": {
|
|
1131
|
+
"matchExpressions": [
|
|
1132
|
+
{
|
|
1133
|
+
"key": "runlevel",
|
|
1134
|
+
"operator": "NotIn",
|
|
1135
|
+
"values": [
|
|
1136
|
+
"0",
|
|
1137
|
+
"1"
|
|
1138
|
+
]
|
|
1139
|
+
}
|
|
1140
|
+
]
|
|
1141
|
+
}
|
|
1142
|
+
|
|
1143
|
+
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": {
|
|
1144
|
+
"matchExpressions": [
|
|
1145
|
+
{
|
|
1146
|
+
"key": "environment",
|
|
1147
|
+
"operator": "In",
|
|
1148
|
+
"values": [
|
|
1149
|
+
"prod",
|
|
1150
|
+
"staging"
|
|
1151
|
+
]
|
|
1152
|
+
}
|
|
1153
|
+
]
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
1157
|
+
|
|
1158
|
+
Default to the empty LabelSelector, which matches everything.
|
|
1159
|
+
"""
|
|
1160
|
+
object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
|
|
1161
|
+
"""
|
|
1162
|
+
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.
|
|
1163
|
+
"""
|
|
1164
|
+
resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsPatchArgsDict']]]]
|
|
1165
|
+
"""
|
|
1166
|
+
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1167
|
+
"""
|
|
1168
|
+
elif False:
|
|
1169
|
+
MatchResourcesPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1170
|
+
|
|
313
1171
|
@pulumi.input_type
|
|
314
1172
|
class MatchResourcesPatchArgs:
|
|
315
1173
|
def __init__(__self__, *,
|
|
@@ -470,26 +1328,90 @@ class MatchResourcesPatchArgs:
|
|
|
470
1328
|
pulumi.set(self, "resource_rules", value)
|
|
471
1329
|
|
|
472
1330
|
|
|
473
|
-
|
|
474
|
-
class
|
|
475
|
-
def __init__(__self__, *,
|
|
476
|
-
exclude_resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]] = None,
|
|
477
|
-
match_policy: Optional[pulumi.Input[str]] = None,
|
|
478
|
-
namespace_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None,
|
|
479
|
-
object_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None,
|
|
480
|
-
resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]] = None):
|
|
1331
|
+
if not MYPY:
|
|
1332
|
+
class MatchResourcesArgsDict(TypedDict):
|
|
481
1333
|
"""
|
|
482
1334
|
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)
|
|
483
|
-
|
|
484
|
-
:
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
1335
|
+
"""
|
|
1336
|
+
exclude_resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgsDict']]]]
|
|
1337
|
+
"""
|
|
1338
|
+
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)
|
|
1339
|
+
"""
|
|
1340
|
+
match_policy: NotRequired[pulumi.Input[str]]
|
|
1341
|
+
"""
|
|
1342
|
+
matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
1343
|
+
|
|
1344
|
+
- 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.
|
|
1345
|
+
|
|
1346
|
+
- 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.
|
|
1347
|
+
|
|
1348
|
+
Defaults to "Equivalent"
|
|
1349
|
+
"""
|
|
1350
|
+
namespace_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
|
|
1351
|
+
"""
|
|
1352
|
+
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.
|
|
1353
|
+
|
|
1354
|
+
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": {
|
|
1355
|
+
"matchExpressions": [
|
|
1356
|
+
{
|
|
1357
|
+
"key": "runlevel",
|
|
1358
|
+
"operator": "NotIn",
|
|
1359
|
+
"values": [
|
|
1360
|
+
"0",
|
|
1361
|
+
"1"
|
|
1362
|
+
]
|
|
1363
|
+
}
|
|
1364
|
+
]
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
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": {
|
|
1368
|
+
"matchExpressions": [
|
|
1369
|
+
{
|
|
1370
|
+
"key": "environment",
|
|
1371
|
+
"operator": "In",
|
|
1372
|
+
"values": [
|
|
1373
|
+
"prod",
|
|
1374
|
+
"staging"
|
|
1375
|
+
]
|
|
1376
|
+
}
|
|
1377
|
+
]
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
1381
|
+
|
|
1382
|
+
Default to the empty LabelSelector, which matches everything.
|
|
1383
|
+
"""
|
|
1384
|
+
object_selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
|
|
1385
|
+
"""
|
|
1386
|
+
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.
|
|
1387
|
+
"""
|
|
1388
|
+
resource_rules: NotRequired[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgsDict']]]]
|
|
1389
|
+
"""
|
|
1390
|
+
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1391
|
+
"""
|
|
1392
|
+
elif False:
|
|
1393
|
+
MatchResourcesArgsDict: TypeAlias = Mapping[str, Any]
|
|
1394
|
+
|
|
1395
|
+
@pulumi.input_type
|
|
1396
|
+
class MatchResourcesArgs:
|
|
1397
|
+
def __init__(__self__, *,
|
|
1398
|
+
exclude_resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]] = None,
|
|
1399
|
+
match_policy: Optional[pulumi.Input[str]] = None,
|
|
1400
|
+
namespace_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None,
|
|
1401
|
+
object_selector: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']] = None,
|
|
1402
|
+
resource_rules: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]] = None):
|
|
1403
|
+
"""
|
|
1404
|
+
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)
|
|
1405
|
+
:param pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]] exclude_resource_rules: 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)
|
|
1406
|
+
:param pulumi.Input[str] match_policy: matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
1407
|
+
|
|
1408
|
+
- 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.
|
|
1409
|
+
|
|
1410
|
+
- 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.
|
|
1411
|
+
|
|
1412
|
+
Defaults to "Equivalent"
|
|
1413
|
+
:param pulumi.Input['_meta.v1.LabelSelectorArgs'] namespace_selector: 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.
|
|
1414
|
+
|
|
493
1415
|
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": {
|
|
494
1416
|
"matchExpressions": [
|
|
495
1417
|
{
|
|
@@ -595,40 +1517,1019 @@ class MatchResourcesArgs:
|
|
|
595
1517
|
]
|
|
596
1518
|
}
|
|
597
1519
|
|
|
598
|
-
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
1520
|
+
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
1521
|
+
|
|
1522
|
+
Default to the empty LabelSelector, which matches everything.
|
|
1523
|
+
"""
|
|
1524
|
+
return pulumi.get(self, "namespace_selector")
|
|
1525
|
+
|
|
1526
|
+
@namespace_selector.setter
|
|
1527
|
+
def namespace_selector(self, value: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]):
|
|
1528
|
+
pulumi.set(self, "namespace_selector", value)
|
|
1529
|
+
|
|
1530
|
+
@property
|
|
1531
|
+
@pulumi.getter(name="objectSelector")
|
|
1532
|
+
def object_selector(self) -> Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]:
|
|
1533
|
+
"""
|
|
1534
|
+
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.
|
|
1535
|
+
"""
|
|
1536
|
+
return pulumi.get(self, "object_selector")
|
|
1537
|
+
|
|
1538
|
+
@object_selector.setter
|
|
1539
|
+
def object_selector(self, value: Optional[pulumi.Input['_meta.v1.LabelSelectorArgs']]):
|
|
1540
|
+
pulumi.set(self, "object_selector", value)
|
|
1541
|
+
|
|
1542
|
+
@property
|
|
1543
|
+
@pulumi.getter(name="resourceRules")
|
|
1544
|
+
def resource_rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]]:
|
|
1545
|
+
"""
|
|
1546
|
+
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1547
|
+
"""
|
|
1548
|
+
return pulumi.get(self, "resource_rules")
|
|
1549
|
+
|
|
1550
|
+
@resource_rules.setter
|
|
1551
|
+
def resource_rules(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['NamedRuleWithOperationsArgs']]]]):
|
|
1552
|
+
pulumi.set(self, "resource_rules", value)
|
|
1553
|
+
|
|
1554
|
+
|
|
1555
|
+
if not MYPY:
|
|
1556
|
+
class MutatingAdmissionPolicyBindingSpecPatchArgsDict(TypedDict):
|
|
1557
|
+
"""
|
|
1558
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1559
|
+
"""
|
|
1560
|
+
match_resources: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
|
|
1561
|
+
"""
|
|
1562
|
+
matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.
|
|
1563
|
+
"""
|
|
1564
|
+
param_ref: NotRequired[pulumi.Input['ParamRefPatchArgsDict']]
|
|
1565
|
+
"""
|
|
1566
|
+
paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. 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 MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
|
|
1567
|
+
"""
|
|
1568
|
+
policy_name: NotRequired[pulumi.Input[str]]
|
|
1569
|
+
"""
|
|
1570
|
+
policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
|
|
1571
|
+
"""
|
|
1572
|
+
elif False:
|
|
1573
|
+
MutatingAdmissionPolicyBindingSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1574
|
+
|
|
1575
|
+
@pulumi.input_type
|
|
1576
|
+
class MutatingAdmissionPolicyBindingSpecPatchArgs:
|
|
1577
|
+
def __init__(__self__, *,
|
|
1578
|
+
match_resources: Optional[pulumi.Input['MatchResourcesPatchArgs']] = None,
|
|
1579
|
+
param_ref: Optional[pulumi.Input['ParamRefPatchArgs']] = None,
|
|
1580
|
+
policy_name: Optional[pulumi.Input[str]] = None):
|
|
1581
|
+
"""
|
|
1582
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1583
|
+
:param pulumi.Input['MatchResourcesPatchArgs'] match_resources: matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.
|
|
1584
|
+
:param pulumi.Input['ParamRefPatchArgs'] param_ref: paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. 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 MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
|
|
1585
|
+
:param pulumi.Input[str] policy_name: policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
|
|
1586
|
+
"""
|
|
1587
|
+
if match_resources is not None:
|
|
1588
|
+
pulumi.set(__self__, "match_resources", match_resources)
|
|
1589
|
+
if param_ref is not None:
|
|
1590
|
+
pulumi.set(__self__, "param_ref", param_ref)
|
|
1591
|
+
if policy_name is not None:
|
|
1592
|
+
pulumi.set(__self__, "policy_name", policy_name)
|
|
1593
|
+
|
|
1594
|
+
@property
|
|
1595
|
+
@pulumi.getter(name="matchResources")
|
|
1596
|
+
def match_resources(self) -> Optional[pulumi.Input['MatchResourcesPatchArgs']]:
|
|
1597
|
+
"""
|
|
1598
|
+
matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.
|
|
1599
|
+
"""
|
|
1600
|
+
return pulumi.get(self, "match_resources")
|
|
1601
|
+
|
|
1602
|
+
@match_resources.setter
|
|
1603
|
+
def match_resources(self, value: Optional[pulumi.Input['MatchResourcesPatchArgs']]):
|
|
1604
|
+
pulumi.set(self, "match_resources", value)
|
|
1605
|
+
|
|
1606
|
+
@property
|
|
1607
|
+
@pulumi.getter(name="paramRef")
|
|
1608
|
+
def param_ref(self) -> Optional[pulumi.Input['ParamRefPatchArgs']]:
|
|
1609
|
+
"""
|
|
1610
|
+
paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. 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 MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
|
|
1611
|
+
"""
|
|
1612
|
+
return pulumi.get(self, "param_ref")
|
|
1613
|
+
|
|
1614
|
+
@param_ref.setter
|
|
1615
|
+
def param_ref(self, value: Optional[pulumi.Input['ParamRefPatchArgs']]):
|
|
1616
|
+
pulumi.set(self, "param_ref", value)
|
|
1617
|
+
|
|
1618
|
+
@property
|
|
1619
|
+
@pulumi.getter(name="policyName")
|
|
1620
|
+
def policy_name(self) -> Optional[pulumi.Input[str]]:
|
|
1621
|
+
"""
|
|
1622
|
+
policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
|
|
1623
|
+
"""
|
|
1624
|
+
return pulumi.get(self, "policy_name")
|
|
1625
|
+
|
|
1626
|
+
@policy_name.setter
|
|
1627
|
+
def policy_name(self, value: Optional[pulumi.Input[str]]):
|
|
1628
|
+
pulumi.set(self, "policy_name", value)
|
|
1629
|
+
|
|
1630
|
+
|
|
1631
|
+
if not MYPY:
|
|
1632
|
+
class MutatingAdmissionPolicyBindingSpecArgsDict(TypedDict):
|
|
1633
|
+
"""
|
|
1634
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1635
|
+
"""
|
|
1636
|
+
match_resources: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
|
|
1637
|
+
"""
|
|
1638
|
+
matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.
|
|
1639
|
+
"""
|
|
1640
|
+
param_ref: NotRequired[pulumi.Input['ParamRefArgsDict']]
|
|
1641
|
+
"""
|
|
1642
|
+
paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. 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 MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
|
|
1643
|
+
"""
|
|
1644
|
+
policy_name: NotRequired[pulumi.Input[str]]
|
|
1645
|
+
"""
|
|
1646
|
+
policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
|
|
1647
|
+
"""
|
|
1648
|
+
elif False:
|
|
1649
|
+
MutatingAdmissionPolicyBindingSpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
1650
|
+
|
|
1651
|
+
@pulumi.input_type
|
|
1652
|
+
class MutatingAdmissionPolicyBindingSpecArgs:
|
|
1653
|
+
def __init__(__self__, *,
|
|
1654
|
+
match_resources: Optional[pulumi.Input['MatchResourcesArgs']] = None,
|
|
1655
|
+
param_ref: Optional[pulumi.Input['ParamRefArgs']] = None,
|
|
1656
|
+
policy_name: Optional[pulumi.Input[str]] = None):
|
|
1657
|
+
"""
|
|
1658
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1659
|
+
:param pulumi.Input['MatchResourcesArgs'] match_resources: matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.
|
|
1660
|
+
:param pulumi.Input['ParamRefArgs'] param_ref: paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. 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 MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
|
|
1661
|
+
:param pulumi.Input[str] policy_name: policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
|
|
1662
|
+
"""
|
|
1663
|
+
if match_resources is not None:
|
|
1664
|
+
pulumi.set(__self__, "match_resources", match_resources)
|
|
1665
|
+
if param_ref is not None:
|
|
1666
|
+
pulumi.set(__self__, "param_ref", param_ref)
|
|
1667
|
+
if policy_name is not None:
|
|
1668
|
+
pulumi.set(__self__, "policy_name", policy_name)
|
|
1669
|
+
|
|
1670
|
+
@property
|
|
1671
|
+
@pulumi.getter(name="matchResources")
|
|
1672
|
+
def match_resources(self) -> Optional[pulumi.Input['MatchResourcesArgs']]:
|
|
1673
|
+
"""
|
|
1674
|
+
matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT.
|
|
1675
|
+
"""
|
|
1676
|
+
return pulumi.get(self, "match_resources")
|
|
1677
|
+
|
|
1678
|
+
@match_resources.setter
|
|
1679
|
+
def match_resources(self, value: Optional[pulumi.Input['MatchResourcesArgs']]):
|
|
1680
|
+
pulumi.set(self, "match_resources", value)
|
|
1681
|
+
|
|
1682
|
+
@property
|
|
1683
|
+
@pulumi.getter(name="paramRef")
|
|
1684
|
+
def param_ref(self) -> Optional[pulumi.Input['ParamRefArgs']]:
|
|
1685
|
+
"""
|
|
1686
|
+
paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. 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 MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
|
|
1687
|
+
"""
|
|
1688
|
+
return pulumi.get(self, "param_ref")
|
|
1689
|
+
|
|
1690
|
+
@param_ref.setter
|
|
1691
|
+
def param_ref(self, value: Optional[pulumi.Input['ParamRefArgs']]):
|
|
1692
|
+
pulumi.set(self, "param_ref", value)
|
|
1693
|
+
|
|
1694
|
+
@property
|
|
1695
|
+
@pulumi.getter(name="policyName")
|
|
1696
|
+
def policy_name(self) -> Optional[pulumi.Input[str]]:
|
|
1697
|
+
"""
|
|
1698
|
+
policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.
|
|
1699
|
+
"""
|
|
1700
|
+
return pulumi.get(self, "policy_name")
|
|
1701
|
+
|
|
1702
|
+
@policy_name.setter
|
|
1703
|
+
def policy_name(self, value: Optional[pulumi.Input[str]]):
|
|
1704
|
+
pulumi.set(self, "policy_name", value)
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
if not MYPY:
|
|
1708
|
+
class MutatingAdmissionPolicyBindingArgsDict(TypedDict):
|
|
1709
|
+
"""
|
|
1710
|
+
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.
|
|
1711
|
+
|
|
1712
|
+
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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).
|
|
1713
|
+
|
|
1714
|
+
Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
1715
|
+
"""
|
|
1716
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
1717
|
+
"""
|
|
1718
|
+
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
|
|
1719
|
+
"""
|
|
1720
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
1721
|
+
"""
|
|
1722
|
+
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
|
|
1723
|
+
"""
|
|
1724
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
1725
|
+
"""
|
|
1726
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1727
|
+
"""
|
|
1728
|
+
spec: NotRequired[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgsDict']]
|
|
1729
|
+
"""
|
|
1730
|
+
Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
1731
|
+
"""
|
|
1732
|
+
elif False:
|
|
1733
|
+
MutatingAdmissionPolicyBindingArgsDict: TypeAlias = Mapping[str, Any]
|
|
1734
|
+
|
|
1735
|
+
@pulumi.input_type
|
|
1736
|
+
class MutatingAdmissionPolicyBindingArgs:
|
|
1737
|
+
def __init__(__self__, *,
|
|
1738
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
1739
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
1740
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
|
|
1741
|
+
spec: Optional[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs']] = None):
|
|
1742
|
+
"""
|
|
1743
|
+
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.
|
|
1744
|
+
|
|
1745
|
+
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. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).
|
|
1746
|
+
|
|
1747
|
+
Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
1748
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
1749
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
1750
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1751
|
+
:param pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs'] spec: Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
1752
|
+
"""
|
|
1753
|
+
if api_version is not None:
|
|
1754
|
+
pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1alpha1')
|
|
1755
|
+
if kind is not None:
|
|
1756
|
+
pulumi.set(__self__, "kind", 'MutatingAdmissionPolicyBinding')
|
|
1757
|
+
if metadata is not None:
|
|
1758
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
1759
|
+
if spec is not None:
|
|
1760
|
+
pulumi.set(__self__, "spec", spec)
|
|
1761
|
+
|
|
1762
|
+
@property
|
|
1763
|
+
@pulumi.getter(name="apiVersion")
|
|
1764
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
1765
|
+
"""
|
|
1766
|
+
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
|
|
1767
|
+
"""
|
|
1768
|
+
return pulumi.get(self, "api_version")
|
|
1769
|
+
|
|
1770
|
+
@api_version.setter
|
|
1771
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
1772
|
+
pulumi.set(self, "api_version", value)
|
|
1773
|
+
|
|
1774
|
+
@property
|
|
1775
|
+
@pulumi.getter
|
|
1776
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
1777
|
+
"""
|
|
1778
|
+
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
|
|
1779
|
+
"""
|
|
1780
|
+
return pulumi.get(self, "kind")
|
|
1781
|
+
|
|
1782
|
+
@kind.setter
|
|
1783
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
1784
|
+
pulumi.set(self, "kind", value)
|
|
1785
|
+
|
|
1786
|
+
@property
|
|
1787
|
+
@pulumi.getter
|
|
1788
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
1789
|
+
"""
|
|
1790
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1791
|
+
"""
|
|
1792
|
+
return pulumi.get(self, "metadata")
|
|
1793
|
+
|
|
1794
|
+
@metadata.setter
|
|
1795
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
1796
|
+
pulumi.set(self, "metadata", value)
|
|
1797
|
+
|
|
1798
|
+
@property
|
|
1799
|
+
@pulumi.getter
|
|
1800
|
+
def spec(self) -> Optional[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs']]:
|
|
1801
|
+
"""
|
|
1802
|
+
Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
1803
|
+
"""
|
|
1804
|
+
return pulumi.get(self, "spec")
|
|
1805
|
+
|
|
1806
|
+
@spec.setter
|
|
1807
|
+
def spec(self, value: Optional[pulumi.Input['MutatingAdmissionPolicyBindingSpecArgs']]):
|
|
1808
|
+
pulumi.set(self, "spec", value)
|
|
1809
|
+
|
|
1810
|
+
|
|
1811
|
+
if not MYPY:
|
|
1812
|
+
class MutatingAdmissionPolicySpecPatchArgsDict(TypedDict):
|
|
1813
|
+
"""
|
|
1814
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
1815
|
+
"""
|
|
1816
|
+
failure_policy: NotRequired[pulumi.Input[str]]
|
|
1817
|
+
"""
|
|
1818
|
+
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.
|
|
1819
|
+
|
|
1820
|
+
A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.
|
|
1821
|
+
|
|
1822
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1823
|
+
|
|
1824
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1825
|
+
"""
|
|
1826
|
+
match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgsDict']]]]
|
|
1827
|
+
"""
|
|
1828
|
+
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 matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
|
|
1829
|
+
|
|
1830
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
1831
|
+
|
|
1832
|
+
The exact matching logic is (in order):
|
|
1833
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1834
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1835
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1836
|
+
- If failurePolicy=Fail, reject the request
|
|
1837
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1838
|
+
"""
|
|
1839
|
+
match_constraints: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
|
|
1840
|
+
"""
|
|
1841
|
+
matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy 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 MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.
|
|
1842
|
+
"""
|
|
1843
|
+
mutations: NotRequired[pulumi.Input[Sequence[pulumi.Input['MutationPatchArgsDict']]]]
|
|
1844
|
+
"""
|
|
1845
|
+
mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.
|
|
1846
|
+
"""
|
|
1847
|
+
param_kind: NotRequired[pulumi.Input['ParamKindPatchArgsDict']]
|
|
1848
|
+
"""
|
|
1849
|
+
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 MutatingAdmissionPolicyBinding, the params variable will be null.
|
|
1850
|
+
"""
|
|
1851
|
+
reinvocation_policy: NotRequired[pulumi.Input[str]]
|
|
1852
|
+
"""
|
|
1853
|
+
reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
1854
|
+
|
|
1855
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
1856
|
+
|
|
1857
|
+
IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.
|
|
1858
|
+
"""
|
|
1859
|
+
variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgsDict']]]]
|
|
1860
|
+
"""
|
|
1861
|
+
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.
|
|
1862
|
+
|
|
1863
|
+
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.
|
|
1864
|
+
"""
|
|
1865
|
+
elif False:
|
|
1866
|
+
MutatingAdmissionPolicySpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1867
|
+
|
|
1868
|
+
@pulumi.input_type
|
|
1869
|
+
class MutatingAdmissionPolicySpecPatchArgs:
|
|
1870
|
+
def __init__(__self__, *,
|
|
1871
|
+
failure_policy: Optional[pulumi.Input[str]] = None,
|
|
1872
|
+
match_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgs']]]] = None,
|
|
1873
|
+
match_constraints: Optional[pulumi.Input['MatchResourcesPatchArgs']] = None,
|
|
1874
|
+
mutations: Optional[pulumi.Input[Sequence[pulumi.Input['MutationPatchArgs']]]] = None,
|
|
1875
|
+
param_kind: Optional[pulumi.Input['ParamKindPatchArgs']] = None,
|
|
1876
|
+
reinvocation_policy: Optional[pulumi.Input[str]] = None,
|
|
1877
|
+
variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]]] = None):
|
|
1878
|
+
"""
|
|
1879
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
1880
|
+
:param pulumi.Input[str] failure_policy: 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.
|
|
1881
|
+
|
|
1882
|
+
A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.
|
|
1883
|
+
|
|
1884
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1885
|
+
|
|
1886
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1887
|
+
:param pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgs']]] match_conditions: 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 matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
|
|
1888
|
+
|
|
1889
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
1890
|
+
|
|
1891
|
+
The exact matching logic is (in order):
|
|
1892
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1893
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1894
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1895
|
+
- If failurePolicy=Fail, reject the request
|
|
1896
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1897
|
+
:param pulumi.Input['MatchResourcesPatchArgs'] match_constraints: matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy 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 MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.
|
|
1898
|
+
:param pulumi.Input[Sequence[pulumi.Input['MutationPatchArgs']]] mutations: mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.
|
|
1899
|
+
:param pulumi.Input['ParamKindPatchArgs'] param_kind: 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 MutatingAdmissionPolicyBinding, the params variable will be null.
|
|
1900
|
+
:param pulumi.Input[str] reinvocation_policy: reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
1901
|
+
|
|
1902
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
1903
|
+
|
|
1904
|
+
IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.
|
|
1905
|
+
:param pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]] variables: 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.
|
|
1906
|
+
|
|
1907
|
+
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.
|
|
1908
|
+
"""
|
|
1909
|
+
if failure_policy is not None:
|
|
1910
|
+
pulumi.set(__self__, "failure_policy", failure_policy)
|
|
1911
|
+
if match_conditions is not None:
|
|
1912
|
+
pulumi.set(__self__, "match_conditions", match_conditions)
|
|
1913
|
+
if match_constraints is not None:
|
|
1914
|
+
pulumi.set(__self__, "match_constraints", match_constraints)
|
|
1915
|
+
if mutations is not None:
|
|
1916
|
+
pulumi.set(__self__, "mutations", mutations)
|
|
1917
|
+
if param_kind is not None:
|
|
1918
|
+
pulumi.set(__self__, "param_kind", param_kind)
|
|
1919
|
+
if reinvocation_policy is not None:
|
|
1920
|
+
pulumi.set(__self__, "reinvocation_policy", reinvocation_policy)
|
|
1921
|
+
if variables is not None:
|
|
1922
|
+
pulumi.set(__self__, "variables", variables)
|
|
1923
|
+
|
|
1924
|
+
@property
|
|
1925
|
+
@pulumi.getter(name="failurePolicy")
|
|
1926
|
+
def failure_policy(self) -> Optional[pulumi.Input[str]]:
|
|
1927
|
+
"""
|
|
1928
|
+
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.
|
|
1929
|
+
|
|
1930
|
+
A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.
|
|
1931
|
+
|
|
1932
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1933
|
+
|
|
1934
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1935
|
+
"""
|
|
1936
|
+
return pulumi.get(self, "failure_policy")
|
|
1937
|
+
|
|
1938
|
+
@failure_policy.setter
|
|
1939
|
+
def failure_policy(self, value: Optional[pulumi.Input[str]]):
|
|
1940
|
+
pulumi.set(self, "failure_policy", value)
|
|
1941
|
+
|
|
1942
|
+
@property
|
|
1943
|
+
@pulumi.getter(name="matchConditions")
|
|
1944
|
+
def match_conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgs']]]]:
|
|
1945
|
+
"""
|
|
1946
|
+
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 matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
|
|
1947
|
+
|
|
1948
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
1949
|
+
|
|
1950
|
+
The exact matching logic is (in order):
|
|
1951
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1952
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1953
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1954
|
+
- If failurePolicy=Fail, reject the request
|
|
1955
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1956
|
+
"""
|
|
1957
|
+
return pulumi.get(self, "match_conditions")
|
|
1958
|
+
|
|
1959
|
+
@match_conditions.setter
|
|
1960
|
+
def match_conditions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgs']]]]):
|
|
1961
|
+
pulumi.set(self, "match_conditions", value)
|
|
1962
|
+
|
|
1963
|
+
@property
|
|
1964
|
+
@pulumi.getter(name="matchConstraints")
|
|
1965
|
+
def match_constraints(self) -> Optional[pulumi.Input['MatchResourcesPatchArgs']]:
|
|
1966
|
+
"""
|
|
1967
|
+
matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy 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 MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.
|
|
1968
|
+
"""
|
|
1969
|
+
return pulumi.get(self, "match_constraints")
|
|
1970
|
+
|
|
1971
|
+
@match_constraints.setter
|
|
1972
|
+
def match_constraints(self, value: Optional[pulumi.Input['MatchResourcesPatchArgs']]):
|
|
1973
|
+
pulumi.set(self, "match_constraints", value)
|
|
1974
|
+
|
|
1975
|
+
@property
|
|
1976
|
+
@pulumi.getter
|
|
1977
|
+
def mutations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MutationPatchArgs']]]]:
|
|
1978
|
+
"""
|
|
1979
|
+
mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.
|
|
1980
|
+
"""
|
|
1981
|
+
return pulumi.get(self, "mutations")
|
|
1982
|
+
|
|
1983
|
+
@mutations.setter
|
|
1984
|
+
def mutations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MutationPatchArgs']]]]):
|
|
1985
|
+
pulumi.set(self, "mutations", value)
|
|
1986
|
+
|
|
1987
|
+
@property
|
|
1988
|
+
@pulumi.getter(name="paramKind")
|
|
1989
|
+
def param_kind(self) -> Optional[pulumi.Input['ParamKindPatchArgs']]:
|
|
1990
|
+
"""
|
|
1991
|
+
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 MutatingAdmissionPolicyBinding, the params variable will be null.
|
|
1992
|
+
"""
|
|
1993
|
+
return pulumi.get(self, "param_kind")
|
|
1994
|
+
|
|
1995
|
+
@param_kind.setter
|
|
1996
|
+
def param_kind(self, value: Optional[pulumi.Input['ParamKindPatchArgs']]):
|
|
1997
|
+
pulumi.set(self, "param_kind", value)
|
|
1998
|
+
|
|
1999
|
+
@property
|
|
2000
|
+
@pulumi.getter(name="reinvocationPolicy")
|
|
2001
|
+
def reinvocation_policy(self) -> Optional[pulumi.Input[str]]:
|
|
2002
|
+
"""
|
|
2003
|
+
reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
2004
|
+
|
|
2005
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
2006
|
+
|
|
2007
|
+
IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.
|
|
2008
|
+
"""
|
|
2009
|
+
return pulumi.get(self, "reinvocation_policy")
|
|
2010
|
+
|
|
2011
|
+
@reinvocation_policy.setter
|
|
2012
|
+
def reinvocation_policy(self, value: Optional[pulumi.Input[str]]):
|
|
2013
|
+
pulumi.set(self, "reinvocation_policy", value)
|
|
2014
|
+
|
|
2015
|
+
@property
|
|
2016
|
+
@pulumi.getter
|
|
2017
|
+
def variables(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]]]:
|
|
2018
|
+
"""
|
|
2019
|
+
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.
|
|
2020
|
+
|
|
2021
|
+
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.
|
|
2022
|
+
"""
|
|
2023
|
+
return pulumi.get(self, "variables")
|
|
2024
|
+
|
|
2025
|
+
@variables.setter
|
|
2026
|
+
def variables(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]]]):
|
|
2027
|
+
pulumi.set(self, "variables", value)
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
if not MYPY:
|
|
2031
|
+
class MutatingAdmissionPolicySpecArgsDict(TypedDict):
|
|
2032
|
+
"""
|
|
2033
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
2034
|
+
"""
|
|
2035
|
+
failure_policy: NotRequired[pulumi.Input[str]]
|
|
2036
|
+
"""
|
|
2037
|
+
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.
|
|
2038
|
+
|
|
2039
|
+
A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.
|
|
2040
|
+
|
|
2041
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
2042
|
+
|
|
2043
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
2044
|
+
"""
|
|
2045
|
+
match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgsDict']]]]
|
|
2046
|
+
"""
|
|
2047
|
+
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 matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
|
|
2048
|
+
|
|
2049
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
2050
|
+
|
|
2051
|
+
The exact matching logic is (in order):
|
|
2052
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
2053
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
2054
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
2055
|
+
- If failurePolicy=Fail, reject the request
|
|
2056
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
2057
|
+
"""
|
|
2058
|
+
match_constraints: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
|
|
2059
|
+
"""
|
|
2060
|
+
matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy 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 MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.
|
|
2061
|
+
"""
|
|
2062
|
+
mutations: NotRequired[pulumi.Input[Sequence[pulumi.Input['MutationArgsDict']]]]
|
|
2063
|
+
"""
|
|
2064
|
+
mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.
|
|
2065
|
+
"""
|
|
2066
|
+
param_kind: NotRequired[pulumi.Input['ParamKindArgsDict']]
|
|
2067
|
+
"""
|
|
2068
|
+
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 MutatingAdmissionPolicyBinding, the params variable will be null.
|
|
2069
|
+
"""
|
|
2070
|
+
reinvocation_policy: NotRequired[pulumi.Input[str]]
|
|
2071
|
+
"""
|
|
2072
|
+
reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
2073
|
+
|
|
2074
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
2075
|
+
|
|
2076
|
+
IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.
|
|
2077
|
+
"""
|
|
2078
|
+
variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariableArgsDict']]]]
|
|
2079
|
+
"""
|
|
2080
|
+
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.
|
|
2081
|
+
|
|
2082
|
+
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.
|
|
2083
|
+
"""
|
|
2084
|
+
elif False:
|
|
2085
|
+
MutatingAdmissionPolicySpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
2086
|
+
|
|
2087
|
+
@pulumi.input_type
|
|
2088
|
+
class MutatingAdmissionPolicySpecArgs:
|
|
2089
|
+
def __init__(__self__, *,
|
|
2090
|
+
failure_policy: Optional[pulumi.Input[str]] = None,
|
|
2091
|
+
match_conditions: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]]] = None,
|
|
2092
|
+
match_constraints: Optional[pulumi.Input['MatchResourcesArgs']] = None,
|
|
2093
|
+
mutations: Optional[pulumi.Input[Sequence[pulumi.Input['MutationArgs']]]] = None,
|
|
2094
|
+
param_kind: Optional[pulumi.Input['ParamKindArgs']] = None,
|
|
2095
|
+
reinvocation_policy: Optional[pulumi.Input[str]] = None,
|
|
2096
|
+
variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariableArgs']]]] = None):
|
|
2097
|
+
"""
|
|
2098
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
2099
|
+
:param pulumi.Input[str] failure_policy: 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.
|
|
2100
|
+
|
|
2101
|
+
A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.
|
|
2102
|
+
|
|
2103
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
2104
|
+
|
|
2105
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
2106
|
+
:param pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]] match_conditions: 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 matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
|
|
2107
|
+
|
|
2108
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
2109
|
+
|
|
2110
|
+
The exact matching logic is (in order):
|
|
2111
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
2112
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
2113
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
2114
|
+
- If failurePolicy=Fail, reject the request
|
|
2115
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
2116
|
+
:param pulumi.Input['MatchResourcesArgs'] match_constraints: matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy 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 MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.
|
|
2117
|
+
:param pulumi.Input[Sequence[pulumi.Input['MutationArgs']]] mutations: mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.
|
|
2118
|
+
:param pulumi.Input['ParamKindArgs'] param_kind: 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 MutatingAdmissionPolicyBinding, the params variable will be null.
|
|
2119
|
+
:param pulumi.Input[str] reinvocation_policy: reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
2120
|
+
|
|
2121
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
2122
|
+
|
|
2123
|
+
IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.
|
|
2124
|
+
:param pulumi.Input[Sequence[pulumi.Input['VariableArgs']]] variables: 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.
|
|
2125
|
+
|
|
2126
|
+
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.
|
|
2127
|
+
"""
|
|
2128
|
+
if failure_policy is not None:
|
|
2129
|
+
pulumi.set(__self__, "failure_policy", failure_policy)
|
|
2130
|
+
if match_conditions is not None:
|
|
2131
|
+
pulumi.set(__self__, "match_conditions", match_conditions)
|
|
2132
|
+
if match_constraints is not None:
|
|
2133
|
+
pulumi.set(__self__, "match_constraints", match_constraints)
|
|
2134
|
+
if mutations is not None:
|
|
2135
|
+
pulumi.set(__self__, "mutations", mutations)
|
|
2136
|
+
if param_kind is not None:
|
|
2137
|
+
pulumi.set(__self__, "param_kind", param_kind)
|
|
2138
|
+
if reinvocation_policy is not None:
|
|
2139
|
+
pulumi.set(__self__, "reinvocation_policy", reinvocation_policy)
|
|
2140
|
+
if variables is not None:
|
|
2141
|
+
pulumi.set(__self__, "variables", variables)
|
|
2142
|
+
|
|
2143
|
+
@property
|
|
2144
|
+
@pulumi.getter(name="failurePolicy")
|
|
2145
|
+
def failure_policy(self) -> Optional[pulumi.Input[str]]:
|
|
2146
|
+
"""
|
|
2147
|
+
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.
|
|
2148
|
+
|
|
2149
|
+
A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.
|
|
2150
|
+
|
|
2151
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
2152
|
+
|
|
2153
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
2154
|
+
"""
|
|
2155
|
+
return pulumi.get(self, "failure_policy")
|
|
2156
|
+
|
|
2157
|
+
@failure_policy.setter
|
|
2158
|
+
def failure_policy(self, value: Optional[pulumi.Input[str]]):
|
|
2159
|
+
pulumi.set(self, "failure_policy", value)
|
|
2160
|
+
|
|
2161
|
+
@property
|
|
2162
|
+
@pulumi.getter(name="matchConditions")
|
|
2163
|
+
def match_conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]]]:
|
|
2164
|
+
"""
|
|
2165
|
+
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 matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.
|
|
2166
|
+
|
|
2167
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
2168
|
+
|
|
2169
|
+
The exact matching logic is (in order):
|
|
2170
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
2171
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
2172
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
2173
|
+
- If failurePolicy=Fail, reject the request
|
|
2174
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
2175
|
+
"""
|
|
2176
|
+
return pulumi.get(self, "match_conditions")
|
|
2177
|
+
|
|
2178
|
+
@match_conditions.setter
|
|
2179
|
+
def match_conditions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]]]):
|
|
2180
|
+
pulumi.set(self, "match_conditions", value)
|
|
2181
|
+
|
|
2182
|
+
@property
|
|
2183
|
+
@pulumi.getter(name="matchConstraints")
|
|
2184
|
+
def match_constraints(self) -> Optional[pulumi.Input['MatchResourcesArgs']]:
|
|
2185
|
+
"""
|
|
2186
|
+
matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy 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 MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required.
|
|
2187
|
+
"""
|
|
2188
|
+
return pulumi.get(self, "match_constraints")
|
|
2189
|
+
|
|
2190
|
+
@match_constraints.setter
|
|
2191
|
+
def match_constraints(self, value: Optional[pulumi.Input['MatchResourcesArgs']]):
|
|
2192
|
+
pulumi.set(self, "match_constraints", value)
|
|
2193
|
+
|
|
2194
|
+
@property
|
|
2195
|
+
@pulumi.getter
|
|
2196
|
+
def mutations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['MutationArgs']]]]:
|
|
2197
|
+
"""
|
|
2198
|
+
mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.
|
|
2199
|
+
"""
|
|
2200
|
+
return pulumi.get(self, "mutations")
|
|
2201
|
+
|
|
2202
|
+
@mutations.setter
|
|
2203
|
+
def mutations(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['MutationArgs']]]]):
|
|
2204
|
+
pulumi.set(self, "mutations", value)
|
|
2205
|
+
|
|
2206
|
+
@property
|
|
2207
|
+
@pulumi.getter(name="paramKind")
|
|
2208
|
+
def param_kind(self) -> Optional[pulumi.Input['ParamKindArgs']]:
|
|
2209
|
+
"""
|
|
2210
|
+
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 MutatingAdmissionPolicyBinding, the params variable will be null.
|
|
2211
|
+
"""
|
|
2212
|
+
return pulumi.get(self, "param_kind")
|
|
2213
|
+
|
|
2214
|
+
@param_kind.setter
|
|
2215
|
+
def param_kind(self, value: Optional[pulumi.Input['ParamKindArgs']]):
|
|
2216
|
+
pulumi.set(self, "param_kind", value)
|
|
2217
|
+
|
|
2218
|
+
@property
|
|
2219
|
+
@pulumi.getter(name="reinvocationPolicy")
|
|
2220
|
+
def reinvocation_policy(self) -> Optional[pulumi.Input[str]]:
|
|
2221
|
+
"""
|
|
2222
|
+
reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
2223
|
+
|
|
2224
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
2225
|
+
|
|
2226
|
+
IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.
|
|
2227
|
+
"""
|
|
2228
|
+
return pulumi.get(self, "reinvocation_policy")
|
|
2229
|
+
|
|
2230
|
+
@reinvocation_policy.setter
|
|
2231
|
+
def reinvocation_policy(self, value: Optional[pulumi.Input[str]]):
|
|
2232
|
+
pulumi.set(self, "reinvocation_policy", value)
|
|
2233
|
+
|
|
2234
|
+
@property
|
|
2235
|
+
@pulumi.getter
|
|
2236
|
+
def variables(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['VariableArgs']]]]:
|
|
2237
|
+
"""
|
|
2238
|
+
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.
|
|
2239
|
+
|
|
2240
|
+
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.
|
|
2241
|
+
"""
|
|
2242
|
+
return pulumi.get(self, "variables")
|
|
2243
|
+
|
|
2244
|
+
@variables.setter
|
|
2245
|
+
def variables(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['VariableArgs']]]]):
|
|
2246
|
+
pulumi.set(self, "variables", value)
|
|
2247
|
+
|
|
2248
|
+
|
|
2249
|
+
if not MYPY:
|
|
2250
|
+
class MutatingAdmissionPolicyArgsDict(TypedDict):
|
|
2251
|
+
"""
|
|
2252
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
2253
|
+
"""
|
|
2254
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
2255
|
+
"""
|
|
2256
|
+
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
|
|
2257
|
+
"""
|
|
2258
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
2259
|
+
"""
|
|
2260
|
+
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
|
|
2261
|
+
"""
|
|
2262
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
2263
|
+
"""
|
|
2264
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
2265
|
+
"""
|
|
2266
|
+
spec: NotRequired[pulumi.Input['MutatingAdmissionPolicySpecArgsDict']]
|
|
2267
|
+
"""
|
|
2268
|
+
Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
2269
|
+
"""
|
|
2270
|
+
elif False:
|
|
2271
|
+
MutatingAdmissionPolicyArgsDict: TypeAlias = Mapping[str, Any]
|
|
2272
|
+
|
|
2273
|
+
@pulumi.input_type
|
|
2274
|
+
class MutatingAdmissionPolicyArgs:
|
|
2275
|
+
def __init__(__self__, *,
|
|
2276
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
2277
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
2278
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
|
|
2279
|
+
spec: Optional[pulumi.Input['MutatingAdmissionPolicySpecArgs']] = None):
|
|
2280
|
+
"""
|
|
2281
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
2282
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
2283
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
2284
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
2285
|
+
:param pulumi.Input['MutatingAdmissionPolicySpecArgs'] spec: Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
2286
|
+
"""
|
|
2287
|
+
if api_version is not None:
|
|
2288
|
+
pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1alpha1')
|
|
2289
|
+
if kind is not None:
|
|
2290
|
+
pulumi.set(__self__, "kind", 'MutatingAdmissionPolicy')
|
|
2291
|
+
if metadata is not None:
|
|
2292
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
2293
|
+
if spec is not None:
|
|
2294
|
+
pulumi.set(__self__, "spec", spec)
|
|
2295
|
+
|
|
2296
|
+
@property
|
|
2297
|
+
@pulumi.getter(name="apiVersion")
|
|
2298
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
2299
|
+
"""
|
|
2300
|
+
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
|
|
2301
|
+
"""
|
|
2302
|
+
return pulumi.get(self, "api_version")
|
|
2303
|
+
|
|
2304
|
+
@api_version.setter
|
|
2305
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
2306
|
+
pulumi.set(self, "api_version", value)
|
|
2307
|
+
|
|
2308
|
+
@property
|
|
2309
|
+
@pulumi.getter
|
|
2310
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
2311
|
+
"""
|
|
2312
|
+
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
|
|
2313
|
+
"""
|
|
2314
|
+
return pulumi.get(self, "kind")
|
|
2315
|
+
|
|
2316
|
+
@kind.setter
|
|
2317
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
2318
|
+
pulumi.set(self, "kind", value)
|
|
2319
|
+
|
|
2320
|
+
@property
|
|
2321
|
+
@pulumi.getter
|
|
2322
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
2323
|
+
"""
|
|
2324
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
2325
|
+
"""
|
|
2326
|
+
return pulumi.get(self, "metadata")
|
|
2327
|
+
|
|
2328
|
+
@metadata.setter
|
|
2329
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
2330
|
+
pulumi.set(self, "metadata", value)
|
|
2331
|
+
|
|
2332
|
+
@property
|
|
2333
|
+
@pulumi.getter
|
|
2334
|
+
def spec(self) -> Optional[pulumi.Input['MutatingAdmissionPolicySpecArgs']]:
|
|
2335
|
+
"""
|
|
2336
|
+
Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
2337
|
+
"""
|
|
2338
|
+
return pulumi.get(self, "spec")
|
|
2339
|
+
|
|
2340
|
+
@spec.setter
|
|
2341
|
+
def spec(self, value: Optional[pulumi.Input['MutatingAdmissionPolicySpecArgs']]):
|
|
2342
|
+
pulumi.set(self, "spec", value)
|
|
2343
|
+
|
|
2344
|
+
|
|
2345
|
+
if not MYPY:
|
|
2346
|
+
class MutationPatchArgsDict(TypedDict):
|
|
2347
|
+
"""
|
|
2348
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
2349
|
+
"""
|
|
2350
|
+
apply_configuration: NotRequired[pulumi.Input['ApplyConfigurationPatchArgsDict']]
|
|
2351
|
+
"""
|
|
2352
|
+
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
|
|
2353
|
+
"""
|
|
2354
|
+
json_patch: NotRequired[pulumi.Input['JSONPatchPatchArgsDict']]
|
|
2355
|
+
"""
|
|
2356
|
+
jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
|
|
2357
|
+
"""
|
|
2358
|
+
patch_type: NotRequired[pulumi.Input[str]]
|
|
2359
|
+
"""
|
|
2360
|
+
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
2361
|
+
"""
|
|
2362
|
+
elif False:
|
|
2363
|
+
MutationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2364
|
+
|
|
2365
|
+
@pulumi.input_type
|
|
2366
|
+
class MutationPatchArgs:
|
|
2367
|
+
def __init__(__self__, *,
|
|
2368
|
+
apply_configuration: Optional[pulumi.Input['ApplyConfigurationPatchArgs']] = None,
|
|
2369
|
+
json_patch: Optional[pulumi.Input['JSONPatchPatchArgs']] = None,
|
|
2370
|
+
patch_type: Optional[pulumi.Input[str]] = None):
|
|
2371
|
+
"""
|
|
2372
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
2373
|
+
:param pulumi.Input['ApplyConfigurationPatchArgs'] apply_configuration: applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
|
|
2374
|
+
:param pulumi.Input['JSONPatchPatchArgs'] json_patch: jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
|
|
2375
|
+
:param pulumi.Input[str] patch_type: patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
2376
|
+
"""
|
|
2377
|
+
if apply_configuration is not None:
|
|
2378
|
+
pulumi.set(__self__, "apply_configuration", apply_configuration)
|
|
2379
|
+
if json_patch is not None:
|
|
2380
|
+
pulumi.set(__self__, "json_patch", json_patch)
|
|
2381
|
+
if patch_type is not None:
|
|
2382
|
+
pulumi.set(__self__, "patch_type", patch_type)
|
|
2383
|
+
|
|
2384
|
+
@property
|
|
2385
|
+
@pulumi.getter(name="applyConfiguration")
|
|
2386
|
+
def apply_configuration(self) -> Optional[pulumi.Input['ApplyConfigurationPatchArgs']]:
|
|
2387
|
+
"""
|
|
2388
|
+
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
|
|
2389
|
+
"""
|
|
2390
|
+
return pulumi.get(self, "apply_configuration")
|
|
2391
|
+
|
|
2392
|
+
@apply_configuration.setter
|
|
2393
|
+
def apply_configuration(self, value: Optional[pulumi.Input['ApplyConfigurationPatchArgs']]):
|
|
2394
|
+
pulumi.set(self, "apply_configuration", value)
|
|
2395
|
+
|
|
2396
|
+
@property
|
|
2397
|
+
@pulumi.getter(name="jsonPatch")
|
|
2398
|
+
def json_patch(self) -> Optional[pulumi.Input['JSONPatchPatchArgs']]:
|
|
2399
|
+
"""
|
|
2400
|
+
jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
|
|
2401
|
+
"""
|
|
2402
|
+
return pulumi.get(self, "json_patch")
|
|
2403
|
+
|
|
2404
|
+
@json_patch.setter
|
|
2405
|
+
def json_patch(self, value: Optional[pulumi.Input['JSONPatchPatchArgs']]):
|
|
2406
|
+
pulumi.set(self, "json_patch", value)
|
|
2407
|
+
|
|
2408
|
+
@property
|
|
2409
|
+
@pulumi.getter(name="patchType")
|
|
2410
|
+
def patch_type(self) -> Optional[pulumi.Input[str]]:
|
|
2411
|
+
"""
|
|
2412
|
+
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
2413
|
+
"""
|
|
2414
|
+
return pulumi.get(self, "patch_type")
|
|
2415
|
+
|
|
2416
|
+
@patch_type.setter
|
|
2417
|
+
def patch_type(self, value: Optional[pulumi.Input[str]]):
|
|
2418
|
+
pulumi.set(self, "patch_type", value)
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
if not MYPY:
|
|
2422
|
+
class MutationArgsDict(TypedDict):
|
|
2423
|
+
"""
|
|
2424
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
2425
|
+
"""
|
|
2426
|
+
patch_type: pulumi.Input[str]
|
|
2427
|
+
"""
|
|
2428
|
+
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
2429
|
+
"""
|
|
2430
|
+
apply_configuration: NotRequired[pulumi.Input['ApplyConfigurationArgsDict']]
|
|
2431
|
+
"""
|
|
2432
|
+
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
|
|
2433
|
+
"""
|
|
2434
|
+
json_patch: NotRequired[pulumi.Input['JSONPatchArgsDict']]
|
|
2435
|
+
"""
|
|
2436
|
+
jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
|
|
2437
|
+
"""
|
|
2438
|
+
elif False:
|
|
2439
|
+
MutationArgsDict: TypeAlias = Mapping[str, Any]
|
|
2440
|
+
|
|
2441
|
+
@pulumi.input_type
|
|
2442
|
+
class MutationArgs:
|
|
2443
|
+
def __init__(__self__, *,
|
|
2444
|
+
patch_type: pulumi.Input[str],
|
|
2445
|
+
apply_configuration: Optional[pulumi.Input['ApplyConfigurationArgs']] = None,
|
|
2446
|
+
json_patch: Optional[pulumi.Input['JSONPatchArgs']] = None):
|
|
2447
|
+
"""
|
|
2448
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
2449
|
+
:param pulumi.Input[str] patch_type: patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
2450
|
+
:param pulumi.Input['ApplyConfigurationArgs'] apply_configuration: applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
|
|
2451
|
+
:param pulumi.Input['JSONPatchArgs'] json_patch: jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
|
|
2452
|
+
"""
|
|
2453
|
+
pulumi.set(__self__, "patch_type", patch_type)
|
|
2454
|
+
if apply_configuration is not None:
|
|
2455
|
+
pulumi.set(__self__, "apply_configuration", apply_configuration)
|
|
2456
|
+
if json_patch is not None:
|
|
2457
|
+
pulumi.set(__self__, "json_patch", json_patch)
|
|
599
2458
|
|
|
600
|
-
|
|
2459
|
+
@property
|
|
2460
|
+
@pulumi.getter(name="patchType")
|
|
2461
|
+
def patch_type(self) -> pulumi.Input[str]:
|
|
601
2462
|
"""
|
|
602
|
-
|
|
2463
|
+
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
2464
|
+
"""
|
|
2465
|
+
return pulumi.get(self, "patch_type")
|
|
603
2466
|
|
|
604
|
-
@
|
|
605
|
-
def
|
|
606
|
-
pulumi.set(self, "
|
|
2467
|
+
@patch_type.setter
|
|
2468
|
+
def patch_type(self, value: pulumi.Input[str]):
|
|
2469
|
+
pulumi.set(self, "patch_type", value)
|
|
607
2470
|
|
|
608
2471
|
@property
|
|
609
|
-
@pulumi.getter(name="
|
|
610
|
-
def
|
|
2472
|
+
@pulumi.getter(name="applyConfiguration")
|
|
2473
|
+
def apply_configuration(self) -> Optional[pulumi.Input['ApplyConfigurationArgs']]:
|
|
611
2474
|
"""
|
|
612
|
-
|
|
2475
|
+
applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration.
|
|
613
2476
|
"""
|
|
614
|
-
return pulumi.get(self, "
|
|
2477
|
+
return pulumi.get(self, "apply_configuration")
|
|
615
2478
|
|
|
616
|
-
@
|
|
617
|
-
def
|
|
618
|
-
pulumi.set(self, "
|
|
2479
|
+
@apply_configuration.setter
|
|
2480
|
+
def apply_configuration(self, value: Optional[pulumi.Input['ApplyConfigurationArgs']]):
|
|
2481
|
+
pulumi.set(self, "apply_configuration", value)
|
|
619
2482
|
|
|
620
2483
|
@property
|
|
621
|
-
@pulumi.getter(name="
|
|
622
|
-
def
|
|
2484
|
+
@pulumi.getter(name="jsonPatch")
|
|
2485
|
+
def json_patch(self) -> Optional[pulumi.Input['JSONPatchArgs']]:
|
|
623
2486
|
"""
|
|
624
|
-
|
|
2487
|
+
jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch.
|
|
625
2488
|
"""
|
|
626
|
-
return pulumi.get(self, "
|
|
2489
|
+
return pulumi.get(self, "json_patch")
|
|
627
2490
|
|
|
628
|
-
@
|
|
629
|
-
def
|
|
630
|
-
pulumi.set(self, "
|
|
2491
|
+
@json_patch.setter
|
|
2492
|
+
def json_patch(self, value: Optional[pulumi.Input['JSONPatchArgs']]):
|
|
2493
|
+
pulumi.set(self, "json_patch", value)
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
if not MYPY:
|
|
2497
|
+
class NamedRuleWithOperationsPatchArgsDict(TypedDict):
|
|
2498
|
+
"""
|
|
2499
|
+
NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
|
|
2500
|
+
"""
|
|
2501
|
+
api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2502
|
+
"""
|
|
2503
|
+
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
2504
|
+
"""
|
|
2505
|
+
api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2506
|
+
"""
|
|
2507
|
+
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
2508
|
+
"""
|
|
2509
|
+
operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2510
|
+
"""
|
|
2511
|
+
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.
|
|
2512
|
+
"""
|
|
2513
|
+
resource_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2514
|
+
"""
|
|
2515
|
+
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
2516
|
+
"""
|
|
2517
|
+
resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2518
|
+
"""
|
|
2519
|
+
Resources is a list of resources this rule applies to.
|
|
2520
|
+
|
|
2521
|
+
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.
|
|
2522
|
+
|
|
2523
|
+
If wildcard is present, the validation rule will ensure resources do not overlap with each other.
|
|
631
2524
|
|
|
2525
|
+
Depending on the enclosing object, subresources might not be allowed. Required.
|
|
2526
|
+
"""
|
|
2527
|
+
scope: NotRequired[pulumi.Input[str]]
|
|
2528
|
+
"""
|
|
2529
|
+
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 "*".
|
|
2530
|
+
"""
|
|
2531
|
+
elif False:
|
|
2532
|
+
NamedRuleWithOperationsPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
632
2533
|
|
|
633
2534
|
@pulumi.input_type
|
|
634
2535
|
class NamedRuleWithOperationsPatchArgs:
|
|
@@ -746,6 +2647,44 @@ class NamedRuleWithOperationsPatchArgs:
|
|
|
746
2647
|
pulumi.set(self, "scope", value)
|
|
747
2648
|
|
|
748
2649
|
|
|
2650
|
+
if not MYPY:
|
|
2651
|
+
class NamedRuleWithOperationsArgsDict(TypedDict):
|
|
2652
|
+
"""
|
|
2653
|
+
NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
|
|
2654
|
+
"""
|
|
2655
|
+
api_groups: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2656
|
+
"""
|
|
2657
|
+
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
2658
|
+
"""
|
|
2659
|
+
api_versions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2660
|
+
"""
|
|
2661
|
+
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
2662
|
+
"""
|
|
2663
|
+
operations: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2664
|
+
"""
|
|
2665
|
+
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.
|
|
2666
|
+
"""
|
|
2667
|
+
resource_names: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2668
|
+
"""
|
|
2669
|
+
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
2670
|
+
"""
|
|
2671
|
+
resources: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2672
|
+
"""
|
|
2673
|
+
Resources is a list of resources this rule applies to.
|
|
2674
|
+
|
|
2675
|
+
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.
|
|
2676
|
+
|
|
2677
|
+
If wildcard is present, the validation rule will ensure resources do not overlap with each other.
|
|
2678
|
+
|
|
2679
|
+
Depending on the enclosing object, subresources might not be allowed. Required.
|
|
2680
|
+
"""
|
|
2681
|
+
scope: NotRequired[pulumi.Input[str]]
|
|
2682
|
+
"""
|
|
2683
|
+
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 "*".
|
|
2684
|
+
"""
|
|
2685
|
+
elif False:
|
|
2686
|
+
NamedRuleWithOperationsArgsDict: TypeAlias = Mapping[str, Any]
|
|
2687
|
+
|
|
749
2688
|
@pulumi.input_type
|
|
750
2689
|
class NamedRuleWithOperationsArgs:
|
|
751
2690
|
def __init__(__self__, *,
|
|
@@ -862,6 +2801,22 @@ class NamedRuleWithOperationsArgs:
|
|
|
862
2801
|
pulumi.set(self, "scope", value)
|
|
863
2802
|
|
|
864
2803
|
|
|
2804
|
+
if not MYPY:
|
|
2805
|
+
class ParamKindPatchArgsDict(TypedDict):
|
|
2806
|
+
"""
|
|
2807
|
+
ParamKind is a tuple of Group Kind and Version.
|
|
2808
|
+
"""
|
|
2809
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
2810
|
+
"""
|
|
2811
|
+
APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
2812
|
+
"""
|
|
2813
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
2814
|
+
"""
|
|
2815
|
+
Kind is the API kind the resources belong to. Required.
|
|
2816
|
+
"""
|
|
2817
|
+
elif False:
|
|
2818
|
+
ParamKindPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2819
|
+
|
|
865
2820
|
@pulumi.input_type
|
|
866
2821
|
class ParamKindPatchArgs:
|
|
867
2822
|
def __init__(__self__, *,
|
|
@@ -902,6 +2857,22 @@ class ParamKindPatchArgs:
|
|
|
902
2857
|
pulumi.set(self, "kind", value)
|
|
903
2858
|
|
|
904
2859
|
|
|
2860
|
+
if not MYPY:
|
|
2861
|
+
class ParamKindArgsDict(TypedDict):
|
|
2862
|
+
"""
|
|
2863
|
+
ParamKind is a tuple of Group Kind and Version.
|
|
2864
|
+
"""
|
|
2865
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
2866
|
+
"""
|
|
2867
|
+
APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
2868
|
+
"""
|
|
2869
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
2870
|
+
"""
|
|
2871
|
+
Kind is the API kind the resources belong to. Required.
|
|
2872
|
+
"""
|
|
2873
|
+
elif False:
|
|
2874
|
+
ParamKindArgsDict: TypeAlias = Mapping[str, Any]
|
|
2875
|
+
|
|
905
2876
|
@pulumi.input_type
|
|
906
2877
|
class ParamKindArgs:
|
|
907
2878
|
def __init__(__self__, *,
|
|
@@ -942,6 +2913,44 @@ class ParamKindArgs:
|
|
|
942
2913
|
pulumi.set(self, "kind", value)
|
|
943
2914
|
|
|
944
2915
|
|
|
2916
|
+
if not MYPY:
|
|
2917
|
+
class ParamRefPatchArgsDict(TypedDict):
|
|
2918
|
+
"""
|
|
2919
|
+
ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
|
|
2920
|
+
"""
|
|
2921
|
+
name: NotRequired[pulumi.Input[str]]
|
|
2922
|
+
"""
|
|
2923
|
+
`name` is the name of the resource being referenced.
|
|
2924
|
+
|
|
2925
|
+
`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
|
|
2926
|
+
"""
|
|
2927
|
+
namespace: NotRequired[pulumi.Input[str]]
|
|
2928
|
+
"""
|
|
2929
|
+
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.
|
|
2930
|
+
|
|
2931
|
+
A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
|
|
2932
|
+
|
|
2933
|
+
- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
|
|
2934
|
+
|
|
2935
|
+
- 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.
|
|
2936
|
+
"""
|
|
2937
|
+
parameter_not_found_action: NotRequired[pulumi.Input[str]]
|
|
2938
|
+
"""
|
|
2939
|
+
`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.
|
|
2940
|
+
|
|
2941
|
+
Allowed values are `Allow` or `Deny` Default to `Deny`
|
|
2942
|
+
"""
|
|
2943
|
+
selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorPatchArgsDict']]
|
|
2944
|
+
"""
|
|
2945
|
+
selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
|
|
2946
|
+
|
|
2947
|
+
If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
|
|
2948
|
+
|
|
2949
|
+
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.
|
|
2950
|
+
"""
|
|
2951
|
+
elif False:
|
|
2952
|
+
ParamRefPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2953
|
+
|
|
945
2954
|
@pulumi.input_type
|
|
946
2955
|
class ParamRefPatchArgs:
|
|
947
2956
|
def __init__(__self__, *,
|
|
@@ -1042,6 +3051,44 @@ class ParamRefPatchArgs:
|
|
|
1042
3051
|
pulumi.set(self, "selector", value)
|
|
1043
3052
|
|
|
1044
3053
|
|
|
3054
|
+
if not MYPY:
|
|
3055
|
+
class ParamRefArgsDict(TypedDict):
|
|
3056
|
+
"""
|
|
3057
|
+
ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
|
|
3058
|
+
"""
|
|
3059
|
+
name: NotRequired[pulumi.Input[str]]
|
|
3060
|
+
"""
|
|
3061
|
+
`name` is the name of the resource being referenced.
|
|
3062
|
+
|
|
3063
|
+
`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
|
|
3064
|
+
"""
|
|
3065
|
+
namespace: NotRequired[pulumi.Input[str]]
|
|
3066
|
+
"""
|
|
3067
|
+
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.
|
|
3068
|
+
|
|
3069
|
+
A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
|
|
3070
|
+
|
|
3071
|
+
- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
|
|
3072
|
+
|
|
3073
|
+
- 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.
|
|
3074
|
+
"""
|
|
3075
|
+
parameter_not_found_action: NotRequired[pulumi.Input[str]]
|
|
3076
|
+
"""
|
|
3077
|
+
`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.
|
|
3078
|
+
|
|
3079
|
+
Allowed values are `Allow` or `Deny` Default to `Deny`
|
|
3080
|
+
"""
|
|
3081
|
+
selector: NotRequired[pulumi.Input['_meta.v1.LabelSelectorArgsDict']]
|
|
3082
|
+
"""
|
|
3083
|
+
selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
|
|
3084
|
+
|
|
3085
|
+
If multiple params are found, they are all evaluated with the policy expressions and the results are ANDed together.
|
|
3086
|
+
|
|
3087
|
+
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.
|
|
3088
|
+
"""
|
|
3089
|
+
elif False:
|
|
3090
|
+
ParamRefArgsDict: TypeAlias = Mapping[str, Any]
|
|
3091
|
+
|
|
1045
3092
|
@pulumi.input_type
|
|
1046
3093
|
class ParamRefArgs:
|
|
1047
3094
|
def __init__(__self__, *,
|
|
@@ -1142,6 +3189,18 @@ class ParamRefArgs:
|
|
|
1142
3189
|
pulumi.set(self, "selector", value)
|
|
1143
3190
|
|
|
1144
3191
|
|
|
3192
|
+
if not MYPY:
|
|
3193
|
+
class TypeCheckingArgsDict(TypedDict):
|
|
3194
|
+
"""
|
|
3195
|
+
TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy
|
|
3196
|
+
"""
|
|
3197
|
+
expression_warnings: NotRequired[pulumi.Input[Sequence[pulumi.Input['ExpressionWarningArgsDict']]]]
|
|
3198
|
+
"""
|
|
3199
|
+
The type checking warnings for each expression.
|
|
3200
|
+
"""
|
|
3201
|
+
elif False:
|
|
3202
|
+
TypeCheckingArgsDict: TypeAlias = Mapping[str, Any]
|
|
3203
|
+
|
|
1145
3204
|
@pulumi.input_type
|
|
1146
3205
|
class TypeCheckingArgs:
|
|
1147
3206
|
def __init__(__self__, *,
|
|
@@ -1166,6 +3225,48 @@ class TypeCheckingArgs:
|
|
|
1166
3225
|
pulumi.set(self, "expression_warnings", value)
|
|
1167
3226
|
|
|
1168
3227
|
|
|
3228
|
+
if not MYPY:
|
|
3229
|
+
class ValidatingAdmissionPolicyBindingSpecPatchArgsDict(TypedDict):
|
|
3230
|
+
"""
|
|
3231
|
+
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
|
|
3232
|
+
"""
|
|
3233
|
+
match_resources: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
|
|
3234
|
+
"""
|
|
3235
|
+
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.
|
|
3236
|
+
"""
|
|
3237
|
+
param_ref: NotRequired[pulumi.Input['ParamRefPatchArgsDict']]
|
|
3238
|
+
"""
|
|
3239
|
+
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.
|
|
3240
|
+
"""
|
|
3241
|
+
policy_name: NotRequired[pulumi.Input[str]]
|
|
3242
|
+
"""
|
|
3243
|
+
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.
|
|
3244
|
+
"""
|
|
3245
|
+
validation_actions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
3246
|
+
"""
|
|
3247
|
+
validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
|
|
3248
|
+
|
|
3249
|
+
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.
|
|
3250
|
+
|
|
3251
|
+
validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
|
|
3252
|
+
|
|
3253
|
+
The supported actions values are:
|
|
3254
|
+
|
|
3255
|
+
"Deny" specifies that a validation failure results in a denied request.
|
|
3256
|
+
|
|
3257
|
+
"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.
|
|
3258
|
+
|
|
3259
|
+
"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"]}]"`
|
|
3260
|
+
|
|
3261
|
+
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3262
|
+
|
|
3263
|
+
"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.
|
|
3264
|
+
|
|
3265
|
+
Required.
|
|
3266
|
+
"""
|
|
3267
|
+
elif False:
|
|
3268
|
+
ValidatingAdmissionPolicyBindingSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
3269
|
+
|
|
1169
3270
|
@pulumi.input_type
|
|
1170
3271
|
class ValidatingAdmissionPolicyBindingSpecPatchArgs:
|
|
1171
3272
|
def __init__(__self__, *,
|
|
@@ -1176,7 +3277,7 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
|
|
|
1176
3277
|
"""
|
|
1177
3278
|
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
|
|
1178
3279
|
:param pulumi.Input['MatchResourcesPatchArgs'] match_resources: 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.
|
|
1179
|
-
:param pulumi.Input['ParamRefPatchArgs'] param_ref:
|
|
3280
|
+
:param pulumi.Input['ParamRefPatchArgs'] param_ref: 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.
|
|
1180
3281
|
:param pulumi.Input[str] policy_name: 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.
|
|
1181
3282
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] validation_actions: validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
|
|
1182
3283
|
|
|
@@ -1223,7 +3324,7 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
|
|
|
1223
3324
|
@pulumi.getter(name="paramRef")
|
|
1224
3325
|
def param_ref(self) -> Optional[pulumi.Input['ParamRefPatchArgs']]:
|
|
1225
3326
|
"""
|
|
1226
|
-
|
|
3327
|
+
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.
|
|
1227
3328
|
"""
|
|
1228
3329
|
return pulumi.get(self, "param_ref")
|
|
1229
3330
|
|
|
@@ -1274,6 +3375,48 @@ class ValidatingAdmissionPolicyBindingSpecPatchArgs:
|
|
|
1274
3375
|
pulumi.set(self, "validation_actions", value)
|
|
1275
3376
|
|
|
1276
3377
|
|
|
3378
|
+
if not MYPY:
|
|
3379
|
+
class ValidatingAdmissionPolicyBindingSpecArgsDict(TypedDict):
|
|
3380
|
+
"""
|
|
3381
|
+
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
|
|
3382
|
+
"""
|
|
3383
|
+
match_resources: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
|
|
3384
|
+
"""
|
|
3385
|
+
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.
|
|
3386
|
+
"""
|
|
3387
|
+
param_ref: NotRequired[pulumi.Input['ParamRefArgsDict']]
|
|
3388
|
+
"""
|
|
3389
|
+
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.
|
|
3390
|
+
"""
|
|
3391
|
+
policy_name: NotRequired[pulumi.Input[str]]
|
|
3392
|
+
"""
|
|
3393
|
+
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.
|
|
3394
|
+
"""
|
|
3395
|
+
validation_actions: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
3396
|
+
"""
|
|
3397
|
+
validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
|
|
3398
|
+
|
|
3399
|
+
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.
|
|
3400
|
+
|
|
3401
|
+
validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action.
|
|
3402
|
+
|
|
3403
|
+
The supported actions values are:
|
|
3404
|
+
|
|
3405
|
+
"Deny" specifies that a validation failure results in a denied request.
|
|
3406
|
+
|
|
3407
|
+
"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.
|
|
3408
|
+
|
|
3409
|
+
"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"]}]"`
|
|
3410
|
+
|
|
3411
|
+
Clients should expect to handle additional values by ignoring any values not recognized.
|
|
3412
|
+
|
|
3413
|
+
"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.
|
|
3414
|
+
|
|
3415
|
+
Required.
|
|
3416
|
+
"""
|
|
3417
|
+
elif False:
|
|
3418
|
+
ValidatingAdmissionPolicyBindingSpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
3419
|
+
|
|
1277
3420
|
@pulumi.input_type
|
|
1278
3421
|
class ValidatingAdmissionPolicyBindingSpecArgs:
|
|
1279
3422
|
def __init__(__self__, *,
|
|
@@ -1284,7 +3427,7 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
|
|
|
1284
3427
|
"""
|
|
1285
3428
|
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
|
|
1286
3429
|
:param pulumi.Input['MatchResourcesArgs'] match_resources: 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.
|
|
1287
|
-
:param pulumi.Input['ParamRefArgs'] param_ref:
|
|
3430
|
+
:param pulumi.Input['ParamRefArgs'] param_ref: 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.
|
|
1288
3431
|
:param pulumi.Input[str] policy_name: 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.
|
|
1289
3432
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] validation_actions: validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
|
|
1290
3433
|
|
|
@@ -1331,7 +3474,7 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
|
|
|
1331
3474
|
@pulumi.getter(name="paramRef")
|
|
1332
3475
|
def param_ref(self) -> Optional[pulumi.Input['ParamRefArgs']]:
|
|
1333
3476
|
"""
|
|
1334
|
-
|
|
3477
|
+
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.
|
|
1335
3478
|
"""
|
|
1336
3479
|
return pulumi.get(self, "param_ref")
|
|
1337
3480
|
|
|
@@ -1375,12 +3518,36 @@ class ValidatingAdmissionPolicyBindingSpecArgs:
|
|
|
1375
3518
|
|
|
1376
3519
|
Required.
|
|
1377
3520
|
"""
|
|
1378
|
-
return pulumi.get(self, "validation_actions")
|
|
1379
|
-
|
|
1380
|
-
@validation_actions.setter
|
|
1381
|
-
def validation_actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
1382
|
-
pulumi.set(self, "validation_actions", value)
|
|
1383
|
-
|
|
3521
|
+
return pulumi.get(self, "validation_actions")
|
|
3522
|
+
|
|
3523
|
+
@validation_actions.setter
|
|
3524
|
+
def validation_actions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
3525
|
+
pulumi.set(self, "validation_actions", value)
|
|
3526
|
+
|
|
3527
|
+
|
|
3528
|
+
if not MYPY:
|
|
3529
|
+
class ValidatingAdmissionPolicyBindingArgsDict(TypedDict):
|
|
3530
|
+
"""
|
|
3531
|
+
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
3532
|
+
"""
|
|
3533
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
3534
|
+
"""
|
|
3535
|
+
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
|
|
3536
|
+
"""
|
|
3537
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
3538
|
+
"""
|
|
3539
|
+
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
|
|
3540
|
+
"""
|
|
3541
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
3542
|
+
"""
|
|
3543
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
3544
|
+
"""
|
|
3545
|
+
spec: NotRequired[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgsDict']]
|
|
3546
|
+
"""
|
|
3547
|
+
Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
|
|
3548
|
+
"""
|
|
3549
|
+
elif False:
|
|
3550
|
+
ValidatingAdmissionPolicyBindingArgsDict: TypeAlias = Mapping[str, Any]
|
|
1384
3551
|
|
|
1385
3552
|
@pulumi.input_type
|
|
1386
3553
|
class ValidatingAdmissionPolicyBindingArgs:
|
|
@@ -1391,10 +3558,6 @@ class ValidatingAdmissionPolicyBindingArgs:
|
|
|
1391
3558
|
spec: Optional[pulumi.Input['ValidatingAdmissionPolicyBindingSpecArgs']] = None):
|
|
1392
3559
|
"""
|
|
1393
3560
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
1394
|
-
|
|
1395
|
-
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.
|
|
1396
|
-
|
|
1397
|
-
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.
|
|
1398
3561
|
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
1399
3562
|
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
1400
3563
|
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
@@ -1458,6 +3621,53 @@ class ValidatingAdmissionPolicyBindingArgs:
|
|
|
1458
3621
|
pulumi.set(self, "spec", value)
|
|
1459
3622
|
|
|
1460
3623
|
|
|
3624
|
+
if not MYPY:
|
|
3625
|
+
class ValidatingAdmissionPolicySpecPatchArgsDict(TypedDict):
|
|
3626
|
+
"""
|
|
3627
|
+
ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
|
|
3628
|
+
"""
|
|
3629
|
+
audit_annotations: NotRequired[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationPatchArgsDict']]]]
|
|
3630
|
+
"""
|
|
3631
|
+
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.
|
|
3632
|
+
"""
|
|
3633
|
+
failure_policy: NotRequired[pulumi.Input[str]]
|
|
3634
|
+
"""
|
|
3635
|
+
FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. 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. Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3636
|
+
"""
|
|
3637
|
+
match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgsDict']]]]
|
|
3638
|
+
"""
|
|
3639
|
+
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.
|
|
3640
|
+
|
|
3641
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
3642
|
+
|
|
3643
|
+
The exact matching logic is (in order):
|
|
3644
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
3645
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
3646
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
3647
|
+
- If failurePolicy=Fail, reject the request
|
|
3648
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
3649
|
+
"""
|
|
3650
|
+
match_constraints: NotRequired[pulumi.Input['MatchResourcesPatchArgsDict']]
|
|
3651
|
+
"""
|
|
3652
|
+
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.
|
|
3653
|
+
"""
|
|
3654
|
+
param_kind: NotRequired[pulumi.Input['ParamKindPatchArgsDict']]
|
|
3655
|
+
"""
|
|
3656
|
+
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.
|
|
3657
|
+
"""
|
|
3658
|
+
validations: NotRequired[pulumi.Input[Sequence[pulumi.Input['ValidationPatchArgsDict']]]]
|
|
3659
|
+
"""
|
|
3660
|
+
Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
3661
|
+
"""
|
|
3662
|
+
variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariablePatchArgsDict']]]]
|
|
3663
|
+
"""
|
|
3664
|
+
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.
|
|
3665
|
+
|
|
3666
|
+
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.
|
|
3667
|
+
"""
|
|
3668
|
+
elif False:
|
|
3669
|
+
ValidatingAdmissionPolicySpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
3670
|
+
|
|
1461
3671
|
@pulumi.input_type
|
|
1462
3672
|
class ValidatingAdmissionPolicySpecPatchArgs:
|
|
1463
3673
|
def __init__(__self__, *,
|
|
@@ -1471,15 +3681,7 @@ class ValidatingAdmissionPolicySpecPatchArgs:
|
|
|
1471
3681
|
"""
|
|
1472
3682
|
ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
|
|
1473
3683
|
:param pulumi.Input[Sequence[pulumi.Input['AuditAnnotationPatchArgs']]] audit_annotations: 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.
|
|
1474
|
-
:param pulumi.Input[str] failure_policy:
|
|
1475
|
-
|
|
1476
|
-
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.
|
|
1477
|
-
|
|
1478
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1479
|
-
|
|
1480
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1481
|
-
|
|
1482
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3684
|
+
:param pulumi.Input[str] failure_policy: FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. 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. Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1483
3685
|
:param pulumi.Input[Sequence[pulumi.Input['MatchConditionPatchArgs']]] match_conditions: 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.
|
|
1484
3686
|
|
|
1485
3687
|
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
@@ -1492,7 +3694,7 @@ class ValidatingAdmissionPolicySpecPatchArgs:
|
|
|
1492
3694
|
- If failurePolicy=Ignore, the policy is skipped
|
|
1493
3695
|
:param pulumi.Input['MatchResourcesPatchArgs'] match_constraints: 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.
|
|
1494
3696
|
:param pulumi.Input['ParamKindPatchArgs'] param_kind: 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.
|
|
1495
|
-
:param pulumi.Input[Sequence[pulumi.Input['ValidationPatchArgs']]] validations: Validations contain CEL expressions which is used to apply the validation.
|
|
3697
|
+
:param pulumi.Input[Sequence[pulumi.Input['ValidationPatchArgs']]] validations: Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
1496
3698
|
:param pulumi.Input[Sequence[pulumi.Input['VariablePatchArgs']]] variables: 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.
|
|
1497
3699
|
|
|
1498
3700
|
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.
|
|
@@ -1528,15 +3730,7 @@ class ValidatingAdmissionPolicySpecPatchArgs:
|
|
|
1528
3730
|
@pulumi.getter(name="failurePolicy")
|
|
1529
3731
|
def failure_policy(self) -> Optional[pulumi.Input[str]]:
|
|
1530
3732
|
"""
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
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.
|
|
1534
|
-
|
|
1535
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1536
|
-
|
|
1537
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1538
|
-
|
|
1539
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3733
|
+
FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. 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. Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1540
3734
|
"""
|
|
1541
3735
|
return pulumi.get(self, "failure_policy")
|
|
1542
3736
|
|
|
@@ -1593,7 +3787,7 @@ class ValidatingAdmissionPolicySpecPatchArgs:
|
|
|
1593
3787
|
@pulumi.getter
|
|
1594
3788
|
def validations(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ValidationPatchArgs']]]]:
|
|
1595
3789
|
"""
|
|
1596
|
-
Validations contain CEL expressions which is used to apply the validation.
|
|
3790
|
+
Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
1597
3791
|
"""
|
|
1598
3792
|
return pulumi.get(self, "validations")
|
|
1599
3793
|
|
|
@@ -1616,6 +3810,53 @@ class ValidatingAdmissionPolicySpecPatchArgs:
|
|
|
1616
3810
|
pulumi.set(self, "variables", value)
|
|
1617
3811
|
|
|
1618
3812
|
|
|
3813
|
+
if not MYPY:
|
|
3814
|
+
class ValidatingAdmissionPolicySpecArgsDict(TypedDict):
|
|
3815
|
+
"""
|
|
3816
|
+
ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
|
|
3817
|
+
"""
|
|
3818
|
+
validations: pulumi.Input[Sequence[pulumi.Input['ValidationArgsDict']]]
|
|
3819
|
+
"""
|
|
3820
|
+
Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
3821
|
+
"""
|
|
3822
|
+
audit_annotations: NotRequired[pulumi.Input[Sequence[pulumi.Input['AuditAnnotationArgsDict']]]]
|
|
3823
|
+
"""
|
|
3824
|
+
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.
|
|
3825
|
+
"""
|
|
3826
|
+
failure_policy: NotRequired[pulumi.Input[str]]
|
|
3827
|
+
"""
|
|
3828
|
+
FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. 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. Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3829
|
+
"""
|
|
3830
|
+
match_conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['MatchConditionArgsDict']]]]
|
|
3831
|
+
"""
|
|
3832
|
+
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.
|
|
3833
|
+
|
|
3834
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
3835
|
+
|
|
3836
|
+
The exact matching logic is (in order):
|
|
3837
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
3838
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
3839
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
3840
|
+
- If failurePolicy=Fail, reject the request
|
|
3841
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
3842
|
+
"""
|
|
3843
|
+
match_constraints: NotRequired[pulumi.Input['MatchResourcesArgsDict']]
|
|
3844
|
+
"""
|
|
3845
|
+
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.
|
|
3846
|
+
"""
|
|
3847
|
+
param_kind: NotRequired[pulumi.Input['ParamKindArgsDict']]
|
|
3848
|
+
"""
|
|
3849
|
+
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.
|
|
3850
|
+
"""
|
|
3851
|
+
variables: NotRequired[pulumi.Input[Sequence[pulumi.Input['VariableArgsDict']]]]
|
|
3852
|
+
"""
|
|
3853
|
+
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.
|
|
3854
|
+
|
|
3855
|
+
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.
|
|
3856
|
+
"""
|
|
3857
|
+
elif False:
|
|
3858
|
+
ValidatingAdmissionPolicySpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
3859
|
+
|
|
1619
3860
|
@pulumi.input_type
|
|
1620
3861
|
class ValidatingAdmissionPolicySpecArgs:
|
|
1621
3862
|
def __init__(__self__, *,
|
|
@@ -1628,17 +3869,9 @@ class ValidatingAdmissionPolicySpecArgs:
|
|
|
1628
3869
|
variables: Optional[pulumi.Input[Sequence[pulumi.Input['VariableArgs']]]] = None):
|
|
1629
3870
|
"""
|
|
1630
3871
|
ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
|
|
1631
|
-
:param pulumi.Input[Sequence[pulumi.Input['ValidationArgs']]] validations: Validations contain CEL expressions which is used to apply the validation.
|
|
3872
|
+
:param pulumi.Input[Sequence[pulumi.Input['ValidationArgs']]] validations: Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
1632
3873
|
:param pulumi.Input[Sequence[pulumi.Input['AuditAnnotationArgs']]] audit_annotations: 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.
|
|
1633
|
-
:param pulumi.Input[str] failure_policy:
|
|
1634
|
-
|
|
1635
|
-
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.
|
|
1636
|
-
|
|
1637
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1638
|
-
|
|
1639
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1640
|
-
|
|
1641
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3874
|
+
:param pulumi.Input[str] failure_policy: FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. 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. Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1642
3875
|
:param pulumi.Input[Sequence[pulumi.Input['MatchConditionArgs']]] match_conditions: 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.
|
|
1643
3876
|
|
|
1644
3877
|
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
@@ -1673,7 +3906,7 @@ class ValidatingAdmissionPolicySpecArgs:
|
|
|
1673
3906
|
@pulumi.getter
|
|
1674
3907
|
def validations(self) -> pulumi.Input[Sequence[pulumi.Input['ValidationArgs']]]:
|
|
1675
3908
|
"""
|
|
1676
|
-
Validations contain CEL expressions which is used to apply the validation.
|
|
3909
|
+
Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
1677
3910
|
"""
|
|
1678
3911
|
return pulumi.get(self, "validations")
|
|
1679
3912
|
|
|
@@ -1697,15 +3930,7 @@ class ValidatingAdmissionPolicySpecArgs:
|
|
|
1697
3930
|
@pulumi.getter(name="failurePolicy")
|
|
1698
3931
|
def failure_policy(self) -> Optional[pulumi.Input[str]]:
|
|
1699
3932
|
"""
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
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.
|
|
1703
|
-
|
|
1704
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1705
|
-
|
|
1706
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1707
|
-
|
|
1708
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3933
|
+
FailurePolicy defines how to handle failures for the admission policy. Failures can occur from invalid or mis-configured policy definitions or bindings. 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. Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1709
3934
|
"""
|
|
1710
3935
|
return pulumi.get(self, "failure_policy")
|
|
1711
3936
|
|
|
@@ -1773,6 +3998,26 @@ class ValidatingAdmissionPolicySpecArgs:
|
|
|
1773
3998
|
pulumi.set(self, "variables", value)
|
|
1774
3999
|
|
|
1775
4000
|
|
|
4001
|
+
if not MYPY:
|
|
4002
|
+
class ValidatingAdmissionPolicyStatusArgsDict(TypedDict):
|
|
4003
|
+
"""
|
|
4004
|
+
ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
|
|
4005
|
+
"""
|
|
4006
|
+
conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgsDict']]]]
|
|
4007
|
+
"""
|
|
4008
|
+
The conditions represent the latest available observations of a policy's current state.
|
|
4009
|
+
"""
|
|
4010
|
+
observed_generation: NotRequired[pulumi.Input[int]]
|
|
4011
|
+
"""
|
|
4012
|
+
The generation observed by the controller.
|
|
4013
|
+
"""
|
|
4014
|
+
type_checking: NotRequired[pulumi.Input['TypeCheckingArgsDict']]
|
|
4015
|
+
"""
|
|
4016
|
+
The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
|
|
4017
|
+
"""
|
|
4018
|
+
elif False:
|
|
4019
|
+
ValidatingAdmissionPolicyStatusArgsDict: TypeAlias = Mapping[str, Any]
|
|
4020
|
+
|
|
1776
4021
|
@pulumi.input_type
|
|
1777
4022
|
class ValidatingAdmissionPolicyStatusArgs:
|
|
1778
4023
|
def __init__(__self__, *,
|
|
@@ -1829,6 +4074,34 @@ class ValidatingAdmissionPolicyStatusArgs:
|
|
|
1829
4074
|
pulumi.set(self, "type_checking", value)
|
|
1830
4075
|
|
|
1831
4076
|
|
|
4077
|
+
if not MYPY:
|
|
4078
|
+
class ValidatingAdmissionPolicyArgsDict(TypedDict):
|
|
4079
|
+
"""
|
|
4080
|
+
ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
|
|
4081
|
+
"""
|
|
4082
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
4083
|
+
"""
|
|
4084
|
+
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
|
|
4085
|
+
"""
|
|
4086
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
4087
|
+
"""
|
|
4088
|
+
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
|
|
4089
|
+
"""
|
|
4090
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
4091
|
+
"""
|
|
4092
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
4093
|
+
"""
|
|
4094
|
+
spec: NotRequired[pulumi.Input['ValidatingAdmissionPolicySpecArgsDict']]
|
|
4095
|
+
"""
|
|
4096
|
+
Specification of the desired behavior of the ValidatingAdmissionPolicy.
|
|
4097
|
+
"""
|
|
4098
|
+
status: NotRequired[pulumi.Input['ValidatingAdmissionPolicyStatusArgsDict']]
|
|
4099
|
+
"""
|
|
4100
|
+
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.
|
|
4101
|
+
"""
|
|
4102
|
+
elif False:
|
|
4103
|
+
ValidatingAdmissionPolicyArgsDict: TypeAlias = Mapping[str, Any]
|
|
4104
|
+
|
|
1832
4105
|
@pulumi.input_type
|
|
1833
4106
|
class ValidatingAdmissionPolicyArgs:
|
|
1834
4107
|
def __init__(__self__, *,
|
|
@@ -1917,6 +4190,50 @@ class ValidatingAdmissionPolicyArgs:
|
|
|
1917
4190
|
pulumi.set(self, "status", value)
|
|
1918
4191
|
|
|
1919
4192
|
|
|
4193
|
+
if not MYPY:
|
|
4194
|
+
class ValidationPatchArgsDict(TypedDict):
|
|
4195
|
+
"""
|
|
4196
|
+
Validation specifies the CEL expression which is used to apply the validation.
|
|
4197
|
+
"""
|
|
4198
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
4199
|
+
"""
|
|
4200
|
+
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 Admission request/response, organized into CEL variables as well as some other useful variables:
|
|
4201
|
+
|
|
4202
|
+
'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([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.
|
|
4203
|
+
|
|
4204
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
4205
|
+
|
|
4206
|
+
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:
|
|
4207
|
+
"true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
|
|
4208
|
+
"import", "let", "loop", "package", "namespace", "return".
|
|
4209
|
+
Examples:
|
|
4210
|
+
- Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
|
|
4211
|
+
- Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
|
|
4212
|
+
- Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
|
|
4213
|
+
|
|
4214
|
+
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:
|
|
4215
|
+
- 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
|
|
4216
|
+
non-intersecting elements in `Y` are appended, retaining their partial order.
|
|
4217
|
+
- 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
|
|
4218
|
+
are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
|
|
4219
|
+
non-intersecting keys are appended, retaining their partial order.
|
|
4220
|
+
Required.
|
|
4221
|
+
"""
|
|
4222
|
+
message: NotRequired[pulumi.Input[str]]
|
|
4223
|
+
"""
|
|
4224
|
+
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}".
|
|
4225
|
+
"""
|
|
4226
|
+
message_expression: NotRequired[pulumi.Input[str]]
|
|
4227
|
+
"""
|
|
4228
|
+
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)+")"
|
|
4229
|
+
"""
|
|
4230
|
+
reason: NotRequired[pulumi.Input[str]]
|
|
4231
|
+
"""
|
|
4232
|
+
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.
|
|
4233
|
+
"""
|
|
4234
|
+
elif False:
|
|
4235
|
+
ValidationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
4236
|
+
|
|
1920
4237
|
@pulumi.input_type
|
|
1921
4238
|
class ValidationPatchArgs:
|
|
1922
4239
|
def __init__(__self__, *,
|
|
@@ -1926,14 +4243,9 @@ class ValidationPatchArgs:
|
|
|
1926
4243
|
reason: Optional[pulumi.Input[str]] = None):
|
|
1927
4244
|
"""
|
|
1928
4245
|
Validation specifies the CEL expression which is used to apply the validation.
|
|
1929
|
-
:param pulumi.Input[str] expression: 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
|
|
4246
|
+
:param pulumi.Input[str] expression: 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 Admission request/response, organized into CEL variables as well as some other useful variables:
|
|
1930
4247
|
|
|
1931
|
-
|
|
1932
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
1933
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
1934
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
1935
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
1936
|
-
request resource.
|
|
4248
|
+
'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([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.
|
|
1937
4249
|
|
|
1938
4250
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
1939
4251
|
|
|
@@ -1969,14 +4281,9 @@ class ValidationPatchArgs:
|
|
|
1969
4281
|
@pulumi.getter
|
|
1970
4282
|
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
1971
4283
|
"""
|
|
1972
|
-
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
|
|
4284
|
+
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 Admission request/response, organized into CEL variables as well as some other useful variables:
|
|
1973
4285
|
|
|
1974
|
-
|
|
1975
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
1976
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
1977
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
1978
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
1979
|
-
request resource.
|
|
4286
|
+
'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([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.
|
|
1980
4287
|
|
|
1981
4288
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
1982
4289
|
|
|
@@ -2039,6 +4346,50 @@ class ValidationPatchArgs:
|
|
|
2039
4346
|
pulumi.set(self, "reason", value)
|
|
2040
4347
|
|
|
2041
4348
|
|
|
4349
|
+
if not MYPY:
|
|
4350
|
+
class ValidationArgsDict(TypedDict):
|
|
4351
|
+
"""
|
|
4352
|
+
Validation specifies the CEL expression which is used to apply the validation.
|
|
4353
|
+
"""
|
|
4354
|
+
expression: pulumi.Input[str]
|
|
4355
|
+
"""
|
|
4356
|
+
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 Admission request/response, organized into CEL variables as well as some other useful variables:
|
|
4357
|
+
|
|
4358
|
+
'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([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.
|
|
4359
|
+
|
|
4360
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
4361
|
+
|
|
4362
|
+
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:
|
|
4363
|
+
"true", "false", "null", "in", "as", "break", "const", "continue", "else", "for", "function", "if",
|
|
4364
|
+
"import", "let", "loop", "package", "namespace", "return".
|
|
4365
|
+
Examples:
|
|
4366
|
+
- Expression accessing a property named "namespace": {"Expression": "object.__namespace__ > 0"}
|
|
4367
|
+
- Expression accessing a property named "x-prop": {"Expression": "object.x__dash__prop > 0"}
|
|
4368
|
+
- Expression accessing a property named "redact__d": {"Expression": "object.redact__underscores__d > 0"}
|
|
4369
|
+
|
|
4370
|
+
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:
|
|
4371
|
+
- 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and
|
|
4372
|
+
non-intersecting elements in `Y` are appended, retaining their partial order.
|
|
4373
|
+
- 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values
|
|
4374
|
+
are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
|
|
4375
|
+
non-intersecting keys are appended, retaining their partial order.
|
|
4376
|
+
Required.
|
|
4377
|
+
"""
|
|
4378
|
+
message: NotRequired[pulumi.Input[str]]
|
|
4379
|
+
"""
|
|
4380
|
+
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}".
|
|
4381
|
+
"""
|
|
4382
|
+
message_expression: NotRequired[pulumi.Input[str]]
|
|
4383
|
+
"""
|
|
4384
|
+
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)+")"
|
|
4385
|
+
"""
|
|
4386
|
+
reason: NotRequired[pulumi.Input[str]]
|
|
4387
|
+
"""
|
|
4388
|
+
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.
|
|
4389
|
+
"""
|
|
4390
|
+
elif False:
|
|
4391
|
+
ValidationArgsDict: TypeAlias = Mapping[str, Any]
|
|
4392
|
+
|
|
2042
4393
|
@pulumi.input_type
|
|
2043
4394
|
class ValidationArgs:
|
|
2044
4395
|
def __init__(__self__, *,
|
|
@@ -2048,14 +4399,9 @@ class ValidationArgs:
|
|
|
2048
4399
|
reason: Optional[pulumi.Input[str]] = None):
|
|
2049
4400
|
"""
|
|
2050
4401
|
Validation specifies the CEL expression which is used to apply the validation.
|
|
2051
|
-
:param pulumi.Input[str] expression: 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
|
|
4402
|
+
:param pulumi.Input[str] expression: 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 Admission request/response, organized into CEL variables as well as some other useful variables:
|
|
2052
4403
|
|
|
2053
|
-
|
|
2054
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
2055
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
2056
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
2057
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
2058
|
-
request resource.
|
|
4404
|
+
'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([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.
|
|
2059
4405
|
|
|
2060
4406
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
2061
4407
|
|
|
@@ -2090,14 +4436,9 @@ class ValidationArgs:
|
|
|
2090
4436
|
@pulumi.getter
|
|
2091
4437
|
def expression(self) -> pulumi.Input[str]:
|
|
2092
4438
|
"""
|
|
2093
|
-
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
|
|
4439
|
+
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 Admission request/response, organized into CEL variables as well as some other useful variables:
|
|
2094
4440
|
|
|
2095
|
-
|
|
2096
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
2097
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
2098
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
2099
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
2100
|
-
request resource.
|
|
4441
|
+
'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([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.
|
|
2101
4442
|
|
|
2102
4443
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
2103
4444
|
|
|
@@ -2160,6 +4501,22 @@ class ValidationArgs:
|
|
|
2160
4501
|
pulumi.set(self, "reason", value)
|
|
2161
4502
|
|
|
2162
4503
|
|
|
4504
|
+
if not MYPY:
|
|
4505
|
+
class VariablePatchArgsDict(TypedDict):
|
|
4506
|
+
"""
|
|
4507
|
+
Variable is the definition of a variable that is used for composition.
|
|
4508
|
+
"""
|
|
4509
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
4510
|
+
"""
|
|
4511
|
+
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.
|
|
4512
|
+
"""
|
|
4513
|
+
name: NotRequired[pulumi.Input[str]]
|
|
4514
|
+
"""
|
|
4515
|
+
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`
|
|
4516
|
+
"""
|
|
4517
|
+
elif False:
|
|
4518
|
+
VariablePatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
4519
|
+
|
|
2163
4520
|
@pulumi.input_type
|
|
2164
4521
|
class VariablePatchArgs:
|
|
2165
4522
|
def __init__(__self__, *,
|
|
@@ -2200,6 +4557,22 @@ class VariablePatchArgs:
|
|
|
2200
4557
|
pulumi.set(self, "name", value)
|
|
2201
4558
|
|
|
2202
4559
|
|
|
4560
|
+
if not MYPY:
|
|
4561
|
+
class VariableArgsDict(TypedDict):
|
|
4562
|
+
"""
|
|
4563
|
+
Variable is the definition of a variable that is used for composition.
|
|
4564
|
+
"""
|
|
4565
|
+
expression: pulumi.Input[str]
|
|
4566
|
+
"""
|
|
4567
|
+
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.
|
|
4568
|
+
"""
|
|
4569
|
+
name: pulumi.Input[str]
|
|
4570
|
+
"""
|
|
4571
|
+
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`
|
|
4572
|
+
"""
|
|
4573
|
+
elif False:
|
|
4574
|
+
VariableArgsDict: TypeAlias = Mapping[str, Any]
|
|
4575
|
+
|
|
2203
4576
|
@pulumi.input_type
|
|
2204
4577
|
class VariableArgs:
|
|
2205
4578
|
def __init__(__self__, *,
|