Skip to content

Conversation

@jackfrancis
Copy link
Contributor

What type of PR is this?

/kind cleanup
/kind deprecation

What this PR does / why we need it:

This PR removes the (non-working) LB SKU configuration of "Basic" from the v1beta1 AKS types.

A code audit suggested that the self-managed LB SKU flows already require "Standard", so I think we're O.K. there.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

Special notes for your reviewer:

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests
  • cherry-pick candidate

Release note:

Ensure no new AKS LBs are created w/ Basic SKU

@k8s-ci-robot k8s-ci-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Nov 4, 2025
@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. labels Nov 4, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 4, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign neolit123 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 4, 2025
@jackfrancis
Copy link
Contributor Author

@nojnhuh I did observe that config/aso/crds.yaml refers to Basic LB SKU as a schema option, does that suggest that an upcoming consumption of a new ASO version will take care of that?

@nojnhuh
Copy link
Contributor

nojnhuh commented Nov 4, 2025

In what way exactly is a basic SKU load balancer "non-working"? Does AKS give an error if that's specified?

@nojnhuh I did observe that config/aso/crds.yaml refers to Basic LB SKU as a schema option, does that suggest that an upcoming consumption of a new ASO version will take care of that?

I see the next AKS API version included in the latest ASO release still lists Basic as a valid value: https://azure.github.io/azure-service-operator/reference/containerservice/v1api20250801/#ContainerServiceNetworkProfile_LoadBalancerSku

I don't see any reason to deviate from what ASO is doing here. @matthchr is ASO doing anything special for that value?

@matthchr
Copy link

matthchr commented Nov 4, 2025

Does AKS give an error if that's specified?

I think AKS does, but maybe we haven't actually taken this SKU out of the REST API specs? That's probably an oversight on AKS API management side, I'll track it down. Removing Basic is probably correct here though as AFAIK it doesn't work. I've looped you two in on the internal thread I started on this topic as well to get clarity.

@codecov
Copy link

codecov bot commented Nov 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.55%. Comparing base (23d5dbb) to head (9d9ace1).
⚠️ Report is 40 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5958   +/-   ##
=======================================
  Coverage   44.54%   44.55%           
=======================================
  Files         279      279           
  Lines       25140    25148    +8     
=======================================
+ Hits        11199    11205    +6     
- Misses      13128    13130    +2     
  Partials      813      813           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

expectErr bool
}{
{
name: "Valid Version",
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Valid/Invalid SKU over Valid/Invalid Version

const (
// LoadBalancerSKUStandard is the Standard load balancer SKU.
LoadBalancerSKUStandard = "Standard"
// LoadBalancerSKUBasic is the Basic load balancer SKU.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should there be an API comment left to let users know this field was removed/deprecated?

@bryan-cox
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 26, 2025
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 197f5cec643c8d2430949fb9c98621ef78db472e

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

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

5 participants