|
22 | 22 | 'bootstrap': 'Tell Ansible Service Broker to reload APBs from the container repository', |
23 | 23 | 'test': 'Test the APB', |
24 | 24 | 'run': 'Run APB', |
25 | | - 'refresh': 'Refresh all the service-catalog data', |
26 | 25 | 'version': 'Get current version of APB tool' |
| 26 | + # 'refresh': 'Refresh all the service-catalog data', |
27 | 27 | } |
28 | 28 |
|
29 | 29 |
|
@@ -562,60 +562,62 @@ def subcmd_relist_parser(subcmd): |
562 | 562 | ) |
563 | 563 | return |
564 | 564 |
|
565 | | - |
566 | | -def subcmd_refresh_parser(subcmd): |
567 | | - """ version subcommand """ |
568 | | - subcmd.add_argument( |
569 | | - '--secure', |
570 | | - action='store_true', |
571 | | - dest='verify', |
572 | | - help=u'Verify SSL connection to Ansible Service Broker', |
573 | | - default=False |
574 | | - ) |
575 | | - subcmd.add_argument( |
576 | | - '--ca-path', |
577 | | - action='store', |
578 | | - dest='cert', |
579 | | - help=u'CA cert to use for verifying SSL connection to Ansible Service Broker', |
580 | | - default=None |
581 | | - ) |
582 | | - subcmd.add_argument( |
583 | | - '--username', |
584 | | - '-u', |
585 | | - action='store', |
586 | | - default=None, |
587 | | - dest='basic_auth_username', |
588 | | - help=u'Specify the basic auth username to be used' |
589 | | - ) |
590 | | - subcmd.add_argument( |
591 | | - '--password', |
592 | | - '-p', |
593 | | - action='store', |
594 | | - default=None, |
595 | | - dest='basic_auth_password', |
596 | | - help=u'Specify the basic auth password to be used' |
597 | | - ) |
598 | | - subcmd.add_argument( |
599 | | - '--broker', |
600 | | - action='store', |
601 | | - dest='broker', |
602 | | - help=u'Route to the Ansible Service Broker' |
603 | | - ) |
604 | | - subcmd.add_argument( |
605 | | - '--no-relist', |
606 | | - action='store_true', |
607 | | - dest='no_relist', |
608 | | - help=u'Do not relist the catalog after pushing an apb to the broker', |
609 | | - default=False |
610 | | - ) |
611 | | - subcmd.add_argument( |
612 | | - '--broker-name', |
613 | | - action='store', |
614 | | - dest='broker_name', |
615 | | - help=u'Name of the ServiceBroker k8s resource', |
616 | | - default=u'ansible-service-broker' |
617 | | - ) |
618 | | - return |
| 565 | +# Bug 1585010 - Removing apb refresh as a valid option since it currently depends on kubectl being installed |
| 566 | +# We need to revisit this using the dynamic client as opposed to doing a subprocess call. |
| 567 | +# |
| 568 | +# def subcmd_refresh_parser(subcmd): |
| 569 | +# """ version subcommand """ |
| 570 | +# subcmd.add_argument( |
| 571 | +# '--secure', |
| 572 | +# action='store_true', |
| 573 | +# dest='verify', |
| 574 | +# help=u'Verify SSL connection to Ansible Service Broker', |
| 575 | +# default=False |
| 576 | +# ) |
| 577 | +# subcmd.add_argument( |
| 578 | +# '--ca-path', |
| 579 | +# action='store', |
| 580 | +# dest='cert', |
| 581 | +# help=u'CA cert to use for verifying SSL connection to Ansible Service Broker', |
| 582 | +# default=None |
| 583 | +# ) |
| 584 | +# subcmd.add_argument( |
| 585 | +# '--username', |
| 586 | +# '-u', |
| 587 | +# action='store', |
| 588 | +# default=None, |
| 589 | +# dest='basic_auth_username', |
| 590 | +# help=u'Specify the basic auth username to be used' |
| 591 | +# ) |
| 592 | +# subcmd.add_argument( |
| 593 | +# '--password', |
| 594 | +# '-p', |
| 595 | +# action='store', |
| 596 | +# default=None, |
| 597 | +# dest='basic_auth_password', |
| 598 | +# help=u'Specify the basic auth password to be used' |
| 599 | +# ) |
| 600 | +# subcmd.add_argument( |
| 601 | +# '--broker', |
| 602 | +# action='store', |
| 603 | +# dest='broker', |
| 604 | +# help=u'Route to the Ansible Service Broker' |
| 605 | +# ) |
| 606 | +# subcmd.add_argument( |
| 607 | +# '--no-relist', |
| 608 | +# action='store_true', |
| 609 | +# dest='no_relist', |
| 610 | +# help=u'Do not relist the catalog after pushing an apb to the broker', |
| 611 | +# default=False |
| 612 | +# ) |
| 613 | +# subcmd.add_argument( |
| 614 | +# '--broker-name', |
| 615 | +# action='store', |
| 616 | +# dest='broker_name', |
| 617 | +# help=u'Name of the ServiceBroker k8s resource', |
| 618 | +# default=u'ansible-service-broker' |
| 619 | +# ) |
| 620 | +# return |
619 | 621 |
|
620 | 622 |
|
621 | 623 | def subcmd_version_parser(subcmd): |
|
0 commit comments