diff --git a/magnumclient/osc/v1/cluster_templates.py b/magnumclient/osc/v1/cluster_templates.py index 491889b5..3c064047 100644 --- a/magnumclient/osc/v1/cluster_templates.py +++ b/magnumclient/osc/v1/cluster_templates.py @@ -195,6 +195,11 @@ class CreateClusterTemplate(command.ShowOne): action='store_true', default=False, help=_('Enable docker registry in the Cluster')) + parser.add_argument( + '--insecure-registry', + dest='insecure_registry', + help=_('The URL pointing to users own private insecure docker' + 'registry to deploy and run docker containers.')) parser.add_argument( '--server-type', dest='server_type', @@ -268,6 +273,7 @@ class CreateClusterTemplate(command.ShowOne): 'tls_disabled': parsed_args.tls_disabled, 'public': parsed_args.public, 'registry_enabled': parsed_args.registry_enabled, + 'insecure_registry': parsed_args.insecure_registry, 'server_type': parsed_args.server_type, 'master_lb_enabled': parsed_args.master_lb_enabled, } diff --git a/magnumclient/tests/osc/unit/v1/test_cluster_templates.py b/magnumclient/tests/osc/unit/v1/test_cluster_templates.py index 317e4563..682ca4b3 100644 --- a/magnumclient/tests/osc/unit/v1/test_cluster_templates.py +++ b/magnumclient/tests/osc/unit/v1/test_cluster_templates.py @@ -46,6 +46,7 @@ class TestClusterTemplate(magnum_fakes.TestMagnumClientOSCV1): 'no_proxy': None, 'public': False, 'registry_enabled': False, + 'insecure_registry': None, 'server_type': 'vm', 'tls_disabled': False, 'volume_driver': None,