Skip to content

Commit

Permalink
Refactor azure service mesh update function for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshdama committed Jan 30, 2024
1 parent 6d0fe08 commit a3d9ec2
Show file tree
Hide file tree
Showing 5 changed files with 361 additions and 169 deletions.
1 change: 1 addition & 0 deletions src/aks-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ To release a new version, please select a new version number (usually plus 1 to
Pending
+++++++
* Deprecate the alias "-r" of parameter --source-resource-id in `az aks trustedaccess rolebinding create`
* Refactor azure service mesh related code to meet cli style requirements.

1.0.0b4
+++++++
Expand Down
6 changes: 5 additions & 1 deletion src/aks-preview/azext_aks_preview/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,11 @@ def load_command_table(self, _):
) as g:
g.custom_command("enable", "aks_mesh_enable", supports_no_wait=True)
g.custom_command(
"disable", "aks_mesh_disable", supports_no_wait=True, confirmation=True
"disable",
"aks_mesh_disable",
supports_no_wait=True,
confirmation="Existing Azure Service Mesh Profile values will be reset.\n"
+ "Are you sure you want to perform this operation?"
)
g.custom_command(
"enable-ingress-gateway",
Expand Down
2 changes: 1 addition & 1 deletion src/aks-preview/azext_aks_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2986,7 +2986,7 @@ def _aks_mesh_update(
)

try:
mc = aks_update_decorator.update_mc_profile_default()
mc = aks_update_decorator.fetch_mc()
mc = aks_update_decorator.update_azure_service_mesh_profile(mc)
except DecoratorEarlyExitException:
return None
Expand Down
Loading

0 comments on commit a3d9ec2

Please sign in to comment.