зеркало из https://github.com/Azure/ARO-RP.git
Rename get-admin-kubeconfig method name to match command
This commit is contained in:
Родитель
8d5d2092bd
Коммит
6802c77aae
|
@ -23,7 +23,7 @@ def load_command_table(self, _):
|
|||
g.wait_command('wait')
|
||||
|
||||
g.custom_command('list-credentials', 'aro_list_credentials')
|
||||
g.custom_command('get-admin-kubeconfig', 'aro_list_admin_credentials')
|
||||
g.custom_command('get-admin-kubeconfig', 'aro_get_admin_kubeconfig')
|
||||
|
||||
g.custom_command('get-versions', 'aro_get_versions', table_transformer=aro_version_table_format)
|
||||
|
||||
|
|
|
@ -288,7 +288,7 @@ def aro_list_credentials(client, resource_group_name, resource_name):
|
|||
return client.open_shift_clusters.list_credentials(resource_group_name, resource_name)
|
||||
|
||||
|
||||
def aro_list_admin_credentials(client, resource_group_name, resource_name, file="kubeconfig"):
|
||||
def aro_get_admin_kubeconfig(client, resource_group_name, resource_name, file="kubeconfig"):
|
||||
query_result = client.open_shift_clusters.list_admin_credentials(resource_group_name, resource_name)
|
||||
file_mode = "x"
|
||||
yaml_data = b64decode(query_result.kubeconfig).decode('UTF-8')
|
||||
|
|
Загрузка…
Ссылка в новой задаче