Skip to content

Commit 3afe55a

Browse files
committed
just names
Signed-off-by: clux <[email protected]>
1 parent c89d4a6 commit 3afe55a

File tree

12 files changed

+130
-130
lines changed

12 files changed

+130
-130
lines changed

k8s-pb/src/api/apidiscovery/v2/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
44
/// Versions are in descending order of preference, with the first version being the preferred entry.
55
#[derive(Clone, PartialEq, ::prost::Message)]
6-
pub struct ApiGroupDiscovery {
6+
pub struct APIGroupDiscovery {
77
/// Standard object's metadata.
88
/// The only field completed will be name. For instance, resourceVersion will be empty.
99
/// name is the name of the API group whose discovery information is presented here.
@@ -17,26 +17,26 @@ pub struct ApiGroupDiscovery {
1717
/// +listType=map
1818
/// +listMapKey=version
1919
#[prost(message, repeated, tag = "2")]
20-
pub versions: ::prost::alloc::vec::Vec<ApiVersionDiscovery>,
20+
pub versions: ::prost::alloc::vec::Vec<APIVersionDiscovery>,
2121
}
2222
/// APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
2323
/// This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
2424
/// list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
2525
/// that a cluster supports.
2626
#[derive(Clone, PartialEq, ::prost::Message)]
27-
pub struct ApiGroupDiscoveryList {
27+
pub struct APIGroupDiscoveryList {
2828
/// ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
2929
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3030
/// +optional
3131
#[prost(message, optional, tag = "1")]
3232
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
3333
/// items is the list of groups for discovery. The groups are listed in priority order.
3434
#[prost(message, repeated, tag = "2")]
35-
pub items: ::prost::alloc::vec::Vec<ApiGroupDiscovery>,
35+
pub items: ::prost::alloc::vec::Vec<APIGroupDiscovery>,
3636
}
3737
/// APIResourceDiscovery provides information about an API resource for discovery.
3838
#[derive(Clone, PartialEq, ::prost::Message)]
39-
pub struct ApiResourceDiscovery {
39+
pub struct APIResourceDiscovery {
4040
/// resource is the plural name of the resource. This is used in the URL path and is the unique identifier
4141
/// for this resource across all versions in the API group.
4242
/// Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
@@ -77,11 +77,11 @@ pub struct ApiResourceDiscovery {
7777
/// +listType=map
7878
/// +listMapKey=subresource
7979
#[prost(message, repeated, tag = "8")]
80-
pub subresources: ::prost::alloc::vec::Vec<ApiSubresourceDiscovery>,
80+
pub subresources: ::prost::alloc::vec::Vec<APISubresourceDiscovery>,
8181
}
8282
/// APISubresourceDiscovery provides information about an API subresource for discovery.
8383
#[derive(Clone, PartialEq, ::prost::Message)]
84-
pub struct ApiSubresourceDiscovery {
84+
pub struct APISubresourceDiscovery {
8585
/// subresource is the name of the subresource. This is used in the URL path and is the unique identifier
8686
/// for this resource across all versions.
8787
#[prost(string, optional, tag = "1")]
@@ -114,15 +114,15 @@ pub struct ApiSubresourceDiscovery {
114114
}
115115
/// APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
116116
#[derive(Clone, PartialEq, ::prost::Message)]
117-
pub struct ApiVersionDiscovery {
117+
pub struct APIVersionDiscovery {
118118
/// version is the name of the version within a group version.
119119
#[prost(string, optional, tag = "1")]
120120
pub version: ::core::option::Option<::prost::alloc::string::String>,
121121
/// resources is a list of APIResourceDiscovery objects for the corresponding group version.
122122
/// +listType=map
123123
/// +listMapKey=resource
124124
#[prost(message, repeated, tag = "2")]
125-
pub resources: ::prost::alloc::vec::Vec<ApiResourceDiscovery>,
125+
pub resources: ::prost::alloc::vec::Vec<APIResourceDiscovery>,
126126
/// freshness marks whether a group version's discovery document is up to date.
127127
/// "Current" indicates the discovery document was recently
128128
/// refreshed. "Stale" indicates the discovery document could not

k8s-pb/src/api/apidiscovery/v2beta1/mod.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
44
/// Versions are in descending order of preference, with the first version being the preferred entry.
55
#[derive(Clone, PartialEq, ::prost::Message)]
6-
pub struct ApiGroupDiscovery {
6+
pub struct APIGroupDiscovery {
77
/// Standard object's metadata.
88
/// The only field completed will be name. For instance, resourceVersion will be empty.
99
/// name is the name of the API group whose discovery information is presented here.
@@ -17,26 +17,26 @@ pub struct ApiGroupDiscovery {
1717
/// +listType=map
1818
/// +listMapKey=version
1919
#[prost(message, repeated, tag = "2")]
20-
pub versions: ::prost::alloc::vec::Vec<ApiVersionDiscovery>,
20+
pub versions: ::prost::alloc::vec::Vec<APIVersionDiscovery>,
2121
}
2222
/// APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
2323
/// This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
2424
/// list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
2525
/// that a cluster supports.
2626
#[derive(Clone, PartialEq, ::prost::Message)]
27-
pub struct ApiGroupDiscoveryList {
27+
pub struct APIGroupDiscoveryList {
2828
/// ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
2929
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
3030
/// +optional
3131
#[prost(message, optional, tag = "1")]
3232
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
3333
/// items is the list of groups for discovery. The groups are listed in priority order.
3434
#[prost(message, repeated, tag = "2")]
35-
pub items: ::prost::alloc::vec::Vec<ApiGroupDiscovery>,
35+
pub items: ::prost::alloc::vec::Vec<APIGroupDiscovery>,
3636
}
3737
/// APIResourceDiscovery provides information about an API resource for discovery.
3838
#[derive(Clone, PartialEq, ::prost::Message)]
39-
pub struct ApiResourceDiscovery {
39+
pub struct APIResourceDiscovery {
4040
/// resource is the plural name of the resource. This is used in the URL path and is the unique identifier
4141
/// for this resource across all versions in the API group.
4242
/// Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
@@ -77,11 +77,11 @@ pub struct ApiResourceDiscovery {
7777
/// +listType=map
7878
/// +listMapKey=subresource
7979
#[prost(message, repeated, tag = "8")]
80-
pub subresources: ::prost::alloc::vec::Vec<ApiSubresourceDiscovery>,
80+
pub subresources: ::prost::alloc::vec::Vec<APISubresourceDiscovery>,
8181
}
8282
/// APISubresourceDiscovery provides information about an API subresource for discovery.
8383
#[derive(Clone, PartialEq, ::prost::Message)]
84-
pub struct ApiSubresourceDiscovery {
84+
pub struct APISubresourceDiscovery {
8585
/// subresource is the name of the subresource. This is used in the URL path and is the unique identifier
8686
/// for this resource across all versions.
8787
#[prost(string, optional, tag = "1")]
@@ -114,15 +114,15 @@ pub struct ApiSubresourceDiscovery {
114114
}
115115
/// APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
116116
#[derive(Clone, PartialEq, ::prost::Message)]
117-
pub struct ApiVersionDiscovery {
117+
pub struct APIVersionDiscovery {
118118
/// version is the name of the version within a group version.
119119
#[prost(string, optional, tag = "1")]
120120
pub version: ::core::option::Option<::prost::alloc::string::String>,
121121
/// resources is a list of APIResourceDiscovery objects for the corresponding group version.
122122
/// +listType=map
123123
/// +listMapKey=resource
124124
#[prost(message, repeated, tag = "2")]
125-
pub resources: ::prost::alloc::vec::Vec<ApiResourceDiscovery>,
125+
pub resources: ::prost::alloc::vec::Vec<APIResourceDiscovery>,
126126
/// freshness marks whether a group version's discovery document is up to date.
127127
/// "Current" indicates the discovery document was recently
128128
/// refreshed. "Stale" indicates the discovery document could not

k8s-pb/src/api/core/v1/mod.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ pub struct Binding {
171171
}
172172
/// Represents storage that is managed by an external CSI volume driver
173173
#[derive(Clone, PartialEq, ::prost::Message)]
174-
pub struct CsiPersistentVolumeSource {
174+
pub struct CSIPersistentVolumeSource {
175175
/// driver is the name of the driver to use for this volume.
176176
/// Required.
177177
#[prost(string, optional, tag = "1")]
@@ -239,7 +239,7 @@ pub struct CsiPersistentVolumeSource {
239239
}
240240
/// Represents a source location of a volume to mount, managed by an external CSI driver
241241
#[derive(Clone, PartialEq, ::prost::Message)]
242-
pub struct CsiVolumeSource {
242+
pub struct CSIVolumeSource {
243243
/// driver is the name of the CSI driver that handles this volume.
244244
/// Consult with your admin for the correct name as registered in the cluster.
245245
#[prost(string, optional, tag = "1")]
@@ -1144,16 +1144,16 @@ pub struct DaemonEndpoint {
11441144
/// Note that this is identical to a downwardAPI volume source without the default
11451145
/// mode.
11461146
#[derive(Clone, PartialEq, ::prost::Message)]
1147-
pub struct DownwardApiProjection {
1147+
pub struct DownwardAPIProjection {
11481148
/// Items is a list of DownwardAPIVolume file
11491149
/// +optional
11501150
/// +listType=atomic
11511151
#[prost(message, repeated, tag = "1")]
1152-
pub items: ::prost::alloc::vec::Vec<DownwardApiVolumeFile>,
1152+
pub items: ::prost::alloc::vec::Vec<DownwardAPIVolumeFile>,
11531153
}
11541154
/// DownwardAPIVolumeFile represents information to create the file containing the pod field
11551155
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
1156-
pub struct DownwardApiVolumeFile {
1156+
pub struct DownwardAPIVolumeFile {
11571157
/// Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'
11581158
#[prost(string, optional, tag = "1")]
11591159
pub path: ::core::option::Option<::prost::alloc::string::String>,
@@ -1179,12 +1179,12 @@ pub struct DownwardApiVolumeFile {
11791179
/// DownwardAPIVolumeSource represents a volume containing downward API info.
11801180
/// Downward API volumes support ownership management and SELinux relabeling.
11811181
#[derive(Clone, PartialEq, ::prost::Message)]
1182-
pub struct DownwardApiVolumeSource {
1182+
pub struct DownwardAPIVolumeSource {
11831183
/// Items is a list of downward API volume file
11841184
/// +optional
11851185
/// +listType=atomic
11861186
#[prost(message, repeated, tag = "1")]
1187-
pub items: ::prost::alloc::vec::Vec<DownwardApiVolumeFile>,
1187+
pub items: ::prost::alloc::vec::Vec<DownwardAPIVolumeFile>,
11881188
/// Optional: mode bits to use on created files by default. Must be a
11891189
/// Optional: mode bits used to set permissions on created files by default.
11901190
/// Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511.
@@ -3594,7 +3594,7 @@ pub struct PersistentVolumeSource {
35943594
/// csi represents storage that is handled by an external CSI driver.
35953595
/// +optional
35963596
#[prost(message, optional, tag = "22")]
3597-
pub csi: ::core::option::Option<CsiPersistentVolumeSource>,
3597+
pub csi: ::core::option::Option<CSIPersistentVolumeSource>,
35983598
}
35993599
/// PersistentVolumeSpec is the specification of a persistent volume.
36003600
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -4773,7 +4773,7 @@ pub struct PodStatus {
47734773
/// +patchMergeKey=ip
47744774
/// +listType=atomic
47754775
#[prost(message, repeated, tag = "16")]
4776-
pub host_i_ps: ::prost::alloc::vec::Vec<HostIp>,
4776+
pub host_ips: ::prost::alloc::vec::Vec<HostIp>,
47774777
/// podIP address allocated to the pod. Routable at least within the cluster.
47784778
/// Empty if not yet allocated.
47794779
/// +optional
@@ -4788,7 +4788,7 @@ pub struct PodStatus {
47884788
/// +listType=map
47894789
/// +listMapKey=ip
47904790
#[prost(message, repeated, tag = "12")]
4791-
pub pod_i_ps: ::prost::alloc::vec::Vec<PodIp>,
4791+
pub pod_ips: ::prost::alloc::vec::Vec<PodIp>,
47924792
/// RFC 3339 date and time at which the object was acknowledged by the Kubelet.
47934793
/// This is before the Kubelet pulled the container image(s) for the pod.
47944794
/// +optional
@@ -6246,7 +6246,7 @@ pub struct ServiceSpec {
62466246
/// +listType=atomic
62476247
/// +optional
62486248
#[prost(string, repeated, tag = "18")]
6249-
pub cluster_i_ps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6249+
pub cluster_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
62506250
/// type determines how the Service is exposed. Defaults to ClusterIP. Valid
62516251
/// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
62526252
/// "ClusterIP" allocates a cluster-internal IP address for load-balancing
@@ -6274,7 +6274,7 @@ pub struct ServiceSpec {
62746274
/// +optional
62756275
/// +listType=atomic
62766276
#[prost(string, repeated, tag = "5")]
6277-
pub external_i_ps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
6277+
pub external_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
62786278
/// Supports "ClientIP" and "None". Used to maintain session affinity.
62796279
/// Enable client IP based session affinity.
62806280
/// Must be ClientIP or None.
@@ -6933,7 +6933,7 @@ pub struct VolumeProjection {
69336933
/// downwardAPI information about the downwardAPI data to project
69346934
/// +optional
69356935
#[prost(message, optional, tag = "2")]
6936-
pub downward_api: ::core::option::Option<DownwardApiProjection>,
6936+
pub downward_api: ::core::option::Option<DownwardAPIProjection>,
69376937
/// configMap information about the configMap data to project
69386938
/// +optional
69396939
#[prost(message, optional, tag = "3")]
@@ -7086,7 +7086,7 @@ pub struct VolumeSource {
70867086
/// downwardAPI represents downward API about the pod that should populate this volume
70877087
/// +optional
70887088
#[prost(message, optional, tag = "16")]
7089-
pub downward_api: ::core::option::Option<DownwardApiVolumeSource>,
7089+
pub downward_api: ::core::option::Option<DownwardAPIVolumeSource>,
70907090
/// fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
70917091
/// +optional
70927092
#[prost(message, optional, tag = "17")]
@@ -7145,7 +7145,7 @@ pub struct VolumeSource {
71457145
/// csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers.
71467146
/// +optional
71477147
#[prost(message, optional, tag = "28")]
7148-
pub csi: ::core::option::Option<CsiVolumeSource>,
7148+
pub csi: ::core::option::Option<CSIVolumeSource>,
71497149
/// ephemeral represents a volume that is handled by a cluster storage driver.
71507150
/// The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts,
71517151
/// and deleted when the pod is removed.

k8s-pb/src/api/networking/v1/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct HttpIngressRuleValue {
5151
/// Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1
5252
/// Invalid: 10.01.2.3 or 2001:db8:0:0:0::1
5353
#[derive(Clone, PartialEq, ::prost::Message)]
54-
pub struct IpAddress {
54+
pub struct IPAddress {
5555
/// Standard object's metadata.
5656
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
5757
/// +optional
@@ -61,23 +61,23 @@ pub struct IpAddress {
6161
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
6262
/// +optional
6363
#[prost(message, optional, tag = "2")]
64-
pub spec: ::core::option::Option<IpAddressSpec>,
64+
pub spec: ::core::option::Option<IPAddressSpec>,
6565
}
6666
/// IPAddressList contains a list of IPAddress.
6767
#[derive(Clone, PartialEq, ::prost::Message)]
68-
pub struct IpAddressList {
68+
pub struct IPAddressList {
6969
/// Standard object's metadata.
7070
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
7171
/// +optional
7272
#[prost(message, optional, tag = "1")]
7373
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
7474
/// items is the list of IPAddresses.
7575
#[prost(message, repeated, tag = "2")]
76-
pub items: ::prost::alloc::vec::Vec<IpAddress>,
76+
pub items: ::prost::alloc::vec::Vec<IPAddress>,
7777
}
7878
/// IPAddressSpec describe the attributes in an IP Address.
7979
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
80-
pub struct IpAddressSpec {
80+
pub struct IPAddressSpec {
8181
/// ParentRef references the resource that an IPAddress is attached to.
8282
/// An IPAddress must reference a parent object.
8383
/// +required
@@ -617,7 +617,7 @@ pub struct ServiceBackendPort {
617617
/// ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64).
618618
/// This range is used to allocate ClusterIPs to Service objects.
619619
#[derive(Clone, PartialEq, ::prost::Message)]
620-
pub struct ServiceCidr {
620+
pub struct ServiceCIDR {
621621
/// Standard object's metadata.
622622
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
623623
/// +optional
@@ -627,28 +627,28 @@ pub struct ServiceCidr {
627627
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
628628
/// +optional
629629
#[prost(message, optional, tag = "2")]
630-
pub spec: ::core::option::Option<ServiceCidrSpec>,
630+
pub spec: ::core::option::Option<ServiceCIDRSpec>,
631631
/// status represents the current state of the ServiceCIDR.
632632
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
633633
/// +optional
634634
#[prost(message, optional, tag = "3")]
635-
pub status: ::core::option::Option<ServiceCidrStatus>,
635+
pub status: ::core::option::Option<ServiceCIDRStatus>,
636636
}
637637
/// ServiceCIDRList contains a list of ServiceCIDR objects.
638638
#[derive(Clone, PartialEq, ::prost::Message)]
639-
pub struct ServiceCidrList {
639+
pub struct ServiceCIDRList {
640640
/// Standard object's metadata.
641641
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata>
642642
/// +optional
643643
#[prost(message, optional, tag = "1")]
644644
pub metadata: ::core::option::Option<super::super::super::apimachinery::pkg::apis::meta::v1::ListMeta>,
645645
/// items is the list of ServiceCIDRs.
646646
#[prost(message, repeated, tag = "2")]
647-
pub items: ::prost::alloc::vec::Vec<ServiceCidr>,
647+
pub items: ::prost::alloc::vec::Vec<ServiceCIDR>,
648648
}
649649
/// ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.
650650
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
651-
pub struct ServiceCidrSpec {
651+
pub struct ServiceCIDRSpec {
652652
/// CIDRs defines the IP blocks in CIDR notation (e.g. "192.168.0.0/24" or "2001:db8::/64")
653653
/// from which to assign service cluster IPs. Max of two CIDRs is allowed, one of each IP family.
654654
/// This field is immutable.
@@ -659,7 +659,7 @@ pub struct ServiceCidrSpec {
659659
}
660660
/// ServiceCIDRStatus describes the current state of the ServiceCIDR.
661661
#[derive(Clone, PartialEq, ::prost::Message)]
662-
pub struct ServiceCidrStatus {
662+
pub struct ServiceCIDRStatus {
663663
/// conditions holds an array of metav1.Condition that describe the state of the ServiceCIDR.
664664
/// Current service state
665665
/// +optional

0 commit comments

Comments
 (0)