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

move templateservicebroker to its own server #15568

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Jul 31, 2017

This separates the template service broker into its own apiserver which is added to the openshift apiserver chain.

@soltysh ptal
@bparees I don't know jimminter's github id and github autocompletion is down.

@openshift-merge-robot openshift-merge-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 31, 2017
@openshift-merge-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k

No associated issue. Update pull-request body to add a reference to an issue, or get approval with /approve no-issue

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 31, 2017
@deads2k deads2k assigned soltysh and jim-minter and unassigned mfojtik Jul 31, 2017

// TODO, when/if the TSB becomes a separate entity, this should stop creating the SA and instead die if it cannot find it
s.GenericAPIServer.AddPostStartHook("template-service-broker-ensure-service-account", func(context genericapiserver.PostStartHookContext) error {
// TODO jim-minter - this is the spot to create the namespace if needed and create the SA if needed.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jim-minter this is the spot for you to update.

@deads2k
Copy link
Contributor Author

deads2k commented Jul 31, 2017

/retest

type TemplateServiceBrokerConfig struct {
GenericConfig *genericapiserver.Config

// these are only needed for the template service broker, which should move out
Copy link
Contributor

Choose a reason for hiding this comment

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

comment can go

TemplateNamespaces []string
}

// TemplateServiceBrokerServer serves non-API endpoints for openshift.
Copy link
Contributor

Choose a reason for hiding this comment

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

copy/paste of comment? not really specific

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy/paste of comment? not really specific

It's how linting improves our code. Something I learned about in my intro to java class. We've been doing it wrong all these years. :)

@sttts
Copy link
Contributor

sttts commented Aug 1, 2017

some nits. Looks good otherwise. Feel free to self apply lgtm.

@deads2k deads2k added the lgtm Indicates that a PR is ready to be merged. label Aug 1, 2017
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

lgtm as well

@soltysh
Copy link
Contributor

soltysh commented Aug 1, 2017

@frobware fyi

@deads2k
Copy link
Contributor Author

deads2k commented Aug 1, 2017

/test end_to_end

2 similar comments
@stevekuznetsov
Copy link
Contributor

/test end_to_end

@stevekuznetsov
Copy link
Contributor

/test end_to_end

@openshift-merge-robot
Copy link
Contributor

Automatic merge from submit-queue

@openshift-merge-robot openshift-merge-robot merged commit 005b0af into openshift:master Aug 1, 2017
@deads2k deads2k deleted the server-13-tsb branch August 3, 2017 19:29
openshift-merge-robot added a commit that referenced this pull request Aug 4, 2017
Automatic merge from submit-queue

create template-service-broker SA during API server startup

fixes #15405 
(builds on #15568)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. 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.

7 participants