Skip to content

Add the service load balancer controller to Origin#8633

Merged
openshift-bot merged 1 commit intoopenshift:masterfrom
smarterclayton:add_service_controller
May 4, 2016
Merged

Add the service load balancer controller to Origin#8633
openshift-bot merged 1 commit intoopenshift:masterfrom
smarterclayton:add_service_controller

Conversation

@smarterclayton
Copy link
Copy Markdown
Contributor

Fixes #8626

@ncdc

@ncdc
Copy link
Copy Markdown
Contributor

ncdc commented Apr 26, 2016

LGTM

cc @sjenning

kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"), recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace)
kc.RunGCController(gcClient)

kc.RunServiceLoadBalancerController()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We've been making sure new controllers run with a service account client a la oc.GetServiceAccountClients(bootstrappolicy.InfraDaemonSetControllerServiceAccountName). Probably want it here too.

cc @deads2k

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.

I was going to ask about that, but I looked at several other controllers in this file and saw they all used clientadapter.FromUnversionedClient(c.KubeClient). Maybe I didn't look thoroughly enough.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yeah, there's still a mix of the old and new implementations. Been trying to catch anything new going in.

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.

Yeah, there's still a mix of the old and new implementations. Been trying to catch anything new going in.

Agree.

As a note for whoever does the rebase, we need to sort out what we do about shared cache ACL-ing. @liggitt

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.

Have we taken into account how we'll change this code path to use versioned
clients?

On Tue, Apr 26, 2016 at 11:04 AM, David Eads notifications@github.com
wrote:

In pkg/cmd/server/start/start_master.go
#8633 (comment):

@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc *kubernetes.MasterConfig) erro
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"), recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace)
kc.RunGCController(gcClient)

  •   kc.RunServiceLoadBalancerController()
    

Yeah, there's still a mix of the old and new implementations. Been trying
to catch anything new going in.

Agree.

As a note for whoever does the rebase, we need to sort out what we do
about shared cache ACL-ing. @liggitt https://github.com/liggitt


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61102578

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.

One role per controller? Yuck

On Tue, Apr 26, 2016 at 11:31 AM, Clayton Coleman ccoleman@redhat.com
wrote:

Have we taken into account how we'll change this code path to use
versioned clients?

On Tue, Apr 26, 2016 at 11:04 AM, David Eads notifications@github.com
wrote:

In pkg/cmd/server/start/start_master.go
#8633 (comment):

@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc *kubernetes.MasterConfig) erro
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"), recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace)
kc.RunGCController(gcClient)

  •  kc.RunServiceLoadBalancerController()
    

Yeah, there's still a mix of the old and new implementations. Been trying
to catch anything new going in.

Agree.

As a note for whoever does the rebase, we need to sort out what we do
about shared cache ACL-ing. @liggitt https://github.com/liggitt


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61102578

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.

One role per thing with discrete and predictable permissions to change API
objects across all namespaces? That seems pretty reasonable to me.

On Tue, Apr 26, 2016 at 11:33 AM, Clayton Coleman notifications@github.com
wrote:

In pkg/cmd/server/start/start_master.go
#8633 (comment):

@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc *kubernetes.MasterConfig) erro
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"), recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace)
kc.RunGCController(gcClient)

  •   kc.RunServiceLoadBalancerController()
    

One role per controller? Yuck
… <#m_-4805712814360026323_>
On Tue, Apr 26, 2016 at 11:31 AM, Clayton Coleman _@.> wrote: >
Have we taken into account how we'll change this code path to use >
versioned clients? > > On Tue, Apr 26, 2016 at 11:04 AM, David Eads
*__@_
.***> > wrote: > In pkg/cmd/server/start/start_master.go > <#8633
(comment)
https://github.com/openshift/origin/pull/8633#discussion_r61102578>: >

@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc
*kubernetes.MasterConfig) erro > >
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"),
recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace) >
kc.RunGCController(gcClient) > > > > +
kc.RunServiceLoadBalancerController() > > Yeah, there's still a mix of the
old and new implementations. Been trying > to catch anything new going in.
Agree. > > As a note for whoever does the rebase, we need to sort out
what we do > about shared cache ACL-ing. @liggitt
https://github.com/liggitt https://github.com/liggitt > > — > You are
receiving this because you authored the thread. > Reply to this email
directly or view it on GitHub > <
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61102578>


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61108219

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.

I meant one service account per controller.

On Tue, Apr 26, 2016 at 12:35 PM, David Eads notifications@github.com
wrote:

In pkg/cmd/server/start/start_master.go
#8633 (comment):

@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc *kubernetes.MasterConfig) erro
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"), recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace)
kc.RunGCController(gcClient)

  •   kc.RunServiceLoadBalancerController()
    

One role per thing with discrete and predictable permissions to change API
objects across all namespaces? That seems pretty reasonable to me.
… <#m_-8016314581085398451_>
On Tue, Apr 26, 2016 at 11:33 AM, Clayton Coleman _@.> wrote: In
pkg/cmd/server/start/start_master.go <#8633 (comment)
https://github.com/openshift/origin/pull/8633#discussion_r61108219>: >
@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc
*kubernetes.MasterConfig) erro >
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"),
recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace) >
kc.RunGCController(gcClient) > > + kc.RunServiceLoadBalancerController()
One role per controller? Yuck … <#m_-4805712814360026323_> On Tue, Apr 26,
2016 at 11:31 AM, Clayton Coleman *__@_
.> wrote: > Have we taken into
account how we'll change this code path to use > versioned clients? > > On
Tue, Apr 26, 2016 at 11:04 AM, David Eads *__@
.***> > wrote: > In
pkg/cmd/server/start/start_master.go > <#8633
#8633 (comment) <#8633 (comment)
https://github.com/openshift/origin/pull/8633#discussion_r61102578>>: >

@@ -613,6 +613,8 @@ func startControllers(oc *origin.MasterConfig, kc
*kubernetes.MasterConfig) erro > >
kc.RunPersistentVolumeClaimRecycler(oc.ImageFor("recycler"),
recyclerClient, oc.Options.PolicyConfig.OpenShiftInfrastructureNamespace) >
kc.RunGCController(gcClient) > > > > +
kc.RunServiceLoadBalancerController() > > Yeah, there's still a mix of the
old and new implementations. Been trying > to catch anything new going in.
Agree. > > As a note for whoever does the rebase, we need to sort out
what we do > about shared cache ACL-ing. @liggitt
https://github.com/liggitt https://github.com/liggitt <
https://github.com/liggitt> > > — > You are receiving this because you
authored the thread. > Reply to this email directly or view it on GitHub >
<
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61102578>
— You are receiving this because you were mentioned. Reply to this email
directly or view it on GitHub <
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61108219>


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/8633/files/a7a264ec9a036439b5959ec6c5d2d2234057ed81#r61119394

@smarterclayton smarterclayton force-pushed the add_service_controller branch from a7a264e to b23b7ba Compare April 26, 2016 15:56
@smarterclayton
Copy link
Copy Markdown
Contributor Author

[test]

@smarterclayton
Copy link
Copy Markdown
Contributor Author

More feedback?

@pweil-
Copy link
Copy Markdown

pweil- commented May 3, 2016

none here, LGTM

@smarterclayton smarterclayton force-pushed the add_service_controller branch from b23b7ba to 7609d9b Compare May 3, 2016 16:54
@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 7609d9b

@openshift-bot
Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/3555/)

@smarterclayton
Copy link
Copy Markdown
Contributor Author

[merge]

@openshift-bot
Copy link
Copy Markdown
Contributor

openshift-bot commented May 4, 2016

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5803/) (Image: devenv-rhel7_4093)

@openshift-bot
Copy link
Copy Markdown
Contributor

Evaluated for origin merge up to 7609d9b

@openshift-bot openshift-bot merged commit d6879a6 into openshift:master May 4, 2016
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.

5 participants