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: only set gw.Spec.Addresses in gw.Status.Addresses #1465

Merged
merged 2 commits into from
May 31, 2023

Conversation

arkodg
Copy link
Contributor

@arkodg arkodg commented May 30, 2023

Dont append, just set/override the gw.Status.Addresses with the values from gw.Spec.Addresses (which eventually get set in svc.Spec.ExternalIPs)

Relates to #1463

https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1beta1.Gateway

Dont append, just set/override the gw.Status.Addresses with the values
from gw.Spec.Addresses (which eventually get set in svc.Spec.ExternalIPs)

Relates to envoyproxy#1463

https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1beta1.Gateway

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@arkodg arkodg requested a review from a team as a code owner May 30, 2023 17:58
@arkodg
Copy link
Contributor Author

arkodg commented May 30, 2023

cc @tommie hoping this can solve your use case of explicitly setting the gw.Spec.Addresses with public IPs of specific nodes and using ExternalDNS integration to build out the DNS Records.
With this you can probably even run the service as ClusterIP instead of NodePort

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
@codecov
Copy link

codecov bot commented May 30, 2023

Codecov Report

Merging #1465 (06597f6) into main (af71fef) will increase coverage by 0.01%.
The diff coverage is 68.96%.

@@            Coverage Diff             @@
##             main    #1465      +/-   ##
==========================================
+ Coverage   61.31%   61.33%   +0.01%     
==========================================
  Files          79       79              
  Lines       11481    11488       +7     
==========================================
+ Hits         7040     7046       +6     
- Misses       3981     3982       +1     
  Partials      460      460              
Impacted Files Coverage Δ
internal/status/gateway.go 78.57% <68.96%> (-9.19%) ⬇️

... and 2 files with indirect coverage changes

@zirain zirain merged commit eb62289 into envoyproxy:main May 31, 2023
18 checks passed
@arkodg arkodg deleted the set-addr branch May 31, 2023 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants