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

Add TypeAccessor to api/meta for objects without Object/ListMeta #3603

Merged
merged 1 commit into from
Jan 20, 2015

Conversation

smarterclayton
Copy link
Contributor

Adding objects that have TypeMeta (use runtime.Scheme) but do not
expose ObjectMeta/ListMeta (because they are not Kube API objects)
and wanted to get the simpler access path for in memory objects.
Updated pkg/api/serialization_test.go to use it.

@@ -33,16 +33,14 @@ type VersionInterfaces struct {
// not support that field (Name, UID, Namespace on lists) will be a no-op and return
// a default value.
type Interface interface {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this become "ObjectInterface" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, although I think at the time it was added the intent was that you would primarily use Interface on the package, thus following the upstream convention. But now it's much more ObjectInterface than Interface.

----- Original Message -----

@@ -33,16 +33,14 @@ type VersionInterfaces struct {
// not support that field (Name, UID, Namespace on lists) will be a no-op
and return
// a default value.
type Interface interface {

Should this become "ObjectInterface" ?


Reply to this email directly or view it on GitHub:
https://github.com/GoogleCloudPlatform/kubernetes/pull/3603/files#r23260815

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Toss in a TODO to rename it and I'll let you off the hook

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

----- Original Message -----

@@ -33,16 +33,14 @@ type VersionInterfaces struct {
// not support that field (Name, UID, Namespace on lists) will be a no-op
and return
// a default value.
type Interface interface {

Toss in a TODO to rename it and I'll let you off the hook


Reply to this email directly or view it on GitHub:
https://github.com/GoogleCloudPlatform/kubernetes/pull/3603/files#r23262608

@thockin
Copy link
Member

thockin commented Jan 20, 2015

LGTM, one open question

Adding objects that have TypeMeta (use runtime.Scheme) but do not
expose ObjectMeta/ListMeta (because they are not Kube API objects)
and wanted to get the simpler access path for in memory objects.
thockin added a commit that referenced this pull request Jan 20, 2015
Add TypeAccessor to api/meta for objects without Object/ListMeta
@thockin thockin merged commit b3b092b into kubernetes:master Jan 20, 2015
@smarterclayton smarterclayton deleted the expose_type_accessor branch February 11, 2015 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants