diff --git a/k8s-pb-codegen/src/main.rs b/k8s-pb-codegen/src/main.rs index b52046b..8f5372e 100644 --- a/k8s-pb-codegen/src/main.rs +++ b/k8s-pb-codegen/src/main.rs @@ -33,8 +33,7 @@ fn main() -> Result<()> { let tmp_dir = root.join("./tmp"); let descriptor_file = tmp_dir.join("protos.fds"); prost_build::Config::new() - // should probably switch to this - //.btree_map(&["."]) + .btree_map(&["."]) .out_dir(&tmp_dir) .file_descriptor_set_path(&descriptor_file) .compile_protos(protos.as_slice(), &["protos/"])?; diff --git a/k8s-pb/src/api/admission/v1/mod.rs b/k8s-pb/src/api/admission/v1/mod.rs index 28cfed5..d91465d 100644 --- a/k8s-pb/src/api/admission/v1/mod.rs +++ b/k8s-pb/src/api/admission/v1/mod.rs @@ -120,9 +120,9 @@ pub struct AdmissionResponse { /// admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by /// the admission webhook to add additional context to the audit log for this request. /// +optional - #[prost(map = "string, string", tag = "6")] + #[prost(btree_map = "string, string", tag = "6")] pub audit_annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// warnings is a list of warning messages to return to the requesting API client. /// Warning messages describe a problem the client making the API request should correct or be aware of. /// Limit warnings to 120 characters if possible. diff --git a/k8s-pb/src/api/admission/v1beta1/mod.rs b/k8s-pb/src/api/admission/v1beta1/mod.rs index 63f56e8..998319e 100644 --- a/k8s-pb/src/api/admission/v1beta1/mod.rs +++ b/k8s-pb/src/api/admission/v1beta1/mod.rs @@ -120,9 +120,9 @@ pub struct AdmissionResponse { /// admission webhook name (e.g. imagepolicy.example.com/error=image-blacklisted). AuditAnnotations will be provided by /// the admission webhook to add additional context to the audit log for this request. /// +optional - #[prost(map = "string, string", tag = "6")] + #[prost(btree_map = "string, string", tag = "6")] pub audit_annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// warnings is a list of warning messages to return to the requesting API client. /// Warning messages describe a problem the client making the API request should correct or be aware of. /// Limit warnings to 120 characters if possible. diff --git a/k8s-pb/src/api/apps/v1beta1/mod.rs b/k8s-pb/src/api/apps/v1beta1/mod.rs index 2bc5675..da681bd 100644 --- a/k8s-pb/src/api/apps/v1beta1/mod.rs +++ b/k8s-pb/src/api/apps/v1beta1/mod.rs @@ -97,9 +97,9 @@ pub struct DeploymentRollback { pub name: ::core::option::Option<::prost::alloc::string::String>, /// The annotations to be updated to a deployment /// +optional - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub updated_annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// The config of this deployment rollback. #[prost(message, optional, tag = "3")] pub rollback_to: ::core::option::Option, @@ -309,8 +309,9 @@ pub struct ScaleStatus { pub replicas: ::core::option::Option, /// selector is a label query over pods that should match the replicas count. More info: /// +optional - #[prost(map = "string, string", tag = "2")] - pub selector: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "2")] + pub selector: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// targetSelector is the label selector for pods that should match the replicas count. This is a serializated /// version of both map-based and more expressive set-based selectors. This is done to /// avoid introspection in the clients. The string will be in the same format as the diff --git a/k8s-pb/src/api/apps/v1beta2/mod.rs b/k8s-pb/src/api/apps/v1beta2/mod.rs index b0feccd..213e53d 100644 --- a/k8s-pb/src/api/apps/v1beta2/mod.rs +++ b/k8s-pb/src/api/apps/v1beta2/mod.rs @@ -615,8 +615,9 @@ pub struct ScaleStatus { /// selector is a label query over pods that should match the replicas count. More info: /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "2")] - pub selector: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "2")] + pub selector: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// label selector for pods that should match the replicas count. This is a serializated /// version of both map-based and more expressive set-based selectors. This is done to /// avoid introspection in the clients. The string will be in the same format as the diff --git a/k8s-pb/src/api/authentication/v1/mod.rs b/k8s-pb/src/api/authentication/v1/mod.rs index 9f5aac6..ee76df1 100644 --- a/k8s-pb/src/api/authentication/v1/mod.rs +++ b/k8s-pb/src/api/authentication/v1/mod.rs @@ -190,8 +190,8 @@ pub struct UserInfo { pub groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// Any additional information provided by the authenticator. /// +optional - #[prost(map = "string, message", tag = "4")] - pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>, + #[prost(btree_map = "string, message", tag = "4")] + pub extra: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ExtraValue>, } impl crate::Resource for SelfSubjectReview { diff --git a/k8s-pb/src/api/authentication/v1beta1/mod.rs b/k8s-pb/src/api/authentication/v1beta1/mod.rs index 0e47961..5ee5b82 100644 --- a/k8s-pb/src/api/authentication/v1beta1/mod.rs +++ b/k8s-pb/src/api/authentication/v1beta1/mod.rs @@ -116,8 +116,8 @@ pub struct UserInfo { pub groups: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// Any additional information provided by the authenticator. /// +optional - #[prost(map = "string, message", tag = "4")] - pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>, + #[prost(btree_map = "string, message", tag = "4")] + pub extra: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ExtraValue>, } impl crate::Resource for SelfSubjectReview { diff --git a/k8s-pb/src/api/authorization/v1/mod.rs b/k8s-pb/src/api/authorization/v1/mod.rs index d711876..199d0dc 100644 --- a/k8s-pb/src/api/authorization/v1/mod.rs +++ b/k8s-pb/src/api/authorization/v1/mod.rs @@ -289,8 +289,8 @@ pub struct SubjectAccessReviewSpec { /// Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer /// it needs a reflection here. /// +optional - #[prost(map = "string, message", tag = "5")] - pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>, + #[prost(btree_map = "string, message", tag = "5")] + pub extra: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ExtraValue>, /// UID information about the requesting user. /// +optional #[prost(string, optional, tag = "6")] diff --git a/k8s-pb/src/api/authorization/v1beta1/mod.rs b/k8s-pb/src/api/authorization/v1beta1/mod.rs index 747cc55..2618642 100644 --- a/k8s-pb/src/api/authorization/v1beta1/mod.rs +++ b/k8s-pb/src/api/authorization/v1beta1/mod.rs @@ -223,8 +223,8 @@ pub struct SubjectAccessReviewSpec { /// Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer /// it needs a reflection here. /// +optional - #[prost(map = "string, message", tag = "5")] - pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>, + #[prost(btree_map = "string, message", tag = "5")] + pub extra: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ExtraValue>, /// UID information about the requesting user. /// +optional #[prost(string, optional, tag = "6")] diff --git a/k8s-pb/src/api/certificates/v1/mod.rs b/k8s-pb/src/api/certificates/v1/mod.rs index b418630..70618be 100644 --- a/k8s-pb/src/api/certificates/v1/mod.rs +++ b/k8s-pb/src/api/certificates/v1/mod.rs @@ -169,8 +169,8 @@ pub struct CertificateSigningRequestSpec { /// extra contains extra attributes of the user that created the CertificateSigningRequest. /// Populated by the API server on creation and immutable. /// +optional - #[prost(map = "string, message", tag = "6")] - pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>, + #[prost(btree_map = "string, message", tag = "6")] + pub extra: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ExtraValue>, } /// CertificateSigningRequestStatus contains conditions used to indicate /// approved/denied/failed status of the request, and the issued certificate. diff --git a/k8s-pb/src/api/certificates/v1beta1/mod.rs b/k8s-pb/src/api/certificates/v1beta1/mod.rs index 28836a6..7ae69c3 100644 --- a/k8s-pb/src/api/certificates/v1beta1/mod.rs +++ b/k8s-pb/src/api/certificates/v1beta1/mod.rs @@ -150,8 +150,8 @@ pub struct CertificateSigningRequestSpec { /// Extra information about the requesting user. /// See user.Info interface for details. /// +optional - #[prost(map = "string, message", tag = "6")] - pub extra: ::std::collections::HashMap<::prost::alloc::string::String, ExtraValue>, + #[prost(btree_map = "string, message", tag = "6")] + pub extra: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ExtraValue>, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CertificateSigningRequestStatus { diff --git a/k8s-pb/src/api/core/v1/mod.rs b/k8s-pb/src/api/core/v1/mod.rs index b6f53dd..50cb291 100644 --- a/k8s-pb/src/api/core/v1/mod.rs +++ b/k8s-pb/src/api/core/v1/mod.rs @@ -194,9 +194,9 @@ pub struct CsiPersistentVolumeSource { pub fs_type: ::core::option::Option<::prost::alloc::string::String>, /// volumeAttributes of the volume to publish. /// +optional - #[prost(map = "string, string", tag = "5")] + #[prost(btree_map = "string, string", tag = "5")] pub volume_attributes: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// controllerPublishSecretRef is a reference to the secret object containing /// sensitive information to pass to the CSI driver to complete the CSI /// ControllerPublishVolume and ControllerUnpublishVolume calls. @@ -259,9 +259,9 @@ pub struct CsiVolumeSource { /// volumeAttributes stores driver-specific properties that are passed to the CSI /// driver. Consult your driver's documentation for supported values. /// +optional - #[prost(map = "string, string", tag = "4")] + #[prost(btree_map = "string, string", tag = "4")] pub volume_attributes: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// nodePublishSecretRef is a reference to the secret object containing /// sensitive information to pass to the CSI driver to complete the CSI /// NodePublishVolume and NodeUnpublishVolume calls. @@ -533,8 +533,9 @@ pub struct ConfigMap { /// The keys stored in Data must not overlap with the keys in /// the BinaryData field, this is enforced during validation process. /// +optional - #[prost(map = "string, string", tag = "2")] - pub data: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "2")] + pub data: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// BinaryData contains the binary data. /// Each key must consist of alphanumeric characters, '-', '_' or '.'. /// BinaryData can contain byte sequences that are not in the UTF-8 range. @@ -543,9 +544,9 @@ pub struct ConfigMap { /// Using this field will require 1.10+ apiserver and /// kubelet. /// +optional - #[prost(map = "string, bytes", tag = "3")] + #[prost(btree_map = "string, bytes", tag = "3")] pub binary_data: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec>, } /// ConfigMapEnvSource selects a ConfigMap to populate the environment /// variables with. @@ -1083,8 +1084,8 @@ pub struct ContainerStatus { /// and after successfully admitting desired pod resize. /// +featureGate=InPlacePodVerticalScaling /// +optional - #[prost(map = "string, message", tag = "10")] - pub allocated_resources: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "10")] + pub allocated_resources: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -1827,8 +1828,9 @@ pub struct FlexPersistentVolumeSource { pub read_only: ::core::option::Option, /// options is Optional: this field holds extra command options if any. /// +optional - #[prost(map = "string, string", tag = "5")] - pub options: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "5")] + pub options: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } /// FlexVolume represents a generic volume resource that is /// provisioned/attached using an exec based plugin. @@ -1858,8 +1860,9 @@ pub struct FlexVolumeSource { pub read_only: ::core::option::Option, /// options is Optional: this field holds extra command options if any. /// +optional - #[prost(map = "string, string", tag = "5")] - pub options: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "5")] + pub options: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } /// Represents a Flocker volume mounted by the Flocker agent. /// One and only one of datasetName and datasetUUID should be set. @@ -2301,36 +2304,36 @@ pub struct LimitRangeItem { pub r#type: ::core::option::Option<::prost::alloc::string::String>, /// Max usage constraints on this kind by resource name. /// +optional - #[prost(map = "string, message", tag = "2")] - pub max: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub max: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, /// Min usage constraints on this kind by resource name. /// +optional - #[prost(map = "string, message", tag = "3")] - pub min: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "3")] + pub min: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, /// Default resource requirement limit value by resource name if resource limit is omitted. /// +optional - #[prost(map = "string, message", tag = "4")] - pub default: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "4")] + pub default: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, /// DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. /// +optional - #[prost(map = "string, message", tag = "5")] - pub default_request: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "5")] + pub default_request: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, /// MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. /// +optional - #[prost(map = "string, message", tag = "6")] - pub max_limit_request_ratio: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "6")] + pub max_limit_request_ratio: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -2878,16 +2881,16 @@ pub struct NodeStatus { /// Capacity represents the total resources of a node. /// More info: /// +optional - #[prost(map = "string, message", tag = "1")] - pub capacity: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub capacity: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, /// Allocatable represents the resources of a node that are available for scheduling. /// Defaults to Capacity. /// +optional - #[prost(map = "string, message", tag = "2")] - pub allocatable: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub allocatable: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -3265,8 +3268,8 @@ pub struct PersistentVolumeClaimStatus { pub access_modes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// capacity represents the actual resources of the underlying volume. /// +optional - #[prost(map = "string, message", tag = "3")] - pub capacity: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "3")] + pub capacity: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -3303,8 +3306,8 @@ pub struct PersistentVolumeClaimStatus { /// This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. /// +featureGate=RecoverVolumeExpansionFailure /// +optional - #[prost(map = "string, message", tag = "5")] - pub allocated_resources: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "5")] + pub allocated_resources: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -3346,9 +3349,9 @@ pub struct PersistentVolumeClaimStatus { /// +featureGate=RecoverVolumeExpansionFailure /// +mapType=granular /// +optional - #[prost(map = "string, string", tag = "7")] + #[prost(btree_map = "string, string", tag = "7")] pub allocated_resource_statuses: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. /// When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim /// This is a beta field and requires enabling VolumeAttributesClass feature (off by default). @@ -3525,8 +3528,8 @@ pub struct PersistentVolumeSpec { /// capacity is the description of the persistent volume's resources and capacity. /// More info: /// +optional - #[prost(map = "string, message", tag = "1")] - pub capacity: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub capacity: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -4300,9 +4303,9 @@ pub struct PodSpec { /// More info: /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "7")] + #[prost(btree_map = "string, string", tag = "7")] pub node_selector: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// ServiceAccountName is the name of the ServiceAccount to use to run this pod. /// More info: /// +optional @@ -4461,8 +4464,8 @@ pub struct PodSpec { /// defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. /// More info: /// +optional - #[prost(map = "string, message", tag = "32")] - pub overhead: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "32")] + pub overhead: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -5161,8 +5164,9 @@ pub struct ReplicationControllerSpec { /// More info: /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "2")] - pub selector: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "2")] + pub selector: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// Template is the object that describes the pod that will be created if /// insufficient replicas are detected. This takes precedence over a TemplateRef. /// The only allowed template.spec.restartPolicy value is "Always". @@ -5294,8 +5298,8 @@ pub struct ResourceQuotaSpec { /// hard is the set of desired hard limits for each named resource. /// More info: /// +optional - #[prost(map = "string, message", tag = "1")] - pub hard: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub hard: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -5318,15 +5322,15 @@ pub struct ResourceQuotaStatus { /// Hard is the set of enforced hard limits for each named resource. /// More info: /// +optional - #[prost(map = "string, message", tag = "1")] - pub hard: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub hard: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, /// Used is the current observed total usage of the resource in the namespace. /// +optional - #[prost(map = "string, message", tag = "2")] - pub used: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub used: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -5337,8 +5341,8 @@ pub struct ResourceRequirements { /// Limits describes the maximum amount of compute resources allowed. /// More info: /// +optional - #[prost(map = "string, message", tag = "1")] - pub limits: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub limits: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -5347,8 +5351,8 @@ pub struct ResourceRequirements { /// otherwise to an implementation-defined value. Requests cannot exceed Limits. /// More info: /// +optional - #[prost(map = "string, message", tag = "2")] - pub requests: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub requests: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -5574,17 +5578,18 @@ pub struct Secret { /// base64 encoded string, representing the arbitrary (possibly non-string) /// data value here. Described in /// +optional - #[prost(map = "string, bytes", tag = "2")] - pub data: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec>, + #[prost(btree_map = "string, bytes", tag = "2")] + pub data: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::vec::Vec>, /// stringData allows specifying non-binary secret data in string form. /// It is provided as a write-only input field for convenience. /// All keys and values are merged into the data field on write, overwriting any existing values. /// The stringData field is never output when reading from the API. /// +k8s:conversion-gen=false /// +optional - #[prost(map = "string, string", tag = "4")] + #[prost(btree_map = "string, string", tag = "4")] pub string_data: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// Used to facilitate programmatic handling of secret data. /// More info: /// +optional @@ -6023,8 +6028,9 @@ pub struct ServiceSpec { /// More info: /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "2")] - pub selector: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "2")] + pub selector: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// clusterIP is the IP address of the service and is usually assigned /// randomly. If an address is specified manually, is in-range (as per /// system configuration), and is not in use, it will be allocated to the @@ -6778,8 +6784,8 @@ pub struct VolumeResourceRequirements { /// Limits describes the maximum amount of compute resources allowed. /// More info: /// +optional - #[prost(map = "string, message", tag = "1")] - pub limits: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub limits: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -6788,8 +6794,8 @@ pub struct VolumeResourceRequirements { /// otherwise to an implementation-defined value. Requests cannot exceed Limits. /// More info: /// +optional - #[prost(map = "string, message", tag = "2")] - pub requests: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub requests: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, diff --git a/k8s-pb/src/api/discovery/v1/mod.rs b/k8s-pb/src/api/discovery/v1/mod.rs index 494dc4e..9e7ce55 100644 --- a/k8s-pb/src/api/discovery/v1/mod.rs +++ b/k8s-pb/src/api/discovery/v1/mod.rs @@ -34,9 +34,9 @@ pub struct Endpoint { /// write to it will be silently ignored. Topology information can be found /// in the zone and nodeName fields instead. /// +optional - #[prost(map = "string, string", tag = "5")] + #[prost(btree_map = "string, string", tag = "5")] pub deprecated_topology: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// nodeName represents the name of the Node hosting this endpoint. This can /// be used to determine endpoints local to a Node. /// +optional diff --git a/k8s-pb/src/api/discovery/v1beta1/mod.rs b/k8s-pb/src/api/discovery/v1beta1/mod.rs index f7fe4c8..081683e 100644 --- a/k8s-pb/src/api/discovery/v1beta1/mod.rs +++ b/k8s-pb/src/api/discovery/v1beta1/mod.rs @@ -41,8 +41,9 @@ pub struct Endpoint { /// endpoint is located. This should match the corresponding node label. /// This field is deprecated and will be removed in future api versions. /// +optional - #[prost(map = "string, string", tag = "5")] - pub topology: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "5")] + pub topology: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// nodeName represents the name of the Node hosting this endpoint. This can /// be used to determine endpoints local to a Node. /// +optional diff --git a/k8s-pb/src/api/extensions/v1beta1/mod.rs b/k8s-pb/src/api/extensions/v1beta1/mod.rs index 1c0d4e2..80275ff 100644 --- a/k8s-pb/src/api/extensions/v1beta1/mod.rs +++ b/k8s-pb/src/api/extensions/v1beta1/mod.rs @@ -238,9 +238,9 @@ pub struct DeploymentRollback { pub name: ::core::option::Option<::prost::alloc::string::String>, /// The annotations to be updated to a deployment /// +optional - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub updated_annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// The config of this deployment rollback. #[prost(message, optional, tag = "3")] pub rollback_to: ::core::option::Option, @@ -1064,8 +1064,9 @@ pub struct ScaleStatus { /// selector is a label query over pods that should match the replicas count. More info: /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "2")] - pub selector: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "2")] + pub selector: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// label selector for pods that should match the replicas count. This is a serializated /// version of both map-based and more expressive set-based selectors. This is done to /// avoid introspection in the clients. The string will be in the same format as the diff --git a/k8s-pb/src/api/imagepolicy/v1alpha1/mod.rs b/k8s-pb/src/api/imagepolicy/v1alpha1/mod.rs index 7de66d6..2d5dd8c 100644 --- a/k8s-pb/src/api/imagepolicy/v1alpha1/mod.rs +++ b/k8s-pb/src/api/imagepolicy/v1alpha1/mod.rs @@ -35,9 +35,9 @@ pub struct ImageReviewSpec { /// It only includes keys which match the pattern `*.image-policy.k8s.io/*`. /// It is up to each webhook backend to determine how to interpret these annotations, if at all. /// +optional - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// Namespace is the namespace the pod is being created in. /// +optional #[prost(string, optional, tag = "3")] @@ -60,7 +60,7 @@ pub struct ImageReviewStatus { /// be prefix-less (i.e., the admission controller will add an /// appropriate prefix). /// +optional - #[prost(map = "string, string", tag = "3")] + #[prost(btree_map = "string, string", tag = "3")] pub audit_annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } diff --git a/k8s-pb/src/api/node/v1/mod.rs b/k8s-pb/src/api/node/v1/mod.rs index 2e358ea..31ce5a4 100644 --- a/k8s-pb/src/api/node/v1/mod.rs +++ b/k8s-pb/src/api/node/v1/mod.rs @@ -4,8 +4,8 @@ pub struct Overhead { /// podFixed represents the fixed resource overhead associated with running a pod. /// +optional - #[prost(map = "string, message", tag = "1")] - pub pod_fixed: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub pod_fixed: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -72,9 +72,9 @@ pub struct Scheduling { /// be rejected in admission. /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "1")] + #[prost(btree_map = "string, string", tag = "1")] pub node_selector: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// tolerations are appended (excluding duplicates) to pods running with this /// RuntimeClass during admission, effectively unioning the set of nodes /// tolerated by the pod and the RuntimeClass. diff --git a/k8s-pb/src/api/node/v1alpha1/mod.rs b/k8s-pb/src/api/node/v1alpha1/mod.rs index f4c37d6..4f7395c 100644 --- a/k8s-pb/src/api/node/v1alpha1/mod.rs +++ b/k8s-pb/src/api/node/v1alpha1/mod.rs @@ -4,8 +4,8 @@ pub struct Overhead { /// podFixed represents the fixed resource overhead associated with running a pod. /// +optional - #[prost(map = "string, message", tag = "1")] - pub pod_fixed: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub pod_fixed: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -83,9 +83,9 @@ pub struct Scheduling { /// be rejected in admission. /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "1")] + #[prost(btree_map = "string, string", tag = "1")] pub node_selector: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// tolerations are appended (excluding duplicates) to pods running with this /// RuntimeClass during admission, effectively unioning the set of nodes /// tolerated by the pod and the RuntimeClass. diff --git a/k8s-pb/src/api/node/v1beta1/mod.rs b/k8s-pb/src/api/node/v1beta1/mod.rs index 51f0b12..19c4bcc 100644 --- a/k8s-pb/src/api/node/v1beta1/mod.rs +++ b/k8s-pb/src/api/node/v1beta1/mod.rs @@ -4,8 +4,8 @@ pub struct Overhead { /// podFixed represents the fixed resource overhead associated with running a pod. /// +optional - #[prost(map = "string, message", tag = "1")] - pub pod_fixed: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "1")] + pub pod_fixed: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -72,9 +72,9 @@ pub struct Scheduling { /// be rejected in admission. /// +optional /// +mapType=atomic - #[prost(map = "string, string", tag = "1")] + #[prost(btree_map = "string, string", tag = "1")] pub node_selector: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// tolerations are appended (excluding duplicates) to pods running with this /// RuntimeClass during admission, effectively unioning the set of nodes /// tolerated by the pod and the RuntimeClass. diff --git a/k8s-pb/src/api/policy/v1/mod.rs b/k8s-pb/src/api/policy/v1/mod.rs index a10f872..c47ece5 100644 --- a/k8s-pb/src/api/policy/v1/mod.rs +++ b/k8s-pb/src/api/policy/v1/mod.rs @@ -121,8 +121,8 @@ pub struct PodDisruptionBudgetStatus { /// If everything goes smooth this map should be empty for the most of the time. /// Large number of entries in the map may indicate problems with pod deletions. /// +optional - #[prost(map = "string, message", tag = "2")] - pub disrupted_pods: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub disrupted_pods: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::apis::meta::v1::Time, >, diff --git a/k8s-pb/src/api/policy/v1beta1/mod.rs b/k8s-pb/src/api/policy/v1beta1/mod.rs index 6e98f0a..3e896c8 100644 --- a/k8s-pb/src/api/policy/v1beta1/mod.rs +++ b/k8s-pb/src/api/policy/v1beta1/mod.rs @@ -121,8 +121,8 @@ pub struct PodDisruptionBudgetStatus { /// If everything goes smooth this map should be empty for the most of the time. /// Large number of entries in the map may indicate problems with pod deletions. /// +optional - #[prost(map = "string, message", tag = "2")] - pub disrupted_pods: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub disrupted_pods: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::apis::meta::v1::Time, >, diff --git a/k8s-pb/src/api/resource/v1alpha3/mod.rs b/k8s-pb/src/api/resource/v1alpha3/mod.rs index b3acc20..f903e1a 100644 --- a/k8s-pb/src/api/resource/v1alpha3/mod.rs +++ b/k8s-pb/src/api/resource/v1alpha3/mod.rs @@ -39,16 +39,16 @@ pub struct BasicDevice { /// The maximum number of attributes and capacities combined is 32. /// /// +optional - #[prost(map = "string, message", tag = "1")] - pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, DeviceAttribute>, + #[prost(btree_map = "string, message", tag = "1")] + pub attributes: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, DeviceAttribute>, /// Capacity defines the set of capacities for this device. /// The name of each capacity must be unique in that set. /// /// The maximum number of attributes and capacities combined is 32. /// /// +optional - #[prost(map = "string, message", tag = "2")] - pub capacity: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub capacity: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::apimachinery::pkg::api::resource::Quantity, >, diff --git a/k8s-pb/src/api/storage/v1/mod.rs b/k8s-pb/src/api/storage/v1/mod.rs index c2f38e7..64bb09b 100644 --- a/k8s-pb/src/api/storage/v1/mod.rs +++ b/k8s-pb/src/api/storage/v1/mod.rs @@ -382,9 +382,9 @@ pub struct StorageClass { /// parameters holds the parameters for the provisioner that should /// create volumes of this storage class. /// +optional - #[prost(map = "string, string", tag = "3")] + #[prost(btree_map = "string, string", tag = "3")] pub parameters: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. /// Defaults to Delete. /// +optional @@ -524,9 +524,9 @@ pub struct VolumeAttachmentStatus { /// This field must only be set by the entity completing the attach /// operation, i.e. the external-attacher. /// +optional - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub attachment_metadata: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// attachError represents the last error encountered during attach operation, if any. /// This field must only be set by the entity completing the attach /// operation, i.e. the external-attacher. diff --git a/k8s-pb/src/api/storage/v1alpha1/mod.rs b/k8s-pb/src/api/storage/v1alpha1/mod.rs index 0ac6879..1a1c16b 100644 --- a/k8s-pb/src/api/storage/v1alpha1/mod.rs +++ b/k8s-pb/src/api/storage/v1alpha1/mod.rs @@ -177,9 +177,9 @@ pub struct VolumeAttachmentStatus { /// This field must only be set by the entity completing the attach /// operation, i.e. the external-attacher. /// +optional - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub attachment_metadata: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// attachError represents the last error encountered during attach operation, if any. /// This field must only be set by the entity completing the attach /// operation, i.e. the external-attacher. @@ -220,9 +220,9 @@ pub struct VolumeAttributesClass { /// a cumulative max size of 256K. If the CSI driver rejects invalid parameters, /// the target PersistentVolumeClaim will be set to an "Infeasible" state in the /// modifyVolumeStatus field. - #[prost(map = "string, string", tag = "3")] + #[prost(btree_map = "string, string", tag = "3")] pub parameters: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } /// VolumeAttributesClassList is a collection of VolumeAttributesClass objects. #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/k8s-pb/src/api/storage/v1beta1/mod.rs b/k8s-pb/src/api/storage/v1beta1/mod.rs index 08f7612..1755750 100644 --- a/k8s-pb/src/api/storage/v1beta1/mod.rs +++ b/k8s-pb/src/api/storage/v1beta1/mod.rs @@ -384,9 +384,9 @@ pub struct StorageClass { /// parameters holds the parameters for the provisioner that should /// create volumes of this storage class. /// +optional - #[prost(map = "string, string", tag = "3")] + #[prost(btree_map = "string, string", tag = "3")] pub parameters: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. /// Defaults to Delete. /// +optional @@ -526,9 +526,9 @@ pub struct VolumeAttachmentStatus { /// This field must only be set by the entity completing the attach /// operation, i.e. the external-attacher. /// +optional - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub attachment_metadata: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// attachError represents the last error encountered during attach operation, if any. /// This field must only be set by the entity completing the attach /// operation, i.e. the external-attacher. @@ -569,9 +569,9 @@ pub struct VolumeAttributesClass { /// a cumulative max size of 256K. If the CSI driver rejects invalid parameters, /// the target PersistentVolumeClaim will be set to an "Infeasible" state in the /// modifyVolumeStatus field. - #[prost(map = "string, string", tag = "3")] + #[prost(btree_map = "string, string", tag = "3")] pub parameters: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, } /// VolumeAttributesClassList is a collection of VolumeAttributesClass objects. #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1/mod.rs b/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1/mod.rs index e1a84c7..1de07a6 100644 --- a/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1/mod.rs +++ b/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1/mod.rs @@ -474,19 +474,20 @@ pub struct JsonSchemaProps { pub any_of: ::prost::alloc::vec::Vec, #[prost(message, optional, boxed, tag = "28")] pub not: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(map = "string, message", tag = "29")] - pub properties: ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaProps>, + #[prost(btree_map = "string, message", tag = "29")] + pub properties: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaProps>, #[prost(message, optional, boxed, tag = "30")] pub additional_properties: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(map = "string, message", tag = "31")] - pub pattern_properties: ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaProps>, - #[prost(map = "string, message", tag = "32")] + #[prost(btree_map = "string, message", tag = "31")] + pub pattern_properties: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaProps>, + #[prost(btree_map = "string, message", tag = "32")] pub dependencies: - ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaPropsOrStringArray>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaPropsOrStringArray>, #[prost(message, optional, boxed, tag = "33")] pub additional_items: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(map = "string, message", tag = "34")] - pub definitions: ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaProps>, + #[prost(btree_map = "string, message", tag = "34")] + pub definitions: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaProps>, #[prost(message, optional, tag = "35")] pub external_docs: ::core::option::Option, #[prost(message, optional, tag = "36")] diff --git a/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1beta1/mod.rs b/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1beta1/mod.rs index eb75a14..4152ed8 100644 --- a/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1beta1/mod.rs +++ b/k8s-pb/src/apiextensions_apiserver/pkg/apis/apiextensions/v1beta1/mod.rs @@ -535,19 +535,20 @@ pub struct JsonSchemaProps { pub any_of: ::prost::alloc::vec::Vec, #[prost(message, optional, boxed, tag = "28")] pub not: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(map = "string, message", tag = "29")] - pub properties: ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaProps>, + #[prost(btree_map = "string, message", tag = "29")] + pub properties: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaProps>, #[prost(message, optional, boxed, tag = "30")] pub additional_properties: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(map = "string, message", tag = "31")] - pub pattern_properties: ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaProps>, - #[prost(map = "string, message", tag = "32")] + #[prost(btree_map = "string, message", tag = "31")] + pub pattern_properties: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaProps>, + #[prost(btree_map = "string, message", tag = "32")] pub dependencies: - ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaPropsOrStringArray>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaPropsOrStringArray>, #[prost(message, optional, boxed, tag = "33")] pub additional_items: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(map = "string, message", tag = "34")] - pub definitions: ::std::collections::HashMap<::prost::alloc::string::String, JsonSchemaProps>, + #[prost(btree_map = "string, message", tag = "34")] + pub definitions: ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, JsonSchemaProps>, #[prost(message, optional, tag = "35")] pub external_docs: ::core::option::Option, #[prost(message, optional, tag = "36")] diff --git a/k8s-pb/src/apimachinery/pkg/apis/meta/v1/mod.rs b/k8s-pb/src/apimachinery/pkg/apis/meta/v1/mod.rs index 54944d9..0370d75 100644 --- a/k8s-pb/src/apimachinery/pkg/apis/meta/v1/mod.rs +++ b/k8s-pb/src/apimachinery/pkg/apis/meta/v1/mod.rs @@ -436,9 +436,9 @@ pub struct LabelSelector { /// map is equivalent to an element of matchExpressions, whose key field is "key", the /// operator is "In", and the values array contains only "value". The requirements are ANDed. /// +optional - #[prost(map = "string, string", tag = "1")] + #[prost(btree_map = "string, string", tag = "1")] pub match_labels: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// matchExpressions is a list of label selector requirements. The requirements are ANDed. /// +optional /// +listType=atomic @@ -804,16 +804,17 @@ pub struct ObjectMeta { /// and services. /// More info: /// +optional - #[prost(map = "string, string", tag = "11")] - pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + #[prost(btree_map = "string, string", tag = "11")] + pub labels: + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// Annotations is an unstructured key value map stored with a resource that may be /// set by external tools to store and retrieve arbitrary metadata. They are not /// queryable and should be preserved when modifying objects. /// More info: /// +optional - #[prost(map = "string, string", tag = "12")] + #[prost(btree_map = "string, string", tag = "12")] pub annotations: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// List of objects depended by this object. If ALL objects in the list have /// been deleted, this object will be garbage collected. If this object is managed by a controller, /// then an entry in this list will point to this controller, with the controller field set to true. diff --git a/k8s-pb/src/apimachinery/pkg/apis/testapigroup/v1/mod.rs b/k8s-pb/src/apimachinery/pkg/apis/testapigroup/v1/mod.rs index c4c1d17..7b14bb0 100644 --- a/k8s-pb/src/apimachinery/pkg/apis/testapigroup/v1/mod.rs +++ b/k8s-pb/src/apimachinery/pkg/apis/testapigroup/v1/mod.rs @@ -93,9 +93,9 @@ pub struct CarpSpec { /// Selector which must match a node's labels for the carp to be scheduled on that node. /// More info: /// +optional - #[prost(map = "string, string", tag = "7")] + #[prost(btree_map = "string, string", tag = "7")] pub node_selector: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// ServiceAccountName is the name of the ServiceAccount to use to run this carp. /// More info: /// +optional diff --git a/k8s-pb/src/metrics/pkg/apis/external_metrics/v1beta1/mod.rs b/k8s-pb/src/metrics/pkg/apis/external_metrics/v1beta1/mod.rs index 34befdf..266f90d 100644 --- a/k8s-pb/src/metrics/pkg/apis/external_metrics/v1beta1/mod.rs +++ b/k8s-pb/src/metrics/pkg/apis/external_metrics/v1beta1/mod.rs @@ -8,9 +8,9 @@ pub struct ExternalMetricValue { #[prost(string, optional, tag = "1")] pub metric_name: ::core::option::Option<::prost::alloc::string::String>, /// a set of labels that identify a single time series for the metric - #[prost(map = "string, string", tag = "2")] + #[prost(btree_map = "string, string", tag = "2")] pub metric_labels: - ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, + ::prost::alloc::collections::BTreeMap<::prost::alloc::string::String, ::prost::alloc::string::String>, /// indicates the time at which the metrics were produced #[prost(message, optional, tag = "3")] pub timestamp: diff --git a/k8s-pb/src/metrics/pkg/apis/metrics/v1alpha1/mod.rs b/k8s-pb/src/metrics/pkg/apis/metrics/v1alpha1/mod.rs index cf34042..6c83bd8 100644 --- a/k8s-pb/src/metrics/pkg/apis/metrics/v1alpha1/mod.rs +++ b/k8s-pb/src/metrics/pkg/apis/metrics/v1alpha1/mod.rs @@ -6,8 +6,8 @@ pub struct ContainerMetrics { #[prost(string, optional, tag = "1")] pub name: ::core::option::Option<::prost::alloc::string::String>, /// The memory usage is the memory working set. - #[prost(map = "string, message", tag = "2")] - pub usage: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub usage: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -32,8 +32,8 @@ pub struct NodeMetrics { super::super::super::super::super::apimachinery::pkg::apis::meta::v1::Duration, >, /// The memory usage is the memory working set. - #[prost(map = "string, message", tag = "4")] - pub usage: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "4")] + pub usage: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::super::super::apimachinery::pkg::api::resource::Quantity, >, diff --git a/k8s-pb/src/metrics/pkg/apis/metrics/v1beta1/mod.rs b/k8s-pb/src/metrics/pkg/apis/metrics/v1beta1/mod.rs index cf34042..6c83bd8 100644 --- a/k8s-pb/src/metrics/pkg/apis/metrics/v1beta1/mod.rs +++ b/k8s-pb/src/metrics/pkg/apis/metrics/v1beta1/mod.rs @@ -6,8 +6,8 @@ pub struct ContainerMetrics { #[prost(string, optional, tag = "1")] pub name: ::core::option::Option<::prost::alloc::string::String>, /// The memory usage is the memory working set. - #[prost(map = "string, message", tag = "2")] - pub usage: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "2")] + pub usage: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::super::super::apimachinery::pkg::api::resource::Quantity, >, @@ -32,8 +32,8 @@ pub struct NodeMetrics { super::super::super::super::super::apimachinery::pkg::apis::meta::v1::Duration, >, /// The memory usage is the memory working set. - #[prost(map = "string, message", tag = "4")] - pub usage: ::std::collections::HashMap< + #[prost(btree_map = "string, message", tag = "4")] + pub usage: ::prost::alloc::collections::BTreeMap< ::prost::alloc::string::String, super::super::super::super::super::apimachinery::pkg::api::resource::Quantity, >,