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

Make Swagger API support optional, so that consumers can define their own #2945

Merged

Conversation

smarterclayton
Copy link
Contributor

OpenShift would like to also enable swagger, but we need to register our
services as swagger services prior to the SwaggerAPI being started. I've
added a bool (default false) to master.Config to enable swagger, and split
the method in master out so that a downstream consumer can call it.

No functional change for Kube, just more master flexibility.

… own

OpenShift would like to also enable swagger, but we need to register our
services as swagger services prior to the SwaggerAPI being started. I've
added a bool (default false) to master.Config to enable swagger, and split
the method in master out so that a downstream consumer can call it.
@bgrant0607 bgrant0607 self-assigned this Dec 15, 2014
@@ -69,11 +69,15 @@ type Config struct {
PortalNet *net.IPNet
EnableLogsSupport bool
EnableUISupport bool
EnableSwaggerSupport bool
Copy link
Member

Choose a reason for hiding this comment

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

Didn't you want to be able to configure the path at which it's exposed, also?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It actually turned out better to be the same. If necessary we can tweak the swagger config in our own code - I exposed the method for now though.

----- Original Message -----

@@ -69,11 +69,15 @@ type Config struct {
PortalNet *net.IPNet
EnableLogsSupport bool
EnableUISupport bool

  • EnableSwaggerSupport bool

Didn't you want to be able to configure the path at which it's exposed, also?


Reply to this email directly or view it on GitHub:
https://github.com/GoogleCloudPlatform/kubernetes/pull/2945/files#r21854923

@bgrant0607
Copy link
Member

LGTM.

@bgrant0607
Copy link
Member

Waiting for Travis.

bgrant0607 added a commit that referenced this pull request Dec 16, 2014
Make Swagger API support optional, so that consumers can define their own
@bgrant0607 bgrant0607 merged commit f621a05 into kubernetes:master Dec 16, 2014
@smarterclayton smarterclayton deleted the support_optional_swagger branch February 11, 2015 02:21
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.

2 participants