Skip to content

Conversation

@haiyanmeng
Copy link
Contributor

This PR implements the first version of Server.CreatePodSandbox.
It is not ready for merge.

@haiyanmeng
Copy link
Contributor Author

@mrunalp , PTAL.
I marked all the points I do not fully understand using TODO(hmeng) notes.

}

runtime.RegisterRuntimeServiceServer(s, service)
runtime.RegisterImageServiceServer(s, service)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please refer to #12 if you're dealing with images

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing out.
I have not reached that far yet. Currently, I am just trying to process each field inside PodSandboxConfig.

Flags: []cli.Flag{
cli.StringFlag{
Name: "config",
Value: "podsandboxconfig.json",
Copy link
Owner

Choose a reason for hiding this comment

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

This should be named config.json

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good.

Signed-off-by: Haiyan Meng <hmeng@redhat.com>
@haiyanmeng
Copy link
Contributor Author

@mrunalp , @runcom , PTAL.

"requests": 200000000000
}
},
"lables": {
Copy link
Owner

Choose a reason for hiding this comment

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

Typo

Signed-off-by: Haiyan Meng <hmeng@redhat.com>
@haiyanmeng
Copy link
Contributor Author

@mrunalp , I added a new commit to fix the problems you pointed out. PTAL.
I will squash these commits before merging.

logDir = fmt.Sprintf("/var/log/ocid/pods/%s", name)
}

// TODO: construct /etc/resolv.conf based on dnsOpts.
Copy link
Owner

Choose a reason for hiding this comment

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

We have to construct /etc/resolv.conf to be mounted. (I looked at existing kubelet code).
For e.g. create this file somewhere under the sandbox directory and add a bind mount to /etc/resolv.conf in the container.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mrunalp , sounds good.
Do you think I should work on it with a separate PR? I kind of want to do that.
Keeping rebasing the current PR on master involves merging conflicts.

Copy link
Owner

Choose a reason for hiding this comment

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

I don't mind doing this in a later PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mrunalp , great.
Then let me know if there is anything I should fix before the PR is ready to be merged.
I will start working on a new PR to parse dns options and cpu settings.

Copy link
Owner

Choose a reason for hiding this comment

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

@hmeng-19 It is okay, I'll merge this and then we can address the TODOs in follow on PRs.

@mrunalp
Copy link
Owner

mrunalp commented Jul 22, 2016

LGTM

@mrunalp mrunalp merged commit 8d6f790 into mrunalp:master Jul 22, 2016
@haiyanmeng haiyanmeng deleted the sandbox branch July 22, 2016 23:24
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.

3 participants