Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
4e1e5af0
Unverified
Commit
4e1e5af0
authored
May 03, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
May 03, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #77403 from liggitt/apimachinery-protobuf
Generate and verify apimachinery protobuf
parents
dbad8f36
54e948ce
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletion
+38
-1
verify-generated-protobuf.sh
hack/verify-generated-protobuf.sh
+6
-1
generated.pb.go
.../src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go
+0
-0
generated.proto
.../src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto
+32
-0
No files found.
hack/verify-generated-protobuf.sh
View file @
4e1e5af0
...
@@ -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"
...
...
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.pb.go
View file @
4e1e5af0
This diff is collapsed.
Click to expand it.
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto
View file @
4e1e5af0
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment