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
|
@@ -0,0 +1,4736 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumigen. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from ... import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ... import core as _core
|
|
18
|
+
from ... import meta as _meta
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
'AllocatedDeviceStatus',
|
|
22
|
+
'AllocatedDeviceStatusPatch',
|
|
23
|
+
'AllocationResult',
|
|
24
|
+
'AllocationResultPatch',
|
|
25
|
+
'BasicDevice',
|
|
26
|
+
'BasicDevicePatch',
|
|
27
|
+
'CELDeviceSelector',
|
|
28
|
+
'CELDeviceSelectorPatch',
|
|
29
|
+
'Counter',
|
|
30
|
+
'CounterSet',
|
|
31
|
+
'CounterSetPatch',
|
|
32
|
+
'Device',
|
|
33
|
+
'DeviceAllocationConfiguration',
|
|
34
|
+
'DeviceAllocationConfigurationPatch',
|
|
35
|
+
'DeviceAllocationResult',
|
|
36
|
+
'DeviceAllocationResultPatch',
|
|
37
|
+
'DeviceAttribute',
|
|
38
|
+
'DeviceCapacity',
|
|
39
|
+
'DeviceClaim',
|
|
40
|
+
'DeviceClaimConfiguration',
|
|
41
|
+
'DeviceClaimConfigurationPatch',
|
|
42
|
+
'DeviceClaimPatch',
|
|
43
|
+
'DeviceClass',
|
|
44
|
+
'DeviceClassConfiguration',
|
|
45
|
+
'DeviceClassConfigurationPatch',
|
|
46
|
+
'DeviceClassSpec',
|
|
47
|
+
'DeviceClassSpecPatch',
|
|
48
|
+
'DeviceConstraint',
|
|
49
|
+
'DeviceConstraintPatch',
|
|
50
|
+
'DeviceCounterConsumption',
|
|
51
|
+
'DeviceCounterConsumptionPatch',
|
|
52
|
+
'DevicePatch',
|
|
53
|
+
'DeviceRequest',
|
|
54
|
+
'DeviceRequestAllocationResult',
|
|
55
|
+
'DeviceRequestAllocationResultPatch',
|
|
56
|
+
'DeviceRequestPatch',
|
|
57
|
+
'DeviceSelector',
|
|
58
|
+
'DeviceSelectorPatch',
|
|
59
|
+
'DeviceSubRequest',
|
|
60
|
+
'DeviceSubRequestPatch',
|
|
61
|
+
'DeviceTaint',
|
|
62
|
+
'DeviceTaintPatch',
|
|
63
|
+
'DeviceToleration',
|
|
64
|
+
'DeviceTolerationPatch',
|
|
65
|
+
'NetworkDeviceData',
|
|
66
|
+
'NetworkDeviceDataPatch',
|
|
67
|
+
'OpaqueDeviceConfiguration',
|
|
68
|
+
'OpaqueDeviceConfigurationPatch',
|
|
69
|
+
'ResourceClaim',
|
|
70
|
+
'ResourceClaimConsumerReference',
|
|
71
|
+
'ResourceClaimConsumerReferencePatch',
|
|
72
|
+
'ResourceClaimSpec',
|
|
73
|
+
'ResourceClaimSpecPatch',
|
|
74
|
+
'ResourceClaimStatus',
|
|
75
|
+
'ResourceClaimStatusPatch',
|
|
76
|
+
'ResourceClaimTemplate',
|
|
77
|
+
'ResourceClaimTemplateSpec',
|
|
78
|
+
'ResourceClaimTemplateSpecPatch',
|
|
79
|
+
'ResourcePool',
|
|
80
|
+
'ResourcePoolPatch',
|
|
81
|
+
'ResourceSlice',
|
|
82
|
+
'ResourceSliceSpec',
|
|
83
|
+
'ResourceSliceSpecPatch',
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
@pulumi.output_type
|
|
87
|
+
class AllocatedDeviceStatus(dict):
|
|
88
|
+
"""
|
|
89
|
+
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
90
|
+
"""
|
|
91
|
+
@staticmethod
|
|
92
|
+
def __key_warning(key: str):
|
|
93
|
+
suggest = None
|
|
94
|
+
if key == "networkData":
|
|
95
|
+
suggest = "network_data"
|
|
96
|
+
|
|
97
|
+
if suggest:
|
|
98
|
+
pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatus. Access the value via the '{suggest}' property getter instead.")
|
|
99
|
+
|
|
100
|
+
def __getitem__(self, key: str) -> Any:
|
|
101
|
+
AllocatedDeviceStatus.__key_warning(key)
|
|
102
|
+
return super().__getitem__(key)
|
|
103
|
+
|
|
104
|
+
def get(self, key: str, default = None) -> Any:
|
|
105
|
+
AllocatedDeviceStatus.__key_warning(key)
|
|
106
|
+
return super().get(key, default)
|
|
107
|
+
|
|
108
|
+
def __init__(__self__, *,
|
|
109
|
+
device: _builtins.str,
|
|
110
|
+
driver: _builtins.str,
|
|
111
|
+
pool: _builtins.str,
|
|
112
|
+
conditions: Optional[Sequence['_meta.v1.outputs.Condition']] = None,
|
|
113
|
+
data: Optional[Any] = None,
|
|
114
|
+
network_data: Optional['outputs.NetworkDeviceData'] = None):
|
|
115
|
+
"""
|
|
116
|
+
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
117
|
+
:param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
118
|
+
:param _builtins.str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
119
|
+
|
|
120
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
121
|
+
:param _builtins.str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
122
|
+
|
|
123
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
124
|
+
:param Sequence['_meta.v1.ConditionArgs'] conditions: Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
125
|
+
|
|
126
|
+
Must not contain more than 8 entries.
|
|
127
|
+
:param Any data: Data contains arbitrary driver-specific data.
|
|
128
|
+
|
|
129
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
130
|
+
:param 'NetworkDeviceDataArgs' network_data: NetworkData contains network-related information specific to the device.
|
|
131
|
+
"""
|
|
132
|
+
pulumi.set(__self__, "device", device)
|
|
133
|
+
pulumi.set(__self__, "driver", driver)
|
|
134
|
+
pulumi.set(__self__, "pool", pool)
|
|
135
|
+
if conditions is not None:
|
|
136
|
+
pulumi.set(__self__, "conditions", conditions)
|
|
137
|
+
if data is not None:
|
|
138
|
+
pulumi.set(__self__, "data", data)
|
|
139
|
+
if network_data is not None:
|
|
140
|
+
pulumi.set(__self__, "network_data", network_data)
|
|
141
|
+
|
|
142
|
+
@_builtins.property
|
|
143
|
+
@pulumi.getter
|
|
144
|
+
def device(self) -> _builtins.str:
|
|
145
|
+
"""
|
|
146
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "device")
|
|
149
|
+
|
|
150
|
+
@_builtins.property
|
|
151
|
+
@pulumi.getter
|
|
152
|
+
def driver(self) -> _builtins.str:
|
|
153
|
+
"""
|
|
154
|
+
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
155
|
+
|
|
156
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
157
|
+
"""
|
|
158
|
+
return pulumi.get(self, "driver")
|
|
159
|
+
|
|
160
|
+
@_builtins.property
|
|
161
|
+
@pulumi.getter
|
|
162
|
+
def pool(self) -> _builtins.str:
|
|
163
|
+
"""
|
|
164
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
165
|
+
|
|
166
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "pool")
|
|
169
|
+
|
|
170
|
+
@_builtins.property
|
|
171
|
+
@pulumi.getter
|
|
172
|
+
def conditions(self) -> Optional[Sequence['_meta.v1.outputs.Condition']]:
|
|
173
|
+
"""
|
|
174
|
+
Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
175
|
+
|
|
176
|
+
Must not contain more than 8 entries.
|
|
177
|
+
"""
|
|
178
|
+
return pulumi.get(self, "conditions")
|
|
179
|
+
|
|
180
|
+
@_builtins.property
|
|
181
|
+
@pulumi.getter
|
|
182
|
+
def data(self) -> Optional[Any]:
|
|
183
|
+
"""
|
|
184
|
+
Data contains arbitrary driver-specific data.
|
|
185
|
+
|
|
186
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "data")
|
|
189
|
+
|
|
190
|
+
@_builtins.property
|
|
191
|
+
@pulumi.getter(name="networkData")
|
|
192
|
+
def network_data(self) -> Optional['outputs.NetworkDeviceData']:
|
|
193
|
+
"""
|
|
194
|
+
NetworkData contains network-related information specific to the device.
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "network_data")
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
@pulumi.output_type
|
|
200
|
+
class AllocatedDeviceStatusPatch(dict):
|
|
201
|
+
"""
|
|
202
|
+
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
203
|
+
"""
|
|
204
|
+
@staticmethod
|
|
205
|
+
def __key_warning(key: str):
|
|
206
|
+
suggest = None
|
|
207
|
+
if key == "networkData":
|
|
208
|
+
suggest = "network_data"
|
|
209
|
+
|
|
210
|
+
if suggest:
|
|
211
|
+
pulumi.log.warn(f"Key '{key}' not found in AllocatedDeviceStatusPatch. Access the value via the '{suggest}' property getter instead.")
|
|
212
|
+
|
|
213
|
+
def __getitem__(self, key: str) -> Any:
|
|
214
|
+
AllocatedDeviceStatusPatch.__key_warning(key)
|
|
215
|
+
return super().__getitem__(key)
|
|
216
|
+
|
|
217
|
+
def get(self, key: str, default = None) -> Any:
|
|
218
|
+
AllocatedDeviceStatusPatch.__key_warning(key)
|
|
219
|
+
return super().get(key, default)
|
|
220
|
+
|
|
221
|
+
def __init__(__self__, *,
|
|
222
|
+
conditions: Optional[Sequence['_meta.v1.outputs.ConditionPatch']] = None,
|
|
223
|
+
data: Optional[Any] = None,
|
|
224
|
+
device: Optional[_builtins.str] = None,
|
|
225
|
+
driver: Optional[_builtins.str] = None,
|
|
226
|
+
network_data: Optional['outputs.NetworkDeviceDataPatch'] = None,
|
|
227
|
+
pool: Optional[_builtins.str] = None):
|
|
228
|
+
"""
|
|
229
|
+
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
230
|
+
:param Sequence['_meta.v1.ConditionPatchArgs'] conditions: Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
231
|
+
|
|
232
|
+
Must not contain more than 8 entries.
|
|
233
|
+
:param Any data: Data contains arbitrary driver-specific data.
|
|
234
|
+
|
|
235
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
236
|
+
:param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
237
|
+
:param _builtins.str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
238
|
+
|
|
239
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
240
|
+
:param 'NetworkDeviceDataPatchArgs' network_data: NetworkData contains network-related information specific to the device.
|
|
241
|
+
:param _builtins.str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
242
|
+
|
|
243
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
244
|
+
"""
|
|
245
|
+
if conditions is not None:
|
|
246
|
+
pulumi.set(__self__, "conditions", conditions)
|
|
247
|
+
if data is not None:
|
|
248
|
+
pulumi.set(__self__, "data", data)
|
|
249
|
+
if device is not None:
|
|
250
|
+
pulumi.set(__self__, "device", device)
|
|
251
|
+
if driver is not None:
|
|
252
|
+
pulumi.set(__self__, "driver", driver)
|
|
253
|
+
if network_data is not None:
|
|
254
|
+
pulumi.set(__self__, "network_data", network_data)
|
|
255
|
+
if pool is not None:
|
|
256
|
+
pulumi.set(__self__, "pool", pool)
|
|
257
|
+
|
|
258
|
+
@_builtins.property
|
|
259
|
+
@pulumi.getter
|
|
260
|
+
def conditions(self) -> Optional[Sequence['_meta.v1.outputs.ConditionPatch']]:
|
|
261
|
+
"""
|
|
262
|
+
Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True.
|
|
263
|
+
|
|
264
|
+
Must not contain more than 8 entries.
|
|
265
|
+
"""
|
|
266
|
+
return pulumi.get(self, "conditions")
|
|
267
|
+
|
|
268
|
+
@_builtins.property
|
|
269
|
+
@pulumi.getter
|
|
270
|
+
def data(self) -> Optional[Any]:
|
|
271
|
+
"""
|
|
272
|
+
Data contains arbitrary driver-specific data.
|
|
273
|
+
|
|
274
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
275
|
+
"""
|
|
276
|
+
return pulumi.get(self, "data")
|
|
277
|
+
|
|
278
|
+
@_builtins.property
|
|
279
|
+
@pulumi.getter
|
|
280
|
+
def device(self) -> Optional[_builtins.str]:
|
|
281
|
+
"""
|
|
282
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
283
|
+
"""
|
|
284
|
+
return pulumi.get(self, "device")
|
|
285
|
+
|
|
286
|
+
@_builtins.property
|
|
287
|
+
@pulumi.getter
|
|
288
|
+
def driver(self) -> Optional[_builtins.str]:
|
|
289
|
+
"""
|
|
290
|
+
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
291
|
+
|
|
292
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
293
|
+
"""
|
|
294
|
+
return pulumi.get(self, "driver")
|
|
295
|
+
|
|
296
|
+
@_builtins.property
|
|
297
|
+
@pulumi.getter(name="networkData")
|
|
298
|
+
def network_data(self) -> Optional['outputs.NetworkDeviceDataPatch']:
|
|
299
|
+
"""
|
|
300
|
+
NetworkData contains network-related information specific to the device.
|
|
301
|
+
"""
|
|
302
|
+
return pulumi.get(self, "network_data")
|
|
303
|
+
|
|
304
|
+
@_builtins.property
|
|
305
|
+
@pulumi.getter
|
|
306
|
+
def pool(self) -> Optional[_builtins.str]:
|
|
307
|
+
"""
|
|
308
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
309
|
+
|
|
310
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
311
|
+
"""
|
|
312
|
+
return pulumi.get(self, "pool")
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
@pulumi.output_type
|
|
316
|
+
class AllocationResult(dict):
|
|
317
|
+
"""
|
|
318
|
+
AllocationResult contains attributes of an allocated resource.
|
|
319
|
+
"""
|
|
320
|
+
@staticmethod
|
|
321
|
+
def __key_warning(key: str):
|
|
322
|
+
suggest = None
|
|
323
|
+
if key == "nodeSelector":
|
|
324
|
+
suggest = "node_selector"
|
|
325
|
+
|
|
326
|
+
if suggest:
|
|
327
|
+
pulumi.log.warn(f"Key '{key}' not found in AllocationResult. Access the value via the '{suggest}' property getter instead.")
|
|
328
|
+
|
|
329
|
+
def __getitem__(self, key: str) -> Any:
|
|
330
|
+
AllocationResult.__key_warning(key)
|
|
331
|
+
return super().__getitem__(key)
|
|
332
|
+
|
|
333
|
+
def get(self, key: str, default = None) -> Any:
|
|
334
|
+
AllocationResult.__key_warning(key)
|
|
335
|
+
return super().get(key, default)
|
|
336
|
+
|
|
337
|
+
def __init__(__self__, *,
|
|
338
|
+
devices: Optional['outputs.DeviceAllocationResult'] = None,
|
|
339
|
+
node_selector: Optional['_core.v1.outputs.NodeSelector'] = None):
|
|
340
|
+
"""
|
|
341
|
+
AllocationResult contains attributes of an allocated resource.
|
|
342
|
+
:param 'DeviceAllocationResultArgs' devices: Devices is the result of allocating devices.
|
|
343
|
+
:param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
344
|
+
"""
|
|
345
|
+
if devices is not None:
|
|
346
|
+
pulumi.set(__self__, "devices", devices)
|
|
347
|
+
if node_selector is not None:
|
|
348
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
349
|
+
|
|
350
|
+
@_builtins.property
|
|
351
|
+
@pulumi.getter
|
|
352
|
+
def devices(self) -> Optional['outputs.DeviceAllocationResult']:
|
|
353
|
+
"""
|
|
354
|
+
Devices is the result of allocating devices.
|
|
355
|
+
"""
|
|
356
|
+
return pulumi.get(self, "devices")
|
|
357
|
+
|
|
358
|
+
@_builtins.property
|
|
359
|
+
@pulumi.getter(name="nodeSelector")
|
|
360
|
+
def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
|
|
361
|
+
"""
|
|
362
|
+
NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
363
|
+
"""
|
|
364
|
+
return pulumi.get(self, "node_selector")
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
@pulumi.output_type
|
|
368
|
+
class AllocationResultPatch(dict):
|
|
369
|
+
"""
|
|
370
|
+
AllocationResult contains attributes of an allocated resource.
|
|
371
|
+
"""
|
|
372
|
+
@staticmethod
|
|
373
|
+
def __key_warning(key: str):
|
|
374
|
+
suggest = None
|
|
375
|
+
if key == "nodeSelector":
|
|
376
|
+
suggest = "node_selector"
|
|
377
|
+
|
|
378
|
+
if suggest:
|
|
379
|
+
pulumi.log.warn(f"Key '{key}' not found in AllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
|
|
380
|
+
|
|
381
|
+
def __getitem__(self, key: str) -> Any:
|
|
382
|
+
AllocationResultPatch.__key_warning(key)
|
|
383
|
+
return super().__getitem__(key)
|
|
384
|
+
|
|
385
|
+
def get(self, key: str, default = None) -> Any:
|
|
386
|
+
AllocationResultPatch.__key_warning(key)
|
|
387
|
+
return super().get(key, default)
|
|
388
|
+
|
|
389
|
+
def __init__(__self__, *,
|
|
390
|
+
devices: Optional['outputs.DeviceAllocationResultPatch'] = None,
|
|
391
|
+
node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None):
|
|
392
|
+
"""
|
|
393
|
+
AllocationResult contains attributes of an allocated resource.
|
|
394
|
+
:param 'DeviceAllocationResultPatchArgs' devices: Devices is the result of allocating devices.
|
|
395
|
+
:param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
396
|
+
"""
|
|
397
|
+
if devices is not None:
|
|
398
|
+
pulumi.set(__self__, "devices", devices)
|
|
399
|
+
if node_selector is not None:
|
|
400
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
401
|
+
|
|
402
|
+
@_builtins.property
|
|
403
|
+
@pulumi.getter
|
|
404
|
+
def devices(self) -> Optional['outputs.DeviceAllocationResultPatch']:
|
|
405
|
+
"""
|
|
406
|
+
Devices is the result of allocating devices.
|
|
407
|
+
"""
|
|
408
|
+
return pulumi.get(self, "devices")
|
|
409
|
+
|
|
410
|
+
@_builtins.property
|
|
411
|
+
@pulumi.getter(name="nodeSelector")
|
|
412
|
+
def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
|
|
413
|
+
"""
|
|
414
|
+
NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
415
|
+
"""
|
|
416
|
+
return pulumi.get(self, "node_selector")
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
@pulumi.output_type
|
|
420
|
+
class BasicDevice(dict):
|
|
421
|
+
"""
|
|
422
|
+
BasicDevice defines one device instance.
|
|
423
|
+
"""
|
|
424
|
+
@staticmethod
|
|
425
|
+
def __key_warning(key: str):
|
|
426
|
+
suggest = None
|
|
427
|
+
if key == "allNodes":
|
|
428
|
+
suggest = "all_nodes"
|
|
429
|
+
elif key == "consumesCounters":
|
|
430
|
+
suggest = "consumes_counters"
|
|
431
|
+
elif key == "nodeName":
|
|
432
|
+
suggest = "node_name"
|
|
433
|
+
elif key == "nodeSelector":
|
|
434
|
+
suggest = "node_selector"
|
|
435
|
+
|
|
436
|
+
if suggest:
|
|
437
|
+
pulumi.log.warn(f"Key '{key}' not found in BasicDevice. Access the value via the '{suggest}' property getter instead.")
|
|
438
|
+
|
|
439
|
+
def __getitem__(self, key: str) -> Any:
|
|
440
|
+
BasicDevice.__key_warning(key)
|
|
441
|
+
return super().__getitem__(key)
|
|
442
|
+
|
|
443
|
+
def get(self, key: str, default = None) -> Any:
|
|
444
|
+
BasicDevice.__key_warning(key)
|
|
445
|
+
return super().get(key, default)
|
|
446
|
+
|
|
447
|
+
def __init__(__self__, *,
|
|
448
|
+
all_nodes: Optional[_builtins.bool] = None,
|
|
449
|
+
attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
|
|
450
|
+
capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None,
|
|
451
|
+
consumes_counters: Optional[Sequence['outputs.DeviceCounterConsumption']] = None,
|
|
452
|
+
node_name: Optional[_builtins.str] = None,
|
|
453
|
+
node_selector: Optional['_core.v1.outputs.NodeSelector'] = None,
|
|
454
|
+
taints: Optional[Sequence['outputs.DeviceTaint']] = None):
|
|
455
|
+
"""
|
|
456
|
+
BasicDevice defines one device instance.
|
|
457
|
+
:param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the device.
|
|
458
|
+
|
|
459
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
460
|
+
:param Mapping[str, 'DeviceAttributeArgs'] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
461
|
+
|
|
462
|
+
The maximum number of attributes and capacities combined is 32.
|
|
463
|
+
:param Mapping[str, 'DeviceCapacityArgs'] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
464
|
+
|
|
465
|
+
The maximum number of attributes and capacities combined is 32.
|
|
466
|
+
:param Sequence['DeviceCounterConsumptionArgs'] consumes_counters: ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
|
|
467
|
+
|
|
468
|
+
There can only be a single entry per counterSet.
|
|
469
|
+
|
|
470
|
+
The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
|
|
471
|
+
:param _builtins.str node_name: NodeName identifies the node where the device is available.
|
|
472
|
+
|
|
473
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
474
|
+
:param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines the nodes where the device is available.
|
|
475
|
+
|
|
476
|
+
Must use exactly one term.
|
|
477
|
+
|
|
478
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
479
|
+
:param Sequence['DeviceTaintArgs'] taints: If specified, these are the driver-defined taints.
|
|
480
|
+
|
|
481
|
+
The maximum number of taints is 4.
|
|
482
|
+
|
|
483
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
484
|
+
"""
|
|
485
|
+
if all_nodes is not None:
|
|
486
|
+
pulumi.set(__self__, "all_nodes", all_nodes)
|
|
487
|
+
if attributes is not None:
|
|
488
|
+
pulumi.set(__self__, "attributes", attributes)
|
|
489
|
+
if capacity is not None:
|
|
490
|
+
pulumi.set(__self__, "capacity", capacity)
|
|
491
|
+
if consumes_counters is not None:
|
|
492
|
+
pulumi.set(__self__, "consumes_counters", consumes_counters)
|
|
493
|
+
if node_name is not None:
|
|
494
|
+
pulumi.set(__self__, "node_name", node_name)
|
|
495
|
+
if node_selector is not None:
|
|
496
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
497
|
+
if taints is not None:
|
|
498
|
+
pulumi.set(__self__, "taints", taints)
|
|
499
|
+
|
|
500
|
+
@_builtins.property
|
|
501
|
+
@pulumi.getter(name="allNodes")
|
|
502
|
+
def all_nodes(self) -> Optional[_builtins.bool]:
|
|
503
|
+
"""
|
|
504
|
+
AllNodes indicates that all nodes have access to the device.
|
|
505
|
+
|
|
506
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
507
|
+
"""
|
|
508
|
+
return pulumi.get(self, "all_nodes")
|
|
509
|
+
|
|
510
|
+
@_builtins.property
|
|
511
|
+
@pulumi.getter
|
|
512
|
+
def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
|
|
513
|
+
"""
|
|
514
|
+
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
515
|
+
|
|
516
|
+
The maximum number of attributes and capacities combined is 32.
|
|
517
|
+
"""
|
|
518
|
+
return pulumi.get(self, "attributes")
|
|
519
|
+
|
|
520
|
+
@_builtins.property
|
|
521
|
+
@pulumi.getter
|
|
522
|
+
def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
|
|
523
|
+
"""
|
|
524
|
+
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
525
|
+
|
|
526
|
+
The maximum number of attributes and capacities combined is 32.
|
|
527
|
+
"""
|
|
528
|
+
return pulumi.get(self, "capacity")
|
|
529
|
+
|
|
530
|
+
@_builtins.property
|
|
531
|
+
@pulumi.getter(name="consumesCounters")
|
|
532
|
+
def consumes_counters(self) -> Optional[Sequence['outputs.DeviceCounterConsumption']]:
|
|
533
|
+
"""
|
|
534
|
+
ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
|
|
535
|
+
|
|
536
|
+
There can only be a single entry per counterSet.
|
|
537
|
+
|
|
538
|
+
The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
|
|
539
|
+
"""
|
|
540
|
+
return pulumi.get(self, "consumes_counters")
|
|
541
|
+
|
|
542
|
+
@_builtins.property
|
|
543
|
+
@pulumi.getter(name="nodeName")
|
|
544
|
+
def node_name(self) -> Optional[_builtins.str]:
|
|
545
|
+
"""
|
|
546
|
+
NodeName identifies the node where the device is available.
|
|
547
|
+
|
|
548
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
549
|
+
"""
|
|
550
|
+
return pulumi.get(self, "node_name")
|
|
551
|
+
|
|
552
|
+
@_builtins.property
|
|
553
|
+
@pulumi.getter(name="nodeSelector")
|
|
554
|
+
def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
|
|
555
|
+
"""
|
|
556
|
+
NodeSelector defines the nodes where the device is available.
|
|
557
|
+
|
|
558
|
+
Must use exactly one term.
|
|
559
|
+
|
|
560
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
561
|
+
"""
|
|
562
|
+
return pulumi.get(self, "node_selector")
|
|
563
|
+
|
|
564
|
+
@_builtins.property
|
|
565
|
+
@pulumi.getter
|
|
566
|
+
def taints(self) -> Optional[Sequence['outputs.DeviceTaint']]:
|
|
567
|
+
"""
|
|
568
|
+
If specified, these are the driver-defined taints.
|
|
569
|
+
|
|
570
|
+
The maximum number of taints is 4.
|
|
571
|
+
|
|
572
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
573
|
+
"""
|
|
574
|
+
return pulumi.get(self, "taints")
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
@pulumi.output_type
|
|
578
|
+
class BasicDevicePatch(dict):
|
|
579
|
+
"""
|
|
580
|
+
BasicDevice defines one device instance.
|
|
581
|
+
"""
|
|
582
|
+
@staticmethod
|
|
583
|
+
def __key_warning(key: str):
|
|
584
|
+
suggest = None
|
|
585
|
+
if key == "allNodes":
|
|
586
|
+
suggest = "all_nodes"
|
|
587
|
+
elif key == "consumesCounters":
|
|
588
|
+
suggest = "consumes_counters"
|
|
589
|
+
elif key == "nodeName":
|
|
590
|
+
suggest = "node_name"
|
|
591
|
+
elif key == "nodeSelector":
|
|
592
|
+
suggest = "node_selector"
|
|
593
|
+
|
|
594
|
+
if suggest:
|
|
595
|
+
pulumi.log.warn(f"Key '{key}' not found in BasicDevicePatch. Access the value via the '{suggest}' property getter instead.")
|
|
596
|
+
|
|
597
|
+
def __getitem__(self, key: str) -> Any:
|
|
598
|
+
BasicDevicePatch.__key_warning(key)
|
|
599
|
+
return super().__getitem__(key)
|
|
600
|
+
|
|
601
|
+
def get(self, key: str, default = None) -> Any:
|
|
602
|
+
BasicDevicePatch.__key_warning(key)
|
|
603
|
+
return super().get(key, default)
|
|
604
|
+
|
|
605
|
+
def __init__(__self__, *,
|
|
606
|
+
all_nodes: Optional[_builtins.bool] = None,
|
|
607
|
+
attributes: Optional[Mapping[str, 'outputs.DeviceAttribute']] = None,
|
|
608
|
+
capacity: Optional[Mapping[str, 'outputs.DeviceCapacity']] = None,
|
|
609
|
+
consumes_counters: Optional[Sequence['outputs.DeviceCounterConsumptionPatch']] = None,
|
|
610
|
+
node_name: Optional[_builtins.str] = None,
|
|
611
|
+
node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
|
|
612
|
+
taints: Optional[Sequence['outputs.DeviceTaintPatch']] = None):
|
|
613
|
+
"""
|
|
614
|
+
BasicDevice defines one device instance.
|
|
615
|
+
:param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the device.
|
|
616
|
+
|
|
617
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
618
|
+
:param Mapping[str, 'DeviceAttributeArgs'] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
619
|
+
|
|
620
|
+
The maximum number of attributes and capacities combined is 32.
|
|
621
|
+
:param Mapping[str, 'DeviceCapacityArgs'] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
622
|
+
|
|
623
|
+
The maximum number of attributes and capacities combined is 32.
|
|
624
|
+
:param Sequence['DeviceCounterConsumptionPatchArgs'] consumes_counters: ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
|
|
625
|
+
|
|
626
|
+
There can only be a single entry per counterSet.
|
|
627
|
+
|
|
628
|
+
The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
|
|
629
|
+
:param _builtins.str node_name: NodeName identifies the node where the device is available.
|
|
630
|
+
|
|
631
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
632
|
+
:param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines the nodes where the device is available.
|
|
633
|
+
|
|
634
|
+
Must use exactly one term.
|
|
635
|
+
|
|
636
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
637
|
+
:param Sequence['DeviceTaintPatchArgs'] taints: If specified, these are the driver-defined taints.
|
|
638
|
+
|
|
639
|
+
The maximum number of taints is 4.
|
|
640
|
+
|
|
641
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
642
|
+
"""
|
|
643
|
+
if all_nodes is not None:
|
|
644
|
+
pulumi.set(__self__, "all_nodes", all_nodes)
|
|
645
|
+
if attributes is not None:
|
|
646
|
+
pulumi.set(__self__, "attributes", attributes)
|
|
647
|
+
if capacity is not None:
|
|
648
|
+
pulumi.set(__self__, "capacity", capacity)
|
|
649
|
+
if consumes_counters is not None:
|
|
650
|
+
pulumi.set(__self__, "consumes_counters", consumes_counters)
|
|
651
|
+
if node_name is not None:
|
|
652
|
+
pulumi.set(__self__, "node_name", node_name)
|
|
653
|
+
if node_selector is not None:
|
|
654
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
655
|
+
if taints is not None:
|
|
656
|
+
pulumi.set(__self__, "taints", taints)
|
|
657
|
+
|
|
658
|
+
@_builtins.property
|
|
659
|
+
@pulumi.getter(name="allNodes")
|
|
660
|
+
def all_nodes(self) -> Optional[_builtins.bool]:
|
|
661
|
+
"""
|
|
662
|
+
AllNodes indicates that all nodes have access to the device.
|
|
663
|
+
|
|
664
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
665
|
+
"""
|
|
666
|
+
return pulumi.get(self, "all_nodes")
|
|
667
|
+
|
|
668
|
+
@_builtins.property
|
|
669
|
+
@pulumi.getter
|
|
670
|
+
def attributes(self) -> Optional[Mapping[str, 'outputs.DeviceAttribute']]:
|
|
671
|
+
"""
|
|
672
|
+
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
673
|
+
|
|
674
|
+
The maximum number of attributes and capacities combined is 32.
|
|
675
|
+
"""
|
|
676
|
+
return pulumi.get(self, "attributes")
|
|
677
|
+
|
|
678
|
+
@_builtins.property
|
|
679
|
+
@pulumi.getter
|
|
680
|
+
def capacity(self) -> Optional[Mapping[str, 'outputs.DeviceCapacity']]:
|
|
681
|
+
"""
|
|
682
|
+
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
683
|
+
|
|
684
|
+
The maximum number of attributes and capacities combined is 32.
|
|
685
|
+
"""
|
|
686
|
+
return pulumi.get(self, "capacity")
|
|
687
|
+
|
|
688
|
+
@_builtins.property
|
|
689
|
+
@pulumi.getter(name="consumesCounters")
|
|
690
|
+
def consumes_counters(self) -> Optional[Sequence['outputs.DeviceCounterConsumptionPatch']]:
|
|
691
|
+
"""
|
|
692
|
+
ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.
|
|
693
|
+
|
|
694
|
+
There can only be a single entry per counterSet.
|
|
695
|
+
|
|
696
|
+
The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).
|
|
697
|
+
"""
|
|
698
|
+
return pulumi.get(self, "consumes_counters")
|
|
699
|
+
|
|
700
|
+
@_builtins.property
|
|
701
|
+
@pulumi.getter(name="nodeName")
|
|
702
|
+
def node_name(self) -> Optional[_builtins.str]:
|
|
703
|
+
"""
|
|
704
|
+
NodeName identifies the node where the device is available.
|
|
705
|
+
|
|
706
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
707
|
+
"""
|
|
708
|
+
return pulumi.get(self, "node_name")
|
|
709
|
+
|
|
710
|
+
@_builtins.property
|
|
711
|
+
@pulumi.getter(name="nodeSelector")
|
|
712
|
+
def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
|
|
713
|
+
"""
|
|
714
|
+
NodeSelector defines the nodes where the device is available.
|
|
715
|
+
|
|
716
|
+
Must use exactly one term.
|
|
717
|
+
|
|
718
|
+
Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.
|
|
719
|
+
"""
|
|
720
|
+
return pulumi.get(self, "node_selector")
|
|
721
|
+
|
|
722
|
+
@_builtins.property
|
|
723
|
+
@pulumi.getter
|
|
724
|
+
def taints(self) -> Optional[Sequence['outputs.DeviceTaintPatch']]:
|
|
725
|
+
"""
|
|
726
|
+
If specified, these are the driver-defined taints.
|
|
727
|
+
|
|
728
|
+
The maximum number of taints is 4.
|
|
729
|
+
|
|
730
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
731
|
+
"""
|
|
732
|
+
return pulumi.get(self, "taints")
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
@pulumi.output_type
|
|
736
|
+
class CELDeviceSelector(dict):
|
|
737
|
+
"""
|
|
738
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
739
|
+
"""
|
|
740
|
+
def __init__(__self__, *,
|
|
741
|
+
expression: _builtins.str):
|
|
742
|
+
"""
|
|
743
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
744
|
+
:param _builtins.str expression: Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
|
|
745
|
+
|
|
746
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
747
|
+
- driver (string): the name of the driver which defines this device.
|
|
748
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
749
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
750
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
751
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
752
|
+
|
|
753
|
+
Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
|
|
754
|
+
|
|
755
|
+
device.driver
|
|
756
|
+
device.attributes["dra.example.com"].model
|
|
757
|
+
device.attributes["ext.example.com"].family
|
|
758
|
+
device.capacity["dra.example.com"].modules
|
|
759
|
+
|
|
760
|
+
The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
|
|
761
|
+
|
|
762
|
+
The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
|
|
763
|
+
|
|
764
|
+
If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
|
|
765
|
+
|
|
766
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
767
|
+
|
|
768
|
+
For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
|
|
769
|
+
|
|
770
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
771
|
+
|
|
772
|
+
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
773
|
+
"""
|
|
774
|
+
pulumi.set(__self__, "expression", expression)
|
|
775
|
+
|
|
776
|
+
@_builtins.property
|
|
777
|
+
@pulumi.getter
|
|
778
|
+
def expression(self) -> _builtins.str:
|
|
779
|
+
"""
|
|
780
|
+
Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
|
|
781
|
+
|
|
782
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
783
|
+
- driver (string): the name of the driver which defines this device.
|
|
784
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
785
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
786
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
787
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
788
|
+
|
|
789
|
+
Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
|
|
790
|
+
|
|
791
|
+
device.driver
|
|
792
|
+
device.attributes["dra.example.com"].model
|
|
793
|
+
device.attributes["ext.example.com"].family
|
|
794
|
+
device.capacity["dra.example.com"].modules
|
|
795
|
+
|
|
796
|
+
The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
|
|
797
|
+
|
|
798
|
+
The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
|
|
799
|
+
|
|
800
|
+
If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
|
|
801
|
+
|
|
802
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
803
|
+
|
|
804
|
+
For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
|
|
805
|
+
|
|
806
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
807
|
+
|
|
808
|
+
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
809
|
+
"""
|
|
810
|
+
return pulumi.get(self, "expression")
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
@pulumi.output_type
|
|
814
|
+
class CELDeviceSelectorPatch(dict):
|
|
815
|
+
"""
|
|
816
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
817
|
+
"""
|
|
818
|
+
def __init__(__self__, *,
|
|
819
|
+
expression: Optional[_builtins.str] = None):
|
|
820
|
+
"""
|
|
821
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
822
|
+
:param _builtins.str expression: Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
|
|
823
|
+
|
|
824
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
825
|
+
- driver (string): the name of the driver which defines this device.
|
|
826
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
827
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
828
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
829
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
830
|
+
|
|
831
|
+
Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
|
|
832
|
+
|
|
833
|
+
device.driver
|
|
834
|
+
device.attributes["dra.example.com"].model
|
|
835
|
+
device.attributes["ext.example.com"].family
|
|
836
|
+
device.capacity["dra.example.com"].modules
|
|
837
|
+
|
|
838
|
+
The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
|
|
839
|
+
|
|
840
|
+
The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
|
|
841
|
+
|
|
842
|
+
If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
|
|
843
|
+
|
|
844
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
845
|
+
|
|
846
|
+
For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
|
|
847
|
+
|
|
848
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
849
|
+
|
|
850
|
+
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
851
|
+
"""
|
|
852
|
+
if expression is not None:
|
|
853
|
+
pulumi.set(__self__, "expression", expression)
|
|
854
|
+
|
|
855
|
+
@_builtins.property
|
|
856
|
+
@pulumi.getter
|
|
857
|
+
def expression(self) -> Optional[_builtins.str]:
|
|
858
|
+
"""
|
|
859
|
+
Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.
|
|
860
|
+
|
|
861
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
862
|
+
- driver (string): the name of the driver which defines this device.
|
|
863
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
864
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
865
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
866
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
867
|
+
|
|
868
|
+
Example: Consider a device with driver="dra.example.com", which exposes two attributes named "model" and "ext.example.com/family" and which exposes one capacity named "modules". This input to this expression would have the following fields:
|
|
869
|
+
|
|
870
|
+
device.driver
|
|
871
|
+
device.attributes["dra.example.com"].model
|
|
872
|
+
device.attributes["ext.example.com"].family
|
|
873
|
+
device.capacity["dra.example.com"].modules
|
|
874
|
+
|
|
875
|
+
The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.
|
|
876
|
+
|
|
877
|
+
The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.
|
|
878
|
+
|
|
879
|
+
If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.
|
|
880
|
+
|
|
881
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
882
|
+
|
|
883
|
+
For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:
|
|
884
|
+
|
|
885
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
886
|
+
|
|
887
|
+
The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.
|
|
888
|
+
"""
|
|
889
|
+
return pulumi.get(self, "expression")
|
|
890
|
+
|
|
891
|
+
|
|
892
|
+
@pulumi.output_type
|
|
893
|
+
class Counter(dict):
|
|
894
|
+
"""
|
|
895
|
+
Counter describes a quantity associated with a device.
|
|
896
|
+
"""
|
|
897
|
+
def __init__(__self__, *,
|
|
898
|
+
value: _builtins.str):
|
|
899
|
+
"""
|
|
900
|
+
Counter describes a quantity associated with a device.
|
|
901
|
+
:param _builtins.str value: Value defines how much of a certain device counter is available.
|
|
902
|
+
"""
|
|
903
|
+
pulumi.set(__self__, "value", value)
|
|
904
|
+
|
|
905
|
+
@_builtins.property
|
|
906
|
+
@pulumi.getter
|
|
907
|
+
def value(self) -> _builtins.str:
|
|
908
|
+
"""
|
|
909
|
+
Value defines how much of a certain device counter is available.
|
|
910
|
+
"""
|
|
911
|
+
return pulumi.get(self, "value")
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
@pulumi.output_type
|
|
915
|
+
class CounterSet(dict):
|
|
916
|
+
"""
|
|
917
|
+
CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
|
|
918
|
+
|
|
919
|
+
The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
|
|
920
|
+
"""
|
|
921
|
+
def __init__(__self__, *,
|
|
922
|
+
counters: Mapping[str, 'outputs.Counter'],
|
|
923
|
+
name: _builtins.str):
|
|
924
|
+
"""
|
|
925
|
+
CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
|
|
926
|
+
|
|
927
|
+
The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
|
|
928
|
+
:param Mapping[str, 'CounterArgs'] counters: Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
|
|
929
|
+
|
|
930
|
+
The maximum number of counters is 32.
|
|
931
|
+
:param _builtins.str name: Name defines the name of the counter set. It must be a DNS label.
|
|
932
|
+
"""
|
|
933
|
+
pulumi.set(__self__, "counters", counters)
|
|
934
|
+
pulumi.set(__self__, "name", name)
|
|
935
|
+
|
|
936
|
+
@_builtins.property
|
|
937
|
+
@pulumi.getter
|
|
938
|
+
def counters(self) -> Mapping[str, 'outputs.Counter']:
|
|
939
|
+
"""
|
|
940
|
+
Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
|
|
941
|
+
|
|
942
|
+
The maximum number of counters is 32.
|
|
943
|
+
"""
|
|
944
|
+
return pulumi.get(self, "counters")
|
|
945
|
+
|
|
946
|
+
@_builtins.property
|
|
947
|
+
@pulumi.getter
|
|
948
|
+
def name(self) -> _builtins.str:
|
|
949
|
+
"""
|
|
950
|
+
Name defines the name of the counter set. It must be a DNS label.
|
|
951
|
+
"""
|
|
952
|
+
return pulumi.get(self, "name")
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
@pulumi.output_type
|
|
956
|
+
class CounterSetPatch(dict):
|
|
957
|
+
"""
|
|
958
|
+
CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
|
|
959
|
+
|
|
960
|
+
The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
|
|
961
|
+
"""
|
|
962
|
+
def __init__(__self__, *,
|
|
963
|
+
counters: Optional[Mapping[str, 'outputs.Counter']] = None,
|
|
964
|
+
name: Optional[_builtins.str] = None):
|
|
965
|
+
"""
|
|
966
|
+
CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
|
|
967
|
+
|
|
968
|
+
The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
|
|
969
|
+
:param Mapping[str, 'CounterArgs'] counters: Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
|
|
970
|
+
|
|
971
|
+
The maximum number of counters is 32.
|
|
972
|
+
:param _builtins.str name: Name defines the name of the counter set. It must be a DNS label.
|
|
973
|
+
"""
|
|
974
|
+
if counters is not None:
|
|
975
|
+
pulumi.set(__self__, "counters", counters)
|
|
976
|
+
if name is not None:
|
|
977
|
+
pulumi.set(__self__, "name", name)
|
|
978
|
+
|
|
979
|
+
@_builtins.property
|
|
980
|
+
@pulumi.getter
|
|
981
|
+
def counters(self) -> Optional[Mapping[str, 'outputs.Counter']]:
|
|
982
|
+
"""
|
|
983
|
+
Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label.
|
|
984
|
+
|
|
985
|
+
The maximum number of counters is 32.
|
|
986
|
+
"""
|
|
987
|
+
return pulumi.get(self, "counters")
|
|
988
|
+
|
|
989
|
+
@_builtins.property
|
|
990
|
+
@pulumi.getter
|
|
991
|
+
def name(self) -> Optional[_builtins.str]:
|
|
992
|
+
"""
|
|
993
|
+
Name defines the name of the counter set. It must be a DNS label.
|
|
994
|
+
"""
|
|
995
|
+
return pulumi.get(self, "name")
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
@pulumi.output_type
|
|
999
|
+
class Device(dict):
|
|
1000
|
+
"""
|
|
1001
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
1002
|
+
"""
|
|
1003
|
+
def __init__(__self__, *,
|
|
1004
|
+
name: _builtins.str,
|
|
1005
|
+
basic: Optional['outputs.BasicDevice'] = None):
|
|
1006
|
+
"""
|
|
1007
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
1008
|
+
:param _builtins.str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1009
|
+
:param 'BasicDeviceArgs' basic: Basic defines one device instance.
|
|
1010
|
+
"""
|
|
1011
|
+
pulumi.set(__self__, "name", name)
|
|
1012
|
+
if basic is not None:
|
|
1013
|
+
pulumi.set(__self__, "basic", basic)
|
|
1014
|
+
|
|
1015
|
+
@_builtins.property
|
|
1016
|
+
@pulumi.getter
|
|
1017
|
+
def name(self) -> _builtins.str:
|
|
1018
|
+
"""
|
|
1019
|
+
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1020
|
+
"""
|
|
1021
|
+
return pulumi.get(self, "name")
|
|
1022
|
+
|
|
1023
|
+
@_builtins.property
|
|
1024
|
+
@pulumi.getter
|
|
1025
|
+
def basic(self) -> Optional['outputs.BasicDevice']:
|
|
1026
|
+
"""
|
|
1027
|
+
Basic defines one device instance.
|
|
1028
|
+
"""
|
|
1029
|
+
return pulumi.get(self, "basic")
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
@pulumi.output_type
|
|
1033
|
+
class DeviceAllocationConfiguration(dict):
|
|
1034
|
+
"""
|
|
1035
|
+
DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
|
1036
|
+
"""
|
|
1037
|
+
def __init__(__self__, *,
|
|
1038
|
+
source: _builtins.str,
|
|
1039
|
+
opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
|
|
1040
|
+
requests: Optional[Sequence[_builtins.str]] = None):
|
|
1041
|
+
"""
|
|
1042
|
+
DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
|
1043
|
+
:param _builtins.str source: Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
|
|
1044
|
+
:param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
|
|
1045
|
+
:param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
1046
|
+
|
|
1047
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1048
|
+
"""
|
|
1049
|
+
pulumi.set(__self__, "source", source)
|
|
1050
|
+
if opaque is not None:
|
|
1051
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1052
|
+
if requests is not None:
|
|
1053
|
+
pulumi.set(__self__, "requests", requests)
|
|
1054
|
+
|
|
1055
|
+
@_builtins.property
|
|
1056
|
+
@pulumi.getter
|
|
1057
|
+
def source(self) -> _builtins.str:
|
|
1058
|
+
"""
|
|
1059
|
+
Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
|
|
1060
|
+
"""
|
|
1061
|
+
return pulumi.get(self, "source")
|
|
1062
|
+
|
|
1063
|
+
@_builtins.property
|
|
1064
|
+
@pulumi.getter
|
|
1065
|
+
def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
|
|
1066
|
+
"""
|
|
1067
|
+
Opaque provides driver-specific configuration parameters.
|
|
1068
|
+
"""
|
|
1069
|
+
return pulumi.get(self, "opaque")
|
|
1070
|
+
|
|
1071
|
+
@_builtins.property
|
|
1072
|
+
@pulumi.getter
|
|
1073
|
+
def requests(self) -> Optional[Sequence[_builtins.str]]:
|
|
1074
|
+
"""
|
|
1075
|
+
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
1076
|
+
|
|
1077
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1078
|
+
"""
|
|
1079
|
+
return pulumi.get(self, "requests")
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
@pulumi.output_type
|
|
1083
|
+
class DeviceAllocationConfigurationPatch(dict):
|
|
1084
|
+
"""
|
|
1085
|
+
DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
|
1086
|
+
"""
|
|
1087
|
+
def __init__(__self__, *,
|
|
1088
|
+
opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
|
|
1089
|
+
requests: Optional[Sequence[_builtins.str]] = None,
|
|
1090
|
+
source: Optional[_builtins.str] = None):
|
|
1091
|
+
"""
|
|
1092
|
+
DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
|
1093
|
+
:param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
|
|
1094
|
+
:param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
1095
|
+
|
|
1096
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1097
|
+
:param _builtins.str source: Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
|
|
1098
|
+
"""
|
|
1099
|
+
if opaque is not None:
|
|
1100
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1101
|
+
if requests is not None:
|
|
1102
|
+
pulumi.set(__self__, "requests", requests)
|
|
1103
|
+
if source is not None:
|
|
1104
|
+
pulumi.set(__self__, "source", source)
|
|
1105
|
+
|
|
1106
|
+
@_builtins.property
|
|
1107
|
+
@pulumi.getter
|
|
1108
|
+
def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
|
|
1109
|
+
"""
|
|
1110
|
+
Opaque provides driver-specific configuration parameters.
|
|
1111
|
+
"""
|
|
1112
|
+
return pulumi.get(self, "opaque")
|
|
1113
|
+
|
|
1114
|
+
@_builtins.property
|
|
1115
|
+
@pulumi.getter
|
|
1116
|
+
def requests(self) -> Optional[Sequence[_builtins.str]]:
|
|
1117
|
+
"""
|
|
1118
|
+
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
1119
|
+
|
|
1120
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1121
|
+
"""
|
|
1122
|
+
return pulumi.get(self, "requests")
|
|
1123
|
+
|
|
1124
|
+
@_builtins.property
|
|
1125
|
+
@pulumi.getter
|
|
1126
|
+
def source(self) -> Optional[_builtins.str]:
|
|
1127
|
+
"""
|
|
1128
|
+
Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
|
|
1129
|
+
"""
|
|
1130
|
+
return pulumi.get(self, "source")
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
@pulumi.output_type
|
|
1134
|
+
class DeviceAllocationResult(dict):
|
|
1135
|
+
"""
|
|
1136
|
+
DeviceAllocationResult is the result of allocating devices.
|
|
1137
|
+
"""
|
|
1138
|
+
def __init__(__self__, *,
|
|
1139
|
+
config: Optional[Sequence['outputs.DeviceAllocationConfiguration']] = None,
|
|
1140
|
+
results: Optional[Sequence['outputs.DeviceRequestAllocationResult']] = None):
|
|
1141
|
+
"""
|
|
1142
|
+
DeviceAllocationResult is the result of allocating devices.
|
|
1143
|
+
:param Sequence['DeviceAllocationConfigurationArgs'] config: This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
1144
|
+
|
|
1145
|
+
This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
|
|
1146
|
+
:param Sequence['DeviceRequestAllocationResultArgs'] results: Results lists all allocated devices.
|
|
1147
|
+
"""
|
|
1148
|
+
if config is not None:
|
|
1149
|
+
pulumi.set(__self__, "config", config)
|
|
1150
|
+
if results is not None:
|
|
1151
|
+
pulumi.set(__self__, "results", results)
|
|
1152
|
+
|
|
1153
|
+
@_builtins.property
|
|
1154
|
+
@pulumi.getter
|
|
1155
|
+
def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfiguration']]:
|
|
1156
|
+
"""
|
|
1157
|
+
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
1158
|
+
|
|
1159
|
+
This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
|
|
1160
|
+
"""
|
|
1161
|
+
return pulumi.get(self, "config")
|
|
1162
|
+
|
|
1163
|
+
@_builtins.property
|
|
1164
|
+
@pulumi.getter
|
|
1165
|
+
def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResult']]:
|
|
1166
|
+
"""
|
|
1167
|
+
Results lists all allocated devices.
|
|
1168
|
+
"""
|
|
1169
|
+
return pulumi.get(self, "results")
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
@pulumi.output_type
|
|
1173
|
+
class DeviceAllocationResultPatch(dict):
|
|
1174
|
+
"""
|
|
1175
|
+
DeviceAllocationResult is the result of allocating devices.
|
|
1176
|
+
"""
|
|
1177
|
+
def __init__(__self__, *,
|
|
1178
|
+
config: Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']] = None,
|
|
1179
|
+
results: Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']] = None):
|
|
1180
|
+
"""
|
|
1181
|
+
DeviceAllocationResult is the result of allocating devices.
|
|
1182
|
+
:param Sequence['DeviceAllocationConfigurationPatchArgs'] config: This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
1183
|
+
|
|
1184
|
+
This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
|
|
1185
|
+
:param Sequence['DeviceRequestAllocationResultPatchArgs'] results: Results lists all allocated devices.
|
|
1186
|
+
"""
|
|
1187
|
+
if config is not None:
|
|
1188
|
+
pulumi.set(__self__, "config", config)
|
|
1189
|
+
if results is not None:
|
|
1190
|
+
pulumi.set(__self__, "results", results)
|
|
1191
|
+
|
|
1192
|
+
@_builtins.property
|
|
1193
|
+
@pulumi.getter
|
|
1194
|
+
def config(self) -> Optional[Sequence['outputs.DeviceAllocationConfigurationPatch']]:
|
|
1195
|
+
"""
|
|
1196
|
+
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
1197
|
+
|
|
1198
|
+
This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters.
|
|
1199
|
+
"""
|
|
1200
|
+
return pulumi.get(self, "config")
|
|
1201
|
+
|
|
1202
|
+
@_builtins.property
|
|
1203
|
+
@pulumi.getter
|
|
1204
|
+
def results(self) -> Optional[Sequence['outputs.DeviceRequestAllocationResultPatch']]:
|
|
1205
|
+
"""
|
|
1206
|
+
Results lists all allocated devices.
|
|
1207
|
+
"""
|
|
1208
|
+
return pulumi.get(self, "results")
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
@pulumi.output_type
|
|
1212
|
+
class DeviceAttribute(dict):
|
|
1213
|
+
"""
|
|
1214
|
+
DeviceAttribute must have exactly one field set.
|
|
1215
|
+
"""
|
|
1216
|
+
def __init__(__self__, *,
|
|
1217
|
+
bool: Optional[_builtins.bool] = None,
|
|
1218
|
+
int: Optional[_builtins.int] = None,
|
|
1219
|
+
string: Optional[_builtins.str] = None,
|
|
1220
|
+
version: Optional[_builtins.str] = None):
|
|
1221
|
+
"""
|
|
1222
|
+
DeviceAttribute must have exactly one field set.
|
|
1223
|
+
:param _builtins.bool bool: BoolValue is a true/false value.
|
|
1224
|
+
:param _builtins.int int: IntValue is a number.
|
|
1225
|
+
:param _builtins.str string: StringValue is a string. Must not be longer than 64 characters.
|
|
1226
|
+
:param _builtins.str version: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
|
|
1227
|
+
"""
|
|
1228
|
+
if bool is not None:
|
|
1229
|
+
pulumi.set(__self__, "bool", bool)
|
|
1230
|
+
if int is not None:
|
|
1231
|
+
pulumi.set(__self__, "int", int)
|
|
1232
|
+
if string is not None:
|
|
1233
|
+
pulumi.set(__self__, "string", string)
|
|
1234
|
+
if version is not None:
|
|
1235
|
+
pulumi.set(__self__, "version", version)
|
|
1236
|
+
|
|
1237
|
+
@_builtins.property
|
|
1238
|
+
@pulumi.getter
|
|
1239
|
+
def bool(self) -> Optional[_builtins.bool]:
|
|
1240
|
+
"""
|
|
1241
|
+
BoolValue is a true/false value.
|
|
1242
|
+
"""
|
|
1243
|
+
return pulumi.get(self, "bool")
|
|
1244
|
+
|
|
1245
|
+
@_builtins.property
|
|
1246
|
+
@pulumi.getter
|
|
1247
|
+
def int(self) -> Optional[_builtins.int]:
|
|
1248
|
+
"""
|
|
1249
|
+
IntValue is a number.
|
|
1250
|
+
"""
|
|
1251
|
+
return pulumi.get(self, "int")
|
|
1252
|
+
|
|
1253
|
+
@_builtins.property
|
|
1254
|
+
@pulumi.getter
|
|
1255
|
+
def string(self) -> Optional[_builtins.str]:
|
|
1256
|
+
"""
|
|
1257
|
+
StringValue is a string. Must not be longer than 64 characters.
|
|
1258
|
+
"""
|
|
1259
|
+
return pulumi.get(self, "string")
|
|
1260
|
+
|
|
1261
|
+
@_builtins.property
|
|
1262
|
+
@pulumi.getter
|
|
1263
|
+
def version(self) -> Optional[_builtins.str]:
|
|
1264
|
+
"""
|
|
1265
|
+
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
|
|
1266
|
+
"""
|
|
1267
|
+
return pulumi.get(self, "version")
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
@pulumi.output_type
|
|
1271
|
+
class DeviceCapacity(dict):
|
|
1272
|
+
"""
|
|
1273
|
+
DeviceCapacity describes a quantity associated with a device.
|
|
1274
|
+
"""
|
|
1275
|
+
def __init__(__self__, *,
|
|
1276
|
+
value: _builtins.str):
|
|
1277
|
+
"""
|
|
1278
|
+
DeviceCapacity describes a quantity associated with a device.
|
|
1279
|
+
:param _builtins.str value: Value defines how much of a certain device capacity is available.
|
|
1280
|
+
"""
|
|
1281
|
+
pulumi.set(__self__, "value", value)
|
|
1282
|
+
|
|
1283
|
+
@_builtins.property
|
|
1284
|
+
@pulumi.getter
|
|
1285
|
+
def value(self) -> _builtins.str:
|
|
1286
|
+
"""
|
|
1287
|
+
Value defines how much of a certain device capacity is available.
|
|
1288
|
+
"""
|
|
1289
|
+
return pulumi.get(self, "value")
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
@pulumi.output_type
|
|
1293
|
+
class DeviceClaim(dict):
|
|
1294
|
+
"""
|
|
1295
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1296
|
+
"""
|
|
1297
|
+
def __init__(__self__, *,
|
|
1298
|
+
config: Optional[Sequence['outputs.DeviceClaimConfiguration']] = None,
|
|
1299
|
+
constraints: Optional[Sequence['outputs.DeviceConstraint']] = None,
|
|
1300
|
+
requests: Optional[Sequence['outputs.DeviceRequest']] = None):
|
|
1301
|
+
"""
|
|
1302
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1303
|
+
:param Sequence['DeviceClaimConfigurationArgs'] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1304
|
+
:param Sequence['DeviceConstraintArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1305
|
+
:param Sequence['DeviceRequestArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1306
|
+
"""
|
|
1307
|
+
if config is not None:
|
|
1308
|
+
pulumi.set(__self__, "config", config)
|
|
1309
|
+
if constraints is not None:
|
|
1310
|
+
pulumi.set(__self__, "constraints", constraints)
|
|
1311
|
+
if requests is not None:
|
|
1312
|
+
pulumi.set(__self__, "requests", requests)
|
|
1313
|
+
|
|
1314
|
+
@_builtins.property
|
|
1315
|
+
@pulumi.getter
|
|
1316
|
+
def config(self) -> Optional[Sequence['outputs.DeviceClaimConfiguration']]:
|
|
1317
|
+
"""
|
|
1318
|
+
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1319
|
+
"""
|
|
1320
|
+
return pulumi.get(self, "config")
|
|
1321
|
+
|
|
1322
|
+
@_builtins.property
|
|
1323
|
+
@pulumi.getter
|
|
1324
|
+
def constraints(self) -> Optional[Sequence['outputs.DeviceConstraint']]:
|
|
1325
|
+
"""
|
|
1326
|
+
These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1327
|
+
"""
|
|
1328
|
+
return pulumi.get(self, "constraints")
|
|
1329
|
+
|
|
1330
|
+
@_builtins.property
|
|
1331
|
+
@pulumi.getter
|
|
1332
|
+
def requests(self) -> Optional[Sequence['outputs.DeviceRequest']]:
|
|
1333
|
+
"""
|
|
1334
|
+
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1335
|
+
"""
|
|
1336
|
+
return pulumi.get(self, "requests")
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
@pulumi.output_type
|
|
1340
|
+
class DeviceClaimConfiguration(dict):
|
|
1341
|
+
"""
|
|
1342
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
1343
|
+
"""
|
|
1344
|
+
def __init__(__self__, *,
|
|
1345
|
+
opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None,
|
|
1346
|
+
requests: Optional[Sequence[_builtins.str]] = None):
|
|
1347
|
+
"""
|
|
1348
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
1349
|
+
:param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
|
|
1350
|
+
:param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1351
|
+
|
|
1352
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1353
|
+
"""
|
|
1354
|
+
if opaque is not None:
|
|
1355
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1356
|
+
if requests is not None:
|
|
1357
|
+
pulumi.set(__self__, "requests", requests)
|
|
1358
|
+
|
|
1359
|
+
@_builtins.property
|
|
1360
|
+
@pulumi.getter
|
|
1361
|
+
def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
|
|
1362
|
+
"""
|
|
1363
|
+
Opaque provides driver-specific configuration parameters.
|
|
1364
|
+
"""
|
|
1365
|
+
return pulumi.get(self, "opaque")
|
|
1366
|
+
|
|
1367
|
+
@_builtins.property
|
|
1368
|
+
@pulumi.getter
|
|
1369
|
+
def requests(self) -> Optional[Sequence[_builtins.str]]:
|
|
1370
|
+
"""
|
|
1371
|
+
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1372
|
+
|
|
1373
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1374
|
+
"""
|
|
1375
|
+
return pulumi.get(self, "requests")
|
|
1376
|
+
|
|
1377
|
+
|
|
1378
|
+
@pulumi.output_type
|
|
1379
|
+
class DeviceClaimConfigurationPatch(dict):
|
|
1380
|
+
"""
|
|
1381
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
1382
|
+
"""
|
|
1383
|
+
def __init__(__self__, *,
|
|
1384
|
+
opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None,
|
|
1385
|
+
requests: Optional[Sequence[_builtins.str]] = None):
|
|
1386
|
+
"""
|
|
1387
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
1388
|
+
:param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
|
|
1389
|
+
:param Sequence[_builtins.str] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1390
|
+
|
|
1391
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1392
|
+
"""
|
|
1393
|
+
if opaque is not None:
|
|
1394
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1395
|
+
if requests is not None:
|
|
1396
|
+
pulumi.set(__self__, "requests", requests)
|
|
1397
|
+
|
|
1398
|
+
@_builtins.property
|
|
1399
|
+
@pulumi.getter
|
|
1400
|
+
def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
|
|
1401
|
+
"""
|
|
1402
|
+
Opaque provides driver-specific configuration parameters.
|
|
1403
|
+
"""
|
|
1404
|
+
return pulumi.get(self, "opaque")
|
|
1405
|
+
|
|
1406
|
+
@_builtins.property
|
|
1407
|
+
@pulumi.getter
|
|
1408
|
+
def requests(self) -> Optional[Sequence[_builtins.str]]:
|
|
1409
|
+
"""
|
|
1410
|
+
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1411
|
+
|
|
1412
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests.
|
|
1413
|
+
"""
|
|
1414
|
+
return pulumi.get(self, "requests")
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
@pulumi.output_type
|
|
1418
|
+
class DeviceClaimPatch(dict):
|
|
1419
|
+
"""
|
|
1420
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1421
|
+
"""
|
|
1422
|
+
def __init__(__self__, *,
|
|
1423
|
+
config: Optional[Sequence['outputs.DeviceClaimConfigurationPatch']] = None,
|
|
1424
|
+
constraints: Optional[Sequence['outputs.DeviceConstraintPatch']] = None,
|
|
1425
|
+
requests: Optional[Sequence['outputs.DeviceRequestPatch']] = None):
|
|
1426
|
+
"""
|
|
1427
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1428
|
+
:param Sequence['DeviceClaimConfigurationPatchArgs'] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1429
|
+
:param Sequence['DeviceConstraintPatchArgs'] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1430
|
+
:param Sequence['DeviceRequestPatchArgs'] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1431
|
+
"""
|
|
1432
|
+
if config is not None:
|
|
1433
|
+
pulumi.set(__self__, "config", config)
|
|
1434
|
+
if constraints is not None:
|
|
1435
|
+
pulumi.set(__self__, "constraints", constraints)
|
|
1436
|
+
if requests is not None:
|
|
1437
|
+
pulumi.set(__self__, "requests", requests)
|
|
1438
|
+
|
|
1439
|
+
@_builtins.property
|
|
1440
|
+
@pulumi.getter
|
|
1441
|
+
def config(self) -> Optional[Sequence['outputs.DeviceClaimConfigurationPatch']]:
|
|
1442
|
+
"""
|
|
1443
|
+
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1444
|
+
"""
|
|
1445
|
+
return pulumi.get(self, "config")
|
|
1446
|
+
|
|
1447
|
+
@_builtins.property
|
|
1448
|
+
@pulumi.getter
|
|
1449
|
+
def constraints(self) -> Optional[Sequence['outputs.DeviceConstraintPatch']]:
|
|
1450
|
+
"""
|
|
1451
|
+
These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1452
|
+
"""
|
|
1453
|
+
return pulumi.get(self, "constraints")
|
|
1454
|
+
|
|
1455
|
+
@_builtins.property
|
|
1456
|
+
@pulumi.getter
|
|
1457
|
+
def requests(self) -> Optional[Sequence['outputs.DeviceRequestPatch']]:
|
|
1458
|
+
"""
|
|
1459
|
+
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1460
|
+
"""
|
|
1461
|
+
return pulumi.get(self, "requests")
|
|
1462
|
+
|
|
1463
|
+
|
|
1464
|
+
@pulumi.output_type
|
|
1465
|
+
class DeviceClass(dict):
|
|
1466
|
+
"""
|
|
1467
|
+
DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
|
|
1468
|
+
|
|
1469
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
1470
|
+
"""
|
|
1471
|
+
@staticmethod
|
|
1472
|
+
def __key_warning(key: str):
|
|
1473
|
+
suggest = None
|
|
1474
|
+
if key == "apiVersion":
|
|
1475
|
+
suggest = "api_version"
|
|
1476
|
+
|
|
1477
|
+
if suggest:
|
|
1478
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceClass. Access the value via the '{suggest}' property getter instead.")
|
|
1479
|
+
|
|
1480
|
+
def __getitem__(self, key: str) -> Any:
|
|
1481
|
+
DeviceClass.__key_warning(key)
|
|
1482
|
+
return super().__getitem__(key)
|
|
1483
|
+
|
|
1484
|
+
def get(self, key: str, default = None) -> Any:
|
|
1485
|
+
DeviceClass.__key_warning(key)
|
|
1486
|
+
return super().get(key, default)
|
|
1487
|
+
|
|
1488
|
+
def __init__(__self__, *,
|
|
1489
|
+
spec: 'outputs.DeviceClassSpec',
|
|
1490
|
+
api_version: Optional[_builtins.str] = None,
|
|
1491
|
+
kind: Optional[_builtins.str] = None,
|
|
1492
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
|
|
1493
|
+
"""
|
|
1494
|
+
DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.
|
|
1495
|
+
|
|
1496
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
1497
|
+
:param 'DeviceClassSpecArgs' spec: Spec defines what can be allocated and how to configure it.
|
|
1498
|
+
|
|
1499
|
+
This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
|
|
1500
|
+
|
|
1501
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
1502
|
+
: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
|
|
1503
|
+
: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
|
|
1504
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
|
|
1505
|
+
"""
|
|
1506
|
+
pulumi.set(__self__, "spec", spec)
|
|
1507
|
+
if api_version is not None:
|
|
1508
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
1509
|
+
if kind is not None:
|
|
1510
|
+
pulumi.set(__self__, "kind", 'DeviceClass')
|
|
1511
|
+
if metadata is not None:
|
|
1512
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
1513
|
+
|
|
1514
|
+
@_builtins.property
|
|
1515
|
+
@pulumi.getter
|
|
1516
|
+
def spec(self) -> 'outputs.DeviceClassSpec':
|
|
1517
|
+
"""
|
|
1518
|
+
Spec defines what can be allocated and how to configure it.
|
|
1519
|
+
|
|
1520
|
+
This is mutable. Consumers have to be prepared for classes changing at any time, either because they get updated or replaced. Claim allocations are done once based on whatever was set in classes at the time of allocation.
|
|
1521
|
+
|
|
1522
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
1523
|
+
"""
|
|
1524
|
+
return pulumi.get(self, "spec")
|
|
1525
|
+
|
|
1526
|
+
@_builtins.property
|
|
1527
|
+
@pulumi.getter(name="apiVersion")
|
|
1528
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
1529
|
+
"""
|
|
1530
|
+
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
|
|
1531
|
+
"""
|
|
1532
|
+
return pulumi.get(self, "api_version")
|
|
1533
|
+
|
|
1534
|
+
@_builtins.property
|
|
1535
|
+
@pulumi.getter
|
|
1536
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
1537
|
+
"""
|
|
1538
|
+
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
|
|
1539
|
+
"""
|
|
1540
|
+
return pulumi.get(self, "kind")
|
|
1541
|
+
|
|
1542
|
+
@_builtins.property
|
|
1543
|
+
@pulumi.getter
|
|
1544
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
1545
|
+
"""
|
|
1546
|
+
Standard object metadata
|
|
1547
|
+
"""
|
|
1548
|
+
return pulumi.get(self, "metadata")
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
@pulumi.output_type
|
|
1552
|
+
class DeviceClassConfiguration(dict):
|
|
1553
|
+
"""
|
|
1554
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1555
|
+
"""
|
|
1556
|
+
def __init__(__self__, *,
|
|
1557
|
+
opaque: Optional['outputs.OpaqueDeviceConfiguration'] = None):
|
|
1558
|
+
"""
|
|
1559
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1560
|
+
:param 'OpaqueDeviceConfigurationArgs' opaque: Opaque provides driver-specific configuration parameters.
|
|
1561
|
+
"""
|
|
1562
|
+
if opaque is not None:
|
|
1563
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1564
|
+
|
|
1565
|
+
@_builtins.property
|
|
1566
|
+
@pulumi.getter
|
|
1567
|
+
def opaque(self) -> Optional['outputs.OpaqueDeviceConfiguration']:
|
|
1568
|
+
"""
|
|
1569
|
+
Opaque provides driver-specific configuration parameters.
|
|
1570
|
+
"""
|
|
1571
|
+
return pulumi.get(self, "opaque")
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
@pulumi.output_type
|
|
1575
|
+
class DeviceClassConfigurationPatch(dict):
|
|
1576
|
+
"""
|
|
1577
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1578
|
+
"""
|
|
1579
|
+
def __init__(__self__, *,
|
|
1580
|
+
opaque: Optional['outputs.OpaqueDeviceConfigurationPatch'] = None):
|
|
1581
|
+
"""
|
|
1582
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1583
|
+
:param 'OpaqueDeviceConfigurationPatchArgs' opaque: Opaque provides driver-specific configuration parameters.
|
|
1584
|
+
"""
|
|
1585
|
+
if opaque is not None:
|
|
1586
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1587
|
+
|
|
1588
|
+
@_builtins.property
|
|
1589
|
+
@pulumi.getter
|
|
1590
|
+
def opaque(self) -> Optional['outputs.OpaqueDeviceConfigurationPatch']:
|
|
1591
|
+
"""
|
|
1592
|
+
Opaque provides driver-specific configuration parameters.
|
|
1593
|
+
"""
|
|
1594
|
+
return pulumi.get(self, "opaque")
|
|
1595
|
+
|
|
1596
|
+
|
|
1597
|
+
@pulumi.output_type
|
|
1598
|
+
class DeviceClassSpec(dict):
|
|
1599
|
+
"""
|
|
1600
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1601
|
+
"""
|
|
1602
|
+
def __init__(__self__, *,
|
|
1603
|
+
config: Optional[Sequence['outputs.DeviceClassConfiguration']] = None,
|
|
1604
|
+
selectors: Optional[Sequence['outputs.DeviceSelector']] = None):
|
|
1605
|
+
"""
|
|
1606
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1607
|
+
:param Sequence['DeviceClassConfigurationArgs'] config: Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
|
|
1608
|
+
|
|
1609
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1610
|
+
:param Sequence['DeviceSelectorArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
|
|
1611
|
+
"""
|
|
1612
|
+
if config is not None:
|
|
1613
|
+
pulumi.set(__self__, "config", config)
|
|
1614
|
+
if selectors is not None:
|
|
1615
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
1616
|
+
|
|
1617
|
+
@_builtins.property
|
|
1618
|
+
@pulumi.getter
|
|
1619
|
+
def config(self) -> Optional[Sequence['outputs.DeviceClassConfiguration']]:
|
|
1620
|
+
"""
|
|
1621
|
+
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
|
|
1622
|
+
|
|
1623
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1624
|
+
"""
|
|
1625
|
+
return pulumi.get(self, "config")
|
|
1626
|
+
|
|
1627
|
+
@_builtins.property
|
|
1628
|
+
@pulumi.getter
|
|
1629
|
+
def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
|
|
1630
|
+
"""
|
|
1631
|
+
Each selector must be satisfied by a device which is claimed via this class.
|
|
1632
|
+
"""
|
|
1633
|
+
return pulumi.get(self, "selectors")
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
@pulumi.output_type
|
|
1637
|
+
class DeviceClassSpecPatch(dict):
|
|
1638
|
+
"""
|
|
1639
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1640
|
+
"""
|
|
1641
|
+
def __init__(__self__, *,
|
|
1642
|
+
config: Optional[Sequence['outputs.DeviceClassConfigurationPatch']] = None,
|
|
1643
|
+
selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None):
|
|
1644
|
+
"""
|
|
1645
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1646
|
+
:param Sequence['DeviceClassConfigurationPatchArgs'] config: Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
|
|
1647
|
+
|
|
1648
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1649
|
+
:param Sequence['DeviceSelectorPatchArgs'] selectors: Each selector must be satisfied by a device which is claimed via this class.
|
|
1650
|
+
"""
|
|
1651
|
+
if config is not None:
|
|
1652
|
+
pulumi.set(__self__, "config", config)
|
|
1653
|
+
if selectors is not None:
|
|
1654
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
1655
|
+
|
|
1656
|
+
@_builtins.property
|
|
1657
|
+
@pulumi.getter
|
|
1658
|
+
def config(self) -> Optional[Sequence['outputs.DeviceClassConfigurationPatch']]:
|
|
1659
|
+
"""
|
|
1660
|
+
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver.
|
|
1661
|
+
|
|
1662
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1663
|
+
"""
|
|
1664
|
+
return pulumi.get(self, "config")
|
|
1665
|
+
|
|
1666
|
+
@_builtins.property
|
|
1667
|
+
@pulumi.getter
|
|
1668
|
+
def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
|
|
1669
|
+
"""
|
|
1670
|
+
Each selector must be satisfied by a device which is claimed via this class.
|
|
1671
|
+
"""
|
|
1672
|
+
return pulumi.get(self, "selectors")
|
|
1673
|
+
|
|
1674
|
+
|
|
1675
|
+
@pulumi.output_type
|
|
1676
|
+
class DeviceConstraint(dict):
|
|
1677
|
+
"""
|
|
1678
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1679
|
+
"""
|
|
1680
|
+
@staticmethod
|
|
1681
|
+
def __key_warning(key: str):
|
|
1682
|
+
suggest = None
|
|
1683
|
+
if key == "matchAttribute":
|
|
1684
|
+
suggest = "match_attribute"
|
|
1685
|
+
|
|
1686
|
+
if suggest:
|
|
1687
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceConstraint. Access the value via the '{suggest}' property getter instead.")
|
|
1688
|
+
|
|
1689
|
+
def __getitem__(self, key: str) -> Any:
|
|
1690
|
+
DeviceConstraint.__key_warning(key)
|
|
1691
|
+
return super().__getitem__(key)
|
|
1692
|
+
|
|
1693
|
+
def get(self, key: str, default = None) -> Any:
|
|
1694
|
+
DeviceConstraint.__key_warning(key)
|
|
1695
|
+
return super().get(key, default)
|
|
1696
|
+
|
|
1697
|
+
def __init__(__self__, *,
|
|
1698
|
+
match_attribute: Optional[_builtins.str] = None,
|
|
1699
|
+
requests: Optional[Sequence[_builtins.str]] = None):
|
|
1700
|
+
"""
|
|
1701
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1702
|
+
:param _builtins.str match_attribute: MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1703
|
+
|
|
1704
|
+
For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
|
|
1705
|
+
|
|
1706
|
+
Must include the domain qualifier.
|
|
1707
|
+
:param Sequence[_builtins.str] requests: Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
|
|
1708
|
+
|
|
1709
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
|
|
1710
|
+
"""
|
|
1711
|
+
if match_attribute is not None:
|
|
1712
|
+
pulumi.set(__self__, "match_attribute", match_attribute)
|
|
1713
|
+
if requests is not None:
|
|
1714
|
+
pulumi.set(__self__, "requests", requests)
|
|
1715
|
+
|
|
1716
|
+
@_builtins.property
|
|
1717
|
+
@pulumi.getter(name="matchAttribute")
|
|
1718
|
+
def match_attribute(self) -> Optional[_builtins.str]:
|
|
1719
|
+
"""
|
|
1720
|
+
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1721
|
+
|
|
1722
|
+
For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
|
|
1723
|
+
|
|
1724
|
+
Must include the domain qualifier.
|
|
1725
|
+
"""
|
|
1726
|
+
return pulumi.get(self, "match_attribute")
|
|
1727
|
+
|
|
1728
|
+
@_builtins.property
|
|
1729
|
+
@pulumi.getter
|
|
1730
|
+
def requests(self) -> Optional[Sequence[_builtins.str]]:
|
|
1731
|
+
"""
|
|
1732
|
+
Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
|
|
1733
|
+
|
|
1734
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
|
|
1735
|
+
"""
|
|
1736
|
+
return pulumi.get(self, "requests")
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
@pulumi.output_type
|
|
1740
|
+
class DeviceConstraintPatch(dict):
|
|
1741
|
+
"""
|
|
1742
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1743
|
+
"""
|
|
1744
|
+
@staticmethod
|
|
1745
|
+
def __key_warning(key: str):
|
|
1746
|
+
suggest = None
|
|
1747
|
+
if key == "matchAttribute":
|
|
1748
|
+
suggest = "match_attribute"
|
|
1749
|
+
|
|
1750
|
+
if suggest:
|
|
1751
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceConstraintPatch. Access the value via the '{suggest}' property getter instead.")
|
|
1752
|
+
|
|
1753
|
+
def __getitem__(self, key: str) -> Any:
|
|
1754
|
+
DeviceConstraintPatch.__key_warning(key)
|
|
1755
|
+
return super().__getitem__(key)
|
|
1756
|
+
|
|
1757
|
+
def get(self, key: str, default = None) -> Any:
|
|
1758
|
+
DeviceConstraintPatch.__key_warning(key)
|
|
1759
|
+
return super().get(key, default)
|
|
1760
|
+
|
|
1761
|
+
def __init__(__self__, *,
|
|
1762
|
+
match_attribute: Optional[_builtins.str] = None,
|
|
1763
|
+
requests: Optional[Sequence[_builtins.str]] = None):
|
|
1764
|
+
"""
|
|
1765
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1766
|
+
:param _builtins.str match_attribute: MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1767
|
+
|
|
1768
|
+
For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
|
|
1769
|
+
|
|
1770
|
+
Must include the domain qualifier.
|
|
1771
|
+
:param Sequence[_builtins.str] requests: Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
|
|
1772
|
+
|
|
1773
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
|
|
1774
|
+
"""
|
|
1775
|
+
if match_attribute is not None:
|
|
1776
|
+
pulumi.set(__self__, "match_attribute", match_attribute)
|
|
1777
|
+
if requests is not None:
|
|
1778
|
+
pulumi.set(__self__, "requests", requests)
|
|
1779
|
+
|
|
1780
|
+
@_builtins.property
|
|
1781
|
+
@pulumi.getter(name="matchAttribute")
|
|
1782
|
+
def match_attribute(self) -> Optional[_builtins.str]:
|
|
1783
|
+
"""
|
|
1784
|
+
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1785
|
+
|
|
1786
|
+
For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.
|
|
1787
|
+
|
|
1788
|
+
Must include the domain qualifier.
|
|
1789
|
+
"""
|
|
1790
|
+
return pulumi.get(self, "match_attribute")
|
|
1791
|
+
|
|
1792
|
+
@_builtins.property
|
|
1793
|
+
@pulumi.getter
|
|
1794
|
+
def requests(self) -> Optional[Sequence[_builtins.str]]:
|
|
1795
|
+
"""
|
|
1796
|
+
Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim.
|
|
1797
|
+
|
|
1798
|
+
References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests.
|
|
1799
|
+
"""
|
|
1800
|
+
return pulumi.get(self, "requests")
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
@pulumi.output_type
|
|
1804
|
+
class DeviceCounterConsumption(dict):
|
|
1805
|
+
"""
|
|
1806
|
+
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
|
|
1807
|
+
"""
|
|
1808
|
+
@staticmethod
|
|
1809
|
+
def __key_warning(key: str):
|
|
1810
|
+
suggest = None
|
|
1811
|
+
if key == "counterSet":
|
|
1812
|
+
suggest = "counter_set"
|
|
1813
|
+
|
|
1814
|
+
if suggest:
|
|
1815
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceCounterConsumption. Access the value via the '{suggest}' property getter instead.")
|
|
1816
|
+
|
|
1817
|
+
def __getitem__(self, key: str) -> Any:
|
|
1818
|
+
DeviceCounterConsumption.__key_warning(key)
|
|
1819
|
+
return super().__getitem__(key)
|
|
1820
|
+
|
|
1821
|
+
def get(self, key: str, default = None) -> Any:
|
|
1822
|
+
DeviceCounterConsumption.__key_warning(key)
|
|
1823
|
+
return super().get(key, default)
|
|
1824
|
+
|
|
1825
|
+
def __init__(__self__, *,
|
|
1826
|
+
counter_set: _builtins.str,
|
|
1827
|
+
counters: Mapping[str, 'outputs.Counter']):
|
|
1828
|
+
"""
|
|
1829
|
+
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
|
|
1830
|
+
:param _builtins.str counter_set: CounterSet is the name of the set from which the counters defined will be consumed.
|
|
1831
|
+
:param Mapping[str, 'CounterArgs'] counters: Counters defines the counters that will be consumed by the device.
|
|
1832
|
+
|
|
1833
|
+
The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
|
|
1834
|
+
"""
|
|
1835
|
+
pulumi.set(__self__, "counter_set", counter_set)
|
|
1836
|
+
pulumi.set(__self__, "counters", counters)
|
|
1837
|
+
|
|
1838
|
+
@_builtins.property
|
|
1839
|
+
@pulumi.getter(name="counterSet")
|
|
1840
|
+
def counter_set(self) -> _builtins.str:
|
|
1841
|
+
"""
|
|
1842
|
+
CounterSet is the name of the set from which the counters defined will be consumed.
|
|
1843
|
+
"""
|
|
1844
|
+
return pulumi.get(self, "counter_set")
|
|
1845
|
+
|
|
1846
|
+
@_builtins.property
|
|
1847
|
+
@pulumi.getter
|
|
1848
|
+
def counters(self) -> Mapping[str, 'outputs.Counter']:
|
|
1849
|
+
"""
|
|
1850
|
+
Counters defines the counters that will be consumed by the device.
|
|
1851
|
+
|
|
1852
|
+
The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
|
|
1853
|
+
"""
|
|
1854
|
+
return pulumi.get(self, "counters")
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
@pulumi.output_type
|
|
1858
|
+
class DeviceCounterConsumptionPatch(dict):
|
|
1859
|
+
"""
|
|
1860
|
+
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
|
|
1861
|
+
"""
|
|
1862
|
+
@staticmethod
|
|
1863
|
+
def __key_warning(key: str):
|
|
1864
|
+
suggest = None
|
|
1865
|
+
if key == "counterSet":
|
|
1866
|
+
suggest = "counter_set"
|
|
1867
|
+
|
|
1868
|
+
if suggest:
|
|
1869
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceCounterConsumptionPatch. Access the value via the '{suggest}' property getter instead.")
|
|
1870
|
+
|
|
1871
|
+
def __getitem__(self, key: str) -> Any:
|
|
1872
|
+
DeviceCounterConsumptionPatch.__key_warning(key)
|
|
1873
|
+
return super().__getitem__(key)
|
|
1874
|
+
|
|
1875
|
+
def get(self, key: str, default = None) -> Any:
|
|
1876
|
+
DeviceCounterConsumptionPatch.__key_warning(key)
|
|
1877
|
+
return super().get(key, default)
|
|
1878
|
+
|
|
1879
|
+
def __init__(__self__, *,
|
|
1880
|
+
counter_set: Optional[_builtins.str] = None,
|
|
1881
|
+
counters: Optional[Mapping[str, 'outputs.Counter']] = None):
|
|
1882
|
+
"""
|
|
1883
|
+
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
|
|
1884
|
+
:param _builtins.str counter_set: CounterSet is the name of the set from which the counters defined will be consumed.
|
|
1885
|
+
:param Mapping[str, 'CounterArgs'] counters: Counters defines the counters that will be consumed by the device.
|
|
1886
|
+
|
|
1887
|
+
The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
|
|
1888
|
+
"""
|
|
1889
|
+
if counter_set is not None:
|
|
1890
|
+
pulumi.set(__self__, "counter_set", counter_set)
|
|
1891
|
+
if counters is not None:
|
|
1892
|
+
pulumi.set(__self__, "counters", counters)
|
|
1893
|
+
|
|
1894
|
+
@_builtins.property
|
|
1895
|
+
@pulumi.getter(name="counterSet")
|
|
1896
|
+
def counter_set(self) -> Optional[_builtins.str]:
|
|
1897
|
+
"""
|
|
1898
|
+
CounterSet is the name of the set from which the counters defined will be consumed.
|
|
1899
|
+
"""
|
|
1900
|
+
return pulumi.get(self, "counter_set")
|
|
1901
|
+
|
|
1902
|
+
@_builtins.property
|
|
1903
|
+
@pulumi.getter
|
|
1904
|
+
def counters(self) -> Optional[Mapping[str, 'outputs.Counter']]:
|
|
1905
|
+
"""
|
|
1906
|
+
Counters defines the counters that will be consumed by the device.
|
|
1907
|
+
|
|
1908
|
+
The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
|
|
1909
|
+
"""
|
|
1910
|
+
return pulumi.get(self, "counters")
|
|
1911
|
+
|
|
1912
|
+
|
|
1913
|
+
@pulumi.output_type
|
|
1914
|
+
class DevicePatch(dict):
|
|
1915
|
+
"""
|
|
1916
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
1917
|
+
"""
|
|
1918
|
+
def __init__(__self__, *,
|
|
1919
|
+
basic: Optional['outputs.BasicDevicePatch'] = None,
|
|
1920
|
+
name: Optional[_builtins.str] = None):
|
|
1921
|
+
"""
|
|
1922
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
1923
|
+
:param 'BasicDevicePatchArgs' basic: Basic defines one device instance.
|
|
1924
|
+
:param _builtins.str name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1925
|
+
"""
|
|
1926
|
+
if basic is not None:
|
|
1927
|
+
pulumi.set(__self__, "basic", basic)
|
|
1928
|
+
if name is not None:
|
|
1929
|
+
pulumi.set(__self__, "name", name)
|
|
1930
|
+
|
|
1931
|
+
@_builtins.property
|
|
1932
|
+
@pulumi.getter
|
|
1933
|
+
def basic(self) -> Optional['outputs.BasicDevicePatch']:
|
|
1934
|
+
"""
|
|
1935
|
+
Basic defines one device instance.
|
|
1936
|
+
"""
|
|
1937
|
+
return pulumi.get(self, "basic")
|
|
1938
|
+
|
|
1939
|
+
@_builtins.property
|
|
1940
|
+
@pulumi.getter
|
|
1941
|
+
def name(self) -> Optional[_builtins.str]:
|
|
1942
|
+
"""
|
|
1943
|
+
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1944
|
+
"""
|
|
1945
|
+
return pulumi.get(self, "name")
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
@pulumi.output_type
|
|
1949
|
+
class DeviceRequest(dict):
|
|
1950
|
+
"""
|
|
1951
|
+
DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
1952
|
+
"""
|
|
1953
|
+
@staticmethod
|
|
1954
|
+
def __key_warning(key: str):
|
|
1955
|
+
suggest = None
|
|
1956
|
+
if key == "adminAccess":
|
|
1957
|
+
suggest = "admin_access"
|
|
1958
|
+
elif key == "allocationMode":
|
|
1959
|
+
suggest = "allocation_mode"
|
|
1960
|
+
elif key == "deviceClassName":
|
|
1961
|
+
suggest = "device_class_name"
|
|
1962
|
+
elif key == "firstAvailable":
|
|
1963
|
+
suggest = "first_available"
|
|
1964
|
+
|
|
1965
|
+
if suggest:
|
|
1966
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceRequest. Access the value via the '{suggest}' property getter instead.")
|
|
1967
|
+
|
|
1968
|
+
def __getitem__(self, key: str) -> Any:
|
|
1969
|
+
DeviceRequest.__key_warning(key)
|
|
1970
|
+
return super().__getitem__(key)
|
|
1971
|
+
|
|
1972
|
+
def get(self, key: str, default = None) -> Any:
|
|
1973
|
+
DeviceRequest.__key_warning(key)
|
|
1974
|
+
return super().get(key, default)
|
|
1975
|
+
|
|
1976
|
+
def __init__(__self__, *,
|
|
1977
|
+
name: _builtins.str,
|
|
1978
|
+
admin_access: Optional[_builtins.bool] = None,
|
|
1979
|
+
allocation_mode: Optional[_builtins.str] = None,
|
|
1980
|
+
count: Optional[_builtins.int] = None,
|
|
1981
|
+
device_class_name: Optional[_builtins.str] = None,
|
|
1982
|
+
first_available: Optional[Sequence['outputs.DeviceSubRequest']] = None,
|
|
1983
|
+
selectors: Optional[Sequence['outputs.DeviceSelector']] = None,
|
|
1984
|
+
tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
|
|
1985
|
+
"""
|
|
1986
|
+
DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
1987
|
+
:param _builtins.str name: Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
1988
|
+
|
|
1989
|
+
Must be a DNS label and unique among all DeviceRequests in a ResourceClaim.
|
|
1990
|
+
:param _builtins.bool admin_access: AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
|
|
1991
|
+
|
|
1992
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
1993
|
+
|
|
1994
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
1995
|
+
:param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
1996
|
+
|
|
1997
|
+
- ExactCount: This request is for a specific number of devices.
|
|
1998
|
+
This is the default. The exact number is provided in the
|
|
1999
|
+
count field.
|
|
2000
|
+
|
|
2001
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2002
|
+
At least one device must exist on the node for the allocation to succeed.
|
|
2003
|
+
Allocation will fail if some devices are already allocated,
|
|
2004
|
+
unless adminAccess is requested.
|
|
2005
|
+
|
|
2006
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
|
|
2007
|
+
|
|
2008
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2009
|
+
|
|
2010
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2011
|
+
:param _builtins.int count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2012
|
+
|
|
2013
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2014
|
+
:param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2015
|
+
|
|
2016
|
+
A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.
|
|
2017
|
+
|
|
2018
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2019
|
+
:param Sequence['DeviceSubRequestArgs'] first_available: FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used.
|
|
2020
|
+
|
|
2021
|
+
This field may only be set in the entries of DeviceClaim.Requests.
|
|
2022
|
+
|
|
2023
|
+
DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
|
|
2024
|
+
:param Sequence['DeviceSelectorArgs'] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
|
|
2025
|
+
|
|
2026
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2027
|
+
:param Sequence['DeviceTolerationArgs'] tolerations: If specified, the request's tolerations.
|
|
2028
|
+
|
|
2029
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2030
|
+
|
|
2031
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2032
|
+
|
|
2033
|
+
The maximum number of tolerations is 16.
|
|
2034
|
+
|
|
2035
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2036
|
+
|
|
2037
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2038
|
+
"""
|
|
2039
|
+
pulumi.set(__self__, "name", name)
|
|
2040
|
+
if admin_access is not None:
|
|
2041
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
2042
|
+
if allocation_mode is not None:
|
|
2043
|
+
pulumi.set(__self__, "allocation_mode", allocation_mode)
|
|
2044
|
+
if count is not None:
|
|
2045
|
+
pulumi.set(__self__, "count", count)
|
|
2046
|
+
if device_class_name is not None:
|
|
2047
|
+
pulumi.set(__self__, "device_class_name", device_class_name)
|
|
2048
|
+
if first_available is not None:
|
|
2049
|
+
pulumi.set(__self__, "first_available", first_available)
|
|
2050
|
+
if selectors is not None:
|
|
2051
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
2052
|
+
if tolerations is not None:
|
|
2053
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
2054
|
+
|
|
2055
|
+
@_builtins.property
|
|
2056
|
+
@pulumi.getter
|
|
2057
|
+
def name(self) -> _builtins.str:
|
|
2058
|
+
"""
|
|
2059
|
+
Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
2060
|
+
|
|
2061
|
+
Must be a DNS label and unique among all DeviceRequests in a ResourceClaim.
|
|
2062
|
+
"""
|
|
2063
|
+
return pulumi.get(self, "name")
|
|
2064
|
+
|
|
2065
|
+
@_builtins.property
|
|
2066
|
+
@pulumi.getter(name="adminAccess")
|
|
2067
|
+
def admin_access(self) -> Optional[_builtins.bool]:
|
|
2068
|
+
"""
|
|
2069
|
+
AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
|
|
2070
|
+
|
|
2071
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2072
|
+
|
|
2073
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2074
|
+
"""
|
|
2075
|
+
return pulumi.get(self, "admin_access")
|
|
2076
|
+
|
|
2077
|
+
@_builtins.property
|
|
2078
|
+
@pulumi.getter(name="allocationMode")
|
|
2079
|
+
def allocation_mode(self) -> Optional[_builtins.str]:
|
|
2080
|
+
"""
|
|
2081
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
2082
|
+
|
|
2083
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2084
|
+
This is the default. The exact number is provided in the
|
|
2085
|
+
count field.
|
|
2086
|
+
|
|
2087
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2088
|
+
At least one device must exist on the node for the allocation to succeed.
|
|
2089
|
+
Allocation will fail if some devices are already allocated,
|
|
2090
|
+
unless adminAccess is requested.
|
|
2091
|
+
|
|
2092
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
|
|
2093
|
+
|
|
2094
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2095
|
+
|
|
2096
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2097
|
+
"""
|
|
2098
|
+
return pulumi.get(self, "allocation_mode")
|
|
2099
|
+
|
|
2100
|
+
@_builtins.property
|
|
2101
|
+
@pulumi.getter
|
|
2102
|
+
def count(self) -> Optional[_builtins.int]:
|
|
2103
|
+
"""
|
|
2104
|
+
Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2105
|
+
|
|
2106
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2107
|
+
"""
|
|
2108
|
+
return pulumi.get(self, "count")
|
|
2109
|
+
|
|
2110
|
+
@_builtins.property
|
|
2111
|
+
@pulumi.getter(name="deviceClassName")
|
|
2112
|
+
def device_class_name(self) -> Optional[_builtins.str]:
|
|
2113
|
+
"""
|
|
2114
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2115
|
+
|
|
2116
|
+
A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.
|
|
2117
|
+
|
|
2118
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2119
|
+
"""
|
|
2120
|
+
return pulumi.get(self, "device_class_name")
|
|
2121
|
+
|
|
2122
|
+
@_builtins.property
|
|
2123
|
+
@pulumi.getter(name="firstAvailable")
|
|
2124
|
+
def first_available(self) -> Optional[Sequence['outputs.DeviceSubRequest']]:
|
|
2125
|
+
"""
|
|
2126
|
+
FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used.
|
|
2127
|
+
|
|
2128
|
+
This field may only be set in the entries of DeviceClaim.Requests.
|
|
2129
|
+
|
|
2130
|
+
DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
|
|
2131
|
+
"""
|
|
2132
|
+
return pulumi.get(self, "first_available")
|
|
2133
|
+
|
|
2134
|
+
@_builtins.property
|
|
2135
|
+
@pulumi.getter
|
|
2136
|
+
def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
|
|
2137
|
+
"""
|
|
2138
|
+
Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
|
|
2139
|
+
|
|
2140
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2141
|
+
"""
|
|
2142
|
+
return pulumi.get(self, "selectors")
|
|
2143
|
+
|
|
2144
|
+
@_builtins.property
|
|
2145
|
+
@pulumi.getter
|
|
2146
|
+
def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
|
|
2147
|
+
"""
|
|
2148
|
+
If specified, the request's tolerations.
|
|
2149
|
+
|
|
2150
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2151
|
+
|
|
2152
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2153
|
+
|
|
2154
|
+
The maximum number of tolerations is 16.
|
|
2155
|
+
|
|
2156
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2157
|
+
|
|
2158
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2159
|
+
"""
|
|
2160
|
+
return pulumi.get(self, "tolerations")
|
|
2161
|
+
|
|
2162
|
+
|
|
2163
|
+
@pulumi.output_type
|
|
2164
|
+
class DeviceRequestAllocationResult(dict):
|
|
2165
|
+
"""
|
|
2166
|
+
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
2167
|
+
"""
|
|
2168
|
+
@staticmethod
|
|
2169
|
+
def __key_warning(key: str):
|
|
2170
|
+
suggest = None
|
|
2171
|
+
if key == "adminAccess":
|
|
2172
|
+
suggest = "admin_access"
|
|
2173
|
+
|
|
2174
|
+
if suggest:
|
|
2175
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResult. Access the value via the '{suggest}' property getter instead.")
|
|
2176
|
+
|
|
2177
|
+
def __getitem__(self, key: str) -> Any:
|
|
2178
|
+
DeviceRequestAllocationResult.__key_warning(key)
|
|
2179
|
+
return super().__getitem__(key)
|
|
2180
|
+
|
|
2181
|
+
def get(self, key: str, default = None) -> Any:
|
|
2182
|
+
DeviceRequestAllocationResult.__key_warning(key)
|
|
2183
|
+
return super().get(key, default)
|
|
2184
|
+
|
|
2185
|
+
def __init__(__self__, *,
|
|
2186
|
+
device: _builtins.str,
|
|
2187
|
+
driver: _builtins.str,
|
|
2188
|
+
pool: _builtins.str,
|
|
2189
|
+
request: _builtins.str,
|
|
2190
|
+
admin_access: Optional[_builtins.bool] = None,
|
|
2191
|
+
tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
|
|
2192
|
+
"""
|
|
2193
|
+
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
2194
|
+
:param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
2195
|
+
:param _builtins.str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
2196
|
+
|
|
2197
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2198
|
+
:param _builtins.str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
2199
|
+
|
|
2200
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
2201
|
+
:param _builtins.str request: Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
|
|
2202
|
+
|
|
2203
|
+
Multiple devices may have been allocated per request.
|
|
2204
|
+
:param _builtins.bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
2205
|
+
|
|
2206
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2207
|
+
:param Sequence['DeviceTolerationArgs'] tolerations: A copy of all tolerations specified in the request at the time when the device got allocated.
|
|
2208
|
+
|
|
2209
|
+
The maximum number of tolerations is 16.
|
|
2210
|
+
|
|
2211
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2212
|
+
"""
|
|
2213
|
+
pulumi.set(__self__, "device", device)
|
|
2214
|
+
pulumi.set(__self__, "driver", driver)
|
|
2215
|
+
pulumi.set(__self__, "pool", pool)
|
|
2216
|
+
pulumi.set(__self__, "request", request)
|
|
2217
|
+
if admin_access is not None:
|
|
2218
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
2219
|
+
if tolerations is not None:
|
|
2220
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
2221
|
+
|
|
2222
|
+
@_builtins.property
|
|
2223
|
+
@pulumi.getter
|
|
2224
|
+
def device(self) -> _builtins.str:
|
|
2225
|
+
"""
|
|
2226
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
2227
|
+
"""
|
|
2228
|
+
return pulumi.get(self, "device")
|
|
2229
|
+
|
|
2230
|
+
@_builtins.property
|
|
2231
|
+
@pulumi.getter
|
|
2232
|
+
def driver(self) -> _builtins.str:
|
|
2233
|
+
"""
|
|
2234
|
+
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
2235
|
+
|
|
2236
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2237
|
+
"""
|
|
2238
|
+
return pulumi.get(self, "driver")
|
|
2239
|
+
|
|
2240
|
+
@_builtins.property
|
|
2241
|
+
@pulumi.getter
|
|
2242
|
+
def pool(self) -> _builtins.str:
|
|
2243
|
+
"""
|
|
2244
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
2245
|
+
|
|
2246
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
2247
|
+
"""
|
|
2248
|
+
return pulumi.get(self, "pool")
|
|
2249
|
+
|
|
2250
|
+
@_builtins.property
|
|
2251
|
+
@pulumi.getter
|
|
2252
|
+
def request(self) -> _builtins.str:
|
|
2253
|
+
"""
|
|
2254
|
+
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
|
|
2255
|
+
|
|
2256
|
+
Multiple devices may have been allocated per request.
|
|
2257
|
+
"""
|
|
2258
|
+
return pulumi.get(self, "request")
|
|
2259
|
+
|
|
2260
|
+
@_builtins.property
|
|
2261
|
+
@pulumi.getter(name="adminAccess")
|
|
2262
|
+
def admin_access(self) -> Optional[_builtins.bool]:
|
|
2263
|
+
"""
|
|
2264
|
+
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
2265
|
+
|
|
2266
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2267
|
+
"""
|
|
2268
|
+
return pulumi.get(self, "admin_access")
|
|
2269
|
+
|
|
2270
|
+
@_builtins.property
|
|
2271
|
+
@pulumi.getter
|
|
2272
|
+
def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
|
|
2273
|
+
"""
|
|
2274
|
+
A copy of all tolerations specified in the request at the time when the device got allocated.
|
|
2275
|
+
|
|
2276
|
+
The maximum number of tolerations is 16.
|
|
2277
|
+
|
|
2278
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2279
|
+
"""
|
|
2280
|
+
return pulumi.get(self, "tolerations")
|
|
2281
|
+
|
|
2282
|
+
|
|
2283
|
+
@pulumi.output_type
|
|
2284
|
+
class DeviceRequestAllocationResultPatch(dict):
|
|
2285
|
+
"""
|
|
2286
|
+
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
2287
|
+
"""
|
|
2288
|
+
@staticmethod
|
|
2289
|
+
def __key_warning(key: str):
|
|
2290
|
+
suggest = None
|
|
2291
|
+
if key == "adminAccess":
|
|
2292
|
+
suggest = "admin_access"
|
|
2293
|
+
|
|
2294
|
+
if suggest:
|
|
2295
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceRequestAllocationResultPatch. Access the value via the '{suggest}' property getter instead.")
|
|
2296
|
+
|
|
2297
|
+
def __getitem__(self, key: str) -> Any:
|
|
2298
|
+
DeviceRequestAllocationResultPatch.__key_warning(key)
|
|
2299
|
+
return super().__getitem__(key)
|
|
2300
|
+
|
|
2301
|
+
def get(self, key: str, default = None) -> Any:
|
|
2302
|
+
DeviceRequestAllocationResultPatch.__key_warning(key)
|
|
2303
|
+
return super().get(key, default)
|
|
2304
|
+
|
|
2305
|
+
def __init__(__self__, *,
|
|
2306
|
+
admin_access: Optional[_builtins.bool] = None,
|
|
2307
|
+
device: Optional[_builtins.str] = None,
|
|
2308
|
+
driver: Optional[_builtins.str] = None,
|
|
2309
|
+
pool: Optional[_builtins.str] = None,
|
|
2310
|
+
request: Optional[_builtins.str] = None,
|
|
2311
|
+
tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
|
|
2312
|
+
"""
|
|
2313
|
+
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
2314
|
+
:param _builtins.bool admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
2315
|
+
|
|
2316
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2317
|
+
:param _builtins.str device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
2318
|
+
:param _builtins.str driver: Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
2319
|
+
|
|
2320
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2321
|
+
:param _builtins.str pool: This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
2322
|
+
|
|
2323
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
2324
|
+
:param _builtins.str request: Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
|
|
2325
|
+
|
|
2326
|
+
Multiple devices may have been allocated per request.
|
|
2327
|
+
:param Sequence['DeviceTolerationPatchArgs'] tolerations: A copy of all tolerations specified in the request at the time when the device got allocated.
|
|
2328
|
+
|
|
2329
|
+
The maximum number of tolerations is 16.
|
|
2330
|
+
|
|
2331
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2332
|
+
"""
|
|
2333
|
+
if admin_access is not None:
|
|
2334
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
2335
|
+
if device is not None:
|
|
2336
|
+
pulumi.set(__self__, "device", device)
|
|
2337
|
+
if driver is not None:
|
|
2338
|
+
pulumi.set(__self__, "driver", driver)
|
|
2339
|
+
if pool is not None:
|
|
2340
|
+
pulumi.set(__self__, "pool", pool)
|
|
2341
|
+
if request is not None:
|
|
2342
|
+
pulumi.set(__self__, "request", request)
|
|
2343
|
+
if tolerations is not None:
|
|
2344
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
2345
|
+
|
|
2346
|
+
@_builtins.property
|
|
2347
|
+
@pulumi.getter(name="adminAccess")
|
|
2348
|
+
def admin_access(self) -> Optional[_builtins.bool]:
|
|
2349
|
+
"""
|
|
2350
|
+
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
2351
|
+
|
|
2352
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2353
|
+
"""
|
|
2354
|
+
return pulumi.get(self, "admin_access")
|
|
2355
|
+
|
|
2356
|
+
@_builtins.property
|
|
2357
|
+
@pulumi.getter
|
|
2358
|
+
def device(self) -> Optional[_builtins.str]:
|
|
2359
|
+
"""
|
|
2360
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
2361
|
+
"""
|
|
2362
|
+
return pulumi.get(self, "device")
|
|
2363
|
+
|
|
2364
|
+
@_builtins.property
|
|
2365
|
+
@pulumi.getter
|
|
2366
|
+
def driver(self) -> Optional[_builtins.str]:
|
|
2367
|
+
"""
|
|
2368
|
+
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node.
|
|
2369
|
+
|
|
2370
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2371
|
+
"""
|
|
2372
|
+
return pulumi.get(self, "driver")
|
|
2373
|
+
|
|
2374
|
+
@_builtins.property
|
|
2375
|
+
@pulumi.getter
|
|
2376
|
+
def pool(self) -> Optional[_builtins.str]:
|
|
2377
|
+
"""
|
|
2378
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
2379
|
+
|
|
2380
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
2381
|
+
"""
|
|
2382
|
+
return pulumi.get(self, "pool")
|
|
2383
|
+
|
|
2384
|
+
@_builtins.property
|
|
2385
|
+
@pulumi.getter
|
|
2386
|
+
def request(self) -> Optional[_builtins.str]:
|
|
2387
|
+
"""
|
|
2388
|
+
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>.
|
|
2389
|
+
|
|
2390
|
+
Multiple devices may have been allocated per request.
|
|
2391
|
+
"""
|
|
2392
|
+
return pulumi.get(self, "request")
|
|
2393
|
+
|
|
2394
|
+
@_builtins.property
|
|
2395
|
+
@pulumi.getter
|
|
2396
|
+
def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
|
|
2397
|
+
"""
|
|
2398
|
+
A copy of all tolerations specified in the request at the time when the device got allocated.
|
|
2399
|
+
|
|
2400
|
+
The maximum number of tolerations is 16.
|
|
2401
|
+
|
|
2402
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2403
|
+
"""
|
|
2404
|
+
return pulumi.get(self, "tolerations")
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
@pulumi.output_type
|
|
2408
|
+
class DeviceRequestPatch(dict):
|
|
2409
|
+
"""
|
|
2410
|
+
DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
2411
|
+
"""
|
|
2412
|
+
@staticmethod
|
|
2413
|
+
def __key_warning(key: str):
|
|
2414
|
+
suggest = None
|
|
2415
|
+
if key == "adminAccess":
|
|
2416
|
+
suggest = "admin_access"
|
|
2417
|
+
elif key == "allocationMode":
|
|
2418
|
+
suggest = "allocation_mode"
|
|
2419
|
+
elif key == "deviceClassName":
|
|
2420
|
+
suggest = "device_class_name"
|
|
2421
|
+
elif key == "firstAvailable":
|
|
2422
|
+
suggest = "first_available"
|
|
2423
|
+
|
|
2424
|
+
if suggest:
|
|
2425
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceRequestPatch. Access the value via the '{suggest}' property getter instead.")
|
|
2426
|
+
|
|
2427
|
+
def __getitem__(self, key: str) -> Any:
|
|
2428
|
+
DeviceRequestPatch.__key_warning(key)
|
|
2429
|
+
return super().__getitem__(key)
|
|
2430
|
+
|
|
2431
|
+
def get(self, key: str, default = None) -> Any:
|
|
2432
|
+
DeviceRequestPatch.__key_warning(key)
|
|
2433
|
+
return super().get(key, default)
|
|
2434
|
+
|
|
2435
|
+
def __init__(__self__, *,
|
|
2436
|
+
admin_access: Optional[_builtins.bool] = None,
|
|
2437
|
+
allocation_mode: Optional[_builtins.str] = None,
|
|
2438
|
+
count: Optional[_builtins.int] = None,
|
|
2439
|
+
device_class_name: Optional[_builtins.str] = None,
|
|
2440
|
+
first_available: Optional[Sequence['outputs.DeviceSubRequestPatch']] = None,
|
|
2441
|
+
name: Optional[_builtins.str] = None,
|
|
2442
|
+
selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None,
|
|
2443
|
+
tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
|
|
2444
|
+
"""
|
|
2445
|
+
DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
2446
|
+
:param _builtins.bool admin_access: AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
|
|
2447
|
+
|
|
2448
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2449
|
+
|
|
2450
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2451
|
+
:param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
2452
|
+
|
|
2453
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2454
|
+
This is the default. The exact number is provided in the
|
|
2455
|
+
count field.
|
|
2456
|
+
|
|
2457
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2458
|
+
At least one device must exist on the node for the allocation to succeed.
|
|
2459
|
+
Allocation will fail if some devices are already allocated,
|
|
2460
|
+
unless adminAccess is requested.
|
|
2461
|
+
|
|
2462
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
|
|
2463
|
+
|
|
2464
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2465
|
+
|
|
2466
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2467
|
+
:param _builtins.int count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2468
|
+
|
|
2469
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2470
|
+
:param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2471
|
+
|
|
2472
|
+
A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.
|
|
2473
|
+
|
|
2474
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2475
|
+
:param Sequence['DeviceSubRequestPatchArgs'] first_available: FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used.
|
|
2476
|
+
|
|
2477
|
+
This field may only be set in the entries of DeviceClaim.Requests.
|
|
2478
|
+
|
|
2479
|
+
DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
|
|
2480
|
+
:param _builtins.str name: Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
2481
|
+
|
|
2482
|
+
Must be a DNS label and unique among all DeviceRequests in a ResourceClaim.
|
|
2483
|
+
:param Sequence['DeviceSelectorPatchArgs'] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
|
|
2484
|
+
|
|
2485
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2486
|
+
:param Sequence['DeviceTolerationPatchArgs'] tolerations: If specified, the request's tolerations.
|
|
2487
|
+
|
|
2488
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2489
|
+
|
|
2490
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2491
|
+
|
|
2492
|
+
The maximum number of tolerations is 16.
|
|
2493
|
+
|
|
2494
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2495
|
+
|
|
2496
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2497
|
+
"""
|
|
2498
|
+
if admin_access is not None:
|
|
2499
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
2500
|
+
if allocation_mode is not None:
|
|
2501
|
+
pulumi.set(__self__, "allocation_mode", allocation_mode)
|
|
2502
|
+
if count is not None:
|
|
2503
|
+
pulumi.set(__self__, "count", count)
|
|
2504
|
+
if device_class_name is not None:
|
|
2505
|
+
pulumi.set(__self__, "device_class_name", device_class_name)
|
|
2506
|
+
if first_available is not None:
|
|
2507
|
+
pulumi.set(__self__, "first_available", first_available)
|
|
2508
|
+
if name is not None:
|
|
2509
|
+
pulumi.set(__self__, "name", name)
|
|
2510
|
+
if selectors is not None:
|
|
2511
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
2512
|
+
if tolerations is not None:
|
|
2513
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
2514
|
+
|
|
2515
|
+
@_builtins.property
|
|
2516
|
+
@pulumi.getter(name="adminAccess")
|
|
2517
|
+
def admin_access(self) -> Optional[_builtins.bool]:
|
|
2518
|
+
"""
|
|
2519
|
+
AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.
|
|
2520
|
+
|
|
2521
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2522
|
+
|
|
2523
|
+
This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.
|
|
2524
|
+
"""
|
|
2525
|
+
return pulumi.get(self, "admin_access")
|
|
2526
|
+
|
|
2527
|
+
@_builtins.property
|
|
2528
|
+
@pulumi.getter(name="allocationMode")
|
|
2529
|
+
def allocation_mode(self) -> Optional[_builtins.str]:
|
|
2530
|
+
"""
|
|
2531
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
2532
|
+
|
|
2533
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2534
|
+
This is the default. The exact number is provided in the
|
|
2535
|
+
count field.
|
|
2536
|
+
|
|
2537
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2538
|
+
At least one device must exist on the node for the allocation to succeed.
|
|
2539
|
+
Allocation will fail if some devices are already allocated,
|
|
2540
|
+
unless adminAccess is requested.
|
|
2541
|
+
|
|
2542
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field.
|
|
2543
|
+
|
|
2544
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2545
|
+
|
|
2546
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2547
|
+
"""
|
|
2548
|
+
return pulumi.get(self, "allocation_mode")
|
|
2549
|
+
|
|
2550
|
+
@_builtins.property
|
|
2551
|
+
@pulumi.getter
|
|
2552
|
+
def count(self) -> Optional[_builtins.int]:
|
|
2553
|
+
"""
|
|
2554
|
+
Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2555
|
+
|
|
2556
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2557
|
+
"""
|
|
2558
|
+
return pulumi.get(self, "count")
|
|
2559
|
+
|
|
2560
|
+
@_builtins.property
|
|
2561
|
+
@pulumi.getter(name="deviceClassName")
|
|
2562
|
+
def device_class_name(self) -> Optional[_builtins.str]:
|
|
2563
|
+
"""
|
|
2564
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2565
|
+
|
|
2566
|
+
A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster.
|
|
2567
|
+
|
|
2568
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2569
|
+
"""
|
|
2570
|
+
return pulumi.get(self, "device_class_name")
|
|
2571
|
+
|
|
2572
|
+
@_builtins.property
|
|
2573
|
+
@pulumi.getter(name="firstAvailable")
|
|
2574
|
+
def first_available(self) -> Optional[Sequence['outputs.DeviceSubRequestPatch']]:
|
|
2575
|
+
"""
|
|
2576
|
+
FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used.
|
|
2577
|
+
|
|
2578
|
+
This field may only be set in the entries of DeviceClaim.Requests.
|
|
2579
|
+
|
|
2580
|
+
DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later.
|
|
2581
|
+
"""
|
|
2582
|
+
return pulumi.get(self, "first_available")
|
|
2583
|
+
|
|
2584
|
+
@_builtins.property
|
|
2585
|
+
@pulumi.getter
|
|
2586
|
+
def name(self) -> Optional[_builtins.str]:
|
|
2587
|
+
"""
|
|
2588
|
+
Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
2589
|
+
|
|
2590
|
+
Must be a DNS label and unique among all DeviceRequests in a ResourceClaim.
|
|
2591
|
+
"""
|
|
2592
|
+
return pulumi.get(self, "name")
|
|
2593
|
+
|
|
2594
|
+
@_builtins.property
|
|
2595
|
+
@pulumi.getter
|
|
2596
|
+
def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
|
|
2597
|
+
"""
|
|
2598
|
+
Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered.
|
|
2599
|
+
|
|
2600
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2601
|
+
"""
|
|
2602
|
+
return pulumi.get(self, "selectors")
|
|
2603
|
+
|
|
2604
|
+
@_builtins.property
|
|
2605
|
+
@pulumi.getter
|
|
2606
|
+
def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
|
|
2607
|
+
"""
|
|
2608
|
+
If specified, the request's tolerations.
|
|
2609
|
+
|
|
2610
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2611
|
+
|
|
2612
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2613
|
+
|
|
2614
|
+
The maximum number of tolerations is 16.
|
|
2615
|
+
|
|
2616
|
+
This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.
|
|
2617
|
+
|
|
2618
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2619
|
+
"""
|
|
2620
|
+
return pulumi.get(self, "tolerations")
|
|
2621
|
+
|
|
2622
|
+
|
|
2623
|
+
@pulumi.output_type
|
|
2624
|
+
class DeviceSelector(dict):
|
|
2625
|
+
"""
|
|
2626
|
+
DeviceSelector must have exactly one field set.
|
|
2627
|
+
"""
|
|
2628
|
+
def __init__(__self__, *,
|
|
2629
|
+
cel: Optional['outputs.CELDeviceSelector'] = None):
|
|
2630
|
+
"""
|
|
2631
|
+
DeviceSelector must have exactly one field set.
|
|
2632
|
+
:param 'CELDeviceSelectorArgs' cel: CEL contains a CEL expression for selecting a device.
|
|
2633
|
+
"""
|
|
2634
|
+
if cel is not None:
|
|
2635
|
+
pulumi.set(__self__, "cel", cel)
|
|
2636
|
+
|
|
2637
|
+
@_builtins.property
|
|
2638
|
+
@pulumi.getter
|
|
2639
|
+
def cel(self) -> Optional['outputs.CELDeviceSelector']:
|
|
2640
|
+
"""
|
|
2641
|
+
CEL contains a CEL expression for selecting a device.
|
|
2642
|
+
"""
|
|
2643
|
+
return pulumi.get(self, "cel")
|
|
2644
|
+
|
|
2645
|
+
|
|
2646
|
+
@pulumi.output_type
|
|
2647
|
+
class DeviceSelectorPatch(dict):
|
|
2648
|
+
"""
|
|
2649
|
+
DeviceSelector must have exactly one field set.
|
|
2650
|
+
"""
|
|
2651
|
+
def __init__(__self__, *,
|
|
2652
|
+
cel: Optional['outputs.CELDeviceSelectorPatch'] = None):
|
|
2653
|
+
"""
|
|
2654
|
+
DeviceSelector must have exactly one field set.
|
|
2655
|
+
:param 'CELDeviceSelectorPatchArgs' cel: CEL contains a CEL expression for selecting a device.
|
|
2656
|
+
"""
|
|
2657
|
+
if cel is not None:
|
|
2658
|
+
pulumi.set(__self__, "cel", cel)
|
|
2659
|
+
|
|
2660
|
+
@_builtins.property
|
|
2661
|
+
@pulumi.getter
|
|
2662
|
+
def cel(self) -> Optional['outputs.CELDeviceSelectorPatch']:
|
|
2663
|
+
"""
|
|
2664
|
+
CEL contains a CEL expression for selecting a device.
|
|
2665
|
+
"""
|
|
2666
|
+
return pulumi.get(self, "cel")
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
@pulumi.output_type
|
|
2670
|
+
class DeviceSubRequest(dict):
|
|
2671
|
+
"""
|
|
2672
|
+
DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
2673
|
+
|
|
2674
|
+
DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.
|
|
2675
|
+
"""
|
|
2676
|
+
@staticmethod
|
|
2677
|
+
def __key_warning(key: str):
|
|
2678
|
+
suggest = None
|
|
2679
|
+
if key == "deviceClassName":
|
|
2680
|
+
suggest = "device_class_name"
|
|
2681
|
+
elif key == "allocationMode":
|
|
2682
|
+
suggest = "allocation_mode"
|
|
2683
|
+
|
|
2684
|
+
if suggest:
|
|
2685
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceSubRequest. Access the value via the '{suggest}' property getter instead.")
|
|
2686
|
+
|
|
2687
|
+
def __getitem__(self, key: str) -> Any:
|
|
2688
|
+
DeviceSubRequest.__key_warning(key)
|
|
2689
|
+
return super().__getitem__(key)
|
|
2690
|
+
|
|
2691
|
+
def get(self, key: str, default = None) -> Any:
|
|
2692
|
+
DeviceSubRequest.__key_warning(key)
|
|
2693
|
+
return super().get(key, default)
|
|
2694
|
+
|
|
2695
|
+
def __init__(__self__, *,
|
|
2696
|
+
device_class_name: _builtins.str,
|
|
2697
|
+
name: _builtins.str,
|
|
2698
|
+
allocation_mode: Optional[_builtins.str] = None,
|
|
2699
|
+
count: Optional[_builtins.int] = None,
|
|
2700
|
+
selectors: Optional[Sequence['outputs.DeviceSelector']] = None,
|
|
2701
|
+
tolerations: Optional[Sequence['outputs.DeviceToleration']] = None):
|
|
2702
|
+
"""
|
|
2703
|
+
DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
2704
|
+
|
|
2705
|
+
DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.
|
|
2706
|
+
:param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
|
|
2707
|
+
|
|
2708
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2709
|
+
|
|
2710
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2711
|
+
:param _builtins.str name: Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
|
|
2712
|
+
|
|
2713
|
+
Must be a DNS label.
|
|
2714
|
+
:param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
|
|
2715
|
+
|
|
2716
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2717
|
+
This is the default. The exact number is provided in the
|
|
2718
|
+
count field.
|
|
2719
|
+
|
|
2720
|
+
- All: This subrequest is for all of the matching devices in a pool.
|
|
2721
|
+
Allocation will fail if some devices are already allocated,
|
|
2722
|
+
unless adminAccess is requested.
|
|
2723
|
+
|
|
2724
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field.
|
|
2725
|
+
|
|
2726
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2727
|
+
:param _builtins.int count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2728
|
+
:param Sequence['DeviceSelectorArgs'] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
|
|
2729
|
+
:param Sequence['DeviceTolerationArgs'] tolerations: If specified, the request's tolerations.
|
|
2730
|
+
|
|
2731
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2732
|
+
|
|
2733
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2734
|
+
|
|
2735
|
+
The maximum number of tolerations is 16.
|
|
2736
|
+
|
|
2737
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2738
|
+
"""
|
|
2739
|
+
pulumi.set(__self__, "device_class_name", device_class_name)
|
|
2740
|
+
pulumi.set(__self__, "name", name)
|
|
2741
|
+
if allocation_mode is not None:
|
|
2742
|
+
pulumi.set(__self__, "allocation_mode", allocation_mode)
|
|
2743
|
+
if count is not None:
|
|
2744
|
+
pulumi.set(__self__, "count", count)
|
|
2745
|
+
if selectors is not None:
|
|
2746
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
2747
|
+
if tolerations is not None:
|
|
2748
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
2749
|
+
|
|
2750
|
+
@_builtins.property
|
|
2751
|
+
@pulumi.getter(name="deviceClassName")
|
|
2752
|
+
def device_class_name(self) -> _builtins.str:
|
|
2753
|
+
"""
|
|
2754
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
|
|
2755
|
+
|
|
2756
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2757
|
+
|
|
2758
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2759
|
+
"""
|
|
2760
|
+
return pulumi.get(self, "device_class_name")
|
|
2761
|
+
|
|
2762
|
+
@_builtins.property
|
|
2763
|
+
@pulumi.getter
|
|
2764
|
+
def name(self) -> _builtins.str:
|
|
2765
|
+
"""
|
|
2766
|
+
Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
|
|
2767
|
+
|
|
2768
|
+
Must be a DNS label.
|
|
2769
|
+
"""
|
|
2770
|
+
return pulumi.get(self, "name")
|
|
2771
|
+
|
|
2772
|
+
@_builtins.property
|
|
2773
|
+
@pulumi.getter(name="allocationMode")
|
|
2774
|
+
def allocation_mode(self) -> Optional[_builtins.str]:
|
|
2775
|
+
"""
|
|
2776
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
|
|
2777
|
+
|
|
2778
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2779
|
+
This is the default. The exact number is provided in the
|
|
2780
|
+
count field.
|
|
2781
|
+
|
|
2782
|
+
- All: This subrequest is for all of the matching devices in a pool.
|
|
2783
|
+
Allocation will fail if some devices are already allocated,
|
|
2784
|
+
unless adminAccess is requested.
|
|
2785
|
+
|
|
2786
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field.
|
|
2787
|
+
|
|
2788
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2789
|
+
"""
|
|
2790
|
+
return pulumi.get(self, "allocation_mode")
|
|
2791
|
+
|
|
2792
|
+
@_builtins.property
|
|
2793
|
+
@pulumi.getter
|
|
2794
|
+
def count(self) -> Optional[_builtins.int]:
|
|
2795
|
+
"""
|
|
2796
|
+
Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2797
|
+
"""
|
|
2798
|
+
return pulumi.get(self, "count")
|
|
2799
|
+
|
|
2800
|
+
@_builtins.property
|
|
2801
|
+
@pulumi.getter
|
|
2802
|
+
def selectors(self) -> Optional[Sequence['outputs.DeviceSelector']]:
|
|
2803
|
+
"""
|
|
2804
|
+
Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
|
|
2805
|
+
"""
|
|
2806
|
+
return pulumi.get(self, "selectors")
|
|
2807
|
+
|
|
2808
|
+
@_builtins.property
|
|
2809
|
+
@pulumi.getter
|
|
2810
|
+
def tolerations(self) -> Optional[Sequence['outputs.DeviceToleration']]:
|
|
2811
|
+
"""
|
|
2812
|
+
If specified, the request's tolerations.
|
|
2813
|
+
|
|
2814
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2815
|
+
|
|
2816
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2817
|
+
|
|
2818
|
+
The maximum number of tolerations is 16.
|
|
2819
|
+
|
|
2820
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2821
|
+
"""
|
|
2822
|
+
return pulumi.get(self, "tolerations")
|
|
2823
|
+
|
|
2824
|
+
|
|
2825
|
+
@pulumi.output_type
|
|
2826
|
+
class DeviceSubRequestPatch(dict):
|
|
2827
|
+
"""
|
|
2828
|
+
DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
2829
|
+
|
|
2830
|
+
DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.
|
|
2831
|
+
"""
|
|
2832
|
+
@staticmethod
|
|
2833
|
+
def __key_warning(key: str):
|
|
2834
|
+
suggest = None
|
|
2835
|
+
if key == "allocationMode":
|
|
2836
|
+
suggest = "allocation_mode"
|
|
2837
|
+
elif key == "deviceClassName":
|
|
2838
|
+
suggest = "device_class_name"
|
|
2839
|
+
|
|
2840
|
+
if suggest:
|
|
2841
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceSubRequestPatch. Access the value via the '{suggest}' property getter instead.")
|
|
2842
|
+
|
|
2843
|
+
def __getitem__(self, key: str) -> Any:
|
|
2844
|
+
DeviceSubRequestPatch.__key_warning(key)
|
|
2845
|
+
return super().__getitem__(key)
|
|
2846
|
+
|
|
2847
|
+
def get(self, key: str, default = None) -> Any:
|
|
2848
|
+
DeviceSubRequestPatch.__key_warning(key)
|
|
2849
|
+
return super().get(key, default)
|
|
2850
|
+
|
|
2851
|
+
def __init__(__self__, *,
|
|
2852
|
+
allocation_mode: Optional[_builtins.str] = None,
|
|
2853
|
+
count: Optional[_builtins.int] = None,
|
|
2854
|
+
device_class_name: Optional[_builtins.str] = None,
|
|
2855
|
+
name: Optional[_builtins.str] = None,
|
|
2856
|
+
selectors: Optional[Sequence['outputs.DeviceSelectorPatch']] = None,
|
|
2857
|
+
tolerations: Optional[Sequence['outputs.DeviceTolerationPatch']] = None):
|
|
2858
|
+
"""
|
|
2859
|
+
DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices.
|
|
2860
|
+
|
|
2861
|
+
DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.
|
|
2862
|
+
:param _builtins.str allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
|
|
2863
|
+
|
|
2864
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2865
|
+
This is the default. The exact number is provided in the
|
|
2866
|
+
count field.
|
|
2867
|
+
|
|
2868
|
+
- All: This subrequest is for all of the matching devices in a pool.
|
|
2869
|
+
Allocation will fail if some devices are already allocated,
|
|
2870
|
+
unless adminAccess is requested.
|
|
2871
|
+
|
|
2872
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field.
|
|
2873
|
+
|
|
2874
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2875
|
+
:param _builtins.int count: Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2876
|
+
:param _builtins.str device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
|
|
2877
|
+
|
|
2878
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2879
|
+
|
|
2880
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2881
|
+
:param _builtins.str name: Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
|
|
2882
|
+
|
|
2883
|
+
Must be a DNS label.
|
|
2884
|
+
:param Sequence['DeviceSelectorPatchArgs'] selectors: Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
|
|
2885
|
+
:param Sequence['DeviceTolerationPatchArgs'] tolerations: If specified, the request's tolerations.
|
|
2886
|
+
|
|
2887
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2888
|
+
|
|
2889
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2890
|
+
|
|
2891
|
+
The maximum number of tolerations is 16.
|
|
2892
|
+
|
|
2893
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2894
|
+
"""
|
|
2895
|
+
if allocation_mode is not None:
|
|
2896
|
+
pulumi.set(__self__, "allocation_mode", allocation_mode)
|
|
2897
|
+
if count is not None:
|
|
2898
|
+
pulumi.set(__self__, "count", count)
|
|
2899
|
+
if device_class_name is not None:
|
|
2900
|
+
pulumi.set(__self__, "device_class_name", device_class_name)
|
|
2901
|
+
if name is not None:
|
|
2902
|
+
pulumi.set(__self__, "name", name)
|
|
2903
|
+
if selectors is not None:
|
|
2904
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
2905
|
+
if tolerations is not None:
|
|
2906
|
+
pulumi.set(__self__, "tolerations", tolerations)
|
|
2907
|
+
|
|
2908
|
+
@_builtins.property
|
|
2909
|
+
@pulumi.getter(name="allocationMode")
|
|
2910
|
+
def allocation_mode(self) -> Optional[_builtins.str]:
|
|
2911
|
+
"""
|
|
2912
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are:
|
|
2913
|
+
|
|
2914
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2915
|
+
This is the default. The exact number is provided in the
|
|
2916
|
+
count field.
|
|
2917
|
+
|
|
2918
|
+
- All: This subrequest is for all of the matching devices in a pool.
|
|
2919
|
+
Allocation will fail if some devices are already allocated,
|
|
2920
|
+
unless adminAccess is requested.
|
|
2921
|
+
|
|
2922
|
+
If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field.
|
|
2923
|
+
|
|
2924
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2925
|
+
"""
|
|
2926
|
+
return pulumi.get(self, "allocation_mode")
|
|
2927
|
+
|
|
2928
|
+
@_builtins.property
|
|
2929
|
+
@pulumi.getter
|
|
2930
|
+
def count(self) -> Optional[_builtins.int]:
|
|
2931
|
+
"""
|
|
2932
|
+
Count is used only when the count mode is "ExactCount". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one.
|
|
2933
|
+
"""
|
|
2934
|
+
return pulumi.get(self, "count")
|
|
2935
|
+
|
|
2936
|
+
@_builtins.property
|
|
2937
|
+
@pulumi.getter(name="deviceClassName")
|
|
2938
|
+
def device_class_name(self) -> Optional[_builtins.str]:
|
|
2939
|
+
"""
|
|
2940
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest.
|
|
2941
|
+
|
|
2942
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2943
|
+
|
|
2944
|
+
Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference.
|
|
2945
|
+
"""
|
|
2946
|
+
return pulumi.get(self, "device_class_name")
|
|
2947
|
+
|
|
2948
|
+
@_builtins.property
|
|
2949
|
+
@pulumi.getter
|
|
2950
|
+
def name(self) -> Optional[_builtins.str]:
|
|
2951
|
+
"""
|
|
2952
|
+
Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>.
|
|
2953
|
+
|
|
2954
|
+
Must be a DNS label.
|
|
2955
|
+
"""
|
|
2956
|
+
return pulumi.get(self, "name")
|
|
2957
|
+
|
|
2958
|
+
@_builtins.property
|
|
2959
|
+
@pulumi.getter
|
|
2960
|
+
def selectors(self) -> Optional[Sequence['outputs.DeviceSelectorPatch']]:
|
|
2961
|
+
"""
|
|
2962
|
+
Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered.
|
|
2963
|
+
"""
|
|
2964
|
+
return pulumi.get(self, "selectors")
|
|
2965
|
+
|
|
2966
|
+
@_builtins.property
|
|
2967
|
+
@pulumi.getter
|
|
2968
|
+
def tolerations(self) -> Optional[Sequence['outputs.DeviceTolerationPatch']]:
|
|
2969
|
+
"""
|
|
2970
|
+
If specified, the request's tolerations.
|
|
2971
|
+
|
|
2972
|
+
Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.
|
|
2973
|
+
|
|
2974
|
+
In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.
|
|
2975
|
+
|
|
2976
|
+
The maximum number of tolerations is 16.
|
|
2977
|
+
|
|
2978
|
+
This is an alpha field and requires enabling the DRADeviceTaints feature gate.
|
|
2979
|
+
"""
|
|
2980
|
+
return pulumi.get(self, "tolerations")
|
|
2981
|
+
|
|
2982
|
+
|
|
2983
|
+
@pulumi.output_type
|
|
2984
|
+
class DeviceTaint(dict):
|
|
2985
|
+
"""
|
|
2986
|
+
The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
|
|
2987
|
+
"""
|
|
2988
|
+
@staticmethod
|
|
2989
|
+
def __key_warning(key: str):
|
|
2990
|
+
suggest = None
|
|
2991
|
+
if key == "timeAdded":
|
|
2992
|
+
suggest = "time_added"
|
|
2993
|
+
|
|
2994
|
+
if suggest:
|
|
2995
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceTaint. Access the value via the '{suggest}' property getter instead.")
|
|
2996
|
+
|
|
2997
|
+
def __getitem__(self, key: str) -> Any:
|
|
2998
|
+
DeviceTaint.__key_warning(key)
|
|
2999
|
+
return super().__getitem__(key)
|
|
3000
|
+
|
|
3001
|
+
def get(self, key: str, default = None) -> Any:
|
|
3002
|
+
DeviceTaint.__key_warning(key)
|
|
3003
|
+
return super().get(key, default)
|
|
3004
|
+
|
|
3005
|
+
def __init__(__self__, *,
|
|
3006
|
+
effect: _builtins.str,
|
|
3007
|
+
key: _builtins.str,
|
|
3008
|
+
time_added: Optional[_builtins.str] = None,
|
|
3009
|
+
value: Optional[_builtins.str] = None):
|
|
3010
|
+
"""
|
|
3011
|
+
The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
|
|
3012
|
+
:param _builtins.str effect: The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
|
|
3013
|
+
:param _builtins.str key: The taint key to be applied to a device. Must be a label name.
|
|
3014
|
+
:param _builtins.str time_added: TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
|
|
3015
|
+
:param _builtins.str value: The taint value corresponding to the taint key. Must be a label value.
|
|
3016
|
+
"""
|
|
3017
|
+
pulumi.set(__self__, "effect", effect)
|
|
3018
|
+
pulumi.set(__self__, "key", key)
|
|
3019
|
+
if time_added is not None:
|
|
3020
|
+
pulumi.set(__self__, "time_added", time_added)
|
|
3021
|
+
if value is not None:
|
|
3022
|
+
pulumi.set(__self__, "value", value)
|
|
3023
|
+
|
|
3024
|
+
@_builtins.property
|
|
3025
|
+
@pulumi.getter
|
|
3026
|
+
def effect(self) -> _builtins.str:
|
|
3027
|
+
"""
|
|
3028
|
+
The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
|
|
3029
|
+
"""
|
|
3030
|
+
return pulumi.get(self, "effect")
|
|
3031
|
+
|
|
3032
|
+
@_builtins.property
|
|
3033
|
+
@pulumi.getter
|
|
3034
|
+
def key(self) -> _builtins.str:
|
|
3035
|
+
"""
|
|
3036
|
+
The taint key to be applied to a device. Must be a label name.
|
|
3037
|
+
"""
|
|
3038
|
+
return pulumi.get(self, "key")
|
|
3039
|
+
|
|
3040
|
+
@_builtins.property
|
|
3041
|
+
@pulumi.getter(name="timeAdded")
|
|
3042
|
+
def time_added(self) -> Optional[_builtins.str]:
|
|
3043
|
+
"""
|
|
3044
|
+
TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
|
|
3045
|
+
"""
|
|
3046
|
+
return pulumi.get(self, "time_added")
|
|
3047
|
+
|
|
3048
|
+
@_builtins.property
|
|
3049
|
+
@pulumi.getter
|
|
3050
|
+
def value(self) -> Optional[_builtins.str]:
|
|
3051
|
+
"""
|
|
3052
|
+
The taint value corresponding to the taint key. Must be a label value.
|
|
3053
|
+
"""
|
|
3054
|
+
return pulumi.get(self, "value")
|
|
3055
|
+
|
|
3056
|
+
|
|
3057
|
+
@pulumi.output_type
|
|
3058
|
+
class DeviceTaintPatch(dict):
|
|
3059
|
+
"""
|
|
3060
|
+
The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
|
|
3061
|
+
"""
|
|
3062
|
+
@staticmethod
|
|
3063
|
+
def __key_warning(key: str):
|
|
3064
|
+
suggest = None
|
|
3065
|
+
if key == "timeAdded":
|
|
3066
|
+
suggest = "time_added"
|
|
3067
|
+
|
|
3068
|
+
if suggest:
|
|
3069
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceTaintPatch. Access the value via the '{suggest}' property getter instead.")
|
|
3070
|
+
|
|
3071
|
+
def __getitem__(self, key: str) -> Any:
|
|
3072
|
+
DeviceTaintPatch.__key_warning(key)
|
|
3073
|
+
return super().__getitem__(key)
|
|
3074
|
+
|
|
3075
|
+
def get(self, key: str, default = None) -> Any:
|
|
3076
|
+
DeviceTaintPatch.__key_warning(key)
|
|
3077
|
+
return super().get(key, default)
|
|
3078
|
+
|
|
3079
|
+
def __init__(__self__, *,
|
|
3080
|
+
effect: Optional[_builtins.str] = None,
|
|
3081
|
+
key: Optional[_builtins.str] = None,
|
|
3082
|
+
time_added: Optional[_builtins.str] = None,
|
|
3083
|
+
value: Optional[_builtins.str] = None):
|
|
3084
|
+
"""
|
|
3085
|
+
The device this taint is attached to has the "effect" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.
|
|
3086
|
+
:param _builtins.str effect: The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
|
|
3087
|
+
:param _builtins.str key: The taint key to be applied to a device. Must be a label name.
|
|
3088
|
+
:param _builtins.str time_added: TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
|
|
3089
|
+
:param _builtins.str value: The taint value corresponding to the taint key. Must be a label value.
|
|
3090
|
+
"""
|
|
3091
|
+
if effect is not None:
|
|
3092
|
+
pulumi.set(__self__, "effect", effect)
|
|
3093
|
+
if key is not None:
|
|
3094
|
+
pulumi.set(__self__, "key", key)
|
|
3095
|
+
if time_added is not None:
|
|
3096
|
+
pulumi.set(__self__, "time_added", time_added)
|
|
3097
|
+
if value is not None:
|
|
3098
|
+
pulumi.set(__self__, "value", value)
|
|
3099
|
+
|
|
3100
|
+
@_builtins.property
|
|
3101
|
+
@pulumi.getter
|
|
3102
|
+
def effect(self) -> Optional[_builtins.str]:
|
|
3103
|
+
"""
|
|
3104
|
+
The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here.
|
|
3105
|
+
"""
|
|
3106
|
+
return pulumi.get(self, "effect")
|
|
3107
|
+
|
|
3108
|
+
@_builtins.property
|
|
3109
|
+
@pulumi.getter
|
|
3110
|
+
def key(self) -> Optional[_builtins.str]:
|
|
3111
|
+
"""
|
|
3112
|
+
The taint key to be applied to a device. Must be a label name.
|
|
3113
|
+
"""
|
|
3114
|
+
return pulumi.get(self, "key")
|
|
3115
|
+
|
|
3116
|
+
@_builtins.property
|
|
3117
|
+
@pulumi.getter(name="timeAdded")
|
|
3118
|
+
def time_added(self) -> Optional[_builtins.str]:
|
|
3119
|
+
"""
|
|
3120
|
+
TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.
|
|
3121
|
+
"""
|
|
3122
|
+
return pulumi.get(self, "time_added")
|
|
3123
|
+
|
|
3124
|
+
@_builtins.property
|
|
3125
|
+
@pulumi.getter
|
|
3126
|
+
def value(self) -> Optional[_builtins.str]:
|
|
3127
|
+
"""
|
|
3128
|
+
The taint value corresponding to the taint key. Must be a label value.
|
|
3129
|
+
"""
|
|
3130
|
+
return pulumi.get(self, "value")
|
|
3131
|
+
|
|
3132
|
+
|
|
3133
|
+
@pulumi.output_type
|
|
3134
|
+
class DeviceToleration(dict):
|
|
3135
|
+
"""
|
|
3136
|
+
The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
|
|
3137
|
+
"""
|
|
3138
|
+
@staticmethod
|
|
3139
|
+
def __key_warning(key: str):
|
|
3140
|
+
suggest = None
|
|
3141
|
+
if key == "tolerationSeconds":
|
|
3142
|
+
suggest = "toleration_seconds"
|
|
3143
|
+
|
|
3144
|
+
if suggest:
|
|
3145
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceToleration. Access the value via the '{suggest}' property getter instead.")
|
|
3146
|
+
|
|
3147
|
+
def __getitem__(self, key: str) -> Any:
|
|
3148
|
+
DeviceToleration.__key_warning(key)
|
|
3149
|
+
return super().__getitem__(key)
|
|
3150
|
+
|
|
3151
|
+
def get(self, key: str, default = None) -> Any:
|
|
3152
|
+
DeviceToleration.__key_warning(key)
|
|
3153
|
+
return super().get(key, default)
|
|
3154
|
+
|
|
3155
|
+
def __init__(__self__, *,
|
|
3156
|
+
effect: Optional[_builtins.str] = None,
|
|
3157
|
+
key: Optional[_builtins.str] = None,
|
|
3158
|
+
operator: Optional[_builtins.str] = None,
|
|
3159
|
+
toleration_seconds: Optional[_builtins.int] = None,
|
|
3160
|
+
value: Optional[_builtins.str] = None):
|
|
3161
|
+
"""
|
|
3162
|
+
The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
|
|
3163
|
+
:param _builtins.str effect: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
|
|
3164
|
+
:param _builtins.str key: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
|
|
3165
|
+
:param _builtins.str operator: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
|
|
3166
|
+
:param _builtins.int toleration_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
|
|
3167
|
+
:param _builtins.str value: Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
|
|
3168
|
+
"""
|
|
3169
|
+
if effect is not None:
|
|
3170
|
+
pulumi.set(__self__, "effect", effect)
|
|
3171
|
+
if key is not None:
|
|
3172
|
+
pulumi.set(__self__, "key", key)
|
|
3173
|
+
if operator is not None:
|
|
3174
|
+
pulumi.set(__self__, "operator", operator)
|
|
3175
|
+
if toleration_seconds is not None:
|
|
3176
|
+
pulumi.set(__self__, "toleration_seconds", toleration_seconds)
|
|
3177
|
+
if value is not None:
|
|
3178
|
+
pulumi.set(__self__, "value", value)
|
|
3179
|
+
|
|
3180
|
+
@_builtins.property
|
|
3181
|
+
@pulumi.getter
|
|
3182
|
+
def effect(self) -> Optional[_builtins.str]:
|
|
3183
|
+
"""
|
|
3184
|
+
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
|
|
3185
|
+
"""
|
|
3186
|
+
return pulumi.get(self, "effect")
|
|
3187
|
+
|
|
3188
|
+
@_builtins.property
|
|
3189
|
+
@pulumi.getter
|
|
3190
|
+
def key(self) -> Optional[_builtins.str]:
|
|
3191
|
+
"""
|
|
3192
|
+
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
|
|
3193
|
+
"""
|
|
3194
|
+
return pulumi.get(self, "key")
|
|
3195
|
+
|
|
3196
|
+
@_builtins.property
|
|
3197
|
+
@pulumi.getter
|
|
3198
|
+
def operator(self) -> Optional[_builtins.str]:
|
|
3199
|
+
"""
|
|
3200
|
+
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
|
|
3201
|
+
"""
|
|
3202
|
+
return pulumi.get(self, "operator")
|
|
3203
|
+
|
|
3204
|
+
@_builtins.property
|
|
3205
|
+
@pulumi.getter(name="tolerationSeconds")
|
|
3206
|
+
def toleration_seconds(self) -> Optional[_builtins.int]:
|
|
3207
|
+
"""
|
|
3208
|
+
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
|
|
3209
|
+
"""
|
|
3210
|
+
return pulumi.get(self, "toleration_seconds")
|
|
3211
|
+
|
|
3212
|
+
@_builtins.property
|
|
3213
|
+
@pulumi.getter
|
|
3214
|
+
def value(self) -> Optional[_builtins.str]:
|
|
3215
|
+
"""
|
|
3216
|
+
Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
|
|
3217
|
+
"""
|
|
3218
|
+
return pulumi.get(self, "value")
|
|
3219
|
+
|
|
3220
|
+
|
|
3221
|
+
@pulumi.output_type
|
|
3222
|
+
class DeviceTolerationPatch(dict):
|
|
3223
|
+
"""
|
|
3224
|
+
The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
|
|
3225
|
+
"""
|
|
3226
|
+
@staticmethod
|
|
3227
|
+
def __key_warning(key: str):
|
|
3228
|
+
suggest = None
|
|
3229
|
+
if key == "tolerationSeconds":
|
|
3230
|
+
suggest = "toleration_seconds"
|
|
3231
|
+
|
|
3232
|
+
if suggest:
|
|
3233
|
+
pulumi.log.warn(f"Key '{key}' not found in DeviceTolerationPatch. Access the value via the '{suggest}' property getter instead.")
|
|
3234
|
+
|
|
3235
|
+
def __getitem__(self, key: str) -> Any:
|
|
3236
|
+
DeviceTolerationPatch.__key_warning(key)
|
|
3237
|
+
return super().__getitem__(key)
|
|
3238
|
+
|
|
3239
|
+
def get(self, key: str, default = None) -> Any:
|
|
3240
|
+
DeviceTolerationPatch.__key_warning(key)
|
|
3241
|
+
return super().get(key, default)
|
|
3242
|
+
|
|
3243
|
+
def __init__(__self__, *,
|
|
3244
|
+
effect: Optional[_builtins.str] = None,
|
|
3245
|
+
key: Optional[_builtins.str] = None,
|
|
3246
|
+
operator: Optional[_builtins.str] = None,
|
|
3247
|
+
toleration_seconds: Optional[_builtins.int] = None,
|
|
3248
|
+
value: Optional[_builtins.str] = None):
|
|
3249
|
+
"""
|
|
3250
|
+
The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
|
|
3251
|
+
:param _builtins.str effect: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
|
|
3252
|
+
:param _builtins.str key: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
|
|
3253
|
+
:param _builtins.str operator: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
|
|
3254
|
+
:param _builtins.int toleration_seconds: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
|
|
3255
|
+
:param _builtins.str value: Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
|
|
3256
|
+
"""
|
|
3257
|
+
if effect is not None:
|
|
3258
|
+
pulumi.set(__self__, "effect", effect)
|
|
3259
|
+
if key is not None:
|
|
3260
|
+
pulumi.set(__self__, "key", key)
|
|
3261
|
+
if operator is not None:
|
|
3262
|
+
pulumi.set(__self__, "operator", operator)
|
|
3263
|
+
if toleration_seconds is not None:
|
|
3264
|
+
pulumi.set(__self__, "toleration_seconds", toleration_seconds)
|
|
3265
|
+
if value is not None:
|
|
3266
|
+
pulumi.set(__self__, "value", value)
|
|
3267
|
+
|
|
3268
|
+
@_builtins.property
|
|
3269
|
+
@pulumi.getter
|
|
3270
|
+
def effect(self) -> Optional[_builtins.str]:
|
|
3271
|
+
"""
|
|
3272
|
+
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute.
|
|
3273
|
+
"""
|
|
3274
|
+
return pulumi.get(self, "effect")
|
|
3275
|
+
|
|
3276
|
+
@_builtins.property
|
|
3277
|
+
@pulumi.getter
|
|
3278
|
+
def key(self) -> Optional[_builtins.str]:
|
|
3279
|
+
"""
|
|
3280
|
+
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name.
|
|
3281
|
+
"""
|
|
3282
|
+
return pulumi.get(self, "key")
|
|
3283
|
+
|
|
3284
|
+
@_builtins.property
|
|
3285
|
+
@pulumi.getter
|
|
3286
|
+
def operator(self) -> Optional[_builtins.str]:
|
|
3287
|
+
"""
|
|
3288
|
+
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category.
|
|
3289
|
+
"""
|
|
3290
|
+
return pulumi.get(self, "operator")
|
|
3291
|
+
|
|
3292
|
+
@_builtins.property
|
|
3293
|
+
@pulumi.getter(name="tolerationSeconds")
|
|
3294
|
+
def toleration_seconds(self) -> Optional[_builtins.int]:
|
|
3295
|
+
"""
|
|
3296
|
+
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>.
|
|
3297
|
+
"""
|
|
3298
|
+
return pulumi.get(self, "toleration_seconds")
|
|
3299
|
+
|
|
3300
|
+
@_builtins.property
|
|
3301
|
+
@pulumi.getter
|
|
3302
|
+
def value(self) -> Optional[_builtins.str]:
|
|
3303
|
+
"""
|
|
3304
|
+
Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value.
|
|
3305
|
+
"""
|
|
3306
|
+
return pulumi.get(self, "value")
|
|
3307
|
+
|
|
3308
|
+
|
|
3309
|
+
@pulumi.output_type
|
|
3310
|
+
class NetworkDeviceData(dict):
|
|
3311
|
+
"""
|
|
3312
|
+
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
3313
|
+
"""
|
|
3314
|
+
@staticmethod
|
|
3315
|
+
def __key_warning(key: str):
|
|
3316
|
+
suggest = None
|
|
3317
|
+
if key == "hardwareAddress":
|
|
3318
|
+
suggest = "hardware_address"
|
|
3319
|
+
elif key == "interfaceName":
|
|
3320
|
+
suggest = "interface_name"
|
|
3321
|
+
|
|
3322
|
+
if suggest:
|
|
3323
|
+
pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceData. Access the value via the '{suggest}' property getter instead.")
|
|
3324
|
+
|
|
3325
|
+
def __getitem__(self, key: str) -> Any:
|
|
3326
|
+
NetworkDeviceData.__key_warning(key)
|
|
3327
|
+
return super().__getitem__(key)
|
|
3328
|
+
|
|
3329
|
+
def get(self, key: str, default = None) -> Any:
|
|
3330
|
+
NetworkDeviceData.__key_warning(key)
|
|
3331
|
+
return super().get(key, default)
|
|
3332
|
+
|
|
3333
|
+
def __init__(__self__, *,
|
|
3334
|
+
hardware_address: Optional[_builtins.str] = None,
|
|
3335
|
+
interface_name: Optional[_builtins.str] = None,
|
|
3336
|
+
ips: Optional[Sequence[_builtins.str]] = None):
|
|
3337
|
+
"""
|
|
3338
|
+
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
3339
|
+
:param _builtins.str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
3340
|
+
|
|
3341
|
+
Must not be longer than 128 characters.
|
|
3342
|
+
:param _builtins.str interface_name: InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
3343
|
+
|
|
3344
|
+
Must not be longer than 256 characters.
|
|
3345
|
+
:param Sequence[_builtins.str] ips: IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
3346
|
+
|
|
3347
|
+
Must not contain more than 16 entries.
|
|
3348
|
+
"""
|
|
3349
|
+
if hardware_address is not None:
|
|
3350
|
+
pulumi.set(__self__, "hardware_address", hardware_address)
|
|
3351
|
+
if interface_name is not None:
|
|
3352
|
+
pulumi.set(__self__, "interface_name", interface_name)
|
|
3353
|
+
if ips is not None:
|
|
3354
|
+
pulumi.set(__self__, "ips", ips)
|
|
3355
|
+
|
|
3356
|
+
@_builtins.property
|
|
3357
|
+
@pulumi.getter(name="hardwareAddress")
|
|
3358
|
+
def hardware_address(self) -> Optional[_builtins.str]:
|
|
3359
|
+
"""
|
|
3360
|
+
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
3361
|
+
|
|
3362
|
+
Must not be longer than 128 characters.
|
|
3363
|
+
"""
|
|
3364
|
+
return pulumi.get(self, "hardware_address")
|
|
3365
|
+
|
|
3366
|
+
@_builtins.property
|
|
3367
|
+
@pulumi.getter(name="interfaceName")
|
|
3368
|
+
def interface_name(self) -> Optional[_builtins.str]:
|
|
3369
|
+
"""
|
|
3370
|
+
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
3371
|
+
|
|
3372
|
+
Must not be longer than 256 characters.
|
|
3373
|
+
"""
|
|
3374
|
+
return pulumi.get(self, "interface_name")
|
|
3375
|
+
|
|
3376
|
+
@_builtins.property
|
|
3377
|
+
@pulumi.getter
|
|
3378
|
+
def ips(self) -> Optional[Sequence[_builtins.str]]:
|
|
3379
|
+
"""
|
|
3380
|
+
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
3381
|
+
|
|
3382
|
+
Must not contain more than 16 entries.
|
|
3383
|
+
"""
|
|
3384
|
+
return pulumi.get(self, "ips")
|
|
3385
|
+
|
|
3386
|
+
|
|
3387
|
+
@pulumi.output_type
|
|
3388
|
+
class NetworkDeviceDataPatch(dict):
|
|
3389
|
+
"""
|
|
3390
|
+
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
3391
|
+
"""
|
|
3392
|
+
@staticmethod
|
|
3393
|
+
def __key_warning(key: str):
|
|
3394
|
+
suggest = None
|
|
3395
|
+
if key == "hardwareAddress":
|
|
3396
|
+
suggest = "hardware_address"
|
|
3397
|
+
elif key == "interfaceName":
|
|
3398
|
+
suggest = "interface_name"
|
|
3399
|
+
|
|
3400
|
+
if suggest:
|
|
3401
|
+
pulumi.log.warn(f"Key '{key}' not found in NetworkDeviceDataPatch. Access the value via the '{suggest}' property getter instead.")
|
|
3402
|
+
|
|
3403
|
+
def __getitem__(self, key: str) -> Any:
|
|
3404
|
+
NetworkDeviceDataPatch.__key_warning(key)
|
|
3405
|
+
return super().__getitem__(key)
|
|
3406
|
+
|
|
3407
|
+
def get(self, key: str, default = None) -> Any:
|
|
3408
|
+
NetworkDeviceDataPatch.__key_warning(key)
|
|
3409
|
+
return super().get(key, default)
|
|
3410
|
+
|
|
3411
|
+
def __init__(__self__, *,
|
|
3412
|
+
hardware_address: Optional[_builtins.str] = None,
|
|
3413
|
+
interface_name: Optional[_builtins.str] = None,
|
|
3414
|
+
ips: Optional[Sequence[_builtins.str]] = None):
|
|
3415
|
+
"""
|
|
3416
|
+
NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.
|
|
3417
|
+
:param _builtins.str hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
3418
|
+
|
|
3419
|
+
Must not be longer than 128 characters.
|
|
3420
|
+
:param _builtins.str interface_name: InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
3421
|
+
|
|
3422
|
+
Must not be longer than 256 characters.
|
|
3423
|
+
:param Sequence[_builtins.str] ips: IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
3424
|
+
|
|
3425
|
+
Must not contain more than 16 entries.
|
|
3426
|
+
"""
|
|
3427
|
+
if hardware_address is not None:
|
|
3428
|
+
pulumi.set(__self__, "hardware_address", hardware_address)
|
|
3429
|
+
if interface_name is not None:
|
|
3430
|
+
pulumi.set(__self__, "interface_name", interface_name)
|
|
3431
|
+
if ips is not None:
|
|
3432
|
+
pulumi.set(__self__, "ips", ips)
|
|
3433
|
+
|
|
3434
|
+
@_builtins.property
|
|
3435
|
+
@pulumi.getter(name="hardwareAddress")
|
|
3436
|
+
def hardware_address(self) -> Optional[_builtins.str]:
|
|
3437
|
+
"""
|
|
3438
|
+
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
3439
|
+
|
|
3440
|
+
Must not be longer than 128 characters.
|
|
3441
|
+
"""
|
|
3442
|
+
return pulumi.get(self, "hardware_address")
|
|
3443
|
+
|
|
3444
|
+
@_builtins.property
|
|
3445
|
+
@pulumi.getter(name="interfaceName")
|
|
3446
|
+
def interface_name(self) -> Optional[_builtins.str]:
|
|
3447
|
+
"""
|
|
3448
|
+
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.
|
|
3449
|
+
|
|
3450
|
+
Must not be longer than 256 characters.
|
|
3451
|
+
"""
|
|
3452
|
+
return pulumi.get(self, "interface_name")
|
|
3453
|
+
|
|
3454
|
+
@_builtins.property
|
|
3455
|
+
@pulumi.getter
|
|
3456
|
+
def ips(self) -> Optional[Sequence[_builtins.str]]:
|
|
3457
|
+
"""
|
|
3458
|
+
IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
|
|
3459
|
+
|
|
3460
|
+
Must not contain more than 16 entries.
|
|
3461
|
+
"""
|
|
3462
|
+
return pulumi.get(self, "ips")
|
|
3463
|
+
|
|
3464
|
+
|
|
3465
|
+
@pulumi.output_type
|
|
3466
|
+
class OpaqueDeviceConfiguration(dict):
|
|
3467
|
+
"""
|
|
3468
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
3469
|
+
"""
|
|
3470
|
+
def __init__(__self__, *,
|
|
3471
|
+
driver: _builtins.str,
|
|
3472
|
+
parameters: Any):
|
|
3473
|
+
"""
|
|
3474
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
3475
|
+
:param _builtins.str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
3476
|
+
|
|
3477
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
3478
|
+
|
|
3479
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
3480
|
+
:param Any parameters: Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
|
|
3481
|
+
|
|
3482
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
3483
|
+
"""
|
|
3484
|
+
pulumi.set(__self__, "driver", driver)
|
|
3485
|
+
pulumi.set(__self__, "parameters", parameters)
|
|
3486
|
+
|
|
3487
|
+
@_builtins.property
|
|
3488
|
+
@pulumi.getter
|
|
3489
|
+
def driver(self) -> _builtins.str:
|
|
3490
|
+
"""
|
|
3491
|
+
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
3492
|
+
|
|
3493
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
3494
|
+
|
|
3495
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
3496
|
+
"""
|
|
3497
|
+
return pulumi.get(self, "driver")
|
|
3498
|
+
|
|
3499
|
+
@_builtins.property
|
|
3500
|
+
@pulumi.getter
|
|
3501
|
+
def parameters(self) -> Any:
|
|
3502
|
+
"""
|
|
3503
|
+
Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
|
|
3504
|
+
|
|
3505
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
3506
|
+
"""
|
|
3507
|
+
return pulumi.get(self, "parameters")
|
|
3508
|
+
|
|
3509
|
+
|
|
3510
|
+
@pulumi.output_type
|
|
3511
|
+
class OpaqueDeviceConfigurationPatch(dict):
|
|
3512
|
+
"""
|
|
3513
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
3514
|
+
"""
|
|
3515
|
+
def __init__(__self__, *,
|
|
3516
|
+
driver: Optional[_builtins.str] = None,
|
|
3517
|
+
parameters: Optional[Any] = None):
|
|
3518
|
+
"""
|
|
3519
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
3520
|
+
:param _builtins.str driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
3521
|
+
|
|
3522
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
3523
|
+
|
|
3524
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
3525
|
+
:param Any parameters: Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
|
|
3526
|
+
|
|
3527
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
3528
|
+
"""
|
|
3529
|
+
if driver is not None:
|
|
3530
|
+
pulumi.set(__self__, "driver", driver)
|
|
3531
|
+
if parameters is not None:
|
|
3532
|
+
pulumi.set(__self__, "parameters", parameters)
|
|
3533
|
+
|
|
3534
|
+
@_builtins.property
|
|
3535
|
+
@pulumi.getter
|
|
3536
|
+
def driver(self) -> Optional[_builtins.str]:
|
|
3537
|
+
"""
|
|
3538
|
+
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
3539
|
+
|
|
3540
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
3541
|
+
|
|
3542
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
3543
|
+
"""
|
|
3544
|
+
return pulumi.get(self, "driver")
|
|
3545
|
+
|
|
3546
|
+
@_builtins.property
|
|
3547
|
+
@pulumi.getter
|
|
3548
|
+
def parameters(self) -> Optional[Any]:
|
|
3549
|
+
"""
|
|
3550
|
+
Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version ("kind" + "apiVersion" for Kubernetes types), with conversion between different versions.
|
|
3551
|
+
|
|
3552
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
3553
|
+
"""
|
|
3554
|
+
return pulumi.get(self, "parameters")
|
|
3555
|
+
|
|
3556
|
+
|
|
3557
|
+
@pulumi.output_type
|
|
3558
|
+
class ResourceClaim(dict):
|
|
3559
|
+
"""
|
|
3560
|
+
ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
|
|
3561
|
+
|
|
3562
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3563
|
+
"""
|
|
3564
|
+
@staticmethod
|
|
3565
|
+
def __key_warning(key: str):
|
|
3566
|
+
suggest = None
|
|
3567
|
+
if key == "apiVersion":
|
|
3568
|
+
suggest = "api_version"
|
|
3569
|
+
|
|
3570
|
+
if suggest:
|
|
3571
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceClaim. Access the value via the '{suggest}' property getter instead.")
|
|
3572
|
+
|
|
3573
|
+
def __getitem__(self, key: str) -> Any:
|
|
3574
|
+
ResourceClaim.__key_warning(key)
|
|
3575
|
+
return super().__getitem__(key)
|
|
3576
|
+
|
|
3577
|
+
def get(self, key: str, default = None) -> Any:
|
|
3578
|
+
ResourceClaim.__key_warning(key)
|
|
3579
|
+
return super().get(key, default)
|
|
3580
|
+
|
|
3581
|
+
def __init__(__self__, *,
|
|
3582
|
+
spec: 'outputs.ResourceClaimSpec',
|
|
3583
|
+
api_version: Optional[_builtins.str] = None,
|
|
3584
|
+
kind: Optional[_builtins.str] = None,
|
|
3585
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None,
|
|
3586
|
+
status: Optional['outputs.ResourceClaimStatus'] = None):
|
|
3587
|
+
"""
|
|
3588
|
+
ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
|
|
3589
|
+
|
|
3590
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3591
|
+
:param 'ResourceClaimSpecArgs' spec: Spec describes what is being requested and how to configure it. The spec is immutable.
|
|
3592
|
+
: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
|
|
3593
|
+
: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
|
|
3594
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
|
|
3595
|
+
:param 'ResourceClaimStatusArgs' status: Status describes whether the claim is ready to use and what has been allocated.
|
|
3596
|
+
"""
|
|
3597
|
+
pulumi.set(__self__, "spec", spec)
|
|
3598
|
+
if api_version is not None:
|
|
3599
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
3600
|
+
if kind is not None:
|
|
3601
|
+
pulumi.set(__self__, "kind", 'ResourceClaim')
|
|
3602
|
+
if metadata is not None:
|
|
3603
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
3604
|
+
if status is not None:
|
|
3605
|
+
pulumi.set(__self__, "status", status)
|
|
3606
|
+
|
|
3607
|
+
@_builtins.property
|
|
3608
|
+
@pulumi.getter
|
|
3609
|
+
def spec(self) -> 'outputs.ResourceClaimSpec':
|
|
3610
|
+
"""
|
|
3611
|
+
Spec describes what is being requested and how to configure it. The spec is immutable.
|
|
3612
|
+
"""
|
|
3613
|
+
return pulumi.get(self, "spec")
|
|
3614
|
+
|
|
3615
|
+
@_builtins.property
|
|
3616
|
+
@pulumi.getter(name="apiVersion")
|
|
3617
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
3618
|
+
"""
|
|
3619
|
+
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
|
|
3620
|
+
"""
|
|
3621
|
+
return pulumi.get(self, "api_version")
|
|
3622
|
+
|
|
3623
|
+
@_builtins.property
|
|
3624
|
+
@pulumi.getter
|
|
3625
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
3626
|
+
"""
|
|
3627
|
+
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
|
|
3628
|
+
"""
|
|
3629
|
+
return pulumi.get(self, "kind")
|
|
3630
|
+
|
|
3631
|
+
@_builtins.property
|
|
3632
|
+
@pulumi.getter
|
|
3633
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
3634
|
+
"""
|
|
3635
|
+
Standard object metadata
|
|
3636
|
+
"""
|
|
3637
|
+
return pulumi.get(self, "metadata")
|
|
3638
|
+
|
|
3639
|
+
@_builtins.property
|
|
3640
|
+
@pulumi.getter
|
|
3641
|
+
def status(self) -> Optional['outputs.ResourceClaimStatus']:
|
|
3642
|
+
"""
|
|
3643
|
+
Status describes whether the claim is ready to use and what has been allocated.
|
|
3644
|
+
"""
|
|
3645
|
+
return pulumi.get(self, "status")
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
@pulumi.output_type
|
|
3649
|
+
class ResourceClaimConsumerReference(dict):
|
|
3650
|
+
"""
|
|
3651
|
+
ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
|
|
3652
|
+
"""
|
|
3653
|
+
@staticmethod
|
|
3654
|
+
def __key_warning(key: str):
|
|
3655
|
+
suggest = None
|
|
3656
|
+
if key == "apiGroup":
|
|
3657
|
+
suggest = "api_group"
|
|
3658
|
+
|
|
3659
|
+
if suggest:
|
|
3660
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReference. Access the value via the '{suggest}' property getter instead.")
|
|
3661
|
+
|
|
3662
|
+
def __getitem__(self, key: str) -> Any:
|
|
3663
|
+
ResourceClaimConsumerReference.__key_warning(key)
|
|
3664
|
+
return super().__getitem__(key)
|
|
3665
|
+
|
|
3666
|
+
def get(self, key: str, default = None) -> Any:
|
|
3667
|
+
ResourceClaimConsumerReference.__key_warning(key)
|
|
3668
|
+
return super().get(key, default)
|
|
3669
|
+
|
|
3670
|
+
def __init__(__self__, *,
|
|
3671
|
+
name: _builtins.str,
|
|
3672
|
+
resource: _builtins.str,
|
|
3673
|
+
uid: _builtins.str,
|
|
3674
|
+
api_group: Optional[_builtins.str] = None):
|
|
3675
|
+
"""
|
|
3676
|
+
ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
|
|
3677
|
+
:param _builtins.str name: Name is the name of resource being referenced.
|
|
3678
|
+
:param _builtins.str resource: Resource is the type of resource being referenced, for example "pods".
|
|
3679
|
+
:param _builtins.str uid: UID identifies exactly one incarnation of the resource.
|
|
3680
|
+
:param _builtins.str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
|
|
3681
|
+
"""
|
|
3682
|
+
pulumi.set(__self__, "name", name)
|
|
3683
|
+
pulumi.set(__self__, "resource", resource)
|
|
3684
|
+
pulumi.set(__self__, "uid", uid)
|
|
3685
|
+
if api_group is not None:
|
|
3686
|
+
pulumi.set(__self__, "api_group", api_group)
|
|
3687
|
+
|
|
3688
|
+
@_builtins.property
|
|
3689
|
+
@pulumi.getter
|
|
3690
|
+
def name(self) -> _builtins.str:
|
|
3691
|
+
"""
|
|
3692
|
+
Name is the name of resource being referenced.
|
|
3693
|
+
"""
|
|
3694
|
+
return pulumi.get(self, "name")
|
|
3695
|
+
|
|
3696
|
+
@_builtins.property
|
|
3697
|
+
@pulumi.getter
|
|
3698
|
+
def resource(self) -> _builtins.str:
|
|
3699
|
+
"""
|
|
3700
|
+
Resource is the type of resource being referenced, for example "pods".
|
|
3701
|
+
"""
|
|
3702
|
+
return pulumi.get(self, "resource")
|
|
3703
|
+
|
|
3704
|
+
@_builtins.property
|
|
3705
|
+
@pulumi.getter
|
|
3706
|
+
def uid(self) -> _builtins.str:
|
|
3707
|
+
"""
|
|
3708
|
+
UID identifies exactly one incarnation of the resource.
|
|
3709
|
+
"""
|
|
3710
|
+
return pulumi.get(self, "uid")
|
|
3711
|
+
|
|
3712
|
+
@_builtins.property
|
|
3713
|
+
@pulumi.getter(name="apiGroup")
|
|
3714
|
+
def api_group(self) -> Optional[_builtins.str]:
|
|
3715
|
+
"""
|
|
3716
|
+
APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
|
|
3717
|
+
"""
|
|
3718
|
+
return pulumi.get(self, "api_group")
|
|
3719
|
+
|
|
3720
|
+
|
|
3721
|
+
@pulumi.output_type
|
|
3722
|
+
class ResourceClaimConsumerReferencePatch(dict):
|
|
3723
|
+
"""
|
|
3724
|
+
ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
|
|
3725
|
+
"""
|
|
3726
|
+
@staticmethod
|
|
3727
|
+
def __key_warning(key: str):
|
|
3728
|
+
suggest = None
|
|
3729
|
+
if key == "apiGroup":
|
|
3730
|
+
suggest = "api_group"
|
|
3731
|
+
|
|
3732
|
+
if suggest:
|
|
3733
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceClaimConsumerReferencePatch. Access the value via the '{suggest}' property getter instead.")
|
|
3734
|
+
|
|
3735
|
+
def __getitem__(self, key: str) -> Any:
|
|
3736
|
+
ResourceClaimConsumerReferencePatch.__key_warning(key)
|
|
3737
|
+
return super().__getitem__(key)
|
|
3738
|
+
|
|
3739
|
+
def get(self, key: str, default = None) -> Any:
|
|
3740
|
+
ResourceClaimConsumerReferencePatch.__key_warning(key)
|
|
3741
|
+
return super().get(key, default)
|
|
3742
|
+
|
|
3743
|
+
def __init__(__self__, *,
|
|
3744
|
+
api_group: Optional[_builtins.str] = None,
|
|
3745
|
+
name: Optional[_builtins.str] = None,
|
|
3746
|
+
resource: Optional[_builtins.str] = None,
|
|
3747
|
+
uid: Optional[_builtins.str] = None):
|
|
3748
|
+
"""
|
|
3749
|
+
ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.
|
|
3750
|
+
:param _builtins.str api_group: APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
|
|
3751
|
+
:param _builtins.str name: Name is the name of resource being referenced.
|
|
3752
|
+
:param _builtins.str resource: Resource is the type of resource being referenced, for example "pods".
|
|
3753
|
+
:param _builtins.str uid: UID identifies exactly one incarnation of the resource.
|
|
3754
|
+
"""
|
|
3755
|
+
if api_group is not None:
|
|
3756
|
+
pulumi.set(__self__, "api_group", api_group)
|
|
3757
|
+
if name is not None:
|
|
3758
|
+
pulumi.set(__self__, "name", name)
|
|
3759
|
+
if resource is not None:
|
|
3760
|
+
pulumi.set(__self__, "resource", resource)
|
|
3761
|
+
if uid is not None:
|
|
3762
|
+
pulumi.set(__self__, "uid", uid)
|
|
3763
|
+
|
|
3764
|
+
@_builtins.property
|
|
3765
|
+
@pulumi.getter(name="apiGroup")
|
|
3766
|
+
def api_group(self) -> Optional[_builtins.str]:
|
|
3767
|
+
"""
|
|
3768
|
+
APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources.
|
|
3769
|
+
"""
|
|
3770
|
+
return pulumi.get(self, "api_group")
|
|
3771
|
+
|
|
3772
|
+
@_builtins.property
|
|
3773
|
+
@pulumi.getter
|
|
3774
|
+
def name(self) -> Optional[_builtins.str]:
|
|
3775
|
+
"""
|
|
3776
|
+
Name is the name of resource being referenced.
|
|
3777
|
+
"""
|
|
3778
|
+
return pulumi.get(self, "name")
|
|
3779
|
+
|
|
3780
|
+
@_builtins.property
|
|
3781
|
+
@pulumi.getter
|
|
3782
|
+
def resource(self) -> Optional[_builtins.str]:
|
|
3783
|
+
"""
|
|
3784
|
+
Resource is the type of resource being referenced, for example "pods".
|
|
3785
|
+
"""
|
|
3786
|
+
return pulumi.get(self, "resource")
|
|
3787
|
+
|
|
3788
|
+
@_builtins.property
|
|
3789
|
+
@pulumi.getter
|
|
3790
|
+
def uid(self) -> Optional[_builtins.str]:
|
|
3791
|
+
"""
|
|
3792
|
+
UID identifies exactly one incarnation of the resource.
|
|
3793
|
+
"""
|
|
3794
|
+
return pulumi.get(self, "uid")
|
|
3795
|
+
|
|
3796
|
+
|
|
3797
|
+
@pulumi.output_type
|
|
3798
|
+
class ResourceClaimSpec(dict):
|
|
3799
|
+
"""
|
|
3800
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
3801
|
+
"""
|
|
3802
|
+
def __init__(__self__, *,
|
|
3803
|
+
devices: Optional['outputs.DeviceClaim'] = None):
|
|
3804
|
+
"""
|
|
3805
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
3806
|
+
:param 'DeviceClaimArgs' devices: Devices defines how to request devices.
|
|
3807
|
+
"""
|
|
3808
|
+
if devices is not None:
|
|
3809
|
+
pulumi.set(__self__, "devices", devices)
|
|
3810
|
+
|
|
3811
|
+
@_builtins.property
|
|
3812
|
+
@pulumi.getter
|
|
3813
|
+
def devices(self) -> Optional['outputs.DeviceClaim']:
|
|
3814
|
+
"""
|
|
3815
|
+
Devices defines how to request devices.
|
|
3816
|
+
"""
|
|
3817
|
+
return pulumi.get(self, "devices")
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
@pulumi.output_type
|
|
3821
|
+
class ResourceClaimSpecPatch(dict):
|
|
3822
|
+
"""
|
|
3823
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
3824
|
+
"""
|
|
3825
|
+
def __init__(__self__, *,
|
|
3826
|
+
devices: Optional['outputs.DeviceClaimPatch'] = None):
|
|
3827
|
+
"""
|
|
3828
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
3829
|
+
:param 'DeviceClaimPatchArgs' devices: Devices defines how to request devices.
|
|
3830
|
+
"""
|
|
3831
|
+
if devices is not None:
|
|
3832
|
+
pulumi.set(__self__, "devices", devices)
|
|
3833
|
+
|
|
3834
|
+
@_builtins.property
|
|
3835
|
+
@pulumi.getter
|
|
3836
|
+
def devices(self) -> Optional['outputs.DeviceClaimPatch']:
|
|
3837
|
+
"""
|
|
3838
|
+
Devices defines how to request devices.
|
|
3839
|
+
"""
|
|
3840
|
+
return pulumi.get(self, "devices")
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
@pulumi.output_type
|
|
3844
|
+
class ResourceClaimStatus(dict):
|
|
3845
|
+
"""
|
|
3846
|
+
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
3847
|
+
"""
|
|
3848
|
+
@staticmethod
|
|
3849
|
+
def __key_warning(key: str):
|
|
3850
|
+
suggest = None
|
|
3851
|
+
if key == "reservedFor":
|
|
3852
|
+
suggest = "reserved_for"
|
|
3853
|
+
|
|
3854
|
+
if suggest:
|
|
3855
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatus. Access the value via the '{suggest}' property getter instead.")
|
|
3856
|
+
|
|
3857
|
+
def __getitem__(self, key: str) -> Any:
|
|
3858
|
+
ResourceClaimStatus.__key_warning(key)
|
|
3859
|
+
return super().__getitem__(key)
|
|
3860
|
+
|
|
3861
|
+
def get(self, key: str, default = None) -> Any:
|
|
3862
|
+
ResourceClaimStatus.__key_warning(key)
|
|
3863
|
+
return super().get(key, default)
|
|
3864
|
+
|
|
3865
|
+
def __init__(__self__, *,
|
|
3866
|
+
allocation: Optional['outputs.AllocationResult'] = None,
|
|
3867
|
+
devices: Optional[Sequence['outputs.AllocatedDeviceStatus']] = None,
|
|
3868
|
+
reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReference']] = None):
|
|
3869
|
+
"""
|
|
3870
|
+
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
3871
|
+
:param 'AllocationResultArgs' allocation: Allocation is set once the claim has been allocated successfully.
|
|
3872
|
+
:param Sequence['AllocatedDeviceStatusArgs'] devices: Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3873
|
+
:param Sequence['ResourceClaimConsumerReferenceArgs'] reserved_for: ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
|
|
3874
|
+
|
|
3875
|
+
In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
|
|
3876
|
+
|
|
3877
|
+
Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
|
|
3878
|
+
|
|
3879
|
+
There can be at most 256 such reservations. This may get increased in the future, but not reduced.
|
|
3880
|
+
"""
|
|
3881
|
+
if allocation is not None:
|
|
3882
|
+
pulumi.set(__self__, "allocation", allocation)
|
|
3883
|
+
if devices is not None:
|
|
3884
|
+
pulumi.set(__self__, "devices", devices)
|
|
3885
|
+
if reserved_for is not None:
|
|
3886
|
+
pulumi.set(__self__, "reserved_for", reserved_for)
|
|
3887
|
+
|
|
3888
|
+
@_builtins.property
|
|
3889
|
+
@pulumi.getter
|
|
3890
|
+
def allocation(self) -> Optional['outputs.AllocationResult']:
|
|
3891
|
+
"""
|
|
3892
|
+
Allocation is set once the claim has been allocated successfully.
|
|
3893
|
+
"""
|
|
3894
|
+
return pulumi.get(self, "allocation")
|
|
3895
|
+
|
|
3896
|
+
@_builtins.property
|
|
3897
|
+
@pulumi.getter
|
|
3898
|
+
def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatus']]:
|
|
3899
|
+
"""
|
|
3900
|
+
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3901
|
+
"""
|
|
3902
|
+
return pulumi.get(self, "devices")
|
|
3903
|
+
|
|
3904
|
+
@_builtins.property
|
|
3905
|
+
@pulumi.getter(name="reservedFor")
|
|
3906
|
+
def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReference']]:
|
|
3907
|
+
"""
|
|
3908
|
+
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
|
|
3909
|
+
|
|
3910
|
+
In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
|
|
3911
|
+
|
|
3912
|
+
Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
|
|
3913
|
+
|
|
3914
|
+
There can be at most 256 such reservations. This may get increased in the future, but not reduced.
|
|
3915
|
+
"""
|
|
3916
|
+
return pulumi.get(self, "reserved_for")
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
@pulumi.output_type
|
|
3920
|
+
class ResourceClaimStatusPatch(dict):
|
|
3921
|
+
"""
|
|
3922
|
+
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
3923
|
+
"""
|
|
3924
|
+
@staticmethod
|
|
3925
|
+
def __key_warning(key: str):
|
|
3926
|
+
suggest = None
|
|
3927
|
+
if key == "reservedFor":
|
|
3928
|
+
suggest = "reserved_for"
|
|
3929
|
+
|
|
3930
|
+
if suggest:
|
|
3931
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceClaimStatusPatch. Access the value via the '{suggest}' property getter instead.")
|
|
3932
|
+
|
|
3933
|
+
def __getitem__(self, key: str) -> Any:
|
|
3934
|
+
ResourceClaimStatusPatch.__key_warning(key)
|
|
3935
|
+
return super().__getitem__(key)
|
|
3936
|
+
|
|
3937
|
+
def get(self, key: str, default = None) -> Any:
|
|
3938
|
+
ResourceClaimStatusPatch.__key_warning(key)
|
|
3939
|
+
return super().get(key, default)
|
|
3940
|
+
|
|
3941
|
+
def __init__(__self__, *,
|
|
3942
|
+
allocation: Optional['outputs.AllocationResultPatch'] = None,
|
|
3943
|
+
devices: Optional[Sequence['outputs.AllocatedDeviceStatusPatch']] = None,
|
|
3944
|
+
reserved_for: Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']] = None):
|
|
3945
|
+
"""
|
|
3946
|
+
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
3947
|
+
:param 'AllocationResultPatchArgs' allocation: Allocation is set once the claim has been allocated successfully.
|
|
3948
|
+
:param Sequence['AllocatedDeviceStatusPatchArgs'] devices: Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3949
|
+
:param Sequence['ResourceClaimConsumerReferencePatchArgs'] reserved_for: ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
|
|
3950
|
+
|
|
3951
|
+
In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
|
|
3952
|
+
|
|
3953
|
+
Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
|
|
3954
|
+
|
|
3955
|
+
There can be at most 256 such reservations. This may get increased in the future, but not reduced.
|
|
3956
|
+
"""
|
|
3957
|
+
if allocation is not None:
|
|
3958
|
+
pulumi.set(__self__, "allocation", allocation)
|
|
3959
|
+
if devices is not None:
|
|
3960
|
+
pulumi.set(__self__, "devices", devices)
|
|
3961
|
+
if reserved_for is not None:
|
|
3962
|
+
pulumi.set(__self__, "reserved_for", reserved_for)
|
|
3963
|
+
|
|
3964
|
+
@_builtins.property
|
|
3965
|
+
@pulumi.getter
|
|
3966
|
+
def allocation(self) -> Optional['outputs.AllocationResultPatch']:
|
|
3967
|
+
"""
|
|
3968
|
+
Allocation is set once the claim has been allocated successfully.
|
|
3969
|
+
"""
|
|
3970
|
+
return pulumi.get(self, "allocation")
|
|
3971
|
+
|
|
3972
|
+
@_builtins.property
|
|
3973
|
+
@pulumi.getter
|
|
3974
|
+
def devices(self) -> Optional[Sequence['outputs.AllocatedDeviceStatusPatch']]:
|
|
3975
|
+
"""
|
|
3976
|
+
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers.
|
|
3977
|
+
"""
|
|
3978
|
+
return pulumi.get(self, "devices")
|
|
3979
|
+
|
|
3980
|
+
@_builtins.property
|
|
3981
|
+
@pulumi.getter(name="reservedFor")
|
|
3982
|
+
def reserved_for(self) -> Optional[Sequence['outputs.ResourceClaimConsumerReferencePatch']]:
|
|
3983
|
+
"""
|
|
3984
|
+
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated.
|
|
3985
|
+
|
|
3986
|
+
In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled.
|
|
3987
|
+
|
|
3988
|
+
Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again.
|
|
3989
|
+
|
|
3990
|
+
There can be at most 256 such reservations. This may get increased in the future, but not reduced.
|
|
3991
|
+
"""
|
|
3992
|
+
return pulumi.get(self, "reserved_for")
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
@pulumi.output_type
|
|
3996
|
+
class ResourceClaimTemplate(dict):
|
|
3997
|
+
"""
|
|
3998
|
+
ResourceClaimTemplate is used to produce ResourceClaim objects.
|
|
3999
|
+
|
|
4000
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
4001
|
+
"""
|
|
4002
|
+
@staticmethod
|
|
4003
|
+
def __key_warning(key: str):
|
|
4004
|
+
suggest = None
|
|
4005
|
+
if key == "apiVersion":
|
|
4006
|
+
suggest = "api_version"
|
|
4007
|
+
|
|
4008
|
+
if suggest:
|
|
4009
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceClaimTemplate. Access the value via the '{suggest}' property getter instead.")
|
|
4010
|
+
|
|
4011
|
+
def __getitem__(self, key: str) -> Any:
|
|
4012
|
+
ResourceClaimTemplate.__key_warning(key)
|
|
4013
|
+
return super().__getitem__(key)
|
|
4014
|
+
|
|
4015
|
+
def get(self, key: str, default = None) -> Any:
|
|
4016
|
+
ResourceClaimTemplate.__key_warning(key)
|
|
4017
|
+
return super().get(key, default)
|
|
4018
|
+
|
|
4019
|
+
def __init__(__self__, *,
|
|
4020
|
+
spec: 'outputs.ResourceClaimTemplateSpec',
|
|
4021
|
+
api_version: Optional[_builtins.str] = None,
|
|
4022
|
+
kind: Optional[_builtins.str] = None,
|
|
4023
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
|
|
4024
|
+
"""
|
|
4025
|
+
ResourceClaimTemplate is used to produce ResourceClaim objects.
|
|
4026
|
+
|
|
4027
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
4028
|
+
:param 'ResourceClaimTemplateSpecArgs' spec: Describes the ResourceClaim that is to be generated.
|
|
4029
|
+
|
|
4030
|
+
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
|
|
4031
|
+
: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
|
|
4032
|
+
: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
|
|
4033
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
|
|
4034
|
+
"""
|
|
4035
|
+
pulumi.set(__self__, "spec", spec)
|
|
4036
|
+
if api_version is not None:
|
|
4037
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
4038
|
+
if kind is not None:
|
|
4039
|
+
pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
|
|
4040
|
+
if metadata is not None:
|
|
4041
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
4042
|
+
|
|
4043
|
+
@_builtins.property
|
|
4044
|
+
@pulumi.getter
|
|
4045
|
+
def spec(self) -> 'outputs.ResourceClaimTemplateSpec':
|
|
4046
|
+
"""
|
|
4047
|
+
Describes the ResourceClaim that is to be generated.
|
|
4048
|
+
|
|
4049
|
+
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
|
|
4050
|
+
"""
|
|
4051
|
+
return pulumi.get(self, "spec")
|
|
4052
|
+
|
|
4053
|
+
@_builtins.property
|
|
4054
|
+
@pulumi.getter(name="apiVersion")
|
|
4055
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
4056
|
+
"""
|
|
4057
|
+
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
|
|
4058
|
+
"""
|
|
4059
|
+
return pulumi.get(self, "api_version")
|
|
4060
|
+
|
|
4061
|
+
@_builtins.property
|
|
4062
|
+
@pulumi.getter
|
|
4063
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
4064
|
+
"""
|
|
4065
|
+
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
|
|
4066
|
+
"""
|
|
4067
|
+
return pulumi.get(self, "kind")
|
|
4068
|
+
|
|
4069
|
+
@_builtins.property
|
|
4070
|
+
@pulumi.getter
|
|
4071
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
4072
|
+
"""
|
|
4073
|
+
Standard object metadata
|
|
4074
|
+
"""
|
|
4075
|
+
return pulumi.get(self, "metadata")
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
@pulumi.output_type
|
|
4079
|
+
class ResourceClaimTemplateSpec(dict):
|
|
4080
|
+
"""
|
|
4081
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
4082
|
+
"""
|
|
4083
|
+
def __init__(__self__, *,
|
|
4084
|
+
spec: 'outputs.ResourceClaimSpec',
|
|
4085
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
|
|
4086
|
+
"""
|
|
4087
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
4088
|
+
:param 'ResourceClaimSpecArgs' spec: Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
|
|
4089
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
|
|
4090
|
+
"""
|
|
4091
|
+
pulumi.set(__self__, "spec", spec)
|
|
4092
|
+
if metadata is not None:
|
|
4093
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
4094
|
+
|
|
4095
|
+
@_builtins.property
|
|
4096
|
+
@pulumi.getter
|
|
4097
|
+
def spec(self) -> 'outputs.ResourceClaimSpec':
|
|
4098
|
+
"""
|
|
4099
|
+
Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
|
|
4100
|
+
"""
|
|
4101
|
+
return pulumi.get(self, "spec")
|
|
4102
|
+
|
|
4103
|
+
@_builtins.property
|
|
4104
|
+
@pulumi.getter
|
|
4105
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
4106
|
+
"""
|
|
4107
|
+
ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
|
|
4108
|
+
"""
|
|
4109
|
+
return pulumi.get(self, "metadata")
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
@pulumi.output_type
|
|
4113
|
+
class ResourceClaimTemplateSpecPatch(dict):
|
|
4114
|
+
"""
|
|
4115
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
4116
|
+
"""
|
|
4117
|
+
def __init__(__self__, *,
|
|
4118
|
+
metadata: Optional['_meta.v1.outputs.ObjectMetaPatch'] = None,
|
|
4119
|
+
spec: Optional['outputs.ResourceClaimSpecPatch'] = None):
|
|
4120
|
+
"""
|
|
4121
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
4122
|
+
:param '_meta.v1.ObjectMetaPatchArgs' metadata: ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
|
|
4123
|
+
:param 'ResourceClaimSpecPatchArgs' spec: Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
|
|
4124
|
+
"""
|
|
4125
|
+
if metadata is not None:
|
|
4126
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
4127
|
+
if spec is not None:
|
|
4128
|
+
pulumi.set(__self__, "spec", spec)
|
|
4129
|
+
|
|
4130
|
+
@_builtins.property
|
|
4131
|
+
@pulumi.getter
|
|
4132
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMetaPatch']:
|
|
4133
|
+
"""
|
|
4134
|
+
ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.
|
|
4135
|
+
"""
|
|
4136
|
+
return pulumi.get(self, "metadata")
|
|
4137
|
+
|
|
4138
|
+
@_builtins.property
|
|
4139
|
+
@pulumi.getter
|
|
4140
|
+
def spec(self) -> Optional['outputs.ResourceClaimSpecPatch']:
|
|
4141
|
+
"""
|
|
4142
|
+
Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
|
|
4143
|
+
"""
|
|
4144
|
+
return pulumi.get(self, "spec")
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
@pulumi.output_type
|
|
4148
|
+
class ResourcePool(dict):
|
|
4149
|
+
"""
|
|
4150
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
4151
|
+
"""
|
|
4152
|
+
@staticmethod
|
|
4153
|
+
def __key_warning(key: str):
|
|
4154
|
+
suggest = None
|
|
4155
|
+
if key == "resourceSliceCount":
|
|
4156
|
+
suggest = "resource_slice_count"
|
|
4157
|
+
|
|
4158
|
+
if suggest:
|
|
4159
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourcePool. Access the value via the '{suggest}' property getter instead.")
|
|
4160
|
+
|
|
4161
|
+
def __getitem__(self, key: str) -> Any:
|
|
4162
|
+
ResourcePool.__key_warning(key)
|
|
4163
|
+
return super().__getitem__(key)
|
|
4164
|
+
|
|
4165
|
+
def get(self, key: str, default = None) -> Any:
|
|
4166
|
+
ResourcePool.__key_warning(key)
|
|
4167
|
+
return super().get(key, default)
|
|
4168
|
+
|
|
4169
|
+
def __init__(__self__, *,
|
|
4170
|
+
generation: _builtins.int,
|
|
4171
|
+
name: _builtins.str,
|
|
4172
|
+
resource_slice_count: _builtins.int):
|
|
4173
|
+
"""
|
|
4174
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
4175
|
+
:param _builtins.int generation: Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
|
|
4176
|
+
|
|
4177
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
4178
|
+
:param _builtins.str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
4179
|
+
|
|
4180
|
+
It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
|
|
4181
|
+
:param _builtins.int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
4182
|
+
|
|
4183
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
4184
|
+
"""
|
|
4185
|
+
pulumi.set(__self__, "generation", generation)
|
|
4186
|
+
pulumi.set(__self__, "name", name)
|
|
4187
|
+
pulumi.set(__self__, "resource_slice_count", resource_slice_count)
|
|
4188
|
+
|
|
4189
|
+
@_builtins.property
|
|
4190
|
+
@pulumi.getter
|
|
4191
|
+
def generation(self) -> _builtins.int:
|
|
4192
|
+
"""
|
|
4193
|
+
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
|
|
4194
|
+
|
|
4195
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
4196
|
+
"""
|
|
4197
|
+
return pulumi.get(self, "generation")
|
|
4198
|
+
|
|
4199
|
+
@_builtins.property
|
|
4200
|
+
@pulumi.getter
|
|
4201
|
+
def name(self) -> _builtins.str:
|
|
4202
|
+
"""
|
|
4203
|
+
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
4204
|
+
|
|
4205
|
+
It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
|
|
4206
|
+
"""
|
|
4207
|
+
return pulumi.get(self, "name")
|
|
4208
|
+
|
|
4209
|
+
@_builtins.property
|
|
4210
|
+
@pulumi.getter(name="resourceSliceCount")
|
|
4211
|
+
def resource_slice_count(self) -> _builtins.int:
|
|
4212
|
+
"""
|
|
4213
|
+
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
4214
|
+
|
|
4215
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
4216
|
+
"""
|
|
4217
|
+
return pulumi.get(self, "resource_slice_count")
|
|
4218
|
+
|
|
4219
|
+
|
|
4220
|
+
@pulumi.output_type
|
|
4221
|
+
class ResourcePoolPatch(dict):
|
|
4222
|
+
"""
|
|
4223
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
4224
|
+
"""
|
|
4225
|
+
@staticmethod
|
|
4226
|
+
def __key_warning(key: str):
|
|
4227
|
+
suggest = None
|
|
4228
|
+
if key == "resourceSliceCount":
|
|
4229
|
+
suggest = "resource_slice_count"
|
|
4230
|
+
|
|
4231
|
+
if suggest:
|
|
4232
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourcePoolPatch. Access the value via the '{suggest}' property getter instead.")
|
|
4233
|
+
|
|
4234
|
+
def __getitem__(self, key: str) -> Any:
|
|
4235
|
+
ResourcePoolPatch.__key_warning(key)
|
|
4236
|
+
return super().__getitem__(key)
|
|
4237
|
+
|
|
4238
|
+
def get(self, key: str, default = None) -> Any:
|
|
4239
|
+
ResourcePoolPatch.__key_warning(key)
|
|
4240
|
+
return super().get(key, default)
|
|
4241
|
+
|
|
4242
|
+
def __init__(__self__, *,
|
|
4243
|
+
generation: Optional[_builtins.int] = None,
|
|
4244
|
+
name: Optional[_builtins.str] = None,
|
|
4245
|
+
resource_slice_count: Optional[_builtins.int] = None):
|
|
4246
|
+
"""
|
|
4247
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
4248
|
+
:param _builtins.int generation: Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
|
|
4249
|
+
|
|
4250
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
4251
|
+
:param _builtins.str name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
4252
|
+
|
|
4253
|
+
It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
|
|
4254
|
+
:param _builtins.int resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
4255
|
+
|
|
4256
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
4257
|
+
"""
|
|
4258
|
+
if generation is not None:
|
|
4259
|
+
pulumi.set(__self__, "generation", generation)
|
|
4260
|
+
if name is not None:
|
|
4261
|
+
pulumi.set(__self__, "name", name)
|
|
4262
|
+
if resource_slice_count is not None:
|
|
4263
|
+
pulumi.set(__self__, "resource_slice_count", resource_slice_count)
|
|
4264
|
+
|
|
4265
|
+
@_builtins.property
|
|
4266
|
+
@pulumi.getter
|
|
4267
|
+
def generation(self) -> Optional[_builtins.int]:
|
|
4268
|
+
"""
|
|
4269
|
+
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
|
|
4270
|
+
|
|
4271
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
4272
|
+
"""
|
|
4273
|
+
return pulumi.get(self, "generation")
|
|
4274
|
+
|
|
4275
|
+
@_builtins.property
|
|
4276
|
+
@pulumi.getter
|
|
4277
|
+
def name(self) -> Optional[_builtins.str]:
|
|
4278
|
+
"""
|
|
4279
|
+
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
4280
|
+
|
|
4281
|
+
It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
|
|
4282
|
+
"""
|
|
4283
|
+
return pulumi.get(self, "name")
|
|
4284
|
+
|
|
4285
|
+
@_builtins.property
|
|
4286
|
+
@pulumi.getter(name="resourceSliceCount")
|
|
4287
|
+
def resource_slice_count(self) -> Optional[_builtins.int]:
|
|
4288
|
+
"""
|
|
4289
|
+
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
4290
|
+
|
|
4291
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
4292
|
+
"""
|
|
4293
|
+
return pulumi.get(self, "resource_slice_count")
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
@pulumi.output_type
|
|
4297
|
+
class ResourceSlice(dict):
|
|
4298
|
+
"""
|
|
4299
|
+
ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
|
|
4300
|
+
|
|
4301
|
+
At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
|
|
4302
|
+
|
|
4303
|
+
Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
|
|
4304
|
+
|
|
4305
|
+
When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
|
|
4306
|
+
|
|
4307
|
+
For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
|
|
4308
|
+
|
|
4309
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
4310
|
+
"""
|
|
4311
|
+
@staticmethod
|
|
4312
|
+
def __key_warning(key: str):
|
|
4313
|
+
suggest = None
|
|
4314
|
+
if key == "apiVersion":
|
|
4315
|
+
suggest = "api_version"
|
|
4316
|
+
|
|
4317
|
+
if suggest:
|
|
4318
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceSlice. Access the value via the '{suggest}' property getter instead.")
|
|
4319
|
+
|
|
4320
|
+
def __getitem__(self, key: str) -> Any:
|
|
4321
|
+
ResourceSlice.__key_warning(key)
|
|
4322
|
+
return super().__getitem__(key)
|
|
4323
|
+
|
|
4324
|
+
def get(self, key: str, default = None) -> Any:
|
|
4325
|
+
ResourceSlice.__key_warning(key)
|
|
4326
|
+
return super().get(key, default)
|
|
4327
|
+
|
|
4328
|
+
def __init__(__self__, *,
|
|
4329
|
+
spec: 'outputs.ResourceSliceSpec',
|
|
4330
|
+
api_version: Optional[_builtins.str] = None,
|
|
4331
|
+
kind: Optional[_builtins.str] = None,
|
|
4332
|
+
metadata: Optional['_meta.v1.outputs.ObjectMeta'] = None):
|
|
4333
|
+
"""
|
|
4334
|
+
ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.
|
|
4335
|
+
|
|
4336
|
+
At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>.
|
|
4337
|
+
|
|
4338
|
+
Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.
|
|
4339
|
+
|
|
4340
|
+
When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.
|
|
4341
|
+
|
|
4342
|
+
For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.
|
|
4343
|
+
|
|
4344
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
4345
|
+
:param 'ResourceSliceSpecArgs' spec: Contains the information published by the driver.
|
|
4346
|
+
|
|
4347
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
4348
|
+
: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
|
|
4349
|
+
: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
|
|
4350
|
+
:param '_meta.v1.ObjectMetaArgs' metadata: Standard object metadata
|
|
4351
|
+
"""
|
|
4352
|
+
pulumi.set(__self__, "spec", spec)
|
|
4353
|
+
if api_version is not None:
|
|
4354
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
4355
|
+
if kind is not None:
|
|
4356
|
+
pulumi.set(__self__, "kind", 'ResourceSlice')
|
|
4357
|
+
if metadata is not None:
|
|
4358
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
4359
|
+
|
|
4360
|
+
@_builtins.property
|
|
4361
|
+
@pulumi.getter
|
|
4362
|
+
def spec(self) -> 'outputs.ResourceSliceSpec':
|
|
4363
|
+
"""
|
|
4364
|
+
Contains the information published by the driver.
|
|
4365
|
+
|
|
4366
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
4367
|
+
"""
|
|
4368
|
+
return pulumi.get(self, "spec")
|
|
4369
|
+
|
|
4370
|
+
@_builtins.property
|
|
4371
|
+
@pulumi.getter(name="apiVersion")
|
|
4372
|
+
def api_version(self) -> Optional[_builtins.str]:
|
|
4373
|
+
"""
|
|
4374
|
+
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
|
|
4375
|
+
"""
|
|
4376
|
+
return pulumi.get(self, "api_version")
|
|
4377
|
+
|
|
4378
|
+
@_builtins.property
|
|
4379
|
+
@pulumi.getter
|
|
4380
|
+
def kind(self) -> Optional[_builtins.str]:
|
|
4381
|
+
"""
|
|
4382
|
+
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
|
|
4383
|
+
"""
|
|
4384
|
+
return pulumi.get(self, "kind")
|
|
4385
|
+
|
|
4386
|
+
@_builtins.property
|
|
4387
|
+
@pulumi.getter
|
|
4388
|
+
def metadata(self) -> Optional['_meta.v1.outputs.ObjectMeta']:
|
|
4389
|
+
"""
|
|
4390
|
+
Standard object metadata
|
|
4391
|
+
"""
|
|
4392
|
+
return pulumi.get(self, "metadata")
|
|
4393
|
+
|
|
4394
|
+
|
|
4395
|
+
@pulumi.output_type
|
|
4396
|
+
class ResourceSliceSpec(dict):
|
|
4397
|
+
"""
|
|
4398
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
4399
|
+
"""
|
|
4400
|
+
@staticmethod
|
|
4401
|
+
def __key_warning(key: str):
|
|
4402
|
+
suggest = None
|
|
4403
|
+
if key == "allNodes":
|
|
4404
|
+
suggest = "all_nodes"
|
|
4405
|
+
elif key == "nodeName":
|
|
4406
|
+
suggest = "node_name"
|
|
4407
|
+
elif key == "nodeSelector":
|
|
4408
|
+
suggest = "node_selector"
|
|
4409
|
+
elif key == "perDeviceNodeSelection":
|
|
4410
|
+
suggest = "per_device_node_selection"
|
|
4411
|
+
elif key == "sharedCounters":
|
|
4412
|
+
suggest = "shared_counters"
|
|
4413
|
+
|
|
4414
|
+
if suggest:
|
|
4415
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpec. Access the value via the '{suggest}' property getter instead.")
|
|
4416
|
+
|
|
4417
|
+
def __getitem__(self, key: str) -> Any:
|
|
4418
|
+
ResourceSliceSpec.__key_warning(key)
|
|
4419
|
+
return super().__getitem__(key)
|
|
4420
|
+
|
|
4421
|
+
def get(self, key: str, default = None) -> Any:
|
|
4422
|
+
ResourceSliceSpec.__key_warning(key)
|
|
4423
|
+
return super().get(key, default)
|
|
4424
|
+
|
|
4425
|
+
def __init__(__self__, *,
|
|
4426
|
+
driver: _builtins.str,
|
|
4427
|
+
pool: 'outputs.ResourcePool',
|
|
4428
|
+
all_nodes: Optional[_builtins.bool] = None,
|
|
4429
|
+
devices: Optional[Sequence['outputs.Device']] = None,
|
|
4430
|
+
node_name: Optional[_builtins.str] = None,
|
|
4431
|
+
node_selector: Optional['_core.v1.outputs.NodeSelector'] = None,
|
|
4432
|
+
per_device_node_selection: Optional[_builtins.bool] = None,
|
|
4433
|
+
shared_counters: Optional[Sequence['outputs.CounterSet']] = None):
|
|
4434
|
+
"""
|
|
4435
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
4436
|
+
:param _builtins.str driver: Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
|
|
4437
|
+
|
|
4438
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
4439
|
+
:param 'ResourcePoolArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
|
|
4440
|
+
:param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
|
|
4441
|
+
|
|
4442
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4443
|
+
:param Sequence['DeviceArgs'] devices: Devices lists some or all of the devices in this pool.
|
|
4444
|
+
|
|
4445
|
+
Must not have more than 128 entries.
|
|
4446
|
+
:param _builtins.str node_name: NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
|
|
4447
|
+
|
|
4448
|
+
This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
|
|
4449
|
+
|
|
4450
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
|
|
4451
|
+
:param '_core.v1.NodeSelectorArgs' node_selector: NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
4452
|
+
|
|
4453
|
+
Must use exactly one term.
|
|
4454
|
+
|
|
4455
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4456
|
+
:param _builtins.bool per_device_node_selection: PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
|
|
4457
|
+
|
|
4458
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4459
|
+
:param Sequence['CounterSetArgs'] shared_counters: SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
|
|
4460
|
+
|
|
4461
|
+
The names of the SharedCounters must be unique in the ResourceSlice.
|
|
4462
|
+
|
|
4463
|
+
The maximum number of SharedCounters is 32.
|
|
4464
|
+
"""
|
|
4465
|
+
pulumi.set(__self__, "driver", driver)
|
|
4466
|
+
pulumi.set(__self__, "pool", pool)
|
|
4467
|
+
if all_nodes is not None:
|
|
4468
|
+
pulumi.set(__self__, "all_nodes", all_nodes)
|
|
4469
|
+
if devices is not None:
|
|
4470
|
+
pulumi.set(__self__, "devices", devices)
|
|
4471
|
+
if node_name is not None:
|
|
4472
|
+
pulumi.set(__self__, "node_name", node_name)
|
|
4473
|
+
if node_selector is not None:
|
|
4474
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
4475
|
+
if per_device_node_selection is not None:
|
|
4476
|
+
pulumi.set(__self__, "per_device_node_selection", per_device_node_selection)
|
|
4477
|
+
if shared_counters is not None:
|
|
4478
|
+
pulumi.set(__self__, "shared_counters", shared_counters)
|
|
4479
|
+
|
|
4480
|
+
@_builtins.property
|
|
4481
|
+
@pulumi.getter
|
|
4482
|
+
def driver(self) -> _builtins.str:
|
|
4483
|
+
"""
|
|
4484
|
+
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
|
|
4485
|
+
|
|
4486
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
4487
|
+
"""
|
|
4488
|
+
return pulumi.get(self, "driver")
|
|
4489
|
+
|
|
4490
|
+
@_builtins.property
|
|
4491
|
+
@pulumi.getter
|
|
4492
|
+
def pool(self) -> 'outputs.ResourcePool':
|
|
4493
|
+
"""
|
|
4494
|
+
Pool describes the pool that this ResourceSlice belongs to.
|
|
4495
|
+
"""
|
|
4496
|
+
return pulumi.get(self, "pool")
|
|
4497
|
+
|
|
4498
|
+
@_builtins.property
|
|
4499
|
+
@pulumi.getter(name="allNodes")
|
|
4500
|
+
def all_nodes(self) -> Optional[_builtins.bool]:
|
|
4501
|
+
"""
|
|
4502
|
+
AllNodes indicates that all nodes have access to the resources in the pool.
|
|
4503
|
+
|
|
4504
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4505
|
+
"""
|
|
4506
|
+
return pulumi.get(self, "all_nodes")
|
|
4507
|
+
|
|
4508
|
+
@_builtins.property
|
|
4509
|
+
@pulumi.getter
|
|
4510
|
+
def devices(self) -> Optional[Sequence['outputs.Device']]:
|
|
4511
|
+
"""
|
|
4512
|
+
Devices lists some or all of the devices in this pool.
|
|
4513
|
+
|
|
4514
|
+
Must not have more than 128 entries.
|
|
4515
|
+
"""
|
|
4516
|
+
return pulumi.get(self, "devices")
|
|
4517
|
+
|
|
4518
|
+
@_builtins.property
|
|
4519
|
+
@pulumi.getter(name="nodeName")
|
|
4520
|
+
def node_name(self) -> Optional[_builtins.str]:
|
|
4521
|
+
"""
|
|
4522
|
+
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
|
|
4523
|
+
|
|
4524
|
+
This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
|
|
4525
|
+
|
|
4526
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
|
|
4527
|
+
"""
|
|
4528
|
+
return pulumi.get(self, "node_name")
|
|
4529
|
+
|
|
4530
|
+
@_builtins.property
|
|
4531
|
+
@pulumi.getter(name="nodeSelector")
|
|
4532
|
+
def node_selector(self) -> Optional['_core.v1.outputs.NodeSelector']:
|
|
4533
|
+
"""
|
|
4534
|
+
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
4535
|
+
|
|
4536
|
+
Must use exactly one term.
|
|
4537
|
+
|
|
4538
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4539
|
+
"""
|
|
4540
|
+
return pulumi.get(self, "node_selector")
|
|
4541
|
+
|
|
4542
|
+
@_builtins.property
|
|
4543
|
+
@pulumi.getter(name="perDeviceNodeSelection")
|
|
4544
|
+
def per_device_node_selection(self) -> Optional[_builtins.bool]:
|
|
4545
|
+
"""
|
|
4546
|
+
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
|
|
4547
|
+
|
|
4548
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4549
|
+
"""
|
|
4550
|
+
return pulumi.get(self, "per_device_node_selection")
|
|
4551
|
+
|
|
4552
|
+
@_builtins.property
|
|
4553
|
+
@pulumi.getter(name="sharedCounters")
|
|
4554
|
+
def shared_counters(self) -> Optional[Sequence['outputs.CounterSet']]:
|
|
4555
|
+
"""
|
|
4556
|
+
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
|
|
4557
|
+
|
|
4558
|
+
The names of the SharedCounters must be unique in the ResourceSlice.
|
|
4559
|
+
|
|
4560
|
+
The maximum number of SharedCounters is 32.
|
|
4561
|
+
"""
|
|
4562
|
+
return pulumi.get(self, "shared_counters")
|
|
4563
|
+
|
|
4564
|
+
|
|
4565
|
+
@pulumi.output_type
|
|
4566
|
+
class ResourceSliceSpecPatch(dict):
|
|
4567
|
+
"""
|
|
4568
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
4569
|
+
"""
|
|
4570
|
+
@staticmethod
|
|
4571
|
+
def __key_warning(key: str):
|
|
4572
|
+
suggest = None
|
|
4573
|
+
if key == "allNodes":
|
|
4574
|
+
suggest = "all_nodes"
|
|
4575
|
+
elif key == "nodeName":
|
|
4576
|
+
suggest = "node_name"
|
|
4577
|
+
elif key == "nodeSelector":
|
|
4578
|
+
suggest = "node_selector"
|
|
4579
|
+
elif key == "perDeviceNodeSelection":
|
|
4580
|
+
suggest = "per_device_node_selection"
|
|
4581
|
+
elif key == "sharedCounters":
|
|
4582
|
+
suggest = "shared_counters"
|
|
4583
|
+
|
|
4584
|
+
if suggest:
|
|
4585
|
+
pulumi.log.warn(f"Key '{key}' not found in ResourceSliceSpecPatch. Access the value via the '{suggest}' property getter instead.")
|
|
4586
|
+
|
|
4587
|
+
def __getitem__(self, key: str) -> Any:
|
|
4588
|
+
ResourceSliceSpecPatch.__key_warning(key)
|
|
4589
|
+
return super().__getitem__(key)
|
|
4590
|
+
|
|
4591
|
+
def get(self, key: str, default = None) -> Any:
|
|
4592
|
+
ResourceSliceSpecPatch.__key_warning(key)
|
|
4593
|
+
return super().get(key, default)
|
|
4594
|
+
|
|
4595
|
+
def __init__(__self__, *,
|
|
4596
|
+
all_nodes: Optional[_builtins.bool] = None,
|
|
4597
|
+
devices: Optional[Sequence['outputs.DevicePatch']] = None,
|
|
4598
|
+
driver: Optional[_builtins.str] = None,
|
|
4599
|
+
node_name: Optional[_builtins.str] = None,
|
|
4600
|
+
node_selector: Optional['_core.v1.outputs.NodeSelectorPatch'] = None,
|
|
4601
|
+
per_device_node_selection: Optional[_builtins.bool] = None,
|
|
4602
|
+
pool: Optional['outputs.ResourcePoolPatch'] = None,
|
|
4603
|
+
shared_counters: Optional[Sequence['outputs.CounterSetPatch']] = None):
|
|
4604
|
+
"""
|
|
4605
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
4606
|
+
:param _builtins.bool all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
|
|
4607
|
+
|
|
4608
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4609
|
+
:param Sequence['DevicePatchArgs'] devices: Devices lists some or all of the devices in this pool.
|
|
4610
|
+
|
|
4611
|
+
Must not have more than 128 entries.
|
|
4612
|
+
:param _builtins.str driver: Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
|
|
4613
|
+
|
|
4614
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
4615
|
+
:param _builtins.str node_name: NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
|
|
4616
|
+
|
|
4617
|
+
This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
|
|
4618
|
+
|
|
4619
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
|
|
4620
|
+
:param '_core.v1.NodeSelectorPatchArgs' node_selector: NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
4621
|
+
|
|
4622
|
+
Must use exactly one term.
|
|
4623
|
+
|
|
4624
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4625
|
+
:param _builtins.bool per_device_node_selection: PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
|
|
4626
|
+
|
|
4627
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4628
|
+
:param 'ResourcePoolPatchArgs' pool: Pool describes the pool that this ResourceSlice belongs to.
|
|
4629
|
+
:param Sequence['CounterSetPatchArgs'] shared_counters: SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
|
|
4630
|
+
|
|
4631
|
+
The names of the SharedCounters must be unique in the ResourceSlice.
|
|
4632
|
+
|
|
4633
|
+
The maximum number of SharedCounters is 32.
|
|
4634
|
+
"""
|
|
4635
|
+
if all_nodes is not None:
|
|
4636
|
+
pulumi.set(__self__, "all_nodes", all_nodes)
|
|
4637
|
+
if devices is not None:
|
|
4638
|
+
pulumi.set(__self__, "devices", devices)
|
|
4639
|
+
if driver is not None:
|
|
4640
|
+
pulumi.set(__self__, "driver", driver)
|
|
4641
|
+
if node_name is not None:
|
|
4642
|
+
pulumi.set(__self__, "node_name", node_name)
|
|
4643
|
+
if node_selector is not None:
|
|
4644
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
4645
|
+
if per_device_node_selection is not None:
|
|
4646
|
+
pulumi.set(__self__, "per_device_node_selection", per_device_node_selection)
|
|
4647
|
+
if pool is not None:
|
|
4648
|
+
pulumi.set(__self__, "pool", pool)
|
|
4649
|
+
if shared_counters is not None:
|
|
4650
|
+
pulumi.set(__self__, "shared_counters", shared_counters)
|
|
4651
|
+
|
|
4652
|
+
@_builtins.property
|
|
4653
|
+
@pulumi.getter(name="allNodes")
|
|
4654
|
+
def all_nodes(self) -> Optional[_builtins.bool]:
|
|
4655
|
+
"""
|
|
4656
|
+
AllNodes indicates that all nodes have access to the resources in the pool.
|
|
4657
|
+
|
|
4658
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4659
|
+
"""
|
|
4660
|
+
return pulumi.get(self, "all_nodes")
|
|
4661
|
+
|
|
4662
|
+
@_builtins.property
|
|
4663
|
+
@pulumi.getter
|
|
4664
|
+
def devices(self) -> Optional[Sequence['outputs.DevicePatch']]:
|
|
4665
|
+
"""
|
|
4666
|
+
Devices lists some or all of the devices in this pool.
|
|
4667
|
+
|
|
4668
|
+
Must not have more than 128 entries.
|
|
4669
|
+
"""
|
|
4670
|
+
return pulumi.get(self, "devices")
|
|
4671
|
+
|
|
4672
|
+
@_builtins.property
|
|
4673
|
+
@pulumi.getter
|
|
4674
|
+
def driver(self) -> Optional[_builtins.str]:
|
|
4675
|
+
"""
|
|
4676
|
+
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.
|
|
4677
|
+
|
|
4678
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
4679
|
+
"""
|
|
4680
|
+
return pulumi.get(self, "driver")
|
|
4681
|
+
|
|
4682
|
+
@_builtins.property
|
|
4683
|
+
@pulumi.getter(name="nodeName")
|
|
4684
|
+
def node_name(self) -> Optional[_builtins.str]:
|
|
4685
|
+
"""
|
|
4686
|
+
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.
|
|
4687
|
+
|
|
4688
|
+
This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
|
|
4689
|
+
|
|
4690
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
|
|
4691
|
+
"""
|
|
4692
|
+
return pulumi.get(self, "node_name")
|
|
4693
|
+
|
|
4694
|
+
@_builtins.property
|
|
4695
|
+
@pulumi.getter(name="nodeSelector")
|
|
4696
|
+
def node_selector(self) -> Optional['_core.v1.outputs.NodeSelectorPatch']:
|
|
4697
|
+
"""
|
|
4698
|
+
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
4699
|
+
|
|
4700
|
+
Must use exactly one term.
|
|
4701
|
+
|
|
4702
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4703
|
+
"""
|
|
4704
|
+
return pulumi.get(self, "node_selector")
|
|
4705
|
+
|
|
4706
|
+
@_builtins.property
|
|
4707
|
+
@pulumi.getter(name="perDeviceNodeSelection")
|
|
4708
|
+
def per_device_node_selection(self) -> Optional[_builtins.bool]:
|
|
4709
|
+
"""
|
|
4710
|
+
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.
|
|
4711
|
+
|
|
4712
|
+
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
|
|
4713
|
+
"""
|
|
4714
|
+
return pulumi.get(self, "per_device_node_selection")
|
|
4715
|
+
|
|
4716
|
+
@_builtins.property
|
|
4717
|
+
@pulumi.getter
|
|
4718
|
+
def pool(self) -> Optional['outputs.ResourcePoolPatch']:
|
|
4719
|
+
"""
|
|
4720
|
+
Pool describes the pool that this ResourceSlice belongs to.
|
|
4721
|
+
"""
|
|
4722
|
+
return pulumi.get(self, "pool")
|
|
4723
|
+
|
|
4724
|
+
@_builtins.property
|
|
4725
|
+
@pulumi.getter(name="sharedCounters")
|
|
4726
|
+
def shared_counters(self) -> Optional[Sequence['outputs.CounterSetPatch']]:
|
|
4727
|
+
"""
|
|
4728
|
+
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.
|
|
4729
|
+
|
|
4730
|
+
The names of the SharedCounters must be unique in the ResourceSlice.
|
|
4731
|
+
|
|
4732
|
+
The maximum number of SharedCounters is 32.
|
|
4733
|
+
"""
|
|
4734
|
+
return pulumi.get(self, "shared_counters")
|
|
4735
|
+
|
|
4736
|
+
|