Skip to content

feat: add field allocateLoadBalancerNodePorts to KubernetesServiceSpec#1893

Merged
zirain merged 5 commits intoenvoyproxy:mainfrom
den3tsou:main
Sep 19, 2023
Merged

feat: add field allocateLoadBalancerNodePorts to KubernetesServiceSpec#1893
zirain merged 5 commits intoenvoyproxy:mainfrom
den3tsou:main

Conversation

@den3tsou
Copy link
Copy Markdown
Contributor

@den3tsou den3tsou commented Sep 17, 2023

What this PR does / why we need it:
This PR adds field allocateLoadBalancerNodePorts to KubernetesServiceSpec for Envoy Proxy kind. The value will get propagated to the Envoy Proxy Sevice configuration, so users can choose to not use automatically assigned NodePorts by setting false for this field. Please see ServiceSpec v1 core for more info.

Which issue(s) this PR fixes:
Fixes #1772

 This commit adds a new field allocateLoadBalancerNodePorts to
 KubernetesServiceSpec. But this field can only be set when the
 service type is 'LoadBalancer'

Signed-off-by: Den Tsou <den3tsou@gmail.com>
@den3tsou den3tsou requested a review from a team as a code owner September 17, 2023 08:28
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is there any good place for this kind of help function?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 17, 2023

Codecov Report

Merging #1893 (bf10106) into main (14a395a) will increase coverage by 0.02%.
Report is 4 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1893      +/-   ##
==========================================
+ Coverage   66.12%   66.15%   +0.02%     
==========================================
  Files          86       86              
  Lines       12868    12876       +8     
==========================================
+ Hits         8509     8518       +9     
+ Misses       3832     3830       -2     
- Partials      527      528       +1     
Files Changed Coverage Δ
api/config/v1alpha1/validation/validate.go 74.30% <100.00%> (+0.92%) ⬆️
...nal/infrastructure/kubernetes/resource/resource.go 96.49% <100.00%> (+0.19%) ⬆️

... and 1 file with indirect coverage changes

den3tsou and others added 4 commits September 18, 2023 19:01
Signed-off-by: Den Tsou <den3tsou@gmail.com>
…lancerNodePorts

Signed-off-by: Den Tsou <den3tsou@gmail.com>
Signed-off-by: Den Tsou <den3tsou@gmail.com>
Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks !

@zirain zirain merged commit b98c1d1 into envoyproxy:main Sep 19, 2023
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.

Allow custom (-options in the) Service object - allocateLoadBalancerNodePorts: false

3 participants