From 26923465e5b76d69cd9a8625113d80e08bf97c61 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Thu, 2 May 2024 15:42:44 +0200 Subject: [PATCH] Add insecure_registry to osc part of the client insecure_registry argument is not present for the template creation command of osc, while it's present in deprecated client for years. Change-Id: I613a772801abd32031c52627c51fff20f4701ab8 --- magnumclient/osc/v1/cluster_templates.py | 6 ++++++ magnumclient/tests/osc/unit/v1/test_cluster_templates.py | 1 + 2 files changed, 7 insertions(+) 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,