pulumi-kubernetes 4.10.0a1710288589__py3-none-any.whl → 4.20.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-kubernetes might be problematic. Click here for more details.
- pulumi_kubernetes/__init__.py +123 -3
- pulumi_kubernetes/_inputs.py +63 -6
- pulumi_kubernetes/_utilities.py +41 -5
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicy.py +226 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBinding.py +224 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyBindingPatch.py +236 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingAdmissionPolicyPatch.py +238 -0
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/ValidatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1/__init__.py +6 -0
- pulumi_kubernetes/admissionregistration/v1/_inputs.py +4571 -939
- pulumi_kubernetes/admissionregistration/v1/outputs.py +2880 -470
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicy.py +214 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBinding.py +222 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyBindingPatch.py +234 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyList.py +215 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/MutatingAdmissionPolicyPatch.py +226 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicy.py +12 -7
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBinding.py +12 -15
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyBindingPatch.py +12 -15
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1alpha1/ValidatingAdmissionPolicyPatch.py +12 -7
- pulumi_kubernetes/admissionregistration/v1alpha1/__init__.py +6 -0
- pulumi_kubernetes/admissionregistration/v1alpha1/_inputs.py +2514 -141
- pulumi_kubernetes/admissionregistration/v1alpha1/outputs.py +1370 -246
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/MutatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicy.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBinding.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyBindingPatch.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyList.py +29 -23
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingAdmissionPolicyPatch.py +12 -7
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfiguration.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationList.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/ValidatingWebhookConfigurationPatch.py +11 -6
- pulumi_kubernetes/admissionregistration/v1beta1/_inputs.py +1522 -42
- pulumi_kubernetes/admissionregistration/v1beta1/outputs.py +9 -4
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinition.py +11 -6
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionList.py +11 -6
- pulumi_kubernetes/apiextensions/v1/CustomResourceDefinitionPatch.py +11 -6
- pulumi_kubernetes/apiextensions/v1/_inputs.py +1175 -12
- pulumi_kubernetes/apiextensions/v1/outputs.py +122 -8
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinition.py +10 -5
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionList.py +10 -5
- pulumi_kubernetes/apiextensions/v1beta1/CustomResourceDefinitionPatch.py +10 -5
- pulumi_kubernetes/apiextensions/v1beta1/_inputs.py +903 -6
- pulumi_kubernetes/apiextensions/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/apiregistration/v1/APIService.py +11 -6
- pulumi_kubernetes/apiregistration/v1/APIServiceList.py +11 -6
- pulumi_kubernetes/apiregistration/v1/APIServicePatch.py +11 -6
- pulumi_kubernetes/apiregistration/v1/_inputs.py +194 -0
- pulumi_kubernetes/apiregistration/v1/outputs.py +5 -0
- pulumi_kubernetes/apiregistration/v1beta1/APIService.py +10 -5
- pulumi_kubernetes/apiregistration/v1beta1/APIServiceList.py +9 -4
- pulumi_kubernetes/apiregistration/v1beta1/APIServicePatch.py +10 -5
- pulumi_kubernetes/apiregistration/v1beta1/_inputs.py +191 -0
- pulumi_kubernetes/apiregistration/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/apps/v1/ControllerRevision.py +8 -3
- pulumi_kubernetes/apps/v1/ControllerRevisionList.py +11 -6
- pulumi_kubernetes/apps/v1/ControllerRevisionPatch.py +8 -3
- pulumi_kubernetes/apps/v1/DaemonSet.py +11 -6
- pulumi_kubernetes/apps/v1/DaemonSetList.py +11 -6
- pulumi_kubernetes/apps/v1/DaemonSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1/Deployment.py +11 -6
- pulumi_kubernetes/apps/v1/DeploymentList.py +11 -6
- pulumi_kubernetes/apps/v1/DeploymentPatch.py +11 -6
- pulumi_kubernetes/apps/v1/ReplicaSet.py +11 -6
- pulumi_kubernetes/apps/v1/ReplicaSetList.py +11 -6
- pulumi_kubernetes/apps/v1/ReplicaSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1/StatefulSet.py +11 -6
- pulumi_kubernetes/apps/v1/StatefulSetList.py +11 -6
- pulumi_kubernetes/apps/v1/StatefulSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1/_inputs.py +1057 -8
- pulumi_kubernetes/apps/v1/outputs.py +13 -8
- pulumi_kubernetes/apps/v1beta1/ControllerRevision.py +8 -3
- pulumi_kubernetes/apps/v1beta1/ControllerRevisionList.py +11 -6
- pulumi_kubernetes/apps/v1beta1/ControllerRevisionPatch.py +8 -3
- pulumi_kubernetes/apps/v1beta1/Deployment.py +11 -6
- pulumi_kubernetes/apps/v1beta1/DeploymentList.py +11 -6
- pulumi_kubernetes/apps/v1beta1/DeploymentPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta1/StatefulSet.py +10 -5
- pulumi_kubernetes/apps/v1beta1/StatefulSetList.py +9 -4
- pulumi_kubernetes/apps/v1beta1/StatefulSetPatch.py +10 -5
- pulumi_kubernetes/apps/v1beta1/_inputs.py +603 -0
- pulumi_kubernetes/apps/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/apps/v1beta2/ControllerRevision.py +8 -3
- pulumi_kubernetes/apps/v1beta2/ControllerRevisionList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ControllerRevisionPatch.py +8 -3
- pulumi_kubernetes/apps/v1beta2/DaemonSet.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DaemonSetList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DaemonSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta2/Deployment.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DeploymentList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/DeploymentPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ReplicaSet.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ReplicaSetList.py +11 -6
- pulumi_kubernetes/apps/v1beta2/ReplicaSetPatch.py +11 -6
- pulumi_kubernetes/apps/v1beta2/StatefulSet.py +10 -5
- pulumi_kubernetes/apps/v1beta2/StatefulSetList.py +9 -4
- pulumi_kubernetes/apps/v1beta2/StatefulSetPatch.py +10 -5
- pulumi_kubernetes/apps/v1beta2/_inputs.py +935 -0
- pulumi_kubernetes/apps/v1beta2/outputs.py +5 -0
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSink.py +10 -5
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkList.py +10 -5
- pulumi_kubernetes/auditregistration/v1alpha1/AuditSinkPatch.py +10 -5
- pulumi_kubernetes/auditregistration/v1alpha1/_inputs.py +281 -0
- pulumi_kubernetes/auditregistration/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v1/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v1/_inputs.py +157 -0
- pulumi_kubernetes/autoscaling/v1/outputs.py +5 -0
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v2/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v2/_inputs.py +815 -10
- pulumi_kubernetes/autoscaling/v2/outputs.py +17 -12
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta1/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta1/_inputs.py +652 -0
- pulumi_kubernetes/autoscaling/v2beta1/outputs.py +5 -0
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscaler.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerList.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta2/HorizontalPodAutoscalerPatch.py +11 -6
- pulumi_kubernetes/autoscaling/v2beta2/_inputs.py +796 -0
- pulumi_kubernetes/autoscaling/v2beta2/outputs.py +5 -0
- pulumi_kubernetes/batch/v1/CronJob.py +11 -6
- pulumi_kubernetes/batch/v1/CronJobList.py +11 -6
- pulumi_kubernetes/batch/v1/CronJobPatch.py +11 -6
- pulumi_kubernetes/batch/v1/Job.py +11 -6
- pulumi_kubernetes/batch/v1/JobList.py +11 -6
- pulumi_kubernetes/batch/v1/JobPatch.py +11 -6
- pulumi_kubernetes/batch/v1/_inputs.py +1070 -85
- pulumi_kubernetes/batch/v1/outputs.py +298 -40
- pulumi_kubernetes/batch/v1beta1/CronJob.py +11 -6
- pulumi_kubernetes/batch/v1beta1/CronJobList.py +11 -6
- pulumi_kubernetes/batch/v1beta1/CronJobPatch.py +11 -6
- pulumi_kubernetes/batch/v1beta1/_inputs.py +161 -0
- pulumi_kubernetes/batch/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/batch/v2alpha1/CronJob.py +11 -6
- pulumi_kubernetes/batch/v2alpha1/CronJobList.py +11 -6
- pulumi_kubernetes/batch/v2alpha1/CronJobPatch.py +11 -6
- pulumi_kubernetes/batch/v2alpha1/_inputs.py +161 -0
- pulumi_kubernetes/batch/v2alpha1/outputs.py +5 -0
- pulumi_kubernetes/certificates/v1/CertificateSigningRequest.py +10 -5
- pulumi_kubernetes/certificates/v1/CertificateSigningRequestList.py +10 -5
- pulumi_kubernetes/certificates/v1/CertificateSigningRequestPatch.py +10 -5
- pulumi_kubernetes/certificates/v1/_inputs.py +290 -0
- pulumi_kubernetes/certificates/v1/outputs.py +5 -0
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundle.py +11 -6
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundleList.py +11 -6
- pulumi_kubernetes/certificates/v1alpha1/ClusterTrustBundlePatch.py +11 -6
- pulumi_kubernetes/certificates/v1alpha1/_inputs.py +94 -0
- pulumi_kubernetes/certificates/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequest.py +10 -5
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestList.py +9 -4
- pulumi_kubernetes/certificates/v1beta1/CertificateSigningRequestPatch.py +10 -5
- pulumi_kubernetes/certificates/v1beta1/_inputs.py +165 -0
- pulumi_kubernetes/certificates/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/coordination/__init__.py +6 -0
- pulumi_kubernetes/coordination/v1/Lease.py +11 -6
- pulumi_kubernetes/coordination/v1/LeaseList.py +11 -6
- pulumi_kubernetes/coordination/v1/LeasePatch.py +11 -6
- pulumi_kubernetes/coordination/v1/_inputs.py +180 -10
- pulumi_kubernetes/coordination/v1/outputs.py +67 -10
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidate.py +216 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidateList.py +215 -0
- pulumi_kubernetes/coordination/v1alpha1/LeaseCandidatePatch.py +228 -0
- pulumi_kubernetes/coordination/v1alpha1/__init__.py +12 -0
- pulumi_kubernetes/coordination/v1alpha1/_inputs.py +418 -0
- pulumi_kubernetes/coordination/v1alpha1/outputs.py +334 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidate.py +216 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidateList.py +215 -0
- pulumi_kubernetes/coordination/v1alpha2/LeaseCandidatePatch.py +228 -0
- pulumi_kubernetes/coordination/v1alpha2/__init__.py +12 -0
- pulumi_kubernetes/coordination/v1alpha2/_inputs.py +393 -0
- pulumi_kubernetes/coordination/v1alpha2/outputs.py +313 -0
- pulumi_kubernetes/coordination/v1beta1/Lease.py +11 -6
- pulumi_kubernetes/coordination/v1beta1/LeaseList.py +11 -6
- pulumi_kubernetes/coordination/v1beta1/LeasePatch.py +11 -6
- pulumi_kubernetes/coordination/v1beta1/_inputs.py +90 -0
- pulumi_kubernetes/coordination/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/core/v1/Binding.py +13 -8
- pulumi_kubernetes/core/v1/BindingPatch.py +13 -8
- pulumi_kubernetes/core/v1/ConfigMap.py +8 -3
- pulumi_kubernetes/core/v1/ConfigMapList.py +11 -6
- pulumi_kubernetes/core/v1/ConfigMapPatch.py +8 -3
- pulumi_kubernetes/core/v1/Endpoints.py +11 -6
- pulumi_kubernetes/core/v1/EndpointsList.py +11 -6
- pulumi_kubernetes/core/v1/EndpointsPatch.py +11 -6
- pulumi_kubernetes/core/v1/Event.py +20 -15
- pulumi_kubernetes/core/v1/EventList.py +11 -6
- pulumi_kubernetes/core/v1/EventPatch.py +20 -15
- pulumi_kubernetes/core/v1/LimitRange.py +11 -6
- pulumi_kubernetes/core/v1/LimitRangeList.py +11 -6
- pulumi_kubernetes/core/v1/LimitRangePatch.py +11 -6
- pulumi_kubernetes/core/v1/Namespace.py +11 -6
- pulumi_kubernetes/core/v1/NamespaceList.py +11 -6
- pulumi_kubernetes/core/v1/NamespacePatch.py +11 -6
- pulumi_kubernetes/core/v1/Node.py +11 -6
- pulumi_kubernetes/core/v1/NodeList.py +11 -6
- pulumi_kubernetes/core/v1/NodePatch.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolume.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeClaim.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeClaimList.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeClaimPatch.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumeList.py +11 -6
- pulumi_kubernetes/core/v1/PersistentVolumePatch.py +11 -6
- pulumi_kubernetes/core/v1/Pod.py +11 -6
- pulumi_kubernetes/core/v1/PodList.py +11 -6
- pulumi_kubernetes/core/v1/PodPatch.py +11 -6
- pulumi_kubernetes/core/v1/PodTemplate.py +11 -6
- pulumi_kubernetes/core/v1/PodTemplateList.py +11 -6
- pulumi_kubernetes/core/v1/PodTemplatePatch.py +11 -6
- pulumi_kubernetes/core/v1/ReplicationController.py +11 -6
- pulumi_kubernetes/core/v1/ReplicationControllerList.py +11 -6
- pulumi_kubernetes/core/v1/ReplicationControllerPatch.py +11 -6
- pulumi_kubernetes/core/v1/ResourceQuota.py +11 -6
- pulumi_kubernetes/core/v1/ResourceQuotaList.py +11 -6
- pulumi_kubernetes/core/v1/ResourceQuotaPatch.py +11 -6
- pulumi_kubernetes/core/v1/Secret.py +8 -3
- pulumi_kubernetes/core/v1/SecretList.py +11 -6
- pulumi_kubernetes/core/v1/SecretPatch.py +8 -3
- pulumi_kubernetes/core/v1/Service.py +17 -28
- pulumi_kubernetes/core/v1/ServiceAccount.py +17 -12
- pulumi_kubernetes/core/v1/ServiceAccountList.py +11 -6
- pulumi_kubernetes/core/v1/ServiceAccountPatch.py +17 -12
- pulumi_kubernetes/core/v1/ServiceList.py +11 -6
- pulumi_kubernetes/core/v1/ServicePatch.py +17 -28
- pulumi_kubernetes/core/v1/_inputs.py +11760 -756
- pulumi_kubernetes/core/v1/outputs.py +2131 -448
- pulumi_kubernetes/discovery/v1/EndpointSlice.py +14 -9
- pulumi_kubernetes/discovery/v1/EndpointSliceList.py +11 -6
- pulumi_kubernetes/discovery/v1/EndpointSlicePatch.py +14 -9
- pulumi_kubernetes/discovery/v1/_inputs.py +284 -0
- pulumi_kubernetes/discovery/v1/outputs.py +5 -0
- pulumi_kubernetes/discovery/v1beta1/EndpointSlice.py +14 -9
- pulumi_kubernetes/discovery/v1beta1/EndpointSliceList.py +11 -6
- pulumi_kubernetes/discovery/v1beta1/EndpointSlicePatch.py +14 -9
- pulumi_kubernetes/discovery/v1beta1/_inputs.py +210 -0
- pulumi_kubernetes/discovery/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/events/v1/Event.py +20 -15
- pulumi_kubernetes/events/v1/EventList.py +11 -6
- pulumi_kubernetes/events/v1/EventPatch.py +20 -15
- pulumi_kubernetes/events/v1/_inputs.py +118 -0
- pulumi_kubernetes/events/v1/outputs.py +5 -0
- pulumi_kubernetes/events/v1beta1/Event.py +19 -14
- pulumi_kubernetes/events/v1beta1/EventList.py +11 -6
- pulumi_kubernetes/events/v1beta1/EventPatch.py +19 -14
- pulumi_kubernetes/events/v1beta1/_inputs.py +123 -0
- pulumi_kubernetes/events/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/extensions/v1beta1/DaemonSet.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DaemonSetList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DaemonSetPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/Deployment.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DeploymentList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/DeploymentPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/Ingress.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/IngressList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/IngressPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicy.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicyList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/NetworkPolicyPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicy.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/PodSecurityPolicyPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/ReplicaSet.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/ReplicaSetList.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/ReplicaSetPatch.py +11 -6
- pulumi_kubernetes/extensions/v1beta1/_inputs.py +1884 -26
- pulumi_kubernetes/extensions/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1/_inputs.py +779 -0
- pulumi_kubernetes/flowcontrol/v1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1alpha1/_inputs.py +671 -0
- pulumi_kubernetes/flowcontrol/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta1/_inputs.py +671 -0
- pulumi_kubernetes/flowcontrol/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta2/_inputs.py +771 -0
- pulumi_kubernetes/flowcontrol/v1beta2/outputs.py +5 -0
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchema.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/FlowSchemaPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfiguration.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationList.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/PriorityLevelConfigurationPatch.py +11 -6
- pulumi_kubernetes/flowcontrol/v1beta3/_inputs.py +779 -8
- pulumi_kubernetes/flowcontrol/v1beta3/outputs.py +13 -8
- pulumi_kubernetes/helm/__init__.py +3 -0
- pulumi_kubernetes/helm/v3/Release.py +8 -3
- pulumi_kubernetes/helm/v3/_inputs.py +42 -2
- pulumi_kubernetes/helm/v3/outputs.py +7 -2
- pulumi_kubernetes/helm/v4/Chart.py +721 -0
- pulumi_kubernetes/helm/v4/__init__.py +9 -0
- pulumi_kubernetes/helm/v4/_inputs.py +216 -0
- pulumi_kubernetes/kustomize/__init__.py +8 -0
- pulumi_kubernetes/kustomize/v2/Directory.py +219 -0
- pulumi_kubernetes/kustomize/v2/__init__.py +8 -0
- pulumi_kubernetes/meta/v1/Status.py +11 -6
- pulumi_kubernetes/meta/v1/StatusPatch.py +11 -6
- pulumi_kubernetes/meta/v1/_inputs.py +596 -0
- pulumi_kubernetes/meta/v1/outputs.py +5 -0
- pulumi_kubernetes/networking/v1/Ingress.py +11 -6
- pulumi_kubernetes/networking/v1/IngressClass.py +11 -6
- pulumi_kubernetes/networking/v1/IngressClassList.py +11 -6
- pulumi_kubernetes/networking/v1/IngressClassPatch.py +11 -6
- pulumi_kubernetes/networking/v1/IngressList.py +11 -6
- pulumi_kubernetes/networking/v1/IngressPatch.py +11 -6
- pulumi_kubernetes/networking/v1/NetworkPolicy.py +11 -6
- pulumi_kubernetes/networking/v1/NetworkPolicyList.py +11 -6
- pulumi_kubernetes/networking/v1/NetworkPolicyPatch.py +11 -6
- pulumi_kubernetes/networking/v1/_inputs.py +840 -0
- pulumi_kubernetes/networking/v1/outputs.py +5 -0
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDR.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDRList.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/ClusterCIDRPatch.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/IPAddress.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/IPAddressList.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/IPAddressPatch.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDR.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRList.py +11 -6
- pulumi_kubernetes/networking/v1alpha1/ServiceCIDRPatch.py +13 -6
- pulumi_kubernetes/networking/v1alpha1/_inputs.py +293 -37
- pulumi_kubernetes/networking/v1alpha1/outputs.py +26 -24
- pulumi_kubernetes/networking/v1beta1/IPAddress.py +216 -0
- pulumi_kubernetes/networking/v1beta1/IPAddressList.py +215 -0
- pulumi_kubernetes/networking/v1beta1/IPAddressPatch.py +228 -0
- pulumi_kubernetes/networking/v1beta1/Ingress.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressClass.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressClassList.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressClassPatch.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressList.py +11 -6
- pulumi_kubernetes/networking/v1beta1/IngressPatch.py +11 -6
- pulumi_kubernetes/networking/v1beta1/ServiceCIDR.py +226 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRList.py +215 -0
- pulumi_kubernetes/networking/v1beta1/ServiceCIDRPatch.py +238 -0
- pulumi_kubernetes/networking/v1beta1/__init__.py +6 -0
- pulumi_kubernetes/networking/v1beta1/_inputs.py +984 -11
- pulumi_kubernetes/networking/v1beta1/outputs.py +466 -0
- pulumi_kubernetes/node/v1/RuntimeClass.py +14 -9
- pulumi_kubernetes/node/v1/RuntimeClassList.py +11 -6
- pulumi_kubernetes/node/v1/RuntimeClassPatch.py +14 -9
- pulumi_kubernetes/node/v1/_inputs.py +101 -0
- pulumi_kubernetes/node/v1/outputs.py +5 -0
- pulumi_kubernetes/node/v1alpha1/RuntimeClass.py +11 -6
- pulumi_kubernetes/node/v1alpha1/RuntimeClassList.py +11 -6
- pulumi_kubernetes/node/v1alpha1/RuntimeClassPatch.py +11 -6
- pulumi_kubernetes/node/v1alpha1/_inputs.py +134 -0
- pulumi_kubernetes/node/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/node/v1beta1/RuntimeClass.py +14 -9
- pulumi_kubernetes/node/v1beta1/RuntimeClassList.py +11 -6
- pulumi_kubernetes/node/v1beta1/RuntimeClassPatch.py +14 -9
- pulumi_kubernetes/node/v1beta1/_inputs.py +100 -0
- pulumi_kubernetes/node/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/policy/v1/PodDisruptionBudget.py +11 -6
- pulumi_kubernetes/policy/v1/PodDisruptionBudgetList.py +11 -6
- pulumi_kubernetes/policy/v1/PodDisruptionBudgetPatch.py +11 -6
- pulumi_kubernetes/policy/v1/_inputs.py +151 -0
- pulumi_kubernetes/policy/v1/outputs.py +5 -0
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudget.py +10 -5
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetList.py +9 -4
- pulumi_kubernetes/policy/v1beta1/PodDisruptionBudgetPatch.py +10 -5
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py +11 -6
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyList.py +11 -6
- pulumi_kubernetes/policy/v1beta1/PodSecurityPolicyPatch.py +11 -6
- pulumi_kubernetes/policy/v1beta1/_inputs.py +713 -0
- pulumi_kubernetes/policy/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/provider.py +82 -6
- pulumi_kubernetes/pulumi-plugin.json +2 -1
- pulumi_kubernetes/rbac/v1/ClusterRole.py +14 -9
- pulumi_kubernetes/rbac/v1/ClusterRoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1/ClusterRoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1/ClusterRoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1/ClusterRoleList.py +11 -6
- pulumi_kubernetes/rbac/v1/ClusterRolePatch.py +14 -9
- pulumi_kubernetes/rbac/v1/Role.py +11 -6
- pulumi_kubernetes/rbac/v1/RoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1/RoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1/RoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1/RoleList.py +11 -6
- pulumi_kubernetes/rbac/v1/RolePatch.py +11 -6
- pulumi_kubernetes/rbac/v1/_inputs.py +295 -0
- pulumi_kubernetes/rbac/v1/outputs.py +5 -0
- pulumi_kubernetes/rbac/v1alpha1/ClusterRole.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/ClusterRoleList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/ClusterRolePatch.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/Role.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/RoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/RoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/RoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1alpha1/RoleList.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/RolePatch.py +11 -6
- pulumi_kubernetes/rbac/v1alpha1/_inputs.py +295 -0
- pulumi_kubernetes/rbac/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/rbac/v1beta1/ClusterRole.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/ClusterRoleList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/ClusterRolePatch.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/Role.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/RoleBinding.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/RoleBindingList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/RoleBindingPatch.py +14 -9
- pulumi_kubernetes/rbac/v1beta1/RoleList.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/RolePatch.py +11 -6
- pulumi_kubernetes/rbac/v1beta1/_inputs.py +295 -0
- pulumi_kubernetes/rbac/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/resource/__init__.py +6 -0
- pulumi_kubernetes/resource/v1alpha1/PodScheduling.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/PodSchedulingList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/PodSchedulingPatch.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClaim.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimPatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplate.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplateList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClaimTemplatePatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha1/ResourceClass.py +14 -9
- pulumi_kubernetes/resource/v1alpha1/ResourceClassList.py +11 -6
- pulumi_kubernetes/resource/v1alpha1/ResourceClassPatch.py +14 -9
- pulumi_kubernetes/resource/v1alpha1/_inputs.py +458 -0
- pulumi_kubernetes/resource/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContext.py +13 -6
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/PodSchedulingContextPatch.py +13 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClaim.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParameters.py +280 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersList.py +215 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimParametersPatch.py +292 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimPatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplate.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplateList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClaimTemplatePatch.py +12 -7
- pulumi_kubernetes/resource/v1alpha2/ResourceClass.py +43 -9
- pulumi_kubernetes/resource/v1alpha2/ResourceClassList.py +11 -6
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParameters.py +272 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersList.py +215 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClassParametersPatch.py +284 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceClassPatch.py +43 -9
- pulumi_kubernetes/resource/v1alpha2/ResourceSlice.py +283 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceSliceList.py +215 -0
- pulumi_kubernetes/resource/v1alpha2/ResourceSlicePatch.py +294 -0
- pulumi_kubernetes/resource/v1alpha2/__init__.py +9 -0
- pulumi_kubernetes/resource/v1alpha2/_inputs.py +3177 -634
- pulumi_kubernetes/resource/v1alpha2/outputs.py +2628 -880
- pulumi_kubernetes/resource/v1alpha3/DeviceClass.py +238 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/DeviceClassPatch.py +249 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContext.py +231 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextList.py +215 -0
- pulumi_kubernetes/resource/v1alpha3/PodSchedulingContextPatch.py +242 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaim.py +232 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimList.py +216 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimPatch.py +243 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplate.py +229 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplateList.py +215 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceClaimTemplatePatch.py +240 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlice.py +246 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSliceList.py +245 -0
- pulumi_kubernetes/resource/v1alpha3/ResourceSlicePatch.py +257 -0
- pulumi_kubernetes/resource/v1alpha3/__init__.py +24 -0
- pulumi_kubernetes/resource/v1alpha3/_inputs.py +4372 -0
- pulumi_kubernetes/resource/v1alpha3/outputs.py +3914 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClass.py +237 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassList.py +215 -0
- pulumi_kubernetes/resource/v1beta1/DeviceClassPatch.py +248 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaim.py +232 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimPatch.py +243 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplate.py +229 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplateList.py +215 -0
- pulumi_kubernetes/resource/v1beta1/ResourceClaimTemplatePatch.py +240 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlice.py +246 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSliceList.py +216 -0
- pulumi_kubernetes/resource/v1beta1/ResourceSlicePatch.py +257 -0
- pulumi_kubernetes/resource/v1beta1/__init__.py +21 -0
- pulumi_kubernetes/resource/v1beta1/_inputs.py +3867 -0
- pulumi_kubernetes/resource/v1beta1/outputs.py +3334 -0
- pulumi_kubernetes/scheduling/v1/PriorityClass.py +8 -3
- pulumi_kubernetes/scheduling/v1/PriorityClassList.py +11 -6
- pulumi_kubernetes/scheduling/v1/PriorityClassPatch.py +8 -3
- pulumi_kubernetes/scheduling/v1/_inputs.py +44 -0
- pulumi_kubernetes/scheduling/v1/outputs.py +5 -0
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClass.py +8 -3
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClassList.py +11 -6
- pulumi_kubernetes/scheduling/v1alpha1/PriorityClassPatch.py +8 -3
- pulumi_kubernetes/scheduling/v1alpha1/_inputs.py +44 -0
- pulumi_kubernetes/scheduling/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/scheduling/v1beta1/PriorityClass.py +8 -3
- pulumi_kubernetes/scheduling/v1beta1/PriorityClassList.py +11 -6
- pulumi_kubernetes/scheduling/v1beta1/PriorityClassPatch.py +8 -3
- pulumi_kubernetes/scheduling/v1beta1/_inputs.py +44 -0
- pulumi_kubernetes/scheduling/v1beta1/outputs.py +5 -0
- pulumi_kubernetes/settings/v1alpha1/PodPreset.py +9 -4
- pulumi_kubernetes/settings/v1alpha1/PodPresetList.py +11 -6
- pulumi_kubernetes/settings/v1alpha1/PodPresetPatch.py +9 -4
- pulumi_kubernetes/settings/v1alpha1/_inputs.py +84 -0
- pulumi_kubernetes/settings/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/storage/v1/CSIDriver.py +11 -6
- pulumi_kubernetes/storage/v1/CSIDriverList.py +11 -6
- pulumi_kubernetes/storage/v1/CSIDriverPatch.py +11 -6
- pulumi_kubernetes/storage/v1/CSINode.py +11 -6
- pulumi_kubernetes/storage/v1/CSINodeList.py +11 -6
- pulumi_kubernetes/storage/v1/CSINodePatch.py +11 -6
- pulumi_kubernetes/storage/v1/CSIStorageCapacity.py +11 -6
- pulumi_kubernetes/storage/v1/CSIStorageCapacityList.py +11 -6
- pulumi_kubernetes/storage/v1/CSIStorageCapacityPatch.py +11 -6
- pulumi_kubernetes/storage/v1/StorageClass.py +11 -6
- pulumi_kubernetes/storage/v1/StorageClassList.py +11 -6
- pulumi_kubernetes/storage/v1/StorageClassPatch.py +11 -6
- pulumi_kubernetes/storage/v1/VolumeAttachment.py +11 -6
- pulumi_kubernetes/storage/v1/VolumeAttachmentList.py +11 -6
- pulumi_kubernetes/storage/v1/VolumeAttachmentPatch.py +11 -6
- pulumi_kubernetes/storage/v1/_inputs.py +624 -10
- pulumi_kubernetes/storage/v1/outputs.py +17 -12
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachment.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentList.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttachmentPatch.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClass.py +10 -3
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassList.py +11 -6
- pulumi_kubernetes/storage/v1alpha1/VolumeAttributesClassPatch.py +10 -3
- pulumi_kubernetes/storage/v1alpha1/_inputs.py +187 -0
- pulumi_kubernetes/storage/v1alpha1/outputs.py +5 -0
- pulumi_kubernetes/storage/v1beta1/CSIDriver.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIDriverList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIDriverPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSINode.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSINodeList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSINodePatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacity.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/CSIStorageCapacityPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/StorageClass.py +11 -6
- pulumi_kubernetes/storage/v1beta1/StorageClassList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/StorageClassPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttachment.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttachmentList.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttachmentPatch.py +11 -6
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClass.py +252 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassList.py +215 -0
- pulumi_kubernetes/storage/v1beta1/VolumeAttributesClassPatch.py +263 -0
- pulumi_kubernetes/storage/v1beta1/__init__.py +3 -0
- pulumi_kubernetes/storage/v1beta1/_inputs.py +689 -0
- pulumi_kubernetes/storage/v1beta1/outputs.py +99 -0
- pulumi_kubernetes/storagemigration/__init__.py +14 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigration.py +224 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationList.py +215 -0
- pulumi_kubernetes/storagemigration/v1alpha1/StorageVersionMigrationPatch.py +236 -0
- pulumi_kubernetes/storagemigration/v1alpha1/__init__.py +12 -0
- pulumi_kubernetes/storagemigration/v1alpha1/_inputs.py +585 -0
- pulumi_kubernetes/storagemigration/v1alpha1/outputs.py +593 -0
- pulumi_kubernetes/yaml/v2/ConfigFile.py +81 -4
- pulumi_kubernetes/yaml/v2/ConfigGroup.py +123 -42
- pulumi_kubernetes/yaml/yaml.py +264 -0
- {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0.dist-info}/METADATA +8 -7
- pulumi_kubernetes-4.20.0.dist-info/RECORD +679 -0
- {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0.dist-info}/WHEEL +1 -1
- pulumi_kubernetes-4.10.0a1710288589.dist-info/RECORD +0 -592
- {pulumi_kubernetes-4.10.0a1710288589.dist-info → pulumi_kubernetes-4.20.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,3867 @@
|
|
|
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 copy
|
|
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 core as _core
|
|
17
|
+
from ... import meta as _meta
|
|
18
|
+
|
|
19
|
+
__all__ = [
|
|
20
|
+
'AllocatedDeviceStatusArgs',
|
|
21
|
+
'AllocatedDeviceStatusArgsDict',
|
|
22
|
+
'AllocationResultArgs',
|
|
23
|
+
'AllocationResultArgsDict',
|
|
24
|
+
'BasicDevicePatchArgs',
|
|
25
|
+
'BasicDevicePatchArgsDict',
|
|
26
|
+
'BasicDeviceArgs',
|
|
27
|
+
'BasicDeviceArgsDict',
|
|
28
|
+
'CELDeviceSelectorPatchArgs',
|
|
29
|
+
'CELDeviceSelectorPatchArgsDict',
|
|
30
|
+
'CELDeviceSelectorArgs',
|
|
31
|
+
'CELDeviceSelectorArgsDict',
|
|
32
|
+
'DeviceAllocationConfigurationArgs',
|
|
33
|
+
'DeviceAllocationConfigurationArgsDict',
|
|
34
|
+
'DeviceAllocationResultArgs',
|
|
35
|
+
'DeviceAllocationResultArgsDict',
|
|
36
|
+
'DeviceAttributeArgs',
|
|
37
|
+
'DeviceAttributeArgsDict',
|
|
38
|
+
'DeviceCapacityArgs',
|
|
39
|
+
'DeviceCapacityArgsDict',
|
|
40
|
+
'DeviceClaimConfigurationPatchArgs',
|
|
41
|
+
'DeviceClaimConfigurationPatchArgsDict',
|
|
42
|
+
'DeviceClaimConfigurationArgs',
|
|
43
|
+
'DeviceClaimConfigurationArgsDict',
|
|
44
|
+
'DeviceClaimPatchArgs',
|
|
45
|
+
'DeviceClaimPatchArgsDict',
|
|
46
|
+
'DeviceClaimArgs',
|
|
47
|
+
'DeviceClaimArgsDict',
|
|
48
|
+
'DeviceClassConfigurationPatchArgs',
|
|
49
|
+
'DeviceClassConfigurationPatchArgsDict',
|
|
50
|
+
'DeviceClassConfigurationArgs',
|
|
51
|
+
'DeviceClassConfigurationArgsDict',
|
|
52
|
+
'DeviceClassSpecPatchArgs',
|
|
53
|
+
'DeviceClassSpecPatchArgsDict',
|
|
54
|
+
'DeviceClassSpecArgs',
|
|
55
|
+
'DeviceClassSpecArgsDict',
|
|
56
|
+
'DeviceClassArgs',
|
|
57
|
+
'DeviceClassArgsDict',
|
|
58
|
+
'DeviceConstraintPatchArgs',
|
|
59
|
+
'DeviceConstraintPatchArgsDict',
|
|
60
|
+
'DeviceConstraintArgs',
|
|
61
|
+
'DeviceConstraintArgsDict',
|
|
62
|
+
'DevicePatchArgs',
|
|
63
|
+
'DevicePatchArgsDict',
|
|
64
|
+
'DeviceRequestAllocationResultArgs',
|
|
65
|
+
'DeviceRequestAllocationResultArgsDict',
|
|
66
|
+
'DeviceRequestPatchArgs',
|
|
67
|
+
'DeviceRequestPatchArgsDict',
|
|
68
|
+
'DeviceRequestArgs',
|
|
69
|
+
'DeviceRequestArgsDict',
|
|
70
|
+
'DeviceSelectorPatchArgs',
|
|
71
|
+
'DeviceSelectorPatchArgsDict',
|
|
72
|
+
'DeviceSelectorArgs',
|
|
73
|
+
'DeviceSelectorArgsDict',
|
|
74
|
+
'DeviceArgs',
|
|
75
|
+
'DeviceArgsDict',
|
|
76
|
+
'NetworkDeviceDataArgs',
|
|
77
|
+
'NetworkDeviceDataArgsDict',
|
|
78
|
+
'OpaqueDeviceConfigurationPatchArgs',
|
|
79
|
+
'OpaqueDeviceConfigurationPatchArgsDict',
|
|
80
|
+
'OpaqueDeviceConfigurationArgs',
|
|
81
|
+
'OpaqueDeviceConfigurationArgsDict',
|
|
82
|
+
'ResourceClaimConsumerReferenceArgs',
|
|
83
|
+
'ResourceClaimConsumerReferenceArgsDict',
|
|
84
|
+
'ResourceClaimSpecPatchArgs',
|
|
85
|
+
'ResourceClaimSpecPatchArgsDict',
|
|
86
|
+
'ResourceClaimSpecArgs',
|
|
87
|
+
'ResourceClaimSpecArgsDict',
|
|
88
|
+
'ResourceClaimStatusArgs',
|
|
89
|
+
'ResourceClaimStatusArgsDict',
|
|
90
|
+
'ResourceClaimTemplateSpecPatchArgs',
|
|
91
|
+
'ResourceClaimTemplateSpecPatchArgsDict',
|
|
92
|
+
'ResourceClaimTemplateSpecArgs',
|
|
93
|
+
'ResourceClaimTemplateSpecArgsDict',
|
|
94
|
+
'ResourceClaimTemplateArgs',
|
|
95
|
+
'ResourceClaimTemplateArgsDict',
|
|
96
|
+
'ResourceClaimArgs',
|
|
97
|
+
'ResourceClaimArgsDict',
|
|
98
|
+
'ResourcePoolPatchArgs',
|
|
99
|
+
'ResourcePoolPatchArgsDict',
|
|
100
|
+
'ResourcePoolArgs',
|
|
101
|
+
'ResourcePoolArgsDict',
|
|
102
|
+
'ResourceSliceSpecPatchArgs',
|
|
103
|
+
'ResourceSliceSpecPatchArgsDict',
|
|
104
|
+
'ResourceSliceSpecArgs',
|
|
105
|
+
'ResourceSliceSpecArgsDict',
|
|
106
|
+
'ResourceSliceArgs',
|
|
107
|
+
'ResourceSliceArgsDict',
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
MYPY = False
|
|
111
|
+
|
|
112
|
+
if not MYPY:
|
|
113
|
+
class AllocatedDeviceStatusArgsDict(TypedDict):
|
|
114
|
+
"""
|
|
115
|
+
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
116
|
+
"""
|
|
117
|
+
device: pulumi.Input[str]
|
|
118
|
+
"""
|
|
119
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
120
|
+
"""
|
|
121
|
+
driver: pulumi.Input[str]
|
|
122
|
+
"""
|
|
123
|
+
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.
|
|
124
|
+
|
|
125
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
126
|
+
"""
|
|
127
|
+
pool: pulumi.Input[str]
|
|
128
|
+
"""
|
|
129
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
130
|
+
|
|
131
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
132
|
+
"""
|
|
133
|
+
conditions: NotRequired[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgsDict']]]]
|
|
134
|
+
"""
|
|
135
|
+
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.
|
|
136
|
+
"""
|
|
137
|
+
data: NotRequired[Any]
|
|
138
|
+
"""
|
|
139
|
+
Data contains arbitrary driver-specific data.
|
|
140
|
+
|
|
141
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
142
|
+
"""
|
|
143
|
+
network_data: NotRequired[pulumi.Input['NetworkDeviceDataArgsDict']]
|
|
144
|
+
"""
|
|
145
|
+
NetworkData contains network-related information specific to the device.
|
|
146
|
+
"""
|
|
147
|
+
elif False:
|
|
148
|
+
AllocatedDeviceStatusArgsDict: TypeAlias = Mapping[str, Any]
|
|
149
|
+
|
|
150
|
+
@pulumi.input_type
|
|
151
|
+
class AllocatedDeviceStatusArgs:
|
|
152
|
+
def __init__(__self__, *,
|
|
153
|
+
device: pulumi.Input[str],
|
|
154
|
+
driver: pulumi.Input[str],
|
|
155
|
+
pool: pulumi.Input[str],
|
|
156
|
+
conditions: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgs']]]] = None,
|
|
157
|
+
data: Optional[Any] = None,
|
|
158
|
+
network_data: Optional[pulumi.Input['NetworkDeviceDataArgs']] = None):
|
|
159
|
+
"""
|
|
160
|
+
AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.
|
|
161
|
+
:param pulumi.Input[str] device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
162
|
+
:param pulumi.Input[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.
|
|
163
|
+
|
|
164
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
165
|
+
:param pulumi.Input[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>`).
|
|
166
|
+
|
|
167
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
168
|
+
:param pulumi.Input[Sequence[pulumi.Input['_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.
|
|
169
|
+
:param Any data: Data contains arbitrary driver-specific data.
|
|
170
|
+
|
|
171
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
172
|
+
:param pulumi.Input['NetworkDeviceDataArgs'] network_data: NetworkData contains network-related information specific to the device.
|
|
173
|
+
"""
|
|
174
|
+
pulumi.set(__self__, "device", device)
|
|
175
|
+
pulumi.set(__self__, "driver", driver)
|
|
176
|
+
pulumi.set(__self__, "pool", pool)
|
|
177
|
+
if conditions is not None:
|
|
178
|
+
pulumi.set(__self__, "conditions", conditions)
|
|
179
|
+
if data is not None:
|
|
180
|
+
pulumi.set(__self__, "data", data)
|
|
181
|
+
if network_data is not None:
|
|
182
|
+
pulumi.set(__self__, "network_data", network_data)
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
@pulumi.getter
|
|
186
|
+
def device(self) -> pulumi.Input[str]:
|
|
187
|
+
"""
|
|
188
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
189
|
+
"""
|
|
190
|
+
return pulumi.get(self, "device")
|
|
191
|
+
|
|
192
|
+
@device.setter
|
|
193
|
+
def device(self, value: pulumi.Input[str]):
|
|
194
|
+
pulumi.set(self, "device", value)
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
@pulumi.getter
|
|
198
|
+
def driver(self) -> pulumi.Input[str]:
|
|
199
|
+
"""
|
|
200
|
+
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.
|
|
201
|
+
|
|
202
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
203
|
+
"""
|
|
204
|
+
return pulumi.get(self, "driver")
|
|
205
|
+
|
|
206
|
+
@driver.setter
|
|
207
|
+
def driver(self, value: pulumi.Input[str]):
|
|
208
|
+
pulumi.set(self, "driver", value)
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
@pulumi.getter
|
|
212
|
+
def pool(self) -> pulumi.Input[str]:
|
|
213
|
+
"""
|
|
214
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
215
|
+
|
|
216
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
217
|
+
"""
|
|
218
|
+
return pulumi.get(self, "pool")
|
|
219
|
+
|
|
220
|
+
@pool.setter
|
|
221
|
+
def pool(self, value: pulumi.Input[str]):
|
|
222
|
+
pulumi.set(self, "pool", value)
|
|
223
|
+
|
|
224
|
+
@property
|
|
225
|
+
@pulumi.getter
|
|
226
|
+
def conditions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgs']]]]:
|
|
227
|
+
"""
|
|
228
|
+
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.
|
|
229
|
+
"""
|
|
230
|
+
return pulumi.get(self, "conditions")
|
|
231
|
+
|
|
232
|
+
@conditions.setter
|
|
233
|
+
def conditions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['_meta.v1.ConditionArgs']]]]):
|
|
234
|
+
pulumi.set(self, "conditions", value)
|
|
235
|
+
|
|
236
|
+
@property
|
|
237
|
+
@pulumi.getter
|
|
238
|
+
def data(self) -> Optional[Any]:
|
|
239
|
+
"""
|
|
240
|
+
Data contains arbitrary driver-specific data.
|
|
241
|
+
|
|
242
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
243
|
+
"""
|
|
244
|
+
return pulumi.get(self, "data")
|
|
245
|
+
|
|
246
|
+
@data.setter
|
|
247
|
+
def data(self, value: Optional[Any]):
|
|
248
|
+
pulumi.set(self, "data", value)
|
|
249
|
+
|
|
250
|
+
@property
|
|
251
|
+
@pulumi.getter(name="networkData")
|
|
252
|
+
def network_data(self) -> Optional[pulumi.Input['NetworkDeviceDataArgs']]:
|
|
253
|
+
"""
|
|
254
|
+
NetworkData contains network-related information specific to the device.
|
|
255
|
+
"""
|
|
256
|
+
return pulumi.get(self, "network_data")
|
|
257
|
+
|
|
258
|
+
@network_data.setter
|
|
259
|
+
def network_data(self, value: Optional[pulumi.Input['NetworkDeviceDataArgs']]):
|
|
260
|
+
pulumi.set(self, "network_data", value)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
if not MYPY:
|
|
264
|
+
class AllocationResultArgsDict(TypedDict):
|
|
265
|
+
"""
|
|
266
|
+
AllocationResult contains attributes of an allocated resource.
|
|
267
|
+
"""
|
|
268
|
+
devices: NotRequired[pulumi.Input['DeviceAllocationResultArgsDict']]
|
|
269
|
+
"""
|
|
270
|
+
Devices is the result of allocating devices.
|
|
271
|
+
"""
|
|
272
|
+
node_selector: NotRequired[pulumi.Input['_core.v1.NodeSelectorArgsDict']]
|
|
273
|
+
"""
|
|
274
|
+
NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
275
|
+
"""
|
|
276
|
+
elif False:
|
|
277
|
+
AllocationResultArgsDict: TypeAlias = Mapping[str, Any]
|
|
278
|
+
|
|
279
|
+
@pulumi.input_type
|
|
280
|
+
class AllocationResultArgs:
|
|
281
|
+
def __init__(__self__, *,
|
|
282
|
+
devices: Optional[pulumi.Input['DeviceAllocationResultArgs']] = None,
|
|
283
|
+
node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None):
|
|
284
|
+
"""
|
|
285
|
+
AllocationResult contains attributes of an allocated resource.
|
|
286
|
+
:param pulumi.Input['DeviceAllocationResultArgs'] devices: Devices is the result of allocating devices.
|
|
287
|
+
:param pulumi.Input['_core.v1.NodeSelectorArgs'] node_selector: NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
288
|
+
"""
|
|
289
|
+
if devices is not None:
|
|
290
|
+
pulumi.set(__self__, "devices", devices)
|
|
291
|
+
if node_selector is not None:
|
|
292
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
293
|
+
|
|
294
|
+
@property
|
|
295
|
+
@pulumi.getter
|
|
296
|
+
def devices(self) -> Optional[pulumi.Input['DeviceAllocationResultArgs']]:
|
|
297
|
+
"""
|
|
298
|
+
Devices is the result of allocating devices.
|
|
299
|
+
"""
|
|
300
|
+
return pulumi.get(self, "devices")
|
|
301
|
+
|
|
302
|
+
@devices.setter
|
|
303
|
+
def devices(self, value: Optional[pulumi.Input['DeviceAllocationResultArgs']]):
|
|
304
|
+
pulumi.set(self, "devices", value)
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
@pulumi.getter(name="nodeSelector")
|
|
308
|
+
def node_selector(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]:
|
|
309
|
+
"""
|
|
310
|
+
NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
|
|
311
|
+
"""
|
|
312
|
+
return pulumi.get(self, "node_selector")
|
|
313
|
+
|
|
314
|
+
@node_selector.setter
|
|
315
|
+
def node_selector(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]):
|
|
316
|
+
pulumi.set(self, "node_selector", value)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
if not MYPY:
|
|
320
|
+
class BasicDevicePatchArgsDict(TypedDict):
|
|
321
|
+
"""
|
|
322
|
+
BasicDevice defines one device instance.
|
|
323
|
+
"""
|
|
324
|
+
attributes: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgsDict']]]]
|
|
325
|
+
"""
|
|
326
|
+
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
327
|
+
|
|
328
|
+
The maximum number of attributes and capacities combined is 32.
|
|
329
|
+
"""
|
|
330
|
+
capacity: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgsDict']]]]
|
|
331
|
+
"""
|
|
332
|
+
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
333
|
+
|
|
334
|
+
The maximum number of attributes and capacities combined is 32.
|
|
335
|
+
"""
|
|
336
|
+
elif False:
|
|
337
|
+
BasicDevicePatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
338
|
+
|
|
339
|
+
@pulumi.input_type
|
|
340
|
+
class BasicDevicePatchArgs:
|
|
341
|
+
def __init__(__self__, *,
|
|
342
|
+
attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]] = None,
|
|
343
|
+
capacity: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]]] = None):
|
|
344
|
+
"""
|
|
345
|
+
BasicDevice defines one device instance.
|
|
346
|
+
:param pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
347
|
+
|
|
348
|
+
The maximum number of attributes and capacities combined is 32.
|
|
349
|
+
:param pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
350
|
+
|
|
351
|
+
The maximum number of attributes and capacities combined is 32.
|
|
352
|
+
"""
|
|
353
|
+
if attributes is not None:
|
|
354
|
+
pulumi.set(__self__, "attributes", attributes)
|
|
355
|
+
if capacity is not None:
|
|
356
|
+
pulumi.set(__self__, "capacity", capacity)
|
|
357
|
+
|
|
358
|
+
@property
|
|
359
|
+
@pulumi.getter
|
|
360
|
+
def attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]:
|
|
361
|
+
"""
|
|
362
|
+
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
363
|
+
|
|
364
|
+
The maximum number of attributes and capacities combined is 32.
|
|
365
|
+
"""
|
|
366
|
+
return pulumi.get(self, "attributes")
|
|
367
|
+
|
|
368
|
+
@attributes.setter
|
|
369
|
+
def attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]):
|
|
370
|
+
pulumi.set(self, "attributes", value)
|
|
371
|
+
|
|
372
|
+
@property
|
|
373
|
+
@pulumi.getter
|
|
374
|
+
def capacity(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]]]:
|
|
375
|
+
"""
|
|
376
|
+
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
377
|
+
|
|
378
|
+
The maximum number of attributes and capacities combined is 32.
|
|
379
|
+
"""
|
|
380
|
+
return pulumi.get(self, "capacity")
|
|
381
|
+
|
|
382
|
+
@capacity.setter
|
|
383
|
+
def capacity(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]]]):
|
|
384
|
+
pulumi.set(self, "capacity", value)
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
if not MYPY:
|
|
388
|
+
class BasicDeviceArgsDict(TypedDict):
|
|
389
|
+
"""
|
|
390
|
+
BasicDevice defines one device instance.
|
|
391
|
+
"""
|
|
392
|
+
attributes: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgsDict']]]]
|
|
393
|
+
"""
|
|
394
|
+
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
395
|
+
|
|
396
|
+
The maximum number of attributes and capacities combined is 32.
|
|
397
|
+
"""
|
|
398
|
+
capacity: NotRequired[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgsDict']]]]
|
|
399
|
+
"""
|
|
400
|
+
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
401
|
+
|
|
402
|
+
The maximum number of attributes and capacities combined is 32.
|
|
403
|
+
"""
|
|
404
|
+
elif False:
|
|
405
|
+
BasicDeviceArgsDict: TypeAlias = Mapping[str, Any]
|
|
406
|
+
|
|
407
|
+
@pulumi.input_type
|
|
408
|
+
class BasicDeviceArgs:
|
|
409
|
+
def __init__(__self__, *,
|
|
410
|
+
attributes: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]] = None,
|
|
411
|
+
capacity: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]]] = None):
|
|
412
|
+
"""
|
|
413
|
+
BasicDevice defines one device instance.
|
|
414
|
+
:param pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]] attributes: Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
415
|
+
|
|
416
|
+
The maximum number of attributes and capacities combined is 32.
|
|
417
|
+
:param pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]] capacity: Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
418
|
+
|
|
419
|
+
The maximum number of attributes and capacities combined is 32.
|
|
420
|
+
"""
|
|
421
|
+
if attributes is not None:
|
|
422
|
+
pulumi.set(__self__, "attributes", attributes)
|
|
423
|
+
if capacity is not None:
|
|
424
|
+
pulumi.set(__self__, "capacity", capacity)
|
|
425
|
+
|
|
426
|
+
@property
|
|
427
|
+
@pulumi.getter
|
|
428
|
+
def attributes(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]:
|
|
429
|
+
"""
|
|
430
|
+
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
|
|
431
|
+
|
|
432
|
+
The maximum number of attributes and capacities combined is 32.
|
|
433
|
+
"""
|
|
434
|
+
return pulumi.get(self, "attributes")
|
|
435
|
+
|
|
436
|
+
@attributes.setter
|
|
437
|
+
def attributes(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceAttributeArgs']]]]):
|
|
438
|
+
pulumi.set(self, "attributes", value)
|
|
439
|
+
|
|
440
|
+
@property
|
|
441
|
+
@pulumi.getter
|
|
442
|
+
def capacity(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]]]:
|
|
443
|
+
"""
|
|
444
|
+
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
|
|
445
|
+
|
|
446
|
+
The maximum number of attributes and capacities combined is 32.
|
|
447
|
+
"""
|
|
448
|
+
return pulumi.get(self, "capacity")
|
|
449
|
+
|
|
450
|
+
@capacity.setter
|
|
451
|
+
def capacity(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input['DeviceCapacityArgs']]]]):
|
|
452
|
+
pulumi.set(self, "capacity", value)
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
if not MYPY:
|
|
456
|
+
class CELDeviceSelectorPatchArgsDict(TypedDict):
|
|
457
|
+
"""
|
|
458
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
459
|
+
"""
|
|
460
|
+
expression: NotRequired[pulumi.Input[str]]
|
|
461
|
+
"""
|
|
462
|
+
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.
|
|
463
|
+
|
|
464
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
465
|
+
- driver (string): the name of the driver which defines this device.
|
|
466
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
467
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
468
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
469
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
470
|
+
|
|
471
|
+
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:
|
|
472
|
+
|
|
473
|
+
device.driver
|
|
474
|
+
device.attributes["dra.example.com"].model
|
|
475
|
+
device.attributes["ext.example.com"].family
|
|
476
|
+
device.capacity["dra.example.com"].modules
|
|
477
|
+
|
|
478
|
+
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.
|
|
479
|
+
|
|
480
|
+
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.
|
|
481
|
+
|
|
482
|
+
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.
|
|
483
|
+
|
|
484
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
485
|
+
|
|
486
|
+
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:
|
|
487
|
+
|
|
488
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
489
|
+
|
|
490
|
+
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.
|
|
491
|
+
"""
|
|
492
|
+
elif False:
|
|
493
|
+
CELDeviceSelectorPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
494
|
+
|
|
495
|
+
@pulumi.input_type
|
|
496
|
+
class CELDeviceSelectorPatchArgs:
|
|
497
|
+
def __init__(__self__, *,
|
|
498
|
+
expression: Optional[pulumi.Input[str]] = None):
|
|
499
|
+
"""
|
|
500
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
501
|
+
:param pulumi.Input[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.
|
|
502
|
+
|
|
503
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
504
|
+
- driver (string): the name of the driver which defines this device.
|
|
505
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
506
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
507
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
508
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
509
|
+
|
|
510
|
+
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:
|
|
511
|
+
|
|
512
|
+
device.driver
|
|
513
|
+
device.attributes["dra.example.com"].model
|
|
514
|
+
device.attributes["ext.example.com"].family
|
|
515
|
+
device.capacity["dra.example.com"].modules
|
|
516
|
+
|
|
517
|
+
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.
|
|
518
|
+
|
|
519
|
+
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.
|
|
520
|
+
|
|
521
|
+
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.
|
|
522
|
+
|
|
523
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
524
|
+
|
|
525
|
+
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:
|
|
526
|
+
|
|
527
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
528
|
+
|
|
529
|
+
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.
|
|
530
|
+
"""
|
|
531
|
+
if expression is not None:
|
|
532
|
+
pulumi.set(__self__, "expression", expression)
|
|
533
|
+
|
|
534
|
+
@property
|
|
535
|
+
@pulumi.getter
|
|
536
|
+
def expression(self) -> Optional[pulumi.Input[str]]:
|
|
537
|
+
"""
|
|
538
|
+
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.
|
|
539
|
+
|
|
540
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
541
|
+
- driver (string): the name of the driver which defines this device.
|
|
542
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
543
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
544
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
545
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
546
|
+
|
|
547
|
+
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:
|
|
548
|
+
|
|
549
|
+
device.driver
|
|
550
|
+
device.attributes["dra.example.com"].model
|
|
551
|
+
device.attributes["ext.example.com"].family
|
|
552
|
+
device.capacity["dra.example.com"].modules
|
|
553
|
+
|
|
554
|
+
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.
|
|
555
|
+
|
|
556
|
+
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.
|
|
557
|
+
|
|
558
|
+
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.
|
|
559
|
+
|
|
560
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
561
|
+
|
|
562
|
+
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:
|
|
563
|
+
|
|
564
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
565
|
+
|
|
566
|
+
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.
|
|
567
|
+
"""
|
|
568
|
+
return pulumi.get(self, "expression")
|
|
569
|
+
|
|
570
|
+
@expression.setter
|
|
571
|
+
def expression(self, value: Optional[pulumi.Input[str]]):
|
|
572
|
+
pulumi.set(self, "expression", value)
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
if not MYPY:
|
|
576
|
+
class CELDeviceSelectorArgsDict(TypedDict):
|
|
577
|
+
"""
|
|
578
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
579
|
+
"""
|
|
580
|
+
expression: pulumi.Input[str]
|
|
581
|
+
"""
|
|
582
|
+
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.
|
|
583
|
+
|
|
584
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
585
|
+
- driver (string): the name of the driver which defines this device.
|
|
586
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
587
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
588
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
589
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
590
|
+
|
|
591
|
+
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:
|
|
592
|
+
|
|
593
|
+
device.driver
|
|
594
|
+
device.attributes["dra.example.com"].model
|
|
595
|
+
device.attributes["ext.example.com"].family
|
|
596
|
+
device.capacity["dra.example.com"].modules
|
|
597
|
+
|
|
598
|
+
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.
|
|
599
|
+
|
|
600
|
+
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.
|
|
601
|
+
|
|
602
|
+
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.
|
|
603
|
+
|
|
604
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
605
|
+
|
|
606
|
+
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:
|
|
607
|
+
|
|
608
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
609
|
+
|
|
610
|
+
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.
|
|
611
|
+
"""
|
|
612
|
+
elif False:
|
|
613
|
+
CELDeviceSelectorArgsDict: TypeAlias = Mapping[str, Any]
|
|
614
|
+
|
|
615
|
+
@pulumi.input_type
|
|
616
|
+
class CELDeviceSelectorArgs:
|
|
617
|
+
def __init__(__self__, *,
|
|
618
|
+
expression: pulumi.Input[str]):
|
|
619
|
+
"""
|
|
620
|
+
CELDeviceSelector contains a CEL expression for selecting a device.
|
|
621
|
+
:param pulumi.Input[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.
|
|
622
|
+
|
|
623
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
624
|
+
- driver (string): the name of the driver which defines this device.
|
|
625
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
626
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
627
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
628
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
629
|
+
|
|
630
|
+
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:
|
|
631
|
+
|
|
632
|
+
device.driver
|
|
633
|
+
device.attributes["dra.example.com"].model
|
|
634
|
+
device.attributes["ext.example.com"].family
|
|
635
|
+
device.capacity["dra.example.com"].modules
|
|
636
|
+
|
|
637
|
+
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.
|
|
638
|
+
|
|
639
|
+
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.
|
|
640
|
+
|
|
641
|
+
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.
|
|
642
|
+
|
|
643
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
644
|
+
|
|
645
|
+
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:
|
|
646
|
+
|
|
647
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
648
|
+
|
|
649
|
+
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.
|
|
650
|
+
"""
|
|
651
|
+
pulumi.set(__self__, "expression", expression)
|
|
652
|
+
|
|
653
|
+
@property
|
|
654
|
+
@pulumi.getter
|
|
655
|
+
def expression(self) -> pulumi.Input[str]:
|
|
656
|
+
"""
|
|
657
|
+
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.
|
|
658
|
+
|
|
659
|
+
The expression's input is an object named "device", which carries the following properties:
|
|
660
|
+
- driver (string): the name of the driver which defines this device.
|
|
661
|
+
- attributes (map[string]object): the device's attributes, grouped by prefix
|
|
662
|
+
(e.g. device.attributes["dra.example.com"] evaluates to an object with all
|
|
663
|
+
of the attributes which were prefixed by "dra.example.com".
|
|
664
|
+
- capacity (map[string]object): the device's capacities, grouped by prefix.
|
|
665
|
+
|
|
666
|
+
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:
|
|
667
|
+
|
|
668
|
+
device.driver
|
|
669
|
+
device.attributes["dra.example.com"].model
|
|
670
|
+
device.attributes["ext.example.com"].family
|
|
671
|
+
device.capacity["dra.example.com"].modules
|
|
672
|
+
|
|
673
|
+
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.
|
|
674
|
+
|
|
675
|
+
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.
|
|
676
|
+
|
|
677
|
+
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.
|
|
678
|
+
|
|
679
|
+
A robust expression should check for the existence of attributes before referencing them.
|
|
680
|
+
|
|
681
|
+
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:
|
|
682
|
+
|
|
683
|
+
cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
|
|
684
|
+
|
|
685
|
+
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.
|
|
686
|
+
"""
|
|
687
|
+
return pulumi.get(self, "expression")
|
|
688
|
+
|
|
689
|
+
@expression.setter
|
|
690
|
+
def expression(self, value: pulumi.Input[str]):
|
|
691
|
+
pulumi.set(self, "expression", value)
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
if not MYPY:
|
|
695
|
+
class DeviceAllocationConfigurationArgsDict(TypedDict):
|
|
696
|
+
"""
|
|
697
|
+
DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
|
698
|
+
"""
|
|
699
|
+
source: pulumi.Input[str]
|
|
700
|
+
"""
|
|
701
|
+
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.
|
|
702
|
+
"""
|
|
703
|
+
opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationArgsDict']]
|
|
704
|
+
"""
|
|
705
|
+
Opaque provides driver-specific configuration parameters.
|
|
706
|
+
"""
|
|
707
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
708
|
+
"""
|
|
709
|
+
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
710
|
+
"""
|
|
711
|
+
elif False:
|
|
712
|
+
DeviceAllocationConfigurationArgsDict: TypeAlias = Mapping[str, Any]
|
|
713
|
+
|
|
714
|
+
@pulumi.input_type
|
|
715
|
+
class DeviceAllocationConfigurationArgs:
|
|
716
|
+
def __init__(__self__, *,
|
|
717
|
+
source: pulumi.Input[str],
|
|
718
|
+
opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']] = None,
|
|
719
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
720
|
+
"""
|
|
721
|
+
DeviceAllocationConfiguration gets embedded in an AllocationResult.
|
|
722
|
+
:param pulumi.Input[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.
|
|
723
|
+
:param pulumi.Input['OpaqueDeviceConfigurationArgs'] opaque: Opaque provides driver-specific configuration parameters.
|
|
724
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
725
|
+
"""
|
|
726
|
+
pulumi.set(__self__, "source", source)
|
|
727
|
+
if opaque is not None:
|
|
728
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
729
|
+
if requests is not None:
|
|
730
|
+
pulumi.set(__self__, "requests", requests)
|
|
731
|
+
|
|
732
|
+
@property
|
|
733
|
+
@pulumi.getter
|
|
734
|
+
def source(self) -> pulumi.Input[str]:
|
|
735
|
+
"""
|
|
736
|
+
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.
|
|
737
|
+
"""
|
|
738
|
+
return pulumi.get(self, "source")
|
|
739
|
+
|
|
740
|
+
@source.setter
|
|
741
|
+
def source(self, value: pulumi.Input[str]):
|
|
742
|
+
pulumi.set(self, "source", value)
|
|
743
|
+
|
|
744
|
+
@property
|
|
745
|
+
@pulumi.getter
|
|
746
|
+
def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]:
|
|
747
|
+
"""
|
|
748
|
+
Opaque provides driver-specific configuration parameters.
|
|
749
|
+
"""
|
|
750
|
+
return pulumi.get(self, "opaque")
|
|
751
|
+
|
|
752
|
+
@opaque.setter
|
|
753
|
+
def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]):
|
|
754
|
+
pulumi.set(self, "opaque", value)
|
|
755
|
+
|
|
756
|
+
@property
|
|
757
|
+
@pulumi.getter
|
|
758
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
759
|
+
"""
|
|
760
|
+
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
|
|
761
|
+
"""
|
|
762
|
+
return pulumi.get(self, "requests")
|
|
763
|
+
|
|
764
|
+
@requests.setter
|
|
765
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
766
|
+
pulumi.set(self, "requests", value)
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
if not MYPY:
|
|
770
|
+
class DeviceAllocationResultArgsDict(TypedDict):
|
|
771
|
+
"""
|
|
772
|
+
DeviceAllocationResult is the result of allocating devices.
|
|
773
|
+
"""
|
|
774
|
+
config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgsDict']]]]
|
|
775
|
+
"""
|
|
776
|
+
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
777
|
+
|
|
778
|
+
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.
|
|
779
|
+
"""
|
|
780
|
+
results: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgsDict']]]]
|
|
781
|
+
"""
|
|
782
|
+
Results lists all allocated devices.
|
|
783
|
+
"""
|
|
784
|
+
elif False:
|
|
785
|
+
DeviceAllocationResultArgsDict: TypeAlias = Mapping[str, Any]
|
|
786
|
+
|
|
787
|
+
@pulumi.input_type
|
|
788
|
+
class DeviceAllocationResultArgs:
|
|
789
|
+
def __init__(__self__, *,
|
|
790
|
+
config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]]] = None,
|
|
791
|
+
results: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]]] = None):
|
|
792
|
+
"""
|
|
793
|
+
DeviceAllocationResult is the result of allocating devices.
|
|
794
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]] config: This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
795
|
+
|
|
796
|
+
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.
|
|
797
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]] results: Results lists all allocated devices.
|
|
798
|
+
"""
|
|
799
|
+
if config is not None:
|
|
800
|
+
pulumi.set(__self__, "config", config)
|
|
801
|
+
if results is not None:
|
|
802
|
+
pulumi.set(__self__, "results", results)
|
|
803
|
+
|
|
804
|
+
@property
|
|
805
|
+
@pulumi.getter
|
|
806
|
+
def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]]]:
|
|
807
|
+
"""
|
|
808
|
+
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag.
|
|
809
|
+
|
|
810
|
+
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.
|
|
811
|
+
"""
|
|
812
|
+
return pulumi.get(self, "config")
|
|
813
|
+
|
|
814
|
+
@config.setter
|
|
815
|
+
def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceAllocationConfigurationArgs']]]]):
|
|
816
|
+
pulumi.set(self, "config", value)
|
|
817
|
+
|
|
818
|
+
@property
|
|
819
|
+
@pulumi.getter
|
|
820
|
+
def results(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]]]:
|
|
821
|
+
"""
|
|
822
|
+
Results lists all allocated devices.
|
|
823
|
+
"""
|
|
824
|
+
return pulumi.get(self, "results")
|
|
825
|
+
|
|
826
|
+
@results.setter
|
|
827
|
+
def results(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestAllocationResultArgs']]]]):
|
|
828
|
+
pulumi.set(self, "results", value)
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
if not MYPY:
|
|
832
|
+
class DeviceAttributeArgsDict(TypedDict):
|
|
833
|
+
"""
|
|
834
|
+
DeviceAttribute must have exactly one field set.
|
|
835
|
+
"""
|
|
836
|
+
bool: NotRequired[pulumi.Input[bool]]
|
|
837
|
+
"""
|
|
838
|
+
BoolValue is a true/false value.
|
|
839
|
+
"""
|
|
840
|
+
int: NotRequired[pulumi.Input[int]]
|
|
841
|
+
"""
|
|
842
|
+
IntValue is a number.
|
|
843
|
+
"""
|
|
844
|
+
string: NotRequired[pulumi.Input[str]]
|
|
845
|
+
"""
|
|
846
|
+
StringValue is a string. Must not be longer than 64 characters.
|
|
847
|
+
"""
|
|
848
|
+
version: NotRequired[pulumi.Input[str]]
|
|
849
|
+
"""
|
|
850
|
+
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
|
|
851
|
+
"""
|
|
852
|
+
elif False:
|
|
853
|
+
DeviceAttributeArgsDict: TypeAlias = Mapping[str, Any]
|
|
854
|
+
|
|
855
|
+
@pulumi.input_type
|
|
856
|
+
class DeviceAttributeArgs:
|
|
857
|
+
def __init__(__self__, *,
|
|
858
|
+
bool: Optional[pulumi.Input[bool]] = None,
|
|
859
|
+
int: Optional[pulumi.Input[int]] = None,
|
|
860
|
+
string: Optional[pulumi.Input[str]] = None,
|
|
861
|
+
version: Optional[pulumi.Input[str]] = None):
|
|
862
|
+
"""
|
|
863
|
+
DeviceAttribute must have exactly one field set.
|
|
864
|
+
:param pulumi.Input[bool] bool: BoolValue is a true/false value.
|
|
865
|
+
:param pulumi.Input[int] int: IntValue is a number.
|
|
866
|
+
:param pulumi.Input[str] string: StringValue is a string. Must not be longer than 64 characters.
|
|
867
|
+
:param pulumi.Input[str] version: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
|
|
868
|
+
"""
|
|
869
|
+
if bool is not None:
|
|
870
|
+
pulumi.set(__self__, "bool", bool)
|
|
871
|
+
if int is not None:
|
|
872
|
+
pulumi.set(__self__, "int", int)
|
|
873
|
+
if string is not None:
|
|
874
|
+
pulumi.set(__self__, "string", string)
|
|
875
|
+
if version is not None:
|
|
876
|
+
pulumi.set(__self__, "version", version)
|
|
877
|
+
|
|
878
|
+
@property
|
|
879
|
+
@pulumi.getter
|
|
880
|
+
def bool(self) -> Optional[pulumi.Input[bool]]:
|
|
881
|
+
"""
|
|
882
|
+
BoolValue is a true/false value.
|
|
883
|
+
"""
|
|
884
|
+
return pulumi.get(self, "bool")
|
|
885
|
+
|
|
886
|
+
@bool.setter
|
|
887
|
+
def bool(self, value: Optional[pulumi.Input[bool]]):
|
|
888
|
+
pulumi.set(self, "bool", value)
|
|
889
|
+
|
|
890
|
+
@property
|
|
891
|
+
@pulumi.getter
|
|
892
|
+
def int(self) -> Optional[pulumi.Input[int]]:
|
|
893
|
+
"""
|
|
894
|
+
IntValue is a number.
|
|
895
|
+
"""
|
|
896
|
+
return pulumi.get(self, "int")
|
|
897
|
+
|
|
898
|
+
@int.setter
|
|
899
|
+
def int(self, value: Optional[pulumi.Input[int]]):
|
|
900
|
+
pulumi.set(self, "int", value)
|
|
901
|
+
|
|
902
|
+
@property
|
|
903
|
+
@pulumi.getter
|
|
904
|
+
def string(self) -> Optional[pulumi.Input[str]]:
|
|
905
|
+
"""
|
|
906
|
+
StringValue is a string. Must not be longer than 64 characters.
|
|
907
|
+
"""
|
|
908
|
+
return pulumi.get(self, "string")
|
|
909
|
+
|
|
910
|
+
@string.setter
|
|
911
|
+
def string(self, value: Optional[pulumi.Input[str]]):
|
|
912
|
+
pulumi.set(self, "string", value)
|
|
913
|
+
|
|
914
|
+
@property
|
|
915
|
+
@pulumi.getter
|
|
916
|
+
def version(self) -> Optional[pulumi.Input[str]]:
|
|
917
|
+
"""
|
|
918
|
+
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.
|
|
919
|
+
"""
|
|
920
|
+
return pulumi.get(self, "version")
|
|
921
|
+
|
|
922
|
+
@version.setter
|
|
923
|
+
def version(self, value: Optional[pulumi.Input[str]]):
|
|
924
|
+
pulumi.set(self, "version", value)
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
if not MYPY:
|
|
928
|
+
class DeviceCapacityArgsDict(TypedDict):
|
|
929
|
+
"""
|
|
930
|
+
DeviceCapacity describes a quantity associated with a device.
|
|
931
|
+
"""
|
|
932
|
+
value: pulumi.Input[str]
|
|
933
|
+
"""
|
|
934
|
+
Value defines how much of a certain device capacity is available.
|
|
935
|
+
"""
|
|
936
|
+
elif False:
|
|
937
|
+
DeviceCapacityArgsDict: TypeAlias = Mapping[str, Any]
|
|
938
|
+
|
|
939
|
+
@pulumi.input_type
|
|
940
|
+
class DeviceCapacityArgs:
|
|
941
|
+
def __init__(__self__, *,
|
|
942
|
+
value: pulumi.Input[str]):
|
|
943
|
+
"""
|
|
944
|
+
DeviceCapacity describes a quantity associated with a device.
|
|
945
|
+
:param pulumi.Input[str] value: Value defines how much of a certain device capacity is available.
|
|
946
|
+
"""
|
|
947
|
+
pulumi.set(__self__, "value", value)
|
|
948
|
+
|
|
949
|
+
@property
|
|
950
|
+
@pulumi.getter
|
|
951
|
+
def value(self) -> pulumi.Input[str]:
|
|
952
|
+
"""
|
|
953
|
+
Value defines how much of a certain device capacity is available.
|
|
954
|
+
"""
|
|
955
|
+
return pulumi.get(self, "value")
|
|
956
|
+
|
|
957
|
+
@value.setter
|
|
958
|
+
def value(self, value: pulumi.Input[str]):
|
|
959
|
+
pulumi.set(self, "value", value)
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
if not MYPY:
|
|
963
|
+
class DeviceClaimConfigurationPatchArgsDict(TypedDict):
|
|
964
|
+
"""
|
|
965
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
966
|
+
"""
|
|
967
|
+
opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationPatchArgsDict']]
|
|
968
|
+
"""
|
|
969
|
+
Opaque provides driver-specific configuration parameters.
|
|
970
|
+
"""
|
|
971
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
972
|
+
"""
|
|
973
|
+
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
974
|
+
"""
|
|
975
|
+
elif False:
|
|
976
|
+
DeviceClaimConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
977
|
+
|
|
978
|
+
@pulumi.input_type
|
|
979
|
+
class DeviceClaimConfigurationPatchArgs:
|
|
980
|
+
def __init__(__self__, *,
|
|
981
|
+
opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']] = None,
|
|
982
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
983
|
+
"""
|
|
984
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
985
|
+
:param pulumi.Input['OpaqueDeviceConfigurationPatchArgs'] opaque: Opaque provides driver-specific configuration parameters.
|
|
986
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
987
|
+
"""
|
|
988
|
+
if opaque is not None:
|
|
989
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
990
|
+
if requests is not None:
|
|
991
|
+
pulumi.set(__self__, "requests", requests)
|
|
992
|
+
|
|
993
|
+
@property
|
|
994
|
+
@pulumi.getter
|
|
995
|
+
def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]:
|
|
996
|
+
"""
|
|
997
|
+
Opaque provides driver-specific configuration parameters.
|
|
998
|
+
"""
|
|
999
|
+
return pulumi.get(self, "opaque")
|
|
1000
|
+
|
|
1001
|
+
@opaque.setter
|
|
1002
|
+
def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]):
|
|
1003
|
+
pulumi.set(self, "opaque", value)
|
|
1004
|
+
|
|
1005
|
+
@property
|
|
1006
|
+
@pulumi.getter
|
|
1007
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1008
|
+
"""
|
|
1009
|
+
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1010
|
+
"""
|
|
1011
|
+
return pulumi.get(self, "requests")
|
|
1012
|
+
|
|
1013
|
+
@requests.setter
|
|
1014
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
1015
|
+
pulumi.set(self, "requests", value)
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
if not MYPY:
|
|
1019
|
+
class DeviceClaimConfigurationArgsDict(TypedDict):
|
|
1020
|
+
"""
|
|
1021
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
1022
|
+
"""
|
|
1023
|
+
opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationArgsDict']]
|
|
1024
|
+
"""
|
|
1025
|
+
Opaque provides driver-specific configuration parameters.
|
|
1026
|
+
"""
|
|
1027
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
1028
|
+
"""
|
|
1029
|
+
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1030
|
+
"""
|
|
1031
|
+
elif False:
|
|
1032
|
+
DeviceClaimConfigurationArgsDict: TypeAlias = Mapping[str, Any]
|
|
1033
|
+
|
|
1034
|
+
@pulumi.input_type
|
|
1035
|
+
class DeviceClaimConfigurationArgs:
|
|
1036
|
+
def __init__(__self__, *,
|
|
1037
|
+
opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']] = None,
|
|
1038
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
1039
|
+
"""
|
|
1040
|
+
DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
|
|
1041
|
+
:param pulumi.Input['OpaqueDeviceConfigurationArgs'] opaque: Opaque provides driver-specific configuration parameters.
|
|
1042
|
+
:param pulumi.Input[Sequence[pulumi.Input[str]]] requests: Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1043
|
+
"""
|
|
1044
|
+
if opaque is not None:
|
|
1045
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1046
|
+
if requests is not None:
|
|
1047
|
+
pulumi.set(__self__, "requests", requests)
|
|
1048
|
+
|
|
1049
|
+
@property
|
|
1050
|
+
@pulumi.getter
|
|
1051
|
+
def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]:
|
|
1052
|
+
"""
|
|
1053
|
+
Opaque provides driver-specific configuration parameters.
|
|
1054
|
+
"""
|
|
1055
|
+
return pulumi.get(self, "opaque")
|
|
1056
|
+
|
|
1057
|
+
@opaque.setter
|
|
1058
|
+
def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]):
|
|
1059
|
+
pulumi.set(self, "opaque", value)
|
|
1060
|
+
|
|
1061
|
+
@property
|
|
1062
|
+
@pulumi.getter
|
|
1063
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1064
|
+
"""
|
|
1065
|
+
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests.
|
|
1066
|
+
"""
|
|
1067
|
+
return pulumi.get(self, "requests")
|
|
1068
|
+
|
|
1069
|
+
@requests.setter
|
|
1070
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
1071
|
+
pulumi.set(self, "requests", value)
|
|
1072
|
+
|
|
1073
|
+
|
|
1074
|
+
if not MYPY:
|
|
1075
|
+
class DeviceClaimPatchArgsDict(TypedDict):
|
|
1076
|
+
"""
|
|
1077
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1078
|
+
"""
|
|
1079
|
+
config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgsDict']]]]
|
|
1080
|
+
"""
|
|
1081
|
+
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1082
|
+
"""
|
|
1083
|
+
constraints: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgsDict']]]]
|
|
1084
|
+
"""
|
|
1085
|
+
These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1086
|
+
"""
|
|
1087
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgsDict']]]]
|
|
1088
|
+
"""
|
|
1089
|
+
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1090
|
+
"""
|
|
1091
|
+
elif False:
|
|
1092
|
+
DeviceClaimPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1093
|
+
|
|
1094
|
+
@pulumi.input_type
|
|
1095
|
+
class DeviceClaimPatchArgs:
|
|
1096
|
+
def __init__(__self__, *,
|
|
1097
|
+
config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]]] = None,
|
|
1098
|
+
constraints: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]]] = None,
|
|
1099
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]]] = None):
|
|
1100
|
+
"""
|
|
1101
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1102
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1103
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1104
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1105
|
+
"""
|
|
1106
|
+
if config is not None:
|
|
1107
|
+
pulumi.set(__self__, "config", config)
|
|
1108
|
+
if constraints is not None:
|
|
1109
|
+
pulumi.set(__self__, "constraints", constraints)
|
|
1110
|
+
if requests is not None:
|
|
1111
|
+
pulumi.set(__self__, "requests", requests)
|
|
1112
|
+
|
|
1113
|
+
@property
|
|
1114
|
+
@pulumi.getter
|
|
1115
|
+
def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]]]:
|
|
1116
|
+
"""
|
|
1117
|
+
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1118
|
+
"""
|
|
1119
|
+
return pulumi.get(self, "config")
|
|
1120
|
+
|
|
1121
|
+
@config.setter
|
|
1122
|
+
def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationPatchArgs']]]]):
|
|
1123
|
+
pulumi.set(self, "config", value)
|
|
1124
|
+
|
|
1125
|
+
@property
|
|
1126
|
+
@pulumi.getter
|
|
1127
|
+
def constraints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]]]:
|
|
1128
|
+
"""
|
|
1129
|
+
These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1130
|
+
"""
|
|
1131
|
+
return pulumi.get(self, "constraints")
|
|
1132
|
+
|
|
1133
|
+
@constraints.setter
|
|
1134
|
+
def constraints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintPatchArgs']]]]):
|
|
1135
|
+
pulumi.set(self, "constraints", value)
|
|
1136
|
+
|
|
1137
|
+
@property
|
|
1138
|
+
@pulumi.getter
|
|
1139
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]]]:
|
|
1140
|
+
"""
|
|
1141
|
+
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1142
|
+
"""
|
|
1143
|
+
return pulumi.get(self, "requests")
|
|
1144
|
+
|
|
1145
|
+
@requests.setter
|
|
1146
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestPatchArgs']]]]):
|
|
1147
|
+
pulumi.set(self, "requests", value)
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
if not MYPY:
|
|
1151
|
+
class DeviceClaimArgsDict(TypedDict):
|
|
1152
|
+
"""
|
|
1153
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1154
|
+
"""
|
|
1155
|
+
config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgsDict']]]]
|
|
1156
|
+
"""
|
|
1157
|
+
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1158
|
+
"""
|
|
1159
|
+
constraints: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgsDict']]]]
|
|
1160
|
+
"""
|
|
1161
|
+
These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1162
|
+
"""
|
|
1163
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgsDict']]]]
|
|
1164
|
+
"""
|
|
1165
|
+
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1166
|
+
"""
|
|
1167
|
+
elif False:
|
|
1168
|
+
DeviceClaimArgsDict: TypeAlias = Mapping[str, Any]
|
|
1169
|
+
|
|
1170
|
+
@pulumi.input_type
|
|
1171
|
+
class DeviceClaimArgs:
|
|
1172
|
+
def __init__(__self__, *,
|
|
1173
|
+
config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]]] = None,
|
|
1174
|
+
constraints: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]]] = None,
|
|
1175
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]]] = None):
|
|
1176
|
+
"""
|
|
1177
|
+
DeviceClaim defines how to request devices with a ResourceClaim.
|
|
1178
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]] config: This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1179
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]] constraints: These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1180
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]] requests: Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1181
|
+
"""
|
|
1182
|
+
if config is not None:
|
|
1183
|
+
pulumi.set(__self__, "config", config)
|
|
1184
|
+
if constraints is not None:
|
|
1185
|
+
pulumi.set(__self__, "constraints", constraints)
|
|
1186
|
+
if requests is not None:
|
|
1187
|
+
pulumi.set(__self__, "requests", requests)
|
|
1188
|
+
|
|
1189
|
+
@property
|
|
1190
|
+
@pulumi.getter
|
|
1191
|
+
def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]]]:
|
|
1192
|
+
"""
|
|
1193
|
+
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
|
|
1194
|
+
"""
|
|
1195
|
+
return pulumi.get(self, "config")
|
|
1196
|
+
|
|
1197
|
+
@config.setter
|
|
1198
|
+
def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClaimConfigurationArgs']]]]):
|
|
1199
|
+
pulumi.set(self, "config", value)
|
|
1200
|
+
|
|
1201
|
+
@property
|
|
1202
|
+
@pulumi.getter
|
|
1203
|
+
def constraints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]]]:
|
|
1204
|
+
"""
|
|
1205
|
+
These constraints must be satisfied by the set of devices that get allocated for the claim.
|
|
1206
|
+
"""
|
|
1207
|
+
return pulumi.get(self, "constraints")
|
|
1208
|
+
|
|
1209
|
+
@constraints.setter
|
|
1210
|
+
def constraints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceConstraintArgs']]]]):
|
|
1211
|
+
pulumi.set(self, "constraints", value)
|
|
1212
|
+
|
|
1213
|
+
@property
|
|
1214
|
+
@pulumi.getter
|
|
1215
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]]]:
|
|
1216
|
+
"""
|
|
1217
|
+
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
|
|
1218
|
+
"""
|
|
1219
|
+
return pulumi.get(self, "requests")
|
|
1220
|
+
|
|
1221
|
+
@requests.setter
|
|
1222
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceRequestArgs']]]]):
|
|
1223
|
+
pulumi.set(self, "requests", value)
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
if not MYPY:
|
|
1227
|
+
class DeviceClassConfigurationPatchArgsDict(TypedDict):
|
|
1228
|
+
"""
|
|
1229
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1230
|
+
"""
|
|
1231
|
+
opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationPatchArgsDict']]
|
|
1232
|
+
"""
|
|
1233
|
+
Opaque provides driver-specific configuration parameters.
|
|
1234
|
+
"""
|
|
1235
|
+
elif False:
|
|
1236
|
+
DeviceClassConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1237
|
+
|
|
1238
|
+
@pulumi.input_type
|
|
1239
|
+
class DeviceClassConfigurationPatchArgs:
|
|
1240
|
+
def __init__(__self__, *,
|
|
1241
|
+
opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']] = None):
|
|
1242
|
+
"""
|
|
1243
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1244
|
+
:param pulumi.Input['OpaqueDeviceConfigurationPatchArgs'] opaque: Opaque provides driver-specific configuration parameters.
|
|
1245
|
+
"""
|
|
1246
|
+
if opaque is not None:
|
|
1247
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1248
|
+
|
|
1249
|
+
@property
|
|
1250
|
+
@pulumi.getter
|
|
1251
|
+
def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]:
|
|
1252
|
+
"""
|
|
1253
|
+
Opaque provides driver-specific configuration parameters.
|
|
1254
|
+
"""
|
|
1255
|
+
return pulumi.get(self, "opaque")
|
|
1256
|
+
|
|
1257
|
+
@opaque.setter
|
|
1258
|
+
def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationPatchArgs']]):
|
|
1259
|
+
pulumi.set(self, "opaque", value)
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
if not MYPY:
|
|
1263
|
+
class DeviceClassConfigurationArgsDict(TypedDict):
|
|
1264
|
+
"""
|
|
1265
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1266
|
+
"""
|
|
1267
|
+
opaque: NotRequired[pulumi.Input['OpaqueDeviceConfigurationArgsDict']]
|
|
1268
|
+
"""
|
|
1269
|
+
Opaque provides driver-specific configuration parameters.
|
|
1270
|
+
"""
|
|
1271
|
+
elif False:
|
|
1272
|
+
DeviceClassConfigurationArgsDict: TypeAlias = Mapping[str, Any]
|
|
1273
|
+
|
|
1274
|
+
@pulumi.input_type
|
|
1275
|
+
class DeviceClassConfigurationArgs:
|
|
1276
|
+
def __init__(__self__, *,
|
|
1277
|
+
opaque: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']] = None):
|
|
1278
|
+
"""
|
|
1279
|
+
DeviceClassConfiguration is used in DeviceClass.
|
|
1280
|
+
:param pulumi.Input['OpaqueDeviceConfigurationArgs'] opaque: Opaque provides driver-specific configuration parameters.
|
|
1281
|
+
"""
|
|
1282
|
+
if opaque is not None:
|
|
1283
|
+
pulumi.set(__self__, "opaque", opaque)
|
|
1284
|
+
|
|
1285
|
+
@property
|
|
1286
|
+
@pulumi.getter
|
|
1287
|
+
def opaque(self) -> Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]:
|
|
1288
|
+
"""
|
|
1289
|
+
Opaque provides driver-specific configuration parameters.
|
|
1290
|
+
"""
|
|
1291
|
+
return pulumi.get(self, "opaque")
|
|
1292
|
+
|
|
1293
|
+
@opaque.setter
|
|
1294
|
+
def opaque(self, value: Optional[pulumi.Input['OpaqueDeviceConfigurationArgs']]):
|
|
1295
|
+
pulumi.set(self, "opaque", value)
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
if not MYPY:
|
|
1299
|
+
class DeviceClassSpecPatchArgsDict(TypedDict):
|
|
1300
|
+
"""
|
|
1301
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1302
|
+
"""
|
|
1303
|
+
config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgsDict']]]]
|
|
1304
|
+
"""
|
|
1305
|
+
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.
|
|
1306
|
+
|
|
1307
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1308
|
+
"""
|
|
1309
|
+
selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgsDict']]]]
|
|
1310
|
+
"""
|
|
1311
|
+
Each selector must be satisfied by a device which is claimed via this class.
|
|
1312
|
+
"""
|
|
1313
|
+
elif False:
|
|
1314
|
+
DeviceClassSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1315
|
+
|
|
1316
|
+
@pulumi.input_type
|
|
1317
|
+
class DeviceClassSpecPatchArgs:
|
|
1318
|
+
def __init__(__self__, *,
|
|
1319
|
+
config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]]] = None,
|
|
1320
|
+
selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]] = None):
|
|
1321
|
+
"""
|
|
1322
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1323
|
+
:param pulumi.Input[Sequence[pulumi.Input['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.
|
|
1324
|
+
|
|
1325
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1326
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]] selectors: Each selector must be satisfied by a device which is claimed via this class.
|
|
1327
|
+
"""
|
|
1328
|
+
if config is not None:
|
|
1329
|
+
pulumi.set(__self__, "config", config)
|
|
1330
|
+
if selectors is not None:
|
|
1331
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
1332
|
+
|
|
1333
|
+
@property
|
|
1334
|
+
@pulumi.getter
|
|
1335
|
+
def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]]]:
|
|
1336
|
+
"""
|
|
1337
|
+
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.
|
|
1338
|
+
|
|
1339
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1340
|
+
"""
|
|
1341
|
+
return pulumi.get(self, "config")
|
|
1342
|
+
|
|
1343
|
+
@config.setter
|
|
1344
|
+
def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationPatchArgs']]]]):
|
|
1345
|
+
pulumi.set(self, "config", value)
|
|
1346
|
+
|
|
1347
|
+
@property
|
|
1348
|
+
@pulumi.getter
|
|
1349
|
+
def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]:
|
|
1350
|
+
"""
|
|
1351
|
+
Each selector must be satisfied by a device which is claimed via this class.
|
|
1352
|
+
"""
|
|
1353
|
+
return pulumi.get(self, "selectors")
|
|
1354
|
+
|
|
1355
|
+
@selectors.setter
|
|
1356
|
+
def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]):
|
|
1357
|
+
pulumi.set(self, "selectors", value)
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
if not MYPY:
|
|
1361
|
+
class DeviceClassSpecArgsDict(TypedDict):
|
|
1362
|
+
"""
|
|
1363
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1364
|
+
"""
|
|
1365
|
+
config: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgsDict']]]]
|
|
1366
|
+
"""
|
|
1367
|
+
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.
|
|
1368
|
+
|
|
1369
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1370
|
+
"""
|
|
1371
|
+
selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgsDict']]]]
|
|
1372
|
+
"""
|
|
1373
|
+
Each selector must be satisfied by a device which is claimed via this class.
|
|
1374
|
+
"""
|
|
1375
|
+
elif False:
|
|
1376
|
+
DeviceClassSpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
1377
|
+
|
|
1378
|
+
@pulumi.input_type
|
|
1379
|
+
class DeviceClassSpecArgs:
|
|
1380
|
+
def __init__(__self__, *,
|
|
1381
|
+
config: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]]] = None,
|
|
1382
|
+
selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]] = None):
|
|
1383
|
+
"""
|
|
1384
|
+
DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.
|
|
1385
|
+
:param pulumi.Input[Sequence[pulumi.Input['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.
|
|
1386
|
+
|
|
1387
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1388
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]] selectors: Each selector must be satisfied by a device which is claimed via this class.
|
|
1389
|
+
"""
|
|
1390
|
+
if config is not None:
|
|
1391
|
+
pulumi.set(__self__, "config", config)
|
|
1392
|
+
if selectors is not None:
|
|
1393
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
1394
|
+
|
|
1395
|
+
@property
|
|
1396
|
+
@pulumi.getter
|
|
1397
|
+
def config(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]]]:
|
|
1398
|
+
"""
|
|
1399
|
+
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.
|
|
1400
|
+
|
|
1401
|
+
They are passed to the driver, but are not considered while allocating the claim.
|
|
1402
|
+
"""
|
|
1403
|
+
return pulumi.get(self, "config")
|
|
1404
|
+
|
|
1405
|
+
@config.setter
|
|
1406
|
+
def config(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceClassConfigurationArgs']]]]):
|
|
1407
|
+
pulumi.set(self, "config", value)
|
|
1408
|
+
|
|
1409
|
+
@property
|
|
1410
|
+
@pulumi.getter
|
|
1411
|
+
def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]:
|
|
1412
|
+
"""
|
|
1413
|
+
Each selector must be satisfied by a device which is claimed via this class.
|
|
1414
|
+
"""
|
|
1415
|
+
return pulumi.get(self, "selectors")
|
|
1416
|
+
|
|
1417
|
+
@selectors.setter
|
|
1418
|
+
def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]):
|
|
1419
|
+
pulumi.set(self, "selectors", value)
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
if not MYPY:
|
|
1423
|
+
class DeviceClassArgsDict(TypedDict):
|
|
1424
|
+
"""
|
|
1425
|
+
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.
|
|
1426
|
+
|
|
1427
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
1428
|
+
"""
|
|
1429
|
+
spec: pulumi.Input['DeviceClassSpecArgsDict']
|
|
1430
|
+
"""
|
|
1431
|
+
Spec defines what can be allocated and how to configure it.
|
|
1432
|
+
|
|
1433
|
+
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.
|
|
1434
|
+
|
|
1435
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
1436
|
+
"""
|
|
1437
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
1438
|
+
"""
|
|
1439
|
+
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
|
|
1440
|
+
"""
|
|
1441
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
1442
|
+
"""
|
|
1443
|
+
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
|
|
1444
|
+
"""
|
|
1445
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
1446
|
+
"""
|
|
1447
|
+
Standard object metadata
|
|
1448
|
+
"""
|
|
1449
|
+
elif False:
|
|
1450
|
+
DeviceClassArgsDict: TypeAlias = Mapping[str, Any]
|
|
1451
|
+
|
|
1452
|
+
@pulumi.input_type
|
|
1453
|
+
class DeviceClassArgs:
|
|
1454
|
+
def __init__(__self__, *,
|
|
1455
|
+
spec: pulumi.Input['DeviceClassSpecArgs'],
|
|
1456
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
1457
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
1458
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
|
|
1459
|
+
"""
|
|
1460
|
+
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.
|
|
1461
|
+
|
|
1462
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
1463
|
+
:param pulumi.Input['DeviceClassSpecArgs'] spec: Spec defines what can be allocated and how to configure it.
|
|
1464
|
+
|
|
1465
|
+
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.
|
|
1466
|
+
|
|
1467
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
1468
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
1469
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
1470
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
|
|
1471
|
+
"""
|
|
1472
|
+
pulumi.set(__self__, "spec", spec)
|
|
1473
|
+
if api_version is not None:
|
|
1474
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
1475
|
+
if kind is not None:
|
|
1476
|
+
pulumi.set(__self__, "kind", 'DeviceClass')
|
|
1477
|
+
if metadata is not None:
|
|
1478
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
1479
|
+
|
|
1480
|
+
@property
|
|
1481
|
+
@pulumi.getter
|
|
1482
|
+
def spec(self) -> pulumi.Input['DeviceClassSpecArgs']:
|
|
1483
|
+
"""
|
|
1484
|
+
Spec defines what can be allocated and how to configure it.
|
|
1485
|
+
|
|
1486
|
+
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.
|
|
1487
|
+
|
|
1488
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
1489
|
+
"""
|
|
1490
|
+
return pulumi.get(self, "spec")
|
|
1491
|
+
|
|
1492
|
+
@spec.setter
|
|
1493
|
+
def spec(self, value: pulumi.Input['DeviceClassSpecArgs']):
|
|
1494
|
+
pulumi.set(self, "spec", value)
|
|
1495
|
+
|
|
1496
|
+
@property
|
|
1497
|
+
@pulumi.getter(name="apiVersion")
|
|
1498
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
1499
|
+
"""
|
|
1500
|
+
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
|
|
1501
|
+
"""
|
|
1502
|
+
return pulumi.get(self, "api_version")
|
|
1503
|
+
|
|
1504
|
+
@api_version.setter
|
|
1505
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
1506
|
+
pulumi.set(self, "api_version", value)
|
|
1507
|
+
|
|
1508
|
+
@property
|
|
1509
|
+
@pulumi.getter
|
|
1510
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
1511
|
+
"""
|
|
1512
|
+
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
|
|
1513
|
+
"""
|
|
1514
|
+
return pulumi.get(self, "kind")
|
|
1515
|
+
|
|
1516
|
+
@kind.setter
|
|
1517
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
1518
|
+
pulumi.set(self, "kind", value)
|
|
1519
|
+
|
|
1520
|
+
@property
|
|
1521
|
+
@pulumi.getter
|
|
1522
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
1523
|
+
"""
|
|
1524
|
+
Standard object metadata
|
|
1525
|
+
"""
|
|
1526
|
+
return pulumi.get(self, "metadata")
|
|
1527
|
+
|
|
1528
|
+
@metadata.setter
|
|
1529
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
1530
|
+
pulumi.set(self, "metadata", value)
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
if not MYPY:
|
|
1534
|
+
class DeviceConstraintPatchArgsDict(TypedDict):
|
|
1535
|
+
"""
|
|
1536
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1537
|
+
"""
|
|
1538
|
+
match_attribute: NotRequired[pulumi.Input[str]]
|
|
1539
|
+
"""
|
|
1540
|
+
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1541
|
+
|
|
1542
|
+
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.
|
|
1543
|
+
|
|
1544
|
+
Must include the domain qualifier.
|
|
1545
|
+
"""
|
|
1546
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
1547
|
+
"""
|
|
1548
|
+
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.
|
|
1549
|
+
"""
|
|
1550
|
+
elif False:
|
|
1551
|
+
DeviceConstraintPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1552
|
+
|
|
1553
|
+
@pulumi.input_type
|
|
1554
|
+
class DeviceConstraintPatchArgs:
|
|
1555
|
+
def __init__(__self__, *,
|
|
1556
|
+
match_attribute: Optional[pulumi.Input[str]] = None,
|
|
1557
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
1558
|
+
"""
|
|
1559
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1560
|
+
:param pulumi.Input[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.
|
|
1561
|
+
|
|
1562
|
+
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.
|
|
1563
|
+
|
|
1564
|
+
Must include the domain qualifier.
|
|
1565
|
+
:param pulumi.Input[Sequence[pulumi.Input[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.
|
|
1566
|
+
"""
|
|
1567
|
+
if match_attribute is not None:
|
|
1568
|
+
pulumi.set(__self__, "match_attribute", match_attribute)
|
|
1569
|
+
if requests is not None:
|
|
1570
|
+
pulumi.set(__self__, "requests", requests)
|
|
1571
|
+
|
|
1572
|
+
@property
|
|
1573
|
+
@pulumi.getter(name="matchAttribute")
|
|
1574
|
+
def match_attribute(self) -> Optional[pulumi.Input[str]]:
|
|
1575
|
+
"""
|
|
1576
|
+
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1577
|
+
|
|
1578
|
+
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.
|
|
1579
|
+
|
|
1580
|
+
Must include the domain qualifier.
|
|
1581
|
+
"""
|
|
1582
|
+
return pulumi.get(self, "match_attribute")
|
|
1583
|
+
|
|
1584
|
+
@match_attribute.setter
|
|
1585
|
+
def match_attribute(self, value: Optional[pulumi.Input[str]]):
|
|
1586
|
+
pulumi.set(self, "match_attribute", value)
|
|
1587
|
+
|
|
1588
|
+
@property
|
|
1589
|
+
@pulumi.getter
|
|
1590
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1591
|
+
"""
|
|
1592
|
+
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.
|
|
1593
|
+
"""
|
|
1594
|
+
return pulumi.get(self, "requests")
|
|
1595
|
+
|
|
1596
|
+
@requests.setter
|
|
1597
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
1598
|
+
pulumi.set(self, "requests", value)
|
|
1599
|
+
|
|
1600
|
+
|
|
1601
|
+
if not MYPY:
|
|
1602
|
+
class DeviceConstraintArgsDict(TypedDict):
|
|
1603
|
+
"""
|
|
1604
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1605
|
+
"""
|
|
1606
|
+
match_attribute: NotRequired[pulumi.Input[str]]
|
|
1607
|
+
"""
|
|
1608
|
+
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1609
|
+
|
|
1610
|
+
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.
|
|
1611
|
+
|
|
1612
|
+
Must include the domain qualifier.
|
|
1613
|
+
"""
|
|
1614
|
+
requests: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
1615
|
+
"""
|
|
1616
|
+
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.
|
|
1617
|
+
"""
|
|
1618
|
+
elif False:
|
|
1619
|
+
DeviceConstraintArgsDict: TypeAlias = Mapping[str, Any]
|
|
1620
|
+
|
|
1621
|
+
@pulumi.input_type
|
|
1622
|
+
class DeviceConstraintArgs:
|
|
1623
|
+
def __init__(__self__, *,
|
|
1624
|
+
match_attribute: Optional[pulumi.Input[str]] = None,
|
|
1625
|
+
requests: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
1626
|
+
"""
|
|
1627
|
+
DeviceConstraint must have exactly one field set besides Requests.
|
|
1628
|
+
:param pulumi.Input[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.
|
|
1629
|
+
|
|
1630
|
+
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.
|
|
1631
|
+
|
|
1632
|
+
Must include the domain qualifier.
|
|
1633
|
+
:param pulumi.Input[Sequence[pulumi.Input[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.
|
|
1634
|
+
"""
|
|
1635
|
+
if match_attribute is not None:
|
|
1636
|
+
pulumi.set(__self__, "match_attribute", match_attribute)
|
|
1637
|
+
if requests is not None:
|
|
1638
|
+
pulumi.set(__self__, "requests", requests)
|
|
1639
|
+
|
|
1640
|
+
@property
|
|
1641
|
+
@pulumi.getter(name="matchAttribute")
|
|
1642
|
+
def match_attribute(self) -> Optional[pulumi.Input[str]]:
|
|
1643
|
+
"""
|
|
1644
|
+
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.
|
|
1645
|
+
|
|
1646
|
+
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.
|
|
1647
|
+
|
|
1648
|
+
Must include the domain qualifier.
|
|
1649
|
+
"""
|
|
1650
|
+
return pulumi.get(self, "match_attribute")
|
|
1651
|
+
|
|
1652
|
+
@match_attribute.setter
|
|
1653
|
+
def match_attribute(self, value: Optional[pulumi.Input[str]]):
|
|
1654
|
+
pulumi.set(self, "match_attribute", value)
|
|
1655
|
+
|
|
1656
|
+
@property
|
|
1657
|
+
@pulumi.getter
|
|
1658
|
+
def requests(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
1659
|
+
"""
|
|
1660
|
+
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.
|
|
1661
|
+
"""
|
|
1662
|
+
return pulumi.get(self, "requests")
|
|
1663
|
+
|
|
1664
|
+
@requests.setter
|
|
1665
|
+
def requests(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
1666
|
+
pulumi.set(self, "requests", value)
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
if not MYPY:
|
|
1670
|
+
class DevicePatchArgsDict(TypedDict):
|
|
1671
|
+
"""
|
|
1672
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
1673
|
+
"""
|
|
1674
|
+
basic: NotRequired[pulumi.Input['BasicDevicePatchArgsDict']]
|
|
1675
|
+
"""
|
|
1676
|
+
Basic defines one device instance.
|
|
1677
|
+
"""
|
|
1678
|
+
name: NotRequired[pulumi.Input[str]]
|
|
1679
|
+
"""
|
|
1680
|
+
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1681
|
+
"""
|
|
1682
|
+
elif False:
|
|
1683
|
+
DevicePatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1684
|
+
|
|
1685
|
+
@pulumi.input_type
|
|
1686
|
+
class DevicePatchArgs:
|
|
1687
|
+
def __init__(__self__, *,
|
|
1688
|
+
basic: Optional[pulumi.Input['BasicDevicePatchArgs']] = None,
|
|
1689
|
+
name: Optional[pulumi.Input[str]] = None):
|
|
1690
|
+
"""
|
|
1691
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
1692
|
+
:param pulumi.Input['BasicDevicePatchArgs'] basic: Basic defines one device instance.
|
|
1693
|
+
:param pulumi.Input[str] name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1694
|
+
"""
|
|
1695
|
+
if basic is not None:
|
|
1696
|
+
pulumi.set(__self__, "basic", basic)
|
|
1697
|
+
if name is not None:
|
|
1698
|
+
pulumi.set(__self__, "name", name)
|
|
1699
|
+
|
|
1700
|
+
@property
|
|
1701
|
+
@pulumi.getter
|
|
1702
|
+
def basic(self) -> Optional[pulumi.Input['BasicDevicePatchArgs']]:
|
|
1703
|
+
"""
|
|
1704
|
+
Basic defines one device instance.
|
|
1705
|
+
"""
|
|
1706
|
+
return pulumi.get(self, "basic")
|
|
1707
|
+
|
|
1708
|
+
@basic.setter
|
|
1709
|
+
def basic(self, value: Optional[pulumi.Input['BasicDevicePatchArgs']]):
|
|
1710
|
+
pulumi.set(self, "basic", value)
|
|
1711
|
+
|
|
1712
|
+
@property
|
|
1713
|
+
@pulumi.getter
|
|
1714
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
1715
|
+
"""
|
|
1716
|
+
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
1717
|
+
"""
|
|
1718
|
+
return pulumi.get(self, "name")
|
|
1719
|
+
|
|
1720
|
+
@name.setter
|
|
1721
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
1722
|
+
pulumi.set(self, "name", value)
|
|
1723
|
+
|
|
1724
|
+
|
|
1725
|
+
if not MYPY:
|
|
1726
|
+
class DeviceRequestAllocationResultArgsDict(TypedDict):
|
|
1727
|
+
"""
|
|
1728
|
+
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
1729
|
+
"""
|
|
1730
|
+
device: pulumi.Input[str]
|
|
1731
|
+
"""
|
|
1732
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
1733
|
+
"""
|
|
1734
|
+
driver: pulumi.Input[str]
|
|
1735
|
+
"""
|
|
1736
|
+
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.
|
|
1737
|
+
|
|
1738
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
1739
|
+
"""
|
|
1740
|
+
pool: pulumi.Input[str]
|
|
1741
|
+
"""
|
|
1742
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
1743
|
+
|
|
1744
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
1745
|
+
"""
|
|
1746
|
+
request: pulumi.Input[str]
|
|
1747
|
+
"""
|
|
1748
|
+
Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
|
|
1749
|
+
"""
|
|
1750
|
+
admin_access: NotRequired[pulumi.Input[bool]]
|
|
1751
|
+
"""
|
|
1752
|
+
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1753
|
+
|
|
1754
|
+
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.
|
|
1755
|
+
"""
|
|
1756
|
+
elif False:
|
|
1757
|
+
DeviceRequestAllocationResultArgsDict: TypeAlias = Mapping[str, Any]
|
|
1758
|
+
|
|
1759
|
+
@pulumi.input_type
|
|
1760
|
+
class DeviceRequestAllocationResultArgs:
|
|
1761
|
+
def __init__(__self__, *,
|
|
1762
|
+
device: pulumi.Input[str],
|
|
1763
|
+
driver: pulumi.Input[str],
|
|
1764
|
+
pool: pulumi.Input[str],
|
|
1765
|
+
request: pulumi.Input[str],
|
|
1766
|
+
admin_access: Optional[pulumi.Input[bool]] = None):
|
|
1767
|
+
"""
|
|
1768
|
+
DeviceRequestAllocationResult contains the allocation result for one request.
|
|
1769
|
+
:param pulumi.Input[str] device: Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
1770
|
+
:param pulumi.Input[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.
|
|
1771
|
+
|
|
1772
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
1773
|
+
:param pulumi.Input[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>`).
|
|
1774
|
+
|
|
1775
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
1776
|
+
:param pulumi.Input[str] request: Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
|
|
1777
|
+
:param pulumi.Input[bool] admin_access: AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1778
|
+
|
|
1779
|
+
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.
|
|
1780
|
+
"""
|
|
1781
|
+
pulumi.set(__self__, "device", device)
|
|
1782
|
+
pulumi.set(__self__, "driver", driver)
|
|
1783
|
+
pulumi.set(__self__, "pool", pool)
|
|
1784
|
+
pulumi.set(__self__, "request", request)
|
|
1785
|
+
if admin_access is not None:
|
|
1786
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
1787
|
+
|
|
1788
|
+
@property
|
|
1789
|
+
@pulumi.getter
|
|
1790
|
+
def device(self) -> pulumi.Input[str]:
|
|
1791
|
+
"""
|
|
1792
|
+
Device references one device instance via its name in the driver's resource pool. It must be a DNS label.
|
|
1793
|
+
"""
|
|
1794
|
+
return pulumi.get(self, "device")
|
|
1795
|
+
|
|
1796
|
+
@device.setter
|
|
1797
|
+
def device(self, value: pulumi.Input[str]):
|
|
1798
|
+
pulumi.set(self, "device", value)
|
|
1799
|
+
|
|
1800
|
+
@property
|
|
1801
|
+
@pulumi.getter
|
|
1802
|
+
def driver(self) -> pulumi.Input[str]:
|
|
1803
|
+
"""
|
|
1804
|
+
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.
|
|
1805
|
+
|
|
1806
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
1807
|
+
"""
|
|
1808
|
+
return pulumi.get(self, "driver")
|
|
1809
|
+
|
|
1810
|
+
@driver.setter
|
|
1811
|
+
def driver(self, value: pulumi.Input[str]):
|
|
1812
|
+
pulumi.set(self, "driver", value)
|
|
1813
|
+
|
|
1814
|
+
@property
|
|
1815
|
+
@pulumi.getter
|
|
1816
|
+
def pool(self) -> pulumi.Input[str]:
|
|
1817
|
+
"""
|
|
1818
|
+
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`).
|
|
1819
|
+
|
|
1820
|
+
Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes.
|
|
1821
|
+
"""
|
|
1822
|
+
return pulumi.get(self, "pool")
|
|
1823
|
+
|
|
1824
|
+
@pool.setter
|
|
1825
|
+
def pool(self, value: pulumi.Input[str]):
|
|
1826
|
+
pulumi.set(self, "pool", value)
|
|
1827
|
+
|
|
1828
|
+
@property
|
|
1829
|
+
@pulumi.getter
|
|
1830
|
+
def request(self) -> pulumi.Input[str]:
|
|
1831
|
+
"""
|
|
1832
|
+
Request is the name of the request in the claim which caused this device to be allocated. Multiple devices may have been allocated per request.
|
|
1833
|
+
"""
|
|
1834
|
+
return pulumi.get(self, "request")
|
|
1835
|
+
|
|
1836
|
+
@request.setter
|
|
1837
|
+
def request(self, value: pulumi.Input[str]):
|
|
1838
|
+
pulumi.set(self, "request", value)
|
|
1839
|
+
|
|
1840
|
+
@property
|
|
1841
|
+
@pulumi.getter(name="adminAccess")
|
|
1842
|
+
def admin_access(self) -> Optional[pulumi.Input[bool]]:
|
|
1843
|
+
"""
|
|
1844
|
+
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.
|
|
1845
|
+
|
|
1846
|
+
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.
|
|
1847
|
+
"""
|
|
1848
|
+
return pulumi.get(self, "admin_access")
|
|
1849
|
+
|
|
1850
|
+
@admin_access.setter
|
|
1851
|
+
def admin_access(self, value: Optional[pulumi.Input[bool]]):
|
|
1852
|
+
pulumi.set(self, "admin_access", value)
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
if not MYPY:
|
|
1856
|
+
class DeviceRequestPatchArgsDict(TypedDict):
|
|
1857
|
+
"""
|
|
1858
|
+
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.
|
|
1859
|
+
|
|
1860
|
+
A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
|
|
1861
|
+
"""
|
|
1862
|
+
admin_access: NotRequired[pulumi.Input[bool]]
|
|
1863
|
+
"""
|
|
1864
|
+
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.
|
|
1865
|
+
|
|
1866
|
+
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.
|
|
1867
|
+
"""
|
|
1868
|
+
allocation_mode: NotRequired[pulumi.Input[str]]
|
|
1869
|
+
"""
|
|
1870
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
1871
|
+
|
|
1872
|
+
- ExactCount: This request is for a specific number of devices.
|
|
1873
|
+
This is the default. The exact number is provided in the
|
|
1874
|
+
count field.
|
|
1875
|
+
|
|
1876
|
+
- All: This request is for all of the matching devices in a pool.
|
|
1877
|
+
Allocation will fail if some devices are already allocated,
|
|
1878
|
+
unless adminAccess is requested.
|
|
1879
|
+
|
|
1880
|
+
If AlloctionMode 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.
|
|
1881
|
+
|
|
1882
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
1883
|
+
"""
|
|
1884
|
+
count: NotRequired[pulumi.Input[int]]
|
|
1885
|
+
"""
|
|
1886
|
+
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.
|
|
1887
|
+
"""
|
|
1888
|
+
device_class_name: NotRequired[pulumi.Input[str]]
|
|
1889
|
+
"""
|
|
1890
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
1891
|
+
|
|
1892
|
+
A class is required. Which classes are available depends on the cluster.
|
|
1893
|
+
|
|
1894
|
+
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.
|
|
1895
|
+
"""
|
|
1896
|
+
name: NotRequired[pulumi.Input[str]]
|
|
1897
|
+
"""
|
|
1898
|
+
Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
1899
|
+
|
|
1900
|
+
Must be a DNS label.
|
|
1901
|
+
"""
|
|
1902
|
+
selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgsDict']]]]
|
|
1903
|
+
"""
|
|
1904
|
+
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.
|
|
1905
|
+
"""
|
|
1906
|
+
elif False:
|
|
1907
|
+
DeviceRequestPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
1908
|
+
|
|
1909
|
+
@pulumi.input_type
|
|
1910
|
+
class DeviceRequestPatchArgs:
|
|
1911
|
+
def __init__(__self__, *,
|
|
1912
|
+
admin_access: Optional[pulumi.Input[bool]] = None,
|
|
1913
|
+
allocation_mode: Optional[pulumi.Input[str]] = None,
|
|
1914
|
+
count: Optional[pulumi.Input[int]] = None,
|
|
1915
|
+
device_class_name: Optional[pulumi.Input[str]] = None,
|
|
1916
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
1917
|
+
selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]] = None):
|
|
1918
|
+
"""
|
|
1919
|
+
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.
|
|
1920
|
+
|
|
1921
|
+
A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
|
|
1922
|
+
:param pulumi.Input[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.
|
|
1923
|
+
|
|
1924
|
+
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.
|
|
1925
|
+
:param pulumi.Input[str] allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
1926
|
+
|
|
1927
|
+
- ExactCount: This request is for a specific number of devices.
|
|
1928
|
+
This is the default. The exact number is provided in the
|
|
1929
|
+
count field.
|
|
1930
|
+
|
|
1931
|
+
- All: This request is for all of the matching devices in a pool.
|
|
1932
|
+
Allocation will fail if some devices are already allocated,
|
|
1933
|
+
unless adminAccess is requested.
|
|
1934
|
+
|
|
1935
|
+
If AlloctionMode 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.
|
|
1936
|
+
|
|
1937
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
1938
|
+
:param pulumi.Input[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.
|
|
1939
|
+
:param pulumi.Input[str] device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
1940
|
+
|
|
1941
|
+
A class is required. Which classes are available depends on the cluster.
|
|
1942
|
+
|
|
1943
|
+
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.
|
|
1944
|
+
:param pulumi.Input[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.
|
|
1945
|
+
|
|
1946
|
+
Must be a DNS label.
|
|
1947
|
+
:param pulumi.Input[Sequence[pulumi.Input['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.
|
|
1948
|
+
"""
|
|
1949
|
+
if admin_access is not None:
|
|
1950
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
1951
|
+
if allocation_mode is not None:
|
|
1952
|
+
pulumi.set(__self__, "allocation_mode", allocation_mode)
|
|
1953
|
+
if count is not None:
|
|
1954
|
+
pulumi.set(__self__, "count", count)
|
|
1955
|
+
if device_class_name is not None:
|
|
1956
|
+
pulumi.set(__self__, "device_class_name", device_class_name)
|
|
1957
|
+
if name is not None:
|
|
1958
|
+
pulumi.set(__self__, "name", name)
|
|
1959
|
+
if selectors is not None:
|
|
1960
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
1961
|
+
|
|
1962
|
+
@property
|
|
1963
|
+
@pulumi.getter(name="adminAccess")
|
|
1964
|
+
def admin_access(self) -> Optional[pulumi.Input[bool]]:
|
|
1965
|
+
"""
|
|
1966
|
+
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.
|
|
1967
|
+
|
|
1968
|
+
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.
|
|
1969
|
+
"""
|
|
1970
|
+
return pulumi.get(self, "admin_access")
|
|
1971
|
+
|
|
1972
|
+
@admin_access.setter
|
|
1973
|
+
def admin_access(self, value: Optional[pulumi.Input[bool]]):
|
|
1974
|
+
pulumi.set(self, "admin_access", value)
|
|
1975
|
+
|
|
1976
|
+
@property
|
|
1977
|
+
@pulumi.getter(name="allocationMode")
|
|
1978
|
+
def allocation_mode(self) -> Optional[pulumi.Input[str]]:
|
|
1979
|
+
"""
|
|
1980
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
1981
|
+
|
|
1982
|
+
- ExactCount: This request is for a specific number of devices.
|
|
1983
|
+
This is the default. The exact number is provided in the
|
|
1984
|
+
count field.
|
|
1985
|
+
|
|
1986
|
+
- All: This request is for all of the matching devices in a pool.
|
|
1987
|
+
Allocation will fail if some devices are already allocated,
|
|
1988
|
+
unless adminAccess is requested.
|
|
1989
|
+
|
|
1990
|
+
If AlloctionMode 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.
|
|
1991
|
+
|
|
1992
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
1993
|
+
"""
|
|
1994
|
+
return pulumi.get(self, "allocation_mode")
|
|
1995
|
+
|
|
1996
|
+
@allocation_mode.setter
|
|
1997
|
+
def allocation_mode(self, value: Optional[pulumi.Input[str]]):
|
|
1998
|
+
pulumi.set(self, "allocation_mode", value)
|
|
1999
|
+
|
|
2000
|
+
@property
|
|
2001
|
+
@pulumi.getter
|
|
2002
|
+
def count(self) -> Optional[pulumi.Input[int]]:
|
|
2003
|
+
"""
|
|
2004
|
+
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.
|
|
2005
|
+
"""
|
|
2006
|
+
return pulumi.get(self, "count")
|
|
2007
|
+
|
|
2008
|
+
@count.setter
|
|
2009
|
+
def count(self, value: Optional[pulumi.Input[int]]):
|
|
2010
|
+
pulumi.set(self, "count", value)
|
|
2011
|
+
|
|
2012
|
+
@property
|
|
2013
|
+
@pulumi.getter(name="deviceClassName")
|
|
2014
|
+
def device_class_name(self) -> Optional[pulumi.Input[str]]:
|
|
2015
|
+
"""
|
|
2016
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2017
|
+
|
|
2018
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2019
|
+
|
|
2020
|
+
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.
|
|
2021
|
+
"""
|
|
2022
|
+
return pulumi.get(self, "device_class_name")
|
|
2023
|
+
|
|
2024
|
+
@device_class_name.setter
|
|
2025
|
+
def device_class_name(self, value: Optional[pulumi.Input[str]]):
|
|
2026
|
+
pulumi.set(self, "device_class_name", value)
|
|
2027
|
+
|
|
2028
|
+
@property
|
|
2029
|
+
@pulumi.getter
|
|
2030
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
2031
|
+
"""
|
|
2032
|
+
Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
2033
|
+
|
|
2034
|
+
Must be a DNS label.
|
|
2035
|
+
"""
|
|
2036
|
+
return pulumi.get(self, "name")
|
|
2037
|
+
|
|
2038
|
+
@name.setter
|
|
2039
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
2040
|
+
pulumi.set(self, "name", value)
|
|
2041
|
+
|
|
2042
|
+
@property
|
|
2043
|
+
@pulumi.getter
|
|
2044
|
+
def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]:
|
|
2045
|
+
"""
|
|
2046
|
+
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.
|
|
2047
|
+
"""
|
|
2048
|
+
return pulumi.get(self, "selectors")
|
|
2049
|
+
|
|
2050
|
+
@selectors.setter
|
|
2051
|
+
def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorPatchArgs']]]]):
|
|
2052
|
+
pulumi.set(self, "selectors", value)
|
|
2053
|
+
|
|
2054
|
+
|
|
2055
|
+
if not MYPY:
|
|
2056
|
+
class DeviceRequestArgsDict(TypedDict):
|
|
2057
|
+
"""
|
|
2058
|
+
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.
|
|
2059
|
+
|
|
2060
|
+
A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
|
|
2061
|
+
"""
|
|
2062
|
+
device_class_name: pulumi.Input[str]
|
|
2063
|
+
"""
|
|
2064
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2065
|
+
|
|
2066
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2067
|
+
|
|
2068
|
+
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.
|
|
2069
|
+
"""
|
|
2070
|
+
name: pulumi.Input[str]
|
|
2071
|
+
"""
|
|
2072
|
+
Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
2073
|
+
|
|
2074
|
+
Must be a DNS label.
|
|
2075
|
+
"""
|
|
2076
|
+
admin_access: NotRequired[pulumi.Input[bool]]
|
|
2077
|
+
"""
|
|
2078
|
+
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.
|
|
2079
|
+
|
|
2080
|
+
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.
|
|
2081
|
+
"""
|
|
2082
|
+
allocation_mode: NotRequired[pulumi.Input[str]]
|
|
2083
|
+
"""
|
|
2084
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
2085
|
+
|
|
2086
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2087
|
+
This is the default. The exact number is provided in the
|
|
2088
|
+
count field.
|
|
2089
|
+
|
|
2090
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2091
|
+
Allocation will fail if some devices are already allocated,
|
|
2092
|
+
unless adminAccess is requested.
|
|
2093
|
+
|
|
2094
|
+
If AlloctionMode 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.
|
|
2095
|
+
|
|
2096
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2097
|
+
"""
|
|
2098
|
+
count: NotRequired[pulumi.Input[int]]
|
|
2099
|
+
"""
|
|
2100
|
+
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.
|
|
2101
|
+
"""
|
|
2102
|
+
selectors: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgsDict']]]]
|
|
2103
|
+
"""
|
|
2104
|
+
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.
|
|
2105
|
+
"""
|
|
2106
|
+
elif False:
|
|
2107
|
+
DeviceRequestArgsDict: TypeAlias = Mapping[str, Any]
|
|
2108
|
+
|
|
2109
|
+
@pulumi.input_type
|
|
2110
|
+
class DeviceRequestArgs:
|
|
2111
|
+
def __init__(__self__, *,
|
|
2112
|
+
device_class_name: pulumi.Input[str],
|
|
2113
|
+
name: pulumi.Input[str],
|
|
2114
|
+
admin_access: Optional[pulumi.Input[bool]] = None,
|
|
2115
|
+
allocation_mode: Optional[pulumi.Input[str]] = None,
|
|
2116
|
+
count: Optional[pulumi.Input[int]] = None,
|
|
2117
|
+
selectors: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]] = None):
|
|
2118
|
+
"""
|
|
2119
|
+
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.
|
|
2120
|
+
|
|
2121
|
+
A DeviceClassName is currently required. Clients must check that it is indeed set. It's absence indicates that something changed in a way that is not supported by the client yet, in which case it must refuse to handle the request.
|
|
2122
|
+
:param pulumi.Input[str] device_class_name: DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2123
|
+
|
|
2124
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2125
|
+
|
|
2126
|
+
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.
|
|
2127
|
+
:param pulumi.Input[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.
|
|
2128
|
+
|
|
2129
|
+
Must be a DNS label.
|
|
2130
|
+
:param pulumi.Input[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.
|
|
2131
|
+
|
|
2132
|
+
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.
|
|
2133
|
+
:param pulumi.Input[str] allocation_mode: AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
2134
|
+
|
|
2135
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2136
|
+
This is the default. The exact number is provided in the
|
|
2137
|
+
count field.
|
|
2138
|
+
|
|
2139
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2140
|
+
Allocation will fail if some devices are already allocated,
|
|
2141
|
+
unless adminAccess is requested.
|
|
2142
|
+
|
|
2143
|
+
If AlloctionMode 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.
|
|
2144
|
+
|
|
2145
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2146
|
+
:param pulumi.Input[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.
|
|
2147
|
+
:param pulumi.Input[Sequence[pulumi.Input['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.
|
|
2148
|
+
"""
|
|
2149
|
+
pulumi.set(__self__, "device_class_name", device_class_name)
|
|
2150
|
+
pulumi.set(__self__, "name", name)
|
|
2151
|
+
if admin_access is not None:
|
|
2152
|
+
pulumi.set(__self__, "admin_access", admin_access)
|
|
2153
|
+
if allocation_mode is not None:
|
|
2154
|
+
pulumi.set(__self__, "allocation_mode", allocation_mode)
|
|
2155
|
+
if count is not None:
|
|
2156
|
+
pulumi.set(__self__, "count", count)
|
|
2157
|
+
if selectors is not None:
|
|
2158
|
+
pulumi.set(__self__, "selectors", selectors)
|
|
2159
|
+
|
|
2160
|
+
@property
|
|
2161
|
+
@pulumi.getter(name="deviceClassName")
|
|
2162
|
+
def device_class_name(self) -> pulumi.Input[str]:
|
|
2163
|
+
"""
|
|
2164
|
+
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request.
|
|
2165
|
+
|
|
2166
|
+
A class is required. Which classes are available depends on the cluster.
|
|
2167
|
+
|
|
2168
|
+
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.
|
|
2169
|
+
"""
|
|
2170
|
+
return pulumi.get(self, "device_class_name")
|
|
2171
|
+
|
|
2172
|
+
@device_class_name.setter
|
|
2173
|
+
def device_class_name(self, value: pulumi.Input[str]):
|
|
2174
|
+
pulumi.set(self, "device_class_name", value)
|
|
2175
|
+
|
|
2176
|
+
@property
|
|
2177
|
+
@pulumi.getter
|
|
2178
|
+
def name(self) -> pulumi.Input[str]:
|
|
2179
|
+
"""
|
|
2180
|
+
Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim.
|
|
2181
|
+
|
|
2182
|
+
Must be a DNS label.
|
|
2183
|
+
"""
|
|
2184
|
+
return pulumi.get(self, "name")
|
|
2185
|
+
|
|
2186
|
+
@name.setter
|
|
2187
|
+
def name(self, value: pulumi.Input[str]):
|
|
2188
|
+
pulumi.set(self, "name", value)
|
|
2189
|
+
|
|
2190
|
+
@property
|
|
2191
|
+
@pulumi.getter(name="adminAccess")
|
|
2192
|
+
def admin_access(self) -> Optional[pulumi.Input[bool]]:
|
|
2193
|
+
"""
|
|
2194
|
+
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.
|
|
2195
|
+
|
|
2196
|
+
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.
|
|
2197
|
+
"""
|
|
2198
|
+
return pulumi.get(self, "admin_access")
|
|
2199
|
+
|
|
2200
|
+
@admin_access.setter
|
|
2201
|
+
def admin_access(self, value: Optional[pulumi.Input[bool]]):
|
|
2202
|
+
pulumi.set(self, "admin_access", value)
|
|
2203
|
+
|
|
2204
|
+
@property
|
|
2205
|
+
@pulumi.getter(name="allocationMode")
|
|
2206
|
+
def allocation_mode(self) -> Optional[pulumi.Input[str]]:
|
|
2207
|
+
"""
|
|
2208
|
+
AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are:
|
|
2209
|
+
|
|
2210
|
+
- ExactCount: This request is for a specific number of devices.
|
|
2211
|
+
This is the default. The exact number is provided in the
|
|
2212
|
+
count field.
|
|
2213
|
+
|
|
2214
|
+
- All: This request is for all of the matching devices in a pool.
|
|
2215
|
+
Allocation will fail if some devices are already allocated,
|
|
2216
|
+
unless adminAccess is requested.
|
|
2217
|
+
|
|
2218
|
+
If AlloctionMode 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.
|
|
2219
|
+
|
|
2220
|
+
More modes may get added in the future. Clients must refuse to handle requests with unknown modes.
|
|
2221
|
+
"""
|
|
2222
|
+
return pulumi.get(self, "allocation_mode")
|
|
2223
|
+
|
|
2224
|
+
@allocation_mode.setter
|
|
2225
|
+
def allocation_mode(self, value: Optional[pulumi.Input[str]]):
|
|
2226
|
+
pulumi.set(self, "allocation_mode", value)
|
|
2227
|
+
|
|
2228
|
+
@property
|
|
2229
|
+
@pulumi.getter
|
|
2230
|
+
def count(self) -> Optional[pulumi.Input[int]]:
|
|
2231
|
+
"""
|
|
2232
|
+
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.
|
|
2233
|
+
"""
|
|
2234
|
+
return pulumi.get(self, "count")
|
|
2235
|
+
|
|
2236
|
+
@count.setter
|
|
2237
|
+
def count(self, value: Optional[pulumi.Input[int]]):
|
|
2238
|
+
pulumi.set(self, "count", value)
|
|
2239
|
+
|
|
2240
|
+
@property
|
|
2241
|
+
@pulumi.getter
|
|
2242
|
+
def selectors(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]:
|
|
2243
|
+
"""
|
|
2244
|
+
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.
|
|
2245
|
+
"""
|
|
2246
|
+
return pulumi.get(self, "selectors")
|
|
2247
|
+
|
|
2248
|
+
@selectors.setter
|
|
2249
|
+
def selectors(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceSelectorArgs']]]]):
|
|
2250
|
+
pulumi.set(self, "selectors", value)
|
|
2251
|
+
|
|
2252
|
+
|
|
2253
|
+
if not MYPY:
|
|
2254
|
+
class DeviceSelectorPatchArgsDict(TypedDict):
|
|
2255
|
+
"""
|
|
2256
|
+
DeviceSelector must have exactly one field set.
|
|
2257
|
+
"""
|
|
2258
|
+
cel: NotRequired[pulumi.Input['CELDeviceSelectorPatchArgsDict']]
|
|
2259
|
+
"""
|
|
2260
|
+
CEL contains a CEL expression for selecting a device.
|
|
2261
|
+
"""
|
|
2262
|
+
elif False:
|
|
2263
|
+
DeviceSelectorPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2264
|
+
|
|
2265
|
+
@pulumi.input_type
|
|
2266
|
+
class DeviceSelectorPatchArgs:
|
|
2267
|
+
def __init__(__self__, *,
|
|
2268
|
+
cel: Optional[pulumi.Input['CELDeviceSelectorPatchArgs']] = None):
|
|
2269
|
+
"""
|
|
2270
|
+
DeviceSelector must have exactly one field set.
|
|
2271
|
+
:param pulumi.Input['CELDeviceSelectorPatchArgs'] cel: CEL contains a CEL expression for selecting a device.
|
|
2272
|
+
"""
|
|
2273
|
+
if cel is not None:
|
|
2274
|
+
pulumi.set(__self__, "cel", cel)
|
|
2275
|
+
|
|
2276
|
+
@property
|
|
2277
|
+
@pulumi.getter
|
|
2278
|
+
def cel(self) -> Optional[pulumi.Input['CELDeviceSelectorPatchArgs']]:
|
|
2279
|
+
"""
|
|
2280
|
+
CEL contains a CEL expression for selecting a device.
|
|
2281
|
+
"""
|
|
2282
|
+
return pulumi.get(self, "cel")
|
|
2283
|
+
|
|
2284
|
+
@cel.setter
|
|
2285
|
+
def cel(self, value: Optional[pulumi.Input['CELDeviceSelectorPatchArgs']]):
|
|
2286
|
+
pulumi.set(self, "cel", value)
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
if not MYPY:
|
|
2290
|
+
class DeviceSelectorArgsDict(TypedDict):
|
|
2291
|
+
"""
|
|
2292
|
+
DeviceSelector must have exactly one field set.
|
|
2293
|
+
"""
|
|
2294
|
+
cel: NotRequired[pulumi.Input['CELDeviceSelectorArgsDict']]
|
|
2295
|
+
"""
|
|
2296
|
+
CEL contains a CEL expression for selecting a device.
|
|
2297
|
+
"""
|
|
2298
|
+
elif False:
|
|
2299
|
+
DeviceSelectorArgsDict: TypeAlias = Mapping[str, Any]
|
|
2300
|
+
|
|
2301
|
+
@pulumi.input_type
|
|
2302
|
+
class DeviceSelectorArgs:
|
|
2303
|
+
def __init__(__self__, *,
|
|
2304
|
+
cel: Optional[pulumi.Input['CELDeviceSelectorArgs']] = None):
|
|
2305
|
+
"""
|
|
2306
|
+
DeviceSelector must have exactly one field set.
|
|
2307
|
+
:param pulumi.Input['CELDeviceSelectorArgs'] cel: CEL contains a CEL expression for selecting a device.
|
|
2308
|
+
"""
|
|
2309
|
+
if cel is not None:
|
|
2310
|
+
pulumi.set(__self__, "cel", cel)
|
|
2311
|
+
|
|
2312
|
+
@property
|
|
2313
|
+
@pulumi.getter
|
|
2314
|
+
def cel(self) -> Optional[pulumi.Input['CELDeviceSelectorArgs']]:
|
|
2315
|
+
"""
|
|
2316
|
+
CEL contains a CEL expression for selecting a device.
|
|
2317
|
+
"""
|
|
2318
|
+
return pulumi.get(self, "cel")
|
|
2319
|
+
|
|
2320
|
+
@cel.setter
|
|
2321
|
+
def cel(self, value: Optional[pulumi.Input['CELDeviceSelectorArgs']]):
|
|
2322
|
+
pulumi.set(self, "cel", value)
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
if not MYPY:
|
|
2326
|
+
class DeviceArgsDict(TypedDict):
|
|
2327
|
+
"""
|
|
2328
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
2329
|
+
"""
|
|
2330
|
+
name: pulumi.Input[str]
|
|
2331
|
+
"""
|
|
2332
|
+
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
2333
|
+
"""
|
|
2334
|
+
basic: NotRequired[pulumi.Input['BasicDeviceArgsDict']]
|
|
2335
|
+
"""
|
|
2336
|
+
Basic defines one device instance.
|
|
2337
|
+
"""
|
|
2338
|
+
elif False:
|
|
2339
|
+
DeviceArgsDict: TypeAlias = Mapping[str, Any]
|
|
2340
|
+
|
|
2341
|
+
@pulumi.input_type
|
|
2342
|
+
class DeviceArgs:
|
|
2343
|
+
def __init__(__self__, *,
|
|
2344
|
+
name: pulumi.Input[str],
|
|
2345
|
+
basic: Optional[pulumi.Input['BasicDeviceArgs']] = None):
|
|
2346
|
+
"""
|
|
2347
|
+
Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.
|
|
2348
|
+
:param pulumi.Input[str] name: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
2349
|
+
:param pulumi.Input['BasicDeviceArgs'] basic: Basic defines one device instance.
|
|
2350
|
+
"""
|
|
2351
|
+
pulumi.set(__self__, "name", name)
|
|
2352
|
+
if basic is not None:
|
|
2353
|
+
pulumi.set(__self__, "basic", basic)
|
|
2354
|
+
|
|
2355
|
+
@property
|
|
2356
|
+
@pulumi.getter
|
|
2357
|
+
def name(self) -> pulumi.Input[str]:
|
|
2358
|
+
"""
|
|
2359
|
+
Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.
|
|
2360
|
+
"""
|
|
2361
|
+
return pulumi.get(self, "name")
|
|
2362
|
+
|
|
2363
|
+
@name.setter
|
|
2364
|
+
def name(self, value: pulumi.Input[str]):
|
|
2365
|
+
pulumi.set(self, "name", value)
|
|
2366
|
+
|
|
2367
|
+
@property
|
|
2368
|
+
@pulumi.getter
|
|
2369
|
+
def basic(self) -> Optional[pulumi.Input['BasicDeviceArgs']]:
|
|
2370
|
+
"""
|
|
2371
|
+
Basic defines one device instance.
|
|
2372
|
+
"""
|
|
2373
|
+
return pulumi.get(self, "basic")
|
|
2374
|
+
|
|
2375
|
+
@basic.setter
|
|
2376
|
+
def basic(self, value: Optional[pulumi.Input['BasicDeviceArgs']]):
|
|
2377
|
+
pulumi.set(self, "basic", value)
|
|
2378
|
+
|
|
2379
|
+
|
|
2380
|
+
if not MYPY:
|
|
2381
|
+
class NetworkDeviceDataArgsDict(TypedDict):
|
|
2382
|
+
"""
|
|
2383
|
+
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.
|
|
2384
|
+
"""
|
|
2385
|
+
hardware_address: NotRequired[pulumi.Input[str]]
|
|
2386
|
+
"""
|
|
2387
|
+
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2388
|
+
|
|
2389
|
+
Must not be longer than 128 characters.
|
|
2390
|
+
"""
|
|
2391
|
+
interface_name: NotRequired[pulumi.Input[str]]
|
|
2392
|
+
"""
|
|
2393
|
+
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.
|
|
2394
|
+
|
|
2395
|
+
Must not be longer than 256 characters.
|
|
2396
|
+
"""
|
|
2397
|
+
ips: NotRequired[pulumi.Input[Sequence[pulumi.Input[str]]]]
|
|
2398
|
+
"""
|
|
2399
|
+
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.
|
|
2400
|
+
"""
|
|
2401
|
+
elif False:
|
|
2402
|
+
NetworkDeviceDataArgsDict: TypeAlias = Mapping[str, Any]
|
|
2403
|
+
|
|
2404
|
+
@pulumi.input_type
|
|
2405
|
+
class NetworkDeviceDataArgs:
|
|
2406
|
+
def __init__(__self__, *,
|
|
2407
|
+
hardware_address: Optional[pulumi.Input[str]] = None,
|
|
2408
|
+
interface_name: Optional[pulumi.Input[str]] = None,
|
|
2409
|
+
ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
2410
|
+
"""
|
|
2411
|
+
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.
|
|
2412
|
+
:param pulumi.Input[str] hardware_address: HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2413
|
+
|
|
2414
|
+
Must not be longer than 128 characters.
|
|
2415
|
+
:param pulumi.Input[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.
|
|
2416
|
+
|
|
2417
|
+
Must not be longer than 256 characters.
|
|
2418
|
+
:param pulumi.Input[Sequence[pulumi.Input[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.
|
|
2419
|
+
"""
|
|
2420
|
+
if hardware_address is not None:
|
|
2421
|
+
pulumi.set(__self__, "hardware_address", hardware_address)
|
|
2422
|
+
if interface_name is not None:
|
|
2423
|
+
pulumi.set(__self__, "interface_name", interface_name)
|
|
2424
|
+
if ips is not None:
|
|
2425
|
+
pulumi.set(__self__, "ips", ips)
|
|
2426
|
+
|
|
2427
|
+
@property
|
|
2428
|
+
@pulumi.getter(name="hardwareAddress")
|
|
2429
|
+
def hardware_address(self) -> Optional[pulumi.Input[str]]:
|
|
2430
|
+
"""
|
|
2431
|
+
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
|
|
2432
|
+
|
|
2433
|
+
Must not be longer than 128 characters.
|
|
2434
|
+
"""
|
|
2435
|
+
return pulumi.get(self, "hardware_address")
|
|
2436
|
+
|
|
2437
|
+
@hardware_address.setter
|
|
2438
|
+
def hardware_address(self, value: Optional[pulumi.Input[str]]):
|
|
2439
|
+
pulumi.set(self, "hardware_address", value)
|
|
2440
|
+
|
|
2441
|
+
@property
|
|
2442
|
+
@pulumi.getter(name="interfaceName")
|
|
2443
|
+
def interface_name(self) -> Optional[pulumi.Input[str]]:
|
|
2444
|
+
"""
|
|
2445
|
+
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.
|
|
2446
|
+
|
|
2447
|
+
Must not be longer than 256 characters.
|
|
2448
|
+
"""
|
|
2449
|
+
return pulumi.get(self, "interface_name")
|
|
2450
|
+
|
|
2451
|
+
@interface_name.setter
|
|
2452
|
+
def interface_name(self, value: Optional[pulumi.Input[str]]):
|
|
2453
|
+
pulumi.set(self, "interface_name", value)
|
|
2454
|
+
|
|
2455
|
+
@property
|
|
2456
|
+
@pulumi.getter
|
|
2457
|
+
def ips(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
2458
|
+
"""
|
|
2459
|
+
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.
|
|
2460
|
+
"""
|
|
2461
|
+
return pulumi.get(self, "ips")
|
|
2462
|
+
|
|
2463
|
+
@ips.setter
|
|
2464
|
+
def ips(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
2465
|
+
pulumi.set(self, "ips", value)
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
if not MYPY:
|
|
2469
|
+
class OpaqueDeviceConfigurationPatchArgsDict(TypedDict):
|
|
2470
|
+
"""
|
|
2471
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
2472
|
+
"""
|
|
2473
|
+
driver: NotRequired[pulumi.Input[str]]
|
|
2474
|
+
"""
|
|
2475
|
+
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
2476
|
+
|
|
2477
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
2478
|
+
|
|
2479
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2480
|
+
"""
|
|
2481
|
+
parameters: NotRequired[Any]
|
|
2482
|
+
"""
|
|
2483
|
+
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.
|
|
2484
|
+
|
|
2485
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2486
|
+
"""
|
|
2487
|
+
elif False:
|
|
2488
|
+
OpaqueDeviceConfigurationPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2489
|
+
|
|
2490
|
+
@pulumi.input_type
|
|
2491
|
+
class OpaqueDeviceConfigurationPatchArgs:
|
|
2492
|
+
def __init__(__self__, *,
|
|
2493
|
+
driver: Optional[pulumi.Input[str]] = None,
|
|
2494
|
+
parameters: Optional[Any] = None):
|
|
2495
|
+
"""
|
|
2496
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
2497
|
+
:param pulumi.Input[str] driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
2498
|
+
|
|
2499
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
2500
|
+
|
|
2501
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2502
|
+
: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.
|
|
2503
|
+
|
|
2504
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2505
|
+
"""
|
|
2506
|
+
if driver is not None:
|
|
2507
|
+
pulumi.set(__self__, "driver", driver)
|
|
2508
|
+
if parameters is not None:
|
|
2509
|
+
pulumi.set(__self__, "parameters", parameters)
|
|
2510
|
+
|
|
2511
|
+
@property
|
|
2512
|
+
@pulumi.getter
|
|
2513
|
+
def driver(self) -> Optional[pulumi.Input[str]]:
|
|
2514
|
+
"""
|
|
2515
|
+
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
2516
|
+
|
|
2517
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
2518
|
+
|
|
2519
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2520
|
+
"""
|
|
2521
|
+
return pulumi.get(self, "driver")
|
|
2522
|
+
|
|
2523
|
+
@driver.setter
|
|
2524
|
+
def driver(self, value: Optional[pulumi.Input[str]]):
|
|
2525
|
+
pulumi.set(self, "driver", value)
|
|
2526
|
+
|
|
2527
|
+
@property
|
|
2528
|
+
@pulumi.getter
|
|
2529
|
+
def parameters(self) -> Optional[Any]:
|
|
2530
|
+
"""
|
|
2531
|
+
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.
|
|
2532
|
+
|
|
2533
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2534
|
+
"""
|
|
2535
|
+
return pulumi.get(self, "parameters")
|
|
2536
|
+
|
|
2537
|
+
@parameters.setter
|
|
2538
|
+
def parameters(self, value: Optional[Any]):
|
|
2539
|
+
pulumi.set(self, "parameters", value)
|
|
2540
|
+
|
|
2541
|
+
|
|
2542
|
+
if not MYPY:
|
|
2543
|
+
class OpaqueDeviceConfigurationArgsDict(TypedDict):
|
|
2544
|
+
"""
|
|
2545
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
2546
|
+
"""
|
|
2547
|
+
driver: pulumi.Input[str]
|
|
2548
|
+
"""
|
|
2549
|
+
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
2550
|
+
|
|
2551
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
2552
|
+
|
|
2553
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2554
|
+
"""
|
|
2555
|
+
parameters: Any
|
|
2556
|
+
"""
|
|
2557
|
+
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.
|
|
2558
|
+
|
|
2559
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2560
|
+
"""
|
|
2561
|
+
elif False:
|
|
2562
|
+
OpaqueDeviceConfigurationArgsDict: TypeAlias = Mapping[str, Any]
|
|
2563
|
+
|
|
2564
|
+
@pulumi.input_type
|
|
2565
|
+
class OpaqueDeviceConfigurationArgs:
|
|
2566
|
+
def __init__(__self__, *,
|
|
2567
|
+
driver: pulumi.Input[str],
|
|
2568
|
+
parameters: Any):
|
|
2569
|
+
"""
|
|
2570
|
+
OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.
|
|
2571
|
+
:param pulumi.Input[str] driver: Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
2572
|
+
|
|
2573
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
2574
|
+
|
|
2575
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2576
|
+
: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.
|
|
2577
|
+
|
|
2578
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2579
|
+
"""
|
|
2580
|
+
pulumi.set(__self__, "driver", driver)
|
|
2581
|
+
pulumi.set(__self__, "parameters", parameters)
|
|
2582
|
+
|
|
2583
|
+
@property
|
|
2584
|
+
@pulumi.getter
|
|
2585
|
+
def driver(self) -> pulumi.Input[str]:
|
|
2586
|
+
"""
|
|
2587
|
+
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters.
|
|
2588
|
+
|
|
2589
|
+
An admission policy provided by the driver developer could use this to decide whether it needs to validate them.
|
|
2590
|
+
|
|
2591
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
|
|
2592
|
+
"""
|
|
2593
|
+
return pulumi.get(self, "driver")
|
|
2594
|
+
|
|
2595
|
+
@driver.setter
|
|
2596
|
+
def driver(self, value: pulumi.Input[str]):
|
|
2597
|
+
pulumi.set(self, "driver", value)
|
|
2598
|
+
|
|
2599
|
+
@property
|
|
2600
|
+
@pulumi.getter
|
|
2601
|
+
def parameters(self) -> Any:
|
|
2602
|
+
"""
|
|
2603
|
+
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.
|
|
2604
|
+
|
|
2605
|
+
The length of the raw data must be smaller or equal to 10 Ki.
|
|
2606
|
+
"""
|
|
2607
|
+
return pulumi.get(self, "parameters")
|
|
2608
|
+
|
|
2609
|
+
@parameters.setter
|
|
2610
|
+
def parameters(self, value: Any):
|
|
2611
|
+
pulumi.set(self, "parameters", value)
|
|
2612
|
+
|
|
2613
|
+
|
|
2614
|
+
if not MYPY:
|
|
2615
|
+
class ResourceClaimConsumerReferenceArgsDict(TypedDict):
|
|
2616
|
+
"""
|
|
2617
|
+
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.
|
|
2618
|
+
"""
|
|
2619
|
+
name: pulumi.Input[str]
|
|
2620
|
+
"""
|
|
2621
|
+
Name is the name of resource being referenced.
|
|
2622
|
+
"""
|
|
2623
|
+
resource: pulumi.Input[str]
|
|
2624
|
+
"""
|
|
2625
|
+
Resource is the type of resource being referenced, for example "pods".
|
|
2626
|
+
"""
|
|
2627
|
+
uid: pulumi.Input[str]
|
|
2628
|
+
"""
|
|
2629
|
+
UID identifies exactly one incarnation of the resource.
|
|
2630
|
+
"""
|
|
2631
|
+
api_group: NotRequired[pulumi.Input[str]]
|
|
2632
|
+
"""
|
|
2633
|
+
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.
|
|
2634
|
+
"""
|
|
2635
|
+
elif False:
|
|
2636
|
+
ResourceClaimConsumerReferenceArgsDict: TypeAlias = Mapping[str, Any]
|
|
2637
|
+
|
|
2638
|
+
@pulumi.input_type
|
|
2639
|
+
class ResourceClaimConsumerReferenceArgs:
|
|
2640
|
+
def __init__(__self__, *,
|
|
2641
|
+
name: pulumi.Input[str],
|
|
2642
|
+
resource: pulumi.Input[str],
|
|
2643
|
+
uid: pulumi.Input[str],
|
|
2644
|
+
api_group: Optional[pulumi.Input[str]] = None):
|
|
2645
|
+
"""
|
|
2646
|
+
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.
|
|
2647
|
+
:param pulumi.Input[str] name: Name is the name of resource being referenced.
|
|
2648
|
+
:param pulumi.Input[str] resource: Resource is the type of resource being referenced, for example "pods".
|
|
2649
|
+
:param pulumi.Input[str] uid: UID identifies exactly one incarnation of the resource.
|
|
2650
|
+
:param pulumi.Input[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.
|
|
2651
|
+
"""
|
|
2652
|
+
pulumi.set(__self__, "name", name)
|
|
2653
|
+
pulumi.set(__self__, "resource", resource)
|
|
2654
|
+
pulumi.set(__self__, "uid", uid)
|
|
2655
|
+
if api_group is not None:
|
|
2656
|
+
pulumi.set(__self__, "api_group", api_group)
|
|
2657
|
+
|
|
2658
|
+
@property
|
|
2659
|
+
@pulumi.getter
|
|
2660
|
+
def name(self) -> pulumi.Input[str]:
|
|
2661
|
+
"""
|
|
2662
|
+
Name is the name of resource being referenced.
|
|
2663
|
+
"""
|
|
2664
|
+
return pulumi.get(self, "name")
|
|
2665
|
+
|
|
2666
|
+
@name.setter
|
|
2667
|
+
def name(self, value: pulumi.Input[str]):
|
|
2668
|
+
pulumi.set(self, "name", value)
|
|
2669
|
+
|
|
2670
|
+
@property
|
|
2671
|
+
@pulumi.getter
|
|
2672
|
+
def resource(self) -> pulumi.Input[str]:
|
|
2673
|
+
"""
|
|
2674
|
+
Resource is the type of resource being referenced, for example "pods".
|
|
2675
|
+
"""
|
|
2676
|
+
return pulumi.get(self, "resource")
|
|
2677
|
+
|
|
2678
|
+
@resource.setter
|
|
2679
|
+
def resource(self, value: pulumi.Input[str]):
|
|
2680
|
+
pulumi.set(self, "resource", value)
|
|
2681
|
+
|
|
2682
|
+
@property
|
|
2683
|
+
@pulumi.getter
|
|
2684
|
+
def uid(self) -> pulumi.Input[str]:
|
|
2685
|
+
"""
|
|
2686
|
+
UID identifies exactly one incarnation of the resource.
|
|
2687
|
+
"""
|
|
2688
|
+
return pulumi.get(self, "uid")
|
|
2689
|
+
|
|
2690
|
+
@uid.setter
|
|
2691
|
+
def uid(self, value: pulumi.Input[str]):
|
|
2692
|
+
pulumi.set(self, "uid", value)
|
|
2693
|
+
|
|
2694
|
+
@property
|
|
2695
|
+
@pulumi.getter(name="apiGroup")
|
|
2696
|
+
def api_group(self) -> Optional[pulumi.Input[str]]:
|
|
2697
|
+
"""
|
|
2698
|
+
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.
|
|
2699
|
+
"""
|
|
2700
|
+
return pulumi.get(self, "api_group")
|
|
2701
|
+
|
|
2702
|
+
@api_group.setter
|
|
2703
|
+
def api_group(self, value: Optional[pulumi.Input[str]]):
|
|
2704
|
+
pulumi.set(self, "api_group", value)
|
|
2705
|
+
|
|
2706
|
+
|
|
2707
|
+
if not MYPY:
|
|
2708
|
+
class ResourceClaimSpecPatchArgsDict(TypedDict):
|
|
2709
|
+
"""
|
|
2710
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
2711
|
+
"""
|
|
2712
|
+
devices: NotRequired[pulumi.Input['DeviceClaimPatchArgsDict']]
|
|
2713
|
+
"""
|
|
2714
|
+
Devices defines how to request devices.
|
|
2715
|
+
"""
|
|
2716
|
+
elif False:
|
|
2717
|
+
ResourceClaimSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2718
|
+
|
|
2719
|
+
@pulumi.input_type
|
|
2720
|
+
class ResourceClaimSpecPatchArgs:
|
|
2721
|
+
def __init__(__self__, *,
|
|
2722
|
+
devices: Optional[pulumi.Input['DeviceClaimPatchArgs']] = None):
|
|
2723
|
+
"""
|
|
2724
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
2725
|
+
:param pulumi.Input['DeviceClaimPatchArgs'] devices: Devices defines how to request devices.
|
|
2726
|
+
"""
|
|
2727
|
+
if devices is not None:
|
|
2728
|
+
pulumi.set(__self__, "devices", devices)
|
|
2729
|
+
|
|
2730
|
+
@property
|
|
2731
|
+
@pulumi.getter
|
|
2732
|
+
def devices(self) -> Optional[pulumi.Input['DeviceClaimPatchArgs']]:
|
|
2733
|
+
"""
|
|
2734
|
+
Devices defines how to request devices.
|
|
2735
|
+
"""
|
|
2736
|
+
return pulumi.get(self, "devices")
|
|
2737
|
+
|
|
2738
|
+
@devices.setter
|
|
2739
|
+
def devices(self, value: Optional[pulumi.Input['DeviceClaimPatchArgs']]):
|
|
2740
|
+
pulumi.set(self, "devices", value)
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
if not MYPY:
|
|
2744
|
+
class ResourceClaimSpecArgsDict(TypedDict):
|
|
2745
|
+
"""
|
|
2746
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
2747
|
+
"""
|
|
2748
|
+
devices: NotRequired[pulumi.Input['DeviceClaimArgsDict']]
|
|
2749
|
+
"""
|
|
2750
|
+
Devices defines how to request devices.
|
|
2751
|
+
"""
|
|
2752
|
+
elif False:
|
|
2753
|
+
ResourceClaimSpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
2754
|
+
|
|
2755
|
+
@pulumi.input_type
|
|
2756
|
+
class ResourceClaimSpecArgs:
|
|
2757
|
+
def __init__(__self__, *,
|
|
2758
|
+
devices: Optional[pulumi.Input['DeviceClaimArgs']] = None):
|
|
2759
|
+
"""
|
|
2760
|
+
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
|
|
2761
|
+
:param pulumi.Input['DeviceClaimArgs'] devices: Devices defines how to request devices.
|
|
2762
|
+
"""
|
|
2763
|
+
if devices is not None:
|
|
2764
|
+
pulumi.set(__self__, "devices", devices)
|
|
2765
|
+
|
|
2766
|
+
@property
|
|
2767
|
+
@pulumi.getter
|
|
2768
|
+
def devices(self) -> Optional[pulumi.Input['DeviceClaimArgs']]:
|
|
2769
|
+
"""
|
|
2770
|
+
Devices defines how to request devices.
|
|
2771
|
+
"""
|
|
2772
|
+
return pulumi.get(self, "devices")
|
|
2773
|
+
|
|
2774
|
+
@devices.setter
|
|
2775
|
+
def devices(self, value: Optional[pulumi.Input['DeviceClaimArgs']]):
|
|
2776
|
+
pulumi.set(self, "devices", value)
|
|
2777
|
+
|
|
2778
|
+
|
|
2779
|
+
if not MYPY:
|
|
2780
|
+
class ResourceClaimStatusArgsDict(TypedDict):
|
|
2781
|
+
"""
|
|
2782
|
+
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
2783
|
+
"""
|
|
2784
|
+
allocation: NotRequired[pulumi.Input['AllocationResultArgsDict']]
|
|
2785
|
+
"""
|
|
2786
|
+
Allocation is set once the claim has been allocated successfully.
|
|
2787
|
+
"""
|
|
2788
|
+
devices: NotRequired[pulumi.Input[Sequence[pulumi.Input['AllocatedDeviceStatusArgsDict']]]]
|
|
2789
|
+
"""
|
|
2790
|
+
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.
|
|
2791
|
+
"""
|
|
2792
|
+
reserved_for: NotRequired[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgsDict']]]]
|
|
2793
|
+
"""
|
|
2794
|
+
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.
|
|
2795
|
+
|
|
2796
|
+
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.
|
|
2797
|
+
|
|
2798
|
+
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.
|
|
2799
|
+
|
|
2800
|
+
There can be at most 32 such reservations. This may get increased in the future, but not reduced.
|
|
2801
|
+
"""
|
|
2802
|
+
elif False:
|
|
2803
|
+
ResourceClaimStatusArgsDict: TypeAlias = Mapping[str, Any]
|
|
2804
|
+
|
|
2805
|
+
@pulumi.input_type
|
|
2806
|
+
class ResourceClaimStatusArgs:
|
|
2807
|
+
def __init__(__self__, *,
|
|
2808
|
+
allocation: Optional[pulumi.Input['AllocationResultArgs']] = None,
|
|
2809
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input['AllocatedDeviceStatusArgs']]]] = None,
|
|
2810
|
+
reserved_for: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]] = None):
|
|
2811
|
+
"""
|
|
2812
|
+
ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.
|
|
2813
|
+
:param pulumi.Input['AllocationResultArgs'] allocation: Allocation is set once the claim has been allocated successfully.
|
|
2814
|
+
:param pulumi.Input[Sequence[pulumi.Input['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.
|
|
2815
|
+
:param pulumi.Input[Sequence[pulumi.Input['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.
|
|
2816
|
+
|
|
2817
|
+
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.
|
|
2818
|
+
|
|
2819
|
+
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.
|
|
2820
|
+
|
|
2821
|
+
There can be at most 32 such reservations. This may get increased in the future, but not reduced.
|
|
2822
|
+
"""
|
|
2823
|
+
if allocation is not None:
|
|
2824
|
+
pulumi.set(__self__, "allocation", allocation)
|
|
2825
|
+
if devices is not None:
|
|
2826
|
+
pulumi.set(__self__, "devices", devices)
|
|
2827
|
+
if reserved_for is not None:
|
|
2828
|
+
pulumi.set(__self__, "reserved_for", reserved_for)
|
|
2829
|
+
|
|
2830
|
+
@property
|
|
2831
|
+
@pulumi.getter
|
|
2832
|
+
def allocation(self) -> Optional[pulumi.Input['AllocationResultArgs']]:
|
|
2833
|
+
"""
|
|
2834
|
+
Allocation is set once the claim has been allocated successfully.
|
|
2835
|
+
"""
|
|
2836
|
+
return pulumi.get(self, "allocation")
|
|
2837
|
+
|
|
2838
|
+
@allocation.setter
|
|
2839
|
+
def allocation(self, value: Optional[pulumi.Input['AllocationResultArgs']]):
|
|
2840
|
+
pulumi.set(self, "allocation", value)
|
|
2841
|
+
|
|
2842
|
+
@property
|
|
2843
|
+
@pulumi.getter
|
|
2844
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AllocatedDeviceStatusArgs']]]]:
|
|
2845
|
+
"""
|
|
2846
|
+
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.
|
|
2847
|
+
"""
|
|
2848
|
+
return pulumi.get(self, "devices")
|
|
2849
|
+
|
|
2850
|
+
@devices.setter
|
|
2851
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['AllocatedDeviceStatusArgs']]]]):
|
|
2852
|
+
pulumi.set(self, "devices", value)
|
|
2853
|
+
|
|
2854
|
+
@property
|
|
2855
|
+
@pulumi.getter(name="reservedFor")
|
|
2856
|
+
def reserved_for(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]]:
|
|
2857
|
+
"""
|
|
2858
|
+
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.
|
|
2859
|
+
|
|
2860
|
+
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.
|
|
2861
|
+
|
|
2862
|
+
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.
|
|
2863
|
+
|
|
2864
|
+
There can be at most 32 such reservations. This may get increased in the future, but not reduced.
|
|
2865
|
+
"""
|
|
2866
|
+
return pulumi.get(self, "reserved_for")
|
|
2867
|
+
|
|
2868
|
+
@reserved_for.setter
|
|
2869
|
+
def reserved_for(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ResourceClaimConsumerReferenceArgs']]]]):
|
|
2870
|
+
pulumi.set(self, "reserved_for", value)
|
|
2871
|
+
|
|
2872
|
+
|
|
2873
|
+
if not MYPY:
|
|
2874
|
+
class ResourceClaimTemplateSpecPatchArgsDict(TypedDict):
|
|
2875
|
+
"""
|
|
2876
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
2877
|
+
"""
|
|
2878
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaPatchArgsDict']]
|
|
2879
|
+
"""
|
|
2880
|
+
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.
|
|
2881
|
+
"""
|
|
2882
|
+
spec: NotRequired[pulumi.Input['ResourceClaimSpecPatchArgsDict']]
|
|
2883
|
+
"""
|
|
2884
|
+
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.
|
|
2885
|
+
"""
|
|
2886
|
+
elif False:
|
|
2887
|
+
ResourceClaimTemplateSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
2888
|
+
|
|
2889
|
+
@pulumi.input_type
|
|
2890
|
+
class ResourceClaimTemplateSpecPatchArgs:
|
|
2891
|
+
def __init__(__self__, *,
|
|
2892
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']] = None,
|
|
2893
|
+
spec: Optional[pulumi.Input['ResourceClaimSpecPatchArgs']] = None):
|
|
2894
|
+
"""
|
|
2895
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
2896
|
+
:param pulumi.Input['_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.
|
|
2897
|
+
:param pulumi.Input['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.
|
|
2898
|
+
"""
|
|
2899
|
+
if metadata is not None:
|
|
2900
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
2901
|
+
if spec is not None:
|
|
2902
|
+
pulumi.set(__self__, "spec", spec)
|
|
2903
|
+
|
|
2904
|
+
@property
|
|
2905
|
+
@pulumi.getter
|
|
2906
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]:
|
|
2907
|
+
"""
|
|
2908
|
+
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.
|
|
2909
|
+
"""
|
|
2910
|
+
return pulumi.get(self, "metadata")
|
|
2911
|
+
|
|
2912
|
+
@metadata.setter
|
|
2913
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaPatchArgs']]):
|
|
2914
|
+
pulumi.set(self, "metadata", value)
|
|
2915
|
+
|
|
2916
|
+
@property
|
|
2917
|
+
@pulumi.getter
|
|
2918
|
+
def spec(self) -> Optional[pulumi.Input['ResourceClaimSpecPatchArgs']]:
|
|
2919
|
+
"""
|
|
2920
|
+
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.
|
|
2921
|
+
"""
|
|
2922
|
+
return pulumi.get(self, "spec")
|
|
2923
|
+
|
|
2924
|
+
@spec.setter
|
|
2925
|
+
def spec(self, value: Optional[pulumi.Input['ResourceClaimSpecPatchArgs']]):
|
|
2926
|
+
pulumi.set(self, "spec", value)
|
|
2927
|
+
|
|
2928
|
+
|
|
2929
|
+
if not MYPY:
|
|
2930
|
+
class ResourceClaimTemplateSpecArgsDict(TypedDict):
|
|
2931
|
+
"""
|
|
2932
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
2933
|
+
"""
|
|
2934
|
+
spec: pulumi.Input['ResourceClaimSpecArgsDict']
|
|
2935
|
+
"""
|
|
2936
|
+
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.
|
|
2937
|
+
"""
|
|
2938
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
2939
|
+
"""
|
|
2940
|
+
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.
|
|
2941
|
+
"""
|
|
2942
|
+
elif False:
|
|
2943
|
+
ResourceClaimTemplateSpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
2944
|
+
|
|
2945
|
+
@pulumi.input_type
|
|
2946
|
+
class ResourceClaimTemplateSpecArgs:
|
|
2947
|
+
def __init__(__self__, *,
|
|
2948
|
+
spec: pulumi.Input['ResourceClaimSpecArgs'],
|
|
2949
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
|
|
2950
|
+
"""
|
|
2951
|
+
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
|
|
2952
|
+
:param pulumi.Input['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.
|
|
2953
|
+
:param pulumi.Input['_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.
|
|
2954
|
+
"""
|
|
2955
|
+
pulumi.set(__self__, "spec", spec)
|
|
2956
|
+
if metadata is not None:
|
|
2957
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
2958
|
+
|
|
2959
|
+
@property
|
|
2960
|
+
@pulumi.getter
|
|
2961
|
+
def spec(self) -> pulumi.Input['ResourceClaimSpecArgs']:
|
|
2962
|
+
"""
|
|
2963
|
+
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.
|
|
2964
|
+
"""
|
|
2965
|
+
return pulumi.get(self, "spec")
|
|
2966
|
+
|
|
2967
|
+
@spec.setter
|
|
2968
|
+
def spec(self, value: pulumi.Input['ResourceClaimSpecArgs']):
|
|
2969
|
+
pulumi.set(self, "spec", value)
|
|
2970
|
+
|
|
2971
|
+
@property
|
|
2972
|
+
@pulumi.getter
|
|
2973
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
2974
|
+
"""
|
|
2975
|
+
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.
|
|
2976
|
+
"""
|
|
2977
|
+
return pulumi.get(self, "metadata")
|
|
2978
|
+
|
|
2979
|
+
@metadata.setter
|
|
2980
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
2981
|
+
pulumi.set(self, "metadata", value)
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
if not MYPY:
|
|
2985
|
+
class ResourceClaimTemplateArgsDict(TypedDict):
|
|
2986
|
+
"""
|
|
2987
|
+
ResourceClaimTemplate is used to produce ResourceClaim objects.
|
|
2988
|
+
|
|
2989
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
2990
|
+
"""
|
|
2991
|
+
spec: pulumi.Input['ResourceClaimTemplateSpecArgsDict']
|
|
2992
|
+
"""
|
|
2993
|
+
Describes the ResourceClaim that is to be generated.
|
|
2994
|
+
|
|
2995
|
+
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
|
|
2996
|
+
"""
|
|
2997
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
2998
|
+
"""
|
|
2999
|
+
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
|
|
3000
|
+
"""
|
|
3001
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
3002
|
+
"""
|
|
3003
|
+
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
|
|
3004
|
+
"""
|
|
3005
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
3006
|
+
"""
|
|
3007
|
+
Standard object metadata
|
|
3008
|
+
"""
|
|
3009
|
+
elif False:
|
|
3010
|
+
ResourceClaimTemplateArgsDict: TypeAlias = Mapping[str, Any]
|
|
3011
|
+
|
|
3012
|
+
@pulumi.input_type
|
|
3013
|
+
class ResourceClaimTemplateArgs:
|
|
3014
|
+
def __init__(__self__, *,
|
|
3015
|
+
spec: pulumi.Input['ResourceClaimTemplateSpecArgs'],
|
|
3016
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
3017
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
3018
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
|
|
3019
|
+
"""
|
|
3020
|
+
ResourceClaimTemplate is used to produce ResourceClaim objects.
|
|
3021
|
+
|
|
3022
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3023
|
+
:param pulumi.Input['ResourceClaimTemplateSpecArgs'] spec: Describes the ResourceClaim that is to be generated.
|
|
3024
|
+
|
|
3025
|
+
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
|
|
3026
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
3027
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
3028
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
|
|
3029
|
+
"""
|
|
3030
|
+
pulumi.set(__self__, "spec", spec)
|
|
3031
|
+
if api_version is not None:
|
|
3032
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
3033
|
+
if kind is not None:
|
|
3034
|
+
pulumi.set(__self__, "kind", 'ResourceClaimTemplate')
|
|
3035
|
+
if metadata is not None:
|
|
3036
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
3037
|
+
|
|
3038
|
+
@property
|
|
3039
|
+
@pulumi.getter
|
|
3040
|
+
def spec(self) -> pulumi.Input['ResourceClaimTemplateSpecArgs']:
|
|
3041
|
+
"""
|
|
3042
|
+
Describes the ResourceClaim that is to be generated.
|
|
3043
|
+
|
|
3044
|
+
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
|
|
3045
|
+
"""
|
|
3046
|
+
return pulumi.get(self, "spec")
|
|
3047
|
+
|
|
3048
|
+
@spec.setter
|
|
3049
|
+
def spec(self, value: pulumi.Input['ResourceClaimTemplateSpecArgs']):
|
|
3050
|
+
pulumi.set(self, "spec", value)
|
|
3051
|
+
|
|
3052
|
+
@property
|
|
3053
|
+
@pulumi.getter(name="apiVersion")
|
|
3054
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
3055
|
+
"""
|
|
3056
|
+
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
|
|
3057
|
+
"""
|
|
3058
|
+
return pulumi.get(self, "api_version")
|
|
3059
|
+
|
|
3060
|
+
@api_version.setter
|
|
3061
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
3062
|
+
pulumi.set(self, "api_version", value)
|
|
3063
|
+
|
|
3064
|
+
@property
|
|
3065
|
+
@pulumi.getter
|
|
3066
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
3067
|
+
"""
|
|
3068
|
+
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
|
|
3069
|
+
"""
|
|
3070
|
+
return pulumi.get(self, "kind")
|
|
3071
|
+
|
|
3072
|
+
@kind.setter
|
|
3073
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
3074
|
+
pulumi.set(self, "kind", value)
|
|
3075
|
+
|
|
3076
|
+
@property
|
|
3077
|
+
@pulumi.getter
|
|
3078
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
3079
|
+
"""
|
|
3080
|
+
Standard object metadata
|
|
3081
|
+
"""
|
|
3082
|
+
return pulumi.get(self, "metadata")
|
|
3083
|
+
|
|
3084
|
+
@metadata.setter
|
|
3085
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
3086
|
+
pulumi.set(self, "metadata", value)
|
|
3087
|
+
|
|
3088
|
+
|
|
3089
|
+
if not MYPY:
|
|
3090
|
+
class ResourceClaimArgsDict(TypedDict):
|
|
3091
|
+
"""
|
|
3092
|
+
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.
|
|
3093
|
+
|
|
3094
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3095
|
+
"""
|
|
3096
|
+
spec: pulumi.Input['ResourceClaimSpecArgsDict']
|
|
3097
|
+
"""
|
|
3098
|
+
Spec describes what is being requested and how to configure it. The spec is immutable.
|
|
3099
|
+
"""
|
|
3100
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
3101
|
+
"""
|
|
3102
|
+
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
|
|
3103
|
+
"""
|
|
3104
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
3105
|
+
"""
|
|
3106
|
+
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
|
|
3107
|
+
"""
|
|
3108
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
3109
|
+
"""
|
|
3110
|
+
Standard object metadata
|
|
3111
|
+
"""
|
|
3112
|
+
status: NotRequired[pulumi.Input['ResourceClaimStatusArgsDict']]
|
|
3113
|
+
"""
|
|
3114
|
+
Status describes whether the claim is ready to use and what has been allocated.
|
|
3115
|
+
"""
|
|
3116
|
+
elif False:
|
|
3117
|
+
ResourceClaimArgsDict: TypeAlias = Mapping[str, Any]
|
|
3118
|
+
|
|
3119
|
+
@pulumi.input_type
|
|
3120
|
+
class ResourceClaimArgs:
|
|
3121
|
+
def __init__(__self__, *,
|
|
3122
|
+
spec: pulumi.Input['ResourceClaimSpecArgs'],
|
|
3123
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
3124
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
3125
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None,
|
|
3126
|
+
status: Optional[pulumi.Input['ResourceClaimStatusArgs']] = None):
|
|
3127
|
+
"""
|
|
3128
|
+
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.
|
|
3129
|
+
|
|
3130
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3131
|
+
:param pulumi.Input['ResourceClaimSpecArgs'] spec: Spec describes what is being requested and how to configure it. The spec is immutable.
|
|
3132
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
3133
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
3134
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
|
|
3135
|
+
:param pulumi.Input['ResourceClaimStatusArgs'] status: Status describes whether the claim is ready to use and what has been allocated.
|
|
3136
|
+
"""
|
|
3137
|
+
pulumi.set(__self__, "spec", spec)
|
|
3138
|
+
if api_version is not None:
|
|
3139
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
3140
|
+
if kind is not None:
|
|
3141
|
+
pulumi.set(__self__, "kind", 'ResourceClaim')
|
|
3142
|
+
if metadata is not None:
|
|
3143
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
3144
|
+
if status is not None:
|
|
3145
|
+
pulumi.set(__self__, "status", status)
|
|
3146
|
+
|
|
3147
|
+
@property
|
|
3148
|
+
@pulumi.getter
|
|
3149
|
+
def spec(self) -> pulumi.Input['ResourceClaimSpecArgs']:
|
|
3150
|
+
"""
|
|
3151
|
+
Spec describes what is being requested and how to configure it. The spec is immutable.
|
|
3152
|
+
"""
|
|
3153
|
+
return pulumi.get(self, "spec")
|
|
3154
|
+
|
|
3155
|
+
@spec.setter
|
|
3156
|
+
def spec(self, value: pulumi.Input['ResourceClaimSpecArgs']):
|
|
3157
|
+
pulumi.set(self, "spec", value)
|
|
3158
|
+
|
|
3159
|
+
@property
|
|
3160
|
+
@pulumi.getter(name="apiVersion")
|
|
3161
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
3162
|
+
"""
|
|
3163
|
+
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
|
|
3164
|
+
"""
|
|
3165
|
+
return pulumi.get(self, "api_version")
|
|
3166
|
+
|
|
3167
|
+
@api_version.setter
|
|
3168
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
3169
|
+
pulumi.set(self, "api_version", value)
|
|
3170
|
+
|
|
3171
|
+
@property
|
|
3172
|
+
@pulumi.getter
|
|
3173
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
3174
|
+
"""
|
|
3175
|
+
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
|
|
3176
|
+
"""
|
|
3177
|
+
return pulumi.get(self, "kind")
|
|
3178
|
+
|
|
3179
|
+
@kind.setter
|
|
3180
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
3181
|
+
pulumi.set(self, "kind", value)
|
|
3182
|
+
|
|
3183
|
+
@property
|
|
3184
|
+
@pulumi.getter
|
|
3185
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
3186
|
+
"""
|
|
3187
|
+
Standard object metadata
|
|
3188
|
+
"""
|
|
3189
|
+
return pulumi.get(self, "metadata")
|
|
3190
|
+
|
|
3191
|
+
@metadata.setter
|
|
3192
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
3193
|
+
pulumi.set(self, "metadata", value)
|
|
3194
|
+
|
|
3195
|
+
@property
|
|
3196
|
+
@pulumi.getter
|
|
3197
|
+
def status(self) -> Optional[pulumi.Input['ResourceClaimStatusArgs']]:
|
|
3198
|
+
"""
|
|
3199
|
+
Status describes whether the claim is ready to use and what has been allocated.
|
|
3200
|
+
"""
|
|
3201
|
+
return pulumi.get(self, "status")
|
|
3202
|
+
|
|
3203
|
+
@status.setter
|
|
3204
|
+
def status(self, value: Optional[pulumi.Input['ResourceClaimStatusArgs']]):
|
|
3205
|
+
pulumi.set(self, "status", value)
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
if not MYPY:
|
|
3209
|
+
class ResourcePoolPatchArgsDict(TypedDict):
|
|
3210
|
+
"""
|
|
3211
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
3212
|
+
"""
|
|
3213
|
+
generation: NotRequired[pulumi.Input[int]]
|
|
3214
|
+
"""
|
|
3215
|
+
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.
|
|
3216
|
+
|
|
3217
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
3218
|
+
"""
|
|
3219
|
+
name: NotRequired[pulumi.Input[str]]
|
|
3220
|
+
"""
|
|
3221
|
+
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
3222
|
+
|
|
3223
|
+
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.
|
|
3224
|
+
"""
|
|
3225
|
+
resource_slice_count: NotRequired[pulumi.Input[int]]
|
|
3226
|
+
"""
|
|
3227
|
+
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
3228
|
+
|
|
3229
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
3230
|
+
"""
|
|
3231
|
+
elif False:
|
|
3232
|
+
ResourcePoolPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
3233
|
+
|
|
3234
|
+
@pulumi.input_type
|
|
3235
|
+
class ResourcePoolPatchArgs:
|
|
3236
|
+
def __init__(__self__, *,
|
|
3237
|
+
generation: Optional[pulumi.Input[int]] = None,
|
|
3238
|
+
name: Optional[pulumi.Input[str]] = None,
|
|
3239
|
+
resource_slice_count: Optional[pulumi.Input[int]] = None):
|
|
3240
|
+
"""
|
|
3241
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
3242
|
+
:param pulumi.Input[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.
|
|
3243
|
+
|
|
3244
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
3245
|
+
:param pulumi.Input[str] name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
3246
|
+
|
|
3247
|
+
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.
|
|
3248
|
+
:param pulumi.Input[int] resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
3249
|
+
|
|
3250
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
3251
|
+
"""
|
|
3252
|
+
if generation is not None:
|
|
3253
|
+
pulumi.set(__self__, "generation", generation)
|
|
3254
|
+
if name is not None:
|
|
3255
|
+
pulumi.set(__self__, "name", name)
|
|
3256
|
+
if resource_slice_count is not None:
|
|
3257
|
+
pulumi.set(__self__, "resource_slice_count", resource_slice_count)
|
|
3258
|
+
|
|
3259
|
+
@property
|
|
3260
|
+
@pulumi.getter
|
|
3261
|
+
def generation(self) -> Optional[pulumi.Input[int]]:
|
|
3262
|
+
"""
|
|
3263
|
+
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.
|
|
3264
|
+
|
|
3265
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
3266
|
+
"""
|
|
3267
|
+
return pulumi.get(self, "generation")
|
|
3268
|
+
|
|
3269
|
+
@generation.setter
|
|
3270
|
+
def generation(self, value: Optional[pulumi.Input[int]]):
|
|
3271
|
+
pulumi.set(self, "generation", value)
|
|
3272
|
+
|
|
3273
|
+
@property
|
|
3274
|
+
@pulumi.getter
|
|
3275
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
|
3276
|
+
"""
|
|
3277
|
+
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
3278
|
+
|
|
3279
|
+
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.
|
|
3280
|
+
"""
|
|
3281
|
+
return pulumi.get(self, "name")
|
|
3282
|
+
|
|
3283
|
+
@name.setter
|
|
3284
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
|
3285
|
+
pulumi.set(self, "name", value)
|
|
3286
|
+
|
|
3287
|
+
@property
|
|
3288
|
+
@pulumi.getter(name="resourceSliceCount")
|
|
3289
|
+
def resource_slice_count(self) -> Optional[pulumi.Input[int]]:
|
|
3290
|
+
"""
|
|
3291
|
+
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
3292
|
+
|
|
3293
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
3294
|
+
"""
|
|
3295
|
+
return pulumi.get(self, "resource_slice_count")
|
|
3296
|
+
|
|
3297
|
+
@resource_slice_count.setter
|
|
3298
|
+
def resource_slice_count(self, value: Optional[pulumi.Input[int]]):
|
|
3299
|
+
pulumi.set(self, "resource_slice_count", value)
|
|
3300
|
+
|
|
3301
|
+
|
|
3302
|
+
if not MYPY:
|
|
3303
|
+
class ResourcePoolArgsDict(TypedDict):
|
|
3304
|
+
"""
|
|
3305
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
3306
|
+
"""
|
|
3307
|
+
generation: pulumi.Input[int]
|
|
3308
|
+
"""
|
|
3309
|
+
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.
|
|
3310
|
+
|
|
3311
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
3312
|
+
"""
|
|
3313
|
+
name: pulumi.Input[str]
|
|
3314
|
+
"""
|
|
3315
|
+
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
3316
|
+
|
|
3317
|
+
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.
|
|
3318
|
+
"""
|
|
3319
|
+
resource_slice_count: pulumi.Input[int]
|
|
3320
|
+
"""
|
|
3321
|
+
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
3322
|
+
|
|
3323
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
3324
|
+
"""
|
|
3325
|
+
elif False:
|
|
3326
|
+
ResourcePoolArgsDict: TypeAlias = Mapping[str, Any]
|
|
3327
|
+
|
|
3328
|
+
@pulumi.input_type
|
|
3329
|
+
class ResourcePoolArgs:
|
|
3330
|
+
def __init__(__self__, *,
|
|
3331
|
+
generation: pulumi.Input[int],
|
|
3332
|
+
name: pulumi.Input[str],
|
|
3333
|
+
resource_slice_count: pulumi.Input[int]):
|
|
3334
|
+
"""
|
|
3335
|
+
ResourcePool describes the pool that ResourceSlices belong to.
|
|
3336
|
+
:param pulumi.Input[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.
|
|
3337
|
+
|
|
3338
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
3339
|
+
:param pulumi.Input[str] name: Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
3340
|
+
|
|
3341
|
+
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.
|
|
3342
|
+
:param pulumi.Input[int] resource_slice_count: ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
3343
|
+
|
|
3344
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
3345
|
+
"""
|
|
3346
|
+
pulumi.set(__self__, "generation", generation)
|
|
3347
|
+
pulumi.set(__self__, "name", name)
|
|
3348
|
+
pulumi.set(__self__, "resource_slice_count", resource_slice_count)
|
|
3349
|
+
|
|
3350
|
+
@property
|
|
3351
|
+
@pulumi.getter
|
|
3352
|
+
def generation(self) -> pulumi.Input[int]:
|
|
3353
|
+
"""
|
|
3354
|
+
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.
|
|
3355
|
+
|
|
3356
|
+
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
|
|
3357
|
+
"""
|
|
3358
|
+
return pulumi.get(self, "generation")
|
|
3359
|
+
|
|
3360
|
+
@generation.setter
|
|
3361
|
+
def generation(self, value: pulumi.Input[int]):
|
|
3362
|
+
pulumi.set(self, "generation", value)
|
|
3363
|
+
|
|
3364
|
+
@property
|
|
3365
|
+
@pulumi.getter
|
|
3366
|
+
def name(self) -> pulumi.Input[str]:
|
|
3367
|
+
"""
|
|
3368
|
+
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
|
|
3369
|
+
|
|
3370
|
+
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.
|
|
3371
|
+
"""
|
|
3372
|
+
return pulumi.get(self, "name")
|
|
3373
|
+
|
|
3374
|
+
@name.setter
|
|
3375
|
+
def name(self, value: pulumi.Input[str]):
|
|
3376
|
+
pulumi.set(self, "name", value)
|
|
3377
|
+
|
|
3378
|
+
@property
|
|
3379
|
+
@pulumi.getter(name="resourceSliceCount")
|
|
3380
|
+
def resource_slice_count(self) -> pulumi.Input[int]:
|
|
3381
|
+
"""
|
|
3382
|
+
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
|
|
3383
|
+
|
|
3384
|
+
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
|
|
3385
|
+
"""
|
|
3386
|
+
return pulumi.get(self, "resource_slice_count")
|
|
3387
|
+
|
|
3388
|
+
@resource_slice_count.setter
|
|
3389
|
+
def resource_slice_count(self, value: pulumi.Input[int]):
|
|
3390
|
+
pulumi.set(self, "resource_slice_count", value)
|
|
3391
|
+
|
|
3392
|
+
|
|
3393
|
+
if not MYPY:
|
|
3394
|
+
class ResourceSliceSpecPatchArgsDict(TypedDict):
|
|
3395
|
+
"""
|
|
3396
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
3397
|
+
"""
|
|
3398
|
+
all_nodes: NotRequired[pulumi.Input[bool]]
|
|
3399
|
+
"""
|
|
3400
|
+
AllNodes indicates that all nodes have access to the resources in the pool.
|
|
3401
|
+
|
|
3402
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3403
|
+
"""
|
|
3404
|
+
devices: NotRequired[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgsDict']]]]
|
|
3405
|
+
"""
|
|
3406
|
+
Devices lists some or all of the devices in this pool.
|
|
3407
|
+
|
|
3408
|
+
Must not have more than 128 entries.
|
|
3409
|
+
"""
|
|
3410
|
+
driver: NotRequired[pulumi.Input[str]]
|
|
3411
|
+
"""
|
|
3412
|
+
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.
|
|
3413
|
+
|
|
3414
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
3415
|
+
"""
|
|
3416
|
+
node_name: NotRequired[pulumi.Input[str]]
|
|
3417
|
+
"""
|
|
3418
|
+
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.
|
|
3419
|
+
|
|
3420
|
+
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.
|
|
3421
|
+
|
|
3422
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
|
|
3423
|
+
"""
|
|
3424
|
+
node_selector: NotRequired[pulumi.Input['_core.v1.NodeSelectorPatchArgsDict']]
|
|
3425
|
+
"""
|
|
3426
|
+
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
3427
|
+
|
|
3428
|
+
Must use exactly one term.
|
|
3429
|
+
|
|
3430
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3431
|
+
"""
|
|
3432
|
+
pool: NotRequired[pulumi.Input['ResourcePoolPatchArgsDict']]
|
|
3433
|
+
"""
|
|
3434
|
+
Pool describes the pool that this ResourceSlice belongs to.
|
|
3435
|
+
"""
|
|
3436
|
+
elif False:
|
|
3437
|
+
ResourceSliceSpecPatchArgsDict: TypeAlias = Mapping[str, Any]
|
|
3438
|
+
|
|
3439
|
+
@pulumi.input_type
|
|
3440
|
+
class ResourceSliceSpecPatchArgs:
|
|
3441
|
+
def __init__(__self__, *,
|
|
3442
|
+
all_nodes: Optional[pulumi.Input[bool]] = None,
|
|
3443
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]]] = None,
|
|
3444
|
+
driver: Optional[pulumi.Input[str]] = None,
|
|
3445
|
+
node_name: Optional[pulumi.Input[str]] = None,
|
|
3446
|
+
node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']] = None,
|
|
3447
|
+
pool: Optional[pulumi.Input['ResourcePoolPatchArgs']] = None):
|
|
3448
|
+
"""
|
|
3449
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
3450
|
+
:param pulumi.Input[bool] all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
|
|
3451
|
+
|
|
3452
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3453
|
+
:param pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]] devices: Devices lists some or all of the devices in this pool.
|
|
3454
|
+
|
|
3455
|
+
Must not have more than 128 entries.
|
|
3456
|
+
:param pulumi.Input[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.
|
|
3457
|
+
|
|
3458
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
3459
|
+
:param pulumi.Input[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.
|
|
3460
|
+
|
|
3461
|
+
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.
|
|
3462
|
+
|
|
3463
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
|
|
3464
|
+
:param pulumi.Input['_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.
|
|
3465
|
+
|
|
3466
|
+
Must use exactly one term.
|
|
3467
|
+
|
|
3468
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3469
|
+
:param pulumi.Input['ResourcePoolPatchArgs'] pool: Pool describes the pool that this ResourceSlice belongs to.
|
|
3470
|
+
"""
|
|
3471
|
+
if all_nodes is not None:
|
|
3472
|
+
pulumi.set(__self__, "all_nodes", all_nodes)
|
|
3473
|
+
if devices is not None:
|
|
3474
|
+
pulumi.set(__self__, "devices", devices)
|
|
3475
|
+
if driver is not None:
|
|
3476
|
+
pulumi.set(__self__, "driver", driver)
|
|
3477
|
+
if node_name is not None:
|
|
3478
|
+
pulumi.set(__self__, "node_name", node_name)
|
|
3479
|
+
if node_selector is not None:
|
|
3480
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
3481
|
+
if pool is not None:
|
|
3482
|
+
pulumi.set(__self__, "pool", pool)
|
|
3483
|
+
|
|
3484
|
+
@property
|
|
3485
|
+
@pulumi.getter(name="allNodes")
|
|
3486
|
+
def all_nodes(self) -> Optional[pulumi.Input[bool]]:
|
|
3487
|
+
"""
|
|
3488
|
+
AllNodes indicates that all nodes have access to the resources in the pool.
|
|
3489
|
+
|
|
3490
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3491
|
+
"""
|
|
3492
|
+
return pulumi.get(self, "all_nodes")
|
|
3493
|
+
|
|
3494
|
+
@all_nodes.setter
|
|
3495
|
+
def all_nodes(self, value: Optional[pulumi.Input[bool]]):
|
|
3496
|
+
pulumi.set(self, "all_nodes", value)
|
|
3497
|
+
|
|
3498
|
+
@property
|
|
3499
|
+
@pulumi.getter
|
|
3500
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]]]:
|
|
3501
|
+
"""
|
|
3502
|
+
Devices lists some or all of the devices in this pool.
|
|
3503
|
+
|
|
3504
|
+
Must not have more than 128 entries.
|
|
3505
|
+
"""
|
|
3506
|
+
return pulumi.get(self, "devices")
|
|
3507
|
+
|
|
3508
|
+
@devices.setter
|
|
3509
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DevicePatchArgs']]]]):
|
|
3510
|
+
pulumi.set(self, "devices", value)
|
|
3511
|
+
|
|
3512
|
+
@property
|
|
3513
|
+
@pulumi.getter
|
|
3514
|
+
def driver(self) -> Optional[pulumi.Input[str]]:
|
|
3515
|
+
"""
|
|
3516
|
+
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.
|
|
3517
|
+
|
|
3518
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
3519
|
+
"""
|
|
3520
|
+
return pulumi.get(self, "driver")
|
|
3521
|
+
|
|
3522
|
+
@driver.setter
|
|
3523
|
+
def driver(self, value: Optional[pulumi.Input[str]]):
|
|
3524
|
+
pulumi.set(self, "driver", value)
|
|
3525
|
+
|
|
3526
|
+
@property
|
|
3527
|
+
@pulumi.getter(name="nodeName")
|
|
3528
|
+
def node_name(self) -> Optional[pulumi.Input[str]]:
|
|
3529
|
+
"""
|
|
3530
|
+
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.
|
|
3531
|
+
|
|
3532
|
+
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.
|
|
3533
|
+
|
|
3534
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
|
|
3535
|
+
"""
|
|
3536
|
+
return pulumi.get(self, "node_name")
|
|
3537
|
+
|
|
3538
|
+
@node_name.setter
|
|
3539
|
+
def node_name(self, value: Optional[pulumi.Input[str]]):
|
|
3540
|
+
pulumi.set(self, "node_name", value)
|
|
3541
|
+
|
|
3542
|
+
@property
|
|
3543
|
+
@pulumi.getter(name="nodeSelector")
|
|
3544
|
+
def node_selector(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']]:
|
|
3545
|
+
"""
|
|
3546
|
+
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
3547
|
+
|
|
3548
|
+
Must use exactly one term.
|
|
3549
|
+
|
|
3550
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3551
|
+
"""
|
|
3552
|
+
return pulumi.get(self, "node_selector")
|
|
3553
|
+
|
|
3554
|
+
@node_selector.setter
|
|
3555
|
+
def node_selector(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorPatchArgs']]):
|
|
3556
|
+
pulumi.set(self, "node_selector", value)
|
|
3557
|
+
|
|
3558
|
+
@property
|
|
3559
|
+
@pulumi.getter
|
|
3560
|
+
def pool(self) -> Optional[pulumi.Input['ResourcePoolPatchArgs']]:
|
|
3561
|
+
"""
|
|
3562
|
+
Pool describes the pool that this ResourceSlice belongs to.
|
|
3563
|
+
"""
|
|
3564
|
+
return pulumi.get(self, "pool")
|
|
3565
|
+
|
|
3566
|
+
@pool.setter
|
|
3567
|
+
def pool(self, value: Optional[pulumi.Input['ResourcePoolPatchArgs']]):
|
|
3568
|
+
pulumi.set(self, "pool", value)
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
if not MYPY:
|
|
3572
|
+
class ResourceSliceSpecArgsDict(TypedDict):
|
|
3573
|
+
"""
|
|
3574
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
3575
|
+
"""
|
|
3576
|
+
driver: pulumi.Input[str]
|
|
3577
|
+
"""
|
|
3578
|
+
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.
|
|
3579
|
+
|
|
3580
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
3581
|
+
"""
|
|
3582
|
+
pool: pulumi.Input['ResourcePoolArgsDict']
|
|
3583
|
+
"""
|
|
3584
|
+
Pool describes the pool that this ResourceSlice belongs to.
|
|
3585
|
+
"""
|
|
3586
|
+
all_nodes: NotRequired[pulumi.Input[bool]]
|
|
3587
|
+
"""
|
|
3588
|
+
AllNodes indicates that all nodes have access to the resources in the pool.
|
|
3589
|
+
|
|
3590
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3591
|
+
"""
|
|
3592
|
+
devices: NotRequired[pulumi.Input[Sequence[pulumi.Input['DeviceArgsDict']]]]
|
|
3593
|
+
"""
|
|
3594
|
+
Devices lists some or all of the devices in this pool.
|
|
3595
|
+
|
|
3596
|
+
Must not have more than 128 entries.
|
|
3597
|
+
"""
|
|
3598
|
+
node_name: NotRequired[pulumi.Input[str]]
|
|
3599
|
+
"""
|
|
3600
|
+
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.
|
|
3601
|
+
|
|
3602
|
+
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.
|
|
3603
|
+
|
|
3604
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
|
|
3605
|
+
"""
|
|
3606
|
+
node_selector: NotRequired[pulumi.Input['_core.v1.NodeSelectorArgsDict']]
|
|
3607
|
+
"""
|
|
3608
|
+
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
3609
|
+
|
|
3610
|
+
Must use exactly one term.
|
|
3611
|
+
|
|
3612
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3613
|
+
"""
|
|
3614
|
+
elif False:
|
|
3615
|
+
ResourceSliceSpecArgsDict: TypeAlias = Mapping[str, Any]
|
|
3616
|
+
|
|
3617
|
+
@pulumi.input_type
|
|
3618
|
+
class ResourceSliceSpecArgs:
|
|
3619
|
+
def __init__(__self__, *,
|
|
3620
|
+
driver: pulumi.Input[str],
|
|
3621
|
+
pool: pulumi.Input['ResourcePoolArgs'],
|
|
3622
|
+
all_nodes: Optional[pulumi.Input[bool]] = None,
|
|
3623
|
+
devices: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]]] = None,
|
|
3624
|
+
node_name: Optional[pulumi.Input[str]] = None,
|
|
3625
|
+
node_selector: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']] = None):
|
|
3626
|
+
"""
|
|
3627
|
+
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
|
|
3628
|
+
:param pulumi.Input[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.
|
|
3629
|
+
|
|
3630
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
3631
|
+
:param pulumi.Input['ResourcePoolArgs'] pool: Pool describes the pool that this ResourceSlice belongs to.
|
|
3632
|
+
:param pulumi.Input[bool] all_nodes: AllNodes indicates that all nodes have access to the resources in the pool.
|
|
3633
|
+
|
|
3634
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3635
|
+
:param pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]] devices: Devices lists some or all of the devices in this pool.
|
|
3636
|
+
|
|
3637
|
+
Must not have more than 128 entries.
|
|
3638
|
+
:param pulumi.Input[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.
|
|
3639
|
+
|
|
3640
|
+
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.
|
|
3641
|
+
|
|
3642
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
|
|
3643
|
+
:param pulumi.Input['_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.
|
|
3644
|
+
|
|
3645
|
+
Must use exactly one term.
|
|
3646
|
+
|
|
3647
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3648
|
+
"""
|
|
3649
|
+
pulumi.set(__self__, "driver", driver)
|
|
3650
|
+
pulumi.set(__self__, "pool", pool)
|
|
3651
|
+
if all_nodes is not None:
|
|
3652
|
+
pulumi.set(__self__, "all_nodes", all_nodes)
|
|
3653
|
+
if devices is not None:
|
|
3654
|
+
pulumi.set(__self__, "devices", devices)
|
|
3655
|
+
if node_name is not None:
|
|
3656
|
+
pulumi.set(__self__, "node_name", node_name)
|
|
3657
|
+
if node_selector is not None:
|
|
3658
|
+
pulumi.set(__self__, "node_selector", node_selector)
|
|
3659
|
+
|
|
3660
|
+
@property
|
|
3661
|
+
@pulumi.getter
|
|
3662
|
+
def driver(self) -> pulumi.Input[str]:
|
|
3663
|
+
"""
|
|
3664
|
+
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.
|
|
3665
|
+
|
|
3666
|
+
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable.
|
|
3667
|
+
"""
|
|
3668
|
+
return pulumi.get(self, "driver")
|
|
3669
|
+
|
|
3670
|
+
@driver.setter
|
|
3671
|
+
def driver(self, value: pulumi.Input[str]):
|
|
3672
|
+
pulumi.set(self, "driver", value)
|
|
3673
|
+
|
|
3674
|
+
@property
|
|
3675
|
+
@pulumi.getter
|
|
3676
|
+
def pool(self) -> pulumi.Input['ResourcePoolArgs']:
|
|
3677
|
+
"""
|
|
3678
|
+
Pool describes the pool that this ResourceSlice belongs to.
|
|
3679
|
+
"""
|
|
3680
|
+
return pulumi.get(self, "pool")
|
|
3681
|
+
|
|
3682
|
+
@pool.setter
|
|
3683
|
+
def pool(self, value: pulumi.Input['ResourcePoolArgs']):
|
|
3684
|
+
pulumi.set(self, "pool", value)
|
|
3685
|
+
|
|
3686
|
+
@property
|
|
3687
|
+
@pulumi.getter(name="allNodes")
|
|
3688
|
+
def all_nodes(self) -> Optional[pulumi.Input[bool]]:
|
|
3689
|
+
"""
|
|
3690
|
+
AllNodes indicates that all nodes have access to the resources in the pool.
|
|
3691
|
+
|
|
3692
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3693
|
+
"""
|
|
3694
|
+
return pulumi.get(self, "all_nodes")
|
|
3695
|
+
|
|
3696
|
+
@all_nodes.setter
|
|
3697
|
+
def all_nodes(self, value: Optional[pulumi.Input[bool]]):
|
|
3698
|
+
pulumi.set(self, "all_nodes", value)
|
|
3699
|
+
|
|
3700
|
+
@property
|
|
3701
|
+
@pulumi.getter
|
|
3702
|
+
def devices(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]]]:
|
|
3703
|
+
"""
|
|
3704
|
+
Devices lists some or all of the devices in this pool.
|
|
3705
|
+
|
|
3706
|
+
Must not have more than 128 entries.
|
|
3707
|
+
"""
|
|
3708
|
+
return pulumi.get(self, "devices")
|
|
3709
|
+
|
|
3710
|
+
@devices.setter
|
|
3711
|
+
def devices(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['DeviceArgs']]]]):
|
|
3712
|
+
pulumi.set(self, "devices", value)
|
|
3713
|
+
|
|
3714
|
+
@property
|
|
3715
|
+
@pulumi.getter(name="nodeName")
|
|
3716
|
+
def node_name(self) -> Optional[pulumi.Input[str]]:
|
|
3717
|
+
"""
|
|
3718
|
+
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.
|
|
3719
|
+
|
|
3720
|
+
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.
|
|
3721
|
+
|
|
3722
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set. This field is immutable.
|
|
3723
|
+
"""
|
|
3724
|
+
return pulumi.get(self, "node_name")
|
|
3725
|
+
|
|
3726
|
+
@node_name.setter
|
|
3727
|
+
def node_name(self, value: Optional[pulumi.Input[str]]):
|
|
3728
|
+
pulumi.set(self, "node_name", value)
|
|
3729
|
+
|
|
3730
|
+
@property
|
|
3731
|
+
@pulumi.getter(name="nodeSelector")
|
|
3732
|
+
def node_selector(self) -> Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]:
|
|
3733
|
+
"""
|
|
3734
|
+
NodeSelector defines which nodes have access to the resources in the pool, when that pool is not limited to a single node.
|
|
3735
|
+
|
|
3736
|
+
Must use exactly one term.
|
|
3737
|
+
|
|
3738
|
+
Exactly one of NodeName, NodeSelector and AllNodes must be set.
|
|
3739
|
+
"""
|
|
3740
|
+
return pulumi.get(self, "node_selector")
|
|
3741
|
+
|
|
3742
|
+
@node_selector.setter
|
|
3743
|
+
def node_selector(self, value: Optional[pulumi.Input['_core.v1.NodeSelectorArgs']]):
|
|
3744
|
+
pulumi.set(self, "node_selector", value)
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
if not MYPY:
|
|
3748
|
+
class ResourceSliceArgsDict(TypedDict):
|
|
3749
|
+
"""
|
|
3750
|
+
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.
|
|
3751
|
+
|
|
3752
|
+
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>.
|
|
3753
|
+
|
|
3754
|
+
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.
|
|
3755
|
+
|
|
3756
|
+
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.
|
|
3757
|
+
|
|
3758
|
+
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.
|
|
3759
|
+
|
|
3760
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3761
|
+
"""
|
|
3762
|
+
spec: pulumi.Input['ResourceSliceSpecArgsDict']
|
|
3763
|
+
"""
|
|
3764
|
+
Contains the information published by the driver.
|
|
3765
|
+
|
|
3766
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
3767
|
+
"""
|
|
3768
|
+
api_version: NotRequired[pulumi.Input[str]]
|
|
3769
|
+
"""
|
|
3770
|
+
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
|
|
3771
|
+
"""
|
|
3772
|
+
kind: NotRequired[pulumi.Input[str]]
|
|
3773
|
+
"""
|
|
3774
|
+
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
|
|
3775
|
+
"""
|
|
3776
|
+
metadata: NotRequired[pulumi.Input['_meta.v1.ObjectMetaArgsDict']]
|
|
3777
|
+
"""
|
|
3778
|
+
Standard object metadata
|
|
3779
|
+
"""
|
|
3780
|
+
elif False:
|
|
3781
|
+
ResourceSliceArgsDict: TypeAlias = Mapping[str, Any]
|
|
3782
|
+
|
|
3783
|
+
@pulumi.input_type
|
|
3784
|
+
class ResourceSliceArgs:
|
|
3785
|
+
def __init__(__self__, *,
|
|
3786
|
+
spec: pulumi.Input['ResourceSliceSpecArgs'],
|
|
3787
|
+
api_version: Optional[pulumi.Input[str]] = None,
|
|
3788
|
+
kind: Optional[pulumi.Input[str]] = None,
|
|
3789
|
+
metadata: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']] = None):
|
|
3790
|
+
"""
|
|
3791
|
+
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.
|
|
3792
|
+
|
|
3793
|
+
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>.
|
|
3794
|
+
|
|
3795
|
+
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.
|
|
3796
|
+
|
|
3797
|
+
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.
|
|
3798
|
+
|
|
3799
|
+
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.
|
|
3800
|
+
|
|
3801
|
+
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
|
|
3802
|
+
:param pulumi.Input['ResourceSliceSpecArgs'] spec: Contains the information published by the driver.
|
|
3803
|
+
|
|
3804
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
3805
|
+
:param pulumi.Input[str] api_version: APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
|
|
3806
|
+
:param pulumi.Input[str] kind: Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
|
3807
|
+
:param pulumi.Input['_meta.v1.ObjectMetaArgs'] metadata: Standard object metadata
|
|
3808
|
+
"""
|
|
3809
|
+
pulumi.set(__self__, "spec", spec)
|
|
3810
|
+
if api_version is not None:
|
|
3811
|
+
pulumi.set(__self__, "api_version", 'resource.k8s.io/v1beta1')
|
|
3812
|
+
if kind is not None:
|
|
3813
|
+
pulumi.set(__self__, "kind", 'ResourceSlice')
|
|
3814
|
+
if metadata is not None:
|
|
3815
|
+
pulumi.set(__self__, "metadata", metadata)
|
|
3816
|
+
|
|
3817
|
+
@property
|
|
3818
|
+
@pulumi.getter
|
|
3819
|
+
def spec(self) -> pulumi.Input['ResourceSliceSpecArgs']:
|
|
3820
|
+
"""
|
|
3821
|
+
Contains the information published by the driver.
|
|
3822
|
+
|
|
3823
|
+
Changing the spec automatically increments the metadata.generation number.
|
|
3824
|
+
"""
|
|
3825
|
+
return pulumi.get(self, "spec")
|
|
3826
|
+
|
|
3827
|
+
@spec.setter
|
|
3828
|
+
def spec(self, value: pulumi.Input['ResourceSliceSpecArgs']):
|
|
3829
|
+
pulumi.set(self, "spec", value)
|
|
3830
|
+
|
|
3831
|
+
@property
|
|
3832
|
+
@pulumi.getter(name="apiVersion")
|
|
3833
|
+
def api_version(self) -> Optional[pulumi.Input[str]]:
|
|
3834
|
+
"""
|
|
3835
|
+
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
|
|
3836
|
+
"""
|
|
3837
|
+
return pulumi.get(self, "api_version")
|
|
3838
|
+
|
|
3839
|
+
@api_version.setter
|
|
3840
|
+
def api_version(self, value: Optional[pulumi.Input[str]]):
|
|
3841
|
+
pulumi.set(self, "api_version", value)
|
|
3842
|
+
|
|
3843
|
+
@property
|
|
3844
|
+
@pulumi.getter
|
|
3845
|
+
def kind(self) -> Optional[pulumi.Input[str]]:
|
|
3846
|
+
"""
|
|
3847
|
+
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
|
|
3848
|
+
"""
|
|
3849
|
+
return pulumi.get(self, "kind")
|
|
3850
|
+
|
|
3851
|
+
@kind.setter
|
|
3852
|
+
def kind(self, value: Optional[pulumi.Input[str]]):
|
|
3853
|
+
pulumi.set(self, "kind", value)
|
|
3854
|
+
|
|
3855
|
+
@property
|
|
3856
|
+
@pulumi.getter
|
|
3857
|
+
def metadata(self) -> Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]:
|
|
3858
|
+
"""
|
|
3859
|
+
Standard object metadata
|
|
3860
|
+
"""
|
|
3861
|
+
return pulumi.get(self, "metadata")
|
|
3862
|
+
|
|
3863
|
+
@metadata.setter
|
|
3864
|
+
def metadata(self, value: Optional[pulumi.Input['_meta.v1.ObjectMetaArgs']]):
|
|
3865
|
+
pulumi.set(self, "metadata", value)
|
|
3866
|
+
|
|
3867
|
+
|