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

Federated namespace controller #30207

Merged
merged 4 commits into from
Aug 17, 2016

Conversation

mwielgus
Copy link
Contributor

@mwielgus mwielgus commented Aug 8, 2016

Implemented based on federation common libs.

Depends on #30126.

cc: @quinton-hoole @wojtek-t @kubernetes/sig-cluster-federation


This change is Reviewable

@mwielgus mwielgus added retest-not-required release-note-none Denotes a PR that doesn't merit a release note. labels Aug 8, 2016
@k8s-github-robot k8s-github-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 8, 2016

type NamespaceController struct {
// For triggering single namespace reconcilation. This is used when there is an
// add/update/delete operation on a namespace in ehtier federated API server or
Copy link
Member

Choose a reason for hiding this comment

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

s/ehtier/either/

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.

@mwielgus mwielgus force-pushed the namespace-controller branch 2 times, most recently from 6b9e876 to e5fbbb4 Compare August 8, 2016 14:19
@k8s-github-robot k8s-github-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 8, 2016
@mwielgus mwielgus force-pushed the namespace-controller branch from e5fbbb4 to 4309021 Compare August 10, 2016 13:37
@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 10, 2016
@mwielgus mwielgus force-pushed the namespace-controller branch from 4309021 to eaacbd7 Compare August 10, 2016 20:59
@ghost ghost added the team/control-plane label Aug 10, 2016
@k8s-github-robot k8s-github-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Aug 16, 2016
nsClientset := federationclientset.NewForConfigOrDie(restclient.AddUserAgent(restClientCfg, "namespace-controller"))
namespaceController := namespacecontroller.NewNamespaceController(nsClientset)
namespaceStopChannel := make(chan struct{})
namespaceController.Run(namespaceStopChannel)
Copy link
Member

Choose a reason for hiding this comment

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

nit: we are using wait.NeverStop everywhere, so we probably also want it here (no need to create namespaceStopChannel)

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.

@wojtek-t
Copy link
Member

Just added few more minor comments. Once applied, LGTM

@mwielgus mwielgus force-pushed the namespace-controller branch from 734e9a9 to 74841fa Compare August 16, 2016 19:06
@k8s-github-robot k8s-github-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 16, 2016
@mwielgus mwielgus added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2016
@mwielgus mwielgus force-pushed the namespace-controller branch from 74841fa to c1cbe47 Compare August 16, 2016 19:51
@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2016
@mwielgus mwielgus added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 16, 2016
@k8s-github-robot
Copy link

@mwielgus
You must link to the test flake issue which caused you to request this manual re-test.
Re-test requests should be in the form of: k8s-bot test this issue: #<number>
Here is the list of open test flakes.

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 17, 2016
@wojtek-t wojtek-t added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 17, 2016
@wojtek-t
Copy link
Member

LGTM

@mwielgus
Copy link
Contributor Author

@k8s-bot test this issue: #30754

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@mwielgus
Copy link
Contributor Author

@k8s-bot test this issue: #30779

@k8s-bot
Copy link

k8s-bot commented Aug 17, 2016

GCE e2e build/test passed for commit c1cbe47.

@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 3a938da into kubernetes:master Aug 17, 2016
@k8s-bot
Copy link

k8s-bot commented Aug 17, 2016

GCE e2e build/test passed for commit c1cbe47.

k8s-github-robot pushed a commit that referenced this pull request Aug 19, 2016
Automatic merge from submit-queue

Federated secret controller

Federated secret controller uses the common set of libraries that are used in every federated controller

PR #30207 by @mwielgus  is considered the baseline code for federated controllers and was used as the starting point of this PR
justinsb pushed a commit to justinsb/kubernetes that referenced this pull request Aug 20, 2016
…-kube-client

Automatic merge from submit-queue

Federation informer use kube clientset for target

This is to use kubernetes clientset as the federation informer target clientset as it's used to talking the k8s cluster.

kubernetes#29939 kubernetes#30669 kubernetes#30207
@mwielgus @quinton-hoole @kshafiee @deepak-vij
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. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants