Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AKS] az aks create/update: Add support for feature Advanced Container Networking Services #30208

Merged
merged 8 commits into from
Nov 20, 2024

Conversation

snguyen64
Copy link
Contributor

@snguyen64 snguyen64 commented Oct 28, 2024

Related command
az aks create --enable-acns
az aks create --enable-acns --disable-acns-observability
az aks create --enable-acns --disable-acns-security

az aks update --enable-acns
az aks update --disable-acns
az aks update --enable-acns --disable-acns-observability
az aks update --enable-acns --disable-acns-security

Description
This PR adds commands to aks create and update to enable and disable ACNS and ACNS features for observability and security.

Testing Guide
--enable-acns will enable ACNS with all sub features (observability and security), except on non-cilium dataplane where security is disabled by default until security features are supported. This will have optional flags to enable and disable ACNS related features.
--disable-acns will disable all ACNS features on a cluster.

History Notes

[AKS] az aks create/update: Add --enable-acns parameter to support enabling advanced networking functionalities on a cluster
[AKS] az aks create/update: Add --disable-acns-observability parameter to disable advanced networking observability features when enabling advanced networking features with --enable-acns
[AKS] az aks create/update: Add --disable-acns-security parameter to disable advanced networking security features when enabling advanced networking features with --enable-acns
[AKS] az aks update: Add --disable-acns parameter to support disabling advanced networking functionalities on a cluster


This checklist is used to make sure that common guidelines for a pull request are followed.

Copy link

azure-client-tools-bot-prd bot commented Oct 28, 2024

️✔️AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9

Copy link

Hi @snguyen64,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

Copy link

azure-client-tools-bot-prd bot commented Oct 28, 2024

⚠️AzureCLI-BreakingChangeTest
⚠️acs
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter disable_acns_observability
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter disable_acns_security
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter enable_acns
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter disable_acns_observability
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter disable_acns_security
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter disable_acns
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter enable_acns

@yonzhan
Copy link
Collaborator

yonzhan commented Oct 28, 2024

Thank you for your contribution! We will review the pull request and get back to you soon.

@snguyen64 snguyen64 changed the title feat(acns): add acns to GA cli feat(acns): add acns to GA cli for 2024-09-01 Oct 28, 2024
@snguyen64 snguyen64 force-pushed the nguyensteven/acns-cli-2024-09-01 branch 4 times, most recently from 18f6249 to a5592e4 Compare November 8, 2024 22:35
@snguyen64 snguyen64 marked this pull request as ready for review November 8, 2024 22:37
Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Queued live test to validate the change.

  • test_aks_update_enable_acns
  • test_aks_create_with_enable_acns
  • test_aks_create_with_enable_acns_complex

Please rebase from dev to pick up the change in #30290, requeue live test and commit recording files.

address pr comments, remove redundant commands, add more tests, raise mutual exclusion errors for acns cases

update test ctx

convert one test to non cilium for enable acns

update help msg

update style

update managed_cluster_decorator for acns and tests
@snguyen64 snguyen64 force-pushed the nguyensteven/acns-cli-2024-09-01 branch from a5592e4 to 0b2d527 Compare November 11, 2024 13:58
Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix lint errors

/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py:5775:48: E225 missing whitespace around operator
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py:7384:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py:7387:1: W293 blank line contains whitespace
/mnt/vss/_work/1/s/src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py:7404:51: E225 missing whitespace around operator

may bypass this check by updating src/azure-cli/azure/cli/command_modules/acs/linter_exclusions.yml

  • FAIL - HIGH severity: option_length_too_long
    Parameter: aks create, disable_acns_observability - The lengths of all options ['--disable-acns-observability'] are longer than threshold 22. Argument disable_acns_observability must have a short abbreviation.
    Parameter: aks update, disable_acns_observability - The lengths of all options ['--disable-acns-observability'] are longer than threshold 22. Argument disable_acns_observability must have a short abbreviation.

@kairu-ms
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@FumingZhang
Copy link
Member

FumingZhang commented Nov 13, 2024

rebased and queued live test here for westcentralus

Requeued live test, test passed!

  • test_aks_update_enable_acns
  • test_aks_create_with_enable_acns
  • test_aks_create_with_enable_acns_complex

@yanzhudd
Copy link
Contributor

please list the changelog in the History Notes section with impacted commands/parameters, e.g.,

[AKS] az aks create: Add --enable-acns parameter to support enabling advanced network functionalities on a cluster
...

@yanzhudd
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@snguyen64 snguyen64 changed the title feat(acns): add acns to GA cli for 2024-09-01 [AKS] az aks create/update: Add support for feature Advanced Container Networking Services Nov 13, 2024
@snguyen64
Copy link
Contributor Author

please list the changelog in the History Notes section with impacted commands/parameters, e.g.,

[AKS] az aks create: Add --enable-acns parameter to support enabling advanced network functionalities on a cluster ...

updated history and pr title.

@yanzhudd
Copy link
Contributor

please list the changelog in the History Notes section with impacted commands/parameters, e.g.,
[AKS] az aks create: Add --enable-acns parameter to support enabling advanced network functionalities on a cluster ...

updated history and pr title.

I tweaked the changelog a bit

@yanzhudd
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd
Copy link
Contributor

It looks good to me.
Please note that Azure CLI is in a progress of being released and the code is frozen. We'll merge this PR right after the release is completed on 11-19.

@vakalapa
Copy link

@yanzhudd We needed this PR for GA feature which for announced in Ignite, can i know why this did not get into Nov 19th CLI 2.67 version ? And is there a possibility to get a minor release done with this PR ?

@yanzhudd
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd yanzhudd merged commit 6073be7 into Azure:dev Nov 20, 2024
52 checks passed
yanzhudd pushed a commit to yanzhudd/azure-cli that referenced this pull request Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants