Skip to content

Commit 4c57ca4

Browse files
author
Srinivas Alluri
committed
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions into sralluri-cli-ext-neon-ga-release
2 parents ddf92c8 + 069de08 commit 4c57ca4

389 files changed

Lines changed: 59411 additions & 28651 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/policies/resourceManagement.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,11 @@ configuration:
11971197
- mentionUsers:
11981198
mentionees:
11991199
- toddysm
1200-
- luisdlp
12011200
- northtyphoon
1201+
- luisdlp
12021202
- terencet-dev
1203+
- shizhMSFT
1204+
- JXavierMSFT
12031205
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
12041206
assignMentionees: False
12051207
- if:

scripts/ci/release_version_cal.py

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -220,15 +220,16 @@ def extract_module_metadata_update_info(mod_update_info, mod):
220220
"""
221221
mod_update_info["meta_updated"] = False
222222
# metadata is required for this task, (and also az extension *)
223-
last_meta_data = find_module_metadata_of_latest_version(mod).get("metadata", {})
223+
pre_release = find_module_metadata_of_latest_version(mod)
224+
last_meta_data = pre_release.get("metadata", {}) if pre_release else None
224225
current_meta_data = find_module_metadata_of_current_version(mod)
225226
if not current_meta_data:
226227
raise Exception(f"Please check {mod}: azext_metadata.json file")
227228
if not last_meta_data:
228229
if current_meta_data.get("azext.isPreview", None):
229230
mod_update_info["meta_updated"] = True
230231
mod_update_info["preview_tag_diff"] = "add"
231-
return
232+
return
232233
if last_meta_data.get("azext.isExperimental", False) and not current_meta_data.get("azext.isExperimental", False):
233234
mod_update_info["exp_tag_diff"] = "remove"
234235
mod_update_info["meta_updated"] = True
@@ -249,16 +250,18 @@ def extract_module_version_info(mod_update_info, mod):
249250
print("next_version_pre_tag: ", next_version_pre_tag)
250251
print("next_version_segment_tag: ", next_version_segment_tag)
251252
pkg_name = get_mod_package_name(mod)
253+
print(f"get pkg name: {pkg_name} for mod: {mod}")
252254
pre_release = get_module_metadata_of_max_version(pkg_name)
253-
print(f"Get prerelease info for mod: {mod} as below:")
254-
print(json.dumps(pre_release))
255255
clean_mod_of_azdev(mod)
256-
print("Start generating base metadata")
257-
install_mod_of_last_version(pkg_name, pre_release)
258-
base_meta_folder = os.path.join(cli_ext_path, base_meta_path)
259-
gen_metadata_from_whl(pkg_name, base_meta_folder)
260-
remove_mod_of_last_version(pkg_name)
261-
print("End generating base metadata")
256+
if pre_release:
257+
print(f"Get prerelease info for mod: {mod} as below:")
258+
print(json.dumps(pre_release))
259+
print("Start generating base metadata")
260+
install_mod_of_last_version(pkg_name, pre_release)
261+
base_meta_folder = os.path.join(cli_ext_path, base_meta_path)
262+
gen_metadata_from_whl(pkg_name, base_meta_folder)
263+
remove_mod_of_last_version(pkg_name)
264+
print("End generating base metadata")
262265
base_meta_file = os.path.join(cli_ext_path, base_meta_path, "az_" + pkg_name + "_meta.json")
263266
diff_meta_file = os.path.join(cli_ext_path, diff_meta_path, "az_" + mod + "_meta.json")
264267
if not os.path.exists(base_meta_file) and not os.path.exists(diff_meta_file):

src/aks-preview/HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ To release a new version, please select a new version number (usually plus 1 to
1111

1212
Pending
1313
+++++++
14+
15+
16+
14.0.0b2
17+
+++++++
18+
* Update the `disable-egress-gateway` subcommand to fix `--help` output for the `az aks mesh` command.
1419
* Vendor new SDK and bump API version to 2025-01-02-preview.
1520
* Modify behavior for `--nodepool-initialization-taints` to ignore taints with hard effects on node pools with system mode when creating or updating a cluster.
1621

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3106,7 +3106,7 @@
31063106

31073107
helps['aks mesh disable-egress-gateway'] = """
31083108
type: command
3109-
short-summary: Disable an Azure Service Mesh ingress gateway.
3109+
short-summary: Disable an Azure Service Mesh egress gateway.
31103110
long-summary: This command disables an Azure Service Mesh egress gateway in given cluster.
31113111
parameters:
31123112
- name: --istio-eg-gtw-name --istio-egressgateway-name

src/aks-preview/azext_aks_preview/managed_cluster_decorator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,6 +2402,13 @@ def _handle_egress_gateways_asm(self, new_profile: ServiceMeshProfile) -> Tuple[
24022402
f'Egress gateway {istio_egressgateway_name} '
24032403
f'in namespace {istio_egressgateway_namespace} is already disabled.'
24042404
)
2405+
if egress.enabled and enable_egress_gateway:
2406+
if egress.gateway_configuration_name == gateway_configuration_name:
2407+
raise ArgumentUsageError(
2408+
f'Egress gateway {istio_egressgateway_name} '
2409+
f'in namespace {istio_egressgateway_namespace} is already enabled '
2410+
f'with gateway configuration name {gateway_configuration_name}.'
2411+
)
24052412
egress.enabled = enable_egress_gateway
24062413
# only update gateway configuration name for enabled egress gateways
24072414
if enable_egress_gateway:

src/aks-preview/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from setuptools import setup, find_packages
1111

12-
VERSION = "14.0.0b1"
12+
VERSION = "14.0.0b2"
1313

1414
CLASSIFIERS = [
1515
"Development Status :: 4 - Beta",

src/amg/HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,9 @@ Release History
131131
2.5.5
132132
++++++
133133
* `az grafana notification-channel test`: fix issue with test output parsing
134+
135+
2.6.0
136+
++++++
137+
* `az grafana integrations monitor add`: support optional subscription id argument for multi-subscription scenarios
138+
* `az grafana integrations monitor delete`: support optional subscription id argument for multi-subscription scenarios
139+
* `az grafana notification-channel`: deprecate command group as part of Grafana legacy alerting deprecation

src/amg/azext_amg/_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
helps['grafana notification-channel'] = """
181181
type: group
182182
short-summary: Commands to manage notification channels of an instance.
183-
long-summary: As part of legacy alerting, this command group will be deprecated in a future release
183+
long-summary: As part of Grafana legacy alerting, this command group only works with Grafana 10 and below.
184184
"""
185185

186186
helps['grafana notification-channel list'] = """

src/amg/azext_amg/_params.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,5 @@ def load_arguments(self, _):
127127
with self.argument_context("grafana integrations monitor") as c:
128128
c.argument("monitor_name", help="name of the Azure Monitor workspace")
129129
c.argument("monitor_resource_group_name", options_list=["--monitor-resource-group-name", "--monitor-rg-name"], help="name of the resource group of the Azure Monitor workspace")
130+
c.argument("monitor_subscription_id", options_list=["--monitor-subscription-id", "--monitor-sub-id"], help="subscription id of the Azure Monitor workspace. Uses the current subscription id if not specified")
130131
c.argument("skip_role_assignments", options_list=["-s", "--skip-role-assignments"], arg_type=get_three_state_flag(), help="skip assigning the appropriate role on the Azure Monitor workspace to let Grafana read data from it. Default: false")

src/amg/azext_amg/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def load_command_table(self, _):
3434
g.custom_command('query', 'query_data_source')
3535
g.custom_command('update', 'update_data_source')
3636

37-
with self.command_group('grafana notification-channel') as g:
37+
with self.command_group('grafana notification-channel', deprecate_info=self.deprecate()) as g:
3838
g.custom_command('list', 'list_notification_channels')
3939
g.custom_show_command('show', 'show_notification_channel')
4040
g.custom_command('create', 'create_notification_channel')

0 commit comments

Comments
 (0)