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 types, strategy, validation skeleton #1

Merged
merged 1 commit into from
Jun 23, 2015

Conversation

AnanyaKumar
Copy link
Collaborator

A note: The Replication Controller Spec contains both a PodTemplateSpec and an ObjectReference. So far I omitted the ObjectReference from the Daemon Controller Spec because I couldn't identify where the ObjectReference is used (my guess is that it's used in older versions of the API). If necessary, I'll add the ObjectReference back in.

Also, this code compiles but doesn't pass tests yet. I need to add type specifications for the Daemon Controller in v1beta1, v1beta2, v1beta3, etc. I'll work on those additions now, but I wanted to send this "partial" PR. Thanks for taking the time to review!

@AnanyaKumar
Copy link
Collaborator Author

Btw after hacking a little (by commenting out code that sets up v1beta1, v1beta2), the code runs. I can use the REST interface to create a Daemon Controller, and the controller shows up in etcd :)

@AnanyaKumar
Copy link
Collaborator Author

@vishh @rjnagal 2 groups of unit tests break - the first is related to v1beta1, v1beta2 (which I sent you an email about), and I think we can fix them by rebasing with GoogleCloudPlatform/Kubernetes. The 2nd is related to deepcopy - the error messages say that I need to generate deep copies. I tried running "./hack/update-generated-deep-copies.sh" (with/without sudo, multiple times), but the script didn't create the files after 15 minutes. Do I need to leave it running for longer?

Thanks!

@vishh
Copy link
Collaborator

vishh commented Jun 17, 2015

Let's discuss offline.

On Tue, Jun 16, 2015 at 7:41 PM, Ananya Kumar [email protected]
wrote:

@vishh https://github.com/vishh @rjnagal https://github.com/rjnagal 2
groups of unit tests break - the first is related to v1beta1, v1beta2
(which I sent you an email about), and I think we can fix them by rebasing
with GoogleCloudPlatform/Kubernetes. The 2nd is related to deepcopy - the
error messages say that I need to generate deep copies. I tried running
"./hack/update-generated-deep-copies.sh" (with/without sudo, multiple
times), but it didn't create the files after 15 minutes. Do I need to leave
it running for longer?

Thanks!


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

@AnanyaKumar
Copy link
Collaborator Author

Ok I've added the generated deep copies. I think there might have been a bug in the old script. Thanks @vishh !

@AnanyaKumar
Copy link
Collaborator Author

@rjnagal @vishh I just spoke to Vishnu offline and he mentioned that he didn't know I had submitted a pull request. I realized that I forgot to mention you guys in the PR! Could you please take a look at this PR when you get a chance, and let me know if you have feedback? Thanks!

I've started writing tests for the API (I'll update this PR soon), and in parallel I've started writing code for kubectl (I've implemented kubectl 'get').

@@ -213,7 +213,7 @@ function start_apiserver {
--admission_control="${ADMISSION_CONTROL}" \
--address="${API_HOST}" \
--port="${API_PORT}" \
--runtime_config=api/v1beta3 \
--runtime_config=api/v1 \
Copy link
Owner

Choose a reason for hiding this comment

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

maybe we should rebase the master branch?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For some reason master still uses v1beta3 in local-up-cluster. Should I do the same?

Copy link
Owner

Choose a reason for hiding this comment

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

Upstream master does too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, upstream master uses v1beta3 in local-up-cluster. I rebased from upstream to your branch a couple of days ago to fix some issues :)

@vmarmol
Copy link
Owner

vmarmol commented Jun 23, 2015

LGTM, can we squash commits and we'll merge :)

@AnanyaKumar
Copy link
Collaborator Author

Thanks, squashed :)

@vmarmol
Copy link
Owner

vmarmol commented Jun 23, 2015

LGTM

vmarmol added a commit that referenced this pull request Jun 23, 2015
Add types, strategy, validation skeleton
@vmarmol vmarmol merged commit ab8a1b6 into vmarmol:master Jun 23, 2015
// controller.
type DaemonControllerStatus struct {
// NodesRunningDaemon is the number of nodes running the Daemon.
NodesRunningDaemon int `json:"nodes_running_daemon"`
Copy link

Choose a reason for hiding this comment

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

json must be nodesRunningDaemon

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in the next PR :)

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.

4 participants