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

resolver: remove deprecated AddressType #6451

Merged
merged 2 commits into from Jul 17, 2023
Merged

Conversation

dfawley
Copy link
Member

@dfawley dfawley commented Jul 14, 2023

Some minor clean-up ahead of the upcoming dual-stack changes.

RELEASE NOTES:

  • resolver: remove deprecated AddressType - This was previously used as a signal to enable the "grpclb" load balancing policy, and to pass LB addresses to the policy. Instead, balancer/grpclb/state.Set() should be used to add these addresses to the name resolver's output. The built-in "dns" name resolver already does this.

@dfawley dfawley added the Type: API Change Breaking API changes (experimental APIs only!) label Jul 14, 2023
@dfawley dfawley added this to the 1.58 Release milestone Jul 14, 2023
@dfawley dfawley requested a review from easwars July 14, 2023 19:56
@easwars
Copy link
Contributor

easwars commented Jul 14, 2023

Fix vet failure:

Error: clientconn.go:58:2: const grpclbName is unused (U1000)

Also, I don't see a deletion of the AddressType enum in the resolver package. Was that intended? If so, maybe the PR title and the release notes need updating.

@easwars easwars assigned dfawley and unassigned easwars Jul 14, 2023
@dfawley
Copy link
Member Author

dfawley commented Jul 14, 2023

Also, I don't see a deletion of the AddressType enum in the resolver package. Was that intended? If so, maybe the PR title and the release notes need updating.

Whoops. I had deleted it, but I put it back later and forgot to remove it again. Also forgot to add pickfirst.go to the commit. Fixed everything (I think)!

@dfawley dfawley assigned easwars and unassigned dfawley Jul 14, 2023
@@ -114,6 +115,7 @@ func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState
}

if envconfig.PickFirstLBConfig && b.cfg != nil && b.cfg.ShuffleAddressList {
addrs = append([]resolver.Address{}, addrs...)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is nice. Didn't know this trick before. I would have written this as a two-liner with a make and copy.

@easwars easwars assigned dfawley and unassigned easwars Jul 14, 2023
@dfawley dfawley merged commit 02946a3 into grpc:master Jul 17, 2023
11 checks passed
@dfawley dfawley deleted the ds_resolver_api branch July 17, 2023 20:29
KnutZuidema added a commit to KnutZuidema/kuberesolver that referenced this pull request Sep 19, 2023
The type attribute has been removed in more recent versions of gRPC. The usage here is not required and the may be removed.

See: grpc/grpc-go#6451
KnutZuidema added a commit to KnutZuidema/kuberesolver that referenced this pull request Sep 19, 2023
The type attribute has been removed in more recent versions of gRPC. The usage here is not required and the may be removed.

See: grpc/grpc-go#6451
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: API Change Breaking API changes (experimental APIs only!)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants