Allow specifying a github repository if working on ecosystem projects (#63)

This commit is contained in:
Tamal Saha
2018-06-25 07:30:35 -07:00
committed by Brendan Burns
parent 55f9ae0366
commit 7d7ec1cfee
11 changed files with 20 additions and 4 deletions

View File

@@ -302,10 +302,16 @@ def main():
help='Optional username if working on forks',
default='kubernetes'
)
argparser.add_argument(
'repository',
help='Optional repository name if working with kubernetes ecosystem projects',
default='kubernetes'
)
args = argparser.parse_args()
spec_url = 'https://raw.githubusercontent.com/%s/kubernetes/' \
spec_url = 'https://raw.githubusercontent.com/%s/%s/' \
'%s/api/openapi-spec/swagger.json' % (args.username,
args.repository,
args.kubernetes_branch)
pool = urllib3.PoolManager()