def subcmd_push_parser(subcmd):
    """ push subcommand """
    subcmd.add_argument(
        '--broker',
        action='store',
        dest='broker',
        help=u'Route to the Ansible Service Broker'
    )
    subcmd.add_argument(
        '--registry-service-name',
        action='store',
        dest='reg_svc_name',
        help=u'Name of service for internal OpenShift registry',
        default=u'docker-registry'
    )
    subcmd.add_argument(
        '--registry-namespace',
        action='store',
        dest='reg_namespace',
        help=u'Namespace of internal OpenShift registry',
        default=u'default'
    )
    subcmd.add_argument(
        '--namespace',
        action='store',
        dest='namespace',
        help=u'Namespace to push APB in OpenShift registry',
        default=u'openshift'
    )
    subcmd.add_argument(
        '--registry-route',
        action='store',
        dest='reg_route',
        help=u'Route of internal OpenShift registry'
    )
    subcmd.add_argument(
        '--dockerfile',
        '-f',
        action='store',
        dest='dockerfile',
        help=u'Dockerfile to build internal registry image with',
        default=u'Dockerfile'
    )
    subcmd.add_argument(
        '--secure',
        action='store_true',
        dest='verify',
        help=u'Verify SSL connection to Ansible Service Broker',
        default=False
    )
    subcmd.add_argument(
        '--ca-path',
        action='store',
        dest='cert',
        help=u'CA cert to use for verifying SSL connection to Ansible Service Broker',
        default=None
    )
    subcmd.add_argument(
        '--username',
        '-u',
        action='store',
        default=None,
        dest='basic_auth_username',
        help=u'Specify the basic auth username to be used'
    )
    subcmd.add_argument(
        '--password',
        '-p',
        action='store',
        default=None,
        dest='basic_auth_password',
        help=u'Specify the basic auth password to be used'
    )
    subcmd.add_argument(
        '--no-relist',
        action='store_true',
        dest='no_relist',
        help=u'Do not relist the catalog after pushing an apb to the broker',
        default=False
    )
    subcmd.add_argument(
        '--broker-name',
        action='store',
        dest='broker_name',
        help=u'Name of the ServiceBroker k8s resource',
        default=u'ansible-service-broker'
    )
    subcmd.add_argument(
        '--push-to-broker',
        action='store_true',
        dest='broker_push',
        help=u'Use Broker development endpoint at /v2/apb/',
        default=False
    )
    return
def subcmd_push_parser ( subcmd ) : subcmd . add_argument ( '--broker' , action = 'store' , dest = 'broker' , help = u'Route to the Ansible Service Broker' ) subcmd . add_argument ( '--registry-service-name' , action = 'store' , dest = 'reg_svc_name' , help = u'Name of service for internal OpenShift registry' , default = u'docker-registry' ) subcmd . add_argument ( '--registry-namespace' , action = 'store' , dest = 'reg_namespace' , help = u'Namespace of internal OpenShift registry' , default = u'default' ) subcmd . add_argument ( '--namespace' , action = 'store' , dest = 'namespace' , help = u'Namespace to push APB in OpenShift registry' , default = u'openshift' ) subcmd . add_argument ( '--registry-route' , action = 'store' , dest = 'reg_route' , help = u'Route of internal OpenShift registry' ) subcmd . add_argument ( '--dockerfile' , '-f' , action = 'store' , dest = 'dockerfile' , help = u'Dockerfile to build internal registry image with' , default = u'Dockerfile' ) subcmd . add_argument ( '--secure' , action = 'store_true' , dest = 'verify' , help = u'Verify SSL connection to Ansible Service Broker' , default = False ) subcmd . add_argument ( '--ca-path' , action = 'store' , dest = 'cert' , help = u'CA cert to use for verifying SSL connection to Ansible Service Broker' , default = None ) subcmd . add_argument ( '--username' , '-u' , action = 'store' , default = None , dest = 'basic_auth_username' , help = u'Specify the basic auth username to be used' ) subcmd . add_argument ( '--password' , '-p' , action = 'store' , default = None , dest = 'basic_auth_password' , help = u'Specify the basic auth password to be used' ) subcmd . add_argument ( '--no-relist' , action = 'store_true' , dest = 'no_relist' , help = u'Do not relist the catalog after pushing an apb to the broker' , default = False ) subcmd . add_argument ( '--broker-name' , action = 'store' , dest = 'broker_name' , help = u'Name of the ServiceBroker k8s resource' , default = u'ansible-service-broker' ) subcmd . add_argument ( '--push-to-broker' , action = 'store_true' , dest = 'broker_push' , help = u'Use Broker development endpoint at /v2/apb/' , default = False ) return
push subcommand