Unverified Commit 4e1e5af0 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #77403 from liggitt/apimachinery-protobuf

Generate and verify apimachinery protobuf
parents dbad8f36 54e948ce
...@@ -23,7 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh" ...@@ -23,7 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env kube::golang::setup_env
APIROOTS=$(git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname | sort | uniq) APIROOTS=$({
# gather the packages explicitly requesting generation
git grep --files-with-matches -e '// +k8s:protobuf-gen=package' cmd pkg staging | xargs -n 1 dirname
# add the root apimachinery pkg containing implicitly generated files (--apimachinery-packages)
echo staging/src/k8s.io/apimachinery/pkg
} | sort | uniq)
_tmp="${KUBE_ROOT}/_tmp" _tmp="${KUBE_ROOT}/_tmp"
......
...@@ -731,6 +731,28 @@ message OwnerReference { ...@@ -731,6 +731,28 @@ message OwnerReference {
optional bool blockOwnerDeletion = 7; optional bool blockOwnerDeletion = 7;
} }
// PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients
// to get access to a particular ObjectMeta schema without knowing the details of the version.
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
message PartialObjectMetadata {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
// +optional
optional ObjectMeta metadata = 1;
}
// PartialObjectMetadataList contains a list of objects containing only their metadata
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
message PartialObjectMetadataList {
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
// +optional
optional ListMeta metadata = 1;
// items contains each of the included items.
repeated PartialObjectMetadata items = 2;
}
// Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. // Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
message Patch { message Patch {
} }
...@@ -893,6 +915,16 @@ message StatusDetails { ...@@ -893,6 +915,16 @@ message StatusDetails {
optional int32 retryAfterSeconds = 5; optional int32 retryAfterSeconds = 5;
} }
// TableOptions are used when a Table is requested by the caller.
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
message TableOptions {
// includeObject decides whether to include each object along with its columnar information.
// Specifying "None" will return no object, specifying "Object" will return the full object contents, and
// specifying "Metadata" (the default) will return the object's metadata in the PartialObjectMetadata kind
// in version v1beta1 of the meta.k8s.io API group.
optional string includeObject = 1;
}
// Time is a wrapper around time.Time which supports correct // Time is a wrapper around time.Time which supports correct
// marshaling to YAML and JSON. Wrappers are provided for many // marshaling to YAML and JSON. Wrappers are provided for many
// of the factory methods that the time package offers. // of the factory methods that the time package offers.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment