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

Adding an example deployment yaml #14319

Merged
merged 1 commit into from
Sep 24, 2015

Conversation

nikhiljindal
Copy link
Contributor

Ref #1743

  • Updating examples_test to be able to work with experimental objects.
  • Adding an example deployment.yaml.

Assigning to @caesarxuchao to review the examples_test changes.

cc @ghodss

@k8s-bot
Copy link

k8s-bot commented Sep 21, 2015

GCE e2e build/test passed for commit ca430313e6e735e249969cc716ed66bb26243536.

@k8s-github-robot k8s-github-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 22, 2015
@k8s-github-robot
Copy link

Labelling this PR as size/M

@pmorie
Copy link
Member

pmorie commented Sep 22, 2015

@ironcladlou

On Mon, Sep 21, 2015 at 8:10 PM, k8s-merge-robot notifications@github.com
wrote:

Labelling this PR as size/M


Reply to this email directly or view it on GitHub
#14319 (comment)
.

@ironcladlou
Copy link
Contributor

LGTM

@@ -369,7 +379,11 @@ func TestExampleObjectSchemas(t *testing.T) {
}
//TODO: Add validate method for &schedulerapi.Policy
} else {
if err := testapi.Default.Codec().DecodeInto(data, expectedType); err != nil {
codec := testapi.Default.Codec()
if strings.HasSuffix(path, "examples/experimental") {
Copy link
Member

Choose a reason for hiding this comment

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

This looks questionable to me. Is it possible an experimental example needs to use a v1 object? I think it's more robust to deduce the group by using the expectedType.
My pending PR has added such a function to testapi, https://github.com/kubernetes/kubernetes/pull/14156/files#diff-59998217138141c72ed55d8a701cd00fR214
Do you want to try that?

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

@nikhiljindal
Copy link
Contributor Author

@caesarxuchao Updated code as per your comment. I copied GetCodecForObject from your PR. PTAL

@k8s-bot
Copy link

k8s-bot commented Sep 23, 2015

GCE e2e build/test passed for commit 4841d08908d8d46ddd9cfe21dd4c44ce3b2333db.

@caesarxuchao
Copy link
Member

Thank you. LGTM. I guess if I don't change the function in my PR, then neither of us would need to do a rebase?

@caesarxuchao caesarxuchao added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed cla: yes labels Sep 23, 2015
@nikhiljindal
Copy link
Contributor Author

Actually there was a slight difference in order of imports. Fixed it now, so that none of us will have to rebase.
Will need your LGTM again.

@k8s-bot
Copy link

k8s-bot commented Sep 24, 2015

GCE e2e build/test passed for commit 60bd401.

@caesarxuchao
Copy link
Member

Thank you @nikhiljindal. LGTM.

@nikhiljindal nikhiljindal added this to the v1.1 milestone Sep 24, 2015
erictune added a commit that referenced this pull request Sep 24, 2015
@erictune erictune merged commit 2eb60f4 into kubernetes:master Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants