-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Removing ContainerManifest #9807
Conversation
GCE e2e build/test passed for commit 18b78f8a792da6855a99c7a22a3b2a55ae50fef8. |
@@ -863,27 +863,6 @@ func validateContainers(containers []api.Container, volumes util.StringSet) errs | |||
|
|||
var supportedManifestVersions = util.NewStringSet("v1beta1", "v1beta2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line can be removed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@@ -125,7 +125,7 @@ func TestList(t *testing.T) { | |||
roundTripSame(t, item) | |||
} | |||
|
|||
var nonRoundTrippableTypes = util.NewStringSet("ContainerManifest", "ContainerManifestList") | |||
var nonRoundTrippableTypes = util.NewStringSet() | |||
var nonInternalRoundTrippableTypes = util.NewStringSet("List", "ListOptions", "PodExecOptions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikhiljindal @bgrant0607 , can we remove nonRoundTrippableTypes
? Or are we expecting there will be new member in this sets in the future?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only reviewed kubelet related pieces, that lgtm. Thanks for cleaning up. |
18b78f8
to
ea58610
Compare
GCE e2e build/test passed for commit ea5861073f883f9d289e4d3922fa158575d40734. |
I'm OOO right now, but occasionally checking in on this one. Is there anything left that I need to do? |
I'm still not sure about |
I think it's fine to leave nonRoundTrippableTypes in the code for now. |
Milestone? |
@bgrant0607 could you set triage it? I don't think I have the right to set the milestone. |
This is ok to go in, but the test failures need to be fixed. |
The only test failure I saw was what looked to be a flaky shippable build,
|
@k8s-bot ok to test |
GCE e2e build/test passed for commit ea5861073f883f9d289e4d3922fa158575d40734. |
Close and re-open the PR to trigger shippable |
ea58610
to
3573e74
Compare
Rebased |
GCE e2e build/test passed for commit 3573e744eee8a4b1d46b5155c2b45c65d77b11ca. |
3573e74
to
d13421e
Compare
"kind": "Pod", | ||
"metadata": { | ||
"name": "%v", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jdef FYI I had to fix this error in Pod specification. By removing the name defaulting in pkg/kubelet/config/common.go, this test started failing.
I fixed the mesos test failure that relied on Pod name defaulting logic in kubelet. |
GCE e2e build/test passed for commit d13421e. |
Thanks @krousey. LGTM. @bgrant0607, could you give the second LGTM? Thanks. |
@@ -437,9 +437,9 @@ func TestExecutorStaticPods(t *testing.T) { | |||
assert.NoError(t, err) | |||
spod := `{ | |||
"apiVersion": "v1beta3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just change this to v1 while we're touching it?
LGTM. We can do the v1beta3->v1 conversion later, if necessary. |
#8087
cc @caesarxuchao @nikhiljindal @bgrant0607
@dchen1107 Please double check pkg/kubelet/config/file_test.go and other kubelet changes.