Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Commit 235065f

Browse files
Fix help text for consistency
1 parent 5f7e128 commit 235065f

1 file changed

Lines changed: 84 additions & 44 deletions

File tree

  • src/k8s-configuration/azext_k8s_configuration

src/k8s-configuration/azext_k8s_configuration/_help.py

Lines changed: 84 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66

77
from knack.help_files import helps # pylint: disable=unused-import
88

9-
helps['k8s-configuration'] = """
9+
helps[
10+
"k8s-configuration"
11+
] = """
1012
type: group
1113
short-summary: Commands to manage resources from Microsoft.KubernetesConfiguration.
1214
"""
1315

14-
helps['k8s-configuration create'] = """
16+
helps[
17+
"k8s-configuration create"
18+
] = """
1519
type: command
1620
short-summary: Create a Flux v1 Kubernetes configuration (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux create").
1721
examples:
@@ -26,7 +30,9 @@
2630
--ssh-known-hosts '' --ssh-known-hosts-file ''
2731
"""
2832

29-
helps['k8s-configuration list'] = """
33+
helps[
34+
"k8s-configuration list"
35+
] = """
3036
type: command
3137
short-summary: List Flux v1 Kubernetes configurations (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux list").
3238
examples:
@@ -36,7 +42,9 @@
3642
--cluster-type connectedClusters
3743
"""
3844

39-
helps['k8s-configuration delete'] = """
45+
helps[
46+
"k8s-configuration delete"
47+
] = """
4048
type: command
4149
short-summary: Delete a Flux v1 Kubernetes configuration (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux delete").
4250
examples:
@@ -46,7 +54,9 @@
4654
--cluster-type connectedClusters --name MyConfigurationName
4755
"""
4856

49-
helps['k8s-configuration show'] = """
57+
helps[
58+
"k8s-configuration show"
59+
] = """
5060
type: command
5161
short-summary: Show details of a Flux v1 Kubernetes configuration (This command is for Flux v1, to use the newer Flux v2, run "az k8s-configuration flux show").
5262
examples:
@@ -56,16 +66,20 @@
5666
--cluster-type connectedClusters --name MyConfigurationName
5767
"""
5868

59-
helps['k8s-configuration flux'] = """
69+
helps[
70+
"k8s-configuration flux"
71+
] = """
6072
type: group
6173
short-summary: Commands to manage Flux v2 Kubernetes configurations.
6274
"""
6375

64-
helps['k8s-configuration flux create'] = """
76+
helps[
77+
"k8s-configuration flux create"
78+
] = """
6579
type: command
66-
short-summary: Create a Kubernetes Flux v2 Configuration.
80+
short-summary: Create a Flux v2 Kubernetes configuration.
6781
examples:
68-
- name: Create a Kubernetes v2 Flux Configuration
82+
- name: Create a Flux v2 Kubernetes configuration
6983
text: |-
7084
az k8s-configuration flux create --resource-group my-resource-group \\
7185
--cluster-name mycluster --cluster-type connectedClusters \\
@@ -74,127 +88,153 @@
7488
--branch main --kustomization name=my-kustomization
7589
"""
7690

77-
helps['k8s-configuration flux update'] = """
91+
helps[
92+
"k8s-configuration flux update"
93+
] = """
7894
type: command
79-
short-summary: Update a Kubernetes Flux v2 Configuration.
95+
short-summary: Update a Flux v2 Kubernetes configuration.
8096
examples:
81-
- name: Update a Kubernetes v2 Flux Configuration
97+
- name: Update a Flux v2 Kubernetes configuration
8298
text: |-
8399
az k8s-configuration flux update --resource-group my-resource-group \\
84100
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
85101
--url https://github.com/Azure/arc-k8s-demo --branch main \\
86102
--kustomization name=my-kustomization path=./my/new-path
87103
"""
88104

89-
helps['k8s-configuration flux list'] = """
105+
helps[
106+
"k8s-configuration flux list"
107+
] = """
90108
type: command
91-
short-summary: List Kubernetes Flux v2 Configurations.
109+
short-summary: List all Flux v2 Kubernetes configurations.
92110
examples:
93-
- name: List all Kubernetes Flux v2 Configurations on a cluster
111+
- name: List Flux v2 Kubernetes configurations on a cluster
94112
text: |-
95113
az k8s-configuration flux list --resource-group my-resource-group \\
96114
--cluster-name mycluster --cluster-type connectedClusters
97115
"""
98116

99-
helps['k8s-configuration flux show'] = """
117+
helps[
118+
"k8s-configuration flux show"
119+
] = """
100120
type: command
101-
short-summary: Show a Kubernetes Flux v2 Configuration.
121+
short-summary: Show a Flux v2 Kubernetes configuration.
102122
examples:
103-
- name: Show details of a Kubernetes Flux v2 Configuration
123+
- name: Show details of a Flux v2 Kubernetes configuration
104124
text: |-
105125
az k8s-configuration flux show --resource-group my-resource-group \\
106126
--cluster-name mycluster --cluster-type connectedClusters --name myconfig
107127
"""
108128

109-
helps['k8s-configuration flux delete'] = """
129+
helps[
130+
"k8s-configuration flux delete"
131+
] = """
110132
type: command
111-
short-summary: Delete a Kubernetes Flux v2 Configuration.
133+
short-summary: Delete a Flux v2 Kubernetes configuration.
112134
examples:
113-
- name: Delete an existing Kubernetes Flux v2 Configuration
135+
- name: Delete an existing Flux v2 Kubernetes configuration
114136
text: |-
115137
az k8s-configuration flux delete --resource-group my-resource-group \\
116138
--cluster-name mycluster --cluster-type connectedClusters --name myconfig
117139
"""
118140

119-
helps['k8s-configuration flux kustomization'] = """
141+
helps[
142+
"k8s-configuration flux kustomization"
143+
] = """
120144
type: group
121145
short-summary: Commands to manage Kustomizations associated with Flux v2 Kubernetes configurations.
122146
"""
123147

124-
helps['k8s-configuration flux kustomization create'] = """
148+
helps[
149+
"k8s-configuration flux kustomization create"
150+
] = """
125151
type: command
126-
short-summary: Create a Kustomization associated with a Kubernetes Flux v2 Configuration.
152+
short-summary: Create a Kustomization associated with a Flux v2 Kubernetes configuration.
127153
examples:
128-
- name: Create a Kustomization associated wiht a Kubernetes v2 Flux Configuration
154+
- name: Create a Kustomization associated with a Flux v2 Kubernetes configuration
129155
text: |-
130156
az k8s-configuration flux kustomization create --resource-group my-resource-group \\
131157
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
132158
--kustomization-name my-kustomization-2 --path ./my/path --prune --force
133159
"""
134160

135-
helps['k8s-configuration flux kustomization update'] = """
161+
helps[
162+
"k8s-configuration flux kustomization update"
163+
] = """
136164
type: command
137-
short-summary: Update a Kustomization associated with a Kubernetes Flux v2 Configuration.
165+
short-summary: Update a Kustomization associated with a Flux v2 Kubernetes configuration.
138166
examples:
139-
- name: Update a Kustomization associated with a Kubernetes v2 Flux Configuration
167+
- name: Update a Kustomization associated with a Flux v2 Kubernetes configuration
140168
text: |-
141169
az k8s-configuration flux kustomization update --resource-group my-resource-group \\
142170
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
143171
--kustomization-name my-kustomization --path ./my/new-path --prune --force
144172
"""
145173

146-
helps['k8s-configuration flux kustomization list'] = """
174+
helps[
175+
"k8s-configuration flux kustomization list"
176+
] = """
147177
type: command
148-
short-summary: List Kustomizations associated with a Kubernetes Flux v2 Configuration.
178+
short-summary: List Kustomizations associated with a Flux v2 Kubernetes configuration.
149179
examples:
150-
- name: List all Kustomizations associated with a Kubernetes Flux v2 Configuration on a cluster
180+
- name: List all Kustomizations associated with a Flux v2 Kubernetes configuration
151181
text: |-
152182
az k8s-configuration flux kustomization list --resource-group my-resource-group \\
153183
--cluster-name mycluster --name myconfig --cluster-type connectedClusters
154184
"""
155185

156-
helps['k8s-configuration flux kustomization show'] = """
186+
helps[
187+
"k8s-configuration flux kustomization show"
188+
] = """
157189
type: command
158-
short-summary: Show a Kustomization associated with a Flux v2 Configuration.
190+
short-summary: Show a Kustomization associated with a Flux v2 Kubernetes configuration.
159191
examples:
160-
- name: Show details of a Kustomization associated with a Kubernetes Flux v2 Configuration
192+
- name: Show details of a Kustomization associated with a Flux v2 Kubernetes configuration
161193
text: |-
162194
az k8s-configuration flux kustomization show --resource-group my-resource-group \\
163195
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
164196
--kustomization-name my-kustomization
165197
"""
166198

167-
helps['k8s-configuration flux kustomization delete'] = """
199+
helps[
200+
"k8s-configuration flux kustomization delete"
201+
] = """
168202
type: command
169-
short-summary: Delete a Kustomization associated with a Kubernetes Flux v2 Configuration.
203+
short-summary: Delete a Kustomization associated with a Flux v2 Kubernetes configuration.
170204
examples:
171-
- name: Delete an existing Kustomization associated with a Kubernetes Flux v2 Configuration
205+
- name: Delete an existing Kustomization associated with a Flux v2 Kubernetes configuration
172206
text: |-
173207
az k8s-configuration flux kustomization delete --resource-group my-resource-group \\
174208
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\
175209
--kustomization-name my-kustomization
176210
"""
177211

178-
helps['k8s-configuration flux deployed-object'] = """
212+
helps[
213+
"k8s-configuration flux deployed-object"
214+
] = """
179215
type: group
180216
short-summary: Commands to see deployed objects associated with Flux v2 Kubernetes configurations.
181217
"""
182218

183-
helps['k8s-configuration flux deployed-object list'] = """
219+
helps[
220+
"k8s-configuration flux deployed-object list"
221+
] = """
184222
type: command
185-
short-summary: List deployed objects associated with a Kubernetes Flux v2 Configuration.
223+
short-summary: List deployed objects associated with a Flux v2 Kubernetes configuration.
186224
examples:
187-
- name: List all deployed objects associated with a Kubernetes Flux v2 Configuration on a cluster
225+
- name: List all deployed objects associated with a Flux v2 Kubernetes configuration
188226
text: |-
189227
az k8s-configuration flux deployed-object list --resource-group my-resource-group \\
190228
--cluster-name mycluster --name myconfig --cluster-type connectedClusters
191229
"""
192230

193-
helps['k8s-configuration flux deployed-object show'] = """
231+
helps[
232+
"k8s-configuration flux deployed-object show"
233+
] = """
194234
type: command
195-
short-summary: Show a deployed object associated with a Flux v2 Configuration.
235+
short-summary: Show a deployed object associated with a Flux v2 Kubernetes configuration.
196236
examples:
197-
- name: Show details of a deployed object associated with a Kubernetes Flux v2 Configuration
237+
- name: Show details of a deployed object associated with a Flux v2 Kubernetes configuration
198238
text: |-
199239
az k8s-configuration flux deployed-object show --resource-group my-resource-group \\
200240
--cluster-name mycluster --cluster-type connectedClusters --name myconfig \\

0 commit comments

Comments
 (0)