Skip to content

Commit

Permalink
Bump 1.30.1 (#35)
Browse files Browse the repository at this point in the history
also cargo-machete remove unused bytes from codegen
  • Loading branch information
clux authored May 29, 2024
2 parents f4727f0 + 8d4b890 commit 0c776d5
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 44 deletions.
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION := "1.30.0"
VERSION := "1.30.1"

default:
@just --list
Expand Down
1 change: 0 additions & 1 deletion k8s-pb-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ license = "Apache-2.0"
publish = false

[dependencies]
bytes = "1.0.1"
prost = "0.12.3"
prost-build = "0.12.3"
prost-types = "0.12.3"
Expand Down
21 changes: 12 additions & 9 deletions k8s-pb-codegen/openapi/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -6014,7 +6014,7 @@
"description": "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand All @@ -6032,7 +6032,7 @@
"type": "string"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand Down Expand Up @@ -6124,7 +6124,7 @@
"x-kubernetes-list-type": "atomic"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand All @@ -6151,7 +6151,7 @@
"x-kubernetes-list-type": "atomic"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand Down Expand Up @@ -7469,6 +7469,9 @@
"type": "string"
}
},
"required": [
"ip"
],
"type": "object"
},
"io.k8s.api.core.v1.HostIP": {
Expand Down Expand Up @@ -7850,7 +7853,7 @@
"description": "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
}
},
Expand Down Expand Up @@ -10744,7 +10747,7 @@
"description": "SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.",
"properties": {
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand All @@ -10762,7 +10765,7 @@
"type": "string"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand Down Expand Up @@ -10823,7 +10826,7 @@
"x-kubernetes-list-type": "atomic"
},
"name": {
"description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"description": "Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
"type": "string"
},
"optional": {
Expand Down Expand Up @@ -11248,7 +11251,7 @@
"description": "sessionAffinityConfig contains the configurations of session affinity."
},
"trafficDistribution": {
"description": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone).",
"description": "TrafficDistribution offers a way to express preferences for how traffic is distributed to Service endpoints. Implementations can use this field as a hint, but are not required to guarantee strict adherence. If the field is not set, the implementation will apply its default routing strategy. If set to \"PreferClose\", implementations should prioritize endpoints that are topologically close (e.g., same zone). This is an alpha field and requires enabling ServiceTrafficDistribution feature.",
"type": "string"
},
"type": {
Expand Down
62 changes: 31 additions & 31 deletions k8s-pb-codegen/protos.list
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
protos/api/admission/v1/generated.proto
protos/api/admission/v1beta1/generated.proto
protos/api/admissionregistration/v1/generated.proto
protos/api/admissionregistration/v1alpha1/generated.proto
protos/api/admissionregistration/v1beta1/generated.proto
protos/api/admissionregistration/v1/generated.proto
protos/api/admission/v1beta1/generated.proto
protos/api/admission/v1/generated.proto
protos/api/apidiscovery/v2beta1/generated.proto
protos/api/apidiscovery/v2/generated.proto
protos/api/apidiscovery/v2beta1/generated.proto
protos/api/apiserverinternal/v1alpha1/generated.proto
protos/api/apps/v1/generated.proto
protos/api/apps/v1beta1/generated.proto
protos/api/apps/v1beta2/generated.proto
protos/api/apps/v1/generated.proto
protos/api/authentication/v1/generated.proto
protos/api/authentication/v1alpha1/generated.proto
protos/api/authentication/v1beta1/generated.proto
protos/api/authentication/v1/generated.proto
protos/api/authorization/v1beta1/generated.proto
protos/api/authorization/v1/generated.proto
protos/api/authorization/v1beta1/generated.proto
protos/api/autoscaling/v1/generated.proto
protos/api/autoscaling/v2/generated.proto
protos/api/autoscaling/v2beta1/generated.proto
protos/api/autoscaling/v2beta2/generated.proto
protos/api/autoscaling/v2/generated.proto
protos/api/batch/v1beta1/generated.proto
protos/api/batch/v1/generated.proto
protos/api/batch/v1beta1/generated.proto
protos/api/certificates/v1/generated.proto
protos/api/certificates/v1alpha1/generated.proto
protos/api/certificates/v1beta1/generated.proto
protos/api/certificates/v1/generated.proto
protos/api/coordination/v1beta1/generated.proto
protos/api/coordination/v1/generated.proto
protos/api/coordination/v1beta1/generated.proto
protos/api/core/v1/generated.proto
protos/api/discovery/v1beta1/generated.proto
protos/api/discovery/v1/generated.proto
protos/api/events/v1beta1/generated.proto
protos/api/discovery/v1beta1/generated.proto
protos/api/events/v1/generated.proto
protos/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto
protos/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto
protos/api/events/v1beta1/generated.proto
protos/api/extensions/v1beta1/generated.proto
protos/api/flowcontrol/v1/generated.proto
protos/api/flowcontrol/v1beta1/generated.proto
protos/api/flowcontrol/v1beta2/generated.proto
protos/api/flowcontrol/v1beta3/generated.proto
protos/api/flowcontrol/v1/generated.proto
protos/api/imagepolicy/v1alpha1/generated.proto
protos/apimachinery/pkg/api/resource/generated.proto
protos/apimachinery/pkg/apis/meta/v1beta1/generated.proto
protos/apimachinery/pkg/apis/meta/v1/generated.proto
protos/apimachinery/pkg/apis/testapigroup/v1/generated.proto
protos/apimachinery/pkg/runtime/generated.proto
protos/apimachinery/pkg/runtime/schema/generated.proto
protos/apimachinery/pkg/util/intstr/generated.proto
protos/api/networking/v1/generated.proto
protos/api/networking/v1alpha1/generated.proto
protos/api/networking/v1beta1/generated.proto
protos/api/networking/v1/generated.proto
protos/api/node/v1/generated.proto
protos/api/node/v1alpha1/generated.proto
protos/api/node/v1beta1/generated.proto
protos/api/node/v1/generated.proto
protos/api/policy/v1beta1/generated.proto
protos/api/policy/v1/generated.proto
protos/api/policy/v1beta1/generated.proto
protos/api/rbac/v1/generated.proto
protos/api/rbac/v1alpha1/generated.proto
protos/api/rbac/v1beta1/generated.proto
protos/api/rbac/v1/generated.proto
protos/api/resource/v1alpha2/generated.proto
protos/api/scheduling/v1/generated.proto
protos/api/scheduling/v1alpha1/generated.proto
protos/api/scheduling/v1beta1/generated.proto
protos/api/scheduling/v1/generated.proto
protos/api/storagemigration/v1alpha1/generated.proto
protos/api/storage/v1/generated.proto
protos/api/storage/v1alpha1/generated.proto
protos/api/storage/v1beta1/generated.proto
protos/api/storage/v1/generated.proto
protos/kube-aggregator/pkg/apis/apiregistration/v1beta1/generated.proto
protos/api/storagemigration/v1alpha1/generated.proto
protos/apiextensions-apiserver/pkg/apis/apiextensions/v1/generated.proto
protos/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto
protos/apimachinery/pkg/api/resource/generated.proto
protos/apimachinery/pkg/apis/meta/v1/generated.proto
protos/apimachinery/pkg/apis/meta/v1beta1/generated.proto
protos/apimachinery/pkg/apis/testapigroup/v1/generated.proto
protos/apimachinery/pkg/runtime/generated.proto
protos/apimachinery/pkg/runtime/schema/generated.proto
protos/apimachinery/pkg/util/intstr/generated.proto
protos/kube-aggregator/pkg/apis/apiregistration/v1/generated.proto
protos/kube-aggregator/pkg/apis/apiregistration/v1beta1/generated.proto
protos/metrics/pkg/apis/custom_metrics/v1beta1/generated.proto
protos/metrics/pkg/apis/custom_metrics/v1beta2/generated.proto
protos/metrics/pkg/apis/external_metrics/v1beta1/generated.proto
Expand Down
11 changes: 10 additions & 1 deletion k8s-pb-codegen/protos/api/core/v1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion k8s-pb/src/api/core/v1/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2162,6 +2162,7 @@ pub struct HttpHeader {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HostAlias {
/// IP address of the host file entry.
/// +required
#[prost(string, optional, tag = "1")]
pub ip: ::core::option::Option<::prost::alloc::string::String>,
/// Hostnames for the above IP address.
Expand Down Expand Up @@ -2537,9 +2538,15 @@ pub struct LoadBalancerStatus {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LocalObjectReference {
/// Name of the referent.
/// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
/// This field is effectively required, but due to backwards compatibility is
/// allowed to be empty. Instances of this type with an empty value here are
/// almost certainly wrong.
/// TODO: Add other useful fields. apiVersion, kind, uid?
/// More info: <https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names>
/// +optional
/// +default=""
/// +kubebuilder:default=""
/// TODO: Drop `kubebuilder:default` when controller-gen doesn't need it <https://github.com/kubernetes-sigs/kubebuilder/issues/3896.>
#[prost(string, optional, tag = "1")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
}
Expand Down Expand Up @@ -6462,6 +6469,8 @@ pub struct ServiceSpec {
/// not set, the implementation will apply its default routing strategy. If set
/// to "PreferClose", implementations should prioritize endpoints that are
/// topologically close (e.g., same zone).
/// This is an alpha field and requires enabling ServiceTrafficDistribution feature.
/// +featureGate=ServiceTrafficDistribution
/// +optional
#[prost(string, optional, tag = "23")]
pub traffic_distribution: ::core::option::Option<::prost::alloc::string::String>,
Expand Down

0 comments on commit 0c776d5

Please sign in to comment.