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

fix AuthorizedIPRanges disable -> enable bug #3806

Closed

Conversation

nawazkh
Copy link
Member

@nawazkh nawazkh commented Aug 7, 2023

What type of PR is this?
/kind bug

What this PR does / why we need it:

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

Special notes for your reviewer:

  • cherry-pick candidate

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

authorized IP ranges will be set to []string then to nil upon deletion

@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/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 7, 2023
@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 Kubernetes 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 size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 7, 2023
@nawazkh
Copy link
Member Author

nawazkh commented Aug 7, 2023

I will squash the commits once lgtm-ed.

@k8s-ci-robot
Copy link
Contributor

@nawazkh: The following tests 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-build-v1beta1 20e2b31 link true /test pull-cluster-api-provider-azure-build-v1beta1
pull-cluster-api-provider-azure-apiversion-upgrade-v1beta1 20e2b31 link true /test pull-cluster-api-provider-azure-apiversion-upgrade-v1beta1
pull-cluster-api-provider-azure-e2e-aks-v1beta1 20e2b31 link true /test pull-cluster-api-provider-azure-e2e-aks-v1beta1
pull-cluster-api-provider-azure-e2e-v1beta1 20e2b31 link true /test pull-cluster-api-provider-azure-e2e-v1beta1

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/test-infra repository. I understand the commands that are listed here.

Comment on lines +602 to +620
func getIdentity(identity *infrav1.Identity) (managedClusterIdentity *containerservice.ManagedClusterIdentity, err error) {
if identity.Type == "" {
return
}

managedClusterIdentity = &containerservice.ManagedClusterIdentity{
Type: containerservice.ResourceIdentityType(identity.Type),
}
if managedClusterIdentity.Type == containerservice.ResourceIdentityTypeUserAssigned {
if identity.UserAssignedIdentityResourceID == "" {
err = errors.Errorf("Identity is set to \"UserAssigned\" but no UserAssignedIdentityResourceID is present")
return
}
managedClusterIdentity.UserAssignedIdentities = map[string]*containerservice.ManagedClusterIdentityUserAssignedIdentitiesValue{
identity.UserAssignedIdentityResourceID: {},
}
}
return
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This is not my change.. Probing why this got pulled in.

@nawazkh nawazkh marked this pull request as draft August 7, 2023 19:16
@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 Aug 7, 2023
@nawazkh
Copy link
Member Author

nawazkh commented Aug 7, 2023

Closing this PR since the cherry-pick is behaving weirdly.

@nawazkh
Copy link
Member Author

nawazkh commented Aug 7, 2023

/close

@k8s-ci-robot
Copy link
Contributor

@nawazkh: Closed this PR.

In response to this:

/close

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/test-infra repository.

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. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/bug Categorizes issue or PR as related to a bug. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants