Skip to content

{AKS} Support reset default value for loadbalancer profile and natgateway profile#7230

Merged
yanzhudd merged 1 commit intoAzure:mainfrom
MartinForReal:shafan
Mar 21, 2024
Merged

{AKS} Support reset default value for loadbalancer profile and natgateway profile#7230
yanzhudd merged 1 commit intoAzure:mainfrom
MartinForReal:shafan

Conversation

@MartinForReal
Copy link
Copy Markdown
Contributor

@MartinForReal MartinForReal commented Jan 30, 2024


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

Related command

az aks update --load-balancer-outbound-ports 0

General Guidelines

related: #27071

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

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

azure-client-tools-bot-prd bot commented Jan 30, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

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

Hi @MartinForReal,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

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

Hi @MartinForReal,
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 Jan 30, 2024

AKS

Copy link
Copy Markdown
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.

lgtm

Queued live test to validate the change, test passed!

Comment on lines +2698 to +2752
if self.context.get_nat_gateway_managed_outbound_ip_count() is not None:
network_profile.nat_gateway_profile = create_nat_gateway_profile(
self.context.get_nat_gateway_managed_outbound_ip_count(),
self.context.get_nat_gateway_idle_timeout(),
models=self.models.nat_gateway_models,
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps this part can be omitted as it's part of the create process, even if setting it to 0 is ignored, the default value will be backfilled to 0?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The default value is 1

@FumingZhang
Copy link
Copy Markdown
Member

Requeued live test

  • test_aks_create_and_update_outbound_ips

@MartinForReal
Copy link
Copy Markdown
Contributor Author

Requeued live test

  • test_aks_create_and_update_outbound_ips

The test passed.

Copy link
Copy Markdown
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.

Syncing changes in official azure-cli #28273, fix issue #27071

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants