pulumi-kubernetes 4.17.0a1723576835__py3-none-any.whl → 4.26.0a1769215986__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.
- pulumi_kubernetes/__init__.py +73 -2
- pulumi_kubernetes/_inputs.py +49 -49
- pulumi_kubernetes/_utilities.py +9 -5
- pulumi_kubernetes/admissionregistration/__init__.py +1 -0
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +27 -26
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +27 -26
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +26 -25
- pulumi_kubernetes/admissionregistration/v1/__init__.py +1 -0
- pulumi_kubernetes/admissionregistration/v1/_inputs.py +721 -721
- pulumi_kubernetes/admissionregistration/v1/outputs.py +516 -516
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +223 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +216 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +235 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +216 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +227 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +27 -26
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +26 -33
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +26 -33
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +27 -26
- pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +7 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +2219 -716
- pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1649 -530
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +27 -26
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +27 -26
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +26 -25
- pulumi_kubernetes/admissionregistration/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +717 -717
- pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +512 -512
- pulumi_kubernetes/apiextensions/__init__.py +1 -0
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +27 -26
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +26 -25
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +27 -26
- pulumi_kubernetes/apiextensions/v1/__init__.py +1 -0
- pulumi_kubernetes/apiextensions/v1/_inputs.py +912 -912
- pulumi_kubernetes/apiextensions/v1/outputs.py +624 -624
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +27 -26
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +26 -25
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +27 -26
- pulumi_kubernetes/apiextensions/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +834 -834
- pulumi_kubernetes/apiextensions/v1beta1/outputs.py +572 -572
- pulumi_kubernetes/apiregistration/__init__.py +1 -0
- pulumi_kubernetes/apiregistration/v1/APIService.py +27 -26
- pulumi_kubernetes/apiregistration/v1/APIServiceList.py +26 -25
- pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +27 -26
- pulumi_kubernetes/apiregistration/v1/__init__.py +1 -0
- pulumi_kubernetes/apiregistration/v1/_inputs.py +157 -157
- pulumi_kubernetes/apiregistration/v1/outputs.py +128 -128
- pulumi_kubernetes/apiregistration/v1beta1/APIService.py +27 -26
- pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +26 -25
- pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +27 -26
- pulumi_kubernetes/apiregistration/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +157 -157
- pulumi_kubernetes/apiregistration/v1beta1/outputs.py +128 -128
- pulumi_kubernetes/apps/__init__.py +1 -0
- pulumi_kubernetes/apps/v1/ControllerRevision.py +36 -35
- pulumi_kubernetes/apps/v1/ControllerRevisionList.py +26 -25
- pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +36 -35
- pulumi_kubernetes/apps/v1/DaemonSet.py +27 -26
- pulumi_kubernetes/apps/v1/DaemonSetList.py +26 -25
- pulumi_kubernetes/apps/v1/DaemonSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1/Deployment.py +27 -26
- pulumi_kubernetes/apps/v1/DeploymentList.py +26 -25
- pulumi_kubernetes/apps/v1/DeploymentPatch.py +27 -26
- pulumi_kubernetes/apps/v1/ReplicaSet.py +27 -26
- pulumi_kubernetes/apps/v1/ReplicaSetList.py +30 -29
- pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1/StatefulSet.py +27 -26
- pulumi_kubernetes/apps/v1/StatefulSetList.py +26 -25
- pulumi_kubernetes/apps/v1/StatefulSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1/__init__.py +1 -0
- pulumi_kubernetes/apps/v1/_inputs.py +835 -782
- pulumi_kubernetes/apps/v1/outputs.py +806 -733
- pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +36 -35
- pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +26 -25
- pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +36 -35
- pulumi_kubernetes/apps/v1beta1/Deployment.py +27 -26
- pulumi_kubernetes/apps/v1beta1/DeploymentList.py +26 -25
- pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +27 -26
- pulumi_kubernetes/apps/v1beta1/StatefulSet.py +27 -26
- pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +26 -25
- pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/apps/v1beta1/_inputs.py +409 -409
- pulumi_kubernetes/apps/v1beta1/outputs.py +381 -381
- pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +36 -35
- pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +26 -25
- pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +36 -35
- pulumi_kubernetes/apps/v1beta2/DaemonSet.py +27 -26
- pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +26 -25
- pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1beta2/Deployment.py +27 -26
- pulumi_kubernetes/apps/v1beta2/DeploymentList.py +26 -25
- pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +27 -26
- pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +27 -26
- pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +26 -25
- pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1beta2/StatefulSet.py +27 -26
- pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +26 -25
- pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +27 -26
- pulumi_kubernetes/apps/v1beta2/__init__.py +1 -0
- pulumi_kubernetes/apps/v1beta2/_inputs.py +655 -655
- pulumi_kubernetes/apps/v1beta2/outputs.py +645 -645
- pulumi_kubernetes/auditregistration/__init__.py +1 -0
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +26 -25
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +26 -25
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +26 -25
- pulumi_kubernetes/auditregistration/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +145 -145
- pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +101 -101
- pulumi_kubernetes/autoscaling/__init__.py +1 -0
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +27 -26
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +26 -25
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +27 -26
- pulumi_kubernetes/autoscaling/v1/__init__.py +1 -0
- pulumi_kubernetes/autoscaling/v1/_inputs.py +120 -120
- pulumi_kubernetes/autoscaling/v1/outputs.py +102 -102
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +27 -26
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +26 -25
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +27 -26
- pulumi_kubernetes/autoscaling/v2/__init__.py +1 -0
- pulumi_kubernetes/autoscaling/v2/_inputs.py +500 -420
- pulumi_kubernetes/autoscaling/v2/outputs.py +438 -382
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +27 -26
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +26 -25
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +27 -26
- pulumi_kubernetes/autoscaling/v2beta1/__init__.py +1 -0
- pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +451 -451
- pulumi_kubernetes/autoscaling/v2beta1/outputs.py +424 -424
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +27 -26
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +26 -25
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +27 -26
- pulumi_kubernetes/autoscaling/v2beta2/__init__.py +1 -0
- pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +398 -398
- pulumi_kubernetes/autoscaling/v2beta2/outputs.py +366 -366
- pulumi_kubernetes/batch/__init__.py +1 -0
- pulumi_kubernetes/batch/v1/CronJob.py +27 -26
- pulumi_kubernetes/batch/v1/CronJobList.py +26 -25
- pulumi_kubernetes/batch/v1/CronJobPatch.py +27 -26
- pulumi_kubernetes/batch/v1/Job.py +27 -26
- pulumi_kubernetes/batch/v1/JobList.py +26 -25
- pulumi_kubernetes/batch/v1/JobPatch.py +27 -26
- pulumi_kubernetes/batch/v1/__init__.py +1 -0
- pulumi_kubernetes/batch/v1/_inputs.py +508 -538
- pulumi_kubernetes/batch/v1/outputs.py +427 -451
- pulumi_kubernetes/batch/v1beta1/CronJob.py +27 -26
- pulumi_kubernetes/batch/v1beta1/CronJobList.py +26 -25
- pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +27 -26
- pulumi_kubernetes/batch/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/batch/v1beta1/_inputs.py +101 -101
- pulumi_kubernetes/batch/v1beta1/outputs.py +76 -76
- pulumi_kubernetes/batch/v2alpha1/CronJob.py +27 -26
- pulumi_kubernetes/batch/v2alpha1/CronJobList.py +26 -25
- pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +27 -26
- pulumi_kubernetes/batch/v2alpha1/__init__.py +1 -0
- pulumi_kubernetes/batch/v2alpha1/_inputs.py +101 -101
- pulumi_kubernetes/batch/v2alpha1/outputs.py +76 -76
- pulumi_kubernetes/certificates/__init__.py +1 -0
- pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +27 -26
- pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +26 -25
- pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +27 -26
- pulumi_kubernetes/certificates/v1/__init__.py +1 -0
- pulumi_kubernetes/certificates/v1/_inputs.py +155 -155
- pulumi_kubernetes/certificates/v1/outputs.py +134 -134
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +28 -25
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +26 -25
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +28 -25
- pulumi_kubernetes/certificates/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/certificates/v1alpha1/_inputs.py +39 -39
- pulumi_kubernetes/certificates/v1alpha1/outputs.py +27 -27
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +27 -26
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +26 -25
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +27 -26
- pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundle.py +226 -0
- pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundleList.py +216 -0
- pulumi_kubernetes/certificates/v1beta1/ClusterTrustBundlePatch.py +237 -0
- pulumi_kubernetes/certificates/v1beta1/__init__.py +4 -0
- pulumi_kubernetes/certificates/v1beta1/_inputs.py +436 -144
- pulumi_kubernetes/certificates/v1beta1/outputs.py +369 -128
- pulumi_kubernetes/coordination/__init__.py +4 -0
- pulumi_kubernetes/coordination/v1/Lease.py +26 -25
- pulumi_kubernetes/coordination/v1/LeaseList.py +26 -25
- pulumi_kubernetes/coordination/v1/LeasePatch.py +26 -25
- pulumi_kubernetes/coordination/v1/__init__.py +1 -0
- pulumi_kubernetes/coordination/v1/_inputs.py +99 -99
- pulumi_kubernetes/coordination/v1/outputs.py +67 -67
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +28 -25
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +26 -25
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +28 -25
- pulumi_kubernetes/coordination/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/coordination/v1alpha1/_inputs.py +87 -87
- pulumi_kubernetes/coordination/v1alpha1/outputs.py +59 -59
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +217 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +216 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +229 -0
- pulumi_kubernetes/coordination/v1alpha2/__init__.py +13 -0
- pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
- pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
- pulumi_kubernetes/coordination/v1beta1/Lease.py +26 -25
- pulumi_kubernetes/coordination/v1beta1/LeaseCandidate.py +217 -0
- pulumi_kubernetes/coordination/v1beta1/LeaseCandidateList.py +216 -0
- pulumi_kubernetes/coordination/v1beta1/LeaseCandidatePatch.py +229 -0
- pulumi_kubernetes/coordination/v1beta1/LeaseList.py +26 -25
- pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +26 -25
- pulumi_kubernetes/coordination/v1beta1/__init__.py +4 -0
- pulumi_kubernetes/coordination/v1beta1/_inputs.py +446 -75
- pulumi_kubernetes/coordination/v1beta1/outputs.py +343 -51
- pulumi_kubernetes/core/__init__.py +1 -0
- pulumi_kubernetes/core/v1/Binding.py +28 -27
- pulumi_kubernetes/core/v1/BindingPatch.py +28 -27
- pulumi_kubernetes/core/v1/ConfigMap.py +54 -53
- pulumi_kubernetes/core/v1/ConfigMapList.py +26 -25
- pulumi_kubernetes/core/v1/ConfigMapPatch.py +54 -53
- pulumi_kubernetes/core/v1/Endpoints.py +34 -25
- pulumi_kubernetes/core/v1/EndpointsList.py +28 -27
- pulumi_kubernetes/core/v1/EndpointsPatch.py +34 -25
- pulumi_kubernetes/core/v1/Event.py +132 -131
- pulumi_kubernetes/core/v1/EventList.py +26 -25
- pulumi_kubernetes/core/v1/EventPatch.py +132 -131
- pulumi_kubernetes/core/v1/LimitRange.py +26 -25
- pulumi_kubernetes/core/v1/LimitRangeList.py +26 -25
- pulumi_kubernetes/core/v1/LimitRangePatch.py +26 -25
- pulumi_kubernetes/core/v1/Namespace.py +27 -26
- pulumi_kubernetes/core/v1/NamespaceList.py +26 -25
- pulumi_kubernetes/core/v1/NamespacePatch.py +27 -26
- pulumi_kubernetes/core/v1/Node.py +27 -26
- pulumi_kubernetes/core/v1/NodeList.py +26 -25
- pulumi_kubernetes/core/v1/NodePatch.py +27 -26
- pulumi_kubernetes/core/v1/PersistentVolume.py +27 -26
- pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +27 -26
- pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +26 -25
- pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +27 -26
- pulumi_kubernetes/core/v1/PersistentVolumeList.py +26 -25
- pulumi_kubernetes/core/v1/PersistentVolumePatch.py +27 -26
- pulumi_kubernetes/core/v1/Pod.py +27 -26
- pulumi_kubernetes/core/v1/PodList.py +26 -25
- pulumi_kubernetes/core/v1/PodPatch.py +27 -26
- pulumi_kubernetes/core/v1/PodTemplate.py +26 -25
- pulumi_kubernetes/core/v1/PodTemplateList.py +26 -25
- pulumi_kubernetes/core/v1/PodTemplatePatch.py +26 -25
- pulumi_kubernetes/core/v1/ReplicationController.py +27 -26
- pulumi_kubernetes/core/v1/ReplicationControllerList.py +26 -25
- pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +27 -26
- pulumi_kubernetes/core/v1/ResourceQuota.py +27 -26
- pulumi_kubernetes/core/v1/ResourceQuotaList.py +26 -25
- pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +27 -26
- pulumi_kubernetes/core/v1/Secret.py +64 -63
- pulumi_kubernetes/core/v1/SecretList.py +26 -25
- pulumi_kubernetes/core/v1/SecretPatch.py +68 -65
- pulumi_kubernetes/core/v1/Service.py +33 -48
- pulumi_kubernetes/core/v1/ServiceAccount.py +42 -41
- pulumi_kubernetes/core/v1/ServiceAccountList.py +26 -25
- pulumi_kubernetes/core/v1/ServiceAccountPatch.py +42 -41
- pulumi_kubernetes/core/v1/ServiceList.py +26 -25
- pulumi_kubernetes/core/v1/ServicePatch.py +33 -48
- pulumi_kubernetes/core/v1/__init__.py +1 -0
- pulumi_kubernetes/core/v1/_enums.py +4 -1
- pulumi_kubernetes/core/v1/_inputs.py +7862 -7453
- pulumi_kubernetes/core/v1/outputs.py +5980 -5608
- pulumi_kubernetes/discovery/__init__.py +1 -0
- pulumi_kubernetes/discovery/v1/EndpointSlice.py +46 -45
- pulumi_kubernetes/discovery/v1/EndpointSliceList.py +26 -25
- pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +46 -45
- pulumi_kubernetes/discovery/v1/__init__.py +1 -0
- pulumi_kubernetes/discovery/v1/_inputs.py +334 -219
- pulumi_kubernetes/discovery/v1/outputs.py +224 -149
- pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +38 -37
- pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +26 -25
- pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +38 -37
- pulumi_kubernetes/discovery/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/discovery/v1beta1/_inputs.py +158 -158
- pulumi_kubernetes/discovery/v1beta1/outputs.py +108 -108
- pulumi_kubernetes/events/__init__.py +1 -0
- pulumi_kubernetes/events/v1/Event.py +132 -131
- pulumi_kubernetes/events/v1/EventList.py +26 -25
- pulumi_kubernetes/events/v1/EventPatch.py +132 -131
- pulumi_kubernetes/events/v1/__init__.py +1 -0
- pulumi_kubernetes/events/v1/_inputs.py +102 -102
- pulumi_kubernetes/events/v1/outputs.py +70 -70
- pulumi_kubernetes/events/v1beta1/Event.py +132 -131
- pulumi_kubernetes/events/v1beta1/EventList.py +26 -25
- pulumi_kubernetes/events/v1beta1/EventPatch.py +132 -131
- pulumi_kubernetes/events/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/events/v1beta1/_inputs.py +114 -114
- pulumi_kubernetes/events/v1beta1/outputs.py +78 -78
- pulumi_kubernetes/extensions/__init__.py +1 -0
- pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/Deployment.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/Ingress.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/IngressList.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +26 -25
- pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +27 -26
- pulumi_kubernetes/extensions/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/extensions/v1beta1/_inputs.py +1097 -1097
- pulumi_kubernetes/extensions/v1beta1/outputs.py +899 -899
- pulumi_kubernetes/flowcontrol/__init__.py +1 -0
- pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +27 -26
- pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +27 -26
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1/__init__.py +1 -0
- pulumi_kubernetes/flowcontrol/v1/_inputs.py +419 -419
- pulumi_kubernetes/flowcontrol/v1/outputs.py +333 -333
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +27 -26
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +27 -26
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +369 -369
- pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +299 -299
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +369 -369
- pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +299 -299
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta2/__init__.py +1 -0
- pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +419 -419
- pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +333 -333
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +26 -25
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +27 -26
- pulumi_kubernetes/flowcontrol/v1beta3/__init__.py +1 -0
- pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +431 -431
- pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +341 -341
- pulumi_kubernetes/helm/__init__.py +1 -0
- pulumi_kubernetes/helm/v3/Release.py +317 -316
- pulumi_kubernetes/helm/v3/__init__.py +1 -0
- pulumi_kubernetes/helm/v3/_inputs.py +39 -39
- pulumi_kubernetes/helm/v3/outputs.py +55 -55
- pulumi_kubernetes/helm/v4/Chart.py +114 -87
- pulumi_kubernetes/helm/v4/__init__.py +1 -0
- pulumi_kubernetes/helm/v4/_inputs.py +36 -36
- pulumi_kubernetes/kustomize/__init__.py +1 -0
- pulumi_kubernetes/kustomize/v2/Directory.py +36 -35
- pulumi_kubernetes/kustomize/v2/__init__.py +1 -0
- pulumi_kubernetes/meta/__init__.py +1 -0
- pulumi_kubernetes/meta/v1/Status.py +58 -57
- pulumi_kubernetes/meta/v1/StatusPatch.py +58 -57
- pulumi_kubernetes/meta/v1/__init__.py +1 -0
- pulumi_kubernetes/meta/v1/_inputs.py +551 -551
- pulumi_kubernetes/meta/v1/outputs.py +395 -395
- pulumi_kubernetes/networking/__init__.py +1 -0
- pulumi_kubernetes/networking/v1/IPAddress.py +217 -0
- pulumi_kubernetes/networking/v1/IPAddressList.py +216 -0
- pulumi_kubernetes/networking/v1/IPAddressPatch.py +229 -0
- pulumi_kubernetes/networking/v1/Ingress.py +27 -26
- pulumi_kubernetes/networking/v1/IngressClass.py +26 -25
- pulumi_kubernetes/networking/v1/IngressClassList.py +26 -25
- pulumi_kubernetes/networking/v1/IngressClassPatch.py +26 -25
- pulumi_kubernetes/networking/v1/IngressList.py +26 -25
- pulumi_kubernetes/networking/v1/IngressPatch.py +27 -26
- pulumi_kubernetes/networking/v1/NetworkPolicy.py +27 -26
- pulumi_kubernetes/networking/v1/NetworkPolicyList.py +26 -25
- pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +27 -26
- pulumi_kubernetes/networking/v1/ServiceCIDR.py +227 -0
- pulumi_kubernetes/networking/v1/ServiceCIDRList.py +216 -0
- pulumi_kubernetes/networking/v1/ServiceCIDRPatch.py +239 -0
- pulumi_kubernetes/networking/v1/__init__.py +7 -0
- pulumi_kubernetes/networking/v1/_inputs.py +970 -371
- pulumi_kubernetes/networking/v1/outputs.py +746 -285
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +26 -25
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +26 -25
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +26 -25
- pulumi_kubernetes/networking/v1alpha1/IPAddress.py +27 -26
- pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +26 -25
- pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +27 -26
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +28 -27
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +26 -25
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +28 -27
- pulumi_kubernetes/networking/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/networking/v1alpha1/_inputs.py +157 -157
- pulumi_kubernetes/networking/v1alpha1/outputs.py +110 -110
- pulumi_kubernetes/networking/v1beta1/IPAddress.py +27 -26
- pulumi_kubernetes/networking/v1beta1/IPAddressList.py +26 -25
- pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +27 -26
- pulumi_kubernetes/networking/v1beta1/Ingress.py +27 -26
- pulumi_kubernetes/networking/v1beta1/IngressClass.py +26 -25
- pulumi_kubernetes/networking/v1beta1/IngressClassList.py +26 -25
- pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +26 -25
- pulumi_kubernetes/networking/v1beta1/IngressList.py +26 -25
- pulumi_kubernetes/networking/v1beta1/IngressPatch.py +27 -26
- pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +28 -27
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +26 -25
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +28 -27
- pulumi_kubernetes/networking/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/networking/v1beta1/_inputs.py +247 -247
- pulumi_kubernetes/networking/v1beta1/outputs.py +173 -173
- pulumi_kubernetes/node/__init__.py +1 -0
- pulumi_kubernetes/node/v1/RuntimeClass.py +38 -37
- pulumi_kubernetes/node/v1/RuntimeClassList.py +26 -25
- pulumi_kubernetes/node/v1/RuntimeClassPatch.py +38 -37
- pulumi_kubernetes/node/v1/__init__.py +1 -0
- pulumi_kubernetes/node/v1/_inputs.py +48 -48
- pulumi_kubernetes/node/v1/outputs.py +34 -34
- pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +26 -25
- pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +26 -25
- pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +26 -25
- pulumi_kubernetes/node/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/node/v1alpha1/_inputs.py +57 -57
- pulumi_kubernetes/node/v1alpha1/outputs.py +41 -41
- pulumi_kubernetes/node/v1beta1/RuntimeClass.py +38 -37
- pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +26 -25
- pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +38 -37
- pulumi_kubernetes/node/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/node/v1beta1/_inputs.py +48 -48
- pulumi_kubernetes/node/v1beta1/outputs.py +34 -34
- pulumi_kubernetes/policy/__init__.py +1 -0
- pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +27 -26
- pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +26 -25
- pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +27 -26
- pulumi_kubernetes/policy/v1/__init__.py +1 -0
- pulumi_kubernetes/policy/v1/_inputs.py +91 -103
- pulumi_kubernetes/policy/v1/outputs.py +80 -88
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +27 -26
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +26 -25
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +27 -26
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +26 -25
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +26 -25
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +26 -25
- pulumi_kubernetes/policy/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/policy/v1beta1/_inputs.py +470 -470
- pulumi_kubernetes/policy/v1beta1/outputs.py +342 -342
- pulumi_kubernetes/provider.py +139 -99
- pulumi_kubernetes/pulumi-plugin.json +1 -1
- pulumi_kubernetes/rbac/__init__.py +1 -0
- pulumi_kubernetes/rbac/v1/ClusterRole.py +28 -27
- pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +28 -27
- pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +26 -25
- pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +28 -27
- pulumi_kubernetes/rbac/v1/ClusterRoleList.py +26 -25
- pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +28 -27
- pulumi_kubernetes/rbac/v1/Role.py +26 -25
- pulumi_kubernetes/rbac/v1/RoleBinding.py +28 -27
- pulumi_kubernetes/rbac/v1/RoleBindingList.py +26 -25
- pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +28 -27
- pulumi_kubernetes/rbac/v1/RoleList.py +26 -25
- pulumi_kubernetes/rbac/v1/RolePatch.py +26 -25
- pulumi_kubernetes/rbac/v1/__init__.py +1 -0
- pulumi_kubernetes/rbac/v1/_inputs.py +206 -206
- pulumi_kubernetes/rbac/v1/outputs.py +142 -142
- pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +28 -27
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +28 -27
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +26 -25
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +28 -27
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +26 -25
- pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +28 -27
- pulumi_kubernetes/rbac/v1alpha1/Role.py +26 -25
- pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +28 -27
- pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +26 -25
- pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +28 -27
- pulumi_kubernetes/rbac/v1alpha1/RoleList.py +26 -25
- pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +26 -25
- pulumi_kubernetes/rbac/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/rbac/v1alpha1/_inputs.py +206 -206
- pulumi_kubernetes/rbac/v1alpha1/outputs.py +142 -142
- pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +28 -27
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +28 -27
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +26 -25
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +28 -27
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +26 -25
- pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +28 -27
- pulumi_kubernetes/rbac/v1beta1/Role.py +26 -25
- pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +28 -27
- pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +26 -25
- pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +28 -27
- pulumi_kubernetes/rbac/v1beta1/RoleList.py +26 -25
- pulumi_kubernetes/rbac/v1beta1/RolePatch.py +26 -25
- pulumi_kubernetes/rbac/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/rbac/v1beta1/_inputs.py +206 -206
- pulumi_kubernetes/rbac/v1beta1/outputs.py +142 -142
- pulumi_kubernetes/resource/__init__.py +7 -0
- pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +27 -26
- pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +26 -25
- pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +28 -27
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +26 -25
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +28 -27
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +27 -26
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +26 -25
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +38 -37
- pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +26 -25
- pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +38 -37
- pulumi_kubernetes/resource/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/resource/v1alpha1/_inputs.py +268 -268
- pulumi_kubernetes/resource/v1alpha1/outputs.py +230 -230
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +27 -26
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +28 -27
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +38 -37
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +38 -37
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +28 -27
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +27 -26
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +48 -47
- pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +30 -29
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +30 -29
- pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +48 -47
- pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +47 -46
- pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +26 -25
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +47 -46
- pulumi_kubernetes/resource/v1alpha2/__init__.py +1 -0
- pulumi_kubernetes/resource/v1alpha2/_inputs.py +550 -550
- pulumi_kubernetes/resource/v1alpha2/outputs.py +449 -449
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +28 -25
- pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +26 -25
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +28 -25
- pulumi_kubernetes/resource/v1alpha3/DeviceTaintRule.py +224 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceTaintRuleList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceTaintRulePatch.py +235 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +27 -26
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +26 -25
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +28 -27
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +26 -25
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +28 -27
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +27 -26
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +26 -25
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +34 -33
- pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +246 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +27 -26
- pulumi_kubernetes/resource/v1alpha3/__init__.py +5 -0
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +3400 -606
- pulumi_kubernetes/resource/v1alpha3/outputs.py +2933 -565
- pulumi_kubernetes/resource/v1beta1/DeviceClass.py +238 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +249 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +233 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +217 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +244 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +230 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +241 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +247 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +217 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +258 -0
- pulumi_kubernetes/resource/v1beta1/__init__.py +22 -0
- pulumi_kubernetes/resource/v1beta1/_inputs.py +5735 -0
- pulumi_kubernetes/resource/v1beta1/outputs.py +4736 -0
- pulumi_kubernetes/resource/v1beta2/DeviceClass.py +238 -0
- pulumi_kubernetes/resource/v1beta2/DeviceClassList.py +216 -0
- pulumi_kubernetes/resource/v1beta2/DeviceClassPatch.py +249 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaim.py +233 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimList.py +217 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimPatch.py +244 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplate.py +230 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplateList.py +216 -0
- pulumi_kubernetes/resource/v1beta2/ResourceClaimTemplatePatch.py +241 -0
- pulumi_kubernetes/resource/v1beta2/ResourceSlice.py +247 -0
- pulumi_kubernetes/resource/v1beta2/ResourceSliceList.py +217 -0
- pulumi_kubernetes/resource/v1beta2/ResourceSlicePatch.py +258 -0
- pulumi_kubernetes/resource/v1beta2/__init__.py +22 -0
- pulumi_kubernetes/resource/v1beta2/_inputs.py +5680 -0
- pulumi_kubernetes/resource/v1beta2/outputs.py +4725 -0
- pulumi_kubernetes/scheduling/__init__.py +1 -0
- pulumi_kubernetes/scheduling/v1/PriorityClass.py +64 -63
- pulumi_kubernetes/scheduling/v1/PriorityClassList.py +26 -25
- pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +64 -63
- pulumi_kubernetes/scheduling/v1/__init__.py +1 -0
- pulumi_kubernetes/scheduling/v1/_inputs.py +38 -38
- pulumi_kubernetes/scheduling/v1/outputs.py +26 -26
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +64 -63
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +26 -25
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +64 -63
- pulumi_kubernetes/scheduling/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +38 -38
- pulumi_kubernetes/scheduling/v1alpha1/outputs.py +26 -26
- pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +64 -63
- pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +26 -25
- pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +64 -63
- pulumi_kubernetes/scheduling/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/scheduling/v1beta1/_inputs.py +38 -38
- pulumi_kubernetes/scheduling/v1beta1/outputs.py +26 -26
- pulumi_kubernetes/settings/__init__.py +1 -0
- pulumi_kubernetes/settings/v1alpha1/PodPreset.py +26 -25
- pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +26 -25
- pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +26 -25
- pulumi_kubernetes/settings/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/settings/v1alpha1/_inputs.py +25 -25
- pulumi_kubernetes/settings/v1alpha1/outputs.py +21 -21
- pulumi_kubernetes/storage/__init__.py +1 -0
- pulumi_kubernetes/storage/v1/CSIDriver.py +26 -25
- pulumi_kubernetes/storage/v1/CSIDriverList.py +26 -25
- pulumi_kubernetes/storage/v1/CSIDriverPatch.py +26 -25
- pulumi_kubernetes/storage/v1/CSINode.py +26 -25
- pulumi_kubernetes/storage/v1/CSINodeList.py +26 -25
- pulumi_kubernetes/storage/v1/CSINodePatch.py +26 -25
- pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +56 -55
- pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +26 -25
- pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +56 -55
- pulumi_kubernetes/storage/v1/StorageClass.py +86 -85
- pulumi_kubernetes/storage/v1/StorageClassList.py +26 -25
- pulumi_kubernetes/storage/v1/StorageClassPatch.py +86 -85
- pulumi_kubernetes/storage/v1/VolumeAttachment.py +27 -26
- pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +26 -25
- pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +27 -26
- pulumi_kubernetes/storage/v1/__init__.py +1 -0
- pulumi_kubernetes/storage/v1/_inputs.py +448 -358
- pulumi_kubernetes/storage/v1/outputs.py +376 -266
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +27 -26
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +26 -25
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +27 -26
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +44 -43
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +26 -25
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +44 -43
- pulumi_kubernetes/storage/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/storage/v1alpha1/_inputs.py +107 -107
- pulumi_kubernetes/storage/v1alpha1/outputs.py +93 -93
- pulumi_kubernetes/storage/v1beta1/CSIDriver.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSINode.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSINodeList.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +56 -55
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +26 -25
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +56 -55
- pulumi_kubernetes/storage/v1beta1/StorageClass.py +86 -85
- pulumi_kubernetes/storage/v1beta1/StorageClassList.py +26 -25
- pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +86 -85
- pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +27 -26
- pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +26 -25
- pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +27 -26
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +44 -43
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +26 -25
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +44 -43
- pulumi_kubernetes/storage/v1beta1/__init__.py +1 -0
- pulumi_kubernetes/storage/v1beta1/_inputs.py +367 -367
- pulumi_kubernetes/storage/v1beta1/outputs.py +271 -271
- pulumi_kubernetes/storagemigration/__init__.py +1 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +27 -26
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +26 -25
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +27 -26
- pulumi_kubernetes/storagemigration/v1alpha1/__init__.py +1 -0
- pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +103 -103
- pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +96 -96
- pulumi_kubernetes/yaml/__init__.py +1 -0
- pulumi_kubernetes/yaml/v2/ConfigFile.py +31 -28
- pulumi_kubernetes/yaml/v2/ConfigGroup.py +36 -35
- pulumi_kubernetes/yaml/v2/__init__.py +1 -0
- pulumi_kubernetes/yaml/yaml.py +198 -0
- {pulumi_kubernetes-4.17.0a1723576835.dist-info → pulumi_kubernetes-4.26.0a1769215986.dist-info}/METADATA +9 -9
- pulumi_kubernetes-4.26.0a1769215986.dist-info/RECORD +709 -0
- {pulumi_kubernetes-4.17.0a1723576835.dist-info → pulumi_kubernetes-4.26.0a1769215986.dist-info}/WHEEL +1 -1
- pulumi_kubernetes-4.17.0a1723576835.dist-info/RECORD +0 -651
- {pulumi_kubernetes-4.17.0a1723576835.dist-info → pulumi_kubernetes-4.26.0a1769215986.dist-info}/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumigen. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import builtins as _builtins
|
|
6
6
|
import warnings
|
|
7
7
|
import sys
|
|
8
8
|
import pulumi
|
|
@@ -17,14 +17,26 @@ from . import outputs
|
|
|
17
17
|
from ... import meta as _meta
|
|
18
18
|
|
|
19
19
|
__all__ = [
|
|
20
|
+
'ApplyConfiguration',
|
|
21
|
+
'ApplyConfigurationPatch',
|
|
20
22
|
'AuditAnnotation',
|
|
21
23
|
'AuditAnnotationPatch',
|
|
22
24
|
'ExpressionWarning',
|
|
23
25
|
'ExpressionWarningPatch',
|
|
26
|
+
'JSONPatch',
|
|
27
|
+
'JSONPatchPatch',
|
|
24
28
|
'MatchCondition',
|
|
25
29
|
'MatchConditionPatch',
|
|
26
30
|
'MatchResources',
|
|
27
31
|
'MatchResourcesPatch',
|
|
32
|
+
'MutatingAdmissionPolicy',
|
|
33
|
+
'MutatingAdmissionPolicyBinding',
|
|
34
|
+
'MutatingAdmissionPolicyBindingSpec',
|
|
35
|
+
'MutatingAdmissionPolicyBindingSpecPatch',
|
|
36
|
+
'MutatingAdmissionPolicySpec',
|
|
37
|
+
'MutatingAdmissionPolicySpecPatch',
|
|
38
|
+
'Mutation',
|
|
39
|
+
'MutationPatch',
|
|
28
40
|
'NamedRuleWithOperations',
|
|
29
41
|
'NamedRuleWithOperationsPatch',
|
|
30
42
|
'ParamKind',
|
|
@@ -47,6 +59,160 @@ __all__ = [
|
|
|
47
59
|
'VariablePatch',
|
|
48
60
|
]
|
|
49
61
|
|
|
62
|
+
@pulumi.output_type
|
|
63
|
+
class ApplyConfiguration(dict):
|
|
64
|
+
"""
|
|
65
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
66
|
+
"""
|
|
67
|
+
def __init__(__self__, *,
|
|
68
|
+
expression: Optional[_builtins.str] = None):
|
|
69
|
+
"""
|
|
70
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
71
|
+
:param _builtins.str expression: expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
72
|
+
|
|
73
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
74
|
+
|
|
75
|
+
Object{
|
|
76
|
+
spec: Object.spec{
|
|
77
|
+
serviceAccountName: "example"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
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.
|
|
82
|
+
|
|
83
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
84
|
+
|
|
85
|
+
- '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')
|
|
86
|
+
|
|
87
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
88
|
+
|
|
89
|
+
- '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.
|
|
90
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
91
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
92
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
93
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
94
|
+
request resource.
|
|
95
|
+
|
|
96
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
97
|
+
|
|
98
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
99
|
+
"""
|
|
100
|
+
if expression is not None:
|
|
101
|
+
pulumi.set(__self__, "expression", expression)
|
|
102
|
+
|
|
103
|
+
@_builtins.property
|
|
104
|
+
@pulumi.getter
|
|
105
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
106
|
+
"""
|
|
107
|
+
expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
108
|
+
|
|
109
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
110
|
+
|
|
111
|
+
Object{
|
|
112
|
+
spec: Object.spec{
|
|
113
|
+
serviceAccountName: "example"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
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.
|
|
118
|
+
|
|
119
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
120
|
+
|
|
121
|
+
- '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')
|
|
122
|
+
|
|
123
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
124
|
+
|
|
125
|
+
- '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.
|
|
126
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
127
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
128
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
129
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
130
|
+
request resource.
|
|
131
|
+
|
|
132
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
133
|
+
|
|
134
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "expression")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
@pulumi.output_type
|
|
140
|
+
class ApplyConfigurationPatch(dict):
|
|
141
|
+
"""
|
|
142
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
143
|
+
"""
|
|
144
|
+
def __init__(__self__, *,
|
|
145
|
+
expression: Optional[_builtins.str] = None):
|
|
146
|
+
"""
|
|
147
|
+
ApplyConfiguration defines the desired configuration values of an object.
|
|
148
|
+
:param _builtins.str expression: expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
149
|
+
|
|
150
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
151
|
+
|
|
152
|
+
Object{
|
|
153
|
+
spec: Object.spec{
|
|
154
|
+
serviceAccountName: "example"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
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.
|
|
159
|
+
|
|
160
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
161
|
+
|
|
162
|
+
- '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')
|
|
163
|
+
|
|
164
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
165
|
+
|
|
166
|
+
- '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.
|
|
167
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
168
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
169
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
170
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
171
|
+
request resource.
|
|
172
|
+
|
|
173
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
174
|
+
|
|
175
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
176
|
+
"""
|
|
177
|
+
if expression is not None:
|
|
178
|
+
pulumi.set(__self__, "expression", expression)
|
|
179
|
+
|
|
180
|
+
@_builtins.property
|
|
181
|
+
@pulumi.getter
|
|
182
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
183
|
+
"""
|
|
184
|
+
expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec
|
|
185
|
+
|
|
186
|
+
Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:
|
|
187
|
+
|
|
188
|
+
Object{
|
|
189
|
+
spec: Object.spec{
|
|
190
|
+
serviceAccountName: "example"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
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.
|
|
195
|
+
|
|
196
|
+
CEL expressions have access to the object types needed to create apply configurations:
|
|
197
|
+
|
|
198
|
+
- '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')
|
|
199
|
+
|
|
200
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
201
|
+
|
|
202
|
+
- '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.
|
|
203
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
204
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
205
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
206
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
207
|
+
request resource.
|
|
208
|
+
|
|
209
|
+
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
210
|
+
|
|
211
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
212
|
+
"""
|
|
213
|
+
return pulumi.get(self, "expression")
|
|
214
|
+
|
|
215
|
+
|
|
50
216
|
@pulumi.output_type
|
|
51
217
|
class AuditAnnotation(dict):
|
|
52
218
|
"""
|
|
@@ -70,18 +236,18 @@ class AuditAnnotation(dict):
|
|
|
70
236
|
return super().get(key, default)
|
|
71
237
|
|
|
72
238
|
def __init__(__self__, *,
|
|
73
|
-
key: str,
|
|
74
|
-
value_expression: str):
|
|
239
|
+
key: _builtins.str,
|
|
240
|
+
value_expression: _builtins.str):
|
|
75
241
|
"""
|
|
76
242
|
AuditAnnotation describes how to produce an audit annotation for an API request.
|
|
77
|
-
:param str key: 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.
|
|
243
|
+
:param _builtins.str key: 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.
|
|
78
244
|
|
|
79
245
|
The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
|
|
80
246
|
|
|
81
247
|
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.
|
|
82
248
|
|
|
83
249
|
Required.
|
|
84
|
-
:param str value_expression: 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.
|
|
250
|
+
:param _builtins.str value_expression: 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.
|
|
85
251
|
|
|
86
252
|
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.
|
|
87
253
|
|
|
@@ -90,9 +256,9 @@ class AuditAnnotation(dict):
|
|
|
90
256
|
pulumi.set(__self__, "key", key)
|
|
91
257
|
pulumi.set(__self__, "value_expression", value_expression)
|
|
92
258
|
|
|
93
|
-
@property
|
|
259
|
+
@_builtins.property
|
|
94
260
|
@pulumi.getter
|
|
95
|
-
def key(self) -> str:
|
|
261
|
+
def key(self) -> _builtins.str:
|
|
96
262
|
"""
|
|
97
263
|
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.
|
|
98
264
|
|
|
@@ -104,9 +270,9 @@ class AuditAnnotation(dict):
|
|
|
104
270
|
"""
|
|
105
271
|
return pulumi.get(self, "key")
|
|
106
272
|
|
|
107
|
-
@property
|
|
273
|
+
@_builtins.property
|
|
108
274
|
@pulumi.getter(name="valueExpression")
|
|
109
|
-
def value_expression(self) -> str:
|
|
275
|
+
def value_expression(self) -> _builtins.str:
|
|
110
276
|
"""
|
|
111
277
|
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.
|
|
112
278
|
|
|
@@ -140,18 +306,18 @@ class AuditAnnotationPatch(dict):
|
|
|
140
306
|
return super().get(key, default)
|
|
141
307
|
|
|
142
308
|
def __init__(__self__, *,
|
|
143
|
-
key: Optional[str] = None,
|
|
144
|
-
value_expression: Optional[str] = None):
|
|
309
|
+
key: Optional[_builtins.str] = None,
|
|
310
|
+
value_expression: Optional[_builtins.str] = None):
|
|
145
311
|
"""
|
|
146
312
|
AuditAnnotation describes how to produce an audit annotation for an API request.
|
|
147
|
-
:param str key: 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.
|
|
313
|
+
:param _builtins.str key: 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.
|
|
148
314
|
|
|
149
315
|
The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}".
|
|
150
316
|
|
|
151
317
|
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.
|
|
152
318
|
|
|
153
319
|
Required.
|
|
154
|
-
:param str value_expression: 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.
|
|
320
|
+
:param _builtins.str value_expression: 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.
|
|
155
321
|
|
|
156
322
|
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.
|
|
157
323
|
|
|
@@ -162,9 +328,9 @@ class AuditAnnotationPatch(dict):
|
|
|
162
328
|
if value_expression is not None:
|
|
163
329
|
pulumi.set(__self__, "value_expression", value_expression)
|
|
164
330
|
|
|
165
|
-
@property
|
|
331
|
+
@_builtins.property
|
|
166
332
|
@pulumi.getter
|
|
167
|
-
def key(self) -> Optional[str]:
|
|
333
|
+
def key(self) -> Optional[_builtins.str]:
|
|
168
334
|
"""
|
|
169
335
|
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.
|
|
170
336
|
|
|
@@ -176,9 +342,9 @@ class AuditAnnotationPatch(dict):
|
|
|
176
342
|
"""
|
|
177
343
|
return pulumi.get(self, "key")
|
|
178
344
|
|
|
179
|
-
@property
|
|
345
|
+
@_builtins.property
|
|
180
346
|
@pulumi.getter(name="valueExpression")
|
|
181
|
-
def value_expression(self) -> Optional[str]:
|
|
347
|
+
def value_expression(self) -> Optional[_builtins.str]:
|
|
182
348
|
"""
|
|
183
349
|
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.
|
|
184
350
|
|
|
@@ -212,27 +378,27 @@ class ExpressionWarning(dict):
|
|
|
212
378
|
return super().get(key, default)
|
|
213
379
|
|
|
214
380
|
def __init__(__self__, *,
|
|
215
|
-
field_ref: str,
|
|
216
|
-
warning: str):
|
|
381
|
+
field_ref: _builtins.str,
|
|
382
|
+
warning: _builtins.str):
|
|
217
383
|
"""
|
|
218
384
|
ExpressionWarning is a warning information that targets a specific expression.
|
|
219
|
-
:param str field_ref: 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"
|
|
220
|
-
:param str warning: 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.
|
|
385
|
+
:param _builtins.str field_ref: 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"
|
|
386
|
+
:param _builtins.str warning: 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.
|
|
221
387
|
"""
|
|
222
388
|
pulumi.set(__self__, "field_ref", field_ref)
|
|
223
389
|
pulumi.set(__self__, "warning", warning)
|
|
224
390
|
|
|
225
|
-
@property
|
|
391
|
+
@_builtins.property
|
|
226
392
|
@pulumi.getter(name="fieldRef")
|
|
227
|
-
def field_ref(self) -> str:
|
|
393
|
+
def field_ref(self) -> _builtins.str:
|
|
228
394
|
"""
|
|
229
395
|
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"
|
|
230
396
|
"""
|
|
231
397
|
return pulumi.get(self, "field_ref")
|
|
232
398
|
|
|
233
|
-
@property
|
|
399
|
+
@_builtins.property
|
|
234
400
|
@pulumi.getter
|
|
235
|
-
def warning(self) -> str:
|
|
401
|
+
def warning(self) -> _builtins.str:
|
|
236
402
|
"""
|
|
237
403
|
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.
|
|
238
404
|
"""
|
|
@@ -262,42 +428,300 @@ class ExpressionWarningPatch(dict):
|
|
|
262
428
|
return super().get(key, default)
|
|
263
429
|
|
|
264
430
|
def __init__(__self__, *,
|
|
265
|
-
field_ref: Optional[str] = None,
|
|
266
|
-
warning: Optional[str] = None):
|
|
431
|
+
field_ref: Optional[_builtins.str] = None,
|
|
432
|
+
warning: Optional[_builtins.str] = None):
|
|
267
433
|
"""
|
|
268
434
|
ExpressionWarning is a warning information that targets a specific expression.
|
|
269
|
-
:param str field_ref: 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"
|
|
270
|
-
:param str warning: 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.
|
|
435
|
+
:param _builtins.str field_ref: 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"
|
|
436
|
+
:param _builtins.str warning: 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.
|
|
271
437
|
"""
|
|
272
438
|
if field_ref is not None:
|
|
273
439
|
pulumi.set(__self__, "field_ref", field_ref)
|
|
274
440
|
if warning is not None:
|
|
275
441
|
pulumi.set(__self__, "warning", warning)
|
|
276
442
|
|
|
277
|
-
@property
|
|
443
|
+
@_builtins.property
|
|
278
444
|
@pulumi.getter(name="fieldRef")
|
|
279
|
-
def field_ref(self) -> Optional[str]:
|
|
445
|
+
def field_ref(self) -> Optional[_builtins.str]:
|
|
280
446
|
"""
|
|
281
447
|
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"
|
|
282
448
|
"""
|
|
283
449
|
return pulumi.get(self, "field_ref")
|
|
284
450
|
|
|
285
|
-
@property
|
|
451
|
+
@_builtins.property
|
|
286
452
|
@pulumi.getter
|
|
287
|
-
def warning(self) -> Optional[str]:
|
|
453
|
+
def warning(self) -> Optional[_builtins.str]:
|
|
288
454
|
"""
|
|
289
455
|
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.
|
|
290
456
|
"""
|
|
291
457
|
return pulumi.get(self, "warning")
|
|
292
458
|
|
|
293
459
|
|
|
460
|
+
@pulumi.output_type
|
|
461
|
+
class JSONPatch(dict):
|
|
462
|
+
"""
|
|
463
|
+
JSONPatch defines a JSON Patch.
|
|
464
|
+
"""
|
|
465
|
+
def __init__(__self__, *,
|
|
466
|
+
expression: Optional[_builtins.str] = None):
|
|
467
|
+
"""
|
|
468
|
+
JSONPatch defines a JSON Patch.
|
|
469
|
+
:param _builtins.str expression: expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
470
|
+
|
|
471
|
+
expression must return an array of JSONPatch values.
|
|
472
|
+
|
|
473
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
474
|
+
|
|
475
|
+
[
|
|
476
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
477
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
478
|
+
]
|
|
479
|
+
|
|
480
|
+
To define an object for the patch value, use Object types. For example:
|
|
481
|
+
|
|
482
|
+
[
|
|
483
|
+
JSONPatch{
|
|
484
|
+
op: "add",
|
|
485
|
+
path: "/spec/selector",
|
|
486
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
487
|
+
}
|
|
488
|
+
]
|
|
489
|
+
|
|
490
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
491
|
+
|
|
492
|
+
[
|
|
493
|
+
JSONPatch{
|
|
494
|
+
op: "add",
|
|
495
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
496
|
+
value: "test"
|
|
497
|
+
},
|
|
498
|
+
]
|
|
499
|
+
|
|
500
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
501
|
+
|
|
502
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
503
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
504
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
505
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
506
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
507
|
+
- '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')
|
|
508
|
+
|
|
509
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
510
|
+
|
|
511
|
+
- '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.
|
|
512
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
513
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
514
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
515
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
516
|
+
request resource.
|
|
517
|
+
|
|
518
|
+
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:
|
|
519
|
+
|
|
520
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
521
|
+
|
|
522
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
523
|
+
"""
|
|
524
|
+
if expression is not None:
|
|
525
|
+
pulumi.set(__self__, "expression", expression)
|
|
526
|
+
|
|
527
|
+
@_builtins.property
|
|
528
|
+
@pulumi.getter
|
|
529
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
530
|
+
"""
|
|
531
|
+
expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
532
|
+
|
|
533
|
+
expression must return an array of JSONPatch values.
|
|
534
|
+
|
|
535
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
536
|
+
|
|
537
|
+
[
|
|
538
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
539
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
540
|
+
]
|
|
541
|
+
|
|
542
|
+
To define an object for the patch value, use Object types. For example:
|
|
543
|
+
|
|
544
|
+
[
|
|
545
|
+
JSONPatch{
|
|
546
|
+
op: "add",
|
|
547
|
+
path: "/spec/selector",
|
|
548
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
549
|
+
}
|
|
550
|
+
]
|
|
551
|
+
|
|
552
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
553
|
+
|
|
554
|
+
[
|
|
555
|
+
JSONPatch{
|
|
556
|
+
op: "add",
|
|
557
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
558
|
+
value: "test"
|
|
559
|
+
},
|
|
560
|
+
]
|
|
561
|
+
|
|
562
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
563
|
+
|
|
564
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
565
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
566
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
567
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
568
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
569
|
+
- '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')
|
|
570
|
+
|
|
571
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
572
|
+
|
|
573
|
+
- '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.
|
|
574
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
575
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
576
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
577
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
578
|
+
request resource.
|
|
579
|
+
|
|
580
|
+
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:
|
|
581
|
+
|
|
582
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
583
|
+
|
|
584
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
585
|
+
"""
|
|
586
|
+
return pulumi.get(self, "expression")
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
@pulumi.output_type
|
|
590
|
+
class JSONPatchPatch(dict):
|
|
591
|
+
"""
|
|
592
|
+
JSONPatch defines a JSON Patch.
|
|
593
|
+
"""
|
|
594
|
+
def __init__(__self__, *,
|
|
595
|
+
expression: Optional[_builtins.str] = None):
|
|
596
|
+
"""
|
|
597
|
+
JSONPatch defines a JSON Patch.
|
|
598
|
+
:param _builtins.str expression: expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
599
|
+
|
|
600
|
+
expression must return an array of JSONPatch values.
|
|
601
|
+
|
|
602
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
603
|
+
|
|
604
|
+
[
|
|
605
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
606
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
607
|
+
]
|
|
608
|
+
|
|
609
|
+
To define an object for the patch value, use Object types. For example:
|
|
610
|
+
|
|
611
|
+
[
|
|
612
|
+
JSONPatch{
|
|
613
|
+
op: "add",
|
|
614
|
+
path: "/spec/selector",
|
|
615
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
616
|
+
}
|
|
617
|
+
]
|
|
618
|
+
|
|
619
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
620
|
+
|
|
621
|
+
[
|
|
622
|
+
JSONPatch{
|
|
623
|
+
op: "add",
|
|
624
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
625
|
+
value: "test"
|
|
626
|
+
},
|
|
627
|
+
]
|
|
628
|
+
|
|
629
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
630
|
+
|
|
631
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
632
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
633
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
634
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
635
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
636
|
+
- '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')
|
|
637
|
+
|
|
638
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
639
|
+
|
|
640
|
+
- '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.
|
|
641
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
642
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
643
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
644
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
645
|
+
request resource.
|
|
646
|
+
|
|
647
|
+
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:
|
|
648
|
+
|
|
649
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
650
|
+
|
|
651
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
652
|
+
"""
|
|
653
|
+
if expression is not None:
|
|
654
|
+
pulumi.set(__self__, "expression", expression)
|
|
655
|
+
|
|
656
|
+
@_builtins.property
|
|
657
|
+
@pulumi.getter
|
|
658
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
659
|
+
"""
|
|
660
|
+
expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec
|
|
661
|
+
|
|
662
|
+
expression must return an array of JSONPatch values.
|
|
663
|
+
|
|
664
|
+
For example, this CEL expression returns a JSON patch to conditionally modify a value:
|
|
665
|
+
|
|
666
|
+
[
|
|
667
|
+
JSONPatch{op: "test", path: "/spec/example", value: "Red"},
|
|
668
|
+
JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
|
|
669
|
+
]
|
|
670
|
+
|
|
671
|
+
To define an object for the patch value, use Object types. For example:
|
|
672
|
+
|
|
673
|
+
[
|
|
674
|
+
JSONPatch{
|
|
675
|
+
op: "add",
|
|
676
|
+
path: "/spec/selector",
|
|
677
|
+
value: Object.spec.selector{matchLabels: {"environment": "test"}}
|
|
678
|
+
}
|
|
679
|
+
]
|
|
680
|
+
|
|
681
|
+
To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
|
|
682
|
+
|
|
683
|
+
[
|
|
684
|
+
JSONPatch{
|
|
685
|
+
op: "add",
|
|
686
|
+
path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
|
|
687
|
+
value: "test"
|
|
688
|
+
},
|
|
689
|
+
]
|
|
690
|
+
|
|
691
|
+
CEL expressions have access to the types needed to create JSON patches and objects:
|
|
692
|
+
|
|
693
|
+
- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
|
|
694
|
+
See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
|
|
695
|
+
integer, array, map or object. If set, the 'path' and 'from' fields must be set to a
|
|
696
|
+
[JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
|
|
697
|
+
function may be used to escape path keys containing '/' and '~'.
|
|
698
|
+
- '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')
|
|
699
|
+
|
|
700
|
+
CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
|
|
701
|
+
|
|
702
|
+
- '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.
|
|
703
|
+
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
704
|
+
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
705
|
+
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
706
|
+
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
707
|
+
request resource.
|
|
708
|
+
|
|
709
|
+
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:
|
|
710
|
+
|
|
711
|
+
- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).
|
|
712
|
+
|
|
713
|
+
Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.
|
|
714
|
+
"""
|
|
715
|
+
return pulumi.get(self, "expression")
|
|
716
|
+
|
|
717
|
+
|
|
294
718
|
@pulumi.output_type
|
|
295
719
|
class MatchCondition(dict):
|
|
296
720
|
def __init__(__self__, *,
|
|
297
|
-
expression: str,
|
|
298
|
-
name: str):
|
|
721
|
+
expression: _builtins.str,
|
|
722
|
+
name: _builtins.str):
|
|
299
723
|
"""
|
|
300
|
-
:param 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:
|
|
724
|
+
:param _builtins.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:
|
|
301
725
|
|
|
302
726
|
'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.
|
|
303
727
|
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
@@ -306,16 +730,16 @@ class MatchCondition(dict):
|
|
|
306
730
|
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
307
731
|
|
|
308
732
|
Required.
|
|
309
|
-
:param 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')
|
|
733
|
+
:param _builtins.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')
|
|
310
734
|
|
|
311
735
|
Required.
|
|
312
736
|
"""
|
|
313
737
|
pulumi.set(__self__, "expression", expression)
|
|
314
738
|
pulumi.set(__self__, "name", name)
|
|
315
739
|
|
|
316
|
-
@property
|
|
740
|
+
@_builtins.property
|
|
317
741
|
@pulumi.getter
|
|
318
|
-
def expression(self) -> str:
|
|
742
|
+
def expression(self) -> _builtins.str:
|
|
319
743
|
"""
|
|
320
744
|
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:
|
|
321
745
|
|
|
@@ -329,9 +753,9 @@ class MatchCondition(dict):
|
|
|
329
753
|
"""
|
|
330
754
|
return pulumi.get(self, "expression")
|
|
331
755
|
|
|
332
|
-
@property
|
|
756
|
+
@_builtins.property
|
|
333
757
|
@pulumi.getter
|
|
334
|
-
def name(self) -> str:
|
|
758
|
+
def name(self) -> _builtins.str:
|
|
335
759
|
"""
|
|
336
760
|
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')
|
|
337
761
|
|
|
@@ -343,10 +767,10 @@ class MatchCondition(dict):
|
|
|
343
767
|
@pulumi.output_type
|
|
344
768
|
class MatchConditionPatch(dict):
|
|
345
769
|
def __init__(__self__, *,
|
|
346
|
-
expression: Optional[str] = None,
|
|
347
|
-
name: Optional[str] = None):
|
|
770
|
+
expression: Optional[_builtins.str] = None,
|
|
771
|
+
name: Optional[_builtins.str] = None):
|
|
348
772
|
"""
|
|
349
|
-
:param 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:
|
|
773
|
+
:param _builtins.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:
|
|
350
774
|
|
|
351
775
|
'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.
|
|
352
776
|
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
@@ -355,7 +779,7 @@ class MatchConditionPatch(dict):
|
|
|
355
779
|
Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
|
|
356
780
|
|
|
357
781
|
Required.
|
|
358
|
-
:param 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')
|
|
782
|
+
:param _builtins.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')
|
|
359
783
|
|
|
360
784
|
Required.
|
|
361
785
|
"""
|
|
@@ -364,9 +788,9 @@ class MatchConditionPatch(dict):
|
|
|
364
788
|
if name is not None:
|
|
365
789
|
pulumi.set(__self__, "name", name)
|
|
366
790
|
|
|
367
|
-
@property
|
|
791
|
+
@_builtins.property
|
|
368
792
|
@pulumi.getter
|
|
369
|
-
def expression(self) -> Optional[str]:
|
|
793
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
370
794
|
"""
|
|
371
795
|
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:
|
|
372
796
|
|
|
@@ -380,9 +804,9 @@ class MatchConditionPatch(dict):
|
|
|
380
804
|
"""
|
|
381
805
|
return pulumi.get(self, "expression")
|
|
382
806
|
|
|
383
|
-
@property
|
|
807
|
+
@_builtins.property
|
|
384
808
|
@pulumi.getter
|
|
385
|
-
def name(self) -> Optional[str]:
|
|
809
|
+
def name(self) -> Optional[_builtins.str]:
|
|
386
810
|
"""
|
|
387
811
|
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')
|
|
388
812
|
|
|
@@ -423,18 +847,18 @@ class MatchResources(dict):
|
|
|
423
847
|
|
|
424
848
|
def __init__(__self__, *,
|
|
425
849
|
exclude_resource_rules: Optional[Sequence['outputs.NamedRuleWithOperations']] = None,
|
|
426
|
-
match_policy: Optional[str] = None,
|
|
850
|
+
match_policy: Optional[_builtins.str] = None,
|
|
427
851
|
namespace_selector: Optional['_meta.v1.outputs.LabelSelector'] = None,
|
|
428
852
|
object_selector: Optional['_meta.v1.outputs.LabelSelector'] = None,
|
|
429
853
|
resource_rules: Optional[Sequence['outputs.NamedRuleWithOperations']] = None):
|
|
430
854
|
"""
|
|
431
855
|
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)
|
|
432
|
-
:param Sequence['NamedRuleWithOperationsArgs'] exclude_resource_rules: ExcludeResourceRules describes what operations on what resources/subresources the
|
|
433
|
-
:param str match_policy: matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
856
|
+
:param Sequence['NamedRuleWithOperationsArgs'] exclude_resource_rules: ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
|
|
857
|
+
:param _builtins.str match_policy: matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
434
858
|
|
|
435
|
-
- 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"]`,
|
|
859
|
+
- 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"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups.
|
|
436
860
|
|
|
437
|
-
- 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"]`,
|
|
861
|
+
- 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"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary.
|
|
438
862
|
|
|
439
863
|
Defaults to "Equivalent"
|
|
440
864
|
:param '_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.
|
|
@@ -468,8 +892,8 @@ class MatchResources(dict):
|
|
|
468
892
|
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
469
893
|
|
|
470
894
|
Default to the empty LabelSelector, which matches everything.
|
|
471
|
-
:param '_meta.v1.LabelSelectorArgs' object_selector: ObjectSelector decides whether to run the
|
|
472
|
-
:param Sequence['NamedRuleWithOperationsArgs'] resource_rules: ResourceRules describes what operations on what resources/subresources the
|
|
895
|
+
:param '_meta.v1.LabelSelectorArgs' object_selector: ObjectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), 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.
|
|
896
|
+
:param Sequence['NamedRuleWithOperationsArgs'] resource_rules: ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
473
897
|
"""
|
|
474
898
|
if exclude_resource_rules is not None:
|
|
475
899
|
pulumi.set(__self__, "exclude_resource_rules", exclude_resource_rules)
|
|
@@ -482,249 +906,1004 @@ class MatchResources(dict):
|
|
|
482
906
|
if resource_rules is not None:
|
|
483
907
|
pulumi.set(__self__, "resource_rules", resource_rules)
|
|
484
908
|
|
|
485
|
-
@property
|
|
486
|
-
@pulumi.getter(name="excludeResourceRules")
|
|
487
|
-
def exclude_resource_rules(self) -> Optional[Sequence['outputs.NamedRuleWithOperations']]:
|
|
488
|
-
"""
|
|
489
|
-
ExcludeResourceRules describes what operations on what resources/subresources the
|
|
909
|
+
@_builtins.property
|
|
910
|
+
@pulumi.getter(name="excludeResourceRules")
|
|
911
|
+
def exclude_resource_rules(self) -> Optional[Sequence['outputs.NamedRuleWithOperations']]:
|
|
912
|
+
"""
|
|
913
|
+
ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
|
|
914
|
+
"""
|
|
915
|
+
return pulumi.get(self, "exclude_resource_rules")
|
|
916
|
+
|
|
917
|
+
@_builtins.property
|
|
918
|
+
@pulumi.getter(name="matchPolicy")
|
|
919
|
+
def match_policy(self) -> Optional[_builtins.str]:
|
|
920
|
+
"""
|
|
921
|
+
matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
922
|
+
|
|
923
|
+
- 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"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups.
|
|
924
|
+
|
|
925
|
+
- 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"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary.
|
|
926
|
+
|
|
927
|
+
Defaults to "Equivalent"
|
|
928
|
+
"""
|
|
929
|
+
return pulumi.get(self, "match_policy")
|
|
930
|
+
|
|
931
|
+
@_builtins.property
|
|
932
|
+
@pulumi.getter(name="namespaceSelector")
|
|
933
|
+
def namespace_selector(self) -> Optional['_meta.v1.outputs.LabelSelector']:
|
|
934
|
+
"""
|
|
935
|
+
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.
|
|
936
|
+
|
|
937
|
+
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": {
|
|
938
|
+
"matchExpressions": [
|
|
939
|
+
{
|
|
940
|
+
"key": "runlevel",
|
|
941
|
+
"operator": "NotIn",
|
|
942
|
+
"values": [
|
|
943
|
+
"0",
|
|
944
|
+
"1"
|
|
945
|
+
]
|
|
946
|
+
}
|
|
947
|
+
]
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
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": {
|
|
951
|
+
"matchExpressions": [
|
|
952
|
+
{
|
|
953
|
+
"key": "environment",
|
|
954
|
+
"operator": "In",
|
|
955
|
+
"values": [
|
|
956
|
+
"prod",
|
|
957
|
+
"staging"
|
|
958
|
+
]
|
|
959
|
+
}
|
|
960
|
+
]
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
964
|
+
|
|
965
|
+
Default to the empty LabelSelector, which matches everything.
|
|
966
|
+
"""
|
|
967
|
+
return pulumi.get(self, "namespace_selector")
|
|
968
|
+
|
|
969
|
+
@_builtins.property
|
|
970
|
+
@pulumi.getter(name="objectSelector")
|
|
971
|
+
def object_selector(self) -> Optional['_meta.v1.outputs.LabelSelector']:
|
|
972
|
+
"""
|
|
973
|
+
ObjectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), 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.
|
|
974
|
+
"""
|
|
975
|
+
return pulumi.get(self, "object_selector")
|
|
976
|
+
|
|
977
|
+
@_builtins.property
|
|
978
|
+
@pulumi.getter(name="resourceRules")
|
|
979
|
+
def resource_rules(self) -> Optional[Sequence['outputs.NamedRuleWithOperations']]:
|
|
980
|
+
"""
|
|
981
|
+
ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
982
|
+
"""
|
|
983
|
+
return pulumi.get(self, "resource_rules")
|
|
984
|
+
|
|
985
|
+
|
|
986
|
+
@pulumi.output_type
|
|
987
|
+
class MatchResourcesPatch(dict):
|
|
988
|
+
"""
|
|
989
|
+
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)
|
|
990
|
+
"""
|
|
991
|
+
@staticmethod
|
|
992
|
+
def __key_warning(key: str):
|
|
993
|
+
suggest = None
|
|
994
|
+
if key == "excludeResourceRules":
|
|
995
|
+
suggest = "exclude_resource_rules"
|
|
996
|
+
elif key == "matchPolicy":
|
|
997
|
+
suggest = "match_policy"
|
|
998
|
+
elif key == "namespaceSelector":
|
|
999
|
+
suggest = "namespace_selector"
|
|
1000
|
+
elif key == "objectSelector":
|
|
1001
|
+
suggest = "object_selector"
|
|
1002
|
+
elif key == "resourceRules":
|
|
1003
|
+
suggest = "resource_rules"
|
|
1004
|
+
|
|
1005
|
+
if suggest:
|
|
1006
|
+
pulumi.log.warn(f"Key '{key}' not found in MatchResourcesPatch. Access the value via the '{suggest}' property getter instead.")
|
|
1007
|
+
|
|
1008
|
+
def __getitem__(self, key: str) -> Any:
|
|
1009
|
+
MatchResourcesPatch.__key_warning(key)
|
|
1010
|
+
return super().__getitem__(key)
|
|
1011
|
+
|
|
1012
|
+
def get(self, key: str, default = None) -> Any:
|
|
1013
|
+
MatchResourcesPatch.__key_warning(key)
|
|
1014
|
+
return super().get(key, default)
|
|
1015
|
+
|
|
1016
|
+
def __init__(__self__, *,
|
|
1017
|
+
exclude_resource_rules: Optional[Sequence['outputs.NamedRuleWithOperationsPatch']] = None,
|
|
1018
|
+
match_policy: Optional[_builtins.str] = None,
|
|
1019
|
+
namespace_selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None,
|
|
1020
|
+
object_selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None,
|
|
1021
|
+
resource_rules: Optional[Sequence['outputs.NamedRuleWithOperationsPatch']] = None):
|
|
1022
|
+
"""
|
|
1023
|
+
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)
|
|
1024
|
+
:param Sequence['NamedRuleWithOperationsPatchArgs'] exclude_resource_rules: ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
|
|
1025
|
+
:param _builtins.str match_policy: matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
1026
|
+
|
|
1027
|
+
- 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"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups.
|
|
1028
|
+
|
|
1029
|
+
- 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"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary.
|
|
1030
|
+
|
|
1031
|
+
Defaults to "Equivalent"
|
|
1032
|
+
:param '_meta.v1.LabelSelectorPatchArgs' 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.
|
|
1033
|
+
|
|
1034
|
+
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": {
|
|
1035
|
+
"matchExpressions": [
|
|
1036
|
+
{
|
|
1037
|
+
"key": "runlevel",
|
|
1038
|
+
"operator": "NotIn",
|
|
1039
|
+
"values": [
|
|
1040
|
+
"0",
|
|
1041
|
+
"1"
|
|
1042
|
+
]
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
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": {
|
|
1048
|
+
"matchExpressions": [
|
|
1049
|
+
{
|
|
1050
|
+
"key": "environment",
|
|
1051
|
+
"operator": "In",
|
|
1052
|
+
"values": [
|
|
1053
|
+
"prod",
|
|
1054
|
+
"staging"
|
|
1055
|
+
]
|
|
1056
|
+
}
|
|
1057
|
+
]
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
1061
|
+
|
|
1062
|
+
Default to the empty LabelSelector, which matches everything.
|
|
1063
|
+
:param '_meta.v1.LabelSelectorPatchArgs' object_selector: ObjectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), 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.
|
|
1064
|
+
:param Sequence['NamedRuleWithOperationsPatchArgs'] resource_rules: ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1065
|
+
"""
|
|
1066
|
+
if exclude_resource_rules is not None:
|
|
1067
|
+
pulumi.set(__self__, "exclude_resource_rules", exclude_resource_rules)
|
|
1068
|
+
if match_policy is not None:
|
|
1069
|
+
pulumi.set(__self__, "match_policy", match_policy)
|
|
1070
|
+
if namespace_selector is not None:
|
|
1071
|
+
pulumi.set(__self__, "namespace_selector", namespace_selector)
|
|
1072
|
+
if object_selector is not None:
|
|
1073
|
+
pulumi.set(__self__, "object_selector", object_selector)
|
|
1074
|
+
if resource_rules is not None:
|
|
1075
|
+
pulumi.set(__self__, "resource_rules", resource_rules)
|
|
1076
|
+
|
|
1077
|
+
@_builtins.property
|
|
1078
|
+
@pulumi.getter(name="excludeResourceRules")
|
|
1079
|
+
def exclude_resource_rules(self) -> Optional[Sequence['outputs.NamedRuleWithOperationsPatch']]:
|
|
1080
|
+
"""
|
|
1081
|
+
ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
|
|
1082
|
+
"""
|
|
1083
|
+
return pulumi.get(self, "exclude_resource_rules")
|
|
1084
|
+
|
|
1085
|
+
@_builtins.property
|
|
1086
|
+
@pulumi.getter(name="matchPolicy")
|
|
1087
|
+
def match_policy(self) -> Optional[_builtins.str]:
|
|
1088
|
+
"""
|
|
1089
|
+
matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent".
|
|
1090
|
+
|
|
1091
|
+
- 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"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups.
|
|
1092
|
+
|
|
1093
|
+
- 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"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary.
|
|
1094
|
+
|
|
1095
|
+
Defaults to "Equivalent"
|
|
1096
|
+
"""
|
|
1097
|
+
return pulumi.get(self, "match_policy")
|
|
1098
|
+
|
|
1099
|
+
@_builtins.property
|
|
1100
|
+
@pulumi.getter(name="namespaceSelector")
|
|
1101
|
+
def namespace_selector(self) -> Optional['_meta.v1.outputs.LabelSelectorPatch']:
|
|
1102
|
+
"""
|
|
1103
|
+
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.
|
|
1104
|
+
|
|
1105
|
+
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": {
|
|
1106
|
+
"matchExpressions": [
|
|
1107
|
+
{
|
|
1108
|
+
"key": "runlevel",
|
|
1109
|
+
"operator": "NotIn",
|
|
1110
|
+
"values": [
|
|
1111
|
+
"0",
|
|
1112
|
+
"1"
|
|
1113
|
+
]
|
|
1114
|
+
}
|
|
1115
|
+
]
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
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": {
|
|
1119
|
+
"matchExpressions": [
|
|
1120
|
+
{
|
|
1121
|
+
"key": "environment",
|
|
1122
|
+
"operator": "In",
|
|
1123
|
+
"values": [
|
|
1124
|
+
"prod",
|
|
1125
|
+
"staging"
|
|
1126
|
+
]
|
|
1127
|
+
}
|
|
1128
|
+
]
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
1132
|
+
|
|
1133
|
+
Default to the empty LabelSelector, which matches everything.
|
|
1134
|
+
"""
|
|
1135
|
+
return pulumi.get(self, "namespace_selector")
|
|
1136
|
+
|
|
1137
|
+
@_builtins.property
|
|
1138
|
+
@pulumi.getter(name="objectSelector")
|
|
1139
|
+
def object_selector(self) -> Optional['_meta.v1.outputs.LabelSelectorPatch']:
|
|
1140
|
+
"""
|
|
1141
|
+
ObjectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), 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.
|
|
1142
|
+
"""
|
|
1143
|
+
return pulumi.get(self, "object_selector")
|
|
1144
|
+
|
|
1145
|
+
@_builtins.property
|
|
1146
|
+
@pulumi.getter(name="resourceRules")
|
|
1147
|
+
def resource_rules(self) -> Optional[Sequence['outputs.NamedRuleWithOperationsPatch']]:
|
|
1148
|
+
"""
|
|
1149
|
+
ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1150
|
+
"""
|
|
1151
|
+
return pulumi.get(self, "resource_rules")
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
@pulumi.output_type
|
|
1155
|
+
class MutatingAdmissionPolicy(dict):
|
|
1156
|
+
"""
|
|
1157
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
1158
|
+
"""
|
|
1159
|
+
@staticmethod
|
|
1160
|
+
def __key_warning(key: str):
|
|
1161
|
+
suggest = None
|
|
1162
|
+
if key == "apiVersion":
|
|
1163
|
+
suggest = "api_version"
|
|
1164
|
+
|
|
1165
|
+
if suggest:
|
|
1166
|
+
pulumi.log.warn(f"Key '{key}' not found in MutatingAdmissionPolicy. Access the value via the '{suggest}' property getter instead.")
|
|
1167
|
+
|
|
1168
|
+
def __getitem__(self, key: str) -> Any:
|
|
1169
|
+
MutatingAdmissionPolicy.__key_warning(key)
|
|
1170
|
+
return super().__getitem__(key)
|
|
1171
|
+
|
|
1172
|
+
def get(self, key: str, default = None) -> Any:
|
|
1173
|
+
MutatingAdmissionPolicy.__key_warning(key)
|
|
1174
|
+
return super().get(key, default)
|
|
1175
|
+
|
|
1176
|
+
def __init__(__self__, *,
|
|
1177
|
+
api_version: Optional[_builtins.str] = None,
|
|
1178
|
+
kind: Optional[_builtins.str] = None,
|
|
1179
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
|
|
1180
|
+
spec: Optional['outputs.MutatingAdmissionPolicySpec'] = None):
|
|
1181
|
+
"""
|
|
1182
|
+
MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
|
|
1183
|
+
:param _builtins.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
|
|
1184
|
+
:param _builtins.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
|
|
1185
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1186
|
+
:param 'MutatingAdmissionPolicySpecArgs' spec: Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
1187
|
+
"""
|
|
1188
|
+
if api_version is not None:
|
|
1189
|
+
pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1alpha1')
|
|
1190
|
+
if kind is not None:
|
|
1191
|
+
pulumi.set(__self__, "kind", 'MutatingAdmissionPolicy')
|
|
1192
|
+
if metadata is not None:
|
|
1193
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
1194
|
+
if spec is not None:
|
|
1195
|
+
pulumi.set(__self__, "spec", spec)
|
|
1196
|
+
|
|
1197
|
+
@_builtins.property
|
|
1198
|
+
@pulumi.getter(name="apiVersion")
|
|
1199
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1200
|
+
"""
|
|
1201
|
+
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
|
|
1202
|
+
"""
|
|
1203
|
+
return pulumi.get(self, "api_version")
|
|
1204
|
+
|
|
1205
|
+
@_builtins.property
|
|
1206
|
+
@pulumi.getter
|
|
1207
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1208
|
+
"""
|
|
1209
|
+
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
|
|
1210
|
+
"""
|
|
1211
|
+
return pulumi.get(self, "kind")
|
|
1212
|
+
|
|
1213
|
+
@_builtins.property
|
|
1214
|
+
@pulumi.getter
|
|
1215
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
1216
|
+
"""
|
|
1217
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1218
|
+
"""
|
|
1219
|
+
return pulumi.get(self, "metadata")
|
|
1220
|
+
|
|
1221
|
+
@_builtins.property
|
|
1222
|
+
@pulumi.getter
|
|
1223
|
+
def spec(self) -> Optional['outputs.MutatingAdmissionPolicySpec']:
|
|
1224
|
+
"""
|
|
1225
|
+
Specification of the desired behavior of the MutatingAdmissionPolicy.
|
|
1226
|
+
"""
|
|
1227
|
+
return pulumi.get(self, "spec")
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
@pulumi.output_type
|
|
1231
|
+
class MutatingAdmissionPolicyBinding(dict):
|
|
1232
|
+
"""
|
|
1233
|
+
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.
|
|
1234
|
+
|
|
1235
|
+
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).
|
|
1236
|
+
|
|
1237
|
+
Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
1238
|
+
"""
|
|
1239
|
+
@staticmethod
|
|
1240
|
+
def __key_warning(key: str):
|
|
1241
|
+
suggest = None
|
|
1242
|
+
if key == "apiVersion":
|
|
1243
|
+
suggest = "api_version"
|
|
1244
|
+
|
|
1245
|
+
if suggest:
|
|
1246
|
+
pulumi.log.warn(f"Key '{key}' not found in MutatingAdmissionPolicyBinding. Access the value via the '{suggest}' property getter instead.")
|
|
1247
|
+
|
|
1248
|
+
def __getitem__(self, key: str) -> Any:
|
|
1249
|
+
MutatingAdmissionPolicyBinding.__key_warning(key)
|
|
1250
|
+
return super().__getitem__(key)
|
|
1251
|
+
|
|
1252
|
+
def get(self, key: str, default = None) -> Any:
|
|
1253
|
+
MutatingAdmissionPolicyBinding.__key_warning(key)
|
|
1254
|
+
return super().get(key, default)
|
|
1255
|
+
|
|
1256
|
+
def __init__(__self__, *,
|
|
1257
|
+
api_version: Optional[_builtins.str] = None,
|
|
1258
|
+
kind: Optional[_builtins.str] = None,
|
|
1259
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
|
|
1260
|
+
spec: Optional['outputs.MutatingAdmissionPolicyBindingSpec'] = None):
|
|
1261
|
+
"""
|
|
1262
|
+
MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.
|
|
1263
|
+
|
|
1264
|
+
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).
|
|
1265
|
+
|
|
1266
|
+
Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.
|
|
1267
|
+
:param _builtins.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
|
|
1268
|
+
:param _builtins.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
|
|
1269
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1270
|
+
:param 'MutatingAdmissionPolicyBindingSpecArgs' spec: Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
1271
|
+
"""
|
|
1272
|
+
if api_version is not None:
|
|
1273
|
+
pulumi.set(__self__, "api_version", 'admissionregistration.k8s.io/v1alpha1')
|
|
1274
|
+
if kind is not None:
|
|
1275
|
+
pulumi.set(__self__, "kind", 'MutatingAdmissionPolicyBinding')
|
|
1276
|
+
if metadata is not None:
|
|
1277
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
1278
|
+
if spec is not None:
|
|
1279
|
+
pulumi.set(__self__, "spec", spec)
|
|
1280
|
+
|
|
1281
|
+
@_builtins.property
|
|
1282
|
+
@pulumi.getter(name="apiVersion")
|
|
1283
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1284
|
+
"""
|
|
1285
|
+
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
|
|
1286
|
+
"""
|
|
1287
|
+
return pulumi.get(self, "api_version")
|
|
1288
|
+
|
|
1289
|
+
@_builtins.property
|
|
1290
|
+
@pulumi.getter
|
|
1291
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1292
|
+
"""
|
|
1293
|
+
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
|
|
1294
|
+
"""
|
|
1295
|
+
return pulumi.get(self, "kind")
|
|
1296
|
+
|
|
1297
|
+
@_builtins.property
|
|
1298
|
+
@pulumi.getter
|
|
1299
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
1300
|
+
"""
|
|
1301
|
+
Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1302
|
+
"""
|
|
1303
|
+
return pulumi.get(self, "metadata")
|
|
1304
|
+
|
|
1305
|
+
@_builtins.property
|
|
1306
|
+
@pulumi.getter
|
|
1307
|
+
def spec(self) -> Optional['outputs.MutatingAdmissionPolicyBindingSpec']:
|
|
1308
|
+
"""
|
|
1309
|
+
Specification of the desired behavior of the MutatingAdmissionPolicyBinding.
|
|
1310
|
+
"""
|
|
1311
|
+
return pulumi.get(self, "spec")
|
|
1312
|
+
|
|
1313
|
+
|
|
1314
|
+
@pulumi.output_type
|
|
1315
|
+
class MutatingAdmissionPolicyBindingSpec(dict):
|
|
1316
|
+
"""
|
|
1317
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1318
|
+
"""
|
|
1319
|
+
@staticmethod
|
|
1320
|
+
def __key_warning(key: str):
|
|
1321
|
+
suggest = None
|
|
1322
|
+
if key == "matchResources":
|
|
1323
|
+
suggest = "match_resources"
|
|
1324
|
+
elif key == "paramRef":
|
|
1325
|
+
suggest = "param_ref"
|
|
1326
|
+
elif key == "policyName":
|
|
1327
|
+
suggest = "policy_name"
|
|
1328
|
+
|
|
1329
|
+
if suggest:
|
|
1330
|
+
pulumi.log.warn(f"Key '{key}' not found in MutatingAdmissionPolicyBindingSpec. Access the value via the '{suggest}' property getter instead.")
|
|
1331
|
+
|
|
1332
|
+
def __getitem__(self, key: str) -> Any:
|
|
1333
|
+
MutatingAdmissionPolicyBindingSpec.__key_warning(key)
|
|
1334
|
+
return super().__getitem__(key)
|
|
1335
|
+
|
|
1336
|
+
def get(self, key: str, default = None) -> Any:
|
|
1337
|
+
MutatingAdmissionPolicyBindingSpec.__key_warning(key)
|
|
1338
|
+
return super().get(key, default)
|
|
1339
|
+
|
|
1340
|
+
def __init__(__self__, *,
|
|
1341
|
+
match_resources: Optional['outputs.MatchResources'] = None,
|
|
1342
|
+
param_ref: Optional['outputs.ParamRef'] = None,
|
|
1343
|
+
policy_name: Optional[_builtins.str] = None):
|
|
1344
|
+
"""
|
|
1345
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1346
|
+
:param '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.
|
|
1347
|
+
:param '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.
|
|
1348
|
+
:param _builtins.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.
|
|
1349
|
+
"""
|
|
1350
|
+
if match_resources is not None:
|
|
1351
|
+
pulumi.set(__self__, "match_resources", match_resources)
|
|
1352
|
+
if param_ref is not None:
|
|
1353
|
+
pulumi.set(__self__, "param_ref", param_ref)
|
|
1354
|
+
if policy_name is not None:
|
|
1355
|
+
pulumi.set(__self__, "policy_name", policy_name)
|
|
1356
|
+
|
|
1357
|
+
@_builtins.property
|
|
1358
|
+
@pulumi.getter(name="matchResources")
|
|
1359
|
+
def match_resources(self) -> Optional['outputs.MatchResources']:
|
|
1360
|
+
"""
|
|
1361
|
+
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.
|
|
1362
|
+
"""
|
|
1363
|
+
return pulumi.get(self, "match_resources")
|
|
1364
|
+
|
|
1365
|
+
@_builtins.property
|
|
1366
|
+
@pulumi.getter(name="paramRef")
|
|
1367
|
+
def param_ref(self) -> Optional['outputs.ParamRef']:
|
|
1368
|
+
"""
|
|
1369
|
+
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.
|
|
1370
|
+
"""
|
|
1371
|
+
return pulumi.get(self, "param_ref")
|
|
1372
|
+
|
|
1373
|
+
@_builtins.property
|
|
1374
|
+
@pulumi.getter(name="policyName")
|
|
1375
|
+
def policy_name(self) -> Optional[_builtins.str]:
|
|
1376
|
+
"""
|
|
1377
|
+
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.
|
|
1378
|
+
"""
|
|
1379
|
+
return pulumi.get(self, "policy_name")
|
|
1380
|
+
|
|
1381
|
+
|
|
1382
|
+
@pulumi.output_type
|
|
1383
|
+
class MutatingAdmissionPolicyBindingSpecPatch(dict):
|
|
1384
|
+
"""
|
|
1385
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1386
|
+
"""
|
|
1387
|
+
@staticmethod
|
|
1388
|
+
def __key_warning(key: str):
|
|
1389
|
+
suggest = None
|
|
1390
|
+
if key == "matchResources":
|
|
1391
|
+
suggest = "match_resources"
|
|
1392
|
+
elif key == "paramRef":
|
|
1393
|
+
suggest = "param_ref"
|
|
1394
|
+
elif key == "policyName":
|
|
1395
|
+
suggest = "policy_name"
|
|
1396
|
+
|
|
1397
|
+
if suggest:
|
|
1398
|
+
pulumi.log.warn(f"Key '{key}' not found in MutatingAdmissionPolicyBindingSpecPatch. Access the value via the '{suggest}' property getter instead.")
|
|
1399
|
+
|
|
1400
|
+
def __getitem__(self, key: str) -> Any:
|
|
1401
|
+
MutatingAdmissionPolicyBindingSpecPatch.__key_warning(key)
|
|
1402
|
+
return super().__getitem__(key)
|
|
1403
|
+
|
|
1404
|
+
def get(self, key: str, default = None) -> Any:
|
|
1405
|
+
MutatingAdmissionPolicyBindingSpecPatch.__key_warning(key)
|
|
1406
|
+
return super().get(key, default)
|
|
1407
|
+
|
|
1408
|
+
def __init__(__self__, *,
|
|
1409
|
+
match_resources: Optional['outputs.MatchResourcesPatch'] = None,
|
|
1410
|
+
param_ref: Optional['outputs.ParamRefPatch'] = None,
|
|
1411
|
+
policy_name: Optional[_builtins.str] = None):
|
|
1412
|
+
"""
|
|
1413
|
+
MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.
|
|
1414
|
+
:param '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.
|
|
1415
|
+
:param '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.
|
|
1416
|
+
:param _builtins.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.
|
|
1417
|
+
"""
|
|
1418
|
+
if match_resources is not None:
|
|
1419
|
+
pulumi.set(__self__, "match_resources", match_resources)
|
|
1420
|
+
if param_ref is not None:
|
|
1421
|
+
pulumi.set(__self__, "param_ref", param_ref)
|
|
1422
|
+
if policy_name is not None:
|
|
1423
|
+
pulumi.set(__self__, "policy_name", policy_name)
|
|
1424
|
+
|
|
1425
|
+
@_builtins.property
|
|
1426
|
+
@pulumi.getter(name="matchResources")
|
|
1427
|
+
def match_resources(self) -> Optional['outputs.MatchResourcesPatch']:
|
|
1428
|
+
"""
|
|
1429
|
+
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.
|
|
1430
|
+
"""
|
|
1431
|
+
return pulumi.get(self, "match_resources")
|
|
1432
|
+
|
|
1433
|
+
@_builtins.property
|
|
1434
|
+
@pulumi.getter(name="paramRef")
|
|
1435
|
+
def param_ref(self) -> Optional['outputs.ParamRefPatch']:
|
|
1436
|
+
"""
|
|
1437
|
+
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.
|
|
1438
|
+
"""
|
|
1439
|
+
return pulumi.get(self, "param_ref")
|
|
1440
|
+
|
|
1441
|
+
@_builtins.property
|
|
1442
|
+
@pulumi.getter(name="policyName")
|
|
1443
|
+
def policy_name(self) -> Optional[_builtins.str]:
|
|
1444
|
+
"""
|
|
1445
|
+
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.
|
|
1446
|
+
"""
|
|
1447
|
+
return pulumi.get(self, "policy_name")
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
@pulumi.output_type
|
|
1451
|
+
class MutatingAdmissionPolicySpec(dict):
|
|
1452
|
+
"""
|
|
1453
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
1454
|
+
"""
|
|
1455
|
+
@staticmethod
|
|
1456
|
+
def __key_warning(key: str):
|
|
1457
|
+
suggest = None
|
|
1458
|
+
if key == "failurePolicy":
|
|
1459
|
+
suggest = "failure_policy"
|
|
1460
|
+
elif key == "matchConditions":
|
|
1461
|
+
suggest = "match_conditions"
|
|
1462
|
+
elif key == "matchConstraints":
|
|
1463
|
+
suggest = "match_constraints"
|
|
1464
|
+
elif key == "paramKind":
|
|
1465
|
+
suggest = "param_kind"
|
|
1466
|
+
elif key == "reinvocationPolicy":
|
|
1467
|
+
suggest = "reinvocation_policy"
|
|
1468
|
+
|
|
1469
|
+
if suggest:
|
|
1470
|
+
pulumi.log.warn(f"Key '{key}' not found in MutatingAdmissionPolicySpec. Access the value via the '{suggest}' property getter instead.")
|
|
1471
|
+
|
|
1472
|
+
def __getitem__(self, key: str) -> Any:
|
|
1473
|
+
MutatingAdmissionPolicySpec.__key_warning(key)
|
|
1474
|
+
return super().__getitem__(key)
|
|
1475
|
+
|
|
1476
|
+
def get(self, key: str, default = None) -> Any:
|
|
1477
|
+
MutatingAdmissionPolicySpec.__key_warning(key)
|
|
1478
|
+
return super().get(key, default)
|
|
1479
|
+
|
|
1480
|
+
def __init__(__self__, *,
|
|
1481
|
+
failure_policy: Optional[_builtins.str] = None,
|
|
1482
|
+
match_conditions: Optional[Sequence['outputs.MatchCondition']] = None,
|
|
1483
|
+
match_constraints: Optional['outputs.MatchResources'] = None,
|
|
1484
|
+
mutations: Optional[Sequence['outputs.Mutation']] = None,
|
|
1485
|
+
param_kind: Optional['outputs.ParamKind'] = None,
|
|
1486
|
+
reinvocation_policy: Optional[_builtins.str] = None,
|
|
1487
|
+
variables: Optional[Sequence['outputs.Variable']] = None):
|
|
1488
|
+
"""
|
|
1489
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
1490
|
+
:param _builtins.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.
|
|
1491
|
+
|
|
1492
|
+
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.
|
|
1493
|
+
|
|
1494
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1495
|
+
|
|
1496
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1497
|
+
:param Sequence['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.
|
|
1498
|
+
|
|
1499
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
1500
|
+
|
|
1501
|
+
The exact matching logic is (in order):
|
|
1502
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1503
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1504
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1505
|
+
- If failurePolicy=Fail, reject the request
|
|
1506
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1507
|
+
:param '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.
|
|
1508
|
+
:param Sequence['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.
|
|
1509
|
+
:param '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.
|
|
1510
|
+
:param _builtins.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".
|
|
1511
|
+
|
|
1512
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
1513
|
+
|
|
1514
|
+
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.
|
|
1515
|
+
:param Sequence['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.
|
|
1516
|
+
|
|
1517
|
+
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.
|
|
1518
|
+
"""
|
|
1519
|
+
if failure_policy is not None:
|
|
1520
|
+
pulumi.set(__self__, "failure_policy", failure_policy)
|
|
1521
|
+
if match_conditions is not None:
|
|
1522
|
+
pulumi.set(__self__, "match_conditions", match_conditions)
|
|
1523
|
+
if match_constraints is not None:
|
|
1524
|
+
pulumi.set(__self__, "match_constraints", match_constraints)
|
|
1525
|
+
if mutations is not None:
|
|
1526
|
+
pulumi.set(__self__, "mutations", mutations)
|
|
1527
|
+
if param_kind is not None:
|
|
1528
|
+
pulumi.set(__self__, "param_kind", param_kind)
|
|
1529
|
+
if reinvocation_policy is not None:
|
|
1530
|
+
pulumi.set(__self__, "reinvocation_policy", reinvocation_policy)
|
|
1531
|
+
if variables is not None:
|
|
1532
|
+
pulumi.set(__self__, "variables", variables)
|
|
1533
|
+
|
|
1534
|
+
@_builtins.property
|
|
1535
|
+
@pulumi.getter(name="failurePolicy")
|
|
1536
|
+
def failure_policy(self) -> Optional[_builtins.str]:
|
|
1537
|
+
"""
|
|
1538
|
+
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.
|
|
1539
|
+
|
|
1540
|
+
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.
|
|
1541
|
+
|
|
1542
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1543
|
+
|
|
1544
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1545
|
+
"""
|
|
1546
|
+
return pulumi.get(self, "failure_policy")
|
|
1547
|
+
|
|
1548
|
+
@_builtins.property
|
|
1549
|
+
@pulumi.getter(name="matchConditions")
|
|
1550
|
+
def match_conditions(self) -> Optional[Sequence['outputs.MatchCondition']]:
|
|
1551
|
+
"""
|
|
1552
|
+
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.
|
|
1553
|
+
|
|
1554
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
1555
|
+
|
|
1556
|
+
The exact matching logic is (in order):
|
|
1557
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1558
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1559
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1560
|
+
- If failurePolicy=Fail, reject the request
|
|
1561
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1562
|
+
"""
|
|
1563
|
+
return pulumi.get(self, "match_conditions")
|
|
1564
|
+
|
|
1565
|
+
@_builtins.property
|
|
1566
|
+
@pulumi.getter(name="matchConstraints")
|
|
1567
|
+
def match_constraints(self) -> Optional['outputs.MatchResources']:
|
|
1568
|
+
"""
|
|
1569
|
+
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.
|
|
1570
|
+
"""
|
|
1571
|
+
return pulumi.get(self, "match_constraints")
|
|
1572
|
+
|
|
1573
|
+
@_builtins.property
|
|
1574
|
+
@pulumi.getter
|
|
1575
|
+
def mutations(self) -> Optional[Sequence['outputs.Mutation']]:
|
|
1576
|
+
"""
|
|
1577
|
+
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.
|
|
1578
|
+
"""
|
|
1579
|
+
return pulumi.get(self, "mutations")
|
|
1580
|
+
|
|
1581
|
+
@_builtins.property
|
|
1582
|
+
@pulumi.getter(name="paramKind")
|
|
1583
|
+
def param_kind(self) -> Optional['outputs.ParamKind']:
|
|
1584
|
+
"""
|
|
1585
|
+
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.
|
|
1586
|
+
"""
|
|
1587
|
+
return pulumi.get(self, "param_kind")
|
|
1588
|
+
|
|
1589
|
+
@_builtins.property
|
|
1590
|
+
@pulumi.getter(name="reinvocationPolicy")
|
|
1591
|
+
def reinvocation_policy(self) -> Optional[_builtins.str]:
|
|
1592
|
+
"""
|
|
1593
|
+
reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
1594
|
+
|
|
1595
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
1596
|
+
|
|
1597
|
+
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.
|
|
1598
|
+
"""
|
|
1599
|
+
return pulumi.get(self, "reinvocation_policy")
|
|
1600
|
+
|
|
1601
|
+
@_builtins.property
|
|
1602
|
+
@pulumi.getter
|
|
1603
|
+
def variables(self) -> Optional[Sequence['outputs.Variable']]:
|
|
1604
|
+
"""
|
|
1605
|
+
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.
|
|
1606
|
+
|
|
1607
|
+
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.
|
|
1608
|
+
"""
|
|
1609
|
+
return pulumi.get(self, "variables")
|
|
1610
|
+
|
|
1611
|
+
|
|
1612
|
+
@pulumi.output_type
|
|
1613
|
+
class MutatingAdmissionPolicySpecPatch(dict):
|
|
1614
|
+
"""
|
|
1615
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
1616
|
+
"""
|
|
1617
|
+
@staticmethod
|
|
1618
|
+
def __key_warning(key: str):
|
|
1619
|
+
suggest = None
|
|
1620
|
+
if key == "failurePolicy":
|
|
1621
|
+
suggest = "failure_policy"
|
|
1622
|
+
elif key == "matchConditions":
|
|
1623
|
+
suggest = "match_conditions"
|
|
1624
|
+
elif key == "matchConstraints":
|
|
1625
|
+
suggest = "match_constraints"
|
|
1626
|
+
elif key == "paramKind":
|
|
1627
|
+
suggest = "param_kind"
|
|
1628
|
+
elif key == "reinvocationPolicy":
|
|
1629
|
+
suggest = "reinvocation_policy"
|
|
1630
|
+
|
|
1631
|
+
if suggest:
|
|
1632
|
+
pulumi.log.warn(f"Key '{key}' not found in MutatingAdmissionPolicySpecPatch. Access the value via the '{suggest}' property getter instead.")
|
|
1633
|
+
|
|
1634
|
+
def __getitem__(self, key: str) -> Any:
|
|
1635
|
+
MutatingAdmissionPolicySpecPatch.__key_warning(key)
|
|
1636
|
+
return super().__getitem__(key)
|
|
1637
|
+
|
|
1638
|
+
def get(self, key: str, default = None) -> Any:
|
|
1639
|
+
MutatingAdmissionPolicySpecPatch.__key_warning(key)
|
|
1640
|
+
return super().get(key, default)
|
|
1641
|
+
|
|
1642
|
+
def __init__(__self__, *,
|
|
1643
|
+
failure_policy: Optional[_builtins.str] = None,
|
|
1644
|
+
match_conditions: Optional[Sequence['outputs.MatchConditionPatch']] = None,
|
|
1645
|
+
match_constraints: Optional['outputs.MatchResourcesPatch'] = None,
|
|
1646
|
+
mutations: Optional[Sequence['outputs.MutationPatch']] = None,
|
|
1647
|
+
param_kind: Optional['outputs.ParamKindPatch'] = None,
|
|
1648
|
+
reinvocation_policy: Optional[_builtins.str] = None,
|
|
1649
|
+
variables: Optional[Sequence['outputs.VariablePatch']] = None):
|
|
1650
|
+
"""
|
|
1651
|
+
MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.
|
|
1652
|
+
:param _builtins.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.
|
|
1653
|
+
|
|
1654
|
+
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.
|
|
1655
|
+
|
|
1656
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1657
|
+
|
|
1658
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
1659
|
+
:param Sequence['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.
|
|
1660
|
+
|
|
1661
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
1662
|
+
|
|
1663
|
+
The exact matching logic is (in order):
|
|
1664
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1665
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1666
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1667
|
+
- If failurePolicy=Fail, reject the request
|
|
1668
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1669
|
+
:param '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.
|
|
1670
|
+
:param Sequence['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.
|
|
1671
|
+
:param '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.
|
|
1672
|
+
:param _builtins.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".
|
|
1673
|
+
|
|
1674
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
1675
|
+
|
|
1676
|
+
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.
|
|
1677
|
+
:param Sequence['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.
|
|
1678
|
+
|
|
1679
|
+
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.
|
|
1680
|
+
"""
|
|
1681
|
+
if failure_policy is not None:
|
|
1682
|
+
pulumi.set(__self__, "failure_policy", failure_policy)
|
|
1683
|
+
if match_conditions is not None:
|
|
1684
|
+
pulumi.set(__self__, "match_conditions", match_conditions)
|
|
1685
|
+
if match_constraints is not None:
|
|
1686
|
+
pulumi.set(__self__, "match_constraints", match_constraints)
|
|
1687
|
+
if mutations is not None:
|
|
1688
|
+
pulumi.set(__self__, "mutations", mutations)
|
|
1689
|
+
if param_kind is not None:
|
|
1690
|
+
pulumi.set(__self__, "param_kind", param_kind)
|
|
1691
|
+
if reinvocation_policy is not None:
|
|
1692
|
+
pulumi.set(__self__, "reinvocation_policy", reinvocation_policy)
|
|
1693
|
+
if variables is not None:
|
|
1694
|
+
pulumi.set(__self__, "variables", variables)
|
|
1695
|
+
|
|
1696
|
+
@_builtins.property
|
|
1697
|
+
@pulumi.getter(name="failurePolicy")
|
|
1698
|
+
def failure_policy(self) -> Optional[_builtins.str]:
|
|
1699
|
+
"""
|
|
1700
|
+
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.
|
|
1701
|
+
|
|
1702
|
+
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.
|
|
1703
|
+
|
|
1704
|
+
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1705
|
+
|
|
1706
|
+
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
490
1707
|
"""
|
|
491
|
-
return pulumi.get(self, "
|
|
1708
|
+
return pulumi.get(self, "failure_policy")
|
|
492
1709
|
|
|
493
|
-
@property
|
|
494
|
-
@pulumi.getter(name="
|
|
495
|
-
def
|
|
1710
|
+
@_builtins.property
|
|
1711
|
+
@pulumi.getter(name="matchConditions")
|
|
1712
|
+
def match_conditions(self) -> Optional[Sequence['outputs.MatchConditionPatch']]:
|
|
496
1713
|
"""
|
|
497
|
-
|
|
1714
|
+
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.
|
|
498
1715
|
|
|
499
|
-
|
|
1716
|
+
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
500
1717
|
|
|
501
|
-
|
|
1718
|
+
The exact matching logic is (in order):
|
|
1719
|
+
1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
|
|
1720
|
+
2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
|
|
1721
|
+
3. If any matchCondition evaluates to an error (but none are FALSE):
|
|
1722
|
+
- If failurePolicy=Fail, reject the request
|
|
1723
|
+
- If failurePolicy=Ignore, the policy is skipped
|
|
1724
|
+
"""
|
|
1725
|
+
return pulumi.get(self, "match_conditions")
|
|
502
1726
|
|
|
503
|
-
|
|
1727
|
+
@_builtins.property
|
|
1728
|
+
@pulumi.getter(name="matchConstraints")
|
|
1729
|
+
def match_constraints(self) -> Optional['outputs.MatchResourcesPatch']:
|
|
504
1730
|
"""
|
|
505
|
-
|
|
1731
|
+
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.
|
|
1732
|
+
"""
|
|
1733
|
+
return pulumi.get(self, "match_constraints")
|
|
506
1734
|
|
|
507
|
-
@property
|
|
508
|
-
@pulumi.getter
|
|
509
|
-
def
|
|
1735
|
+
@_builtins.property
|
|
1736
|
+
@pulumi.getter
|
|
1737
|
+
def mutations(self) -> Optional[Sequence['outputs.MutationPatch']]:
|
|
510
1738
|
"""
|
|
511
|
-
|
|
1739
|
+
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.
|
|
1740
|
+
"""
|
|
1741
|
+
return pulumi.get(self, "mutations")
|
|
512
1742
|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
"1"
|
|
521
|
-
]
|
|
522
|
-
}
|
|
523
|
-
]
|
|
524
|
-
}
|
|
1743
|
+
@_builtins.property
|
|
1744
|
+
@pulumi.getter(name="paramKind")
|
|
1745
|
+
def param_kind(self) -> Optional['outputs.ParamKindPatch']:
|
|
1746
|
+
"""
|
|
1747
|
+
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.
|
|
1748
|
+
"""
|
|
1749
|
+
return pulumi.get(self, "param_kind")
|
|
525
1750
|
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
"values": [
|
|
532
|
-
"prod",
|
|
533
|
-
"staging"
|
|
534
|
-
]
|
|
535
|
-
}
|
|
536
|
-
]
|
|
537
|
-
}
|
|
1751
|
+
@_builtins.property
|
|
1752
|
+
@pulumi.getter(name="reinvocationPolicy")
|
|
1753
|
+
def reinvocation_policy(self) -> Optional[_builtins.str]:
|
|
1754
|
+
"""
|
|
1755
|
+
reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded".
|
|
538
1756
|
|
|
539
|
-
|
|
1757
|
+
Never: These mutations will not be called more than once per binding in a single admission evaluation.
|
|
540
1758
|
|
|
541
|
-
|
|
1759
|
+
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.
|
|
542
1760
|
"""
|
|
543
|
-
return pulumi.get(self, "
|
|
1761
|
+
return pulumi.get(self, "reinvocation_policy")
|
|
544
1762
|
|
|
545
|
-
@property
|
|
546
|
-
@pulumi.getter
|
|
547
|
-
def
|
|
548
|
-
"""
|
|
549
|
-
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.
|
|
1763
|
+
@_builtins.property
|
|
1764
|
+
@pulumi.getter
|
|
1765
|
+
def variables(self) -> Optional[Sequence['outputs.VariablePatch']]:
|
|
550
1766
|
"""
|
|
551
|
-
|
|
1767
|
+
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.
|
|
552
1768
|
|
|
553
|
-
|
|
554
|
-
@pulumi.getter(name="resourceRules")
|
|
555
|
-
def resource_rules(self) -> Optional[Sequence['outputs.NamedRuleWithOperations']]:
|
|
556
|
-
"""
|
|
557
|
-
ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1769
|
+
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.
|
|
558
1770
|
"""
|
|
559
|
-
return pulumi.get(self, "
|
|
1771
|
+
return pulumi.get(self, "variables")
|
|
560
1772
|
|
|
561
1773
|
|
|
562
1774
|
@pulumi.output_type
|
|
563
|
-
class
|
|
1775
|
+
class Mutation(dict):
|
|
564
1776
|
"""
|
|
565
|
-
|
|
1777
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
566
1778
|
"""
|
|
567
1779
|
@staticmethod
|
|
568
1780
|
def __key_warning(key: str):
|
|
569
1781
|
suggest = None
|
|
570
|
-
if key == "
|
|
571
|
-
suggest = "
|
|
572
|
-
elif key == "
|
|
573
|
-
suggest = "
|
|
574
|
-
elif key == "
|
|
575
|
-
suggest = "
|
|
576
|
-
elif key == "objectSelector":
|
|
577
|
-
suggest = "object_selector"
|
|
578
|
-
elif key == "resourceRules":
|
|
579
|
-
suggest = "resource_rules"
|
|
1782
|
+
if key == "patchType":
|
|
1783
|
+
suggest = "patch_type"
|
|
1784
|
+
elif key == "applyConfiguration":
|
|
1785
|
+
suggest = "apply_configuration"
|
|
1786
|
+
elif key == "jsonPatch":
|
|
1787
|
+
suggest = "json_patch"
|
|
580
1788
|
|
|
581
1789
|
if suggest:
|
|
582
|
-
pulumi.log.warn(f"Key '{key}' not found in
|
|
1790
|
+
pulumi.log.warn(f"Key '{key}' not found in Mutation. Access the value via the '{suggest}' property getter instead.")
|
|
583
1791
|
|
|
584
1792
|
def __getitem__(self, key: str) -> Any:
|
|
585
|
-
|
|
1793
|
+
Mutation.__key_warning(key)
|
|
586
1794
|
return super().__getitem__(key)
|
|
587
1795
|
|
|
588
1796
|
def get(self, key: str, default = None) -> Any:
|
|
589
|
-
|
|
1797
|
+
Mutation.__key_warning(key)
|
|
590
1798
|
return super().get(key, default)
|
|
591
1799
|
|
|
592
1800
|
def __init__(__self__, *,
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
object_selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None,
|
|
597
|
-
resource_rules: Optional[Sequence['outputs.NamedRuleWithOperationsPatch']] = None):
|
|
1801
|
+
patch_type: _builtins.str,
|
|
1802
|
+
apply_configuration: Optional['outputs.ApplyConfiguration'] = None,
|
|
1803
|
+
json_patch: Optional['outputs.JSONPatch'] = None):
|
|
598
1804
|
"""
|
|
599
|
-
|
|
600
|
-
:param
|
|
601
|
-
:param
|
|
602
|
-
|
|
603
|
-
- 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.
|
|
604
|
-
|
|
605
|
-
- 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.
|
|
606
|
-
|
|
607
|
-
Defaults to "Equivalent"
|
|
608
|
-
:param '_meta.v1.LabelSelectorPatchArgs' 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.
|
|
609
|
-
|
|
610
|
-
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": {
|
|
611
|
-
"matchExpressions": [
|
|
612
|
-
{
|
|
613
|
-
"key": "runlevel",
|
|
614
|
-
"operator": "NotIn",
|
|
615
|
-
"values": [
|
|
616
|
-
"0",
|
|
617
|
-
"1"
|
|
618
|
-
]
|
|
619
|
-
}
|
|
620
|
-
]
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
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": {
|
|
624
|
-
"matchExpressions": [
|
|
625
|
-
{
|
|
626
|
-
"key": "environment",
|
|
627
|
-
"operator": "In",
|
|
628
|
-
"values": [
|
|
629
|
-
"prod",
|
|
630
|
-
"staging"
|
|
631
|
-
]
|
|
632
|
-
}
|
|
633
|
-
]
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.
|
|
637
|
-
|
|
638
|
-
Default to the empty LabelSelector, which matches everything.
|
|
639
|
-
:param '_meta.v1.LabelSelectorPatchArgs' object_selector: 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.
|
|
640
|
-
:param Sequence['NamedRuleWithOperationsPatchArgs'] resource_rules: ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.
|
|
1805
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
1806
|
+
:param _builtins.str patch_type: patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
1807
|
+
:param '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.
|
|
1808
|
+
:param '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.
|
|
641
1809
|
"""
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
pulumi.set(__self__, "namespace_selector", namespace_selector)
|
|
648
|
-
if object_selector is not None:
|
|
649
|
-
pulumi.set(__self__, "object_selector", object_selector)
|
|
650
|
-
if resource_rules is not None:
|
|
651
|
-
pulumi.set(__self__, "resource_rules", resource_rules)
|
|
1810
|
+
pulumi.set(__self__, "patch_type", patch_type)
|
|
1811
|
+
if apply_configuration is not None:
|
|
1812
|
+
pulumi.set(__self__, "apply_configuration", apply_configuration)
|
|
1813
|
+
if json_patch is not None:
|
|
1814
|
+
pulumi.set(__self__, "json_patch", json_patch)
|
|
652
1815
|
|
|
653
|
-
@property
|
|
654
|
-
@pulumi.getter(name="
|
|
655
|
-
def
|
|
1816
|
+
@_builtins.property
|
|
1817
|
+
@pulumi.getter(name="patchType")
|
|
1818
|
+
def patch_type(self) -> _builtins.str:
|
|
656
1819
|
"""
|
|
657
|
-
|
|
1820
|
+
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
658
1821
|
"""
|
|
659
|
-
return pulumi.get(self, "
|
|
1822
|
+
return pulumi.get(self, "patch_type")
|
|
660
1823
|
|
|
661
|
-
@property
|
|
662
|
-
@pulumi.getter(name="
|
|
663
|
-
def
|
|
1824
|
+
@_builtins.property
|
|
1825
|
+
@pulumi.getter(name="applyConfiguration")
|
|
1826
|
+
def apply_configuration(self) -> Optional['outputs.ApplyConfiguration']:
|
|
664
1827
|
"""
|
|
665
|
-
|
|
1828
|
+
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.
|
|
1829
|
+
"""
|
|
1830
|
+
return pulumi.get(self, "apply_configuration")
|
|
666
1831
|
|
|
667
|
-
|
|
1832
|
+
@_builtins.property
|
|
1833
|
+
@pulumi.getter(name="jsonPatch")
|
|
1834
|
+
def json_patch(self) -> Optional['outputs.JSONPatch']:
|
|
1835
|
+
"""
|
|
1836
|
+
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.
|
|
1837
|
+
"""
|
|
1838
|
+
return pulumi.get(self, "json_patch")
|
|
668
1839
|
|
|
669
|
-
- 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.
|
|
670
1840
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
1841
|
+
@pulumi.output_type
|
|
1842
|
+
class MutationPatch(dict):
|
|
1843
|
+
"""
|
|
1844
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
1845
|
+
"""
|
|
1846
|
+
@staticmethod
|
|
1847
|
+
def __key_warning(key: str):
|
|
1848
|
+
suggest = None
|
|
1849
|
+
if key == "applyConfiguration":
|
|
1850
|
+
suggest = "apply_configuration"
|
|
1851
|
+
elif key == "jsonPatch":
|
|
1852
|
+
suggest = "json_patch"
|
|
1853
|
+
elif key == "patchType":
|
|
1854
|
+
suggest = "patch_type"
|
|
674
1855
|
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
def namespace_selector(self) -> Optional['_meta.v1.outputs.LabelSelectorPatch']:
|
|
678
|
-
"""
|
|
679
|
-
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.
|
|
1856
|
+
if suggest:
|
|
1857
|
+
pulumi.log.warn(f"Key '{key}' not found in MutationPatch. Access the value via the '{suggest}' property getter instead.")
|
|
680
1858
|
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
"key": "runlevel",
|
|
685
|
-
"operator": "NotIn",
|
|
686
|
-
"values": [
|
|
687
|
-
"0",
|
|
688
|
-
"1"
|
|
689
|
-
]
|
|
690
|
-
}
|
|
691
|
-
]
|
|
692
|
-
}
|
|
1859
|
+
def __getitem__(self, key: str) -> Any:
|
|
1860
|
+
MutationPatch.__key_warning(key)
|
|
1861
|
+
return super().__getitem__(key)
|
|
693
1862
|
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
"key": "environment",
|
|
698
|
-
"operator": "In",
|
|
699
|
-
"values": [
|
|
700
|
-
"prod",
|
|
701
|
-
"staging"
|
|
702
|
-
]
|
|
703
|
-
}
|
|
704
|
-
]
|
|
705
|
-
}
|
|
1863
|
+
def get(self, key: str, default = None) -> Any:
|
|
1864
|
+
MutationPatch.__key_warning(key)
|
|
1865
|
+
return super().get(key, default)
|
|
706
1866
|
|
|
707
|
-
|
|
1867
|
+
def __init__(__self__, *,
|
|
1868
|
+
apply_configuration: Optional['outputs.ApplyConfigurationPatch'] = None,
|
|
1869
|
+
json_patch: Optional['outputs.JSONPatchPatch'] = None,
|
|
1870
|
+
patch_type: Optional[_builtins.str] = None):
|
|
1871
|
+
"""
|
|
1872
|
+
Mutation specifies the CEL expression which is used to apply the Mutation.
|
|
1873
|
+
:param '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.
|
|
1874
|
+
:param '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.
|
|
1875
|
+
:param _builtins.str patch_type: patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
1876
|
+
"""
|
|
1877
|
+
if apply_configuration is not None:
|
|
1878
|
+
pulumi.set(__self__, "apply_configuration", apply_configuration)
|
|
1879
|
+
if json_patch is not None:
|
|
1880
|
+
pulumi.set(__self__, "json_patch", json_patch)
|
|
1881
|
+
if patch_type is not None:
|
|
1882
|
+
pulumi.set(__self__, "patch_type", patch_type)
|
|
708
1883
|
|
|
709
|
-
|
|
1884
|
+
@_builtins.property
|
|
1885
|
+
@pulumi.getter(name="applyConfiguration")
|
|
1886
|
+
def apply_configuration(self) -> Optional['outputs.ApplyConfigurationPatch']:
|
|
710
1887
|
"""
|
|
711
|
-
|
|
1888
|
+
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.
|
|
1889
|
+
"""
|
|
1890
|
+
return pulumi.get(self, "apply_configuration")
|
|
712
1891
|
|
|
713
|
-
@property
|
|
714
|
-
@pulumi.getter(name="
|
|
715
|
-
def
|
|
1892
|
+
@_builtins.property
|
|
1893
|
+
@pulumi.getter(name="jsonPatch")
|
|
1894
|
+
def json_patch(self) -> Optional['outputs.JSONPatchPatch']:
|
|
716
1895
|
"""
|
|
717
|
-
|
|
1896
|
+
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.
|
|
718
1897
|
"""
|
|
719
|
-
return pulumi.get(self, "
|
|
1898
|
+
return pulumi.get(self, "json_patch")
|
|
720
1899
|
|
|
721
|
-
@property
|
|
722
|
-
@pulumi.getter(name="
|
|
723
|
-
def
|
|
1900
|
+
@_builtins.property
|
|
1901
|
+
@pulumi.getter(name="patchType")
|
|
1902
|
+
def patch_type(self) -> Optional[_builtins.str]:
|
|
724
1903
|
"""
|
|
725
|
-
|
|
1904
|
+
patchType indicates the patch strategy used. Allowed values are "ApplyConfiguration" and "JSONPatch". Required.
|
|
726
1905
|
"""
|
|
727
|
-
return pulumi.get(self, "
|
|
1906
|
+
return pulumi.get(self, "patch_type")
|
|
728
1907
|
|
|
729
1908
|
|
|
730
1909
|
@pulumi.output_type
|
|
@@ -754,26 +1933,26 @@ class NamedRuleWithOperations(dict):
|
|
|
754
1933
|
return super().get(key, default)
|
|
755
1934
|
|
|
756
1935
|
def __init__(__self__, *,
|
|
757
|
-
api_groups: Optional[Sequence[str]] = None,
|
|
758
|
-
api_versions: Optional[Sequence[str]] = None,
|
|
759
|
-
operations: Optional[Sequence[str]] = None,
|
|
760
|
-
resource_names: Optional[Sequence[str]] = None,
|
|
761
|
-
resources: Optional[Sequence[str]] = None,
|
|
762
|
-
scope: Optional[str] = None):
|
|
1936
|
+
api_groups: Optional[Sequence[_builtins.str]] = None,
|
|
1937
|
+
api_versions: Optional[Sequence[_builtins.str]] = None,
|
|
1938
|
+
operations: Optional[Sequence[_builtins.str]] = None,
|
|
1939
|
+
resource_names: Optional[Sequence[_builtins.str]] = None,
|
|
1940
|
+
resources: Optional[Sequence[_builtins.str]] = None,
|
|
1941
|
+
scope: Optional[_builtins.str] = None):
|
|
763
1942
|
"""
|
|
764
1943
|
NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
|
|
765
|
-
:param Sequence[str] api_groups: APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
766
|
-
:param Sequence[str] api_versions: APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
767
|
-
:param Sequence[str] operations: 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.
|
|
768
|
-
:param Sequence[str] resource_names: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
769
|
-
:param Sequence[str] resources: Resources is a list of resources this rule applies to.
|
|
1944
|
+
:param Sequence[_builtins.str] api_groups: APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
1945
|
+
:param Sequence[_builtins.str] api_versions: APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
1946
|
+
:param Sequence[_builtins.str] operations: 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.
|
|
1947
|
+
:param Sequence[_builtins.str] resource_names: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
1948
|
+
:param Sequence[_builtins.str] resources: Resources is a list of resources this rule applies to.
|
|
770
1949
|
|
|
771
1950
|
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.
|
|
772
1951
|
|
|
773
1952
|
If wildcard is present, the validation rule will ensure resources do not overlap with each other.
|
|
774
1953
|
|
|
775
1954
|
Depending on the enclosing object, subresources might not be allowed. Required.
|
|
776
|
-
:param str scope: 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 "*".
|
|
1955
|
+
:param _builtins.str scope: 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 "*".
|
|
777
1956
|
"""
|
|
778
1957
|
if api_groups is not None:
|
|
779
1958
|
pulumi.set(__self__, "api_groups", api_groups)
|
|
@@ -788,41 +1967,41 @@ class NamedRuleWithOperations(dict):
|
|
|
788
1967
|
if scope is not None:
|
|
789
1968
|
pulumi.set(__self__, "scope", scope)
|
|
790
1969
|
|
|
791
|
-
@property
|
|
1970
|
+
@_builtins.property
|
|
792
1971
|
@pulumi.getter(name="apiGroups")
|
|
793
|
-
def api_groups(self) -> Optional[Sequence[str]]:
|
|
1972
|
+
def api_groups(self) -> Optional[Sequence[_builtins.str]]:
|
|
794
1973
|
"""
|
|
795
1974
|
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
796
1975
|
"""
|
|
797
1976
|
return pulumi.get(self, "api_groups")
|
|
798
1977
|
|
|
799
|
-
@property
|
|
1978
|
+
@_builtins.property
|
|
800
1979
|
@pulumi.getter(name="apiVersions")
|
|
801
|
-
def api_versions(self) -> Optional[Sequence[str]]:
|
|
1980
|
+
def api_versions(self) -> Optional[Sequence[_builtins.str]]:
|
|
802
1981
|
"""
|
|
803
1982
|
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
804
1983
|
"""
|
|
805
1984
|
return pulumi.get(self, "api_versions")
|
|
806
1985
|
|
|
807
|
-
@property
|
|
1986
|
+
@_builtins.property
|
|
808
1987
|
@pulumi.getter
|
|
809
|
-
def operations(self) -> Optional[Sequence[str]]:
|
|
1988
|
+
def operations(self) -> Optional[Sequence[_builtins.str]]:
|
|
810
1989
|
"""
|
|
811
1990
|
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.
|
|
812
1991
|
"""
|
|
813
1992
|
return pulumi.get(self, "operations")
|
|
814
1993
|
|
|
815
|
-
@property
|
|
1994
|
+
@_builtins.property
|
|
816
1995
|
@pulumi.getter(name="resourceNames")
|
|
817
|
-
def resource_names(self) -> Optional[Sequence[str]]:
|
|
1996
|
+
def resource_names(self) -> Optional[Sequence[_builtins.str]]:
|
|
818
1997
|
"""
|
|
819
1998
|
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
820
1999
|
"""
|
|
821
2000
|
return pulumi.get(self, "resource_names")
|
|
822
2001
|
|
|
823
|
-
@property
|
|
2002
|
+
@_builtins.property
|
|
824
2003
|
@pulumi.getter
|
|
825
|
-
def resources(self) -> Optional[Sequence[str]]:
|
|
2004
|
+
def resources(self) -> Optional[Sequence[_builtins.str]]:
|
|
826
2005
|
"""
|
|
827
2006
|
Resources is a list of resources this rule applies to.
|
|
828
2007
|
|
|
@@ -834,9 +2013,9 @@ class NamedRuleWithOperations(dict):
|
|
|
834
2013
|
"""
|
|
835
2014
|
return pulumi.get(self, "resources")
|
|
836
2015
|
|
|
837
|
-
@property
|
|
2016
|
+
@_builtins.property
|
|
838
2017
|
@pulumi.getter
|
|
839
|
-
def scope(self) -> Optional[str]:
|
|
2018
|
+
def scope(self) -> Optional[_builtins.str]:
|
|
840
2019
|
"""
|
|
841
2020
|
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 "*".
|
|
842
2021
|
"""
|
|
@@ -870,26 +2049,26 @@ class NamedRuleWithOperationsPatch(dict):
|
|
|
870
2049
|
return super().get(key, default)
|
|
871
2050
|
|
|
872
2051
|
def __init__(__self__, *,
|
|
873
|
-
api_groups: Optional[Sequence[str]] = None,
|
|
874
|
-
api_versions: Optional[Sequence[str]] = None,
|
|
875
|
-
operations: Optional[Sequence[str]] = None,
|
|
876
|
-
resource_names: Optional[Sequence[str]] = None,
|
|
877
|
-
resources: Optional[Sequence[str]] = None,
|
|
878
|
-
scope: Optional[str] = None):
|
|
2052
|
+
api_groups: Optional[Sequence[_builtins.str]] = None,
|
|
2053
|
+
api_versions: Optional[Sequence[_builtins.str]] = None,
|
|
2054
|
+
operations: Optional[Sequence[_builtins.str]] = None,
|
|
2055
|
+
resource_names: Optional[Sequence[_builtins.str]] = None,
|
|
2056
|
+
resources: Optional[Sequence[_builtins.str]] = None,
|
|
2057
|
+
scope: Optional[_builtins.str] = None):
|
|
879
2058
|
"""
|
|
880
2059
|
NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.
|
|
881
|
-
:param Sequence[str] api_groups: APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
882
|
-
:param Sequence[str] api_versions: APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
883
|
-
:param Sequence[str] operations: 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.
|
|
884
|
-
:param Sequence[str] resource_names: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
885
|
-
:param Sequence[str] resources: Resources is a list of resources this rule applies to.
|
|
2060
|
+
:param Sequence[_builtins.str] api_groups: APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
2061
|
+
:param Sequence[_builtins.str] api_versions: APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
2062
|
+
:param Sequence[_builtins.str] operations: 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.
|
|
2063
|
+
:param Sequence[_builtins.str] resource_names: ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
2064
|
+
:param Sequence[_builtins.str] resources: Resources is a list of resources this rule applies to.
|
|
886
2065
|
|
|
887
2066
|
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.
|
|
888
2067
|
|
|
889
2068
|
If wildcard is present, the validation rule will ensure resources do not overlap with each other.
|
|
890
2069
|
|
|
891
2070
|
Depending on the enclosing object, subresources might not be allowed. Required.
|
|
892
|
-
:param str scope: 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 "*".
|
|
2071
|
+
:param _builtins.str scope: 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 "*".
|
|
893
2072
|
"""
|
|
894
2073
|
if api_groups is not None:
|
|
895
2074
|
pulumi.set(__self__, "api_groups", api_groups)
|
|
@@ -904,41 +2083,41 @@ class NamedRuleWithOperationsPatch(dict):
|
|
|
904
2083
|
if scope is not None:
|
|
905
2084
|
pulumi.set(__self__, "scope", scope)
|
|
906
2085
|
|
|
907
|
-
@property
|
|
2086
|
+
@_builtins.property
|
|
908
2087
|
@pulumi.getter(name="apiGroups")
|
|
909
|
-
def api_groups(self) -> Optional[Sequence[str]]:
|
|
2088
|
+
def api_groups(self) -> Optional[Sequence[_builtins.str]]:
|
|
910
2089
|
"""
|
|
911
2090
|
APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.
|
|
912
2091
|
"""
|
|
913
2092
|
return pulumi.get(self, "api_groups")
|
|
914
2093
|
|
|
915
|
-
@property
|
|
2094
|
+
@_builtins.property
|
|
916
2095
|
@pulumi.getter(name="apiVersions")
|
|
917
|
-
def api_versions(self) -> Optional[Sequence[str]]:
|
|
2096
|
+
def api_versions(self) -> Optional[Sequence[_builtins.str]]:
|
|
918
2097
|
"""
|
|
919
2098
|
APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.
|
|
920
2099
|
"""
|
|
921
2100
|
return pulumi.get(self, "api_versions")
|
|
922
2101
|
|
|
923
|
-
@property
|
|
2102
|
+
@_builtins.property
|
|
924
2103
|
@pulumi.getter
|
|
925
|
-
def operations(self) -> Optional[Sequence[str]]:
|
|
2104
|
+
def operations(self) -> Optional[Sequence[_builtins.str]]:
|
|
926
2105
|
"""
|
|
927
2106
|
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.
|
|
928
2107
|
"""
|
|
929
2108
|
return pulumi.get(self, "operations")
|
|
930
2109
|
|
|
931
|
-
@property
|
|
2110
|
+
@_builtins.property
|
|
932
2111
|
@pulumi.getter(name="resourceNames")
|
|
933
|
-
def resource_names(self) -> Optional[Sequence[str]]:
|
|
2112
|
+
def resource_names(self) -> Optional[Sequence[_builtins.str]]:
|
|
934
2113
|
"""
|
|
935
2114
|
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
|
|
936
2115
|
"""
|
|
937
2116
|
return pulumi.get(self, "resource_names")
|
|
938
2117
|
|
|
939
|
-
@property
|
|
2118
|
+
@_builtins.property
|
|
940
2119
|
@pulumi.getter
|
|
941
|
-
def resources(self) -> Optional[Sequence[str]]:
|
|
2120
|
+
def resources(self) -> Optional[Sequence[_builtins.str]]:
|
|
942
2121
|
"""
|
|
943
2122
|
Resources is a list of resources this rule applies to.
|
|
944
2123
|
|
|
@@ -950,9 +2129,9 @@ class NamedRuleWithOperationsPatch(dict):
|
|
|
950
2129
|
"""
|
|
951
2130
|
return pulumi.get(self, "resources")
|
|
952
2131
|
|
|
953
|
-
@property
|
|
2132
|
+
@_builtins.property
|
|
954
2133
|
@pulumi.getter
|
|
955
|
-
def scope(self) -> Optional[str]:
|
|
2134
|
+
def scope(self) -> Optional[_builtins.str]:
|
|
956
2135
|
"""
|
|
957
2136
|
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 "*".
|
|
958
2137
|
"""
|
|
@@ -982,29 +2161,29 @@ class ParamKind(dict):
|
|
|
982
2161
|
return super().get(key, default)
|
|
983
2162
|
|
|
984
2163
|
def __init__(__self__, *,
|
|
985
|
-
api_version: Optional[str] = None,
|
|
986
|
-
kind: Optional[str] = None):
|
|
2164
|
+
api_version: Optional[_builtins.str] = None,
|
|
2165
|
+
kind: Optional[_builtins.str] = None):
|
|
987
2166
|
"""
|
|
988
2167
|
ParamKind is a tuple of Group Kind and Version.
|
|
989
|
-
:param str api_version: APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
990
|
-
:param str kind: Kind is the API kind the resources belong to. Required.
|
|
2168
|
+
:param _builtins.str api_version: APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
2169
|
+
:param _builtins.str kind: Kind is the API kind the resources belong to. Required.
|
|
991
2170
|
"""
|
|
992
2171
|
if api_version is not None:
|
|
993
2172
|
pulumi.set(__self__, "api_version", api_version)
|
|
994
2173
|
if kind is not None:
|
|
995
2174
|
pulumi.set(__self__, "kind", kind)
|
|
996
2175
|
|
|
997
|
-
@property
|
|
2176
|
+
@_builtins.property
|
|
998
2177
|
@pulumi.getter(name="apiVersion")
|
|
999
|
-
def api_version(self) -> Optional[str]:
|
|
2178
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1000
2179
|
"""
|
|
1001
2180
|
APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
1002
2181
|
"""
|
|
1003
2182
|
return pulumi.get(self, "api_version")
|
|
1004
2183
|
|
|
1005
|
-
@property
|
|
2184
|
+
@_builtins.property
|
|
1006
2185
|
@pulumi.getter
|
|
1007
|
-
def kind(self) -> Optional[str]:
|
|
2186
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1008
2187
|
"""
|
|
1009
2188
|
Kind is the API kind the resources belong to. Required.
|
|
1010
2189
|
"""
|
|
@@ -1034,29 +2213,29 @@ class ParamKindPatch(dict):
|
|
|
1034
2213
|
return super().get(key, default)
|
|
1035
2214
|
|
|
1036
2215
|
def __init__(__self__, *,
|
|
1037
|
-
api_version: Optional[str] = None,
|
|
1038
|
-
kind: Optional[str] = None):
|
|
2216
|
+
api_version: Optional[_builtins.str] = None,
|
|
2217
|
+
kind: Optional[_builtins.str] = None):
|
|
1039
2218
|
"""
|
|
1040
2219
|
ParamKind is a tuple of Group Kind and Version.
|
|
1041
|
-
:param str api_version: APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
1042
|
-
:param str kind: Kind is the API kind the resources belong to. Required.
|
|
2220
|
+
:param _builtins.str api_version: APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
2221
|
+
:param _builtins.str kind: Kind is the API kind the resources belong to. Required.
|
|
1043
2222
|
"""
|
|
1044
2223
|
if api_version is not None:
|
|
1045
2224
|
pulumi.set(__self__, "api_version", api_version)
|
|
1046
2225
|
if kind is not None:
|
|
1047
2226
|
pulumi.set(__self__, "kind", kind)
|
|
1048
2227
|
|
|
1049
|
-
@property
|
|
2228
|
+
@_builtins.property
|
|
1050
2229
|
@pulumi.getter(name="apiVersion")
|
|
1051
|
-
def api_version(self) -> Optional[str]:
|
|
2230
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1052
2231
|
"""
|
|
1053
2232
|
APIVersion is the API group version the resources belong to. In format of "group/version". Required.
|
|
1054
2233
|
"""
|
|
1055
2234
|
return pulumi.get(self, "api_version")
|
|
1056
2235
|
|
|
1057
|
-
@property
|
|
2236
|
+
@_builtins.property
|
|
1058
2237
|
@pulumi.getter
|
|
1059
|
-
def kind(self) -> Optional[str]:
|
|
2238
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1060
2239
|
"""
|
|
1061
2240
|
Kind is the API kind the resources belong to. Required.
|
|
1062
2241
|
"""
|
|
@@ -1086,23 +2265,23 @@ class ParamRef(dict):
|
|
|
1086
2265
|
return super().get(key, default)
|
|
1087
2266
|
|
|
1088
2267
|
def __init__(__self__, *,
|
|
1089
|
-
name: Optional[str] = None,
|
|
1090
|
-
namespace: Optional[str] = None,
|
|
1091
|
-
parameter_not_found_action: Optional[str] = None,
|
|
2268
|
+
name: Optional[_builtins.str] = None,
|
|
2269
|
+
namespace: Optional[_builtins.str] = None,
|
|
2270
|
+
parameter_not_found_action: Optional[_builtins.str] = None,
|
|
1092
2271
|
selector: Optional['_meta.v1.outputs.LabelSelector'] = None):
|
|
1093
2272
|
"""
|
|
1094
2273
|
ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
|
|
1095
|
-
:param str name: `name` is the name of the resource being referenced.
|
|
2274
|
+
:param _builtins.str name: `name` is the name of the resource being referenced.
|
|
1096
2275
|
|
|
1097
2276
|
`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
|
|
1098
|
-
:param str namespace: 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.
|
|
2277
|
+
:param _builtins.str namespace: 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.
|
|
1099
2278
|
|
|
1100
2279
|
A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
|
|
1101
2280
|
|
|
1102
2281
|
- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
|
|
1103
2282
|
|
|
1104
2283
|
- 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.
|
|
1105
|
-
:param str parameter_not_found_action: `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.
|
|
2284
|
+
:param _builtins.str parameter_not_found_action: `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.
|
|
1106
2285
|
|
|
1107
2286
|
Allowed values are `Allow` or `Deny` Default to `Deny`
|
|
1108
2287
|
:param '_meta.v1.LabelSelectorArgs' selector: selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
|
|
@@ -1120,9 +2299,9 @@ class ParamRef(dict):
|
|
|
1120
2299
|
if selector is not None:
|
|
1121
2300
|
pulumi.set(__self__, "selector", selector)
|
|
1122
2301
|
|
|
1123
|
-
@property
|
|
2302
|
+
@_builtins.property
|
|
1124
2303
|
@pulumi.getter
|
|
1125
|
-
def name(self) -> Optional[str]:
|
|
2304
|
+
def name(self) -> Optional[_builtins.str]:
|
|
1126
2305
|
"""
|
|
1127
2306
|
`name` is the name of the resource being referenced.
|
|
1128
2307
|
|
|
@@ -1130,9 +2309,9 @@ class ParamRef(dict):
|
|
|
1130
2309
|
"""
|
|
1131
2310
|
return pulumi.get(self, "name")
|
|
1132
2311
|
|
|
1133
|
-
@property
|
|
2312
|
+
@_builtins.property
|
|
1134
2313
|
@pulumi.getter
|
|
1135
|
-
def namespace(self) -> Optional[str]:
|
|
2314
|
+
def namespace(self) -> Optional[_builtins.str]:
|
|
1136
2315
|
"""
|
|
1137
2316
|
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.
|
|
1138
2317
|
|
|
@@ -1144,9 +2323,9 @@ class ParamRef(dict):
|
|
|
1144
2323
|
"""
|
|
1145
2324
|
return pulumi.get(self, "namespace")
|
|
1146
2325
|
|
|
1147
|
-
@property
|
|
2326
|
+
@_builtins.property
|
|
1148
2327
|
@pulumi.getter(name="parameterNotFoundAction")
|
|
1149
|
-
def parameter_not_found_action(self) -> Optional[str]:
|
|
2328
|
+
def parameter_not_found_action(self) -> Optional[_builtins.str]:
|
|
1150
2329
|
"""
|
|
1151
2330
|
`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.
|
|
1152
2331
|
|
|
@@ -1154,7 +2333,7 @@ class ParamRef(dict):
|
|
|
1154
2333
|
"""
|
|
1155
2334
|
return pulumi.get(self, "parameter_not_found_action")
|
|
1156
2335
|
|
|
1157
|
-
@property
|
|
2336
|
+
@_builtins.property
|
|
1158
2337
|
@pulumi.getter
|
|
1159
2338
|
def selector(self) -> Optional['_meta.v1.outputs.LabelSelector']:
|
|
1160
2339
|
"""
|
|
@@ -1190,23 +2369,23 @@ class ParamRefPatch(dict):
|
|
|
1190
2369
|
return super().get(key, default)
|
|
1191
2370
|
|
|
1192
2371
|
def __init__(__self__, *,
|
|
1193
|
-
name: Optional[str] = None,
|
|
1194
|
-
namespace: Optional[str] = None,
|
|
1195
|
-
parameter_not_found_action: Optional[str] = None,
|
|
2372
|
+
name: Optional[_builtins.str] = None,
|
|
2373
|
+
namespace: Optional[_builtins.str] = None,
|
|
2374
|
+
parameter_not_found_action: Optional[_builtins.str] = None,
|
|
1196
2375
|
selector: Optional['_meta.v1.outputs.LabelSelectorPatch'] = None):
|
|
1197
2376
|
"""
|
|
1198
2377
|
ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.
|
|
1199
|
-
:param str name: `name` is the name of the resource being referenced.
|
|
2378
|
+
:param _builtins.str name: `name` is the name of the resource being referenced.
|
|
1200
2379
|
|
|
1201
2380
|
`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.
|
|
1202
|
-
:param str namespace: 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.
|
|
2381
|
+
:param _builtins.str namespace: 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.
|
|
1203
2382
|
|
|
1204
2383
|
A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty.
|
|
1205
2384
|
|
|
1206
2385
|
- If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error.
|
|
1207
2386
|
|
|
1208
2387
|
- 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.
|
|
1209
|
-
:param str parameter_not_found_action: `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.
|
|
2388
|
+
:param _builtins.str parameter_not_found_action: `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.
|
|
1210
2389
|
|
|
1211
2390
|
Allowed values are `Allow` or `Deny` Default to `Deny`
|
|
1212
2391
|
:param '_meta.v1.LabelSelectorPatchArgs' selector: selector can be used to match multiple param objects based on their labels. Supply selector: {} to match all resources of the ParamKind.
|
|
@@ -1224,9 +2403,9 @@ class ParamRefPatch(dict):
|
|
|
1224
2403
|
if selector is not None:
|
|
1225
2404
|
pulumi.set(__self__, "selector", selector)
|
|
1226
2405
|
|
|
1227
|
-
@property
|
|
2406
|
+
@_builtins.property
|
|
1228
2407
|
@pulumi.getter
|
|
1229
|
-
def name(self) -> Optional[str]:
|
|
2408
|
+
def name(self) -> Optional[_builtins.str]:
|
|
1230
2409
|
"""
|
|
1231
2410
|
`name` is the name of the resource being referenced.
|
|
1232
2411
|
|
|
@@ -1234,9 +2413,9 @@ class ParamRefPatch(dict):
|
|
|
1234
2413
|
"""
|
|
1235
2414
|
return pulumi.get(self, "name")
|
|
1236
2415
|
|
|
1237
|
-
@property
|
|
2416
|
+
@_builtins.property
|
|
1238
2417
|
@pulumi.getter
|
|
1239
|
-
def namespace(self) -> Optional[str]:
|
|
2418
|
+
def namespace(self) -> Optional[_builtins.str]:
|
|
1240
2419
|
"""
|
|
1241
2420
|
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.
|
|
1242
2421
|
|
|
@@ -1248,9 +2427,9 @@ class ParamRefPatch(dict):
|
|
|
1248
2427
|
"""
|
|
1249
2428
|
return pulumi.get(self, "namespace")
|
|
1250
2429
|
|
|
1251
|
-
@property
|
|
2430
|
+
@_builtins.property
|
|
1252
2431
|
@pulumi.getter(name="parameterNotFoundAction")
|
|
1253
|
-
def parameter_not_found_action(self) -> Optional[str]:
|
|
2432
|
+
def parameter_not_found_action(self) -> Optional[_builtins.str]:
|
|
1254
2433
|
"""
|
|
1255
2434
|
`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.
|
|
1256
2435
|
|
|
@@ -1258,7 +2437,7 @@ class ParamRefPatch(dict):
|
|
|
1258
2437
|
"""
|
|
1259
2438
|
return pulumi.get(self, "parameter_not_found_action")
|
|
1260
2439
|
|
|
1261
|
-
@property
|
|
2440
|
+
@_builtins.property
|
|
1262
2441
|
@pulumi.getter
|
|
1263
2442
|
def selector(self) -> Optional['_meta.v1.outputs.LabelSelectorPatch']:
|
|
1264
2443
|
"""
|
|
@@ -1302,7 +2481,7 @@ class TypeChecking(dict):
|
|
|
1302
2481
|
if expression_warnings is not None:
|
|
1303
2482
|
pulumi.set(__self__, "expression_warnings", expression_warnings)
|
|
1304
2483
|
|
|
1305
|
-
@property
|
|
2484
|
+
@_builtins.property
|
|
1306
2485
|
@pulumi.getter(name="expressionWarnings")
|
|
1307
2486
|
def expression_warnings(self) -> Optional[Sequence['outputs.ExpressionWarning']]:
|
|
1308
2487
|
"""
|
|
@@ -1342,7 +2521,7 @@ class TypeCheckingPatch(dict):
|
|
|
1342
2521
|
if expression_warnings is not None:
|
|
1343
2522
|
pulumi.set(__self__, "expression_warnings", expression_warnings)
|
|
1344
2523
|
|
|
1345
|
-
@property
|
|
2524
|
+
@_builtins.property
|
|
1346
2525
|
@pulumi.getter(name="expressionWarnings")
|
|
1347
2526
|
def expression_warnings(self) -> Optional[Sequence['outputs.ExpressionWarningPatch']]:
|
|
1348
2527
|
"""
|
|
@@ -1374,15 +2553,15 @@ class ValidatingAdmissionPolicy(dict):
|
|
|
1374
2553
|
return super().get(key, default)
|
|
1375
2554
|
|
|
1376
2555
|
def __init__(__self__, *,
|
|
1377
|
-
api_version: Optional[str] = None,
|
|
1378
|
-
kind: Optional[str] = None,
|
|
2556
|
+
api_version: Optional[_builtins.str] = None,
|
|
2557
|
+
kind: Optional[_builtins.str] = None,
|
|
1379
2558
|
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
|
|
1380
2559
|
spec: Optional['outputs.ValidatingAdmissionPolicySpec'] = None,
|
|
1381
2560
|
status: Optional['outputs.ValidatingAdmissionPolicyStatus'] = None):
|
|
1382
2561
|
"""
|
|
1383
2562
|
ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
|
|
1384
|
-
:param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
1385
|
-
:param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
2563
|
+
:param _builtins.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
|
|
2564
|
+
:param _builtins.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
|
|
1386
2565
|
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1387
2566
|
:param 'ValidatingAdmissionPolicySpecArgs' spec: Specification of the desired behavior of the ValidatingAdmissionPolicy.
|
|
1388
2567
|
:param 'ValidatingAdmissionPolicyStatusArgs' status: 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.
|
|
@@ -1398,23 +2577,23 @@ class ValidatingAdmissionPolicy(dict):
|
|
|
1398
2577
|
if status is not None:
|
|
1399
2578
|
pulumi.set(__self__, "status", status)
|
|
1400
2579
|
|
|
1401
|
-
@property
|
|
2580
|
+
@_builtins.property
|
|
1402
2581
|
@pulumi.getter(name="apiVersion")
|
|
1403
|
-
def api_version(self) -> Optional[str]:
|
|
2582
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1404
2583
|
"""
|
|
1405
2584
|
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
|
|
1406
2585
|
"""
|
|
1407
2586
|
return pulumi.get(self, "api_version")
|
|
1408
2587
|
|
|
1409
|
-
@property
|
|
2588
|
+
@_builtins.property
|
|
1410
2589
|
@pulumi.getter
|
|
1411
|
-
def kind(self) -> Optional[str]:
|
|
2590
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1412
2591
|
"""
|
|
1413
2592
|
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
|
|
1414
2593
|
"""
|
|
1415
2594
|
return pulumi.get(self, "kind")
|
|
1416
2595
|
|
|
1417
|
-
@property
|
|
2596
|
+
@_builtins.property
|
|
1418
2597
|
@pulumi.getter
|
|
1419
2598
|
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
1420
2599
|
"""
|
|
@@ -1422,7 +2601,7 @@ class ValidatingAdmissionPolicy(dict):
|
|
|
1422
2601
|
"""
|
|
1423
2602
|
return pulumi.get(self, "metadata")
|
|
1424
2603
|
|
|
1425
|
-
@property
|
|
2604
|
+
@_builtins.property
|
|
1426
2605
|
@pulumi.getter
|
|
1427
2606
|
def spec(self) -> Optional['outputs.ValidatingAdmissionPolicySpec']:
|
|
1428
2607
|
"""
|
|
@@ -1430,7 +2609,7 @@ class ValidatingAdmissionPolicy(dict):
|
|
|
1430
2609
|
"""
|
|
1431
2610
|
return pulumi.get(self, "spec")
|
|
1432
2611
|
|
|
1433
|
-
@property
|
|
2612
|
+
@_builtins.property
|
|
1434
2613
|
@pulumi.getter
|
|
1435
2614
|
def status(self) -> Optional['outputs.ValidatingAdmissionPolicyStatus']:
|
|
1436
2615
|
"""
|
|
@@ -1443,10 +2622,6 @@ class ValidatingAdmissionPolicy(dict):
|
|
|
1443
2622
|
class ValidatingAdmissionPolicyBinding(dict):
|
|
1444
2623
|
"""
|
|
1445
2624
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
1446
|
-
|
|
1447
|
-
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.
|
|
1448
|
-
|
|
1449
|
-
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.
|
|
1450
2625
|
"""
|
|
1451
2626
|
@staticmethod
|
|
1452
2627
|
def __key_warning(key: str):
|
|
@@ -1466,18 +2641,14 @@ class ValidatingAdmissionPolicyBinding(dict):
|
|
|
1466
2641
|
return super().get(key, default)
|
|
1467
2642
|
|
|
1468
2643
|
def __init__(__self__, *,
|
|
1469
|
-
api_version: Optional[str] = None,
|
|
1470
|
-
kind: Optional[str] = None,
|
|
2644
|
+
api_version: Optional[_builtins.str] = None,
|
|
2645
|
+
kind: Optional[_builtins.str] = None,
|
|
1471
2646
|
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
|
|
1472
2647
|
spec: Optional['outputs.ValidatingAdmissionPolicyBindingSpec'] = None):
|
|
1473
2648
|
"""
|
|
1474
2649
|
ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters.
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
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.
|
|
1479
|
-
:param str api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
1480
|
-
:param str kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
2650
|
+
:param _builtins.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
|
|
2651
|
+
:param _builtins.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
|
|
1481
2652
|
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
|
|
1482
2653
|
:param 'ValidatingAdmissionPolicyBindingSpecArgs' spec: Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
|
|
1483
2654
|
"""
|
|
@@ -1490,23 +2661,23 @@ class ValidatingAdmissionPolicyBinding(dict):
|
|
|
1490
2661
|
if spec is not None:
|
|
1491
2662
|
pulumi.set(__self__, "spec", spec)
|
|
1492
2663
|
|
|
1493
|
-
@property
|
|
2664
|
+
@_builtins.property
|
|
1494
2665
|
@pulumi.getter(name="apiVersion")
|
|
1495
|
-
def api_version(self) -> Optional[str]:
|
|
2666
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1496
2667
|
"""
|
|
1497
2668
|
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
|
|
1498
2669
|
"""
|
|
1499
2670
|
return pulumi.get(self, "api_version")
|
|
1500
2671
|
|
|
1501
|
-
@property
|
|
2672
|
+
@_builtins.property
|
|
1502
2673
|
@pulumi.getter
|
|
1503
|
-
def kind(self) -> Optional[str]:
|
|
2674
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1504
2675
|
"""
|
|
1505
2676
|
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
|
|
1506
2677
|
"""
|
|
1507
2678
|
return pulumi.get(self, "kind")
|
|
1508
2679
|
|
|
1509
|
-
@property
|
|
2680
|
+
@_builtins.property
|
|
1510
2681
|
@pulumi.getter
|
|
1511
2682
|
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
1512
2683
|
"""
|
|
@@ -1514,7 +2685,7 @@ class ValidatingAdmissionPolicyBinding(dict):
|
|
|
1514
2685
|
"""
|
|
1515
2686
|
return pulumi.get(self, "metadata")
|
|
1516
2687
|
|
|
1517
|
-
@property
|
|
2688
|
+
@_builtins.property
|
|
1518
2689
|
@pulumi.getter
|
|
1519
2690
|
def spec(self) -> Optional['outputs.ValidatingAdmissionPolicyBindingSpec']:
|
|
1520
2691
|
"""
|
|
@@ -1554,14 +2725,14 @@ class ValidatingAdmissionPolicyBindingSpec(dict):
|
|
|
1554
2725
|
def __init__(__self__, *,
|
|
1555
2726
|
match_resources: Optional['outputs.MatchResources'] = None,
|
|
1556
2727
|
param_ref: Optional['outputs.ParamRef'] = None,
|
|
1557
|
-
policy_name: Optional[str] = None,
|
|
1558
|
-
validation_actions: Optional[Sequence[str]] = None):
|
|
2728
|
+
policy_name: Optional[_builtins.str] = None,
|
|
2729
|
+
validation_actions: Optional[Sequence[_builtins.str]] = None):
|
|
1559
2730
|
"""
|
|
1560
2731
|
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
|
|
1561
2732
|
:param '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.
|
|
1562
|
-
:param 'ParamRefArgs' param_ref:
|
|
1563
|
-
:param 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.
|
|
1564
|
-
:param Sequence[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.
|
|
2733
|
+
:param '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.
|
|
2734
|
+
:param _builtins.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.
|
|
2735
|
+
:param Sequence[_builtins.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.
|
|
1565
2736
|
|
|
1566
2737
|
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.
|
|
1567
2738
|
|
|
@@ -1590,7 +2761,7 @@ class ValidatingAdmissionPolicyBindingSpec(dict):
|
|
|
1590
2761
|
if validation_actions is not None:
|
|
1591
2762
|
pulumi.set(__self__, "validation_actions", validation_actions)
|
|
1592
2763
|
|
|
1593
|
-
@property
|
|
2764
|
+
@_builtins.property
|
|
1594
2765
|
@pulumi.getter(name="matchResources")
|
|
1595
2766
|
def match_resources(self) -> Optional['outputs.MatchResources']:
|
|
1596
2767
|
"""
|
|
@@ -1598,25 +2769,25 @@ class ValidatingAdmissionPolicyBindingSpec(dict):
|
|
|
1598
2769
|
"""
|
|
1599
2770
|
return pulumi.get(self, "match_resources")
|
|
1600
2771
|
|
|
1601
|
-
@property
|
|
2772
|
+
@_builtins.property
|
|
1602
2773
|
@pulumi.getter(name="paramRef")
|
|
1603
2774
|
def param_ref(self) -> Optional['outputs.ParamRef']:
|
|
1604
2775
|
"""
|
|
1605
|
-
|
|
2776
|
+
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.
|
|
1606
2777
|
"""
|
|
1607
2778
|
return pulumi.get(self, "param_ref")
|
|
1608
2779
|
|
|
1609
|
-
@property
|
|
2780
|
+
@_builtins.property
|
|
1610
2781
|
@pulumi.getter(name="policyName")
|
|
1611
|
-
def policy_name(self) -> Optional[str]:
|
|
2782
|
+
def policy_name(self) -> Optional[_builtins.str]:
|
|
1612
2783
|
"""
|
|
1613
2784
|
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.
|
|
1614
2785
|
"""
|
|
1615
2786
|
return pulumi.get(self, "policy_name")
|
|
1616
2787
|
|
|
1617
|
-
@property
|
|
2788
|
+
@_builtins.property
|
|
1618
2789
|
@pulumi.getter(name="validationActions")
|
|
1619
|
-
def validation_actions(self) -> Optional[Sequence[str]]:
|
|
2790
|
+
def validation_actions(self) -> Optional[Sequence[_builtins.str]]:
|
|
1620
2791
|
"""
|
|
1621
2792
|
validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
|
|
1622
2793
|
|
|
@@ -1672,14 +2843,14 @@ class ValidatingAdmissionPolicyBindingSpecPatch(dict):
|
|
|
1672
2843
|
def __init__(__self__, *,
|
|
1673
2844
|
match_resources: Optional['outputs.MatchResourcesPatch'] = None,
|
|
1674
2845
|
param_ref: Optional['outputs.ParamRefPatch'] = None,
|
|
1675
|
-
policy_name: Optional[str] = None,
|
|
1676
|
-
validation_actions: Optional[Sequence[str]] = None):
|
|
2846
|
+
policy_name: Optional[_builtins.str] = None,
|
|
2847
|
+
validation_actions: Optional[Sequence[_builtins.str]] = None):
|
|
1677
2848
|
"""
|
|
1678
2849
|
ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.
|
|
1679
2850
|
:param '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.
|
|
1680
|
-
:param 'ParamRefPatchArgs' param_ref:
|
|
1681
|
-
:param 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.
|
|
1682
|
-
:param Sequence[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.
|
|
2851
|
+
:param '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.
|
|
2852
|
+
:param _builtins.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.
|
|
2853
|
+
:param Sequence[_builtins.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.
|
|
1683
2854
|
|
|
1684
2855
|
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.
|
|
1685
2856
|
|
|
@@ -1708,7 +2879,7 @@ class ValidatingAdmissionPolicyBindingSpecPatch(dict):
|
|
|
1708
2879
|
if validation_actions is not None:
|
|
1709
2880
|
pulumi.set(__self__, "validation_actions", validation_actions)
|
|
1710
2881
|
|
|
1711
|
-
@property
|
|
2882
|
+
@_builtins.property
|
|
1712
2883
|
@pulumi.getter(name="matchResources")
|
|
1713
2884
|
def match_resources(self) -> Optional['outputs.MatchResourcesPatch']:
|
|
1714
2885
|
"""
|
|
@@ -1716,25 +2887,25 @@ class ValidatingAdmissionPolicyBindingSpecPatch(dict):
|
|
|
1716
2887
|
"""
|
|
1717
2888
|
return pulumi.get(self, "match_resources")
|
|
1718
2889
|
|
|
1719
|
-
@property
|
|
2890
|
+
@_builtins.property
|
|
1720
2891
|
@pulumi.getter(name="paramRef")
|
|
1721
2892
|
def param_ref(self) -> Optional['outputs.ParamRefPatch']:
|
|
1722
2893
|
"""
|
|
1723
|
-
|
|
2894
|
+
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.
|
|
1724
2895
|
"""
|
|
1725
2896
|
return pulumi.get(self, "param_ref")
|
|
1726
2897
|
|
|
1727
|
-
@property
|
|
2898
|
+
@_builtins.property
|
|
1728
2899
|
@pulumi.getter(name="policyName")
|
|
1729
|
-
def policy_name(self) -> Optional[str]:
|
|
2900
|
+
def policy_name(self) -> Optional[_builtins.str]:
|
|
1730
2901
|
"""
|
|
1731
2902
|
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.
|
|
1732
2903
|
"""
|
|
1733
2904
|
return pulumi.get(self, "policy_name")
|
|
1734
2905
|
|
|
1735
|
-
@property
|
|
2906
|
+
@_builtins.property
|
|
1736
2907
|
@pulumi.getter(name="validationActions")
|
|
1737
|
-
def validation_actions(self) -> Optional[Sequence[str]]:
|
|
2908
|
+
def validation_actions(self) -> Optional[Sequence[_builtins.str]]:
|
|
1738
2909
|
"""
|
|
1739
2910
|
validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions.
|
|
1740
2911
|
|
|
@@ -1792,24 +2963,16 @@ class ValidatingAdmissionPolicySpec(dict):
|
|
|
1792
2963
|
def __init__(__self__, *,
|
|
1793
2964
|
validations: Sequence['outputs.Validation'],
|
|
1794
2965
|
audit_annotations: Optional[Sequence['outputs.AuditAnnotation']] = None,
|
|
1795
|
-
failure_policy: Optional[str] = None,
|
|
2966
|
+
failure_policy: Optional[_builtins.str] = None,
|
|
1796
2967
|
match_conditions: Optional[Sequence['outputs.MatchCondition']] = None,
|
|
1797
2968
|
match_constraints: Optional['outputs.MatchResources'] = None,
|
|
1798
2969
|
param_kind: Optional['outputs.ParamKind'] = None,
|
|
1799
2970
|
variables: Optional[Sequence['outputs.Variable']] = None):
|
|
1800
2971
|
"""
|
|
1801
2972
|
ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
|
|
1802
|
-
:param Sequence['ValidationArgs'] validations: Validations contain CEL expressions which is used to apply the validation.
|
|
2973
|
+
:param Sequence['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.
|
|
1803
2974
|
:param Sequence['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.
|
|
1804
|
-
:param str failure_policy:
|
|
1805
|
-
|
|
1806
|
-
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.
|
|
1807
|
-
|
|
1808
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1809
|
-
|
|
1810
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1811
|
-
|
|
1812
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
2975
|
+
:param _builtins.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.
|
|
1813
2976
|
:param Sequence['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.
|
|
1814
2977
|
|
|
1815
2978
|
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
@@ -1840,15 +3003,15 @@ class ValidatingAdmissionPolicySpec(dict):
|
|
|
1840
3003
|
if variables is not None:
|
|
1841
3004
|
pulumi.set(__self__, "variables", variables)
|
|
1842
3005
|
|
|
1843
|
-
@property
|
|
3006
|
+
@_builtins.property
|
|
1844
3007
|
@pulumi.getter
|
|
1845
3008
|
def validations(self) -> Sequence['outputs.Validation']:
|
|
1846
3009
|
"""
|
|
1847
|
-
Validations contain CEL expressions which is used to apply the validation.
|
|
3010
|
+
Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
1848
3011
|
"""
|
|
1849
3012
|
return pulumi.get(self, "validations")
|
|
1850
3013
|
|
|
1851
|
-
@property
|
|
3014
|
+
@_builtins.property
|
|
1852
3015
|
@pulumi.getter(name="auditAnnotations")
|
|
1853
3016
|
def audit_annotations(self) -> Optional[Sequence['outputs.AuditAnnotation']]:
|
|
1854
3017
|
"""
|
|
@@ -1856,23 +3019,15 @@ class ValidatingAdmissionPolicySpec(dict):
|
|
|
1856
3019
|
"""
|
|
1857
3020
|
return pulumi.get(self, "audit_annotations")
|
|
1858
3021
|
|
|
1859
|
-
@property
|
|
3022
|
+
@_builtins.property
|
|
1860
3023
|
@pulumi.getter(name="failurePolicy")
|
|
1861
|
-
def failure_policy(self) -> Optional[str]:
|
|
3024
|
+
def failure_policy(self) -> Optional[_builtins.str]:
|
|
1862
3025
|
"""
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
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.
|
|
1866
|
-
|
|
1867
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1868
|
-
|
|
1869
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1870
|
-
|
|
1871
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3026
|
+
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.
|
|
1872
3027
|
"""
|
|
1873
3028
|
return pulumi.get(self, "failure_policy")
|
|
1874
3029
|
|
|
1875
|
-
@property
|
|
3030
|
+
@_builtins.property
|
|
1876
3031
|
@pulumi.getter(name="matchConditions")
|
|
1877
3032
|
def match_conditions(self) -> Optional[Sequence['outputs.MatchCondition']]:
|
|
1878
3033
|
"""
|
|
@@ -1889,7 +3044,7 @@ class ValidatingAdmissionPolicySpec(dict):
|
|
|
1889
3044
|
"""
|
|
1890
3045
|
return pulumi.get(self, "match_conditions")
|
|
1891
3046
|
|
|
1892
|
-
@property
|
|
3047
|
+
@_builtins.property
|
|
1893
3048
|
@pulumi.getter(name="matchConstraints")
|
|
1894
3049
|
def match_constraints(self) -> Optional['outputs.MatchResources']:
|
|
1895
3050
|
"""
|
|
@@ -1897,7 +3052,7 @@ class ValidatingAdmissionPolicySpec(dict):
|
|
|
1897
3052
|
"""
|
|
1898
3053
|
return pulumi.get(self, "match_constraints")
|
|
1899
3054
|
|
|
1900
|
-
@property
|
|
3055
|
+
@_builtins.property
|
|
1901
3056
|
@pulumi.getter(name="paramKind")
|
|
1902
3057
|
def param_kind(self) -> Optional['outputs.ParamKind']:
|
|
1903
3058
|
"""
|
|
@@ -1905,7 +3060,7 @@ class ValidatingAdmissionPolicySpec(dict):
|
|
|
1905
3060
|
"""
|
|
1906
3061
|
return pulumi.get(self, "param_kind")
|
|
1907
3062
|
|
|
1908
|
-
@property
|
|
3063
|
+
@_builtins.property
|
|
1909
3064
|
@pulumi.getter
|
|
1910
3065
|
def variables(self) -> Optional[Sequence['outputs.Variable']]:
|
|
1911
3066
|
"""
|
|
@@ -1948,7 +3103,7 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
1948
3103
|
|
|
1949
3104
|
def __init__(__self__, *,
|
|
1950
3105
|
audit_annotations: Optional[Sequence['outputs.AuditAnnotationPatch']] = None,
|
|
1951
|
-
failure_policy: Optional[str] = None,
|
|
3106
|
+
failure_policy: Optional[_builtins.str] = None,
|
|
1952
3107
|
match_conditions: Optional[Sequence['outputs.MatchConditionPatch']] = None,
|
|
1953
3108
|
match_constraints: Optional['outputs.MatchResourcesPatch'] = None,
|
|
1954
3109
|
param_kind: Optional['outputs.ParamKindPatch'] = None,
|
|
@@ -1957,15 +3112,7 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
1957
3112
|
"""
|
|
1958
3113
|
ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.
|
|
1959
3114
|
:param Sequence['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.
|
|
1960
|
-
:param str failure_policy:
|
|
1961
|
-
|
|
1962
|
-
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.
|
|
1963
|
-
|
|
1964
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
1965
|
-
|
|
1966
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
1967
|
-
|
|
1968
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3115
|
+
:param _builtins.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.
|
|
1969
3116
|
:param Sequence['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.
|
|
1970
3117
|
|
|
1971
3118
|
If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.
|
|
@@ -1978,7 +3125,7 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
1978
3125
|
- If failurePolicy=Ignore, the policy is skipped
|
|
1979
3126
|
:param '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.
|
|
1980
3127
|
:param '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.
|
|
1981
|
-
:param Sequence['ValidationPatchArgs'] validations: Validations contain CEL expressions which is used to apply the validation.
|
|
3128
|
+
:param Sequence['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.
|
|
1982
3129
|
:param Sequence['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.
|
|
1983
3130
|
|
|
1984
3131
|
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.
|
|
@@ -1998,7 +3145,7 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
1998
3145
|
if variables is not None:
|
|
1999
3146
|
pulumi.set(__self__, "variables", variables)
|
|
2000
3147
|
|
|
2001
|
-
@property
|
|
3148
|
+
@_builtins.property
|
|
2002
3149
|
@pulumi.getter(name="auditAnnotations")
|
|
2003
3150
|
def audit_annotations(self) -> Optional[Sequence['outputs.AuditAnnotationPatch']]:
|
|
2004
3151
|
"""
|
|
@@ -2006,23 +3153,15 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
2006
3153
|
"""
|
|
2007
3154
|
return pulumi.get(self, "audit_annotations")
|
|
2008
3155
|
|
|
2009
|
-
@property
|
|
3156
|
+
@_builtins.property
|
|
2010
3157
|
@pulumi.getter(name="failurePolicy")
|
|
2011
|
-
def failure_policy(self) -> Optional[str]:
|
|
3158
|
+
def failure_policy(self) -> Optional[_builtins.str]:
|
|
2012
3159
|
"""
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
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.
|
|
2016
|
-
|
|
2017
|
-
failurePolicy does not define how validations that evaluate to false are handled.
|
|
2018
|
-
|
|
2019
|
-
When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced.
|
|
2020
|
-
|
|
2021
|
-
Allowed values are Ignore or Fail. Defaults to Fail.
|
|
3160
|
+
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.
|
|
2022
3161
|
"""
|
|
2023
3162
|
return pulumi.get(self, "failure_policy")
|
|
2024
3163
|
|
|
2025
|
-
@property
|
|
3164
|
+
@_builtins.property
|
|
2026
3165
|
@pulumi.getter(name="matchConditions")
|
|
2027
3166
|
def match_conditions(self) -> Optional[Sequence['outputs.MatchConditionPatch']]:
|
|
2028
3167
|
"""
|
|
@@ -2039,7 +3178,7 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
2039
3178
|
"""
|
|
2040
3179
|
return pulumi.get(self, "match_conditions")
|
|
2041
3180
|
|
|
2042
|
-
@property
|
|
3181
|
+
@_builtins.property
|
|
2043
3182
|
@pulumi.getter(name="matchConstraints")
|
|
2044
3183
|
def match_constraints(self) -> Optional['outputs.MatchResourcesPatch']:
|
|
2045
3184
|
"""
|
|
@@ -2047,7 +3186,7 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
2047
3186
|
"""
|
|
2048
3187
|
return pulumi.get(self, "match_constraints")
|
|
2049
3188
|
|
|
2050
|
-
@property
|
|
3189
|
+
@_builtins.property
|
|
2051
3190
|
@pulumi.getter(name="paramKind")
|
|
2052
3191
|
def param_kind(self) -> Optional['outputs.ParamKindPatch']:
|
|
2053
3192
|
"""
|
|
@@ -2055,15 +3194,15 @@ class ValidatingAdmissionPolicySpecPatch(dict):
|
|
|
2055
3194
|
"""
|
|
2056
3195
|
return pulumi.get(self, "param_kind")
|
|
2057
3196
|
|
|
2058
|
-
@property
|
|
3197
|
+
@_builtins.property
|
|
2059
3198
|
@pulumi.getter
|
|
2060
3199
|
def validations(self) -> Optional[Sequence['outputs.ValidationPatch']]:
|
|
2061
3200
|
"""
|
|
2062
|
-
Validations contain CEL expressions which is used to apply the validation.
|
|
3201
|
+
Validations contain CEL expressions which is used to apply the validation. A minimum of one validation is required for a policy definition. Required.
|
|
2063
3202
|
"""
|
|
2064
3203
|
return pulumi.get(self, "validations")
|
|
2065
3204
|
|
|
2066
|
-
@property
|
|
3205
|
+
@_builtins.property
|
|
2067
3206
|
@pulumi.getter
|
|
2068
3207
|
def variables(self) -> Optional[Sequence['outputs.VariablePatch']]:
|
|
2069
3208
|
"""
|
|
@@ -2100,12 +3239,12 @@ class ValidatingAdmissionPolicyStatus(dict):
|
|
|
2100
3239
|
|
|
2101
3240
|
def __init__(__self__, *,
|
|
2102
3241
|
conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None,
|
|
2103
|
-
observed_generation: Optional[int] = None,
|
|
3242
|
+
observed_generation: Optional[_builtins.int] = None,
|
|
2104
3243
|
type_checking: Optional['outputs.TypeChecking'] = None):
|
|
2105
3244
|
"""
|
|
2106
3245
|
ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
|
|
2107
3246
|
:param Sequence['_meta.v1.ConditionArgs'] conditions: The conditions represent the latest available observations of a policy's current state.
|
|
2108
|
-
:param int observed_generation: The generation observed by the controller.
|
|
3247
|
+
:param _builtins.int observed_generation: The generation observed by the controller.
|
|
2109
3248
|
:param 'TypeCheckingArgs' type_checking: The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
|
|
2110
3249
|
"""
|
|
2111
3250
|
if conditions is not None:
|
|
@@ -2115,7 +3254,7 @@ class ValidatingAdmissionPolicyStatus(dict):
|
|
|
2115
3254
|
if type_checking is not None:
|
|
2116
3255
|
pulumi.set(__self__, "type_checking", type_checking)
|
|
2117
3256
|
|
|
2118
|
-
@property
|
|
3257
|
+
@_builtins.property
|
|
2119
3258
|
@pulumi.getter
|
|
2120
3259
|
def conditions(self) -> Optional[Sequence['_meta.v1.outputs.Condition']]:
|
|
2121
3260
|
"""
|
|
@@ -2123,15 +3262,15 @@ class ValidatingAdmissionPolicyStatus(dict):
|
|
|
2123
3262
|
"""
|
|
2124
3263
|
return pulumi.get(self, "conditions")
|
|
2125
3264
|
|
|
2126
|
-
@property
|
|
3265
|
+
@_builtins.property
|
|
2127
3266
|
@pulumi.getter(name="observedGeneration")
|
|
2128
|
-
def observed_generation(self) -> Optional[int]:
|
|
3267
|
+
def observed_generation(self) -> Optional[_builtins.int]:
|
|
2129
3268
|
"""
|
|
2130
3269
|
The generation observed by the controller.
|
|
2131
3270
|
"""
|
|
2132
3271
|
return pulumi.get(self, "observed_generation")
|
|
2133
3272
|
|
|
2134
|
-
@property
|
|
3273
|
+
@_builtins.property
|
|
2135
3274
|
@pulumi.getter(name="typeChecking")
|
|
2136
3275
|
def type_checking(self) -> Optional['outputs.TypeChecking']:
|
|
2137
3276
|
"""
|
|
@@ -2166,12 +3305,12 @@ class ValidatingAdmissionPolicyStatusPatch(dict):
|
|
|
2166
3305
|
|
|
2167
3306
|
def __init__(__self__, *,
|
|
2168
3307
|
conditions: Optional[Sequence['_meta.v1.outputs.ConditionPatch']] = None,
|
|
2169
|
-
observed_generation: Optional[int] = None,
|
|
3308
|
+
observed_generation: Optional[_builtins.int] = None,
|
|
2170
3309
|
type_checking: Optional['outputs.TypeCheckingPatch'] = None):
|
|
2171
3310
|
"""
|
|
2172
3311
|
ValidatingAdmissionPolicyStatus represents the status of a ValidatingAdmissionPolicy.
|
|
2173
3312
|
:param Sequence['_meta.v1.ConditionPatchArgs'] conditions: The conditions represent the latest available observations of a policy's current state.
|
|
2174
|
-
:param int observed_generation: The generation observed by the controller.
|
|
3313
|
+
:param _builtins.int observed_generation: The generation observed by the controller.
|
|
2175
3314
|
:param 'TypeCheckingPatchArgs' type_checking: The results of type checking for each expression. Presence of this field indicates the completion of the type checking.
|
|
2176
3315
|
"""
|
|
2177
3316
|
if conditions is not None:
|
|
@@ -2181,7 +3320,7 @@ class ValidatingAdmissionPolicyStatusPatch(dict):
|
|
|
2181
3320
|
if type_checking is not None:
|
|
2182
3321
|
pulumi.set(__self__, "type_checking", type_checking)
|
|
2183
3322
|
|
|
2184
|
-
@property
|
|
3323
|
+
@_builtins.property
|
|
2185
3324
|
@pulumi.getter
|
|
2186
3325
|
def conditions(self) -> Optional[Sequence['_meta.v1.outputs.ConditionPatch']]:
|
|
2187
3326
|
"""
|
|
@@ -2189,15 +3328,15 @@ class ValidatingAdmissionPolicyStatusPatch(dict):
|
|
|
2189
3328
|
"""
|
|
2190
3329
|
return pulumi.get(self, "conditions")
|
|
2191
3330
|
|
|
2192
|
-
@property
|
|
3331
|
+
@_builtins.property
|
|
2193
3332
|
@pulumi.getter(name="observedGeneration")
|
|
2194
|
-
def observed_generation(self) -> Optional[int]:
|
|
3333
|
+
def observed_generation(self) -> Optional[_builtins.int]:
|
|
2195
3334
|
"""
|
|
2196
3335
|
The generation observed by the controller.
|
|
2197
3336
|
"""
|
|
2198
3337
|
return pulumi.get(self, "observed_generation")
|
|
2199
3338
|
|
|
2200
|
-
@property
|
|
3339
|
+
@_builtins.property
|
|
2201
3340
|
@pulumi.getter(name="typeChecking")
|
|
2202
3341
|
def type_checking(self) -> Optional['outputs.TypeCheckingPatch']:
|
|
2203
3342
|
"""
|
|
@@ -2229,20 +3368,15 @@ class Validation(dict):
|
|
|
2229
3368
|
return super().get(key, default)
|
|
2230
3369
|
|
|
2231
3370
|
def __init__(__self__, *,
|
|
2232
|
-
expression: str,
|
|
2233
|
-
message: Optional[str] = None,
|
|
2234
|
-
message_expression: Optional[str] = None,
|
|
2235
|
-
reason: Optional[str] = None):
|
|
3371
|
+
expression: _builtins.str,
|
|
3372
|
+
message: Optional[_builtins.str] = None,
|
|
3373
|
+
message_expression: Optional[_builtins.str] = None,
|
|
3374
|
+
reason: Optional[_builtins.str] = None):
|
|
2236
3375
|
"""
|
|
2237
3376
|
Validation specifies the CEL expression which is used to apply the validation.
|
|
2238
|
-
:param 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
|
|
3377
|
+
:param _builtins.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:
|
|
2239
3378
|
|
|
2240
|
-
|
|
2241
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
2242
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
2243
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
2244
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
2245
|
-
request resource.
|
|
3379
|
+
'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.
|
|
2246
3380
|
|
|
2247
3381
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
2248
3382
|
|
|
@@ -2261,9 +3395,9 @@ class Validation(dict):
|
|
|
2261
3395
|
are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
|
|
2262
3396
|
non-intersecting keys are appended, retaining their partial order.
|
|
2263
3397
|
Required.
|
|
2264
|
-
:param str message: 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}".
|
|
2265
|
-
:param str message_expression: 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)+")"
|
|
2266
|
-
:param str reason: 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.
|
|
3398
|
+
:param _builtins.str message: 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}".
|
|
3399
|
+
:param _builtins.str message_expression: 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)+")"
|
|
3400
|
+
:param _builtins.str reason: 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.
|
|
2267
3401
|
"""
|
|
2268
3402
|
pulumi.set(__self__, "expression", expression)
|
|
2269
3403
|
if message is not None:
|
|
@@ -2273,18 +3407,13 @@ class Validation(dict):
|
|
|
2273
3407
|
if reason is not None:
|
|
2274
3408
|
pulumi.set(__self__, "reason", reason)
|
|
2275
3409
|
|
|
2276
|
-
@property
|
|
3410
|
+
@_builtins.property
|
|
2277
3411
|
@pulumi.getter
|
|
2278
|
-
def expression(self) -> str:
|
|
3412
|
+
def expression(self) -> _builtins.str:
|
|
2279
3413
|
"""
|
|
2280
|
-
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
|
|
3414
|
+
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:
|
|
2281
3415
|
|
|
2282
|
-
|
|
2283
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
2284
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
2285
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
2286
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
2287
|
-
request resource.
|
|
3416
|
+
'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.
|
|
2288
3417
|
|
|
2289
3418
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
2290
3419
|
|
|
@@ -2306,25 +3435,25 @@ class Validation(dict):
|
|
|
2306
3435
|
"""
|
|
2307
3436
|
return pulumi.get(self, "expression")
|
|
2308
3437
|
|
|
2309
|
-
@property
|
|
3438
|
+
@_builtins.property
|
|
2310
3439
|
@pulumi.getter
|
|
2311
|
-
def message(self) -> Optional[str]:
|
|
3440
|
+
def message(self) -> Optional[_builtins.str]:
|
|
2312
3441
|
"""
|
|
2313
3442
|
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}".
|
|
2314
3443
|
"""
|
|
2315
3444
|
return pulumi.get(self, "message")
|
|
2316
3445
|
|
|
2317
|
-
@property
|
|
3446
|
+
@_builtins.property
|
|
2318
3447
|
@pulumi.getter(name="messageExpression")
|
|
2319
|
-
def message_expression(self) -> Optional[str]:
|
|
3448
|
+
def message_expression(self) -> Optional[_builtins.str]:
|
|
2320
3449
|
"""
|
|
2321
3450
|
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)+")"
|
|
2322
3451
|
"""
|
|
2323
3452
|
return pulumi.get(self, "message_expression")
|
|
2324
3453
|
|
|
2325
|
-
@property
|
|
3454
|
+
@_builtins.property
|
|
2326
3455
|
@pulumi.getter
|
|
2327
|
-
def reason(self) -> Optional[str]:
|
|
3456
|
+
def reason(self) -> Optional[_builtins.str]:
|
|
2328
3457
|
"""
|
|
2329
3458
|
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.
|
|
2330
3459
|
"""
|
|
@@ -2354,20 +3483,15 @@ class ValidationPatch(dict):
|
|
|
2354
3483
|
return super().get(key, default)
|
|
2355
3484
|
|
|
2356
3485
|
def __init__(__self__, *,
|
|
2357
|
-
expression: Optional[str] = None,
|
|
2358
|
-
message: Optional[str] = None,
|
|
2359
|
-
message_expression: Optional[str] = None,
|
|
2360
|
-
reason: Optional[str] = None):
|
|
3486
|
+
expression: Optional[_builtins.str] = None,
|
|
3487
|
+
message: Optional[_builtins.str] = None,
|
|
3488
|
+
message_expression: Optional[_builtins.str] = None,
|
|
3489
|
+
reason: Optional[_builtins.str] = None):
|
|
2361
3490
|
"""
|
|
2362
3491
|
Validation specifies the CEL expression which is used to apply the validation.
|
|
2363
|
-
:param 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
|
|
3492
|
+
:param _builtins.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:
|
|
2364
3493
|
|
|
2365
|
-
|
|
2366
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
2367
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
2368
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
2369
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
2370
|
-
request resource.
|
|
3494
|
+
'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.
|
|
2371
3495
|
|
|
2372
3496
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
2373
3497
|
|
|
@@ -2386,9 +3510,9 @@ class ValidationPatch(dict):
|
|
|
2386
3510
|
are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with
|
|
2387
3511
|
non-intersecting keys are appended, retaining their partial order.
|
|
2388
3512
|
Required.
|
|
2389
|
-
:param str message: 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}".
|
|
2390
|
-
:param str message_expression: 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)+")"
|
|
2391
|
-
:param str reason: 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.
|
|
3513
|
+
:param _builtins.str message: 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}".
|
|
3514
|
+
:param _builtins.str message_expression: 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)+")"
|
|
3515
|
+
:param _builtins.str reason: 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.
|
|
2392
3516
|
"""
|
|
2393
3517
|
if expression is not None:
|
|
2394
3518
|
pulumi.set(__self__, "expression", expression)
|
|
@@ -2399,18 +3523,13 @@ class ValidationPatch(dict):
|
|
|
2399
3523
|
if reason is not None:
|
|
2400
3524
|
pulumi.set(__self__, "reason", reason)
|
|
2401
3525
|
|
|
2402
|
-
@property
|
|
3526
|
+
@_builtins.property
|
|
2403
3527
|
@pulumi.getter
|
|
2404
|
-
def expression(self) -> Optional[str]:
|
|
3528
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
2405
3529
|
"""
|
|
2406
|
-
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
|
|
3530
|
+
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:
|
|
2407
3531
|
|
|
2408
|
-
|
|
2409
|
-
For example, a variable named 'foo' can be accessed as 'variables.foo'.
|
|
2410
|
-
- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
|
|
2411
|
-
See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
|
|
2412
|
-
- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
|
|
2413
|
-
request resource.
|
|
3532
|
+
'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.
|
|
2414
3533
|
|
|
2415
3534
|
The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.
|
|
2416
3535
|
|
|
@@ -2432,25 +3551,25 @@ class ValidationPatch(dict):
|
|
|
2432
3551
|
"""
|
|
2433
3552
|
return pulumi.get(self, "expression")
|
|
2434
3553
|
|
|
2435
|
-
@property
|
|
3554
|
+
@_builtins.property
|
|
2436
3555
|
@pulumi.getter
|
|
2437
|
-
def message(self) -> Optional[str]:
|
|
3556
|
+
def message(self) -> Optional[_builtins.str]:
|
|
2438
3557
|
"""
|
|
2439
3558
|
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}".
|
|
2440
3559
|
"""
|
|
2441
3560
|
return pulumi.get(self, "message")
|
|
2442
3561
|
|
|
2443
|
-
@property
|
|
3562
|
+
@_builtins.property
|
|
2444
3563
|
@pulumi.getter(name="messageExpression")
|
|
2445
|
-
def message_expression(self) -> Optional[str]:
|
|
3564
|
+
def message_expression(self) -> Optional[_builtins.str]:
|
|
2446
3565
|
"""
|
|
2447
3566
|
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)+")"
|
|
2448
3567
|
"""
|
|
2449
3568
|
return pulumi.get(self, "message_expression")
|
|
2450
3569
|
|
|
2451
|
-
@property
|
|
3570
|
+
@_builtins.property
|
|
2452
3571
|
@pulumi.getter
|
|
2453
|
-
def reason(self) -> Optional[str]:
|
|
3572
|
+
def reason(self) -> Optional[_builtins.str]:
|
|
2454
3573
|
"""
|
|
2455
3574
|
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.
|
|
2456
3575
|
"""
|
|
@@ -2463,27 +3582,27 @@ class Variable(dict):
|
|
|
2463
3582
|
Variable is the definition of a variable that is used for composition.
|
|
2464
3583
|
"""
|
|
2465
3584
|
def __init__(__self__, *,
|
|
2466
|
-
expression: str,
|
|
2467
|
-
name: str):
|
|
3585
|
+
expression: _builtins.str,
|
|
3586
|
+
name: _builtins.str):
|
|
2468
3587
|
"""
|
|
2469
3588
|
Variable is the definition of a variable that is used for composition.
|
|
2470
|
-
:param str expression: 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.
|
|
2471
|
-
:param str name: 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`
|
|
3589
|
+
:param _builtins.str expression: 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.
|
|
3590
|
+
:param _builtins.str name: 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`
|
|
2472
3591
|
"""
|
|
2473
3592
|
pulumi.set(__self__, "expression", expression)
|
|
2474
3593
|
pulumi.set(__self__, "name", name)
|
|
2475
3594
|
|
|
2476
|
-
@property
|
|
3595
|
+
@_builtins.property
|
|
2477
3596
|
@pulumi.getter
|
|
2478
|
-
def expression(self) -> str:
|
|
3597
|
+
def expression(self) -> _builtins.str:
|
|
2479
3598
|
"""
|
|
2480
3599
|
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.
|
|
2481
3600
|
"""
|
|
2482
3601
|
return pulumi.get(self, "expression")
|
|
2483
3602
|
|
|
2484
|
-
@property
|
|
3603
|
+
@_builtins.property
|
|
2485
3604
|
@pulumi.getter
|
|
2486
|
-
def name(self) -> str:
|
|
3605
|
+
def name(self) -> _builtins.str:
|
|
2487
3606
|
"""
|
|
2488
3607
|
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`
|
|
2489
3608
|
"""
|
|
@@ -2496,29 +3615,29 @@ class VariablePatch(dict):
|
|
|
2496
3615
|
Variable is the definition of a variable that is used for composition.
|
|
2497
3616
|
"""
|
|
2498
3617
|
def __init__(__self__, *,
|
|
2499
|
-
expression: Optional[str] = None,
|
|
2500
|
-
name: Optional[str] = None):
|
|
3618
|
+
expression: Optional[_builtins.str] = None,
|
|
3619
|
+
name: Optional[_builtins.str] = None):
|
|
2501
3620
|
"""
|
|
2502
3621
|
Variable is the definition of a variable that is used for composition.
|
|
2503
|
-
:param str expression: 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.
|
|
2504
|
-
:param str name: 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`
|
|
3622
|
+
:param _builtins.str expression: 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.
|
|
3623
|
+
:param _builtins.str name: 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`
|
|
2505
3624
|
"""
|
|
2506
3625
|
if expression is not None:
|
|
2507
3626
|
pulumi.set(__self__, "expression", expression)
|
|
2508
3627
|
if name is not None:
|
|
2509
3628
|
pulumi.set(__self__, "name", name)
|
|
2510
3629
|
|
|
2511
|
-
@property
|
|
3630
|
+
@_builtins.property
|
|
2512
3631
|
@pulumi.getter
|
|
2513
|
-
def expression(self) -> Optional[str]:
|
|
3632
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
2514
3633
|
"""
|
|
2515
3634
|
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.
|
|
2516
3635
|
"""
|
|
2517
3636
|
return pulumi.get(self, "expression")
|
|
2518
3637
|
|
|
2519
|
-
@property
|
|
3638
|
+
@_builtins.property
|
|
2520
3639
|
@pulumi.getter
|
|
2521
|
-
def name(self) -> Optional[str]:
|
|
3640
|
+
def name(self) -> Optional[_builtins.str]:
|
|
2522
3641
|
"""
|
|
2523
3642
|
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`
|
|
2524
3643
|
"""
|