Skip to content

Commit 1f348dd

Browse files
author
Lily Pan
committed
linter exclusions
1 parent 5626c10 commit 1f348dd

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

src/aks-preview/azext_aks_preview/_help.py

-6
Original file line numberDiff line numberDiff line change
@@ -1716,15 +1716,9 @@
17161716
- name: --enable-secure-boot
17171717
type: bool
17181718
short-summary: Enable Secure Boot on agent node pool. Must use VMSS agent pool type.
1719-
- name: --disable-secure-boot
1720-
type: bool
1721-
short-summary: Disable Secure Boot on agent node pool.
17221719
- name: --enable-vtpm
17231720
type: bool
17241721
short-summary: Enable vTPM on agent node pool. Must use VMSS agent pool type.
1725-
- name: --disable-vtpm
1726-
type: bool
1727-
short-summary: Disable vTPM on agent node pool.
17281722
examples:
17291723
- name: Create a nodepool in an existing AKS cluster with ephemeral os enabled.
17301724
text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --node-osdisk-type Ephemeral --node-osdisk-size 48

src/aks-preview/azext_aks_preview/custom.py

-2
Original file line numberDiff line numberDiff line change
@@ -1182,9 +1182,7 @@ def aks_agentpool_add(
11821182
skip_gpu_driver_install=False,
11831183
# trusted launch
11841184
enable_secure_boot=False,
1185-
disable_secure_boot=False,
11861185
enable_vtpm=False,
1187-
disable_vtpm=False,
11881186
):
11891187
# DO NOT MOVE: get all the original parameters and save them as a dictionary
11901188
raw_parameters = locals()

src/aks-preview/linter_exclusions.yml

+18-5
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,6 @@ aks update:
157157
azure_container_storage_nodepools:
158158
rule_exclusions:
159159
- option_length_too_long
160-
enable_secure_boot:
161-
rule_exclusions:
162-
- option_length_too_long
163-
enable_vtpm:
164-
- option_length_too_long
165160
aks delete:
166161
parameters:
167162
ignore_pod_disruption_budget:
@@ -235,11 +230,29 @@ aks nodepool add:
235230
skip_gpu_driver_install:
236231
rule_exclusions:
237232
- option_length_too_long
233+
enable_secure_boot:
234+
rule_exclusions:
235+
- option_length_too_long
236+
enable_vtpm:
237+
rule_exclusions:
238+
- option_length_too_long
238239
aks nodepool update:
239240
parameters:
240241
enable_artifact_streaming:
241242
rule_exclusions:
242243
- option_length_too_long
244+
enable_secure_boot:
245+
rule_exclusions:
246+
- option_length_too_long
247+
disable_secure_boot:
248+
rule_exclusions:
249+
- option_length_too_long
250+
enable_vtpm:
251+
rule_exclusions:
252+
- option_length_too_long
253+
disable_vtpm:
254+
rule_exclusions:
255+
- option_length_too_long
243256
aks nodepool delete:
244257
parameters:
245258
ignore_pod_disruption_budget:

0 commit comments

Comments
 (0)