-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Conversation
[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 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 |
|
||
// 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. |
There was a problem hiding this comment.
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.
/retest |
type TemplateServiceBrokerConfig struct { | ||
GenericConfig *genericapiserver.Config | ||
|
||
// these are only needed for the template service broker, which should move out |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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. :)
some nits. Looks good otherwise. Feel free to self apply lgtm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm as well
@frobware fyi |
/test end_to_end |
2 similar comments
/test end_to_end |
/test end_to_end |
Automatic merge from submit-queue |
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.