Skip to content

[AKS] az aks mesh enable-egress-gateway/disable-egress-gateway: Add commands to manage Azure Service Mesh egress gateway#32386

Merged
yanzhudd merged 7 commits intoAzure:devfrom
nshankar13:nshankar/add-istio-egress-cli-commands
Nov 7, 2025
Merged

[AKS] az aks mesh enable-egress-gateway/disable-egress-gateway: Add commands to manage Azure Service Mesh egress gateway#32386
yanzhudd merged 7 commits intoAzure:devfrom
nshankar13:nshankar/add-istio-egress-cli-commands

Conversation

@nshankar13
Copy link
Copy Markdown
Contributor

Related command
az aks mesh enable-egress-gateway
az aks mesh disable-egress-gateway

Description
Add Istio add-on egress gateway CLI commands.

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


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

Signed-off-by: nshankar <nshankar@microsoft.com>
Copilot AI review requested due to automatic review settings November 5, 2025 17:11
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Nov 5, 2025

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

@azure-client-tools-bot-prd
Copy link
Copy Markdown

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

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Nov 5, 2025

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

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 5, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Nov 5, 2025

⚠️AzureCLI-BreakingChangeTest
⚠️acs
rule cmd_name rule_message suggest_message
⚠️ 1001 - CmdAdd aks mesh disable-egress-gateway cmd aks mesh disable-egress-gateway added
⚠️ 1001 - CmdAdd aks mesh enable-egress-gateway cmd aks mesh enable-egress-gateway added

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for enabling and disabling Istio egress gateways in Azure Service Mesh (ASM). It introduces new CLI commands az aks mesh enable-egress-gateway and az aks mesh disable-egress-gateway to manage egress gateways.

Key Changes

  • Added _handle_egress_gateways_asm method to process egress gateway enable/disable operations
  • Introduced two new CLI commands for enabling and disabling egress gateways
  • Added validation for egress gateway names with specific naming constraints
  • Added comprehensive test coverage for the new functionality

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
_consts.py Defines default egress namespace constant and maximum name length
_params.py Adds command-line parameter definitions for egress gateway operations
_validators.py Implements validation for egress gateway names with regex pattern matching
_help.py Provides help documentation for the new commands
commands.py Registers the new enable/disable egress gateway commands
custom.py Implements the command handler functions for egress gateway operations
managed_cluster_decorator.py Adds core logic to handle egress gateway configuration changes
test_managed_cluster_decorator.py Adds unit tests for the egress gateway handler
test_aks_commands.py Adds integration test for egress gateway enable/disable operations
Comments suppressed due to low confidence (1)

src/azure-cli/azure/cli/command_modules/acs/managed_cluster_decorator.py:4860

  • The newly added _handle_egress_gateways_asm method is never called in update_azure_service_mesh_profile. This means egress gateway operations will not be processed. Add a call to _handle_egress_gateways_asm similar to how _handle_ingress_gateways_asm is called.
        new_profile, updated_ingress_gateways_asm = self._handle_ingress_gateways_asm(new_profile)
        updated |= updated_ingress_gateways_asm

        new_profile, updated_pluginca_asm = self._handle_pluginca_asm(new_profile)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: nshankar <nshankar@microsoft.com>
Signed-off-by: nshankar <nshankar@microsoft.com>
Signed-off-by: nshankar <nshankar@microsoft.com>
@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@nshankar13 nshankar13 changed the title Add istio egress CLI commands az aks mesh enable-egress-gateway: Add istio egress CLI commands Nov 5, 2025
Signed-off-by: nshankar <nshankar@microsoft.com>
@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@nshankar13 nshankar13 changed the title az aks mesh enable-egress-gateway: Add istio egress CLI commands [AKS Istio add-on egress gateway] az aks mesh enable-egress-gateway: Add istio egress CLI commands Nov 6, 2025
@FumingZhang FumingZhang changed the title [AKS Istio add-on egress gateway] az aks mesh enable-egress-gateway: Add istio egress CLI commands [AKS] az aks mesh enable-egress-gateway: Add istio egress CLI commands Nov 6, 2025
@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

Signed-off-by: nshankar <nshankar@microsoft.com>
Signed-off-by: nshankar <nshankar@microsoft.com>
@FumingZhang
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd
Copy link
Copy Markdown
Contributor

yanzhudd commented Nov 7, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd yanzhudd merged commit c56e257 into Azure:dev Nov 7, 2025
48 checks passed
@yanzhudd yanzhudd changed the title [AKS] az aks mesh enable-egress-gateway: Add istio egress CLI commands [AKS] az aks mesh enable-egress-gateway: Add commands to manage Azure Service Mesh egress gateway Nov 7, 2025
@yanzhudd yanzhudd changed the title [AKS] az aks mesh enable-egress-gateway: Add commands to manage Azure Service Mesh egress gateway [AKS] az aks mesh enable-egress-gateway/disable-egress-gateway: Add commands to manage Azure Service Mesh egress gateway Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS az aks/acs/openshift Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants