Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix irregular snake case conversions for fields #51

Merged
merged 1 commit into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ names:
rg 'IpAddress' k8s-pb -l | xargs sd 'IpAddress' 'IPAddress'
rg 'ServiceCidr' k8s-pb -l | xargs sd 'ServiceCidr' 'ServiceCIDR'
rg 'ClusterCidr' k8s-pb -l | xargs sd 'ClusterCidr' 'ClusterCIDR'
rg 'cluster_i_ps' k8s-pb -l | xargs sd 'cluster_i_ps' 'cluster_ips'
rg 'external_i_ps' k8s-pb -l | xargs sd 'external_i_ps' 'external_ips'
rg 'pod_i_ps' k8s-pb -l | xargs sd 'pod_i_ps' 'pod_ips'
rg 'host_i_ps' k8s-pb -l | xargs sd 'host_i_ps' 'host_ips'
cargo fmt

generate: swagger protos codegen names
8 changes: 4 additions & 4 deletions k8s-pb/src/api/core/v1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4636,7 +4636,7 @@ pub struct PodStatus {
/// +patchMergeKey=ip
/// +listType=atomic
#[prost(message, repeated, tag = "16")]
pub host_i_ps: ::prost::alloc::vec::Vec<HostIp>,
pub host_ips: ::prost::alloc::vec::Vec<HostIp>,
/// podIP address allocated to the pod. Routable at least within the cluster.
/// Empty if not yet allocated.
/// +optional
Expand All @@ -4651,7 +4651,7 @@ pub struct PodStatus {
/// +listType=map
/// +listMapKey=ip
#[prost(message, repeated, tag = "12")]
pub pod_i_ps: ::prost::alloc::vec::Vec<PodIp>,
pub pod_ips: ::prost::alloc::vec::Vec<PodIp>,
/// RFC 3339 date and time at which the object was acknowledged by the Kubelet.
/// This is before the Kubelet pulled the container image(s) for the pod.
/// +optional
Expand Down Expand Up @@ -6075,7 +6075,7 @@ pub struct ServiceSpec {
/// +listType=atomic
/// +optional
#[prost(string, repeated, tag = "18")]
pub cluster_i_ps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
pub cluster_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// type determines how the Service is exposed. Defaults to ClusterIP. Valid
/// options are ExternalName, ClusterIP, NodePort, and LoadBalancer.
/// "ClusterIP" allocates a cluster-internal IP address for load-balancing
Expand Down Expand Up @@ -6103,7 +6103,7 @@ pub struct ServiceSpec {
/// +optional
/// +listType=atomic
#[prost(string, repeated, tag = "5")]
pub external_i_ps: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
pub external_ips: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
/// Supports "ClientIP" and "None". Used to maintain session affinity.
/// Enable client IP based session affinity.
/// Must be ClientIP or None.
Expand Down