-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy path_help.py
More file actions
117 lines (101 loc) · 4.18 KB
/
_help.py
File metadata and controls
117 lines (101 loc) · 4.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# Copyright (c) Microsoft Corporation.
# Licensed under the Apache License 2.0.
from knack.help_files import helps
helps['aro'] = """
type: group
short-summary: Manage Azure Red Hat OpenShift clusters.
"""
helps['aro create'] = """
type: command
short-summary: Create a cluster.
examples:
- name: Create a cluster.
text: az aro create --resource-group MyResourceGroup --name MyCluster --vnet MyVnet --master-subnet MyMasterSubnet --worker-subnet MyWorkerSubnet
- name: Create a cluster with a supported OpenShift version.
text: az aro create --resource-group MyResourceGroup --name MyCluster --vnet MyVnet --master-subnet MyMasterSubnet --worker-subnet MyWorkerSubnet --version X.Y.Z
- name: Create a cluster with 5 compute nodes and Red Hat pull secret.
text: az aro create --resource-group MyResourceGroup --name MyCluster --vnet MyVnet --master-subnet MyMasterSubnet --worker-subnet MyWorkerSubnet --worker-count 5 --pull-secret pullsecret.txt
- name: Create a private cluster.
text: az aro create --resource-group MyResourceGroup --name MyCluster --vnet MyVnet --master-subnet MyMasterSubnet --worker-subnet MyWorkerSubnet --apiserver-visibility Private --ingress-visibility Private
"""
helps['aro validate'] = """
type: command
short-summary: Validate permissions required to create a cluster.
examples:
- name: Validate permissions.
text: az aro validate --resource-group MyGroup --name MyName --vnet MyVnet --master-subnet MyMasterSubnet --worker-subnet MyWorkerSubnet
- name: Validate permissions and OpenShift version
text: az aro validate --resource-group MyGroup --name MyName --vnet MyVnet --master-subnet MyMasterSubnet --worker-subnet MyWorkerSubnet --version X.Y.Z
"""
helps['aro list'] = """
type: command
short-summary: List clusters.
examples:
- name: List clusters.
text: az aro list
- name: List clusters with table view.
text: az aro list -o table
"""
helps['aro get-versions'] = """
type: command
short-summary: List versions available for installation.
examples:
- name: List install versions available for the East US region.
text: az aro get-versions --location eastus
- name: List install versions available for the East US region with table formatted output.
text: az aro get-versions --location eastus -o table
"""
helps['aro delete'] = """
type: command
short-summary: Delete a cluster.
examples:
- name: Delete a cluster.
text: az aro delete --name MyCluster --resource-group MyResourceGroup
"""
helps['aro show'] = """
type: command
short-summary: Get the details of a cluster.
examples:
- name: Get the details of a cluster.
text: az aro show --name MyCluster --resource-group MyResourceGroup
"""
helps['aro update'] = """
type: command
short-summary: Update a cluster.
examples:
- name: Update a cluster.
text: az aro update --name MyCluster --resource-group MyResourceGroup
"""
helps['aro list-credentials'] = """
type: command
short-summary: List credentials of a cluster.
examples:
- name: List credentials of a cluster.
text: az aro list-credentials --name MyCluster --resource-group MyResourceGroup
"""
helps['aro get-admin-kubeconfig'] = """
type: command
short-summary: List admin kubeconfig of a cluster.
examples:
- name: List admin kubeconfig of a cluster. The default is to save it in a file named "kubeconfig".
text: az aro get-admin-kubeconfig --name MyCluster --resource-group MyResourceGroup
"""
helps['aro wait'] = """
type: command
short-summary: Wait for a cluster to reach a desired state.
long-summary: If an operation on a cluster was interrupted or was started with `--no-wait`, use this command to wait for it to complete.
"""
helps['aro identity'] = """
type: group
short-summary: Manage identities related to Azure Red Hat OpenShift clusters.
"""
helps['aro identity get-required'] = """
type: command
short-summary: Get required identities
long-summary: Get required identities for creating a cluster with managed identities.
"""
helps['aro identity create-required'] = """
type: command
short-summary: Create required identities
long-summary: Create required identities to prepare for creating a cluster with managed identities.
"""