Skip to content

Commit

Permalink
linter exclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Pan committed Jan 26, 2024
1 parent 5626c10 commit 1f348dd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
6 changes: 0 additions & 6 deletions src/aks-preview/azext_aks_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1716,15 +1716,9 @@
- name: --enable-secure-boot
type: bool
short-summary: Enable Secure Boot on agent node pool. Must use VMSS agent pool type.
- name: --disable-secure-boot
type: bool
short-summary: Disable Secure Boot on agent node pool.
- name: --enable-vtpm
type: bool
short-summary: Enable vTPM on agent node pool. Must use VMSS agent pool type.
- name: --disable-vtpm
type: bool
short-summary: Disable vTPM on agent node pool.
examples:
- name: Create a nodepool in an existing AKS cluster with ephemeral os enabled.
text: az aks nodepool add -g MyResourceGroup -n nodepool1 --cluster-name MyManagedCluster --node-osdisk-type Ephemeral --node-osdisk-size 48
Expand Down
2 changes: 0 additions & 2 deletions src/aks-preview/azext_aks_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1182,9 +1182,7 @@ def aks_agentpool_add(
skip_gpu_driver_install=False,
# trusted launch
enable_secure_boot=False,
disable_secure_boot=False,
enable_vtpm=False,
disable_vtpm=False,
):
# DO NOT MOVE: get all the original parameters and save them as a dictionary
raw_parameters = locals()
Expand Down
23 changes: 18 additions & 5 deletions src/aks-preview/linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ aks update:
azure_container_storage_nodepools:
rule_exclusions:
- option_length_too_long
enable_secure_boot:
rule_exclusions:
- option_length_too_long
enable_vtpm:
- option_length_too_long
aks delete:
parameters:
ignore_pod_disruption_budget:
Expand Down Expand Up @@ -235,11 +230,29 @@ aks nodepool add:
skip_gpu_driver_install:
rule_exclusions:
- option_length_too_long
enable_secure_boot:
rule_exclusions:
- option_length_too_long
enable_vtpm:
rule_exclusions:
- option_length_too_long
aks nodepool update:
parameters:
enable_artifact_streaming:
rule_exclusions:
- option_length_too_long
enable_secure_boot:
rule_exclusions:
- option_length_too_long
disable_secure_boot:
rule_exclusions:
- option_length_too_long
enable_vtpm:
rule_exclusions:
- option_length_too_long
disable_vtpm:
rule_exclusions:
- option_length_too_long
aks nodepool delete:
parameters:
ignore_pod_disruption_budget:
Expand Down

0 comments on commit 1f348dd

Please sign in to comment.