Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate AzureClusterIdentity spec.resourceID #4831

Merged
merged 1 commit into from
May 20, 2024

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented May 10, 2024

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

The spec.resourceID field is no longer used in any meaningful way, I think since we eliminated our use of AAD Pod Identity. This change removes the requirement that this field be specified for UserAssignedMSI AzureClusterIdentities and marks the field deprecated to at least make the linter hold us accountable if we ever start to reference it again.

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:

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

The `spec.resourceID` field for AzureClusterIdentity is deprecated as it no longer has any effect.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 10, 2024
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label May 10, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 10, 2024

/test pull-cluster-api-provider-azure-e2e-optional
/hold for squash

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 10, 2024
Copy link

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.01%. Comparing base (392f7d6) to head (1b5ac25).
Report is 55 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4831   +/-   ##
=======================================
  Coverage   62.00%   62.01%           
=======================================
  Files         201      201           
  Lines       16857    16860    +3     
=======================================
+ Hits        10453    10455    +2     
- Misses       5620     5622    +2     
+ Partials      784      783    -1     

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

Copy link
Contributor

@willie-yao willie-yao left a comment

Choose a reason for hiding this comment

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

/lgtm

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

LGTM label has been added.

Git tree hash: e17d9b7cd8eff95b79aec0aa9229bbc5b7b0be36

@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 10, 2024

/retest

1 similar comment
@jackfrancis
Copy link
Contributor

/retest

@nojnhuh nojnhuh mentioned this pull request May 17, 2024
4 tasks
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here I opted to keep the webhook check that enforces resourceID is not specified for non-UserAssignedMSI types since it still seems to help prevent users from setting something that they might expect to make a difference that actually doesn't. So the references to resourceID in those tests still uphold that check, but I could be convinced to remove everything about resourceID that doesn't break the API.

Copy link
Contributor

Choose a reason for hiding this comment

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

That makes sense to me!

@jsturtevant
Copy link
Contributor

@jsturtevant
Copy link
Contributor

/lgtm
pending doc update

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 17, 2024
Copy link

linux-foundation-easycla bot commented May 17, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: nojnhuh / name: Jon Huhn (1b5ac25)

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. and removed cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 17, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 17, 2024

@jsturtevant I tried listing you as a co-author on the doc change but the CLA bot doesn't seem to like that? I made sure to use the same name and email you had on #4864. Do you mind if I drop that from the commit for now? I can try again after I squash.

@jsturtevant
Copy link
Contributor

NP, something changed with the CLA bot recently and it doesn't like co-authors any more 😢

Copy link
Contributor

@jsturtevant jsturtevant left a comment

Choose a reason for hiding this comment

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

/lgtm

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

LGTM label has been added.

Git tree hash: e89b18fa80e17836ab549dfb104a177e87f1ddb3

Copy link
Contributor

@willie-yao willie-yao left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: willie-yao

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 18, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels May 20, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 20, 2024

squashed!
/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 20, 2024
@nojnhuh
Copy link
Contributor Author

nojnhuh commented May 20, 2024

Creating or starting a free tier cluster is unavailable at this time in region westeurope. To create a new cluster, we recommend using an alternate region, or create a paid tier cluster. For a list of all the Azure regions, visit https://aka.ms/aks/regions. For more details on this error, visit https://aka.ms/akscapacityerror.

/retest

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented May 20, 2024

@nojnhuh: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-windows-custom-builds 1b5ac25 link false /test pull-cluster-api-provider-azure-windows-custom-builds

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@k8s-ci-robot k8s-ci-robot merged commit b9bb053 into kubernetes-sigs:main May 20, 2024
24 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. 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. 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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

5 participants