Skip to content

azure: Add Workload Identity support#18204

Draft
hakman wants to merge 1 commit intokubernetes:masterfrom
hakman:azure-wi
Draft

azure: Add Workload Identity support#18204
hakman wants to merge 1 commit intokubernetes:masterfrom
hakman:azure-wi

Conversation

@hakman
Copy link
Copy Markdown
Member

@hakman hakman commented Apr 17, 2026

Lots of assistance from Claude Opus on this one 😄.

/cc @justinsb @rifelpet

Signed-off-by: Ciprian Hacman <ciprian@hakman.dev>
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@k8s-ci-robot k8s-ci-robot requested a review from justinsb April 17, 2026 15:26
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 17, 2026
@k8s-ci-robot k8s-ci-robot requested a review from rifelpet April 17, 2026 15:26
@k8s-ci-robot k8s-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Apr 17, 2026
@k8s-ci-robot
Copy link
Copy Markdown
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 hakman for approval. For more information see the Code Review Process.

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

Details 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 area/addons area/api area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 17, 2026
Copy link
Copy Markdown
Member

@justinsb justinsb left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread pkg/apis/kops/cluster.go

// AzureNetworkSecurityGroupName returns the name of the network security group for the cluster.
// The NSG shares its name with the virtual network; callers relying on this invariant
// should prefer this helper over re-deriving the name inline.
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.

👍

// Azure built-in role definition IDs.
// See: https://learn.microsoft.com/azure/role-based-access-control/built-in-roles
const (
// azureContributorRoleDefID is the ID of the built-in "Contributor" role.
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.

Idea for future: add a summary of the contributor role and why we need it

namespace string
sa string
}{
{name: "fic-ccm", namespace: "kube-system", sa: "cloud-controller-manager"},
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.

Nit: construct the name from the namespace & sa? I think it's only used internally in kOps so it shouldn't be a breaking change, so not a blocker

break
}
}
if foundVMSS == nil {
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.

I'm not 100% sure what's going on here - but does it matter if there is more than one match?

@justinsb
Copy link
Copy Markdown
Member

lgtm, some comments / questions but not blocking

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

Labels

area/addons area/api area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants