Skip to content

Add code for building cluster client and other resources.#236

Merged
nicksardo merged 1 commit intokubernetes:mci-devfrom
rramkumar1:cluster-event-handling
Apr 20, 2018
Merged

Add code for building cluster client and other resources.#236
nicksardo merged 1 commit intokubernetes:mci-devfrom
rramkumar1:cluster-event-handling

Conversation

@rramkumar1
Copy link
Copy Markdown
Contributor

This PR does a lot of things:

  1. Add a helper for creating a kubernetes client given a Cluster spec. This code is really hacky but it will suffice for now.
  2. Add a helper for doing some work when the "add" and "delete" event handlers fire for a cluster. Specifically, this creates the client, informer managers, and service mappers for each cluster.

Note: I will probably add testing for all of this code in a separate PR.

/assign @nicksardo

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 20, 2018
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

go vet fails because these fields are not keyed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@rramkumar1 rramkumar1 force-pushed the cluster-event-handling branch from 5a19fd4 to 4b2517d Compare April 20, 2018 18:00
@rramkumar1
Copy link
Copy Markdown
Contributor Author

/retest

@nicksardo
Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 20, 2018
@nicksardo nicksardo merged commit d2036fb into kubernetes:mci-dev Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. 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.

3 participants